For PR814:
[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/privbracket"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
441 ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
442 ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
443 # Factoring default headers for most tests.
444 ac_includes_default="\
445 #include <stdio.h>
446 #if HAVE_SYS_TYPES_H
447 # include <sys/types.h>
448 #endif
449 #if HAVE_SYS_STAT_H
450 # include <sys/stat.h>
451 #endif
452 #if STDC_HEADERS
453 # include <stdlib.h>
454 # include <stddef.h>
455 #else
456 # if HAVE_STDLIB_H
457 #  include <stdlib.h>
458 # endif
459 #endif
460 #if HAVE_STRING_H
461 # if !STDC_HEADERS && HAVE_MEMORY_H
462 #  include <memory.h>
463 # endif
464 # include <string.h>
465 #endif
466 #if HAVE_STRINGS_H
467 # include <strings.h>
468 #endif
469 #if HAVE_INTTYPES_H
470 # include <inttypes.h>
471 #else
472 # if HAVE_STDINT_H
473 #  include <stdint.h>
474 # endif
475 #endif
476 #if HAVE_UNISTD_H
477 # include <unistd.h>
478 #endif"
479
480 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 LLVM_CROSS_COMPILING BUILD_CC BUILD_EXEEXT CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD EXTRA_OPTIONS 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 DOT GV DOTTY PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 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'
481 ac_subst_files=''
482
483 # Initialize some variables set by options.
484 ac_init_help=
485 ac_init_version=false
486 # The variables have the same names as the options, with
487 # dashes changed to underlines.
488 cache_file=/dev/null
489 exec_prefix=NONE
490 no_create=
491 no_recursion=
492 prefix=NONE
493 program_prefix=NONE
494 program_suffix=NONE
495 program_transform_name=s,x,x,
496 silent=
497 site=
498 srcdir=
499 verbose=
500 x_includes=NONE
501 x_libraries=NONE
502
503 # Installation directory options.
504 # These are left unexpanded so users can "make install exec_prefix=/foo"
505 # and all the variables that are supposed to be based on exec_prefix
506 # by default will actually change.
507 # Use braces instead of parens because sh, perl, etc. also accept them.
508 bindir='${exec_prefix}/bin'
509 sbindir='${exec_prefix}/sbin'
510 libexecdir='${exec_prefix}/libexec'
511 datadir='${prefix}/share'
512 sysconfdir='${prefix}/etc'
513 sharedstatedir='${prefix}/com'
514 localstatedir='${prefix}/var'
515 libdir='${exec_prefix}/lib'
516 includedir='${prefix}/include'
517 oldincludedir='/usr/include'
518 infodir='${prefix}/info'
519 mandir='${prefix}/man'
520
521 ac_prev=
522 for ac_option
523 do
524   # If the previous option needs an argument, assign it.
525   if test -n "$ac_prev"; then
526     eval "$ac_prev=\$ac_option"
527     ac_prev=
528     continue
529   fi
530
531   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
532
533   # Accept the important Cygnus configure options, so we can diagnose typos.
534
535   case $ac_option in
536
537   -bindir | --bindir | --bindi | --bind | --bin | --bi)
538     ac_prev=bindir ;;
539   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
540     bindir=$ac_optarg ;;
541
542   -build | --build | --buil | --bui | --bu)
543     ac_prev=build_alias ;;
544   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
545     build_alias=$ac_optarg ;;
546
547   -cache-file | --cache-file | --cache-fil | --cache-fi \
548   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
549     ac_prev=cache_file ;;
550   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
551   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
552     cache_file=$ac_optarg ;;
553
554   --config-cache | -C)
555     cache_file=config.cache ;;
556
557   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
558     ac_prev=datadir ;;
559   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
560   | --da=*)
561     datadir=$ac_optarg ;;
562
563   -disable-* | --disable-*)
564     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
565     # Reject names that are not valid shell variable names.
566     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568    { (exit 1); exit 1; }; }
569     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570     eval "enable_$ac_feature=no" ;;
571
572   -enable-* | --enable-*)
573     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
574     # Reject names that are not valid shell variable names.
575     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
577    { (exit 1); exit 1; }; }
578     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
579     case $ac_option in
580       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
581       *) ac_optarg=yes ;;
582     esac
583     eval "enable_$ac_feature='$ac_optarg'" ;;
584
585   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
586   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
587   | --exec | --exe | --ex)
588     ac_prev=exec_prefix ;;
589   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
590   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
591   | --exec=* | --exe=* | --ex=*)
592     exec_prefix=$ac_optarg ;;
593
594   -gas | --gas | --ga | --g)
595     # Obsolete; use --with-gas.
596     with_gas=yes ;;
597
598   -help | --help | --hel | --he | -h)
599     ac_init_help=long ;;
600   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
601     ac_init_help=recursive ;;
602   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
603     ac_init_help=short ;;
604
605   -host | --host | --hos | --ho)
606     ac_prev=host_alias ;;
607   -host=* | --host=* | --hos=* | --ho=*)
608     host_alias=$ac_optarg ;;
609
610   -includedir | --includedir | --includedi | --included | --include \
611   | --includ | --inclu | --incl | --inc)
612     ac_prev=includedir ;;
613   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
614   | --includ=* | --inclu=* | --incl=* | --inc=*)
615     includedir=$ac_optarg ;;
616
617   -infodir | --infodir | --infodi | --infod | --info | --inf)
618     ac_prev=infodir ;;
619   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
620     infodir=$ac_optarg ;;
621
622   -libdir | --libdir | --libdi | --libd)
623     ac_prev=libdir ;;
624   -libdir=* | --libdir=* | --libdi=* | --libd=*)
625     libdir=$ac_optarg ;;
626
627   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
628   | --libexe | --libex | --libe)
629     ac_prev=libexecdir ;;
630   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
631   | --libexe=* | --libex=* | --libe=*)
632     libexecdir=$ac_optarg ;;
633
634   -localstatedir | --localstatedir | --localstatedi | --localstated \
635   | --localstate | --localstat | --localsta | --localst \
636   | --locals | --local | --loca | --loc | --lo)
637     ac_prev=localstatedir ;;
638   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
639   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
640   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
641     localstatedir=$ac_optarg ;;
642
643   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
644     ac_prev=mandir ;;
645   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
646     mandir=$ac_optarg ;;
647
648   -nfp | --nfp | --nf)
649     # Obsolete; use --without-fp.
650     with_fp=no ;;
651
652   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
653   | --no-cr | --no-c | -n)
654     no_create=yes ;;
655
656   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
657   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
658     no_recursion=yes ;;
659
660   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
661   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
662   | --oldin | --oldi | --old | --ol | --o)
663     ac_prev=oldincludedir ;;
664   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
665   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
666   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
667     oldincludedir=$ac_optarg ;;
668
669   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
670     ac_prev=prefix ;;
671   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
672     prefix=$ac_optarg ;;
673
674   -program-prefix | --program-prefix | --program-prefi | --program-pref \
675   | --program-pre | --program-pr | --program-p)
676     ac_prev=program_prefix ;;
677   -program-prefix=* | --program-prefix=* | --program-prefi=* \
678   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
679     program_prefix=$ac_optarg ;;
680
681   -program-suffix | --program-suffix | --program-suffi | --program-suff \
682   | --program-suf | --program-su | --program-s)
683     ac_prev=program_suffix ;;
684   -program-suffix=* | --program-suffix=* | --program-suffi=* \
685   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
686     program_suffix=$ac_optarg ;;
687
688   -program-transform-name | --program-transform-name \
689   | --program-transform-nam | --program-transform-na \
690   | --program-transform-n | --program-transform- \
691   | --program-transform | --program-transfor \
692   | --program-transfo | --program-transf \
693   | --program-trans | --program-tran \
694   | --progr-tra | --program-tr | --program-t)
695     ac_prev=program_transform_name ;;
696   -program-transform-name=* | --program-transform-name=* \
697   | --program-transform-nam=* | --program-transform-na=* \
698   | --program-transform-n=* | --program-transform-=* \
699   | --program-transform=* | --program-transfor=* \
700   | --program-transfo=* | --program-transf=* \
701   | --program-trans=* | --program-tran=* \
702   | --progr-tra=* | --program-tr=* | --program-t=*)
703     program_transform_name=$ac_optarg ;;
704
705   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
706   | -silent | --silent | --silen | --sile | --sil)
707     silent=yes ;;
708
709   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
710     ac_prev=sbindir ;;
711   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
712   | --sbi=* | --sb=*)
713     sbindir=$ac_optarg ;;
714
715   -sharedstatedir | --sharedstatedir | --sharedstatedi \
716   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
717   | --sharedst | --shareds | --shared | --share | --shar \
718   | --sha | --sh)
719     ac_prev=sharedstatedir ;;
720   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
721   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
722   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
723   | --sha=* | --sh=*)
724     sharedstatedir=$ac_optarg ;;
725
726   -site | --site | --sit)
727     ac_prev=site ;;
728   -site=* | --site=* | --sit=*)
729     site=$ac_optarg ;;
730
731   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
732     ac_prev=srcdir ;;
733   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
734     srcdir=$ac_optarg ;;
735
736   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
737   | --syscon | --sysco | --sysc | --sys | --sy)
738     ac_prev=sysconfdir ;;
739   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
740   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
741     sysconfdir=$ac_optarg ;;
742
743   -target | --target | --targe | --targ | --tar | --ta | --t)
744     ac_prev=target_alias ;;
745   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
746     target_alias=$ac_optarg ;;
747
748   -v | -verbose | --verbose | --verbos | --verbo | --verb)
749     verbose=yes ;;
750
751   -version | --version | --versio | --versi | --vers | -V)
752     ac_init_version=: ;;
753
754   -with-* | --with-*)
755     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package| sed 's/-/_/g'`
761     case $ac_option in
762       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
763       *) ac_optarg=yes ;;
764     esac
765     eval "with_$ac_package='$ac_optarg'" ;;
766
767   -without-* | --without-*)
768     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
769     # Reject names that are not valid shell variable names.
770     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
771       { echo "$as_me: error: invalid package name: $ac_package" >&2
772    { (exit 1); exit 1; }; }
773     ac_package=`echo $ac_package | sed 's/-/_/g'`
774     eval "with_$ac_package=no" ;;
775
776   --x)
777     # Obsolete; use --with-x.
778     with_x=yes ;;
779
780   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
781   | --x-incl | --x-inc | --x-in | --x-i)
782     ac_prev=x_includes ;;
783   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
784   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
785     x_includes=$ac_optarg ;;
786
787   -x-libraries | --x-libraries | --x-librarie | --x-librari \
788   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
789     ac_prev=x_libraries ;;
790   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
791   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
792     x_libraries=$ac_optarg ;;
793
794   -*) { echo "$as_me: error: unrecognized option: $ac_option
795 Try \`$0 --help' for more information." >&2
796    { (exit 1); exit 1; }; }
797     ;;
798
799   *=*)
800     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
801     # Reject names that are not valid shell variable names.
802     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
803       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
804    { (exit 1); exit 1; }; }
805     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
806     eval "$ac_envvar='$ac_optarg'"
807     export $ac_envvar ;;
808
809   *)
810     # FIXME: should be removed in autoconf 3.0.
811     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
812     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
813       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
814     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
815     ;;
816
817   esac
818 done
819
820 if test -n "$ac_prev"; then
821   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
822   { echo "$as_me: error: missing argument to $ac_option" >&2
823    { (exit 1); exit 1; }; }
824 fi
825
826 # Be sure to have absolute paths.
827 for ac_var in exec_prefix prefix
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # Be sure to have absolute paths.
838 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
839               localstatedir libdir includedir oldincludedir infodir mandir
840 do
841   eval ac_val=$`echo $ac_var`
842   case $ac_val in
843     [\\/$]* | ?:[\\/]* ) ;;
844     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
845    { (exit 1); exit 1; }; };;
846   esac
847 done
848
849 # There might be people who depend on the old broken behavior: `$host'
850 # used to hold the argument of --host etc.
851 # FIXME: To remove some day.
852 build=$build_alias
853 host=$host_alias
854 target=$target_alias
855
856 # FIXME: To remove some day.
857 if test "x$host_alias" != x; then
858   if test "x$build_alias" = x; then
859     cross_compiling=maybe
860     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
861     If a cross compiler is detected then cross compile mode will be used." >&2
862   elif test "x$build_alias" != "x$host_alias"; then
863     cross_compiling=yes
864   fi
865 fi
866
867 ac_tool_prefix=
868 test -n "$host_alias" && ac_tool_prefix=$host_alias-
869
870 test "$silent" = yes && exec 6>/dev/null
871
872
873 # Find the source files, if location was not specified.
874 if test -z "$srcdir"; then
875   ac_srcdir_defaulted=yes
876   # Try the directory containing this script, then its parent.
877   ac_confdir=`(dirname "$0") 2>/dev/null ||
878 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
879          X"$0" : 'X\(//\)[^/]' \| \
880          X"$0" : 'X\(//\)$' \| \
881          X"$0" : 'X\(/\)' \| \
882          .     : '\(.\)' 2>/dev/null ||
883 echo X"$0" |
884     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
885           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
886           /^X\(\/\/\)$/{ s//\1/; q; }
887           /^X\(\/\).*/{ s//\1/; q; }
888           s/.*/./; q'`
889   srcdir=$ac_confdir
890   if test ! -r $srcdir/$ac_unique_file; then
891     srcdir=..
892   fi
893 else
894   ac_srcdir_defaulted=no
895 fi
896 if test ! -r $srcdir/$ac_unique_file; then
897   if test "$ac_srcdir_defaulted" = yes; then
898     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
899    { (exit 1); exit 1; }; }
900   else
901     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
902    { (exit 1); exit 1; }; }
903   fi
904 fi
905 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
906   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
907    { (exit 1); exit 1; }; }
908 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
909 ac_env_build_alias_set=${build_alias+set}
910 ac_env_build_alias_value=$build_alias
911 ac_cv_env_build_alias_set=${build_alias+set}
912 ac_cv_env_build_alias_value=$build_alias
913 ac_env_host_alias_set=${host_alias+set}
914 ac_env_host_alias_value=$host_alias
915 ac_cv_env_host_alias_set=${host_alias+set}
916 ac_cv_env_host_alias_value=$host_alias
917 ac_env_target_alias_set=${target_alias+set}
918 ac_env_target_alias_value=$target_alias
919 ac_cv_env_target_alias_set=${target_alias+set}
920 ac_cv_env_target_alias_value=$target_alias
921 ac_env_CC_set=${CC+set}
922 ac_env_CC_value=$CC
923 ac_cv_env_CC_set=${CC+set}
924 ac_cv_env_CC_value=$CC
925 ac_env_CFLAGS_set=${CFLAGS+set}
926 ac_env_CFLAGS_value=$CFLAGS
927 ac_cv_env_CFLAGS_set=${CFLAGS+set}
928 ac_cv_env_CFLAGS_value=$CFLAGS
929 ac_env_LDFLAGS_set=${LDFLAGS+set}
930 ac_env_LDFLAGS_value=$LDFLAGS
931 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
932 ac_cv_env_LDFLAGS_value=$LDFLAGS
933 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
934 ac_env_CPPFLAGS_value=$CPPFLAGS
935 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
936 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
937 ac_env_CPP_set=${CPP+set}
938 ac_env_CPP_value=$CPP
939 ac_cv_env_CPP_set=${CPP+set}
940 ac_cv_env_CPP_value=$CPP
941 ac_env_CXX_set=${CXX+set}
942 ac_env_CXX_value=$CXX
943 ac_cv_env_CXX_set=${CXX+set}
944 ac_cv_env_CXX_value=$CXX
945 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
946 ac_env_CXXFLAGS_value=$CXXFLAGS
947 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
948 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
949 ac_env_CXXCPP_set=${CXXCPP+set}
950 ac_env_CXXCPP_value=$CXXCPP
951 ac_cv_env_CXXCPP_set=${CXXCPP+set}
952 ac_cv_env_CXXCPP_value=$CXXCPP
953 ac_env_F77_set=${F77+set}
954 ac_env_F77_value=$F77
955 ac_cv_env_F77_set=${F77+set}
956 ac_cv_env_F77_value=$F77
957 ac_env_FFLAGS_set=${FFLAGS+set}
958 ac_env_FFLAGS_value=$FFLAGS
959 ac_cv_env_FFLAGS_set=${FFLAGS+set}
960 ac_cv_env_FFLAGS_value=$FFLAGS
961
962 #
963 # Report the --help message.
964 #
965 if test "$ac_init_help" = "long"; then
966   # Omit some internal or obsolete options to make the list less imposing.
967   # This message is too long to be a string in the A/UX 3.1 sh.
968   cat <<_ACEOF
969 \`configure' configures llvm 1.8cvs to adapt to many kinds of systems.
970
971 Usage: $0 [OPTION]... [VAR=VALUE]...
972
973 To assign environment variables (e.g., CC, CFLAGS...), specify them as
974 VAR=VALUE.  See below for descriptions of some of the useful variables.
975
976 Defaults for the options are specified in brackets.
977
978 Configuration:
979   -h, --help              display this help and exit
980       --help=short        display options specific to this package
981       --help=recursive    display the short help of all the included packages
982   -V, --version           display version information and exit
983   -q, --quiet, --silent   do not print \`checking...' messages
984       --cache-file=FILE   cache test results in FILE [disabled]
985   -C, --config-cache      alias for \`--cache-file=config.cache'
986   -n, --no-create         do not create output files
987       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
988
989 _ACEOF
990
991   cat <<_ACEOF
992 Installation directories:
993   --prefix=PREFIX         install architecture-independent files in PREFIX
994                           [$ac_default_prefix]
995   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
996                           [PREFIX]
997
998 By default, \`make install' will install all the files in
999 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1000 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1001 for instance \`--prefix=\$HOME'.
1002
1003 For better control, use the options below.
1004
1005 Fine tuning of the installation directories:
1006   --bindir=DIR           user executables [EPREFIX/bin]
1007   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1008   --libexecdir=DIR       program executables [EPREFIX/libexec]
1009   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1010   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1011   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1012   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1013   --libdir=DIR           object code libraries [EPREFIX/lib]
1014   --includedir=DIR       C header files [PREFIX/include]
1015   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1016   --infodir=DIR          info documentation [PREFIX/info]
1017   --mandir=DIR           man documentation [PREFIX/man]
1018 _ACEOF
1019
1020   cat <<\_ACEOF
1021
1022 System types:
1023   --build=BUILD     configure for building on BUILD [guessed]
1024   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1025   --target=TARGET   configure for building compilers for TARGET [HOST]
1026 _ACEOF
1027 fi
1028
1029 if test -n "$ac_init_help"; then
1030   case $ac_init_help in
1031      short | recursive ) echo "Configuration of llvm 1.8cvs:";;
1032    esac
1033   cat <<\_ACEOF
1034
1035 Optional Features:
1036   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1037   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1038   --enable-optimized
1039   --enable-assertions
1040   --enable-debug-runtime
1041   --enable-jit            Enable Just In Time Compiling (default is YES)
1042   --enable-doxygen        Build doxygen documentation (default is NO)
1043   --enable-threads        Use threads if available (default is YES)
1044   --enable-targets        Build specific host targets:
1045                           all,host-only,{target-name} (default=all)
1046   --enable-ltdl-install   install libltdl
1047   --enable-shared[=PKGS]
1048                           build shared libraries [default=yes]
1049   --enable-static[=PKGS]
1050                           build static libraries [default=yes]
1051   --enable-fast-install[=PKGS]
1052                           optimize for fast installation [default=yes]
1053   --disable-libtool-lock  avoid locking (might break parallel builds)
1054
1055 Optional Packages:
1056   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1057   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1058   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1059                           searches PATH)
1060   --with-extra-options    Specify addtional options to compile LLVM with
1061   --with-tclinclude       directory where tcl headers are
1062   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1063   --with-pic              try to use only PIC/non-PIC objects [default=use
1064                           both]
1065   --with-tags[=TAGS]
1066                           include additional configurations [automatic]
1067
1068 Some influential environment variables:
1069   CC          C compiler command
1070   CFLAGS      C compiler flags
1071   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1072               nonstandard directory <lib dir>
1073   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1074               headers in a nonstandard directory <include dir>
1075   CPP         C preprocessor
1076   CXX         C++ compiler command
1077   CXXFLAGS    C++ compiler flags
1078   CXXCPP      C++ preprocessor
1079   F77         Fortran 77 compiler command
1080   FFLAGS      Fortran 77 compiler flags
1081
1082 Use these variables to override the choices made by `configure' or to help
1083 it to find libraries and programs with nonstandard names/locations.
1084
1085 Report bugs to <llvmbugs@cs.uiuc.edu>.
1086 _ACEOF
1087 fi
1088
1089 if test "$ac_init_help" = "recursive"; then
1090   # If there are subdirs, report their specific --help.
1091   ac_popdir=`pwd`
1092   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093     test -d $ac_dir || continue
1094     ac_builddir=.
1095
1096 if test "$ac_dir" != .; then
1097   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098   # A "../" for each directory in $ac_dir_suffix.
1099   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1100 else
1101   ac_dir_suffix= ac_top_builddir=
1102 fi
1103
1104 case $srcdir in
1105   .)  # No --srcdir option.  We are building in place.
1106     ac_srcdir=.
1107     if test -z "$ac_top_builddir"; then
1108        ac_top_srcdir=.
1109     else
1110        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1111     fi ;;
1112   [\\/]* | ?:[\\/]* )  # Absolute path.
1113     ac_srcdir=$srcdir$ac_dir_suffix;
1114     ac_top_srcdir=$srcdir ;;
1115   *) # Relative path.
1116     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118 esac
1119
1120 # Do not use `cd foo && pwd` to compute absolute paths, because
1121 # the directories may not exist.
1122 case `pwd` in
1123 .) ac_abs_builddir="$ac_dir";;
1124 *)
1125   case "$ac_dir" in
1126   .) ac_abs_builddir=`pwd`;;
1127   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1128   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129   esac;;
1130 esac
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1133 *)
1134   case ${ac_top_builddir}. in
1135   .) ac_abs_top_builddir=$ac_abs_builddir;;
1136   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1137   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138   esac;;
1139 esac
1140 case $ac_abs_builddir in
1141 .) ac_abs_srcdir=$ac_srcdir;;
1142 *)
1143   case $ac_srcdir in
1144   .) ac_abs_srcdir=$ac_abs_builddir;;
1145   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1146   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147   esac;;
1148 esac
1149 case $ac_abs_builddir in
1150 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1151 *)
1152   case $ac_top_srcdir in
1153   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1154   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1155   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1156   esac;;
1157 esac
1158
1159     cd $ac_dir
1160     # Check for guested configure; otherwise get Cygnus style configure.
1161     if test -f $ac_srcdir/configure.gnu; then
1162       echo
1163       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1164     elif test -f $ac_srcdir/configure; then
1165       echo
1166       $SHELL $ac_srcdir/configure  --help=recursive
1167     elif test -f $ac_srcdir/configure.ac ||
1168            test -f $ac_srcdir/configure.in; then
1169       echo
1170       $ac_configure --help
1171     else
1172       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1173     fi
1174     cd $ac_popdir
1175   done
1176 fi
1177
1178 test -n "$ac_init_help" && exit 0
1179 if $ac_init_version; then
1180   cat <<\_ACEOF
1181 llvm configure 1.8cvs
1182 generated by GNU Autoconf 2.59
1183
1184 Copyright (C) 2003 Free Software Foundation, Inc.
1185 This configure script is free software; the Free Software Foundation
1186 gives unlimited permission to copy, distribute and modify it.
1187
1188 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1189 _ACEOF
1190   exit 0
1191 fi
1192 exec 5>config.log
1193 cat >&5 <<_ACEOF
1194 This file contains any messages produced by compilers while
1195 running configure, to aid debugging if configure makes a mistake.
1196
1197 It was created by llvm $as_me 1.8cvs, which was
1198 generated by GNU Autoconf 2.59.  Invocation command line was
1199
1200   $ $0 $@
1201
1202 _ACEOF
1203 {
1204 cat <<_ASUNAME
1205 ## --------- ##
1206 ## Platform. ##
1207 ## --------- ##
1208
1209 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1210 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1211 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1212 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1213 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1214
1215 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1216 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1217
1218 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1219 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1220 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1221 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1222 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1223 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1224 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1225
1226 _ASUNAME
1227
1228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1229 for as_dir in $PATH
1230 do
1231   IFS=$as_save_IFS
1232   test -z "$as_dir" && as_dir=.
1233   echo "PATH: $as_dir"
1234 done
1235
1236 } >&5
1237
1238 cat >&5 <<_ACEOF
1239
1240
1241 ## ----------- ##
1242 ## Core tests. ##
1243 ## ----------- ##
1244
1245 _ACEOF
1246
1247
1248 # Keep a trace of the command line.
1249 # Strip out --no-create and --no-recursion so they do not pile up.
1250 # Strip out --silent because we don't want to record it for future runs.
1251 # Also quote any args containing shell meta-characters.
1252 # Make two passes to allow for proper duplicate-argument suppression.
1253 ac_configure_args=
1254 ac_configure_args0=
1255 ac_configure_args1=
1256 ac_sep=
1257 ac_must_keep_next=false
1258 for ac_pass in 1 2
1259 do
1260   for ac_arg
1261   do
1262     case $ac_arg in
1263     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1264     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265     | -silent | --silent | --silen | --sile | --sil)
1266       continue ;;
1267     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1269     esac
1270     case $ac_pass in
1271     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1272     2)
1273       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1274       if test $ac_must_keep_next = true; then
1275         ac_must_keep_next=false # Got value, back to normal.
1276       else
1277         case $ac_arg in
1278           *=* | --config-cache | -C | -disable-* | --disable-* \
1279           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1280           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1281           | -with-* | --with-* | -without-* | --without-* | --x)
1282             case "$ac_configure_args0 " in
1283               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1284             esac
1285             ;;
1286           -* ) ac_must_keep_next=true ;;
1287         esac
1288       fi
1289       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1290       # Get rid of the leading space.
1291       ac_sep=" "
1292       ;;
1293     esac
1294   done
1295 done
1296 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1297 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1298
1299 # When interrupted or exit'd, cleanup temporary files, and complete
1300 # config.log.  We remove comments because anyway the quotes in there
1301 # would cause problems or look ugly.
1302 # WARNING: Be sure not to use single quotes in there, as some shells,
1303 # such as our DU 5.0 friend, will then `close' the trap.
1304 trap 'exit_status=$?
1305   # Save into config.log some information that might help in debugging.
1306   {
1307     echo
1308
1309     cat <<\_ASBOX
1310 ## ---------------- ##
1311 ## Cache variables. ##
1312 ## ---------------- ##
1313 _ASBOX
1314     echo
1315     # The following way of writing the cache mishandles newlines in values,
1316 {
1317   (set) 2>&1 |
1318     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1319     *ac_space=\ *)
1320       sed -n \
1321         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1322           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1323       ;;
1324     *)
1325       sed -n \
1326         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1327       ;;
1328     esac;
1329 }
1330     echo
1331
1332     cat <<\_ASBOX
1333 ## ----------------- ##
1334 ## Output variables. ##
1335 ## ----------------- ##
1336 _ASBOX
1337     echo
1338     for ac_var in $ac_subst_vars
1339     do
1340       eval ac_val=$`echo $ac_var`
1341       echo "$ac_var='"'"'$ac_val'"'"'"
1342     done | sort
1343     echo
1344
1345     if test -n "$ac_subst_files"; then
1346       cat <<\_ASBOX
1347 ## ------------- ##
1348 ## Output files. ##
1349 ## ------------- ##
1350 _ASBOX
1351       echo
1352       for ac_var in $ac_subst_files
1353       do
1354         eval ac_val=$`echo $ac_var`
1355         echo "$ac_var='"'"'$ac_val'"'"'"
1356       done | sort
1357       echo
1358     fi
1359
1360     if test -s confdefs.h; then
1361       cat <<\_ASBOX
1362 ## ----------- ##
1363 ## confdefs.h. ##
1364 ## ----------- ##
1365 _ASBOX
1366       echo
1367       sed "/^$/d" confdefs.h | sort
1368       echo
1369     fi
1370     test "$ac_signal" != 0 &&
1371       echo "$as_me: caught signal $ac_signal"
1372     echo "$as_me: exit $exit_status"
1373   } >&5
1374   rm -f core *.core &&
1375   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1376     exit $exit_status
1377      ' 0
1378 for ac_signal in 1 2 13 15; do
1379   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1380 done
1381 ac_signal=0
1382
1383 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1384 rm -rf conftest* confdefs.h
1385 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1386 echo >confdefs.h
1387
1388 # Predefined preprocessor variables.
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_NAME "$PACKAGE_NAME"
1392 _ACEOF
1393
1394
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1397 _ACEOF
1398
1399
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1402 _ACEOF
1403
1404
1405 cat >>confdefs.h <<_ACEOF
1406 #define PACKAGE_STRING "$PACKAGE_STRING"
1407 _ACEOF
1408
1409
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1412 _ACEOF
1413
1414
1415 # Let the site file select an alternate cache file if it wants to.
1416 # Prefer explicitly selected file to automatically selected ones.
1417 if test -z "$CONFIG_SITE"; then
1418   if test "x$prefix" != xNONE; then
1419     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1420   else
1421     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1422   fi
1423 fi
1424 for ac_site_file in $CONFIG_SITE; do
1425   if test -r "$ac_site_file"; then
1426     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1427 echo "$as_me: loading site script $ac_site_file" >&6;}
1428     sed 's/^/| /' "$ac_site_file" >&5
1429     . "$ac_site_file"
1430   fi
1431 done
1432
1433 if test -r "$cache_file"; then
1434   # Some versions of bash will fail to source /dev/null (special
1435   # files actually), so we avoid doing that.
1436   if test -f "$cache_file"; then
1437     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1438 echo "$as_me: loading cache $cache_file" >&6;}
1439     case $cache_file in
1440       [\\/]* | ?:[\\/]* ) . $cache_file;;
1441       *)                      . ./$cache_file;;
1442     esac
1443   fi
1444 else
1445   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1446 echo "$as_me: creating cache $cache_file" >&6;}
1447   >$cache_file
1448 fi
1449
1450 # Check that the precious variables saved in the cache have kept the same
1451 # value.
1452 ac_cache_corrupted=false
1453 for ac_var in `(set) 2>&1 |
1454                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1455   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1456   eval ac_new_set=\$ac_env_${ac_var}_set
1457   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1458   eval ac_new_val="\$ac_env_${ac_var}_value"
1459   case $ac_old_set,$ac_new_set in
1460     set,)
1461       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1462 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1463       ac_cache_corrupted=: ;;
1464     ,set)
1465       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1466 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1467       ac_cache_corrupted=: ;;
1468     ,);;
1469     *)
1470       if test "x$ac_old_val" != "x$ac_new_val"; then
1471         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1472 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1473         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1474 echo "$as_me:   former value:  $ac_old_val" >&2;}
1475         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1476 echo "$as_me:   current value: $ac_new_val" >&2;}
1477         ac_cache_corrupted=:
1478       fi;;
1479   esac
1480   # Pass precious variables to config.status.
1481   if test "$ac_new_set" = set; then
1482     case $ac_new_val in
1483     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1484       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1485     *) ac_arg=$ac_var=$ac_new_val ;;
1486     esac
1487     case " $ac_configure_args " in
1488       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1489       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1490     esac
1491   fi
1492 done
1493 if $ac_cache_corrupted; then
1494   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1495 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1496   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1497 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1498    { (exit 1); exit 1; }; }
1499 fi
1500
1501 ac_ext=c
1502 ac_cpp='$CPP $CPPFLAGS'
1503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1535
1536
1537
1538
1539
1540
1541
1542 ac_aux_dir=
1543 for ac_dir in autoconf $srcdir/autoconf; do
1544   if test -f $ac_dir/install-sh; then
1545     ac_aux_dir=$ac_dir
1546     ac_install_sh="$ac_aux_dir/install-sh -c"
1547     break
1548   elif test -f $ac_dir/install.sh; then
1549     ac_aux_dir=$ac_dir
1550     ac_install_sh="$ac_aux_dir/install.sh -c"
1551     break
1552   elif test -f $ac_dir/shtool; then
1553     ac_aux_dir=$ac_dir
1554     ac_install_sh="$ac_aux_dir/shtool install -c"
1555     break
1556   fi
1557 done
1558 if test -z "$ac_aux_dir"; then
1559   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1560 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1561    { (exit 1); exit 1; }; }
1562 fi
1563 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1564 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1565 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1566
1567
1568 if test ${srcdir} != "." ; then
1569   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1570     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1571 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1572    { (exit 1); exit 1; }; }
1573   fi
1574 fi
1575
1576 for i in `ls ${srcdir}/projects`
1577 do
1578   if test -d ${srcdir}/projects/${i} ; then
1579     case ${i} in
1580       "CVS") ;;
1581       "sample")
1582
1583 subdirs="$subdirs projects/sample"
1584     ;;
1585       "Stacker")
1586
1587 subdirs="$subdirs projects/Stacker"
1588    ;;
1589       "privbracket")
1590
1591 subdirs="$subdirs projects/privbracket"
1592  ;;
1593       "llvm-test")
1594
1595 subdirs="$subdirs projects/llvm-test"
1596  ;;
1597       "llvm-reopt")
1598
1599 subdirs="$subdirs projects/llvm-reopt"
1600 ;;
1601       "llvm-gcc")
1602
1603 subdirs="$subdirs projects/llvm-gcc"
1604   ;;
1605       "llvm-java")
1606
1607 subdirs="$subdirs projects/llvm-java"
1608  ;;
1609       "llvm-tv")
1610
1611 subdirs="$subdirs projects/llvm-tv"
1612    ;;
1613       "llvm-poolalloc")
1614
1615 subdirs="$subdirs projects/llvm-poolalloc"
1616  ;;
1617       "llvm-kernel")
1618
1619 subdirs="$subdirs projects/llvm-kernel"
1620  ;;
1621       *)
1622         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1623 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1624         ;;
1625     esac
1626   fi
1627 done
1628
1629
1630 # Make sure we can run config.sub.
1631 $ac_config_sub sun4 >/dev/null 2>&1 ||
1632   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1633 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1634    { (exit 1); exit 1; }; }
1635
1636 echo "$as_me:$LINENO: checking build system type" >&5
1637 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1638 if test "${ac_cv_build+set}" = set; then
1639   echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641   ac_cv_build_alias=$build_alias
1642 test -z "$ac_cv_build_alias" &&
1643   ac_cv_build_alias=`$ac_config_guess`
1644 test -z "$ac_cv_build_alias" &&
1645   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1647    { (exit 1); exit 1; }; }
1648 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1649   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1651    { (exit 1); exit 1; }; }
1652
1653 fi
1654 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1655 echo "${ECHO_T}$ac_cv_build" >&6
1656 build=$ac_cv_build
1657 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662 echo "$as_me:$LINENO: checking host system type" >&5
1663 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1664 if test "${ac_cv_host+set}" = set; then
1665   echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667   ac_cv_host_alias=$host_alias
1668 test -z "$ac_cv_host_alias" &&
1669   ac_cv_host_alias=$ac_cv_build_alias
1670 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1671   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1673    { (exit 1); exit 1; }; }
1674
1675 fi
1676 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1677 echo "${ECHO_T}$ac_cv_host" >&6
1678 host=$ac_cv_host
1679 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684 echo "$as_me:$LINENO: checking target system type" >&5
1685 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1686 if test "${ac_cv_target+set}" = set; then
1687   echo $ECHO_N "(cached) $ECHO_C" >&6
1688 else
1689   ac_cv_target_alias=$target_alias
1690 test "x$ac_cv_target_alias" = "x" &&
1691   ac_cv_target_alias=$ac_cv_host_alias
1692 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1693   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1694 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1695    { (exit 1); exit 1; }; }
1696
1697 fi
1698 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1699 echo "${ECHO_T}$ac_cv_target" >&6
1700 target=$ac_cv_target
1701 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1702 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1703 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1704
1705
1706 # The aliases save the names the user supplied, while $host etc.
1707 # will get canonicalized.
1708 test -n "$target_alias" &&
1709   test "$program_prefix$program_suffix$program_transform_name" = \
1710     NONENONEs,x,x, &&
1711   program_prefix=${target_alias}-
1712
1713 echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
1714 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6
1715 if test "${llvm_cv_os_type+set}" = set; then
1716   echo $ECHO_N "(cached) $ECHO_C" >&6
1717 else
1718   case $host in
1719   *-*-aix*)
1720     llvm_cv_os_type="AIX"
1721     llvm_cv_platform_type="Unix" ;;
1722   *-*-cygwin*)
1723     llvm_cv_os_type="Cygwin"
1724     llvm_cv_platform_type="Unix" ;;
1725   *-*-darwin*)
1726     llvm_cv_os_type="Darwin"
1727     llvm_cv_platform_type="Unix" ;;
1728   *-*-freebsd*)
1729     llvm_cv_os_type="FreeBSD"
1730     llvm_cv_platform_type="Unix" ;;
1731   *-*-openbsd*)
1732     llvm_cv_os_type="OpenBSD"
1733     llvm_cv_platform_type="Unix" ;;
1734   *-*-hpux*)
1735     llvm_cv_os_type="HP-UX"
1736     llvm_cv_platform_type="Unix" ;;
1737   *-*-interix*)
1738     llvm_cv_os_type="Interix"
1739     llvm_cv_platform_type="Unix" ;;
1740   *-*-linux*)
1741     llvm_cv_os_type="Linux"
1742     llvm_cv_platform_type="Unix" ;;
1743   *-*-solaris*)
1744     llvm_cv_os_type="SunOS"
1745     llvm_cv_platform_type="Unix" ;;
1746   *-*-win32*)
1747     llvm_cv_os_type="Win32"
1748     llvm_cv_platform_type="Win32" ;;
1749   *-*-mingw*)
1750     llvm_cv_os_type="MingW"
1751     llvm_cv_platform_type="Win32" ;;
1752   *)
1753     llvm_cv_os_type="Unknown"
1754     llvm_cv_platform_type="Unknown" ;;
1755 esac
1756 fi
1757 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1758 echo "${ECHO_T}$llvm_cv_os_type" >&6
1759
1760 if test "$llvm_cv_os_type" = "Unknown" ; then
1761   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1762 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1763    { (exit 1); exit 1; }; }
1764 fi
1765
1766 OS=$llvm_cv_os_type
1767
1768
1769 case $llvm_cv_platform_type in
1770   Unix)
1771
1772 cat >>confdefs.h <<\_ACEOF
1773 #define LLVM_ON_UNIX 1
1774 _ACEOF
1775
1776     LLVM_ON_UNIX=1
1777
1778     LLVM_ON_WIN32=0
1779
1780     ;;
1781   Win32)
1782
1783 cat >>confdefs.h <<\_ACEOF
1784 #define LLVM_ON_WIN32 1
1785 _ACEOF
1786
1787     LLVM_ON_UNIX=0
1788
1789     LLVM_ON_WIN32=1
1790
1791     ;;
1792 esac
1793
1794 echo "$as_me:$LINENO: checking target architecture" >&5
1795 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1796 if test "${llvm_cv_target_arch+set}" = set; then
1797   echo $ECHO_N "(cached) $ECHO_C" >&6
1798 else
1799   case $target in
1800   i?86-*)                 llvm_cv_target_arch="x86" ;;
1801   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1802   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1803   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1804   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1805   ia64-*)                 llvm_cv_target_arch="IA64" ;;
1806   *)                      llvm_cv_target_arch="Unknown" ;;
1807 esac
1808 fi
1809 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1810 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1811
1812 if test "$llvm_cv_target_arch" = "Unknown" ; then
1813   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1814 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1815 fi
1816
1817 ARCH=$llvm_cv_target_arch
1818
1819
1820 ac_ext=c
1821 ac_cpp='$CPP $CPPFLAGS'
1822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1825 if test -n "$ac_tool_prefix"; then
1826   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1827 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_CC+set}" = set; then
1831   echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833   if test -n "$CC"; then
1834   ac_cv_prog_CC="$CC" # Let the user override the test.
1835 else
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 for as_dir in $PATH
1838 do
1839   IFS=$as_save_IFS
1840   test -z "$as_dir" && as_dir=.
1841   for ac_exec_ext in '' $ac_executable_extensions; do
1842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845     break 2
1846   fi
1847 done
1848 done
1849
1850 fi
1851 fi
1852 CC=$ac_cv_prog_CC
1853 if test -n "$CC"; then
1854   echo "$as_me:$LINENO: result: $CC" >&5
1855 echo "${ECHO_T}$CC" >&6
1856 else
1857   echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1859 fi
1860
1861 fi
1862 if test -z "$ac_cv_prog_CC"; then
1863   ac_ct_CC=$CC
1864   # Extract the first word of "gcc", so it can be a program name with args.
1865 set dummy gcc; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1869   echo $ECHO_N "(cached) $ECHO_C" >&6
1870 else
1871   if test -n "$ac_ct_CC"; then
1872   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1873 else
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 for as_dir in $PATH
1876 do
1877   IFS=$as_save_IFS
1878   test -z "$as_dir" && as_dir=.
1879   for ac_exec_ext in '' $ac_executable_extensions; do
1880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881     ac_cv_prog_ac_ct_CC="gcc"
1882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883     break 2
1884   fi
1885 done
1886 done
1887
1888 fi
1889 fi
1890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1891 if test -n "$ac_ct_CC"; then
1892   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1893 echo "${ECHO_T}$ac_ct_CC" >&6
1894 else
1895   echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1897 fi
1898
1899   CC=$ac_ct_CC
1900 else
1901   CC="$ac_cv_prog_CC"
1902 fi
1903
1904 if test -z "$CC"; then
1905   if test -n "$ac_tool_prefix"; then
1906   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1907 set dummy ${ac_tool_prefix}cc; ac_word=$2
1908 echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910 if test "${ac_cv_prog_CC+set}" = set; then
1911   echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913   if test -n "$CC"; then
1914   ac_cv_prog_CC="$CC" # Let the user override the test.
1915 else
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 for as_dir in $PATH
1918 do
1919   IFS=$as_save_IFS
1920   test -z "$as_dir" && as_dir=.
1921   for ac_exec_ext in '' $ac_executable_extensions; do
1922   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923     ac_cv_prog_CC="${ac_tool_prefix}cc"
1924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925     break 2
1926   fi
1927 done
1928 done
1929
1930 fi
1931 fi
1932 CC=$ac_cv_prog_CC
1933 if test -n "$CC"; then
1934   echo "$as_me:$LINENO: result: $CC" >&5
1935 echo "${ECHO_T}$CC" >&6
1936 else
1937   echo "$as_me:$LINENO: result: no" >&5
1938 echo "${ECHO_T}no" >&6
1939 fi
1940
1941 fi
1942 if test -z "$ac_cv_prog_CC"; then
1943   ac_ct_CC=$CC
1944   # Extract the first word of "cc", so it can be a program name with args.
1945 set dummy cc; ac_word=$2
1946 echo "$as_me:$LINENO: checking for $ac_word" >&5
1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1949   echo $ECHO_N "(cached) $ECHO_C" >&6
1950 else
1951   if test -n "$ac_ct_CC"; then
1952   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1953 else
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 for as_dir in $PATH
1956 do
1957   IFS=$as_save_IFS
1958   test -z "$as_dir" && as_dir=.
1959   for ac_exec_ext in '' $ac_executable_extensions; do
1960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961     ac_cv_prog_ac_ct_CC="cc"
1962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963     break 2
1964   fi
1965 done
1966 done
1967
1968 fi
1969 fi
1970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1971 if test -n "$ac_ct_CC"; then
1972   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1973 echo "${ECHO_T}$ac_ct_CC" >&6
1974 else
1975   echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1977 fi
1978
1979   CC=$ac_ct_CC
1980 else
1981   CC="$ac_cv_prog_CC"
1982 fi
1983
1984 fi
1985 if test -z "$CC"; then
1986   # Extract the first word of "cc", so it can be a program name with args.
1987 set dummy cc; ac_word=$2
1988 echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990 if test "${ac_cv_prog_CC+set}" = set; then
1991   echo $ECHO_N "(cached) $ECHO_C" >&6
1992 else
1993   if test -n "$CC"; then
1994   ac_cv_prog_CC="$CC" # Let the user override the test.
1995 else
1996   ac_prog_rejected=no
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH
1999 do
2000   IFS=$as_save_IFS
2001   test -z "$as_dir" && as_dir=.
2002   for ac_exec_ext in '' $ac_executable_extensions; do
2003   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2005        ac_prog_rejected=yes
2006        continue
2007      fi
2008     ac_cv_prog_CC="cc"
2009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010     break 2
2011   fi
2012 done
2013 done
2014
2015 if test $ac_prog_rejected = yes; then
2016   # We found a bogon in the path, so make sure we never use it.
2017   set dummy $ac_cv_prog_CC
2018   shift
2019   if test $# != 0; then
2020     # We chose a different compiler from the bogus one.
2021     # However, it has the same basename, so the bogon will be chosen
2022     # first if we set CC to just the basename; use the full file name.
2023     shift
2024     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2025   fi
2026 fi
2027 fi
2028 fi
2029 CC=$ac_cv_prog_CC
2030 if test -n "$CC"; then
2031   echo "$as_me:$LINENO: result: $CC" >&5
2032 echo "${ECHO_T}$CC" >&6
2033 else
2034   echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2036 fi
2037
2038 fi
2039 if test -z "$CC"; then
2040   if test -n "$ac_tool_prefix"; then
2041   for ac_prog in cl
2042   do
2043     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2045 echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2047 if test "${ac_cv_prog_CC+set}" = set; then
2048   echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050   if test -n "$CC"; then
2051   ac_cv_prog_CC="$CC" # Let the user override the test.
2052 else
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 for as_dir in $PATH
2055 do
2056   IFS=$as_save_IFS
2057   test -z "$as_dir" && as_dir=.
2058   for ac_exec_ext in '' $ac_executable_extensions; do
2059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2060     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062     break 2
2063   fi
2064 done
2065 done
2066
2067 fi
2068 fi
2069 CC=$ac_cv_prog_CC
2070 if test -n "$CC"; then
2071   echo "$as_me:$LINENO: result: $CC" >&5
2072 echo "${ECHO_T}$CC" >&6
2073 else
2074   echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6
2076 fi
2077
2078     test -n "$CC" && break
2079   done
2080 fi
2081 if test -z "$CC"; then
2082   ac_ct_CC=$CC
2083   for ac_prog in cl
2084 do
2085   # Extract the first word of "$ac_prog", so it can be a program name with args.
2086 set dummy $ac_prog; ac_word=$2
2087 echo "$as_me:$LINENO: checking for $ac_word" >&5
2088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2089 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2090   echo $ECHO_N "(cached) $ECHO_C" >&6
2091 else
2092   if test -n "$ac_ct_CC"; then
2093   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2094 else
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 for as_dir in $PATH
2097 do
2098   IFS=$as_save_IFS
2099   test -z "$as_dir" && as_dir=.
2100   for ac_exec_ext in '' $ac_executable_extensions; do
2101   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2102     ac_cv_prog_ac_ct_CC="$ac_prog"
2103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104     break 2
2105   fi
2106 done
2107 done
2108
2109 fi
2110 fi
2111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2112 if test -n "$ac_ct_CC"; then
2113   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2114 echo "${ECHO_T}$ac_ct_CC" >&6
2115 else
2116   echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6
2118 fi
2119
2120   test -n "$ac_ct_CC" && break
2121 done
2122
2123   CC=$ac_ct_CC
2124 fi
2125
2126 fi
2127
2128
2129 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2130 See \`config.log' for more details." >&5
2131 echo "$as_me: error: no acceptable C compiler found in \$PATH
2132 See \`config.log' for more details." >&2;}
2133    { (exit 1); exit 1; }; }
2134
2135 # Provide some information about the compiler.
2136 echo "$as_me:$LINENO:" \
2137      "checking for C compiler version" >&5
2138 ac_compiler=`set X $ac_compile; echo $2`
2139 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2140   (eval $ac_compiler --version </dev/null >&5) 2>&5
2141   ac_status=$?
2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143   (exit $ac_status); }
2144 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2145   (eval $ac_compiler -v </dev/null >&5) 2>&5
2146   ac_status=$?
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); }
2149 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2150   (eval $ac_compiler -V </dev/null >&5) 2>&5
2151   ac_status=$?
2152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153   (exit $ac_status); }
2154
2155 cat >conftest.$ac_ext <<_ACEOF
2156 /* confdefs.h.  */
2157 _ACEOF
2158 cat confdefs.h >>conftest.$ac_ext
2159 cat >>conftest.$ac_ext <<_ACEOF
2160 /* end confdefs.h.  */
2161
2162 int
2163 main ()
2164 {
2165
2166   ;
2167   return 0;
2168 }
2169 _ACEOF
2170 ac_clean_files_save=$ac_clean_files
2171 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2172 # Try to create an executable without -o first, disregard a.out.
2173 # It will help us diagnose broken compilers, and finding out an intuition
2174 # of exeext.
2175 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2176 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2177 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2178 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2179   (eval $ac_link_default) 2>&5
2180   ac_status=$?
2181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182   (exit $ac_status); }; then
2183   # Find the output, starting from the most likely.  This scheme is
2184 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2185 # resort.
2186
2187 # Be careful to initialize this variable, since it used to be cached.
2188 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2189 ac_cv_exeext=
2190 # b.out is created by i960 compilers.
2191 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2192 do
2193   test -f "$ac_file" || continue
2194   case $ac_file in
2195     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2196         ;;
2197     conftest.$ac_ext )
2198         # This is the source file.
2199         ;;
2200     [ab].out )
2201         # We found the default executable, but exeext='' is most
2202         # certainly right.
2203         break;;
2204     *.* )
2205         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2206         # FIXME: I believe we export ac_cv_exeext for Libtool,
2207         # but it would be cool to find out if it's true.  Does anybody
2208         # maintain Libtool? --akim.
2209         export ac_cv_exeext
2210         break;;
2211     * )
2212         break;;
2213   esac
2214 done
2215 else
2216   echo "$as_me: failed program was:" >&5
2217 sed 's/^/| /' conftest.$ac_ext >&5
2218
2219 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2220 See \`config.log' for more details." >&5
2221 echo "$as_me: error: C compiler cannot create executables
2222 See \`config.log' for more details." >&2;}
2223    { (exit 77); exit 77; }; }
2224 fi
2225
2226 ac_exeext=$ac_cv_exeext
2227 echo "$as_me:$LINENO: result: $ac_file" >&5
2228 echo "${ECHO_T}$ac_file" >&6
2229
2230 # Check the compiler produces executables we can run.  If not, either
2231 # the compiler is broken, or we cross compile.
2232 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2233 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2234 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2235 # If not cross compiling, check that we can run a simple program.
2236 if test "$cross_compiling" != yes; then
2237   if { ac_try='./$ac_file'
2238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239   (eval $ac_try) 2>&5
2240   ac_status=$?
2241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242   (exit $ac_status); }; }; then
2243     cross_compiling=no
2244   else
2245     if test "$cross_compiling" = maybe; then
2246         cross_compiling=yes
2247     else
2248         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2249 If you meant to cross compile, use \`--host'.
2250 See \`config.log' for more details." >&5
2251 echo "$as_me: error: cannot run C compiled programs.
2252 If you meant to cross compile, use \`--host'.
2253 See \`config.log' for more details." >&2;}
2254    { (exit 1); exit 1; }; }
2255     fi
2256   fi
2257 fi
2258 echo "$as_me:$LINENO: result: yes" >&5
2259 echo "${ECHO_T}yes" >&6
2260
2261 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2262 ac_clean_files=$ac_clean_files_save
2263 # Check the compiler produces executables we can run.  If not, either
2264 # the compiler is broken, or we cross compile.
2265 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2266 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2267 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2268 echo "${ECHO_T}$cross_compiling" >&6
2269
2270 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2271 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2273   (eval $ac_link) 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }; then
2277   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2278 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2279 # work properly (i.e., refer to `conftest.exe'), while it won't with
2280 # `rm'.
2281 for ac_file in conftest.exe conftest conftest.*; do
2282   test -f "$ac_file" || continue
2283   case $ac_file in
2284     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2285     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2286           export ac_cv_exeext
2287           break;;
2288     * ) break;;
2289   esac
2290 done
2291 else
2292   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2293 See \`config.log' for more details." >&5
2294 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2295 See \`config.log' for more details." >&2;}
2296    { (exit 1); exit 1; }; }
2297 fi
2298
2299 rm -f conftest$ac_cv_exeext
2300 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2301 echo "${ECHO_T}$ac_cv_exeext" >&6
2302
2303 rm -f conftest.$ac_ext
2304 EXEEXT=$ac_cv_exeext
2305 ac_exeext=$EXEEXT
2306 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2307 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2308 if test "${ac_cv_objext+set}" = set; then
2309   echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311   cat >conftest.$ac_ext <<_ACEOF
2312 /* confdefs.h.  */
2313 _ACEOF
2314 cat confdefs.h >>conftest.$ac_ext
2315 cat >>conftest.$ac_ext <<_ACEOF
2316 /* end confdefs.h.  */
2317
2318 int
2319 main ()
2320 {
2321
2322   ;
2323   return 0;
2324 }
2325 _ACEOF
2326 rm -f conftest.o conftest.obj
2327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2328   (eval $ac_compile) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }; then
2332   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2333   case $ac_file in
2334     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2335     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2336        break;;
2337   esac
2338 done
2339 else
2340   echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2342
2343 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2344 See \`config.log' for more details." >&5
2345 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2346 See \`config.log' for more details." >&2;}
2347    { (exit 1); exit 1; }; }
2348 fi
2349
2350 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2351 fi
2352 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2353 echo "${ECHO_T}$ac_cv_objext" >&6
2354 OBJEXT=$ac_cv_objext
2355 ac_objext=$OBJEXT
2356 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2357 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2358 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2359   echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361   cat >conftest.$ac_ext <<_ACEOF
2362 /* confdefs.h.  */
2363 _ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h.  */
2367
2368 int
2369 main ()
2370 {
2371 #ifndef __GNUC__
2372        choke me
2373 #endif
2374
2375   ;
2376   return 0;
2377 }
2378 _ACEOF
2379 rm -f conftest.$ac_objext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381   (eval $ac_compile) 2>conftest.er1
2382   ac_status=$?
2383   grep -v '^ *+' conftest.er1 >conftest.err
2384   rm -f conftest.er1
2385   cat conftest.err >&5
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); } &&
2388          { ac_try='test -z "$ac_c_werror_flag"
2389                          || test ! -s conftest.err'
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); }; } &&
2395          { ac_try='test -s conftest.$ac_objext'
2396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397   (eval $ac_try) 2>&5
2398   ac_status=$?
2399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400   (exit $ac_status); }; }; then
2401   ac_compiler_gnu=yes
2402 else
2403   echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2405
2406 ac_compiler_gnu=no
2407 fi
2408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2409 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2410
2411 fi
2412 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2413 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2414 GCC=`test $ac_compiler_gnu = yes && echo yes`
2415 ac_test_CFLAGS=${CFLAGS+set}
2416 ac_save_CFLAGS=$CFLAGS
2417 CFLAGS="-g"
2418 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2419 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2420 if test "${ac_cv_prog_cc_g+set}" = set; then
2421   echo $ECHO_N "(cached) $ECHO_C" >&6
2422 else
2423   cat >conftest.$ac_ext <<_ACEOF
2424 /* confdefs.h.  */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h.  */
2429
2430 int
2431 main ()
2432 {
2433
2434   ;
2435   return 0;
2436 }
2437 _ACEOF
2438 rm -f conftest.$ac_objext
2439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2440   (eval $ac_compile) 2>conftest.er1
2441   ac_status=$?
2442   grep -v '^ *+' conftest.er1 >conftest.err
2443   rm -f conftest.er1
2444   cat conftest.err >&5
2445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446   (exit $ac_status); } &&
2447          { ac_try='test -z "$ac_c_werror_flag"
2448                          || test ! -s conftest.err'
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); }; } &&
2454          { ac_try='test -s conftest.$ac_objext'
2455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456   (eval $ac_try) 2>&5
2457   ac_status=$?
2458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459   (exit $ac_status); }; }; then
2460   ac_cv_prog_cc_g=yes
2461 else
2462   echo "$as_me: failed program was:" >&5
2463 sed 's/^/| /' conftest.$ac_ext >&5
2464
2465 ac_cv_prog_cc_g=no
2466 fi
2467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2468 fi
2469 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2470 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2471 if test "$ac_test_CFLAGS" = set; then
2472   CFLAGS=$ac_save_CFLAGS
2473 elif test $ac_cv_prog_cc_g = yes; then
2474   if test "$GCC" = yes; then
2475     CFLAGS="-g -O2"
2476   else
2477     CFLAGS="-g"
2478   fi
2479 else
2480   if test "$GCC" = yes; then
2481     CFLAGS="-O2"
2482   else
2483     CFLAGS=
2484   fi
2485 fi
2486 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2487 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2488 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2489   echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491   ac_cv_prog_cc_stdc=no
2492 ac_save_CC=$CC
2493 cat >conftest.$ac_ext <<_ACEOF
2494 /* confdefs.h.  */
2495 _ACEOF
2496 cat confdefs.h >>conftest.$ac_ext
2497 cat >>conftest.$ac_ext <<_ACEOF
2498 /* end confdefs.h.  */
2499 #include <stdarg.h>
2500 #include <stdio.h>
2501 #include <sys/types.h>
2502 #include <sys/stat.h>
2503 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2504 struct buf { int x; };
2505 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2506 static char *e (p, i)
2507      char **p;
2508      int i;
2509 {
2510   return p[i];
2511 }
2512 static char *f (char * (*g) (char **, int), char **p, ...)
2513 {
2514   char *s;
2515   va_list v;
2516   va_start (v,p);
2517   s = g (p, va_arg (v,int));
2518   va_end (v);
2519   return s;
2520 }
2521
2522 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2523    function prototypes and stuff, but not '\xHH' hex character constants.
2524    These don't provoke an error unfortunately, instead are silently treated
2525    as 'x'.  The following induces an error, until -std1 is added to get
2526    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2527    array size at least.  It's necessary to write '\x00'==0 to get something
2528    that's true only with -std1.  */
2529 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2530
2531 int test (int i, double x);
2532 struct s1 {int (*f) (int a);};
2533 struct s2 {int (*f) (double a);};
2534 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2535 int argc;
2536 char **argv;
2537 int
2538 main ()
2539 {
2540 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2541   ;
2542   return 0;
2543 }
2544 _ACEOF
2545 # Don't try gcc -ansi; that turns off useful extensions and
2546 # breaks some systems' header files.
2547 # AIX                   -qlanglvl=ansi
2548 # Ultrix and OSF/1      -std1
2549 # HP-UX 10.20 and later -Ae
2550 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2551 # SVR4                  -Xc -D__EXTENSIONS__
2552 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2553 do
2554   CC="$ac_save_CC $ac_arg"
2555   rm -f conftest.$ac_objext
2556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2557   (eval $ac_compile) 2>conftest.er1
2558   ac_status=$?
2559   grep -v '^ *+' conftest.er1 >conftest.err
2560   rm -f conftest.er1
2561   cat conftest.err >&5
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); } &&
2564          { ac_try='test -z "$ac_c_werror_flag"
2565                          || test ! -s conftest.err'
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); }; } &&
2571          { ac_try='test -s conftest.$ac_objext'
2572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573   (eval $ac_try) 2>&5
2574   ac_status=$?
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); }; }; then
2577   ac_cv_prog_cc_stdc=$ac_arg
2578 break
2579 else
2580   echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2582
2583 fi
2584 rm -f conftest.err conftest.$ac_objext
2585 done
2586 rm -f conftest.$ac_ext conftest.$ac_objext
2587 CC=$ac_save_CC
2588
2589 fi
2590
2591 case "x$ac_cv_prog_cc_stdc" in
2592   x|xno)
2593     echo "$as_me:$LINENO: result: none needed" >&5
2594 echo "${ECHO_T}none needed" >&6 ;;
2595   *)
2596     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2597 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2598     CC="$CC $ac_cv_prog_cc_stdc" ;;
2599 esac
2600
2601 # Some people use a C++ compiler to compile C.  Since we use `exit',
2602 # in C++ we need to declare it.  In case someone uses the same compiler
2603 # for both compiling C and C++ we need to have the C++ compiler decide
2604 # the declaration of exit, since it's the most demanding environment.
2605 cat >conftest.$ac_ext <<_ACEOF
2606 #ifndef __cplusplus
2607   choke me
2608 #endif
2609 _ACEOF
2610 rm -f conftest.$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612   (eval $ac_compile) 2>conftest.er1
2613   ac_status=$?
2614   grep -v '^ *+' conftest.er1 >conftest.err
2615   rm -f conftest.er1
2616   cat conftest.err >&5
2617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618   (exit $ac_status); } &&
2619          { ac_try='test -z "$ac_c_werror_flag"
2620                          || test ! -s conftest.err'
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); }; } &&
2626          { ac_try='test -s conftest.$ac_objext'
2627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628   (eval $ac_try) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); }; }; then
2632   for ac_declaration in \
2633    '' \
2634    'extern "C" void std::exit (int) throw (); using std::exit;' \
2635    'extern "C" void std::exit (int); using std::exit;' \
2636    'extern "C" void exit (int) throw ();' \
2637    'extern "C" void exit (int);' \
2638    'void exit (int);'
2639 do
2640   cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h.  */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h.  */
2646 $ac_declaration
2647 #include <stdlib.h>
2648 int
2649 main ()
2650 {
2651 exit (42);
2652   ;
2653   return 0;
2654 }
2655 _ACEOF
2656 rm -f conftest.$ac_objext
2657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658   (eval $ac_compile) 2>conftest.er1
2659   ac_status=$?
2660   grep -v '^ *+' conftest.er1 >conftest.err
2661   rm -f conftest.er1
2662   cat conftest.err >&5
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); } &&
2665          { ac_try='test -z "$ac_c_werror_flag"
2666                          || test ! -s conftest.err'
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); }; } &&
2672          { ac_try='test -s conftest.$ac_objext'
2673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674   (eval $ac_try) 2>&5
2675   ac_status=$?
2676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677   (exit $ac_status); }; }; then
2678   :
2679 else
2680   echo "$as_me: failed program was:" >&5
2681 sed 's/^/| /' conftest.$ac_ext >&5
2682
2683 continue
2684 fi
2685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686   cat >conftest.$ac_ext <<_ACEOF
2687 /* confdefs.h.  */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h.  */
2692 $ac_declaration
2693 int
2694 main ()
2695 {
2696 exit (42);
2697   ;
2698   return 0;
2699 }
2700 _ACEOF
2701 rm -f conftest.$ac_objext
2702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703   (eval $ac_compile) 2>conftest.er1
2704   ac_status=$?
2705   grep -v '^ *+' conftest.er1 >conftest.err
2706   rm -f conftest.er1
2707   cat conftest.err >&5
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); } &&
2710          { ac_try='test -z "$ac_c_werror_flag"
2711                          || test ! -s conftest.err'
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); }; } &&
2717          { ac_try='test -s conftest.$ac_objext'
2718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719   (eval $ac_try) 2>&5
2720   ac_status=$?
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); }; }; then
2723   break
2724 else
2725   echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2727
2728 fi
2729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2730 done
2731 rm -f conftest*
2732 if test -n "$ac_declaration"; then
2733   echo '#ifdef __cplusplus' >>confdefs.h
2734   echo $ac_declaration      >>confdefs.h
2735   echo '#endif'             >>confdefs.h
2736 fi
2737
2738 else
2739   echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2741
2742 fi
2743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2744 ac_ext=c
2745 ac_cpp='$CPP $CPPFLAGS'
2746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749
2750
2751 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2752 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2753 if test "${ac_cv_c_bigendian+set}" = set; then
2754   echo $ECHO_N "(cached) $ECHO_C" >&6
2755 else
2756   # See if sys/param.h defines the BYTE_ORDER macro.
2757 cat >conftest.$ac_ext <<_ACEOF
2758 /* confdefs.h.  */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h.  */
2763 #include <sys/types.h>
2764 #include <sys/param.h>
2765
2766 int
2767 main ()
2768 {
2769 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2770  bogus endian macros
2771 #endif
2772
2773   ;
2774   return 0;
2775 }
2776 _ACEOF
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779   (eval $ac_compile) 2>conftest.er1
2780   ac_status=$?
2781   grep -v '^ *+' conftest.er1 >conftest.err
2782   rm -f conftest.er1
2783   cat conftest.err >&5
2784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785   (exit $ac_status); } &&
2786          { ac_try='test -z "$ac_c_werror_flag"
2787                          || test ! -s conftest.err'
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); }; } &&
2793          { ac_try='test -s conftest.$ac_objext'
2794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795   (eval $ac_try) 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }; }; then
2799   # It does; now see whether it defined to BIG_ENDIAN or not.
2800 cat >conftest.$ac_ext <<_ACEOF
2801 /* confdefs.h.  */
2802 _ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h.  */
2806 #include <sys/types.h>
2807 #include <sys/param.h>
2808
2809 int
2810 main ()
2811 {
2812 #if BYTE_ORDER != BIG_ENDIAN
2813  not big endian
2814 #endif
2815
2816   ;
2817   return 0;
2818 }
2819 _ACEOF
2820 rm -f conftest.$ac_objext
2821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822   (eval $ac_compile) 2>conftest.er1
2823   ac_status=$?
2824   grep -v '^ *+' conftest.er1 >conftest.err
2825   rm -f conftest.er1
2826   cat conftest.err >&5
2827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828   (exit $ac_status); } &&
2829          { ac_try='test -z "$ac_c_werror_flag"
2830                          || test ! -s conftest.err'
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); }; } &&
2836          { ac_try='test -s conftest.$ac_objext'
2837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838   (eval $ac_try) 2>&5
2839   ac_status=$?
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); }; }; then
2842   ac_cv_c_bigendian=yes
2843 else
2844   echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2846
2847 ac_cv_c_bigendian=no
2848 fi
2849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2850 else
2851   echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2853
2854 # It does not; compile a test program.
2855 if test "$cross_compiling" = yes; then
2856   # try to guess the endianness by grepping values into an object file
2857   ac_cv_c_bigendian=unknown
2858   cat >conftest.$ac_ext <<_ACEOF
2859 /* confdefs.h.  */
2860 _ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h.  */
2864 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2865 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2866 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2867 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2868 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2869 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2870 int
2871 main ()
2872 {
2873  _ascii (); _ebcdic ();
2874   ;
2875   return 0;
2876 }
2877 _ACEOF
2878 rm -f conftest.$ac_objext
2879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2880   (eval $ac_compile) 2>conftest.er1
2881   ac_status=$?
2882   grep -v '^ *+' conftest.er1 >conftest.err
2883   rm -f conftest.er1
2884   cat conftest.err >&5
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); } &&
2887          { ac_try='test -z "$ac_c_werror_flag"
2888                          || test ! -s conftest.err'
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); }; } &&
2894          { ac_try='test -s conftest.$ac_objext'
2895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896   (eval $ac_try) 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }; }; then
2900   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2901   ac_cv_c_bigendian=yes
2902 fi
2903 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2904   if test "$ac_cv_c_bigendian" = unknown; then
2905     ac_cv_c_bigendian=no
2906   else
2907     # finding both strings is unlikely to happen, but who knows?
2908     ac_cv_c_bigendian=unknown
2909   fi
2910 fi
2911 else
2912   echo "$as_me: failed program was:" >&5
2913 sed 's/^/| /' conftest.$ac_ext >&5
2914
2915 fi
2916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2917 else
2918   cat >conftest.$ac_ext <<_ACEOF
2919 /* confdefs.h.  */
2920 _ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h.  */
2924 int
2925 main ()
2926 {
2927   /* Are we little or big endian?  From Harbison&Steele.  */
2928   union
2929   {
2930     long l;
2931     char c[sizeof (long)];
2932   } u;
2933   u.l = 1;
2934   exit (u.c[sizeof (long) - 1] == 1);
2935 }
2936 _ACEOF
2937 rm -f conftest$ac_exeext
2938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2939   (eval $ac_link) 2>&5
2940   ac_status=$?
2941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944   (eval $ac_try) 2>&5
2945   ac_status=$?
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); }; }; then
2948   ac_cv_c_bigendian=no
2949 else
2950   echo "$as_me: program exited with status $ac_status" >&5
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2953
2954 ( exit $ac_status )
2955 ac_cv_c_bigendian=yes
2956 fi
2957 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2958 fi
2959 fi
2960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2961 fi
2962 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2963 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2964 case $ac_cv_c_bigendian in
2965   yes)
2966     ENDIAN=big
2967  ;;
2968   no)
2969     ENDIAN=little
2970  ;;
2971   *)
2972     { { echo "$as_me:$LINENO: error: unknown endianness
2973 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2974 echo "$as_me: error: unknown endianness
2975 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2976    { (exit 1); exit 1; }; } ;;
2977 esac
2978
2979
2980 if test "$cross_compiling" = yes; then
2981   LLVM_CROSS_COMPILING=1
2982
2983
2984 echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
2985 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6
2986 if test "${ac_cv_build_exeext+set}" = set; then
2987   echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2990   ac_cv_build_exeext=.exe
2991 else
2992   ac_build_prefix=${build_alias}-
2993
2994   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
2995 set dummy ${ac_build_prefix}gcc; ac_word=$2
2996 echo "$as_me:$LINENO: checking for $ac_word" >&5
2997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2998 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
2999   echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001   if test -n "$BUILD_CC"; then
3002   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3006 do
3007   IFS=$as_save_IFS
3008   test -z "$as_dir" && as_dir=.
3009   for ac_exec_ext in '' $ac_executable_extensions; do
3010   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3011     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
3012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3013     break 2
3014   fi
3015 done
3016 done
3017
3018 fi
3019 fi
3020 BUILD_CC=$ac_cv_prog_BUILD_CC
3021 if test -n "$BUILD_CC"; then
3022   echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3023 echo "${ECHO_T}$BUILD_CC" >&6
3024 else
3025   echo "$as_me:$LINENO: result: no" >&5
3026 echo "${ECHO_T}no" >&6
3027 fi
3028
3029   if test -z "$BUILD_CC"; then
3030      # Extract the first word of "gcc", so it can be a program name with args.
3031 set dummy gcc; ac_word=$2
3032 echo "$as_me:$LINENO: checking for $ac_word" >&5
3033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3034 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3035   echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037   if test -n "$BUILD_CC"; then
3038   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3042 do
3043   IFS=$as_save_IFS
3044   test -z "$as_dir" && as_dir=.
3045   for ac_exec_ext in '' $ac_executable_extensions; do
3046   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047     ac_cv_prog_BUILD_CC="gcc"
3048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049     break 2
3050   fi
3051 done
3052 done
3053
3054 fi
3055 fi
3056 BUILD_CC=$ac_cv_prog_BUILD_CC
3057 if test -n "$BUILD_CC"; then
3058   echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3059 echo "${ECHO_T}$BUILD_CC" >&6
3060 else
3061   echo "$as_me:$LINENO: result: no" >&5
3062 echo "${ECHO_T}no" >&6
3063 fi
3064
3065      if test -z "$BUILD_CC"; then
3066        # Extract the first word of "cc", so it can be a program name with args.
3067 set dummy cc; ac_word=$2
3068 echo "$as_me:$LINENO: checking for $ac_word" >&5
3069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3070 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3071   echo $ECHO_N "(cached) $ECHO_C" >&6
3072 else
3073   if test -n "$BUILD_CC"; then
3074   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3075 else
3076   ac_prog_rejected=no
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3079 do
3080   IFS=$as_save_IFS
3081   test -z "$as_dir" && as_dir=.
3082   for ac_exec_ext in '' $ac_executable_extensions; do
3083   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3084     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3085        ac_prog_rejected=yes
3086        continue
3087      fi
3088     ac_cv_prog_BUILD_CC="cc"
3089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090     break 2
3091   fi
3092 done
3093 done
3094
3095 if test $ac_prog_rejected = yes; then
3096   # We found a bogon in the path, so make sure we never use it.
3097   set dummy $ac_cv_prog_BUILD_CC
3098   shift
3099   if test $# != 0; then
3100     # We chose a different compiler from the bogus one.
3101     # However, it has the same basename, so the bogon will be chosen
3102     # first if we set BUILD_CC to just the basename; use the full file name.
3103     shift
3104     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
3105   fi
3106 fi
3107 fi
3108 fi
3109 BUILD_CC=$ac_cv_prog_BUILD_CC
3110 if test -n "$BUILD_CC"; then
3111   echo "$as_me:$LINENO: result: $BUILD_CC" >&5
3112 echo "${ECHO_T}$BUILD_CC" >&6
3113 else
3114   echo "$as_me:$LINENO: result: no" >&5
3115 echo "${ECHO_T}no" >&6
3116 fi
3117
3118      fi
3119   fi
3120   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
3121 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3122    { (exit 1); exit 1; }; }
3123   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3124   rm -f conftest*
3125   echo 'int main () { return 0; }' > conftest.$ac_ext
3126   ac_cv_build_exeext=
3127   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
3128   (eval $ac_build_link) 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); }; then
3132     for file in conftest.*; do
3133       case $file in
3134       *.c | *.o | *.obj) ;;
3135       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
3136       esac
3137     done
3138   else
3139     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
3140 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
3141    { (exit 1); exit 1; }; }
3142   fi
3143   rm -f conftest*
3144   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
3145 fi
3146 fi
3147
3148 BUILD_EXEEXT=""
3149 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
3150 echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
3151 echo "${ECHO_T}${ac_cv_build_exeext}" >&6
3152 ac_build_exeext=$BUILD_EXEEXT
3153
3154 else
3155   LLVM_CROSS_COMPILING=0
3156
3157 fi
3158
3159 if test -d "CVS" -o -d "${srcdir}/CVS"; then
3160   cvsbuild="yes"
3161   optimize="no"
3162   CVSBUILD=CVSBUILD=1
3163
3164 else
3165   cvsbuild="no"
3166   optimize="yes"
3167 fi
3168
3169
3170 # Check whether --enable-optimized or --disable-optimized was given.
3171 if test "${enable_optimized+set}" = set; then
3172   enableval="$enable_optimized"
3173
3174 else
3175   enableval=$optimize
3176 fi;
3177 if test ${enableval} = "no" ; then
3178   ENABLE_OPTIMIZED=
3179
3180 else
3181   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
3182
3183 fi
3184
3185 # Check whether --enable-assertions or --disable-assertions was given.
3186 if test "${enable_assertions+set}" = set; then
3187   enableval="$enable_assertions"
3188
3189 else
3190   enableval="yes"
3191 fi;
3192 if test ${enableval} = "yes" ; then
3193   DISABLE_ASSERTIONS=
3194
3195 else
3196   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
3197
3198 fi
3199
3200 # Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3201 if test "${enable_debug_runtime+set}" = set; then
3202   enableval="$enable_debug_runtime"
3203
3204 else
3205   enableval=no
3206 fi;
3207 if test ${enableval} = "no" ; then
3208   DEBUG_RUNTIME=
3209
3210 else
3211   DEBUG_RUNTIME=DEBUG_RUNTIME=1
3212
3213 fi
3214
3215 # Check whether --enable-jit or --disable-jit was given.
3216 if test "${enable_jit+set}" = set; then
3217   enableval="$enable_jit"
3218
3219 else
3220   enableval=default
3221 fi;
3222 if test ${enableval} = "no"
3223 then
3224   JIT=
3225
3226 else
3227   case "$llvm_cv_target_arch" in
3228     x86)     TARGET_HAS_JIT=1
3229  ;;
3230     Sparc)   TARGET_HAS_JIT=1
3231  ;;
3232     PowerPC) TARGET_HAS_JIT=1
3233  ;;
3234     x86_64)  TARGET_HAS_JIT=0
3235  ;;
3236     Alpha)   TARGET_HAS_JIT=1
3237  ;;
3238     IA64)    TARGET_HAS_JIT=0
3239  ;;
3240     *)       TARGET_HAS_JIT=0
3241  ;;
3242   esac
3243 fi
3244
3245 # Check whether --enable-doxygen or --disable-doxygen was given.
3246 if test "${enable_doxygen+set}" = set; then
3247   enableval="$enable_doxygen"
3248
3249 else
3250   enableval=default
3251 fi;
3252 case "$enableval" in
3253   yes) ENABLE_DOXYGEN=1
3254  ;;
3255   no)  ENABLE_DOXYGEN=0
3256  ;;
3257   default) ENABLE_DOXYGEN=0
3258  ;;
3259   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3260 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3261    { (exit 1); exit 1; }; } ;;
3262 esac
3263
3264 # Check whether --enable-threads or --disable-threads was given.
3265 if test "${enable_threads+set}" = set; then
3266   enableval="$enable_threads"
3267
3268 else
3269   enableval=yes
3270 fi;
3271 case "$enableval" in
3272   yes) ENABLE_THREADS=1
3273  ;;
3274   no)  ENABLE_THREADS=0
3275  ;;
3276   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3277 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3278    { (exit 1); exit 1; }; } ;;
3279 esac
3280
3281 cat >>confdefs.h <<_ACEOF
3282 #define ENABLE_THREADS $ENABLE_THREADS
3283 _ACEOF
3284
3285
3286 TARGETS_TO_BUILD=""
3287 # Check whether --enable-targets or --disable-targets was given.
3288 if test "${enable_targets+set}" = set; then
3289   enableval="$enable_targets"
3290
3291 else
3292   enableval=all
3293 fi;
3294 case "$enableval" in
3295   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
3296   host-only)
3297     case "$llvm_cv_target_arch" in
3298       x86)     TARGETS_TO_BUILD="X86" ;;
3299       x86_64)  TARGETS_TO_BUILD="X86" ;;
3300       Sparc)   TARGETS_TO_BUILD="Sparc" ;;
3301       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3302       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
3303       IA64)    TARGETS_TO_BUILD="IA64" ;;
3304       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3305 echo "$as_me: error: Can not set target to build" >&2;}
3306    { (exit 1); exit 1; }; } ;;
3307     esac
3308     ;;
3309   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3310       case "$a_target" in
3311         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3312         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3313         sparc)   TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
3314         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3315         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3316         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3317         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3318 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3319    { (exit 1); exit 1; }; } ;;
3320       esac
3321   done
3322   ;;
3323 esac
3324 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3325 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3326
3327
3328
3329 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3330 if test "${with_llvmgccdir+set}" = set; then
3331   withval="$with_llvmgccdir"
3332
3333 else
3334   withval=default
3335 fi;
3336 case "$withval" in
3337   default) WITH_LLVMGCCDIR=default ;;
3338   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
3339   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3340 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3341    { (exit 1); exit 1; }; } ;;
3342 esac
3343
3344
3345 # Check whether --with-extra-options or --without-extra-options was given.
3346 if test "${with_extra_options+set}" = set; then
3347   withval="$with_extra_options"
3348
3349 else
3350   extraopts=default
3351 fi;
3352 case "$extraopts" in
3353   default) EXTRA_OPTIONS= ;;
3354   *) EXTRA_OPTIONS=$extraopts ;;
3355 esac
3356 EXTRA_OPTIONS=$EXTRA_OPTIONS
3357
3358
3359
3360 ac_ext=c
3361 ac_cpp='$CPP $CPPFLAGS'
3362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3366 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3367 # On Suns, sometimes $CPP names a directory.
3368 if test -n "$CPP" && test -d "$CPP"; then
3369   CPP=
3370 fi
3371 if test -z "$CPP"; then
3372   if test "${ac_cv_prog_CPP+set}" = set; then
3373   echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375       # Double quotes because CPP needs to be expanded
3376     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3377     do
3378       ac_preproc_ok=false
3379 for ac_c_preproc_warn_flag in '' yes
3380 do
3381   # Use a header file that comes with gcc, so configuring glibc
3382   # with a fresh cross-compiler works.
3383   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384   # <limits.h> exists even on freestanding compilers.
3385   # On the NeXT, cc -E runs the code through the compiler's parser,
3386   # not just through cpp. "Syntax error" is here to catch this case.
3387   cat >conftest.$ac_ext <<_ACEOF
3388 /* confdefs.h.  */
3389 _ACEOF
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h.  */
3393 #ifdef __STDC__
3394 # include <limits.h>
3395 #else
3396 # include <assert.h>
3397 #endif
3398                      Syntax error
3399 _ACEOF
3400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3401   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3402   ac_status=$?
3403   grep -v '^ *+' conftest.er1 >conftest.err
3404   rm -f conftest.er1
3405   cat conftest.err >&5
3406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407   (exit $ac_status); } >/dev/null; then
3408   if test -s conftest.err; then
3409     ac_cpp_err=$ac_c_preproc_warn_flag
3410     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3411   else
3412     ac_cpp_err=
3413   fi
3414 else
3415   ac_cpp_err=yes
3416 fi
3417 if test -z "$ac_cpp_err"; then
3418   :
3419 else
3420   echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3422
3423   # Broken: fails on valid input.
3424 continue
3425 fi
3426 rm -f conftest.err conftest.$ac_ext
3427
3428   # OK, works on sane cases.  Now check whether non-existent headers
3429   # can be detected and how.
3430   cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h.  */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h.  */
3436 #include <ac_nonexistent.h>
3437 _ACEOF
3438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3439   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3440   ac_status=$?
3441   grep -v '^ *+' conftest.er1 >conftest.err
3442   rm -f conftest.er1
3443   cat conftest.err >&5
3444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445   (exit $ac_status); } >/dev/null; then
3446   if test -s conftest.err; then
3447     ac_cpp_err=$ac_c_preproc_warn_flag
3448     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449   else
3450     ac_cpp_err=
3451   fi
3452 else
3453   ac_cpp_err=yes
3454 fi
3455 if test -z "$ac_cpp_err"; then
3456   # Broken: success on invalid input.
3457 continue
3458 else
3459   echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3461
3462   # Passes both tests.
3463 ac_preproc_ok=:
3464 break
3465 fi
3466 rm -f conftest.err conftest.$ac_ext
3467
3468 done
3469 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3470 rm -f conftest.err conftest.$ac_ext
3471 if $ac_preproc_ok; then
3472   break
3473 fi
3474
3475     done
3476     ac_cv_prog_CPP=$CPP
3477
3478 fi
3479   CPP=$ac_cv_prog_CPP
3480 else
3481   ac_cv_prog_CPP=$CPP
3482 fi
3483 echo "$as_me:$LINENO: result: $CPP" >&5
3484 echo "${ECHO_T}$CPP" >&6
3485 ac_preproc_ok=false
3486 for ac_c_preproc_warn_flag in '' yes
3487 do
3488   # Use a header file that comes with gcc, so configuring glibc
3489   # with a fresh cross-compiler works.
3490   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3491   # <limits.h> exists even on freestanding compilers.
3492   # On the NeXT, cc -E runs the code through the compiler's parser,
3493   # not just through cpp. "Syntax error" is here to catch this case.
3494   cat >conftest.$ac_ext <<_ACEOF
3495 /* confdefs.h.  */
3496 _ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h.  */
3500 #ifdef __STDC__
3501 # include <limits.h>
3502 #else
3503 # include <assert.h>
3504 #endif
3505                      Syntax error
3506 _ACEOF
3507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3508   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3509   ac_status=$?
3510   grep -v '^ *+' conftest.er1 >conftest.err
3511   rm -f conftest.er1
3512   cat conftest.err >&5
3513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514   (exit $ac_status); } >/dev/null; then
3515   if test -s conftest.err; then
3516     ac_cpp_err=$ac_c_preproc_warn_flag
3517     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3518   else
3519     ac_cpp_err=
3520   fi
3521 else
3522   ac_cpp_err=yes
3523 fi
3524 if test -z "$ac_cpp_err"; then
3525   :
3526 else
3527   echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3529
3530   # Broken: fails on valid input.
3531 continue
3532 fi
3533 rm -f conftest.err conftest.$ac_ext
3534
3535   # OK, works on sane cases.  Now check whether non-existent headers
3536   # can be detected and how.
3537   cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h.  */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h.  */
3543 #include <ac_nonexistent.h>
3544 _ACEOF
3545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3546   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3547   ac_status=$?
3548   grep -v '^ *+' conftest.er1 >conftest.err
3549   rm -f conftest.er1
3550   cat conftest.err >&5
3551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552   (exit $ac_status); } >/dev/null; then
3553   if test -s conftest.err; then
3554     ac_cpp_err=$ac_c_preproc_warn_flag
3555     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3556   else
3557     ac_cpp_err=
3558   fi
3559 else
3560   ac_cpp_err=yes
3561 fi
3562 if test -z "$ac_cpp_err"; then
3563   # Broken: success on invalid input.
3564 continue
3565 else
3566   echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3568
3569   # Passes both tests.
3570 ac_preproc_ok=:
3571 break
3572 fi
3573 rm -f conftest.err conftest.$ac_ext
3574
3575 done
3576 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3577 rm -f conftest.err conftest.$ac_ext
3578 if $ac_preproc_ok; then
3579   :
3580 else
3581   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3582 See \`config.log' for more details." >&5
3583 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3584 See \`config.log' for more details." >&2;}
3585    { (exit 1); exit 1; }; }
3586 fi
3587
3588 ac_ext=c
3589 ac_cpp='$CPP $CPPFLAGS'
3590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3593
3594 ac_ext=c
3595 ac_cpp='$CPP $CPPFLAGS'
3596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3599 if test -n "$ac_tool_prefix"; then
3600   for ac_prog in gcc
3601   do
3602     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3604 echo "$as_me:$LINENO: checking for $ac_word" >&5
3605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3606 if test "${ac_cv_prog_CC+set}" = set; then
3607   echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609   if test -n "$CC"; then
3610   ac_cv_prog_CC="$CC" # Let the user override the test.
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3614 do
3615   IFS=$as_save_IFS
3616   test -z "$as_dir" && as_dir=.
3617   for ac_exec_ext in '' $ac_executable_extensions; do
3618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3621     break 2
3622   fi
3623 done
3624 done
3625
3626 fi
3627 fi
3628 CC=$ac_cv_prog_CC
3629 if test -n "$CC"; then
3630   echo "$as_me:$LINENO: result: $CC" >&5
3631 echo "${ECHO_T}$CC" >&6
3632 else
3633   echo "$as_me:$LINENO: result: no" >&5
3634 echo "${ECHO_T}no" >&6
3635 fi
3636
3637     test -n "$CC" && break
3638   done
3639 fi
3640 if test -z "$CC"; then
3641   ac_ct_CC=$CC
3642   for ac_prog in gcc
3643 do
3644   # Extract the first word of "$ac_prog", so it can be a program name with args.
3645 set dummy $ac_prog; ac_word=$2
3646 echo "$as_me:$LINENO: checking for $ac_word" >&5
3647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3649   echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651   if test -n "$ac_ct_CC"; then
3652   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3656 do
3657   IFS=$as_save_IFS
3658   test -z "$as_dir" && as_dir=.
3659   for ac_exec_ext in '' $ac_executable_extensions; do
3660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3661     ac_cv_prog_ac_ct_CC="$ac_prog"
3662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3663     break 2
3664   fi
3665 done
3666 done
3667
3668 fi
3669 fi
3670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3671 if test -n "$ac_ct_CC"; then
3672   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3673 echo "${ECHO_T}$ac_ct_CC" >&6
3674 else
3675   echo "$as_me:$LINENO: result: no" >&5
3676 echo "${ECHO_T}no" >&6
3677 fi
3678
3679   test -n "$ac_ct_CC" && break
3680 done
3681
3682   CC=$ac_ct_CC
3683 fi
3684
3685
3686 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3687 See \`config.log' for more details." >&5
3688 echo "$as_me: error: no acceptable C compiler found in \$PATH
3689 See \`config.log' for more details." >&2;}
3690    { (exit 1); exit 1; }; }
3691
3692 # Provide some information about the compiler.
3693 echo "$as_me:$LINENO:" \
3694      "checking for C compiler version" >&5
3695 ac_compiler=`set X $ac_compile; echo $2`
3696 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3697   (eval $ac_compiler --version </dev/null >&5) 2>&5
3698   ac_status=$?
3699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700   (exit $ac_status); }
3701 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3702   (eval $ac_compiler -v </dev/null >&5) 2>&5
3703   ac_status=$?
3704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705   (exit $ac_status); }
3706 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3707   (eval $ac_compiler -V </dev/null >&5) 2>&5
3708   ac_status=$?
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); }
3711
3712 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3713 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3714 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717   cat >conftest.$ac_ext <<_ACEOF
3718 /* confdefs.h.  */
3719 _ACEOF
3720 cat confdefs.h >>conftest.$ac_ext
3721 cat >>conftest.$ac_ext <<_ACEOF
3722 /* end confdefs.h.  */
3723
3724 int
3725 main ()
3726 {
3727 #ifndef __GNUC__
3728        choke me
3729 #endif
3730
3731   ;
3732   return 0;
3733 }
3734 _ACEOF
3735 rm -f conftest.$ac_objext
3736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3737   (eval $ac_compile) 2>conftest.er1
3738   ac_status=$?
3739   grep -v '^ *+' conftest.er1 >conftest.err
3740   rm -f conftest.er1
3741   cat conftest.err >&5
3742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743   (exit $ac_status); } &&
3744          { ac_try='test -z "$ac_c_werror_flag"
3745                          || test ! -s conftest.err'
3746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747   (eval $ac_try) 2>&5
3748   ac_status=$?
3749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750   (exit $ac_status); }; } &&
3751          { ac_try='test -s conftest.$ac_objext'
3752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753   (eval $ac_try) 2>&5
3754   ac_status=$?
3755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756   (exit $ac_status); }; }; then
3757   ac_compiler_gnu=yes
3758 else
3759   echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3761
3762 ac_compiler_gnu=no
3763 fi
3764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3765 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3766
3767 fi
3768 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3769 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3770 GCC=`test $ac_compiler_gnu = yes && echo yes`
3771 ac_test_CFLAGS=${CFLAGS+set}
3772 ac_save_CFLAGS=$CFLAGS
3773 CFLAGS="-g"
3774 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3775 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3776 if test "${ac_cv_prog_cc_g+set}" = set; then
3777   echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779   cat >conftest.$ac_ext <<_ACEOF
3780 /* confdefs.h.  */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h.  */
3785
3786 int
3787 main ()
3788 {
3789
3790   ;
3791   return 0;
3792 }
3793 _ACEOF
3794 rm -f conftest.$ac_objext
3795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3796   (eval $ac_compile) 2>conftest.er1
3797   ac_status=$?
3798   grep -v '^ *+' conftest.er1 >conftest.err
3799   rm -f conftest.er1
3800   cat conftest.err >&5
3801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802   (exit $ac_status); } &&
3803          { ac_try='test -z "$ac_c_werror_flag"
3804                          || test ! -s conftest.err'
3805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806   (eval $ac_try) 2>&5
3807   ac_status=$?
3808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809   (exit $ac_status); }; } &&
3810          { ac_try='test -s conftest.$ac_objext'
3811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812   (eval $ac_try) 2>&5
3813   ac_status=$?
3814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815   (exit $ac_status); }; }; then
3816   ac_cv_prog_cc_g=yes
3817 else
3818   echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3820
3821 ac_cv_prog_cc_g=no
3822 fi
3823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3824 fi
3825 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3826 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3827 if test "$ac_test_CFLAGS" = set; then
3828   CFLAGS=$ac_save_CFLAGS
3829 elif test $ac_cv_prog_cc_g = yes; then
3830   if test "$GCC" = yes; then
3831     CFLAGS="-g -O2"
3832   else
3833     CFLAGS="-g"
3834   fi
3835 else
3836   if test "$GCC" = yes; then
3837     CFLAGS="-O2"
3838   else
3839     CFLAGS=
3840   fi
3841 fi
3842 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3843 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3844 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3845   echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847   ac_cv_prog_cc_stdc=no
3848 ac_save_CC=$CC
3849 cat >conftest.$ac_ext <<_ACEOF
3850 /* confdefs.h.  */
3851 _ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h.  */
3855 #include <stdarg.h>
3856 #include <stdio.h>
3857 #include <sys/types.h>
3858 #include <sys/stat.h>
3859 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3860 struct buf { int x; };
3861 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3862 static char *e (p, i)
3863      char **p;
3864      int i;
3865 {
3866   return p[i];
3867 }
3868 static char *f (char * (*g) (char **, int), char **p, ...)
3869 {
3870   char *s;
3871   va_list v;
3872   va_start (v,p);
3873   s = g (p, va_arg (v,int));
3874   va_end (v);
3875   return s;
3876 }
3877
3878 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3879    function prototypes and stuff, but not '\xHH' hex character constants.
3880    These don't provoke an error unfortunately, instead are silently treated
3881    as 'x'.  The following induces an error, until -std1 is added to get
3882    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3883    array size at least.  It's necessary to write '\x00'==0 to get something
3884    that's true only with -std1.  */
3885 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3886
3887 int test (int i, double x);
3888 struct s1 {int (*f) (int a);};
3889 struct s2 {int (*f) (double a);};
3890 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3891 int argc;
3892 char **argv;
3893 int
3894 main ()
3895 {
3896 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3897   ;
3898   return 0;
3899 }
3900 _ACEOF
3901 # Don't try gcc -ansi; that turns off useful extensions and
3902 # breaks some systems' header files.
3903 # AIX                   -qlanglvl=ansi
3904 # Ultrix and OSF/1      -std1
3905 # HP-UX 10.20 and later -Ae
3906 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3907 # SVR4                  -Xc -D__EXTENSIONS__
3908 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3909 do
3910   CC="$ac_save_CC $ac_arg"
3911   rm -f conftest.$ac_objext
3912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3913   (eval $ac_compile) 2>conftest.er1
3914   ac_status=$?
3915   grep -v '^ *+' conftest.er1 >conftest.err
3916   rm -f conftest.er1
3917   cat conftest.err >&5
3918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919   (exit $ac_status); } &&
3920          { ac_try='test -z "$ac_c_werror_flag"
3921                          || test ! -s conftest.err'
3922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923   (eval $ac_try) 2>&5
3924   ac_status=$?
3925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926   (exit $ac_status); }; } &&
3927          { ac_try='test -s conftest.$ac_objext'
3928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929   (eval $ac_try) 2>&5
3930   ac_status=$?
3931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932   (exit $ac_status); }; }; then
3933   ac_cv_prog_cc_stdc=$ac_arg
3934 break
3935 else
3936   echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3938
3939 fi
3940 rm -f conftest.err conftest.$ac_objext
3941 done
3942 rm -f conftest.$ac_ext conftest.$ac_objext
3943 CC=$ac_save_CC
3944
3945 fi
3946
3947 case "x$ac_cv_prog_cc_stdc" in
3948   x|xno)
3949     echo "$as_me:$LINENO: result: none needed" >&5
3950 echo "${ECHO_T}none needed" >&6 ;;
3951   *)
3952     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3953 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3954     CC="$CC $ac_cv_prog_cc_stdc" ;;
3955 esac
3956
3957 # Some people use a C++ compiler to compile C.  Since we use `exit',
3958 # in C++ we need to declare it.  In case someone uses the same compiler
3959 # for both compiling C and C++ we need to have the C++ compiler decide
3960 # the declaration of exit, since it's the most demanding environment.
3961 cat >conftest.$ac_ext <<_ACEOF
3962 #ifndef __cplusplus
3963   choke me
3964 #endif
3965 _ACEOF
3966 rm -f conftest.$ac_objext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3968   (eval $ac_compile) 2>conftest.er1
3969   ac_status=$?
3970   grep -v '^ *+' conftest.er1 >conftest.err
3971   rm -f conftest.er1
3972   cat conftest.err >&5
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); } &&
3975          { ac_try='test -z "$ac_c_werror_flag"
3976                          || test ! -s conftest.err'
3977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978   (eval $ac_try) 2>&5
3979   ac_status=$?
3980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981   (exit $ac_status); }; } &&
3982          { ac_try='test -s conftest.$ac_objext'
3983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984   (eval $ac_try) 2>&5
3985   ac_status=$?
3986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987   (exit $ac_status); }; }; then
3988   for ac_declaration in \
3989    '' \
3990    'extern "C" void std::exit (int) throw (); using std::exit;' \
3991    'extern "C" void std::exit (int); using std::exit;' \
3992    'extern "C" void exit (int) throw ();' \
3993    'extern "C" void exit (int);' \
3994    'void exit (int);'
3995 do
3996   cat >conftest.$ac_ext <<_ACEOF
3997 /* confdefs.h.  */
3998 _ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h.  */
4002 $ac_declaration
4003 #include <stdlib.h>
4004 int
4005 main ()
4006 {
4007 exit (42);
4008   ;
4009   return 0;
4010 }
4011 _ACEOF
4012 rm -f conftest.$ac_objext
4013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4014   (eval $ac_compile) 2>conftest.er1
4015   ac_status=$?
4016   grep -v '^ *+' conftest.er1 >conftest.err
4017   rm -f conftest.er1
4018   cat conftest.err >&5
4019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020   (exit $ac_status); } &&
4021          { ac_try='test -z "$ac_c_werror_flag"
4022                          || test ! -s conftest.err'
4023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024   (eval $ac_try) 2>&5
4025   ac_status=$?
4026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027   (exit $ac_status); }; } &&
4028          { ac_try='test -s conftest.$ac_objext'
4029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030   (eval $ac_try) 2>&5
4031   ac_status=$?
4032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033   (exit $ac_status); }; }; then
4034   :
4035 else
4036   echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4038
4039 continue
4040 fi
4041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4042   cat >conftest.$ac_ext <<_ACEOF
4043 /* confdefs.h.  */
4044 _ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h.  */
4048 $ac_declaration
4049 int
4050 main ()
4051 {
4052 exit (42);
4053   ;
4054   return 0;
4055 }
4056 _ACEOF
4057 rm -f conftest.$ac_objext
4058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4059   (eval $ac_compile) 2>conftest.er1
4060   ac_status=$?
4061   grep -v '^ *+' conftest.er1 >conftest.err
4062   rm -f conftest.er1
4063   cat conftest.err >&5
4064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065   (exit $ac_status); } &&
4066          { ac_try='test -z "$ac_c_werror_flag"
4067                          || test ! -s conftest.err'
4068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069   (eval $ac_try) 2>&5
4070   ac_status=$?
4071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072   (exit $ac_status); }; } &&
4073          { ac_try='test -s conftest.$ac_objext'
4074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075   (eval $ac_try) 2>&5
4076   ac_status=$?
4077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078   (exit $ac_status); }; }; then
4079   break
4080 else
4081   echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4083
4084 fi
4085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4086 done
4087 rm -f conftest*
4088 if test -n "$ac_declaration"; then
4089   echo '#ifdef __cplusplus' >>confdefs.h
4090   echo $ac_declaration      >>confdefs.h
4091   echo '#endif'             >>confdefs.h
4092 fi
4093
4094 else
4095   echo "$as_me: failed program was:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4097
4098 fi
4099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4100 ac_ext=c
4101 ac_cpp='$CPP $CPPFLAGS'
4102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105
4106 ac_ext=cc
4107 ac_cpp='$CXXCPP $CPPFLAGS'
4108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4111 if test -n "$ac_tool_prefix"; then
4112   for ac_prog in $CCC g++
4113   do
4114     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4116 echo "$as_me:$LINENO: checking for $ac_word" >&5
4117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4118 if test "${ac_cv_prog_CXX+set}" = set; then
4119   echo $ECHO_N "(cached) $ECHO_C" >&6
4120 else
4121   if test -n "$CXX"; then
4122   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4123 else
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH
4126 do
4127   IFS=$as_save_IFS
4128   test -z "$as_dir" && as_dir=.
4129   for ac_exec_ext in '' $ac_executable_extensions; do
4130   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4131     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133     break 2
4134   fi
4135 done
4136 done
4137
4138 fi
4139 fi
4140 CXX=$ac_cv_prog_CXX
4141 if test -n "$CXX"; then
4142   echo "$as_me:$LINENO: result: $CXX" >&5
4143 echo "${ECHO_T}$CXX" >&6
4144 else
4145   echo "$as_me:$LINENO: result: no" >&5
4146 echo "${ECHO_T}no" >&6
4147 fi
4148
4149     test -n "$CXX" && break
4150   done
4151 fi
4152 if test -z "$CXX"; then
4153   ac_ct_CXX=$CXX
4154   for ac_prog in $CCC g++
4155 do
4156   # Extract the first word of "$ac_prog", so it can be a program name with args.
4157 set dummy $ac_prog; ac_word=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4161   echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163   if test -n "$ac_ct_CXX"; then
4164   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4168 do
4169   IFS=$as_save_IFS
4170   test -z "$as_dir" && as_dir=.
4171   for ac_exec_ext in '' $ac_executable_extensions; do
4172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173     ac_cv_prog_ac_ct_CXX="$ac_prog"
4174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175     break 2
4176   fi
4177 done
4178 done
4179
4180 fi
4181 fi
4182 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4183 if test -n "$ac_ct_CXX"; then
4184   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4185 echo "${ECHO_T}$ac_ct_CXX" >&6
4186 else
4187   echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6
4189 fi
4190
4191   test -n "$ac_ct_CXX" && break
4192 done
4193 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4194
4195   CXX=$ac_ct_CXX
4196 fi
4197
4198
4199 # Provide some information about the compiler.
4200 echo "$as_me:$LINENO:" \
4201      "checking for C++ compiler version" >&5
4202 ac_compiler=`set X $ac_compile; echo $2`
4203 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4204   (eval $ac_compiler --version </dev/null >&5) 2>&5
4205   ac_status=$?
4206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207   (exit $ac_status); }
4208 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4209   (eval $ac_compiler -v </dev/null >&5) 2>&5
4210   ac_status=$?
4211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212   (exit $ac_status); }
4213 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4214   (eval $ac_compiler -V </dev/null >&5) 2>&5
4215   ac_status=$?
4216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217   (exit $ac_status); }
4218
4219 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4220 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4221 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4222   echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224   cat >conftest.$ac_ext <<_ACEOF
4225 /* confdefs.h.  */
4226 _ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h.  */
4230
4231 int
4232 main ()
4233 {
4234 #ifndef __GNUC__
4235        choke me
4236 #endif
4237
4238   ;
4239   return 0;
4240 }
4241 _ACEOF
4242 rm -f conftest.$ac_objext
4243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4244   (eval $ac_compile) 2>conftest.er1
4245   ac_status=$?
4246   grep -v '^ *+' conftest.er1 >conftest.err
4247   rm -f conftest.er1
4248   cat conftest.err >&5
4249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250   (exit $ac_status); } &&
4251          { ac_try='test -z "$ac_cxx_werror_flag"
4252                          || test ! -s conftest.err'
4253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254   (eval $ac_try) 2>&5
4255   ac_status=$?
4256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257   (exit $ac_status); }; } &&
4258          { ac_try='test -s conftest.$ac_objext'
4259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260   (eval $ac_try) 2>&5
4261   ac_status=$?
4262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263   (exit $ac_status); }; }; then
4264   ac_compiler_gnu=yes
4265 else
4266   echo "$as_me: failed program was:" >&5
4267 sed 's/^/| /' conftest.$ac_ext >&5
4268
4269 ac_compiler_gnu=no
4270 fi
4271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4272 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4273
4274 fi
4275 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4276 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4277 GXX=`test $ac_compiler_gnu = yes && echo yes`
4278 ac_test_CXXFLAGS=${CXXFLAGS+set}
4279 ac_save_CXXFLAGS=$CXXFLAGS
4280 CXXFLAGS="-g"
4281 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4282 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4283 if test "${ac_cv_prog_cxx_g+set}" = set; then
4284   echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286   cat >conftest.$ac_ext <<_ACEOF
4287 /* confdefs.h.  */
4288 _ACEOF
4289 cat confdefs.h >>conftest.$ac_ext
4290 cat >>conftest.$ac_ext <<_ACEOF
4291 /* end confdefs.h.  */
4292
4293 int
4294 main ()
4295 {
4296
4297   ;
4298   return 0;
4299 }
4300 _ACEOF
4301 rm -f conftest.$ac_objext
4302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4303   (eval $ac_compile) 2>conftest.er1
4304   ac_status=$?
4305   grep -v '^ *+' conftest.er1 >conftest.err
4306   rm -f conftest.er1
4307   cat conftest.err >&5
4308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309   (exit $ac_status); } &&
4310          { ac_try='test -z "$ac_cxx_werror_flag"
4311                          || test ! -s conftest.err'
4312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313   (eval $ac_try) 2>&5
4314   ac_status=$?
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); }; } &&
4317          { ac_try='test -s conftest.$ac_objext'
4318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319   (eval $ac_try) 2>&5
4320   ac_status=$?
4321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322   (exit $ac_status); }; }; then
4323   ac_cv_prog_cxx_g=yes
4324 else
4325   echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4327
4328 ac_cv_prog_cxx_g=no
4329 fi
4330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4331 fi
4332 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4333 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4334 if test "$ac_test_CXXFLAGS" = set; then
4335   CXXFLAGS=$ac_save_CXXFLAGS
4336 elif test $ac_cv_prog_cxx_g = yes; then
4337   if test "$GXX" = yes; then
4338     CXXFLAGS="-g -O2"
4339   else
4340     CXXFLAGS="-g"
4341   fi
4342 else
4343   if test "$GXX" = yes; then
4344     CXXFLAGS="-O2"
4345   else
4346     CXXFLAGS=
4347   fi
4348 fi
4349 for ac_declaration in \
4350    '' \
4351    'extern "C" void std::exit (int) throw (); using std::exit;' \
4352    'extern "C" void std::exit (int); using std::exit;' \
4353    'extern "C" void exit (int) throw ();' \
4354    'extern "C" void exit (int);' \
4355    'void exit (int);'
4356 do
4357   cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h.  */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h.  */
4363 $ac_declaration
4364 #include <stdlib.h>
4365 int
4366 main ()
4367 {
4368 exit (42);
4369   ;
4370   return 0;
4371 }
4372 _ACEOF
4373 rm -f conftest.$ac_objext
4374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375   (eval $ac_compile) 2>conftest.er1
4376   ac_status=$?
4377   grep -v '^ *+' conftest.er1 >conftest.err
4378   rm -f conftest.er1
4379   cat conftest.err >&5
4380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381   (exit $ac_status); } &&
4382          { ac_try='test -z "$ac_cxx_werror_flag"
4383                          || test ! -s conftest.err'
4384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385   (eval $ac_try) 2>&5
4386   ac_status=$?
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); }; } &&
4389          { ac_try='test -s conftest.$ac_objext'
4390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391   (eval $ac_try) 2>&5
4392   ac_status=$?
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); }; }; then
4395   :
4396 else
4397   echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4399
4400 continue
4401 fi
4402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4403   cat >conftest.$ac_ext <<_ACEOF
4404 /* confdefs.h.  */
4405 _ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h.  */
4409 $ac_declaration
4410 int
4411 main ()
4412 {
4413 exit (42);
4414   ;
4415   return 0;
4416 }
4417 _ACEOF
4418 rm -f conftest.$ac_objext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420   (eval $ac_compile) 2>conftest.er1
4421   ac_status=$?
4422   grep -v '^ *+' conftest.er1 >conftest.err
4423   rm -f conftest.er1
4424   cat conftest.err >&5
4425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426   (exit $ac_status); } &&
4427          { ac_try='test -z "$ac_cxx_werror_flag"
4428                          || test ! -s conftest.err'
4429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430   (eval $ac_try) 2>&5
4431   ac_status=$?
4432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433   (exit $ac_status); }; } &&
4434          { ac_try='test -s conftest.$ac_objext'
4435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436   (eval $ac_try) 2>&5
4437   ac_status=$?
4438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439   (exit $ac_status); }; }; then
4440   break
4441 else
4442   echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4444
4445 fi
4446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4447 done
4448 rm -f conftest*
4449 if test -n "$ac_declaration"; then
4450   echo '#ifdef __cplusplus' >>confdefs.h
4451   echo $ac_declaration      >>confdefs.h
4452   echo '#endif'             >>confdefs.h
4453 fi
4454
4455 ac_ext=c
4456 ac_cpp='$CPP $CPPFLAGS'
4457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4460
4461 echo "$as_me:$LINENO: checking " >&5
4462 echo $ECHO_N "checking ... $ECHO_C" >&6
4463 if test "${ac_cv_has_flex+set}" = set; then
4464   echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466   for ac_prog in flex lex
4467 do
4468   # Extract the first word of "$ac_prog", so it can be a program name with args.
4469 set dummy $ac_prog; ac_word=$2
4470 echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472 if test "${ac_cv_prog_LEX+set}" = set; then
4473   echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475   if test -n "$LEX"; then
4476   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4477 else
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4480 do
4481   IFS=$as_save_IFS
4482   test -z "$as_dir" && as_dir=.
4483   for ac_exec_ext in '' $ac_executable_extensions; do
4484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485     ac_cv_prog_LEX="$ac_prog"
4486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487     break 2
4488   fi
4489 done
4490 done
4491
4492 fi
4493 fi
4494 LEX=$ac_cv_prog_LEX
4495 if test -n "$LEX"; then
4496   echo "$as_me:$LINENO: result: $LEX" >&5
4497 echo "${ECHO_T}$LEX" >&6
4498 else
4499   echo "$as_me:$LINENO: result: no" >&5
4500 echo "${ECHO_T}no" >&6
4501 fi
4502
4503   test -n "$LEX" && break
4504 done
4505 test -n "$LEX" || LEX=":"
4506
4507 if test -z "$LEXLIB"
4508 then
4509   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4510 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4511 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4512   echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514   ac_check_lib_save_LIBS=$LIBS
4515 LIBS="-lfl  $LIBS"
4516 cat >conftest.$ac_ext <<_ACEOF
4517 /* confdefs.h.  */
4518 _ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h.  */
4522
4523 /* Override any gcc2 internal prototype to avoid an error.  */
4524 #ifdef __cplusplus
4525 extern "C"
4526 #endif
4527 /* We use char because int might match the return type of a gcc2
4528    builtin and then its argument prototype would still apply.  */
4529 char yywrap ();
4530 int
4531 main ()
4532 {
4533 yywrap ();
4534   ;
4535   return 0;
4536 }
4537 _ACEOF
4538 rm -f conftest.$ac_objext conftest$ac_exeext
4539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4540   (eval $ac_link) 2>conftest.er1
4541   ac_status=$?
4542   grep -v '^ *+' conftest.er1 >conftest.err
4543   rm -f conftest.er1
4544   cat conftest.err >&5
4545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); } &&
4547          { ac_try='test -z "$ac_c_werror_flag"
4548                          || test ! -s conftest.err'
4549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550   (eval $ac_try) 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); }; } &&
4554          { ac_try='test -s conftest$ac_exeext'
4555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556   (eval $ac_try) 2>&5
4557   ac_status=$?
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); }; }; then
4560   ac_cv_lib_fl_yywrap=yes
4561 else
4562   echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4564
4565 ac_cv_lib_fl_yywrap=no
4566 fi
4567 rm -f conftest.err conftest.$ac_objext \
4568       conftest$ac_exeext conftest.$ac_ext
4569 LIBS=$ac_check_lib_save_LIBS
4570 fi
4571 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4572 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4573 if test $ac_cv_lib_fl_yywrap = yes; then
4574   LEXLIB="-lfl"
4575 else
4576   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4577 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4578 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4579   echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581   ac_check_lib_save_LIBS=$LIBS
4582 LIBS="-ll  $LIBS"
4583 cat >conftest.$ac_ext <<_ACEOF
4584 /* confdefs.h.  */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h.  */
4589
4590 /* Override any gcc2 internal prototype to avoid an error.  */
4591 #ifdef __cplusplus
4592 extern "C"
4593 #endif
4594 /* We use char because int might match the return type of a gcc2
4595    builtin and then its argument prototype would still apply.  */
4596 char yywrap ();
4597 int
4598 main ()
4599 {
4600 yywrap ();
4601   ;
4602   return 0;
4603 }
4604 _ACEOF
4605 rm -f conftest.$ac_objext conftest$ac_exeext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4607   (eval $ac_link) 2>conftest.er1
4608   ac_status=$?
4609   grep -v '^ *+' conftest.er1 >conftest.err
4610   rm -f conftest.er1
4611   cat conftest.err >&5
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); } &&
4614          { ac_try='test -z "$ac_c_werror_flag"
4615                          || test ! -s conftest.err'
4616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617   (eval $ac_try) 2>&5
4618   ac_status=$?
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); }; } &&
4621          { ac_try='test -s conftest$ac_exeext'
4622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623   (eval $ac_try) 2>&5
4624   ac_status=$?
4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626   (exit $ac_status); }; }; then
4627   ac_cv_lib_l_yywrap=yes
4628 else
4629   echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632 ac_cv_lib_l_yywrap=no
4633 fi
4634 rm -f conftest.err conftest.$ac_objext \
4635       conftest$ac_exeext conftest.$ac_ext
4636 LIBS=$ac_check_lib_save_LIBS
4637 fi
4638 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4639 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4640 if test $ac_cv_lib_l_yywrap = yes; then
4641   LEXLIB="-ll"
4642 fi
4643
4644 fi
4645
4646 fi
4647
4648 if test "x$LEX" != "x:"; then
4649   echo "$as_me:$LINENO: checking lex output file root" >&5
4650 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4651 if test "${ac_cv_prog_lex_root+set}" = set; then
4652   echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654   # The minimal lex program is just a single line: %%.  But some broken lexes
4655 # (Solaris, I think it was) want two %% lines, so accommodate them.
4656 cat >conftest.l <<_ACEOF
4657 %%
4658 %%
4659 _ACEOF
4660 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4661   (eval $LEX conftest.l) 2>&5
4662   ac_status=$?
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); }
4665 if test -f lex.yy.c; then
4666   ac_cv_prog_lex_root=lex.yy
4667 elif test -f lexyy.c; then
4668   ac_cv_prog_lex_root=lexyy
4669 else
4670   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4671 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4672    { (exit 1); exit 1; }; }
4673 fi
4674 fi
4675 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4676 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4677 rm -f conftest.l
4678 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4679
4680 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4681 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4682 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4683   echo $ECHO_N "(cached) $ECHO_C" >&6
4684 else
4685   # POSIX says lex can declare yytext either as a pointer or an array; the
4686 # default is implementation-dependent. Figure out which it is, since
4687 # not all implementations provide the %pointer and %array declarations.
4688 ac_cv_prog_lex_yytext_pointer=no
4689 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4690 ac_save_LIBS=$LIBS
4691 LIBS="$LIBS $LEXLIB"
4692 cat >conftest.$ac_ext <<_ACEOF
4693 `cat $LEX_OUTPUT_ROOT.c`
4694 _ACEOF
4695 rm -f conftest.$ac_objext conftest$ac_exeext
4696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4697   (eval $ac_link) 2>conftest.er1
4698   ac_status=$?
4699   grep -v '^ *+' conftest.er1 >conftest.err
4700   rm -f conftest.er1
4701   cat conftest.err >&5
4702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703   (exit $ac_status); } &&
4704          { ac_try='test -z "$ac_c_werror_flag"
4705                          || test ! -s conftest.err'
4706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707   (eval $ac_try) 2>&5
4708   ac_status=$?
4709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710   (exit $ac_status); }; } &&
4711          { ac_try='test -s conftest$ac_exeext'
4712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713   (eval $ac_try) 2>&5
4714   ac_status=$?
4715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716   (exit $ac_status); }; }; then
4717   ac_cv_prog_lex_yytext_pointer=yes
4718 else
4719   echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4721
4722 fi
4723 rm -f conftest.err conftest.$ac_objext \
4724       conftest$ac_exeext conftest.$ac_ext
4725 LIBS=$ac_save_LIBS
4726 rm -f "${LEX_OUTPUT_ROOT}.c"
4727
4728 fi
4729 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4730 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4731 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4732
4733 cat >>confdefs.h <<\_ACEOF
4734 #define YYTEXT_POINTER 1
4735 _ACEOF
4736
4737 fi
4738
4739 fi
4740
4741 fi
4742 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4743 echo "${ECHO_T}$ac_cv_has_flex" >&6
4744 if test "$LEX" != "flex"; then
4745   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4746 echo "$as_me: error: flex not found but required" >&2;}
4747    { (exit 1); exit 1; }; }
4748 else
4749   FLEX=flex
4750
4751 fi
4752
4753 echo "$as_me:$LINENO: checking " >&5
4754 echo $ECHO_N "checking ... $ECHO_C" >&6
4755 if test "${llvm_cv_has_bison+set}" = set; then
4756   echo $ECHO_N "(cached) $ECHO_C" >&6
4757 else
4758   for ac_prog in 'bison -y' byacc
4759 do
4760   # Extract the first word of "$ac_prog", so it can be a program name with args.
4761 set dummy $ac_prog; ac_word=$2
4762 echo "$as_me:$LINENO: checking for $ac_word" >&5
4763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4764 if test "${ac_cv_prog_YACC+set}" = set; then
4765   echo $ECHO_N "(cached) $ECHO_C" >&6
4766 else
4767   if test -n "$YACC"; then
4768   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4769 else
4770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4772 do
4773   IFS=$as_save_IFS
4774   test -z "$as_dir" && as_dir=.
4775   for ac_exec_ext in '' $ac_executable_extensions; do
4776   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4777     ac_cv_prog_YACC="$ac_prog"
4778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4779     break 2
4780   fi
4781 done
4782 done
4783
4784 fi
4785 fi
4786 YACC=$ac_cv_prog_YACC
4787 if test -n "$YACC"; then
4788   echo "$as_me:$LINENO: result: $YACC" >&5
4789 echo "${ECHO_T}$YACC" >&6
4790 else
4791   echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6
4793 fi
4794
4795   test -n "$YACC" && break
4796 done
4797 test -n "$YACC" || YACC="yacc"
4798
4799 fi
4800 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4801 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4802 if test "$YACC" != "bison -y"; then
4803   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4804 echo "$as_me: error: bison not found but required" >&2;}
4805    { (exit 1); exit 1; }; }
4806 else
4807   BISON=bison
4808
4809 fi
4810
4811 echo "$as_me:$LINENO: checking for GNU make" >&5
4812 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4813 if test "${llvm_cv_gnu_make_command+set}" = set; then
4814   echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816   llvm_cv_gnu_make_command=''
4817  for a in "$MAKE" make gmake gnumake ; do
4818   if test -z "$a" ; then continue ; fi ;
4819   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4820   then
4821    llvm_cv_gnu_make_command=$a ;
4822    break;
4823   fi
4824  done
4825 fi
4826 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4827 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4828  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4829    ifGNUmake='' ;
4830  else
4831    ifGNUmake='#' ;
4832    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4833 echo "${ECHO_T}\"Not found\"" >&6;
4834  fi
4835
4836
4837 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4838 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4839 LN_S=$as_ln_s
4840 if test "$LN_S" = "ln -s"; then
4841   echo "$as_me:$LINENO: result: yes" >&5
4842 echo "${ECHO_T}yes" >&6
4843 else
4844   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4845 echo "${ECHO_T}no, using $LN_S" >&6
4846 fi
4847
4848 # Extract the first word of "cmp", so it can be a program name with args.
4849 set dummy cmp; ac_word=$2
4850 echo "$as_me:$LINENO: checking for $ac_word" >&5
4851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4852 if test "${ac_cv_path_CMP+set}" = set; then
4853   echo $ECHO_N "(cached) $ECHO_C" >&6
4854 else
4855   case $CMP in
4856   [\\/]* | ?:[\\/]*)
4857   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4858   ;;
4859   *)
4860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH
4862 do
4863   IFS=$as_save_IFS
4864   test -z "$as_dir" && as_dir=.
4865   for ac_exec_ext in '' $ac_executable_extensions; do
4866   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4867     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4869     break 2
4870   fi
4871 done
4872 done
4873
4874   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4875   ;;
4876 esac
4877 fi
4878 CMP=$ac_cv_path_CMP
4879
4880 if test -n "$CMP"; then
4881   echo "$as_me:$LINENO: result: $CMP" >&5
4882 echo "${ECHO_T}$CMP" >&6
4883 else
4884   echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6
4886 fi
4887
4888 # Extract the first word of "cp", so it can be a program name with args.
4889 set dummy cp; ac_word=$2
4890 echo "$as_me:$LINENO: checking for $ac_word" >&5
4891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4892 if test "${ac_cv_path_CP+set}" = set; then
4893   echo $ECHO_N "(cached) $ECHO_C" >&6
4894 else
4895   case $CP in
4896   [\\/]* | ?:[\\/]*)
4897   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4898   ;;
4899   *)
4900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4902 do
4903   IFS=$as_save_IFS
4904   test -z "$as_dir" && as_dir=.
4905   for ac_exec_ext in '' $ac_executable_extensions; do
4906   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4907     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4909     break 2
4910   fi
4911 done
4912 done
4913
4914   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4915   ;;
4916 esac
4917 fi
4918 CP=$ac_cv_path_CP
4919
4920 if test -n "$CP"; then
4921   echo "$as_me:$LINENO: result: $CP" >&5
4922 echo "${ECHO_T}$CP" >&6
4923 else
4924   echo "$as_me:$LINENO: result: no" >&5
4925 echo "${ECHO_T}no" >&6
4926 fi
4927
4928 # Extract the first word of "date", so it can be a program name with args.
4929 set dummy date; ac_word=$2
4930 echo "$as_me:$LINENO: checking for $ac_word" >&5
4931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4932 if test "${ac_cv_path_DATE+set}" = set; then
4933   echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935   case $DATE in
4936   [\\/]* | ?:[\\/]*)
4937   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4938   ;;
4939   *)
4940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4942 do
4943   IFS=$as_save_IFS
4944   test -z "$as_dir" && as_dir=.
4945   for ac_exec_ext in '' $ac_executable_extensions; do
4946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4949     break 2
4950   fi
4951 done
4952 done
4953
4954   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4955   ;;
4956 esac
4957 fi
4958 DATE=$ac_cv_path_DATE
4959
4960 if test -n "$DATE"; then
4961   echo "$as_me:$LINENO: result: $DATE" >&5
4962 echo "${ECHO_T}$DATE" >&6
4963 else
4964   echo "$as_me:$LINENO: result: no" >&5
4965 echo "${ECHO_T}no" >&6
4966 fi
4967
4968 # Extract the first word of "find", so it can be a program name with args.
4969 set dummy find; ac_word=$2
4970 echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4972 if test "${ac_cv_path_FIND+set}" = set; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975   case $FIND in
4976   [\\/]* | ?:[\\/]*)
4977   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4978   ;;
4979   *)
4980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981 for as_dir in $PATH
4982 do
4983   IFS=$as_save_IFS
4984   test -z "$as_dir" && as_dir=.
4985   for ac_exec_ext in '' $ac_executable_extensions; do
4986   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4987     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4989     break 2
4990   fi
4991 done
4992 done
4993
4994   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4995   ;;
4996 esac
4997 fi
4998 FIND=$ac_cv_path_FIND
4999
5000 if test -n "$FIND"; then
5001   echo "$as_me:$LINENO: result: $FIND" >&5
5002 echo "${ECHO_T}$FIND" >&6
5003 else
5004   echo "$as_me:$LINENO: result: no" >&5
5005 echo "${ECHO_T}no" >&6
5006 fi
5007
5008 # Extract the first word of "grep", so it can be a program name with args.
5009 set dummy grep; ac_word=$2
5010 echo "$as_me:$LINENO: checking for $ac_word" >&5
5011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5012 if test "${ac_cv_path_GREP+set}" = set; then
5013   echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015   case $GREP in
5016   [\\/]* | ?:[\\/]*)
5017   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5018   ;;
5019   *)
5020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH
5022 do
5023   IFS=$as_save_IFS
5024   test -z "$as_dir" && as_dir=.
5025   for ac_exec_ext in '' $ac_executable_extensions; do
5026   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5027     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029     break 2
5030   fi
5031 done
5032 done
5033
5034   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5035   ;;
5036 esac
5037 fi
5038 GREP=$ac_cv_path_GREP
5039
5040 if test -n "$GREP"; then
5041   echo "$as_me:$LINENO: result: $GREP" >&5
5042 echo "${ECHO_T}$GREP" >&6
5043 else
5044   echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6
5046 fi
5047
5048 # Extract the first word of "mkdir", so it can be a program name with args.
5049 set dummy mkdir; ac_word=$2
5050 echo "$as_me:$LINENO: checking for $ac_word" >&5
5051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5052 if test "${ac_cv_path_MKDIR+set}" = set; then
5053   echo $ECHO_N "(cached) $ECHO_C" >&6
5054 else
5055   case $MKDIR in
5056   [\\/]* | ?:[\\/]*)
5057   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5058   ;;
5059   *)
5060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5062 do
5063   IFS=$as_save_IFS
5064   test -z "$as_dir" && as_dir=.
5065   for ac_exec_ext in '' $ac_executable_extensions; do
5066   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5069     break 2
5070   fi
5071 done
5072 done
5073
5074   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5075   ;;
5076 esac
5077 fi
5078 MKDIR=$ac_cv_path_MKDIR
5079
5080 if test -n "$MKDIR"; then
5081   echo "$as_me:$LINENO: result: $MKDIR" >&5
5082 echo "${ECHO_T}$MKDIR" >&6
5083 else
5084   echo "$as_me:$LINENO: result: no" >&5
5085 echo "${ECHO_T}no" >&6
5086 fi
5087
5088 # Extract the first word of "mv", so it can be a program name with args.
5089 set dummy mv; ac_word=$2
5090 echo "$as_me:$LINENO: checking for $ac_word" >&5
5091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5092 if test "${ac_cv_path_MV+set}" = set; then
5093   echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095   case $MV in
5096   [\\/]* | ?:[\\/]*)
5097   ac_cv_path_MV="$MV" # Let the user override the test with a path.
5098   ;;
5099   *)
5100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 for as_dir in $PATH
5102 do
5103   IFS=$as_save_IFS
5104   test -z "$as_dir" && as_dir=.
5105   for ac_exec_ext in '' $ac_executable_extensions; do
5106   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
5108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5109     break 2
5110   fi
5111 done
5112 done
5113
5114   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5115   ;;
5116 esac
5117 fi
5118 MV=$ac_cv_path_MV
5119
5120 if test -n "$MV"; then
5121   echo "$as_me:$LINENO: result: $MV" >&5
5122 echo "${ECHO_T}$MV" >&6
5123 else
5124   echo "$as_me:$LINENO: result: no" >&5
5125 echo "${ECHO_T}no" >&6
5126 fi
5127
5128 if test -n "$ac_tool_prefix"; then
5129   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5130 set dummy ${ac_tool_prefix}ranlib; 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_prog_RANLIB+set}" = set; then
5134   echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136   if test -n "$RANLIB"; then
5137   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5138 else
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5141 do
5142   IFS=$as_save_IFS
5143   test -z "$as_dir" && as_dir=.
5144   for ac_exec_ext in '' $ac_executable_extensions; do
5145   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5148     break 2
5149   fi
5150 done
5151 done
5152
5153 fi
5154 fi
5155 RANLIB=$ac_cv_prog_RANLIB
5156 if test -n "$RANLIB"; then
5157   echo "$as_me:$LINENO: result: $RANLIB" >&5
5158 echo "${ECHO_T}$RANLIB" >&6
5159 else
5160   echo "$as_me:$LINENO: result: no" >&5
5161 echo "${ECHO_T}no" >&6
5162 fi
5163
5164 fi
5165 if test -z "$ac_cv_prog_RANLIB"; then
5166   ac_ct_RANLIB=$RANLIB
5167   # Extract the first word of "ranlib", so it can be a program name with args.
5168 set dummy ranlib; ac_word=$2
5169 echo "$as_me:$LINENO: checking for $ac_word" >&5
5170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5171 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5172   echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174   if test -n "$ac_ct_RANLIB"; then
5175   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5176 else
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH
5179 do
5180   IFS=$as_save_IFS
5181   test -z "$as_dir" && as_dir=.
5182   for ac_exec_ext in '' $ac_executable_extensions; do
5183   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184     ac_cv_prog_ac_ct_RANLIB="ranlib"
5185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186     break 2
5187   fi
5188 done
5189 done
5190
5191   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5192 fi
5193 fi
5194 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5195 if test -n "$ac_ct_RANLIB"; then
5196   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5197 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5198 else
5199   echo "$as_me:$LINENO: result: no" >&5
5200 echo "${ECHO_T}no" >&6
5201 fi
5202
5203   RANLIB=$ac_ct_RANLIB
5204 else
5205   RANLIB="$ac_cv_prog_RANLIB"
5206 fi
5207
5208 # Extract the first word of "rm", so it can be a program name with args.
5209 set dummy rm; ac_word=$2
5210 echo "$as_me:$LINENO: checking for $ac_word" >&5
5211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5212 if test "${ac_cv_path_RM+set}" = set; then
5213   echo $ECHO_N "(cached) $ECHO_C" >&6
5214 else
5215   case $RM in
5216   [\\/]* | ?:[\\/]*)
5217   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5218   ;;
5219   *)
5220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5222 do
5223   IFS=$as_save_IFS
5224   test -z "$as_dir" && as_dir=.
5225   for ac_exec_ext in '' $ac_executable_extensions; do
5226   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5229     break 2
5230   fi
5231 done
5232 done
5233
5234   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5235   ;;
5236 esac
5237 fi
5238 RM=$ac_cv_path_RM
5239
5240 if test -n "$RM"; then
5241   echo "$as_me:$LINENO: result: $RM" >&5
5242 echo "${ECHO_T}$RM" >&6
5243 else
5244   echo "$as_me:$LINENO: result: no" >&5
5245 echo "${ECHO_T}no" >&6
5246 fi
5247
5248 # Extract the first word of "sed", so it can be a program name with args.
5249 set dummy sed; ac_word=$2
5250 echo "$as_me:$LINENO: checking for $ac_word" >&5
5251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5252 if test "${ac_cv_path_SED+set}" = set; then
5253   echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255   case $SED in
5256   [\\/]* | ?:[\\/]*)
5257   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5258   ;;
5259   *)
5260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH
5262 do
5263   IFS=$as_save_IFS
5264   test -z "$as_dir" && as_dir=.
5265   for ac_exec_ext in '' $ac_executable_extensions; do
5266   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5267     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5269     break 2
5270   fi
5271 done
5272 done
5273
5274   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5275   ;;
5276 esac
5277 fi
5278 SED=$ac_cv_path_SED
5279
5280 if test -n "$SED"; then
5281   echo "$as_me:$LINENO: result: $SED" >&5
5282 echo "${ECHO_T}$SED" >&6
5283 else
5284   echo "$as_me:$LINENO: result: no" >&5
5285 echo "${ECHO_T}no" >&6
5286 fi
5287
5288 # Extract the first word of "tar", so it can be a program name with args.
5289 set dummy tar; ac_word=$2
5290 echo "$as_me:$LINENO: checking for $ac_word" >&5
5291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5292 if test "${ac_cv_path_TAR+set}" = set; then
5293   echo $ECHO_N "(cached) $ECHO_C" >&6
5294 else
5295   case $TAR in
5296   [\\/]* | ?:[\\/]*)
5297   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5298   ;;
5299   *)
5300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303   IFS=$as_save_IFS
5304   test -z "$as_dir" && as_dir=.
5305   for ac_exec_ext in '' $ac_executable_extensions; do
5306   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5309     break 2
5310   fi
5311 done
5312 done
5313
5314   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5315   ;;
5316 esac
5317 fi
5318 TAR=$ac_cv_path_TAR
5319
5320 if test -n "$TAR"; then
5321   echo "$as_me:$LINENO: result: $TAR" >&5
5322 echo "${ECHO_T}$TAR" >&6
5323 else
5324   echo "$as_me:$LINENO: result: no" >&5
5325 echo "${ECHO_T}no" >&6
5326 fi
5327
5328
5329 # Extract the first word of "Graphviz", so it can be a program name with args.
5330 set dummy Graphviz; ac_word=$2
5331 echo "$as_me:$LINENO: checking for $ac_word" >&5
5332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5333 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5334   echo $ECHO_N "(cached) $ECHO_C" >&6
5335 else
5336   case $GRAPHVIZ in
5337   [\\/]* | ?:[\\/]*)
5338   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5339   ;;
5340   *)
5341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH
5343 do
5344   IFS=$as_save_IFS
5345   test -z "$as_dir" && as_dir=.
5346   for ac_exec_ext in '' $ac_executable_extensions; do
5347   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5348     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5350     break 2
5351   fi
5352 done
5353 done
5354
5355   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5356   ;;
5357 esac
5358 fi
5359 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5360
5361 if test -n "$GRAPHVIZ"; then
5362   echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5363 echo "${ECHO_T}$GRAPHVIZ" >&6
5364 else
5365   echo "$as_me:$LINENO: result: no" >&5
5366 echo "${ECHO_T}no" >&6
5367 fi
5368
5369 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5370
5371 cat >>confdefs.h <<\_ACEOF
5372 #define HAVE_GRAPHVIZ 1
5373 _ACEOF
5374
5375     if test "$llvm_cv_os_type" == "MingW" ; then
5376     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5377   fi
5378
5379 cat >>confdefs.h <<_ACEOF
5380 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
5381 _ACEOF
5382
5383 fi
5384 # Extract the first word of "dot", so it can be a program name with args.
5385 set dummy dot; ac_word=$2
5386 echo "$as_me:$LINENO: checking for $ac_word" >&5
5387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5388 if test "${ac_cv_path_DOT+set}" = set; then
5389   echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391   case $DOT in
5392   [\\/]* | ?:[\\/]*)
5393   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5394   ;;
5395   *)
5396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5398 do
5399   IFS=$as_save_IFS
5400   test -z "$as_dir" && as_dir=.
5401   for ac_exec_ext in '' $ac_executable_extensions; do
5402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5403     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5405     break 2
5406   fi
5407 done
5408 done
5409
5410   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
5411   ;;
5412 esac
5413 fi
5414 DOT=$ac_cv_path_DOT
5415
5416 if test -n "$DOT"; then
5417   echo "$as_me:$LINENO: result: $DOT" >&5
5418 echo "${ECHO_T}$DOT" >&6
5419 else
5420   echo "$as_me:$LINENO: result: no" >&5
5421 echo "${ECHO_T}no" >&6
5422 fi
5423
5424 if test "$DOT" != "echo dot" ; then
5425
5426 cat >>confdefs.h <<\_ACEOF
5427 #define HAVE_DOT 1
5428 _ACEOF
5429
5430     if test "$llvm_cv_os_type" == "MingW" ; then
5431     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5432   fi
5433
5434 cat >>confdefs.h <<_ACEOF
5435 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
5436 _ACEOF
5437
5438 fi
5439 for ac_prog in gv gsview32
5440 do
5441   # Extract the first word of "$ac_prog", so it can be a program name with args.
5442 set dummy $ac_prog; ac_word=$2
5443 echo "$as_me:$LINENO: checking for $ac_word" >&5
5444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5445 if test "${ac_cv_path_GV+set}" = set; then
5446   echo $ECHO_N "(cached) $ECHO_C" >&6
5447 else
5448   case $GV in
5449   [\\/]* | ?:[\\/]*)
5450   ac_cv_path_GV="$GV" # Let the user override the test with a path.
5451   ;;
5452   *)
5453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 for as_dir in $PATH
5455 do
5456   IFS=$as_save_IFS
5457   test -z "$as_dir" && as_dir=.
5458   for ac_exec_ext in '' $ac_executable_extensions; do
5459   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5460     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5462     break 2
5463   fi
5464 done
5465 done
5466
5467   ;;
5468 esac
5469 fi
5470 GV=$ac_cv_path_GV
5471
5472 if test -n "$GV"; then
5473   echo "$as_me:$LINENO: result: $GV" >&5
5474 echo "${ECHO_T}$GV" >&6
5475 else
5476   echo "$as_me:$LINENO: result: no" >&5
5477 echo "${ECHO_T}no" >&6
5478 fi
5479
5480   test -n "$GV" && break
5481 done
5482 test -n "$GV" || GV="echo gv"
5483
5484 if test "$GV" != "echo gv" ; then
5485
5486 cat >>confdefs.h <<\_ACEOF
5487 #define HAVE_GV 1
5488 _ACEOF
5489
5490     if test "$llvm_cv_os_type" == "MingW" ; then
5491     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5492   fi
5493
5494 cat >>confdefs.h <<_ACEOF
5495 #define LLVM_PATH_GV "$GV${EXEEXT}"
5496 _ACEOF
5497
5498 fi
5499 # Extract the first word of "dotty", so it can be a program name with args.
5500 set dummy dotty; ac_word=$2
5501 echo "$as_me:$LINENO: checking for $ac_word" >&5
5502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5503 if test "${ac_cv_path_DOTTY+set}" = set; then
5504   echo $ECHO_N "(cached) $ECHO_C" >&6
5505 else
5506   case $DOTTY in
5507   [\\/]* | ?:[\\/]*)
5508   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
5509   ;;
5510   *)
5511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 for as_dir in $PATH
5513 do
5514   IFS=$as_save_IFS
5515   test -z "$as_dir" && as_dir=.
5516   for ac_exec_ext in '' $ac_executable_extensions; do
5517   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5518     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
5519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5520     break 2
5521   fi
5522 done
5523 done
5524
5525   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
5526   ;;
5527 esac
5528 fi
5529 DOTTY=$ac_cv_path_DOTTY
5530
5531 if test -n "$DOTTY"; then
5532   echo "$as_me:$LINENO: result: $DOTTY" >&5
5533 echo "${ECHO_T}$DOTTY" >&6
5534 else
5535   echo "$as_me:$LINENO: result: no" >&5
5536 echo "${ECHO_T}no" >&6
5537 fi
5538
5539 if test "$DOTTY" != "echo dotty" ; then
5540
5541 cat >>confdefs.h <<\_ACEOF
5542 #define HAVE_DOTTY 1
5543 _ACEOF
5544
5545     if test "$llvm_cv_os_type" == "MingW" ; then
5546     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
5547   fi
5548
5549 cat >>confdefs.h <<_ACEOF
5550 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
5551 _ACEOF
5552
5553 fi
5554
5555
5556 # Extract the first word of "perl", so it can be a program name with args.
5557 set dummy perl; ac_word=$2
5558 echo "$as_me:$LINENO: checking for $ac_word" >&5
5559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5560 if test "${ac_cv_path_PERL+set}" = set; then
5561   echo $ECHO_N "(cached) $ECHO_C" >&6
5562 else
5563   case $PERL in
5564   [\\/]* | ?:[\\/]*)
5565   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5566   ;;
5567   *)
5568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH
5570 do
5571   IFS=$as_save_IFS
5572   test -z "$as_dir" && as_dir=.
5573   for ac_exec_ext in '' $ac_executable_extensions; do
5574   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5575     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5577     break 2
5578   fi
5579 done
5580 done
5581
5582   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5583   ;;
5584 esac
5585 fi
5586 PERL=$ac_cv_path_PERL
5587
5588 if test -n "$PERL"; then
5589   echo "$as_me:$LINENO: result: $PERL" >&5
5590 echo "${ECHO_T}$PERL" >&6
5591 else
5592   echo "$as_me:$LINENO: result: no" >&5
5593 echo "${ECHO_T}no" >&6
5594 fi
5595
5596 if test "$PERL" != "none"; then
5597   echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5598 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5599   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5600     echo "$as_me:$LINENO: result: yes" >&5
5601 echo "${ECHO_T}yes" >&6
5602   else
5603     PERL=none
5604     echo "$as_me:$LINENO: result: not found" >&5
5605 echo "${ECHO_T}not found" >&6
5606   fi
5607 fi
5608
5609
5610 if test x"$PERL" = xnone; then
5611    HAVE_PERL=0
5612
5613 else
5614    HAVE_PERL=1
5615
5616 fi
5617
5618 # Find a good install program.  We prefer a C program (faster),
5619 # so one script is as good as another.  But avoid the broken or
5620 # incompatible versions:
5621 # SysV /etc/install, /usr/sbin/install
5622 # SunOS /usr/etc/install
5623 # IRIX /sbin/install
5624 # AIX /bin/install
5625 # AmigaOS /C/install, which installs bootblocks on floppy discs
5626 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5627 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5628 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5629 # OS/2's system install, which has a completely different semantic
5630 # ./install, which can be erroneously created by make from ./install.sh.
5631 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5632 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5633 if test -z "$INSTALL"; then
5634 if test "${ac_cv_path_install+set}" = set; then
5635   echo $ECHO_N "(cached) $ECHO_C" >&6
5636 else
5637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 for as_dir in $PATH
5639 do
5640   IFS=$as_save_IFS
5641   test -z "$as_dir" && as_dir=.
5642   # Account for people who put trailing slashes in PATH elements.
5643 case $as_dir/ in
5644   ./ | .// | /cC/* | \
5645   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5646   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5647   /usr/ucb/* ) ;;
5648   *)
5649     # OSF1 and SCO ODT 3.0 have their own names for install.
5650     # Don't use installbsd from OSF since it installs stuff as root
5651     # by default.
5652     for ac_prog in ginstall scoinst install; do
5653       for ac_exec_ext in '' $ac_executable_extensions; do
5654         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5655           if test $ac_prog = install &&
5656             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5657             # AIX install.  It has an incompatible calling convention.
5658             :
5659           elif test $ac_prog = install &&
5660             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5661             # program-specific install script used by HP pwplus--don't use.
5662             :
5663           else
5664             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5665             break 3
5666           fi
5667         fi
5668       done
5669     done
5670     ;;
5671 esac
5672 done
5673
5674
5675 fi
5676   if test "${ac_cv_path_install+set}" = set; then
5677     INSTALL=$ac_cv_path_install
5678   else
5679     # As a last resort, use the slow shell script.  We don't cache a
5680     # path for INSTALL within a source directory, because that will
5681     # break other packages using the cache if that directory is
5682     # removed, or if the path is relative.
5683     INSTALL=$ac_install_sh
5684   fi
5685 fi
5686 echo "$as_me:$LINENO: result: $INSTALL" >&5
5687 echo "${ECHO_T}$INSTALL" >&6
5688
5689 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5690 # It thinks the first close brace ends the variable substitution.
5691 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5692
5693 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5694
5695 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5696
5697
5698 # Extract the first word of "bzip2", so it can be a program name with args.
5699 set dummy bzip2; ac_word=$2
5700 echo "$as_me:$LINENO: checking for $ac_word" >&5
5701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5702 if test "${ac_cv_path_BZIP2+set}" = set; then
5703   echo $ECHO_N "(cached) $ECHO_C" >&6
5704 else
5705   case $BZIP2 in
5706   [\\/]* | ?:[\\/]*)
5707   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5708   ;;
5709   *)
5710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH
5712 do
5713   IFS=$as_save_IFS
5714   test -z "$as_dir" && as_dir=.
5715   for ac_exec_ext in '' $ac_executable_extensions; do
5716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5717     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5719     break 2
5720   fi
5721 done
5722 done
5723
5724   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
5725   ;;
5726 esac
5727 fi
5728 BZIP2=$ac_cv_path_BZIP2
5729
5730 if test -n "$BZIP2"; then
5731   echo "$as_me:$LINENO: result: $BZIP2" >&5
5732 echo "${ECHO_T}$BZIP2" >&6
5733 else
5734   echo "$as_me:$LINENO: result: no" >&5
5735 echo "${ECHO_T}no" >&6
5736 fi
5737
5738 # Extract the first word of "doxygen", so it can be a program name with args.
5739 set dummy doxygen; ac_word=$2
5740 echo "$as_me:$LINENO: checking for $ac_word" >&5
5741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5742 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5743   echo $ECHO_N "(cached) $ECHO_C" >&6
5744 else
5745   case $DOXYGEN in
5746   [\\/]* | ?:[\\/]*)
5747   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5748   ;;
5749   *)
5750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH
5752 do
5753   IFS=$as_save_IFS
5754   test -z "$as_dir" && as_dir=.
5755   for ac_exec_ext in '' $ac_executable_extensions; do
5756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5759     break 2
5760   fi
5761 done
5762 done
5763
5764   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
5765   ;;
5766 esac
5767 fi
5768 DOXYGEN=$ac_cv_path_DOXYGEN
5769
5770 if test -n "$DOXYGEN"; then
5771   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5772 echo "${ECHO_T}$DOXYGEN" >&6
5773 else
5774   echo "$as_me:$LINENO: result: no" >&5
5775 echo "${ECHO_T}no" >&6
5776 fi
5777
5778 # Extract the first word of "etags", so it can be a program name with args.
5779 set dummy etags; ac_word=$2
5780 echo "$as_me:$LINENO: checking for $ac_word" >&5
5781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5782 if test "${ac_cv_path_ETAGS+set}" = set; then
5783   echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785   case $ETAGS in
5786   [\\/]* | ?:[\\/]*)
5787   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5788   ;;
5789   *)
5790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5792 do
5793   IFS=$as_save_IFS
5794   test -z "$as_dir" && as_dir=.
5795   for ac_exec_ext in '' $ac_executable_extensions; do
5796   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5797     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5799     break 2
5800   fi
5801 done
5802 done
5803
5804   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="echo "Skipped: etags not found""
5805   ;;
5806 esac
5807 fi
5808 ETAGS=$ac_cv_path_ETAGS
5809
5810 if test -n "$ETAGS"; then
5811   echo "$as_me:$LINENO: result: $ETAGS" >&5
5812 echo "${ECHO_T}$ETAGS" >&6
5813 else
5814   echo "$as_me:$LINENO: result: no" >&5
5815 echo "${ECHO_T}no" >&6
5816 fi
5817
5818 # Extract the first word of "groff", so it can be a program name with args.
5819 set dummy groff; ac_word=$2
5820 echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5822 if test "${ac_cv_path_GROFF+set}" = set; then
5823   echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825   case $GROFF in
5826   [\\/]* | ?:[\\/]*)
5827   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5828   ;;
5829   *)
5830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831 for as_dir in $PATH
5832 do
5833   IFS=$as_save_IFS
5834   test -z "$as_dir" && as_dir=.
5835   for ac_exec_ext in '' $ac_executable_extensions; do
5836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5837     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5839     break 2
5840   fi
5841 done
5842 done
5843
5844   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
5845   ;;
5846 esac
5847 fi
5848 GROFF=$ac_cv_path_GROFF
5849
5850 if test -n "$GROFF"; then
5851   echo "$as_me:$LINENO: result: $GROFF" >&5
5852 echo "${ECHO_T}$GROFF" >&6
5853 else
5854   echo "$as_me:$LINENO: result: no" >&5
5855 echo "${ECHO_T}no" >&6
5856 fi
5857
5858 # Extract the first word of "gzip", so it can be a program name with args.
5859 set dummy gzip; ac_word=$2
5860 echo "$as_me:$LINENO: checking for $ac_word" >&5
5861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5862 if test "${ac_cv_path_GZIP+set}" = set; then
5863   echo $ECHO_N "(cached) $ECHO_C" >&6
5864 else
5865   case $GZIP in
5866   [\\/]* | ?:[\\/]*)
5867   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5868   ;;
5869   *)
5870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873   IFS=$as_save_IFS
5874   test -z "$as_dir" && as_dir=.
5875   for ac_exec_ext in '' $ac_executable_extensions; do
5876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5877     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5879     break 2
5880   fi
5881 done
5882 done
5883
5884   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
5885   ;;
5886 esac
5887 fi
5888 GZIP=$ac_cv_path_GZIP
5889
5890 if test -n "$GZIP"; then
5891   echo "$as_me:$LINENO: result: $GZIP" >&5
5892 echo "${ECHO_T}$GZIP" >&6
5893 else
5894   echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6
5896 fi
5897
5898 # Extract the first word of "pod2html", so it can be a program name with args.
5899 set dummy pod2html; ac_word=$2
5900 echo "$as_me:$LINENO: checking for $ac_word" >&5
5901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5902 if test "${ac_cv_path_POD2HTML+set}" = set; then
5903   echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905   case $POD2HTML in
5906   [\\/]* | ?:[\\/]*)
5907   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5908   ;;
5909   *)
5910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5912 do
5913   IFS=$as_save_IFS
5914   test -z "$as_dir" && as_dir=.
5915   for ac_exec_ext in '' $ac_executable_extensions; do
5916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5919     break 2
5920   fi
5921 done
5922 done
5923
5924   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
5925   ;;
5926 esac
5927 fi
5928 POD2HTML=$ac_cv_path_POD2HTML
5929
5930 if test -n "$POD2HTML"; then
5931   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5932 echo "${ECHO_T}$POD2HTML" >&6
5933 else
5934   echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6
5936 fi
5937
5938 # Extract the first word of "pod2man", so it can be a program name with args.
5939 set dummy pod2man; ac_word=$2
5940 echo "$as_me:$LINENO: checking for $ac_word" >&5
5941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5942 if test "${ac_cv_path_POD2MAN+set}" = set; then
5943   echo $ECHO_N "(cached) $ECHO_C" >&6
5944 else
5945   case $POD2MAN in
5946   [\\/]* | ?:[\\/]*)
5947   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5948   ;;
5949   *)
5950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 for as_dir in $PATH
5952 do
5953   IFS=$as_save_IFS
5954   test -z "$as_dir" && as_dir=.
5955   for ac_exec_ext in '' $ac_executable_extensions; do
5956   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5957     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5959     break 2
5960   fi
5961 done
5962 done
5963
5964   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
5965   ;;
5966 esac
5967 fi
5968 POD2MAN=$ac_cv_path_POD2MAN
5969
5970 if test -n "$POD2MAN"; then
5971   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5972 echo "${ECHO_T}$POD2MAN" >&6
5973 else
5974   echo "$as_me:$LINENO: result: no" >&5
5975 echo "${ECHO_T}no" >&6
5976 fi
5977
5978 # Extract the first word of "runtest", so it can be a program name with args.
5979 set dummy runtest; ac_word=$2
5980 echo "$as_me:$LINENO: checking for $ac_word" >&5
5981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5982 if test "${ac_cv_path_RUNTEST+set}" = set; then
5983   echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985   case $RUNTEST in
5986   [\\/]* | ?:[\\/]*)
5987   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5988   ;;
5989   *)
5990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 for as_dir in $PATH
5992 do
5993   IFS=$as_save_IFS
5994   test -z "$as_dir" && as_dir=.
5995   for ac_exec_ext in '' $ac_executable_extensions; do
5996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5997     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5999     break 2
6000   fi
6001 done
6002 done
6003
6004   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
6005   ;;
6006 esac
6007 fi
6008 RUNTEST=$ac_cv_path_RUNTEST
6009
6010 if test -n "$RUNTEST"; then
6011   echo "$as_me:$LINENO: result: $RUNTEST" >&5
6012 echo "${ECHO_T}$RUNTEST" >&6
6013 else
6014   echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6
6016 fi
6017
6018
6019 no_itcl=true
6020 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
6021 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
6022
6023 # Check whether --with-tclinclude or --without-tclinclude was given.
6024 if test "${with_tclinclude+set}" = set; then
6025   withval="$with_tclinclude"
6026   with_tclinclude=${withval}
6027 else
6028   with_tclinclude=''
6029 fi;
6030 if test "${ac_cv_path_tclsh+set}" = set; then
6031   echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6033
6034 if test x"${with_tclinclude}" != x ; then
6035   if test -f ${with_tclinclude}/tclsh ; then
6036     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
6037   elif test -f ${with_tclinclude}/src/tclsh ; then
6038     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
6039   else
6040     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
6041 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
6042    { (exit 1); exit 1; }; }
6043   fi
6044 fi
6045
6046 if test x"${ac_cv_path_tclsh}" = x ; then
6047   echo "$as_me:$LINENO: result: none" >&5
6048 echo "${ECHO_T}none" >&6
6049   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
6050 do
6051   # Extract the first word of "$ac_prog", so it can be a program name with args.
6052 set dummy $ac_prog; ac_word=$2
6053 echo "$as_me:$LINENO: checking for $ac_word" >&5
6054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6055 if test "${ac_cv_path_TCLSH+set}" = set; then
6056   echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058   case $TCLSH in
6059   [\\/]* | ?:[\\/]*)
6060   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
6061   ;;
6062   *)
6063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH
6065 do
6066   IFS=$as_save_IFS
6067   test -z "$as_dir" && as_dir=.
6068   for ac_exec_ext in '' $ac_executable_extensions; do
6069   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6070     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
6071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6072     break 2
6073   fi
6074 done
6075 done
6076
6077   ;;
6078 esac
6079 fi
6080 TCLSH=$ac_cv_path_TCLSH
6081
6082 if test -n "$TCLSH"; then
6083   echo "$as_me:$LINENO: result: $TCLSH" >&5
6084 echo "${ECHO_T}$TCLSH" >&6
6085 else
6086   echo "$as_me:$LINENO: result: no" >&5
6087 echo "${ECHO_T}no" >&6
6088 fi
6089
6090   test -n "$TCLSH" && break
6091 done
6092
6093   if test x"${TCLSH}" = x ; then
6094     ac_cv_path_tclsh='';
6095   else
6096     ac_cv_path_tclsh="${TCLSH}";
6097   fi
6098 else
6099   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
6100 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
6101   TCLSH="${ac_cv_path_tclsh}"
6102
6103 fi
6104
6105 fi
6106
6107 # Extract the first word of "zip", so it can be a program name with args.
6108 set dummy zip; ac_word=$2
6109 echo "$as_me:$LINENO: checking for $ac_word" >&5
6110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6111 if test "${ac_cv_path_ZIP+set}" = set; then
6112   echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114   case $ZIP in
6115   [\\/]* | ?:[\\/]*)
6116   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6117   ;;
6118   *)
6119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH
6121 do
6122   IFS=$as_save_IFS
6123   test -z "$as_dir" && as_dir=.
6124   for ac_exec_ext in '' $ac_executable_extensions; do
6125   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6128     break 2
6129   fi
6130 done
6131 done
6132
6133   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
6134   ;;
6135 esac
6136 fi
6137 ZIP=$ac_cv_path_ZIP
6138
6139 if test -n "$ZIP"; then
6140   echo "$as_me:$LINENO: result: $ZIP" >&5
6141 echo "${ECHO_T}$ZIP" >&6
6142 else
6143   echo "$as_me:$LINENO: result: no" >&5
6144 echo "${ECHO_T}no" >&6
6145 fi
6146
6147
6148 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
6149 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
6150 if test "${llvm_cv_link_use_r+set}" = set; then
6151   echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153    ac_ext=c
6154 ac_cpp='$CPP $CPPFLAGS'
6155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6158
6159   oldcflags="$CFLAGS"
6160   CFLAGS="$CFLAGS -Wl,-R."
6161   cat >conftest.$ac_ext <<_ACEOF
6162 /* confdefs.h.  */
6163 _ACEOF
6164 cat confdefs.h >>conftest.$ac_ext
6165 cat >>conftest.$ac_ext <<_ACEOF
6166 /* end confdefs.h.  */
6167
6168 int
6169 main ()
6170 {
6171 int main() { return 0; }
6172   ;
6173   return 0;
6174 }
6175 _ACEOF
6176 rm -f conftest.$ac_objext conftest$ac_exeext
6177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6178   (eval $ac_link) 2>conftest.er1
6179   ac_status=$?
6180   grep -v '^ *+' conftest.er1 >conftest.err
6181   rm -f conftest.er1
6182   cat conftest.err >&5
6183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184   (exit $ac_status); } &&
6185          { ac_try='test -z "$ac_c_werror_flag"
6186                          || test ! -s conftest.err'
6187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188   (eval $ac_try) 2>&5
6189   ac_status=$?
6190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191   (exit $ac_status); }; } &&
6192          { ac_try='test -s conftest$ac_exeext'
6193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194   (eval $ac_try) 2>&5
6195   ac_status=$?
6196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197   (exit $ac_status); }; }; then
6198   llvm_cv_link_use_r=yes
6199 else
6200   echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6202
6203 llvm_cv_link_use_r=no
6204 fi
6205 rm -f conftest.err conftest.$ac_objext \
6206       conftest$ac_exeext conftest.$ac_ext
6207   CFLAGS="$oldcflags"
6208   ac_ext=c
6209 ac_cpp='$CPP $CPPFLAGS'
6210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6213
6214
6215 fi
6216 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
6217 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
6218 if test "$llvm_cv_link_use_r" = yes ; then
6219
6220 cat >>confdefs.h <<\_ACEOF
6221 #define HAVE_LINK_R 1
6222 _ACEOF
6223
6224   fi
6225
6226
6227
6228
6229 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6230 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6231 if test "${ac_cv_c_const+set}" = set; then
6232   echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234   cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h.  */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h.  */
6240
6241 int
6242 main ()
6243 {
6244 /* FIXME: Include the comments suggested by Paul. */
6245 #ifndef __cplusplus
6246   /* Ultrix mips cc rejects this.  */
6247   typedef int charset[2];
6248   const charset x;
6249   /* SunOS 4.1.1 cc rejects this.  */
6250   char const *const *ccp;
6251   char **p;
6252   /* NEC SVR4.0.2 mips cc rejects this.  */
6253   struct point {int x, y;};
6254   static struct point const zero = {0,0};
6255   /* AIX XL C 1.02.0.0 rejects this.
6256      It does not let you subtract one const X* pointer from another in
6257      an arm of an if-expression whose if-part is not a constant
6258      expression */
6259   const char *g = "string";
6260   ccp = &g + (g ? g-g : 0);
6261   /* HPUX 7.0 cc rejects these. */
6262   ++ccp;
6263   p = (char**) ccp;
6264   ccp = (char const *const *) p;
6265   { /* SCO 3.2v4 cc rejects this.  */
6266     char *t;
6267     char const *s = 0 ? (char *) 0 : (char const *) 0;
6268
6269     *t++ = 0;
6270   }
6271   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6272     int x[] = {25, 17};
6273     const int *foo = &x[0];
6274     ++foo;
6275   }
6276   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6277     typedef const int *iptr;
6278     iptr p = 0;
6279     ++p;
6280   }
6281   { /* AIX XL C 1.02.0.0 rejects this saying
6282        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6283     struct s { int j; const int *ap[3]; };
6284     struct s *b; b->j = 5;
6285   }
6286   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6287     const int foo = 10;
6288   }
6289 #endif
6290
6291   ;
6292   return 0;
6293 }
6294 _ACEOF
6295 rm -f conftest.$ac_objext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297   (eval $ac_compile) 2>conftest.er1
6298   ac_status=$?
6299   grep -v '^ *+' conftest.er1 >conftest.err
6300   rm -f conftest.er1
6301   cat conftest.err >&5
6302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303   (exit $ac_status); } &&
6304          { ac_try='test -z "$ac_c_werror_flag"
6305                          || test ! -s conftest.err'
6306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6307   (eval $ac_try) 2>&5
6308   ac_status=$?
6309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310   (exit $ac_status); }; } &&
6311          { ac_try='test -s conftest.$ac_objext'
6312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313   (eval $ac_try) 2>&5
6314   ac_status=$?
6315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316   (exit $ac_status); }; }; then
6317   ac_cv_c_const=yes
6318 else
6319   echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6321
6322 ac_cv_c_const=no
6323 fi
6324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6325 fi
6326 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6327 echo "${ECHO_T}$ac_cv_c_const" >&6
6328 if test $ac_cv_c_const = no; then
6329
6330 cat >>confdefs.h <<\_ACEOF
6331 #define const
6332 _ACEOF
6333
6334 fi
6335
6336
6337 echo "$as_me:$LINENO: checking for egrep" >&5
6338 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6339 if test "${ac_cv_prog_egrep+set}" = set; then
6340   echo $ECHO_N "(cached) $ECHO_C" >&6
6341 else
6342   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6343     then ac_cv_prog_egrep='grep -E'
6344     else ac_cv_prog_egrep='egrep'
6345     fi
6346 fi
6347 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6348 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6349  EGREP=$ac_cv_prog_egrep
6350
6351
6352 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6353 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6354 if test "${ac_cv_header_stdc+set}" = set; then
6355   echo $ECHO_N "(cached) $ECHO_C" >&6
6356 else
6357   cat >conftest.$ac_ext <<_ACEOF
6358 /* confdefs.h.  */
6359 _ACEOF
6360 cat confdefs.h >>conftest.$ac_ext
6361 cat >>conftest.$ac_ext <<_ACEOF
6362 /* end confdefs.h.  */
6363 #include <stdlib.h>
6364 #include <stdarg.h>
6365 #include <string.h>
6366 #include <float.h>
6367
6368 int
6369 main ()
6370 {
6371
6372   ;
6373   return 0;
6374 }
6375 _ACEOF
6376 rm -f conftest.$ac_objext
6377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6378   (eval $ac_compile) 2>conftest.er1
6379   ac_status=$?
6380   grep -v '^ *+' conftest.er1 >conftest.err
6381   rm -f conftest.er1
6382   cat conftest.err >&5
6383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384   (exit $ac_status); } &&
6385          { ac_try='test -z "$ac_c_werror_flag"
6386                          || test ! -s conftest.err'
6387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388   (eval $ac_try) 2>&5
6389   ac_status=$?
6390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391   (exit $ac_status); }; } &&
6392          { ac_try='test -s conftest.$ac_objext'
6393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394   (eval $ac_try) 2>&5
6395   ac_status=$?
6396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397   (exit $ac_status); }; }; then
6398   ac_cv_header_stdc=yes
6399 else
6400   echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6402
6403 ac_cv_header_stdc=no
6404 fi
6405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6406
6407 if test $ac_cv_header_stdc = yes; then
6408   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6409   cat >conftest.$ac_ext <<_ACEOF
6410 /* confdefs.h.  */
6411 _ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h.  */
6415 #include <string.h>
6416
6417 _ACEOF
6418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6419   $EGREP "memchr" >/dev/null 2>&1; then
6420   :
6421 else
6422   ac_cv_header_stdc=no
6423 fi
6424 rm -f conftest*
6425
6426 fi
6427
6428 if test $ac_cv_header_stdc = yes; then
6429   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6430   cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h.  */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h.  */
6436 #include <stdlib.h>
6437
6438 _ACEOF
6439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6440   $EGREP "free" >/dev/null 2>&1; then
6441   :
6442 else
6443   ac_cv_header_stdc=no
6444 fi
6445 rm -f conftest*
6446
6447 fi
6448
6449 if test $ac_cv_header_stdc = yes; then
6450   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6451   if test "$cross_compiling" = yes; then
6452   :
6453 else
6454   cat >conftest.$ac_ext <<_ACEOF
6455 /* confdefs.h.  */
6456 _ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h.  */
6460 #include <ctype.h>
6461 #if ((' ' & 0x0FF) == 0x020)
6462 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6463 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6464 #else
6465 # define ISLOWER(c) \
6466                    (('a' <= (c) && (c) <= 'i') \
6467                      || ('j' <= (c) && (c) <= 'r') \
6468                      || ('s' <= (c) && (c) <= 'z'))
6469 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6470 #endif
6471
6472 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6473 int
6474 main ()
6475 {
6476   int i;
6477   for (i = 0; i < 256; i++)
6478     if (XOR (islower (i), ISLOWER (i))
6479         || toupper (i) != TOUPPER (i))
6480       exit(2);
6481   exit (0);
6482 }
6483 _ACEOF
6484 rm -f conftest$ac_exeext
6485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6486   (eval $ac_link) 2>&5
6487   ac_status=$?
6488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491   (eval $ac_try) 2>&5
6492   ac_status=$?
6493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494   (exit $ac_status); }; }; then
6495   :
6496 else
6497   echo "$as_me: program exited with status $ac_status" >&5
6498 echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6500
6501 ( exit $ac_status )
6502 ac_cv_header_stdc=no
6503 fi
6504 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6505 fi
6506 fi
6507 fi
6508 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6509 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6510 if test $ac_cv_header_stdc = yes; then
6511
6512 cat >>confdefs.h <<\_ACEOF
6513 #define STDC_HEADERS 1
6514 _ACEOF
6515
6516 fi
6517
6518
6519
6520
6521
6522
6523 ac_header_dirent=no
6524 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6525   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6526 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6527 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6529   echo $ECHO_N "(cached) $ECHO_C" >&6
6530 else
6531   cat >conftest.$ac_ext <<_ACEOF
6532 /* confdefs.h.  */
6533 _ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h.  */
6537 #include <sys/types.h>
6538 #include <$ac_hdr>
6539
6540 int
6541 main ()
6542 {
6543 if ((DIR *) 0)
6544 return 0;
6545   ;
6546   return 0;
6547 }
6548 _ACEOF
6549 rm -f conftest.$ac_objext
6550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6551   (eval $ac_compile) 2>conftest.er1
6552   ac_status=$?
6553   grep -v '^ *+' conftest.er1 >conftest.err
6554   rm -f conftest.er1
6555   cat conftest.err >&5
6556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557   (exit $ac_status); } &&
6558          { ac_try='test -z "$ac_c_werror_flag"
6559                          || test ! -s conftest.err'
6560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6561   (eval $ac_try) 2>&5
6562   ac_status=$?
6563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564   (exit $ac_status); }; } &&
6565          { ac_try='test -s conftest.$ac_objext'
6566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567   (eval $ac_try) 2>&5
6568   ac_status=$?
6569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570   (exit $ac_status); }; }; then
6571   eval "$as_ac_Header=yes"
6572 else
6573   echo "$as_me: failed program was:" >&5
6574 sed 's/^/| /' conftest.$ac_ext >&5
6575
6576 eval "$as_ac_Header=no"
6577 fi
6578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6579 fi
6580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6583   cat >>confdefs.h <<_ACEOF
6584 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6585 _ACEOF
6586
6587 ac_header_dirent=$ac_hdr; break
6588 fi
6589
6590 done
6591 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6592 if test $ac_header_dirent = dirent.h; then
6593   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6594 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6595 if test "${ac_cv_search_opendir+set}" = set; then
6596   echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598   ac_func_search_save_LIBS=$LIBS
6599 ac_cv_search_opendir=no
6600 cat >conftest.$ac_ext <<_ACEOF
6601 /* confdefs.h.  */
6602 _ACEOF
6603 cat confdefs.h >>conftest.$ac_ext
6604 cat >>conftest.$ac_ext <<_ACEOF
6605 /* end confdefs.h.  */
6606
6607 /* Override any gcc2 internal prototype to avoid an error.  */
6608 #ifdef __cplusplus
6609 extern "C"
6610 #endif
6611 /* We use char because int might match the return type of a gcc2
6612    builtin and then its argument prototype would still apply.  */
6613 char opendir ();
6614 int
6615 main ()
6616 {
6617 opendir ();
6618   ;
6619   return 0;
6620 }
6621 _ACEOF
6622 rm -f conftest.$ac_objext conftest$ac_exeext
6623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6624   (eval $ac_link) 2>conftest.er1
6625   ac_status=$?
6626   grep -v '^ *+' conftest.er1 >conftest.err
6627   rm -f conftest.er1
6628   cat conftest.err >&5
6629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630   (exit $ac_status); } &&
6631          { ac_try='test -z "$ac_c_werror_flag"
6632                          || test ! -s conftest.err'
6633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634   (eval $ac_try) 2>&5
6635   ac_status=$?
6636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637   (exit $ac_status); }; } &&
6638          { ac_try='test -s conftest$ac_exeext'
6639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640   (eval $ac_try) 2>&5
6641   ac_status=$?
6642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643   (exit $ac_status); }; }; then
6644   ac_cv_search_opendir="none required"
6645 else
6646   echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6648
6649 fi
6650 rm -f conftest.err conftest.$ac_objext \
6651       conftest$ac_exeext conftest.$ac_ext
6652 if test "$ac_cv_search_opendir" = no; then
6653   for ac_lib in dir; do
6654     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
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
6662 /* Override any gcc2 internal prototype to avoid an error.  */
6663 #ifdef __cplusplus
6664 extern "C"
6665 #endif
6666 /* We use char because int might match the return type of a gcc2
6667    builtin and then its argument prototype would still apply.  */
6668 char opendir ();
6669 int
6670 main ()
6671 {
6672 opendir ();
6673   ;
6674   return 0;
6675 }
6676 _ACEOF
6677 rm -f conftest.$ac_objext conftest$ac_exeext
6678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6679   (eval $ac_link) 2>conftest.er1
6680   ac_status=$?
6681   grep -v '^ *+' conftest.er1 >conftest.err
6682   rm -f conftest.er1
6683   cat conftest.err >&5
6684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685   (exit $ac_status); } &&
6686          { ac_try='test -z "$ac_c_werror_flag"
6687                          || test ! -s conftest.err'
6688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689   (eval $ac_try) 2>&5
6690   ac_status=$?
6691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692   (exit $ac_status); }; } &&
6693          { ac_try='test -s conftest$ac_exeext'
6694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6695   (eval $ac_try) 2>&5
6696   ac_status=$?
6697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698   (exit $ac_status); }; }; then
6699   ac_cv_search_opendir="-l$ac_lib"
6700 break
6701 else
6702   echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6704
6705 fi
6706 rm -f conftest.err conftest.$ac_objext \
6707       conftest$ac_exeext conftest.$ac_ext
6708   done
6709 fi
6710 LIBS=$ac_func_search_save_LIBS
6711 fi
6712 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6713 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6714 if test "$ac_cv_search_opendir" != no; then
6715   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6716
6717 fi
6718
6719 else
6720   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6721 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6722 if test "${ac_cv_search_opendir+set}" = set; then
6723   echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725   ac_func_search_save_LIBS=$LIBS
6726 ac_cv_search_opendir=no
6727 cat >conftest.$ac_ext <<_ACEOF
6728 /* confdefs.h.  */
6729 _ACEOF
6730 cat confdefs.h >>conftest.$ac_ext
6731 cat >>conftest.$ac_ext <<_ACEOF
6732 /* end confdefs.h.  */
6733
6734 /* Override any gcc2 internal prototype to avoid an error.  */
6735 #ifdef __cplusplus
6736 extern "C"
6737 #endif
6738 /* We use char because int might match the return type of a gcc2
6739    builtin and then its argument prototype would still apply.  */
6740 char opendir ();
6741 int
6742 main ()
6743 {
6744 opendir ();
6745   ;
6746   return 0;
6747 }
6748 _ACEOF
6749 rm -f conftest.$ac_objext conftest$ac_exeext
6750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6751   (eval $ac_link) 2>conftest.er1
6752   ac_status=$?
6753   grep -v '^ *+' conftest.er1 >conftest.err
6754   rm -f conftest.er1
6755   cat conftest.err >&5
6756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757   (exit $ac_status); } &&
6758          { ac_try='test -z "$ac_c_werror_flag"
6759                          || test ! -s conftest.err'
6760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761   (eval $ac_try) 2>&5
6762   ac_status=$?
6763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764   (exit $ac_status); }; } &&
6765          { ac_try='test -s conftest$ac_exeext'
6766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767   (eval $ac_try) 2>&5
6768   ac_status=$?
6769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770   (exit $ac_status); }; }; then
6771   ac_cv_search_opendir="none required"
6772 else
6773   echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6775
6776 fi
6777 rm -f conftest.err conftest.$ac_objext \
6778       conftest$ac_exeext conftest.$ac_ext
6779 if test "$ac_cv_search_opendir" = no; then
6780   for ac_lib in x; do
6781     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6782     cat >conftest.$ac_ext <<_ACEOF
6783 /* confdefs.h.  */
6784 _ACEOF
6785 cat confdefs.h >>conftest.$ac_ext
6786 cat >>conftest.$ac_ext <<_ACEOF
6787 /* end confdefs.h.  */
6788
6789 /* Override any gcc2 internal prototype to avoid an error.  */
6790 #ifdef __cplusplus
6791 extern "C"
6792 #endif
6793 /* We use char because int might match the return type of a gcc2
6794    builtin and then its argument prototype would still apply.  */
6795 char opendir ();
6796 int
6797 main ()
6798 {
6799 opendir ();
6800   ;
6801   return 0;
6802 }
6803 _ACEOF
6804 rm -f conftest.$ac_objext conftest$ac_exeext
6805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6806   (eval $ac_link) 2>conftest.er1
6807   ac_status=$?
6808   grep -v '^ *+' conftest.er1 >conftest.err
6809   rm -f conftest.er1
6810   cat conftest.err >&5
6811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812   (exit $ac_status); } &&
6813          { ac_try='test -z "$ac_c_werror_flag"
6814                          || test ! -s conftest.err'
6815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816   (eval $ac_try) 2>&5
6817   ac_status=$?
6818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819   (exit $ac_status); }; } &&
6820          { ac_try='test -s conftest$ac_exeext'
6821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822   (eval $ac_try) 2>&5
6823   ac_status=$?
6824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825   (exit $ac_status); }; }; then
6826   ac_cv_search_opendir="-l$ac_lib"
6827 break
6828 else
6829   echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6831
6832 fi
6833 rm -f conftest.err conftest.$ac_objext \
6834       conftest$ac_exeext conftest.$ac_ext
6835   done
6836 fi
6837 LIBS=$ac_func_search_save_LIBS
6838 fi
6839 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6840 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6841 if test "$ac_cv_search_opendir" != no; then
6842   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6843
6844 fi
6845
6846 fi
6847
6848 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6859                   inttypes.h stdint.h unistd.h
6860 do
6861 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6862 echo "$as_me:$LINENO: checking for $ac_header" >&5
6863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6865   echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867   cat >conftest.$ac_ext <<_ACEOF
6868 /* confdefs.h.  */
6869 _ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h.  */
6873 $ac_includes_default
6874
6875 #include <$ac_header>
6876 _ACEOF
6877 rm -f conftest.$ac_objext
6878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6879   (eval $ac_compile) 2>conftest.er1
6880   ac_status=$?
6881   grep -v '^ *+' conftest.er1 >conftest.err
6882   rm -f conftest.er1
6883   cat conftest.err >&5
6884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885   (exit $ac_status); } &&
6886          { ac_try='test -z "$ac_c_werror_flag"
6887                          || test ! -s conftest.err'
6888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889   (eval $ac_try) 2>&5
6890   ac_status=$?
6891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892   (exit $ac_status); }; } &&
6893          { ac_try='test -s conftest.$ac_objext'
6894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895   (eval $ac_try) 2>&5
6896   ac_status=$?
6897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898   (exit $ac_status); }; }; then
6899   eval "$as_ac_Header=yes"
6900 else
6901   echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6903
6904 eval "$as_ac_Header=no"
6905 fi
6906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6907 fi
6908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6911   cat >>confdefs.h <<_ACEOF
6912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6913 _ACEOF
6914
6915 fi
6916
6917 done
6918
6919
6920
6921 for ac_header in dlfcn.h
6922 do
6923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6925   echo "$as_me:$LINENO: checking for $ac_header" >&5
6926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6928   echo $ECHO_N "(cached) $ECHO_C" >&6
6929 fi
6930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6932 else
6933   # Is the header compilable?
6934 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6936 cat >conftest.$ac_ext <<_ACEOF
6937 /* confdefs.h.  */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h.  */
6942 $ac_includes_default
6943 #include <$ac_header>
6944 _ACEOF
6945 rm -f conftest.$ac_objext
6946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6947   (eval $ac_compile) 2>conftest.er1
6948   ac_status=$?
6949   grep -v '^ *+' conftest.er1 >conftest.err
6950   rm -f conftest.er1
6951   cat conftest.err >&5
6952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953   (exit $ac_status); } &&
6954          { ac_try='test -z "$ac_c_werror_flag"
6955                          || test ! -s conftest.err'
6956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6957   (eval $ac_try) 2>&5
6958   ac_status=$?
6959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960   (exit $ac_status); }; } &&
6961          { ac_try='test -s conftest.$ac_objext'
6962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963   (eval $ac_try) 2>&5
6964   ac_status=$?
6965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966   (exit $ac_status); }; }; then
6967   ac_header_compiler=yes
6968 else
6969   echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6971
6972 ac_header_compiler=no
6973 fi
6974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6975 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6976 echo "${ECHO_T}$ac_header_compiler" >&6
6977
6978 # Is the header present?
6979 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6981 cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h.  */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h.  */
6987 #include <$ac_header>
6988 _ACEOF
6989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6990   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6991   ac_status=$?
6992   grep -v '^ *+' conftest.er1 >conftest.err
6993   rm -f conftest.er1
6994   cat conftest.err >&5
6995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996   (exit $ac_status); } >/dev/null; then
6997   if test -s conftest.err; then
6998     ac_cpp_err=$ac_c_preproc_warn_flag
6999     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7000   else
7001     ac_cpp_err=
7002   fi
7003 else
7004   ac_cpp_err=yes
7005 fi
7006 if test -z "$ac_cpp_err"; then
7007   ac_header_preproc=yes
7008 else
7009   echo "$as_me: failed program was:" >&5
7010 sed 's/^/| /' conftest.$ac_ext >&5
7011
7012   ac_header_preproc=no
7013 fi
7014 rm -f conftest.err conftest.$ac_ext
7015 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7016 echo "${ECHO_T}$ac_header_preproc" >&6
7017
7018 # So?  What about this header?
7019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7020   yes:no: )
7021     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7023     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7025     ac_header_preproc=yes
7026     ;;
7027   no:yes:* )
7028     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7030     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7031 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7032     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7034     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7035 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7038     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7040     (
7041       cat <<\_ASBOX
7042 ## ----------------------------------- ##
7043 ## Report this to llvmbugs@cs.uiuc.edu ##
7044 ## ----------------------------------- ##
7045 _ASBOX
7046     ) |
7047       sed "s/^/$as_me: WARNING:     /" >&2
7048     ;;
7049 esac
7050 echo "$as_me:$LINENO: checking for $ac_header" >&5
7051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7053   echo $ECHO_N "(cached) $ECHO_C" >&6
7054 else
7055   eval "$as_ac_Header=\$ac_header_preproc"
7056 fi
7057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7059
7060 fi
7061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7062   cat >>confdefs.h <<_ACEOF
7063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7064 _ACEOF
7065
7066 fi
7067
7068 done
7069
7070 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
7071 if test "${enable_ltdl_install+set}" = set; then
7072   enableval="$enable_ltdl_install"
7073
7074 fi;
7075
7076
7077
7078 if test x"${enable_ltdl_install-no}" != xno; then
7079   INSTALL_LTDL_TRUE=
7080   INSTALL_LTDL_FALSE='#'
7081 else
7082   INSTALL_LTDL_TRUE='#'
7083   INSTALL_LTDL_FALSE=
7084 fi
7085
7086
7087
7088 if test x"${enable_ltdl_convenience-no}" != xno; then
7089   CONVENIENCE_LTDL_TRUE=
7090   CONVENIENCE_LTDL_FALSE='#'
7091 else
7092   CONVENIENCE_LTDL_TRUE='#'
7093   CONVENIENCE_LTDL_FALSE=
7094 fi
7095
7096
7097 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7098 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7099 library_names_spec=
7100 libname_spec='lib$name'
7101 soname_spec=
7102 shrext_cmds=".so"
7103 postinstall_cmds=
7104 postuninstall_cmds=
7105 finish_cmds=
7106 finish_eval=
7107 shlibpath_var=
7108 shlibpath_overrides_runpath=unknown
7109 version_type=none
7110 dynamic_linker="$host_os ld.so"
7111 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7112 if test "$GCC" = yes; then
7113   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7114   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7115     # if the path contains ";" then we assume it to be the separator
7116     # otherwise default to the standard path separator (i.e. ":") - it is
7117     # assumed that no part of a normal pathname contains ";" but that should
7118     # okay in the real world where ";" in dirpaths is itself problematic.
7119     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7120   else
7121     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7122   fi
7123 else
7124   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7125 fi
7126 need_lib_prefix=unknown
7127 hardcode_into_libs=no
7128
7129 # when you set need_version to no, make sure it does not cause -set_version
7130 # flags to be left without arguments
7131 need_version=unknown
7132
7133 case $host_os in
7134 aix3*)
7135   version_type=linux
7136   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7137   shlibpath_var=LIBPATH
7138
7139   # AIX 3 has no versioning support, so we append a major version to the name.
7140   soname_spec='${libname}${release}${shared_ext}$major'
7141   ;;
7142
7143 aix4* | aix5*)
7144   version_type=linux
7145   need_lib_prefix=no
7146   need_version=no
7147   hardcode_into_libs=yes
7148   if test "$host_cpu" = ia64; then
7149     # AIX 5 supports IA64
7150     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7151     shlibpath_var=LD_LIBRARY_PATH
7152   else
7153     # With GCC up to 2.95.x, collect2 would create an import file
7154     # for dependence libraries.  The import file would start with
7155     # the line `#! .'.  This would cause the generated library to
7156     # depend on `.', always an invalid library.  This was fixed in
7157     # development snapshots of GCC prior to 3.0.
7158     case $host_os in
7159       aix4 | aix4.[01] | aix4.[01].*)
7160       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7161            echo ' yes '
7162            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7163         :
7164       else
7165         can_build_shared=no
7166       fi
7167       ;;
7168     esac
7169     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7170     # soname into executable. Probably we can add versioning support to
7171     # collect2, so additional links can be useful in future.
7172     if test "$aix_use_runtimelinking" = yes; then
7173       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7174       # instead of lib<name>.a to let people know that these are not
7175       # typical AIX shared libraries.
7176       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7177     else
7178       # We preserve .a as extension for shared libraries through AIX4.2
7179       # and later when we are not doing run time linking.
7180       library_names_spec='${libname}${release}.a $libname.a'
7181       soname_spec='${libname}${release}${shared_ext}$major'
7182     fi
7183     shlibpath_var=LIBPATH
7184   fi
7185   ;;
7186
7187 amigaos*)
7188   library_names_spec='$libname.ixlibrary $libname.a'
7189   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7190   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'
7191   ;;
7192
7193 beos*)
7194   library_names_spec='${libname}${shared_ext}'
7195   dynamic_linker="$host_os ld.so"
7196   shlibpath_var=LIBRARY_PATH
7197   ;;
7198
7199 bsdi[45]*)
7200   version_type=linux
7201   need_version=no
7202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7203   soname_spec='${libname}${release}${shared_ext}$major'
7204   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7205   shlibpath_var=LD_LIBRARY_PATH
7206   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7207   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7208   # the default ld.so.conf also contains /usr/contrib/lib and
7209   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7210   # libtool to hard-code these into programs
7211   ;;
7212
7213 cygwin* | mingw* | pw32*)
7214   version_type=windows
7215   shrext_cmds=".dll"
7216   need_version=no
7217   need_lib_prefix=no
7218
7219   case $GCC,$host_os in
7220   yes,cygwin* | yes,mingw* | yes,pw32*)
7221     library_names_spec='$libname.dll.a'
7222     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7223     postinstall_cmds='base_file=`basename \${file}`~
7224       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7225       dldir=$destdir/`dirname \$dlpath`~
7226       test -d \$dldir || mkdir -p \$dldir~
7227       $install_prog $dir/$dlname \$dldir/$dlname'
7228     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7229       dlpath=$dir/\$dldll~
7230        $rm \$dlpath'
7231     shlibpath_overrides_runpath=yes
7232
7233     case $host_os in
7234     cygwin*)
7235       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7236       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7237       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7238       ;;
7239     mingw*)
7240       # MinGW DLLs use traditional 'lib' prefix
7241       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7242       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7243       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7244         # It is most probably a Windows format PATH printed by
7245         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7246         # path with ; separators, and with drive letters. We can handle the
7247         # drive letters (cygwin fileutils understands them), so leave them,
7248         # especially as we might pass files found there to a mingw objdump,
7249         # which wouldn't understand a cygwinified path. Ahh.
7250         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7251       else
7252         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7253       fi
7254       ;;
7255     pw32*)
7256       # pw32 DLLs use 'pw' prefix rather than 'lib'
7257       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7258       ;;
7259     esac
7260     ;;
7261
7262   *)
7263     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7264     ;;
7265   esac
7266   dynamic_linker='Win32 ld.exe'
7267   # FIXME: first we should search . and the directory the executable is in
7268   shlibpath_var=PATH
7269   ;;
7270
7271 darwin* | rhapsody*)
7272   dynamic_linker="$host_os dyld"
7273   version_type=darwin
7274   need_lib_prefix=no
7275   need_version=no
7276   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7277   soname_spec='${libname}${release}${major}$shared_ext'
7278   shlibpath_overrides_runpath=yes
7279   shlibpath_var=DYLD_LIBRARY_PATH
7280   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7281   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7282   if test "$GCC" = yes; then
7283     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"`
7284   else
7285     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7286   fi
7287   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7288   ;;
7289
7290 dgux*)
7291   version_type=linux
7292   need_lib_prefix=no
7293   need_version=no
7294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7295   soname_spec='${libname}${release}${shared_ext}$major'
7296   shlibpath_var=LD_LIBRARY_PATH
7297   ;;
7298
7299 freebsd1*)
7300   dynamic_linker=no
7301   ;;
7302
7303 kfreebsd*-gnu)
7304   version_type=linux
7305   need_lib_prefix=no
7306   need_version=no
7307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7308   soname_spec='${libname}${release}${shared_ext}$major'
7309   shlibpath_var=LD_LIBRARY_PATH
7310   shlibpath_overrides_runpath=no
7311   hardcode_into_libs=yes
7312   dynamic_linker='GNU ld.so'
7313   ;;
7314
7315 freebsd*)
7316   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7317   version_type=freebsd-$objformat
7318   case $version_type in
7319     freebsd-elf*)
7320       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7321       need_version=no
7322       need_lib_prefix=no
7323       ;;
7324     freebsd-*)
7325       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7326       need_version=yes
7327       ;;
7328   esac
7329   shlibpath_var=LD_LIBRARY_PATH
7330   case $host_os in
7331   freebsd2*)
7332     shlibpath_overrides_runpath=yes
7333     ;;
7334   freebsd3.01* | freebsdelf3.01*)
7335     shlibpath_overrides_runpath=yes
7336     hardcode_into_libs=yes
7337     ;;
7338   *) # from 3.2 on
7339     shlibpath_overrides_runpath=no
7340     hardcode_into_libs=yes
7341     ;;
7342   esac
7343   ;;
7344
7345 gnu*)
7346   version_type=linux
7347   need_lib_prefix=no
7348   need_version=no
7349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7350   soname_spec='${libname}${release}${shared_ext}$major'
7351   shlibpath_var=LD_LIBRARY_PATH
7352   hardcode_into_libs=yes
7353   ;;
7354
7355 hpux9* | hpux10* | hpux11*)
7356   # Give a soname corresponding to the major version so that dld.sl refuses to
7357   # link against other versions.
7358   version_type=sunos
7359   need_lib_prefix=no
7360   need_version=no
7361   case "$host_cpu" in
7362   ia64*)
7363     shrext_cmds='.so'
7364     hardcode_into_libs=yes
7365     dynamic_linker="$host_os dld.so"
7366     shlibpath_var=LD_LIBRARY_PATH
7367     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7368     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7369     soname_spec='${libname}${release}${shared_ext}$major'
7370     if test "X$HPUX_IA64_MODE" = X32; then
7371       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7372     else
7373       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7374     fi
7375     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7376     ;;
7377    hppa*64*)
7378      shrext_cmds='.sl'
7379      hardcode_into_libs=yes
7380      dynamic_linker="$host_os dld.sl"
7381      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7382      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7383      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7384      soname_spec='${libname}${release}${shared_ext}$major'
7385      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7386      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7387      ;;
7388    *)
7389     shrext_cmds='.sl'
7390     dynamic_linker="$host_os dld.sl"
7391     shlibpath_var=SHLIB_PATH
7392     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7393     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7394     soname_spec='${libname}${release}${shared_ext}$major'
7395     ;;
7396   esac
7397   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7398   postinstall_cmds='chmod 555 $lib'
7399   ;;
7400
7401 irix5* | irix6* | nonstopux*)
7402   case $host_os in
7403     nonstopux*) version_type=nonstopux ;;
7404     *)
7405         if test "$lt_cv_prog_gnu_ld" = yes; then
7406                 version_type=linux
7407         else
7408                 version_type=irix
7409         fi ;;
7410   esac
7411   need_lib_prefix=no
7412   need_version=no
7413   soname_spec='${libname}${release}${shared_ext}$major'
7414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7415   case $host_os in
7416   irix5* | nonstopux*)
7417     libsuff= shlibsuff=
7418     ;;
7419   *)
7420     case $LD in # libtool.m4 will add one of these switches to LD
7421     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7422       libsuff= shlibsuff= libmagic=32-bit;;
7423     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7424       libsuff=32 shlibsuff=N32 libmagic=N32;;
7425     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7426       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7427     *) libsuff= shlibsuff= libmagic=never-match;;
7428     esac
7429     ;;
7430   esac
7431   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7432   shlibpath_overrides_runpath=no
7433   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7434   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7435   hardcode_into_libs=yes
7436   ;;
7437
7438 # No shared lib support for Linux oldld, aout, or coff.
7439 linux*oldld* | linux*aout* | linux*coff*)
7440   dynamic_linker=no
7441   ;;
7442
7443 # This must be Linux ELF.
7444 linux*)
7445   version_type=linux
7446   need_lib_prefix=no
7447   need_version=no
7448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7449   soname_spec='${libname}${release}${shared_ext}$major'
7450   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7451   shlibpath_var=LD_LIBRARY_PATH
7452   shlibpath_overrides_runpath=no
7453   # This implies no fast_install, which is unacceptable.
7454   # Some rework will be needed to allow for fast_install
7455   # before this can be enabled.
7456   hardcode_into_libs=yes
7457
7458   # Append ld.so.conf contents to the search path
7459   if test -f /etc/ld.so.conf; then
7460     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7461     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7462   fi
7463
7464   # We used to test for /lib/ld.so.1 and disable shared libraries on
7465   # powerpc, because MkLinux only supported shared libraries with the
7466   # GNU dynamic linker.  Since this was broken with cross compilers,
7467   # most powerpc-linux boxes support dynamic linking these days and
7468   # people can always --disable-shared, the test was removed, and we
7469   # assume the GNU/Linux dynamic linker is in use.
7470   dynamic_linker='GNU/Linux ld.so'
7471   ;;
7472
7473 knetbsd*-gnu)
7474   version_type=linux
7475   need_lib_prefix=no
7476   need_version=no
7477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7478   soname_spec='${libname}${release}${shared_ext}$major'
7479   shlibpath_var=LD_LIBRARY_PATH
7480   shlibpath_overrides_runpath=no
7481   hardcode_into_libs=yes
7482   dynamic_linker='GNU ld.so'
7483   ;;
7484
7485 netbsd*)
7486   version_type=sunos
7487   need_lib_prefix=no
7488   need_version=no
7489   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7490     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7491     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7492     dynamic_linker='NetBSD (a.out) ld.so'
7493   else
7494     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7495     soname_spec='${libname}${release}${shared_ext}$major'
7496     dynamic_linker='NetBSD ld.elf_so'
7497   fi
7498   shlibpath_var=LD_LIBRARY_PATH
7499   shlibpath_overrides_runpath=yes
7500   hardcode_into_libs=yes
7501   ;;
7502
7503 newsos6)
7504   version_type=linux
7505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7506   shlibpath_var=LD_LIBRARY_PATH
7507   shlibpath_overrides_runpath=yes
7508   ;;
7509
7510 nto-qnx*)
7511   version_type=linux
7512   need_lib_prefix=no
7513   need_version=no
7514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7515   soname_spec='${libname}${release}${shared_ext}$major'
7516   shlibpath_var=LD_LIBRARY_PATH
7517   shlibpath_overrides_runpath=yes
7518   ;;
7519
7520 openbsd*)
7521   version_type=sunos
7522   need_lib_prefix=no
7523   need_version=no
7524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7525   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7526   shlibpath_var=LD_LIBRARY_PATH
7527   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7528     case $host_os in
7529       openbsd2.[89] | openbsd2.[89].*)
7530         shlibpath_overrides_runpath=no
7531         ;;
7532       *)
7533         shlibpath_overrides_runpath=yes
7534         ;;
7535       esac
7536   else
7537     shlibpath_overrides_runpath=yes
7538   fi
7539   ;;
7540
7541 os2*)
7542   libname_spec='$name'
7543   shrext_cmds=".dll"
7544   need_lib_prefix=no
7545   library_names_spec='$libname${shared_ext} $libname.a'
7546   dynamic_linker='OS/2 ld.exe'
7547   shlibpath_var=LIBPATH
7548   ;;
7549
7550 osf3* | osf4* | osf5*)
7551   version_type=osf
7552   need_lib_prefix=no
7553   need_version=no
7554   soname_spec='${libname}${release}${shared_ext}$major'
7555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7556   shlibpath_var=LD_LIBRARY_PATH
7557   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7558   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7559   ;;
7560
7561 sco3.2v5*)
7562   version_type=osf
7563   soname_spec='${libname}${release}${shared_ext}$major'
7564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7565   shlibpath_var=LD_LIBRARY_PATH
7566   ;;
7567
7568 solaris*)
7569   version_type=linux
7570   need_lib_prefix=no
7571   need_version=no
7572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7573   soname_spec='${libname}${release}${shared_ext}$major'
7574   shlibpath_var=LD_LIBRARY_PATH
7575   shlibpath_overrides_runpath=yes
7576   hardcode_into_libs=yes
7577   # ldd complains unless libraries are executable
7578   postinstall_cmds='chmod +x $lib'
7579   ;;
7580
7581 sunos4*)
7582   version_type=sunos
7583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7584   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7585   shlibpath_var=LD_LIBRARY_PATH
7586   shlibpath_overrides_runpath=yes
7587   if test "$with_gnu_ld" = yes; then
7588     need_lib_prefix=no
7589   fi
7590   need_version=yes
7591   ;;
7592
7593 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7594   version_type=linux
7595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7596   soname_spec='${libname}${release}${shared_ext}$major'
7597   shlibpath_var=LD_LIBRARY_PATH
7598   case $host_vendor in
7599     sni)
7600       shlibpath_overrides_runpath=no
7601       need_lib_prefix=no
7602       export_dynamic_flag_spec='${wl}-Blargedynsym'
7603       runpath_var=LD_RUN_PATH
7604       ;;
7605     siemens)
7606       need_lib_prefix=no
7607       ;;
7608     motorola)
7609       need_lib_prefix=no
7610       need_version=no
7611       shlibpath_overrides_runpath=no
7612       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7613       ;;
7614   esac
7615   ;;
7616
7617 sysv4*MP*)
7618   if test -d /usr/nec ;then
7619     version_type=linux
7620     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7621     soname_spec='$libname${shared_ext}.$major'
7622     shlibpath_var=LD_LIBRARY_PATH
7623   fi
7624   ;;
7625
7626 uts4*)
7627   version_type=linux
7628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7629   soname_spec='${libname}${release}${shared_ext}$major'
7630   shlibpath_var=LD_LIBRARY_PATH
7631   ;;
7632
7633 *)
7634   dynamic_linker=no
7635   ;;
7636 esac
7637 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7638 echo "${ECHO_T}$dynamic_linker" >&6
7639 test "$dynamic_linker" = no && can_build_shared=no
7640
7641
7642 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7643 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7644 if test "${libltdl_cv_shlibext+set}" = set; then
7645   echo $ECHO_N "(cached) $ECHO_C" >&6
7646 else
7647
7648 module=yes
7649 eval libltdl_cv_shlibext=$shrext_cmds
7650
7651 fi
7652 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7653 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7654 if test -n "$libltdl_cv_shlibext"; then
7655
7656 cat >>confdefs.h <<_ACEOF
7657 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7658 _ACEOF
7659
7660 fi
7661
7662
7663 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7664 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7665 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7666   echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668   libltdl_cv_shlibpath_var="$shlibpath_var"
7669 fi
7670 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7671 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7672 if test -n "$libltdl_cv_shlibpath_var"; then
7673
7674 cat >>confdefs.h <<_ACEOF
7675 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7676 _ACEOF
7677
7678 fi
7679
7680
7681 echo "$as_me:$LINENO: checking for the default library search path" >&5
7682 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7683 if test "${libltdl_cv_sys_search_path+set}" = set; then
7684   echo $ECHO_N "(cached) $ECHO_C" >&6
7685 else
7686   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7687 fi
7688 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7689 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7690 if test -n "$libltdl_cv_sys_search_path"; then
7691   sys_search_path=
7692   for dir in $libltdl_cv_sys_search_path; do
7693     if test -z "$sys_search_path"; then
7694       sys_search_path="$dir"
7695     else
7696       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7697     fi
7698   done
7699
7700 cat >>confdefs.h <<_ACEOF
7701 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7702 _ACEOF
7703
7704 fi
7705
7706 echo "$as_me:$LINENO: checking for objdir" >&5
7707 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7708 if test "${libltdl_cv_objdir+set}" = set; then
7709   echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711   libltdl_cv_objdir="$objdir"
7712   if test -n "$objdir"; then
7713     :
7714   else
7715     rm -f .libs 2>/dev/null
7716     mkdir .libs 2>/dev/null
7717     if test -d .libs; then
7718       libltdl_cv_objdir=.libs
7719     else
7720       # MS-DOS does not allow filenames that begin with a dot.
7721       libltdl_cv_objdir=_libs
7722     fi
7723   rmdir .libs 2>/dev/null
7724   fi
7725
7726 fi
7727 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7728 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7729
7730 cat >>confdefs.h <<_ACEOF
7731 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7732 _ACEOF
7733
7734
7735 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7736 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7737 if test "${lt_cv_path_NM+set}" = set; then
7738   echo $ECHO_N "(cached) $ECHO_C" >&6
7739 else
7740   if test -n "$NM"; then
7741   # Let the user override the test.
7742   lt_cv_path_NM="$NM"
7743 else
7744   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7745   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7746     IFS="$lt_save_ifs"
7747     test -z "$ac_dir" && ac_dir=.
7748     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7749     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7750       # Check to see if the nm accepts a BSD-compat flag.
7751       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7752       #   nm: unknown option "B" ignored
7753       # Tru64's nm complains that /dev/null is an invalid object file
7754       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7755       */dev/null* | *'Invalid file or object type'*)
7756         lt_cv_path_NM="$tmp_nm -B"
7757         break
7758         ;;
7759       *)
7760         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7761         */dev/null*)
7762           lt_cv_path_NM="$tmp_nm -p"
7763           break
7764           ;;
7765         *)
7766           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7767           continue # so that we can try to find one that supports BSD flags
7768           ;;
7769         esac
7770       esac
7771     fi
7772   done
7773   IFS="$lt_save_ifs"
7774   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7775 fi
7776 fi
7777 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7778 echo "${ECHO_T}$lt_cv_path_NM" >&6
7779 NM="$lt_cv_path_NM"
7780
7781
7782
7783
7784
7785 # Check for command to grab the raw symbol name followed by C symbol from nm.
7786 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7787 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7788 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7789   echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791
7792 # These are sane defaults that work on at least a few old systems.
7793 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7794
7795 # Character class describing NM global symbol codes.
7796 symcode='[BCDEGRST]'
7797
7798 # Regexp to match symbols that can be accessed directly from C.
7799 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7800
7801 # Transform the above into a raw symbol and a C symbol.
7802 symxfrm='\1 \2\3 \3'
7803
7804 # Transform an extracted symbol line into a proper C declaration
7805 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7806
7807 # Transform an extracted symbol line into symbol name and symbol address
7808 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'"
7809
7810 # Define system-specific variables.
7811 case $host_os in
7812 aix*)
7813   symcode='[BCDT]'
7814   ;;
7815 cygwin* | mingw* | pw32*)
7816   symcode='[ABCDGISTW]'
7817   ;;
7818 hpux*) # Its linker distinguishes data from code symbols
7819   if test "$host_cpu" = ia64; then
7820     symcode='[ABCDEGRST]'
7821   fi
7822   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7823   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'"
7824   ;;
7825 linux*)
7826   if test "$host_cpu" = ia64; then
7827     symcode='[ABCDGIRSTW]'
7828     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7829     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'"
7830   fi
7831   ;;
7832 irix* | nonstopux*)
7833   symcode='[BCDEGRST]'
7834   ;;
7835 osf*)
7836   symcode='[BCDEGQRST]'
7837   ;;
7838 solaris* | sysv5*)
7839   symcode='[BDRT]'
7840   ;;
7841 sysv4)
7842   symcode='[DFNSTU]'
7843   ;;
7844 esac
7845
7846 # Handle CRLF in mingw tool chain
7847 opt_cr=
7848 case $build_os in
7849 mingw*)
7850   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7851   ;;
7852 esac
7853
7854 # If we're using GNU nm, then use its standard symbol codes.
7855 case `$NM -V 2>&1` in
7856 *GNU* | *'with BFD'*)
7857   symcode='[ABCDGIRSTW]' ;;
7858 esac
7859
7860 # Try without a prefix undercore, then with it.
7861 for ac_symprfx in "" "_"; do
7862
7863   # Write the raw and C identifiers.
7864   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7865
7866   # Check to see that the pipe works correctly.
7867   pipe_works=no
7868
7869   rm -f conftest*
7870   cat > conftest.$ac_ext <<EOF
7871 #ifdef __cplusplus
7872 extern "C" {
7873 #endif
7874 char nm_test_var;
7875 void nm_test_func(){}
7876 #ifdef __cplusplus
7877 }
7878 #endif
7879 int main(){nm_test_var='a';nm_test_func();return(0);}
7880 EOF
7881
7882   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7883   (eval $ac_compile) 2>&5
7884   ac_status=$?
7885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886   (exit $ac_status); }; then
7887     # Now try to grab the symbols.
7888     nlist=conftest.nm
7889     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7890   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7891   ac_status=$?
7892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893   (exit $ac_status); } && test -s "$nlist"; then
7894       # Try sorting and uniquifying the output.
7895       if sort "$nlist" | uniq > "$nlist"T; then
7896         mv -f "$nlist"T "$nlist"
7897       else
7898         rm -f "$nlist"T
7899       fi
7900
7901       # Make sure that we snagged all the symbols we need.
7902       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7903         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7904           cat <<EOF > conftest.$ac_ext
7905 #ifdef __cplusplus
7906 extern "C" {
7907 #endif
7908
7909 EOF
7910           # Now generate the symbol file.
7911           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7912
7913           cat <<EOF >> conftest.$ac_ext
7914 #if defined (__STDC__) && __STDC__
7915 # define lt_ptr_t void *
7916 #else
7917 # define lt_ptr_t char *
7918 # define const
7919 #endif
7920
7921 /* The mapping between symbol names and symbols. */
7922 const struct {
7923   const char *name;
7924   lt_ptr_t address;
7925 }
7926 lt_preloaded_symbols[] =
7927 {
7928 EOF
7929           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7930           cat <<\EOF >> conftest.$ac_ext
7931   {0, (lt_ptr_t) 0}
7932 };
7933
7934 #ifdef __cplusplus
7935 }
7936 #endif
7937 EOF
7938           # Now try linking the two files.
7939           mv conftest.$ac_objext conftstm.$ac_objext
7940           lt_save_LIBS="$LIBS"
7941           lt_save_CFLAGS="$CFLAGS"
7942           LIBS="conftstm.$ac_objext"
7943           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7944           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7945   (eval $ac_link) 2>&5
7946   ac_status=$?
7947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7949             pipe_works=yes
7950           fi
7951           LIBS="$lt_save_LIBS"
7952           CFLAGS="$lt_save_CFLAGS"
7953         else
7954           echo "cannot find nm_test_func in $nlist" >&5
7955         fi
7956       else
7957         echo "cannot find nm_test_var in $nlist" >&5
7958       fi
7959     else
7960       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7961     fi
7962   else
7963     echo "$progname: failed program was:" >&5
7964     cat conftest.$ac_ext >&5
7965   fi
7966   rm -f conftest* conftst*
7967
7968   # Do not use the global_symbol_pipe unless it works.
7969   if test "$pipe_works" = yes; then
7970     break
7971   else
7972     lt_cv_sys_global_symbol_pipe=
7973   fi
7974 done
7975
7976 fi
7977
7978 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7979   lt_cv_sys_global_symbol_to_cdecl=
7980 fi
7981 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7982   echo "$as_me:$LINENO: result: failed" >&5
7983 echo "${ECHO_T}failed" >&6
7984 else
7985   echo "$as_me:$LINENO: result: ok" >&5
7986 echo "${ECHO_T}ok" >&6
7987 fi
7988
7989
7990 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7991 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7992 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7993   echo $ECHO_N "(cached) $ECHO_C" >&6
7994 else
7995   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7996     libltdl_cv_preloaded_symbols=yes
7997   else
7998     libltdl_cv_preloaded_symbols=no
7999   fi
8000
8001 fi
8002 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
8003 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
8004 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
8005
8006 cat >>confdefs.h <<\_ACEOF
8007 #define HAVE_PRELOADED_SYMBOLS 1
8008 _ACEOF
8009
8010 fi
8011
8012 LIBADD_DL=
8013
8014 ac_ext=c
8015 ac_cpp='$CPP $CPPFLAGS'
8016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8019
8020
8021 echo "$as_me:$LINENO: checking for shl_load" >&5
8022 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8023 if test "${ac_cv_func_shl_load+set}" = set; then
8024   echo $ECHO_N "(cached) $ECHO_C" >&6
8025 else
8026   cat >conftest.$ac_ext <<_ACEOF
8027 /* confdefs.h.  */
8028 _ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h.  */
8032 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8034 #define shl_load innocuous_shl_load
8035
8036 /* System header to define __stub macros and hopefully few prototypes,
8037     which can conflict with char shl_load (); below.
8038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8039     <limits.h> exists even on freestanding compilers.  */
8040
8041 #ifdef __STDC__
8042 # include <limits.h>
8043 #else
8044 # include <assert.h>
8045 #endif
8046
8047 #undef shl_load
8048
8049 /* Override any gcc2 internal prototype to avoid an error.  */
8050 #ifdef __cplusplus
8051 extern "C"
8052 {
8053 #endif
8054 /* We use char because int might match the return type of a gcc2
8055    builtin and then its argument prototype would still apply.  */
8056 char shl_load ();
8057 /* The GNU C library defines this for functions which it implements
8058     to always fail with ENOSYS.  Some functions are actually named
8059     something starting with __ and the normal name is an alias.  */
8060 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8061 choke me
8062 #else
8063 char (*f) () = shl_load;
8064 #endif
8065 #ifdef __cplusplus
8066 }
8067 #endif
8068
8069 int
8070 main ()
8071 {
8072 return f != shl_load;
8073   ;
8074   return 0;
8075 }
8076 _ACEOF
8077 rm -f conftest.$ac_objext conftest$ac_exeext
8078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8079   (eval $ac_link) 2>conftest.er1
8080   ac_status=$?
8081   grep -v '^ *+' conftest.er1 >conftest.err
8082   rm -f conftest.er1
8083   cat conftest.err >&5
8084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085   (exit $ac_status); } &&
8086          { ac_try='test -z "$ac_c_werror_flag"
8087                          || test ! -s conftest.err'
8088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089   (eval $ac_try) 2>&5
8090   ac_status=$?
8091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092   (exit $ac_status); }; } &&
8093          { ac_try='test -s conftest$ac_exeext'
8094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095   (eval $ac_try) 2>&5
8096   ac_status=$?
8097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098   (exit $ac_status); }; }; then
8099   ac_cv_func_shl_load=yes
8100 else
8101   echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8103
8104 ac_cv_func_shl_load=no
8105 fi
8106 rm -f conftest.err conftest.$ac_objext \
8107       conftest$ac_exeext conftest.$ac_ext
8108 fi
8109 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8110 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8111 if test $ac_cv_func_shl_load = yes; then
8112
8113 cat >>confdefs.h <<\_ACEOF
8114 #define HAVE_SHL_LOAD 1
8115 _ACEOF
8116
8117 else
8118   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8119 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8120 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8121   echo $ECHO_N "(cached) $ECHO_C" >&6
8122 else
8123   ac_check_lib_save_LIBS=$LIBS
8124 LIBS="-ldld  $LIBS"
8125 cat >conftest.$ac_ext <<_ACEOF
8126 /* confdefs.h.  */
8127 _ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h.  */
8131
8132 /* Override any gcc2 internal prototype to avoid an error.  */
8133 #ifdef __cplusplus
8134 extern "C"
8135 #endif
8136 /* We use char because int might match the return type of a gcc2
8137    builtin and then its argument prototype would still apply.  */
8138 char shl_load ();
8139 int
8140 main ()
8141 {
8142 shl_load ();
8143   ;
8144   return 0;
8145 }
8146 _ACEOF
8147 rm -f conftest.$ac_objext conftest$ac_exeext
8148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8149   (eval $ac_link) 2>conftest.er1
8150   ac_status=$?
8151   grep -v '^ *+' conftest.er1 >conftest.err
8152   rm -f conftest.er1
8153   cat conftest.err >&5
8154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155   (exit $ac_status); } &&
8156          { ac_try='test -z "$ac_c_werror_flag"
8157                          || test ! -s conftest.err'
8158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8159   (eval $ac_try) 2>&5
8160   ac_status=$?
8161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162   (exit $ac_status); }; } &&
8163          { ac_try='test -s conftest$ac_exeext'
8164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165   (eval $ac_try) 2>&5
8166   ac_status=$?
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); }; }; then
8169   ac_cv_lib_dld_shl_load=yes
8170 else
8171   echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8173
8174 ac_cv_lib_dld_shl_load=no
8175 fi
8176 rm -f conftest.err conftest.$ac_objext \
8177       conftest$ac_exeext conftest.$ac_ext
8178 LIBS=$ac_check_lib_save_LIBS
8179 fi
8180 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8181 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8182 if test $ac_cv_lib_dld_shl_load = yes; then
8183
8184 cat >>confdefs.h <<\_ACEOF
8185 #define HAVE_SHL_LOAD 1
8186 _ACEOF
8187
8188         LIBADD_DL="$LIBADD_DL -ldld"
8189 else
8190   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8191 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8192 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8193   echo $ECHO_N "(cached) $ECHO_C" >&6
8194 else
8195   ac_check_lib_save_LIBS=$LIBS
8196 LIBS="-ldl  $LIBS"
8197 cat >conftest.$ac_ext <<_ACEOF
8198 /* confdefs.h.  */
8199 _ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h.  */
8203
8204 /* Override any gcc2 internal prototype to avoid an error.  */
8205 #ifdef __cplusplus
8206 extern "C"
8207 #endif
8208 /* We use char because int might match the return type of a gcc2
8209    builtin and then its argument prototype would still apply.  */
8210 char dlopen ();
8211 int
8212 main ()
8213 {
8214 dlopen ();
8215   ;
8216   return 0;
8217 }
8218 _ACEOF
8219 rm -f conftest.$ac_objext conftest$ac_exeext
8220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8221   (eval $ac_link) 2>conftest.er1
8222   ac_status=$?
8223   grep -v '^ *+' conftest.er1 >conftest.err
8224   rm -f conftest.er1
8225   cat conftest.err >&5
8226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227   (exit $ac_status); } &&
8228          { ac_try='test -z "$ac_c_werror_flag"
8229                          || test ! -s conftest.err'
8230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8231   (eval $ac_try) 2>&5
8232   ac_status=$?
8233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234   (exit $ac_status); }; } &&
8235          { ac_try='test -s conftest$ac_exeext'
8236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8237   (eval $ac_try) 2>&5
8238   ac_status=$?
8239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240   (exit $ac_status); }; }; then
8241   ac_cv_lib_dl_dlopen=yes
8242 else
8243   echo "$as_me: failed program was:" >&5
8244 sed 's/^/| /' conftest.$ac_ext >&5
8245
8246 ac_cv_lib_dl_dlopen=no
8247 fi
8248 rm -f conftest.err conftest.$ac_objext \
8249       conftest$ac_exeext conftest.$ac_ext
8250 LIBS=$ac_check_lib_save_LIBS
8251 fi
8252 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8253 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8254 if test $ac_cv_lib_dl_dlopen = yes; then
8255
8256 cat >>confdefs.h <<\_ACEOF
8257 #define HAVE_LIBDL 1
8258 _ACEOF
8259
8260                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
8261 else
8262   cat >conftest.$ac_ext <<_ACEOF
8263 /* confdefs.h.  */
8264 _ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h.  */
8268 #if HAVE_DLFCN_H
8269 #  include <dlfcn.h>
8270 #endif
8271
8272 int
8273 main ()
8274 {
8275 dlopen(0, 0);
8276   ;
8277   return 0;
8278 }
8279 _ACEOF
8280 rm -f conftest.$ac_objext conftest$ac_exeext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282   (eval $ac_link) 2>conftest.er1
8283   ac_status=$?
8284   grep -v '^ *+' conftest.er1 >conftest.err
8285   rm -f conftest.er1
8286   cat conftest.err >&5
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); } &&
8289          { ac_try='test -z "$ac_c_werror_flag"
8290                          || test ! -s conftest.err'
8291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292   (eval $ac_try) 2>&5
8293   ac_status=$?
8294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295   (exit $ac_status); }; } &&
8296          { ac_try='test -s conftest$ac_exeext'
8297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298   (eval $ac_try) 2>&5
8299   ac_status=$?
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); }; }; then
8302
8303 cat >>confdefs.h <<\_ACEOF
8304 #define HAVE_LIBDL 1
8305 _ACEOF
8306  libltdl_cv_func_dlopen="yes"
8307 else
8308   echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8310
8311 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8312 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8313 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8314   echo $ECHO_N "(cached) $ECHO_C" >&6
8315 else
8316   ac_check_lib_save_LIBS=$LIBS
8317 LIBS="-lsvld  $LIBS"
8318 cat >conftest.$ac_ext <<_ACEOF
8319 /* confdefs.h.  */
8320 _ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h.  */
8324
8325 /* Override any gcc2 internal prototype to avoid an error.  */
8326 #ifdef __cplusplus
8327 extern "C"
8328 #endif
8329 /* We use char because int might match the return type of a gcc2
8330    builtin and then its argument prototype would still apply.  */
8331 char dlopen ();
8332 int
8333 main ()
8334 {
8335 dlopen ();
8336   ;
8337   return 0;
8338 }
8339 _ACEOF
8340 rm -f conftest.$ac_objext conftest$ac_exeext
8341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8342   (eval $ac_link) 2>conftest.er1
8343   ac_status=$?
8344   grep -v '^ *+' conftest.er1 >conftest.err
8345   rm -f conftest.er1
8346   cat conftest.err >&5
8347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348   (exit $ac_status); } &&
8349          { ac_try='test -z "$ac_c_werror_flag"
8350                          || test ! -s conftest.err'
8351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352   (eval $ac_try) 2>&5
8353   ac_status=$?
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   (exit $ac_status); }; } &&
8356          { ac_try='test -s conftest$ac_exeext'
8357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358   (eval $ac_try) 2>&5
8359   ac_status=$?
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); }; }; then
8362   ac_cv_lib_svld_dlopen=yes
8363 else
8364   echo "$as_me: failed program was:" >&5
8365 sed 's/^/| /' conftest.$ac_ext >&5
8366
8367 ac_cv_lib_svld_dlopen=no
8368 fi
8369 rm -f conftest.err conftest.$ac_objext \
8370       conftest$ac_exeext conftest.$ac_ext
8371 LIBS=$ac_check_lib_save_LIBS
8372 fi
8373 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8374 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8375 if test $ac_cv_lib_svld_dlopen = yes; then
8376
8377 cat >>confdefs.h <<\_ACEOF
8378 #define HAVE_LIBDL 1
8379 _ACEOF
8380
8381                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8382 else
8383   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8384 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8385 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8386   echo $ECHO_N "(cached) $ECHO_C" >&6
8387 else
8388   ac_check_lib_save_LIBS=$LIBS
8389 LIBS="-ldld  $LIBS"
8390 cat >conftest.$ac_ext <<_ACEOF
8391 /* confdefs.h.  */
8392 _ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h.  */
8396
8397 /* Override any gcc2 internal prototype to avoid an error.  */
8398 #ifdef __cplusplus
8399 extern "C"
8400 #endif
8401 /* We use char because int might match the return type of a gcc2
8402    builtin and then its argument prototype would still apply.  */
8403 char dld_link ();
8404 int
8405 main ()
8406 {
8407 dld_link ();
8408   ;
8409   return 0;
8410 }
8411 _ACEOF
8412 rm -f conftest.$ac_objext conftest$ac_exeext
8413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8414   (eval $ac_link) 2>conftest.er1
8415   ac_status=$?
8416   grep -v '^ *+' conftest.er1 >conftest.err
8417   rm -f conftest.er1
8418   cat conftest.err >&5
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); } &&
8421          { ac_try='test -z "$ac_c_werror_flag"
8422                          || test ! -s conftest.err'
8423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424   (eval $ac_try) 2>&5
8425   ac_status=$?
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); }; } &&
8428          { ac_try='test -s conftest$ac_exeext'
8429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430   (eval $ac_try) 2>&5
8431   ac_status=$?
8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); }; }; then
8434   ac_cv_lib_dld_dld_link=yes
8435 else
8436   echo "$as_me: failed program was:" >&5
8437 sed 's/^/| /' conftest.$ac_ext >&5
8438
8439 ac_cv_lib_dld_dld_link=no
8440 fi
8441 rm -f conftest.err conftest.$ac_objext \
8442       conftest$ac_exeext conftest.$ac_ext
8443 LIBS=$ac_check_lib_save_LIBS
8444 fi
8445 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8446 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8447 if test $ac_cv_lib_dld_dld_link = yes; then
8448
8449 cat >>confdefs.h <<\_ACEOF
8450 #define HAVE_DLD 1
8451 _ACEOF
8452
8453                 LIBADD_DL="$LIBADD_DL -ldld"
8454 else
8455   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8456 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8457 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8458   echo $ECHO_N "(cached) $ECHO_C" >&6
8459 else
8460   cat >conftest.$ac_ext <<_ACEOF
8461 /* confdefs.h.  */
8462 _ACEOF
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h.  */
8466 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8467    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8468 #define _dyld_func_lookup innocuous__dyld_func_lookup
8469
8470 /* System header to define __stub macros and hopefully few prototypes,
8471     which can conflict with char _dyld_func_lookup (); below.
8472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8473     <limits.h> exists even on freestanding compilers.  */
8474
8475 #ifdef __STDC__
8476 # include <limits.h>
8477 #else
8478 # include <assert.h>
8479 #endif
8480
8481 #undef _dyld_func_lookup
8482
8483 /* Override any gcc2 internal prototype to avoid an error.  */
8484 #ifdef __cplusplus
8485 extern "C"
8486 {
8487 #endif
8488 /* We use char because int might match the return type of a gcc2
8489    builtin and then its argument prototype would still apply.  */
8490 char _dyld_func_lookup ();
8491 /* The GNU C library defines this for functions which it implements
8492     to always fail with ENOSYS.  Some functions are actually named
8493     something starting with __ and the normal name is an alias.  */
8494 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8495 choke me
8496 #else
8497 char (*f) () = _dyld_func_lookup;
8498 #endif
8499 #ifdef __cplusplus
8500 }
8501 #endif
8502
8503 int
8504 main ()
8505 {
8506 return f != _dyld_func_lookup;
8507   ;
8508   return 0;
8509 }
8510 _ACEOF
8511 rm -f conftest.$ac_objext conftest$ac_exeext
8512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8513   (eval $ac_link) 2>conftest.er1
8514   ac_status=$?
8515   grep -v '^ *+' conftest.er1 >conftest.err
8516   rm -f conftest.er1
8517   cat conftest.err >&5
8518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519   (exit $ac_status); } &&
8520          { ac_try='test -z "$ac_c_werror_flag"
8521                          || test ! -s conftest.err'
8522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8523   (eval $ac_try) 2>&5
8524   ac_status=$?
8525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526   (exit $ac_status); }; } &&
8527          { ac_try='test -s conftest$ac_exeext'
8528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529   (eval $ac_try) 2>&5
8530   ac_status=$?
8531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532   (exit $ac_status); }; }; then
8533   ac_cv_func__dyld_func_lookup=yes
8534 else
8535   echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8537
8538 ac_cv_func__dyld_func_lookup=no
8539 fi
8540 rm -f conftest.err conftest.$ac_objext \
8541       conftest$ac_exeext conftest.$ac_ext
8542 fi
8543 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8544 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8545 if test $ac_cv_func__dyld_func_lookup = yes; then
8546
8547 cat >>confdefs.h <<\_ACEOF
8548 #define HAVE_DYLD 1
8549 _ACEOF
8550
8551 fi
8552
8553
8554 fi
8555
8556
8557 fi
8558
8559
8560 fi
8561 rm -f conftest.err conftest.$ac_objext \
8562       conftest$ac_exeext conftest.$ac_ext
8563
8564 fi
8565
8566
8567 fi
8568
8569
8570 fi
8571
8572
8573 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8574 then
8575   lt_save_LIBS="$LIBS"
8576   LIBS="$LIBS $LIBADD_DL"
8577
8578 for ac_func in dlerror
8579 do
8580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8581 echo "$as_me:$LINENO: checking for $ac_func" >&5
8582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8583 if eval "test \"\${$as_ac_var+set}\" = set"; then
8584   echo $ECHO_N "(cached) $ECHO_C" >&6
8585 else
8586   cat >conftest.$ac_ext <<_ACEOF
8587 /* confdefs.h.  */
8588 _ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h.  */
8592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8593    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8594 #define $ac_func innocuous_$ac_func
8595
8596 /* System header to define __stub macros and hopefully few prototypes,
8597     which can conflict with char $ac_func (); below.
8598     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8599     <limits.h> exists even on freestanding compilers.  */
8600
8601 #ifdef __STDC__
8602 # include <limits.h>
8603 #else
8604 # include <assert.h>
8605 #endif
8606
8607 #undef $ac_func
8608
8609 /* Override any gcc2 internal prototype to avoid an error.  */
8610 #ifdef __cplusplus
8611 extern "C"
8612 {
8613 #endif
8614 /* We use char because int might match the return type of a gcc2
8615    builtin and then its argument prototype would still apply.  */
8616 char $ac_func ();
8617 /* The GNU C library defines this for functions which it implements
8618     to always fail with ENOSYS.  Some functions are actually named
8619     something starting with __ and the normal name is an alias.  */
8620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8621 choke me
8622 #else
8623 char (*f) () = $ac_func;
8624 #endif
8625 #ifdef __cplusplus
8626 }
8627 #endif
8628
8629 int
8630 main ()
8631 {
8632 return f != $ac_func;
8633   ;
8634   return 0;
8635 }
8636 _ACEOF
8637 rm -f conftest.$ac_objext conftest$ac_exeext
8638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8639   (eval $ac_link) 2>conftest.er1
8640   ac_status=$?
8641   grep -v '^ *+' conftest.er1 >conftest.err
8642   rm -f conftest.er1
8643   cat conftest.err >&5
8644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645   (exit $ac_status); } &&
8646          { ac_try='test -z "$ac_c_werror_flag"
8647                          || test ! -s conftest.err'
8648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649   (eval $ac_try) 2>&5
8650   ac_status=$?
8651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   (exit $ac_status); }; } &&
8653          { ac_try='test -s conftest$ac_exeext'
8654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655   (eval $ac_try) 2>&5
8656   ac_status=$?
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); }; }; then
8659   eval "$as_ac_var=yes"
8660 else
8661   echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8663
8664 eval "$as_ac_var=no"
8665 fi
8666 rm -f conftest.err conftest.$ac_objext \
8667       conftest$ac_exeext conftest.$ac_ext
8668 fi
8669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8671 if test `eval echo '${'$as_ac_var'}'` = yes; then
8672   cat >>confdefs.h <<_ACEOF
8673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8674 _ACEOF
8675
8676 fi
8677 done
8678
8679   LIBS="$lt_save_LIBS"
8680 fi
8681 ac_ext=c
8682 ac_cpp='$CPP $CPPFLAGS'
8683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8686
8687
8688
8689 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8690 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8691 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8692   echo $ECHO_N "(cached) $ECHO_C" >&6
8693 else
8694   ac_cv_sys_symbol_underscore=no
8695   cat > conftest.$ac_ext <<EOF
8696 void nm_test_func(){}
8697 int main(){nm_test_func;return 0;}
8698 EOF
8699   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8700   (eval $ac_compile) 2>&5
8701   ac_status=$?
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); }; then
8704     # Now try to grab the symbols.
8705     ac_nlist=conftest.nm
8706     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8707   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8708   ac_status=$?
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); } && test -s "$ac_nlist"; then
8711       # See whether the symbols have a leading underscore.
8712       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8713         ac_cv_sys_symbol_underscore=yes
8714       else
8715         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8716           :
8717         else
8718           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8719         fi
8720       fi
8721     else
8722       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8723     fi
8724   else
8725     echo "configure: failed program was:" >&5
8726     cat conftest.c >&5
8727   fi
8728   rm -rf conftest*
8729
8730 fi
8731 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8732 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8733
8734
8735 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8736   if test x"$libltdl_cv_func_dlopen" = xyes ||
8737      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8738         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8739 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8740 if test "${libltdl_cv_need_uscore+set}" = set; then
8741   echo $ECHO_N "(cached) $ECHO_C" >&6
8742 else
8743   libltdl_cv_need_uscore=unknown
8744           save_LIBS="$LIBS"
8745           LIBS="$LIBS $LIBADD_DL"
8746           if test "$cross_compiling" = yes; then :
8747   libltdl_cv_need_uscore=cross
8748 else
8749   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8750   lt_status=$lt_dlunknown
8751   cat > conftest.$ac_ext <<EOF
8752 #line 8752 "configure"
8753 #include "confdefs.h"
8754
8755 #if HAVE_DLFCN_H
8756 #include <dlfcn.h>
8757 #endif
8758
8759 #include <stdio.h>
8760
8761 #ifdef RTLD_GLOBAL
8762 #  define LT_DLGLOBAL           RTLD_GLOBAL
8763 #else
8764 #  ifdef DL_GLOBAL
8765 #    define LT_DLGLOBAL         DL_GLOBAL
8766 #  else
8767 #    define LT_DLGLOBAL         0
8768 #  endif
8769 #endif
8770
8771 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8772    find out it does not work in some platform. */
8773 #ifndef LT_DLLAZY_OR_NOW
8774 #  ifdef RTLD_LAZY
8775 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8776 #  else
8777 #    ifdef DL_LAZY
8778 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8779 #    else
8780 #      ifdef RTLD_NOW
8781 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8782 #      else
8783 #        ifdef DL_NOW
8784 #          define LT_DLLAZY_OR_NOW      DL_NOW
8785 #        else
8786 #          define LT_DLLAZY_OR_NOW      0
8787 #        endif
8788 #      endif
8789 #    endif
8790 #  endif
8791 #endif
8792
8793 #ifdef __cplusplus
8794 extern "C" void exit (int);
8795 #endif
8796
8797 void fnord() { int i=42;}
8798 int main ()
8799 {
8800   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8801   int status = $lt_dlunknown;
8802
8803   if (self)
8804     {
8805       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8806       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8807       /* dlclose (self); */
8808     }
8809
8810     exit (status);
8811 }
8812 EOF
8813   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814   (eval $ac_link) 2>&5
8815   ac_status=$?
8816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8818     (./conftest; exit; ) 2>/dev/null
8819     lt_status=$?
8820     case x$lt_status in
8821       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8822       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8823       x$lt_unknown|x*)  ;;
8824     esac
8825   else :
8826     # compilation failed
8827
8828   fi
8829 fi
8830 rm -fr conftest*
8831
8832           LIBS="$save_LIBS"
8833
8834 fi
8835 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8836 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8837   fi
8838 fi
8839
8840 if test x"$libltdl_cv_need_uscore" = xyes; then
8841
8842 cat >>confdefs.h <<\_ACEOF
8843 #define NEED_USCORE 1
8844 _ACEOF
8845
8846 fi
8847
8848
8849 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8850 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8851 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8852   echo $ECHO_N "(cached) $ECHO_C" >&6
8853 else
8854   # PORTME does your system automatically load deplibs for dlopen?
8855   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8856   # For now, we just catch OSes we know something about -- in the
8857   # future, we'll try test this programmatically.
8858   libltdl_cv_sys_dlopen_deplibs=unknown
8859   case "$host_os" in
8860   aix3*|aix4.1.*|aix4.2.*)
8861     # Unknown whether this is true for these versions of AIX, but
8862     # we want this `case' here to explicitly catch those versions.
8863     libltdl_cv_sys_dlopen_deplibs=unknown
8864     ;;
8865   aix[45]*)
8866     libltdl_cv_sys_dlopen_deplibs=yes
8867     ;;
8868   darwin*)
8869     # Assuming the user has installed a libdl from somewhere, this is true
8870     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8871     libltdl_cv_sys_dlopen_deplibs=yes
8872     ;;
8873   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8874     # GNU and its variants, using gnu ld.so (Glibc)
8875     libltdl_cv_sys_dlopen_deplibs=yes
8876     ;;
8877   hpux10*|hpux11*)
8878     libltdl_cv_sys_dlopen_deplibs=yes
8879     ;;
8880   irix[12345]*|irix6.[01]*)
8881     # Catch all versions of IRIX before 6.2, and indicate that we don't
8882     # know how it worked for any of those versions.
8883     libltdl_cv_sys_dlopen_deplibs=unknown
8884     ;;
8885   irix*)
8886     # The case above catches anything before 6.2, and it's known that
8887     # at 6.2 and later dlopen does load deplibs.
8888     libltdl_cv_sys_dlopen_deplibs=yes
8889     ;;
8890   netbsd*)
8891     libltdl_cv_sys_dlopen_deplibs=yes
8892     ;;
8893   openbsd*)
8894     libltdl_cv_sys_dlopen_deplibs=yes
8895     ;;
8896   osf[1234]*)
8897     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8898     # it did *not* use an RPATH in a shared library to find objects the
8899     # library depends on, so we explictly say `no'.
8900     libltdl_cv_sys_dlopen_deplibs=no
8901     ;;
8902   osf5.0|osf5.0a|osf5.1)
8903     # dlopen *does* load deplibs and with the right loader patch applied
8904     # it even uses RPATH in a shared library to search for shared objects
8905     # that the library depends on, but there's no easy way to know if that
8906     # patch is installed.  Since this is the case, all we can really
8907     # say is unknown -- it depends on the patch being installed.  If
8908     # it is, this changes to `yes'.  Without it, it would be `no'.
8909     libltdl_cv_sys_dlopen_deplibs=unknown
8910     ;;
8911   osf*)
8912     # the two cases above should catch all versions of osf <= 5.1.  Read
8913     # the comments above for what we know about them.
8914     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8915     # is used to find them so we can finally say `yes'.
8916     libltdl_cv_sys_dlopen_deplibs=yes
8917     ;;
8918   solaris*)
8919     libltdl_cv_sys_dlopen_deplibs=yes
8920     ;;
8921   esac
8922
8923 fi
8924 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8925 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8926 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8927
8928 cat >>confdefs.h <<\_ACEOF
8929 #define LTDL_DLOPEN_DEPLIBS 1
8930 _ACEOF
8931
8932 fi
8933
8934
8935 for ac_header in argz.h
8936 do
8937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8939   echo "$as_me:$LINENO: checking for $ac_header" >&5
8940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8942   echo $ECHO_N "(cached) $ECHO_C" >&6
8943 fi
8944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8946 else
8947   # Is the header compilable?
8948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8950 cat >conftest.$ac_ext <<_ACEOF
8951 /* confdefs.h.  */
8952 _ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h.  */
8956 $ac_includes_default
8957 #include <$ac_header>
8958 _ACEOF
8959 rm -f conftest.$ac_objext
8960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8961   (eval $ac_compile) 2>conftest.er1
8962   ac_status=$?
8963   grep -v '^ *+' conftest.er1 >conftest.err
8964   rm -f conftest.er1
8965   cat conftest.err >&5
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); } &&
8968          { ac_try='test -z "$ac_c_werror_flag"
8969                          || test ! -s conftest.err'
8970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971   (eval $ac_try) 2>&5
8972   ac_status=$?
8973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974   (exit $ac_status); }; } &&
8975          { ac_try='test -s conftest.$ac_objext'
8976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977   (eval $ac_try) 2>&5
8978   ac_status=$?
8979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980   (exit $ac_status); }; }; then
8981   ac_header_compiler=yes
8982 else
8983   echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8985
8986 ac_header_compiler=no
8987 fi
8988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8990 echo "${ECHO_T}$ac_header_compiler" >&6
8991
8992 # Is the header present?
8993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8995 cat >conftest.$ac_ext <<_ACEOF
8996 /* confdefs.h.  */
8997 _ACEOF
8998 cat confdefs.h >>conftest.$ac_ext
8999 cat >>conftest.$ac_ext <<_ACEOF
9000 /* end confdefs.h.  */
9001 #include <$ac_header>
9002 _ACEOF
9003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9004   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9005   ac_status=$?
9006   grep -v '^ *+' conftest.er1 >conftest.err
9007   rm -f conftest.er1
9008   cat conftest.err >&5
9009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010   (exit $ac_status); } >/dev/null; then
9011   if test -s conftest.err; then
9012     ac_cpp_err=$ac_c_preproc_warn_flag
9013     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9014   else
9015     ac_cpp_err=
9016   fi
9017 else
9018   ac_cpp_err=yes
9019 fi
9020 if test -z "$ac_cpp_err"; then
9021   ac_header_preproc=yes
9022 else
9023   echo "$as_me: failed program was:" >&5
9024 sed 's/^/| /' conftest.$ac_ext >&5
9025
9026   ac_header_preproc=no
9027 fi
9028 rm -f conftest.err conftest.$ac_ext
9029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9030 echo "${ECHO_T}$ac_header_preproc" >&6
9031
9032 # So?  What about this header?
9033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9034   yes:no: )
9035     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9039     ac_header_preproc=yes
9040     ;;
9041   no:yes:* )
9042     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9044     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9045 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9046     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9048     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9049 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9052     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9054     (
9055       cat <<\_ASBOX
9056 ## ----------------------------------- ##
9057 ## Report this to llvmbugs@cs.uiuc.edu ##
9058 ## ----------------------------------- ##
9059 _ASBOX
9060     ) |
9061       sed "s/^/$as_me: WARNING:     /" >&2
9062     ;;
9063 esac
9064 echo "$as_me:$LINENO: checking for $ac_header" >&5
9065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9067   echo $ECHO_N "(cached) $ECHO_C" >&6
9068 else
9069   eval "$as_ac_Header=\$ac_header_preproc"
9070 fi
9071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9073
9074 fi
9075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9076   cat >>confdefs.h <<_ACEOF
9077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9078 _ACEOF
9079
9080 fi
9081
9082 done
9083
9084
9085 echo "$as_me:$LINENO: checking for error_t" >&5
9086 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
9087 if test "${ac_cv_type_error_t+set}" = set; then
9088   echo $ECHO_N "(cached) $ECHO_C" >&6
9089 else
9090   cat >conftest.$ac_ext <<_ACEOF
9091 /* confdefs.h.  */
9092 _ACEOF
9093 cat confdefs.h >>conftest.$ac_ext
9094 cat >>conftest.$ac_ext <<_ACEOF
9095 /* end confdefs.h.  */
9096 #if HAVE_ARGZ_H
9097 #  include <argz.h>
9098 #endif
9099
9100 int
9101 main ()
9102 {
9103 if ((error_t *) 0)
9104   return 0;
9105 if (sizeof (error_t))
9106   return 0;
9107   ;
9108   return 0;
9109 }
9110 _ACEOF
9111 rm -f conftest.$ac_objext
9112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9113   (eval $ac_compile) 2>conftest.er1
9114   ac_status=$?
9115   grep -v '^ *+' conftest.er1 >conftest.err
9116   rm -f conftest.er1
9117   cat conftest.err >&5
9118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119   (exit $ac_status); } &&
9120          { ac_try='test -z "$ac_c_werror_flag"
9121                          || test ! -s conftest.err'
9122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123   (eval $ac_try) 2>&5
9124   ac_status=$?
9125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126   (exit $ac_status); }; } &&
9127          { ac_try='test -s conftest.$ac_objext'
9128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129   (eval $ac_try) 2>&5
9130   ac_status=$?
9131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132   (exit $ac_status); }; }; then
9133   ac_cv_type_error_t=yes
9134 else
9135   echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9137
9138 ac_cv_type_error_t=no
9139 fi
9140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9141 fi
9142 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
9143 echo "${ECHO_T}$ac_cv_type_error_t" >&6
9144 if test $ac_cv_type_error_t = yes; then
9145
9146 cat >>confdefs.h <<_ACEOF
9147 #define HAVE_ERROR_T 1
9148 _ACEOF
9149
9150
9151 else
9152
9153 cat >>confdefs.h <<\_ACEOF
9154 #define error_t int
9155 _ACEOF
9156
9157 fi
9158
9159
9160
9161
9162
9163
9164
9165 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
9166 do
9167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9168 echo "$as_me:$LINENO: checking for $ac_func" >&5
9169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9170 if eval "test \"\${$as_ac_var+set}\" = set"; then
9171   echo $ECHO_N "(cached) $ECHO_C" >&6
9172 else
9173   cat >conftest.$ac_ext <<_ACEOF
9174 /* confdefs.h.  */
9175 _ACEOF
9176 cat confdefs.h >>conftest.$ac_ext
9177 cat >>conftest.$ac_ext <<_ACEOF
9178 /* end confdefs.h.  */
9179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9180    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9181 #define $ac_func innocuous_$ac_func
9182
9183 /* System header to define __stub macros and hopefully few prototypes,
9184     which can conflict with char $ac_func (); below.
9185     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9186     <limits.h> exists even on freestanding compilers.  */
9187
9188 #ifdef __STDC__
9189 # include <limits.h>
9190 #else
9191 # include <assert.h>
9192 #endif
9193
9194 #undef $ac_func
9195
9196 /* Override any gcc2 internal prototype to avoid an error.  */
9197 #ifdef __cplusplus
9198 extern "C"
9199 {
9200 #endif
9201 /* We use char because int might match the return type of a gcc2
9202    builtin and then its argument prototype would still apply.  */
9203 char $ac_func ();
9204 /* The GNU C library defines this for functions which it implements
9205     to always fail with ENOSYS.  Some functions are actually named
9206     something starting with __ and the normal name is an alias.  */
9207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9208 choke me
9209 #else
9210 char (*f) () = $ac_func;
9211 #endif
9212 #ifdef __cplusplus
9213 }
9214 #endif
9215
9216 int
9217 main ()
9218 {
9219 return f != $ac_func;
9220   ;
9221   return 0;
9222 }
9223 _ACEOF
9224 rm -f conftest.$ac_objext conftest$ac_exeext
9225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9226   (eval $ac_link) 2>conftest.er1
9227   ac_status=$?
9228   grep -v '^ *+' conftest.er1 >conftest.err
9229   rm -f conftest.er1
9230   cat conftest.err >&5
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   (exit $ac_status); } &&
9233          { ac_try='test -z "$ac_c_werror_flag"
9234                          || test ! -s conftest.err'
9235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236   (eval $ac_try) 2>&5
9237   ac_status=$?
9238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239   (exit $ac_status); }; } &&
9240          { ac_try='test -s conftest$ac_exeext'
9241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9242   (eval $ac_try) 2>&5
9243   ac_status=$?
9244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245   (exit $ac_status); }; }; then
9246   eval "$as_ac_var=yes"
9247 else
9248   echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9250
9251 eval "$as_ac_var=no"
9252 fi
9253 rm -f conftest.err conftest.$ac_objext \
9254       conftest$ac_exeext conftest.$ac_ext
9255 fi
9256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9258 if test `eval echo '${'$as_ac_var'}'` = yes; then
9259   cat >>confdefs.h <<_ACEOF
9260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9261 _ACEOF
9262
9263 fi
9264 done
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9294                   stdio.h unistd.h
9295 do
9296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9298   echo "$as_me:$LINENO: checking for $ac_header" >&5
9299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9301   echo $ECHO_N "(cached) $ECHO_C" >&6
9302 fi
9303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9305 else
9306   # Is the header compilable?
9307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9309 cat >conftest.$ac_ext <<_ACEOF
9310 /* confdefs.h.  */
9311 _ACEOF
9312 cat confdefs.h >>conftest.$ac_ext
9313 cat >>conftest.$ac_ext <<_ACEOF
9314 /* end confdefs.h.  */
9315 $ac_includes_default
9316 #include <$ac_header>
9317 _ACEOF
9318 rm -f conftest.$ac_objext
9319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9320   (eval $ac_compile) 2>conftest.er1
9321   ac_status=$?
9322   grep -v '^ *+' conftest.er1 >conftest.err
9323   rm -f conftest.er1
9324   cat conftest.err >&5
9325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326   (exit $ac_status); } &&
9327          { ac_try='test -z "$ac_c_werror_flag"
9328                          || test ! -s conftest.err'
9329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330   (eval $ac_try) 2>&5
9331   ac_status=$?
9332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333   (exit $ac_status); }; } &&
9334          { ac_try='test -s conftest.$ac_objext'
9335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336   (eval $ac_try) 2>&5
9337   ac_status=$?
9338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339   (exit $ac_status); }; }; then
9340   ac_header_compiler=yes
9341 else
9342   echo "$as_me: failed program was:" >&5
9343 sed 's/^/| /' conftest.$ac_ext >&5
9344
9345 ac_header_compiler=no
9346 fi
9347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9349 echo "${ECHO_T}$ac_header_compiler" >&6
9350
9351 # Is the header present?
9352 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9354 cat >conftest.$ac_ext <<_ACEOF
9355 /* confdefs.h.  */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h.  */
9360 #include <$ac_header>
9361 _ACEOF
9362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9363   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9364   ac_status=$?
9365   grep -v '^ *+' conftest.er1 >conftest.err
9366   rm -f conftest.er1
9367   cat conftest.err >&5
9368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369   (exit $ac_status); } >/dev/null; then
9370   if test -s conftest.err; then
9371     ac_cpp_err=$ac_c_preproc_warn_flag
9372     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9373   else
9374     ac_cpp_err=
9375   fi
9376 else
9377   ac_cpp_err=yes
9378 fi
9379 if test -z "$ac_cpp_err"; then
9380   ac_header_preproc=yes
9381 else
9382   echo "$as_me: failed program was:" >&5
9383 sed 's/^/| /' conftest.$ac_ext >&5
9384
9385   ac_header_preproc=no
9386 fi
9387 rm -f conftest.err conftest.$ac_ext
9388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9389 echo "${ECHO_T}$ac_header_preproc" >&6
9390
9391 # So?  What about this header?
9392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9393   yes:no: )
9394     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9396     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9398     ac_header_preproc=yes
9399     ;;
9400   no:yes:* )
9401     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9403     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9404 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9405     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9407     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9408 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9409     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9411     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9413     (
9414       cat <<\_ASBOX
9415 ## ----------------------------------- ##
9416 ## Report this to llvmbugs@cs.uiuc.edu ##
9417 ## ----------------------------------- ##
9418 _ASBOX
9419     ) |
9420       sed "s/^/$as_me: WARNING:     /" >&2
9421     ;;
9422 esac
9423 echo "$as_me:$LINENO: checking for $ac_header" >&5
9424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9426   echo $ECHO_N "(cached) $ECHO_C" >&6
9427 else
9428   eval "$as_ac_Header=\$ac_header_preproc"
9429 fi
9430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9432
9433 fi
9434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9435   cat >>confdefs.h <<_ACEOF
9436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9437 _ACEOF
9438
9439 fi
9440
9441 done
9442
9443
9444
9445
9446
9447 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9448 do
9449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9451   echo "$as_me:$LINENO: checking for $ac_header" >&5
9452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9454   echo $ECHO_N "(cached) $ECHO_C" >&6
9455 fi
9456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9458 else
9459   # Is the header compilable?
9460 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9462 cat >conftest.$ac_ext <<_ACEOF
9463 /* confdefs.h.  */
9464 _ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h.  */
9468 $ac_includes_default
9469 #include <$ac_header>
9470 _ACEOF
9471 rm -f conftest.$ac_objext
9472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9473   (eval $ac_compile) 2>conftest.er1
9474   ac_status=$?
9475   grep -v '^ *+' conftest.er1 >conftest.err
9476   rm -f conftest.er1
9477   cat conftest.err >&5
9478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479   (exit $ac_status); } &&
9480          { ac_try='test -z "$ac_c_werror_flag"
9481                          || test ! -s conftest.err'
9482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9483   (eval $ac_try) 2>&5
9484   ac_status=$?
9485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486   (exit $ac_status); }; } &&
9487          { ac_try='test -s conftest.$ac_objext'
9488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489   (eval $ac_try) 2>&5
9490   ac_status=$?
9491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492   (exit $ac_status); }; }; then
9493   ac_header_compiler=yes
9494 else
9495   echo "$as_me: failed program was:" >&5
9496 sed 's/^/| /' conftest.$ac_ext >&5
9497
9498 ac_header_compiler=no
9499 fi
9500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9501 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9502 echo "${ECHO_T}$ac_header_compiler" >&6
9503
9504 # Is the header present?
9505 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9507 cat >conftest.$ac_ext <<_ACEOF
9508 /* confdefs.h.  */
9509 _ACEOF
9510 cat confdefs.h >>conftest.$ac_ext
9511 cat >>conftest.$ac_ext <<_ACEOF
9512 /* end confdefs.h.  */
9513 #include <$ac_header>
9514 _ACEOF
9515 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9516   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9517   ac_status=$?
9518   grep -v '^ *+' conftest.er1 >conftest.err
9519   rm -f conftest.er1
9520   cat conftest.err >&5
9521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522   (exit $ac_status); } >/dev/null; then
9523   if test -s conftest.err; then
9524     ac_cpp_err=$ac_c_preproc_warn_flag
9525     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9526   else
9527     ac_cpp_err=
9528   fi
9529 else
9530   ac_cpp_err=yes
9531 fi
9532 if test -z "$ac_cpp_err"; then
9533   ac_header_preproc=yes
9534 else
9535   echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9537
9538   ac_header_preproc=no
9539 fi
9540 rm -f conftest.err conftest.$ac_ext
9541 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9542 echo "${ECHO_T}$ac_header_preproc" >&6
9543
9544 # So?  What about this header?
9545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9546   yes:no: )
9547     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9549     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9551     ac_header_preproc=yes
9552     ;;
9553   no:yes:* )
9554     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9556     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9557 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9558     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9559 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9560     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9561 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9562     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9564     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9565 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9566     (
9567       cat <<\_ASBOX
9568 ## ----------------------------------- ##
9569 ## Report this to llvmbugs@cs.uiuc.edu ##
9570 ## ----------------------------------- ##
9571 _ASBOX
9572     ) |
9573       sed "s/^/$as_me: WARNING:     /" >&2
9574     ;;
9575 esac
9576 echo "$as_me:$LINENO: checking for $ac_header" >&5
9577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9579   echo $ECHO_N "(cached) $ECHO_C" >&6
9580 else
9581   eval "$as_ac_Header=\$ac_header_preproc"
9582 fi
9583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9585
9586 fi
9587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9588   cat >>confdefs.h <<_ACEOF
9589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9590 _ACEOF
9591
9592 fi
9593
9594 done
9595
9596
9597
9598 for ac_header in string.h strings.h
9599 do
9600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9602   echo "$as_me:$LINENO: checking for $ac_header" >&5
9603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9605   echo $ECHO_N "(cached) $ECHO_C" >&6
9606 fi
9607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9609 else
9610   # Is the header compilable?
9611 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9613 cat >conftest.$ac_ext <<_ACEOF
9614 /* confdefs.h.  */
9615 _ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h.  */
9619 $ac_includes_default
9620 #include <$ac_header>
9621 _ACEOF
9622 rm -f conftest.$ac_objext
9623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9624   (eval $ac_compile) 2>conftest.er1
9625   ac_status=$?
9626   grep -v '^ *+' conftest.er1 >conftest.err
9627   rm -f conftest.er1
9628   cat conftest.err >&5
9629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630   (exit $ac_status); } &&
9631          { ac_try='test -z "$ac_c_werror_flag"
9632                          || test ! -s conftest.err'
9633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634   (eval $ac_try) 2>&5
9635   ac_status=$?
9636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637   (exit $ac_status); }; } &&
9638          { ac_try='test -s conftest.$ac_objext'
9639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640   (eval $ac_try) 2>&5
9641   ac_status=$?
9642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643   (exit $ac_status); }; }; then
9644   ac_header_compiler=yes
9645 else
9646   echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9648
9649 ac_header_compiler=no
9650 fi
9651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9652 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9653 echo "${ECHO_T}$ac_header_compiler" >&6
9654
9655 # Is the header present?
9656 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9658 cat >conftest.$ac_ext <<_ACEOF
9659 /* confdefs.h.  */
9660 _ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h.  */
9664 #include <$ac_header>
9665 _ACEOF
9666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9667   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9668   ac_status=$?
9669   grep -v '^ *+' conftest.er1 >conftest.err
9670   rm -f conftest.er1
9671   cat conftest.err >&5
9672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673   (exit $ac_status); } >/dev/null; then
9674   if test -s conftest.err; then
9675     ac_cpp_err=$ac_c_preproc_warn_flag
9676     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9677   else
9678     ac_cpp_err=
9679   fi
9680 else
9681   ac_cpp_err=yes
9682 fi
9683 if test -z "$ac_cpp_err"; then
9684   ac_header_preproc=yes
9685 else
9686   echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9688
9689   ac_header_preproc=no
9690 fi
9691 rm -f conftest.err conftest.$ac_ext
9692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9693 echo "${ECHO_T}$ac_header_preproc" >&6
9694
9695 # So?  What about this header?
9696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9697   yes:no: )
9698     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9700     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9702     ac_header_preproc=yes
9703     ;;
9704   no:yes:* )
9705     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9707     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9708 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9709     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9711     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9712 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9713     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9715     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9717     (
9718       cat <<\_ASBOX
9719 ## ----------------------------------- ##
9720 ## Report this to llvmbugs@cs.uiuc.edu ##
9721 ## ----------------------------------- ##
9722 _ASBOX
9723     ) |
9724       sed "s/^/$as_me: WARNING:     /" >&2
9725     ;;
9726 esac
9727 echo "$as_me:$LINENO: checking for $ac_header" >&5
9728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9730   echo $ECHO_N "(cached) $ECHO_C" >&6
9731 else
9732   eval "$as_ac_Header=\$ac_header_preproc"
9733 fi
9734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9736
9737 fi
9738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9739   cat >>confdefs.h <<_ACEOF
9740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9741 _ACEOF
9742  break
9743 fi
9744
9745 done
9746
9747
9748
9749
9750 for ac_func in strchr index
9751 do
9752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9753 echo "$as_me:$LINENO: checking for $ac_func" >&5
9754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9755 if eval "test \"\${$as_ac_var+set}\" = set"; then
9756   echo $ECHO_N "(cached) $ECHO_C" >&6
9757 else
9758   cat >conftest.$ac_ext <<_ACEOF
9759 /* confdefs.h.  */
9760 _ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h.  */
9764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9766 #define $ac_func innocuous_$ac_func
9767
9768 /* System header to define __stub macros and hopefully few prototypes,
9769     which can conflict with char $ac_func (); below.
9770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9771     <limits.h> exists even on freestanding compilers.  */
9772
9773 #ifdef __STDC__
9774 # include <limits.h>
9775 #else
9776 # include <assert.h>
9777 #endif
9778
9779 #undef $ac_func
9780
9781 /* Override any gcc2 internal prototype to avoid an error.  */
9782 #ifdef __cplusplus
9783 extern "C"
9784 {
9785 #endif
9786 /* We use char because int might match the return type of a gcc2
9787    builtin and then its argument prototype would still apply.  */
9788 char $ac_func ();
9789 /* The GNU C library defines this for functions which it implements
9790     to always fail with ENOSYS.  Some functions are actually named
9791     something starting with __ and the normal name is an alias.  */
9792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9793 choke me
9794 #else
9795 char (*f) () = $ac_func;
9796 #endif
9797 #ifdef __cplusplus
9798 }
9799 #endif
9800
9801 int
9802 main ()
9803 {
9804 return f != $ac_func;
9805   ;
9806   return 0;
9807 }
9808 _ACEOF
9809 rm -f conftest.$ac_objext conftest$ac_exeext
9810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9811   (eval $ac_link) 2>conftest.er1
9812   ac_status=$?
9813   grep -v '^ *+' conftest.er1 >conftest.err
9814   rm -f conftest.er1
9815   cat conftest.err >&5
9816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817   (exit $ac_status); } &&
9818          { ac_try='test -z "$ac_c_werror_flag"
9819                          || test ! -s conftest.err'
9820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821   (eval $ac_try) 2>&5
9822   ac_status=$?
9823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824   (exit $ac_status); }; } &&
9825          { ac_try='test -s conftest$ac_exeext'
9826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9827   (eval $ac_try) 2>&5
9828   ac_status=$?
9829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830   (exit $ac_status); }; }; then
9831   eval "$as_ac_var=yes"
9832 else
9833   echo "$as_me: failed program was:" >&5
9834 sed 's/^/| /' conftest.$ac_ext >&5
9835
9836 eval "$as_ac_var=no"
9837 fi
9838 rm -f conftest.err conftest.$ac_objext \
9839       conftest$ac_exeext conftest.$ac_ext
9840 fi
9841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9843 if test `eval echo '${'$as_ac_var'}'` = yes; then
9844   cat >>confdefs.h <<_ACEOF
9845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9846 _ACEOF
9847  break
9848 fi
9849 done
9850
9851
9852
9853 for ac_func in strrchr rindex
9854 do
9855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9856 echo "$as_me:$LINENO: checking for $ac_func" >&5
9857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9858 if eval "test \"\${$as_ac_var+set}\" = set"; then
9859   echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861   cat >conftest.$ac_ext <<_ACEOF
9862 /* confdefs.h.  */
9863 _ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h.  */
9867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9869 #define $ac_func innocuous_$ac_func
9870
9871 /* System header to define __stub macros and hopefully few prototypes,
9872     which can conflict with char $ac_func (); below.
9873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9874     <limits.h> exists even on freestanding compilers.  */
9875
9876 #ifdef __STDC__
9877 # include <limits.h>
9878 #else
9879 # include <assert.h>
9880 #endif
9881
9882 #undef $ac_func
9883
9884 /* Override any gcc2 internal prototype to avoid an error.  */
9885 #ifdef __cplusplus
9886 extern "C"
9887 {
9888 #endif
9889 /* We use char because int might match the return type of a gcc2
9890    builtin and then its argument prototype would still apply.  */
9891 char $ac_func ();
9892 /* The GNU C library defines this for functions which it implements
9893     to always fail with ENOSYS.  Some functions are actually named
9894     something starting with __ and the normal name is an alias.  */
9895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9896 choke me
9897 #else
9898 char (*f) () = $ac_func;
9899 #endif
9900 #ifdef __cplusplus
9901 }
9902 #endif
9903
9904 int
9905 main ()
9906 {
9907 return f != $ac_func;
9908   ;
9909   return 0;
9910 }
9911 _ACEOF
9912 rm -f conftest.$ac_objext conftest$ac_exeext
9913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9914   (eval $ac_link) 2>conftest.er1
9915   ac_status=$?
9916   grep -v '^ *+' conftest.er1 >conftest.err
9917   rm -f conftest.er1
9918   cat conftest.err >&5
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); } &&
9921          { ac_try='test -z "$ac_c_werror_flag"
9922                          || test ! -s conftest.err'
9923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924   (eval $ac_try) 2>&5
9925   ac_status=$?
9926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927   (exit $ac_status); }; } &&
9928          { ac_try='test -s conftest$ac_exeext'
9929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930   (eval $ac_try) 2>&5
9931   ac_status=$?
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); }; }; then
9934   eval "$as_ac_var=yes"
9935 else
9936   echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9938
9939 eval "$as_ac_var=no"
9940 fi
9941 rm -f conftest.err conftest.$ac_objext \
9942       conftest$ac_exeext conftest.$ac_ext
9943 fi
9944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9946 if test `eval echo '${'$as_ac_var'}'` = yes; then
9947   cat >>confdefs.h <<_ACEOF
9948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9949 _ACEOF
9950  break
9951 fi
9952 done
9953
9954
9955
9956 for ac_func in memcpy bcopy
9957 do
9958 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9959 echo "$as_me:$LINENO: checking for $ac_func" >&5
9960 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9961 if eval "test \"\${$as_ac_var+set}\" = set"; then
9962   echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964   cat >conftest.$ac_ext <<_ACEOF
9965 /* confdefs.h.  */
9966 _ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h.  */
9970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9972 #define $ac_func innocuous_$ac_func
9973
9974 /* System header to define __stub macros and hopefully few prototypes,
9975     which can conflict with char $ac_func (); below.
9976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9977     <limits.h> exists even on freestanding compilers.  */
9978
9979 #ifdef __STDC__
9980 # include <limits.h>
9981 #else
9982 # include <assert.h>
9983 #endif
9984
9985 #undef $ac_func
9986
9987 /* Override any gcc2 internal prototype to avoid an error.  */
9988 #ifdef __cplusplus
9989 extern "C"
9990 {
9991 #endif
9992 /* We use char because int might match the return type of a gcc2
9993    builtin and then its argument prototype would still apply.  */
9994 char $ac_func ();
9995 /* The GNU C library defines this for functions which it implements
9996     to always fail with ENOSYS.  Some functions are actually named
9997     something starting with __ and the normal name is an alias.  */
9998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9999 choke me
10000 #else
10001 char (*f) () = $ac_func;
10002 #endif
10003 #ifdef __cplusplus
10004 }
10005 #endif
10006
10007 int
10008 main ()
10009 {
10010 return f != $ac_func;
10011   ;
10012   return 0;
10013 }
10014 _ACEOF
10015 rm -f conftest.$ac_objext conftest$ac_exeext
10016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10017   (eval $ac_link) 2>conftest.er1
10018   ac_status=$?
10019   grep -v '^ *+' conftest.er1 >conftest.err
10020   rm -f conftest.er1
10021   cat conftest.err >&5
10022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023   (exit $ac_status); } &&
10024          { ac_try='test -z "$ac_c_werror_flag"
10025                          || test ! -s conftest.err'
10026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027   (eval $ac_try) 2>&5
10028   ac_status=$?
10029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); }; } &&
10031          { ac_try='test -s conftest$ac_exeext'
10032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033   (eval $ac_try) 2>&5
10034   ac_status=$?
10035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); }; }; then
10037   eval "$as_ac_var=yes"
10038 else
10039   echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10041
10042 eval "$as_ac_var=no"
10043 fi
10044 rm -f conftest.err conftest.$ac_objext \
10045       conftest$ac_exeext conftest.$ac_ext
10046 fi
10047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10049 if test `eval echo '${'$as_ac_var'}'` = yes; then
10050   cat >>confdefs.h <<_ACEOF
10051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10052 _ACEOF
10053  break
10054 fi
10055 done
10056
10057
10058
10059 for ac_func in memmove strcmp
10060 do
10061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10062 echo "$as_me:$LINENO: checking for $ac_func" >&5
10063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10064 if eval "test \"\${$as_ac_var+set}\" = set"; then
10065   echo $ECHO_N "(cached) $ECHO_C" >&6
10066 else
10067   cat >conftest.$ac_ext <<_ACEOF
10068 /* confdefs.h.  */
10069 _ACEOF
10070 cat confdefs.h >>conftest.$ac_ext
10071 cat >>conftest.$ac_ext <<_ACEOF
10072 /* end confdefs.h.  */
10073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10074    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10075 #define $ac_func innocuous_$ac_func
10076
10077 /* System header to define __stub macros and hopefully few prototypes,
10078     which can conflict with char $ac_func (); below.
10079     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10080     <limits.h> exists even on freestanding compilers.  */
10081
10082 #ifdef __STDC__
10083 # include <limits.h>
10084 #else
10085 # include <assert.h>
10086 #endif
10087
10088 #undef $ac_func
10089
10090 /* Override any gcc2 internal prototype to avoid an error.  */
10091 #ifdef __cplusplus
10092 extern "C"
10093 {
10094 #endif
10095 /* We use char because int might match the return type of a gcc2
10096    builtin and then its argument prototype would still apply.  */
10097 char $ac_func ();
10098 /* The GNU C library defines this for functions which it implements
10099     to always fail with ENOSYS.  Some functions are actually named
10100     something starting with __ and the normal name is an alias.  */
10101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10102 choke me
10103 #else
10104 char (*f) () = $ac_func;
10105 #endif
10106 #ifdef __cplusplus
10107 }
10108 #endif
10109
10110 int
10111 main ()
10112 {
10113 return f != $ac_func;
10114   ;
10115   return 0;
10116 }
10117 _ACEOF
10118 rm -f conftest.$ac_objext conftest$ac_exeext
10119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10120   (eval $ac_link) 2>conftest.er1
10121   ac_status=$?
10122   grep -v '^ *+' conftest.er1 >conftest.err
10123   rm -f conftest.er1
10124   cat conftest.err >&5
10125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126   (exit $ac_status); } &&
10127          { ac_try='test -z "$ac_c_werror_flag"
10128                          || test ! -s conftest.err'
10129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130   (eval $ac_try) 2>&5
10131   ac_status=$?
10132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); }; } &&
10134          { ac_try='test -s conftest$ac_exeext'
10135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10136   (eval $ac_try) 2>&5
10137   ac_status=$?
10138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139   (exit $ac_status); }; }; then
10140   eval "$as_ac_var=yes"
10141 else
10142   echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.$ac_ext >&5
10144
10145 eval "$as_ac_var=no"
10146 fi
10147 rm -f conftest.err conftest.$ac_objext \
10148       conftest$ac_exeext conftest.$ac_ext
10149 fi
10150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10151 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10152 if test `eval echo '${'$as_ac_var'}'` = yes; then
10153   cat >>confdefs.h <<_ACEOF
10154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10155 _ACEOF
10156
10157 fi
10158 done
10159
10160
10161
10162
10163 for ac_func in closedir opendir readdir
10164 do
10165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10166 echo "$as_me:$LINENO: checking for $ac_func" >&5
10167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10168 if eval "test \"\${$as_ac_var+set}\" = set"; then
10169   echo $ECHO_N "(cached) $ECHO_C" >&6
10170 else
10171   cat >conftest.$ac_ext <<_ACEOF
10172 /* confdefs.h.  */
10173 _ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h.  */
10177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10178    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10179 #define $ac_func innocuous_$ac_func
10180
10181 /* System header to define __stub macros and hopefully few prototypes,
10182     which can conflict with char $ac_func (); below.
10183     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10184     <limits.h> exists even on freestanding compilers.  */
10185
10186 #ifdef __STDC__
10187 # include <limits.h>
10188 #else
10189 # include <assert.h>
10190 #endif
10191
10192 #undef $ac_func
10193
10194 /* Override any gcc2 internal prototype to avoid an error.  */
10195 #ifdef __cplusplus
10196 extern "C"
10197 {
10198 #endif
10199 /* We use char because int might match the return type of a gcc2
10200    builtin and then its argument prototype would still apply.  */
10201 char $ac_func ();
10202 /* The GNU C library defines this for functions which it implements
10203     to always fail with ENOSYS.  Some functions are actually named
10204     something starting with __ and the normal name is an alias.  */
10205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10206 choke me
10207 #else
10208 char (*f) () = $ac_func;
10209 #endif
10210 #ifdef __cplusplus
10211 }
10212 #endif
10213
10214 int
10215 main ()
10216 {
10217 return f != $ac_func;
10218   ;
10219   return 0;
10220 }
10221 _ACEOF
10222 rm -f conftest.$ac_objext conftest$ac_exeext
10223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10224   (eval $ac_link) 2>conftest.er1
10225   ac_status=$?
10226   grep -v '^ *+' conftest.er1 >conftest.err
10227   rm -f conftest.er1
10228   cat conftest.err >&5
10229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230   (exit $ac_status); } &&
10231          { ac_try='test -z "$ac_c_werror_flag"
10232                          || test ! -s conftest.err'
10233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234   (eval $ac_try) 2>&5
10235   ac_status=$?
10236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); }; } &&
10238          { ac_try='test -s conftest$ac_exeext'
10239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240   (eval $ac_try) 2>&5
10241   ac_status=$?
10242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243   (exit $ac_status); }; }; then
10244   eval "$as_ac_var=yes"
10245 else
10246   echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10248
10249 eval "$as_ac_var=no"
10250 fi
10251 rm -f conftest.err conftest.$ac_objext \
10252       conftest$ac_exeext conftest.$ac_ext
10253 fi
10254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10256 if test `eval echo '${'$as_ac_var'}'` = yes; then
10257   cat >>confdefs.h <<_ACEOF
10258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10259 _ACEOF
10260
10261 fi
10262 done
10263
10264
10265 # Check whether --enable-shared or --disable-shared was given.
10266 if test "${enable_shared+set}" = set; then
10267   enableval="$enable_shared"
10268   p=${PACKAGE-default}
10269     case $enableval in
10270     yes) enable_shared=yes ;;
10271     no) enable_shared=no ;;
10272     *)
10273       enable_shared=no
10274       # Look at the argument we got.  We use all the common list separators.
10275       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10276       for pkg in $enableval; do
10277         IFS="$lt_save_ifs"
10278         if test "X$pkg" = "X$p"; then
10279           enable_shared=yes
10280         fi
10281       done
10282       IFS="$lt_save_ifs"
10283       ;;
10284     esac
10285 else
10286   enable_shared=yes
10287 fi;
10288
10289 # Check whether --enable-static or --disable-static was given.
10290 if test "${enable_static+set}" = set; then
10291   enableval="$enable_static"
10292   p=${PACKAGE-default}
10293     case $enableval in
10294     yes) enable_static=yes ;;
10295     no) enable_static=no ;;
10296     *)
10297      enable_static=no
10298       # Look at the argument we got.  We use all the common list separators.
10299       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10300       for pkg in $enableval; do
10301         IFS="$lt_save_ifs"
10302         if test "X$pkg" = "X$p"; then
10303           enable_static=yes
10304         fi
10305       done
10306       IFS="$lt_save_ifs"
10307       ;;
10308     esac
10309 else
10310   enable_static=yes
10311 fi;
10312
10313 # Check whether --enable-fast-install or --disable-fast-install was given.
10314 if test "${enable_fast_install+set}" = set; then
10315   enableval="$enable_fast_install"
10316   p=${PACKAGE-default}
10317     case $enableval in
10318     yes) enable_fast_install=yes ;;
10319     no) enable_fast_install=no ;;
10320     *)
10321       enable_fast_install=no
10322       # Look at the argument we got.  We use all the common list separators.
10323       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10324       for pkg in $enableval; do
10325         IFS="$lt_save_ifs"
10326         if test "X$pkg" = "X$p"; then
10327           enable_fast_install=yes
10328         fi
10329       done
10330       IFS="$lt_save_ifs"
10331       ;;
10332     esac
10333 else
10334   enable_fast_install=yes
10335 fi;
10336
10337 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10338 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10339 if test "${lt_cv_path_SED+set}" = set; then
10340   echo $ECHO_N "(cached) $ECHO_C" >&6
10341 else
10342   # Loop through the user's path and test for sed and gsed.
10343 # Then use that list of sed's as ones to test for truncation.
10344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10345 for as_dir in $PATH
10346 do
10347   IFS=$as_save_IFS
10348   test -z "$as_dir" && as_dir=.
10349   for lt_ac_prog in sed gsed; do
10350     for ac_exec_ext in '' $ac_executable_extensions; do
10351       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10352         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10353       fi
10354     done
10355   done
10356 done
10357 lt_ac_max=0
10358 lt_ac_count=0
10359 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10360 # along with /bin/sed that truncates output.
10361 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10362   test ! -f $lt_ac_sed && break
10363   cat /dev/null > conftest.in
10364   lt_ac_count=0
10365   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10366   # Check for GNU sed and select it if it is found.
10367   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10368     lt_cv_path_SED=$lt_ac_sed
10369     break
10370   fi
10371   while true; do
10372     cat conftest.in conftest.in >conftest.tmp
10373     mv conftest.tmp conftest.in
10374     cp conftest.in conftest.nl
10375     echo >>conftest.nl
10376     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10377     cmp -s conftest.out conftest.nl || break
10378     # 10000 chars as input seems more than enough
10379     test $lt_ac_count -gt 10 && break
10380     lt_ac_count=`expr $lt_ac_count + 1`
10381     if test $lt_ac_count -gt $lt_ac_max; then
10382       lt_ac_max=$lt_ac_count
10383       lt_cv_path_SED=$lt_ac_sed
10384     fi
10385   done
10386 done
10387
10388 fi
10389
10390 SED=$lt_cv_path_SED
10391 echo "$as_me:$LINENO: result: $SED" >&5
10392 echo "${ECHO_T}$SED" >&6
10393
10394
10395 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10396 if test "${with_gnu_ld+set}" = set; then
10397   withval="$with_gnu_ld"
10398   test "$withval" = no || with_gnu_ld=yes
10399 else
10400   with_gnu_ld=no
10401 fi;
10402 ac_prog=ld
10403 if test "$GCC" = yes; then
10404   # Check if gcc -print-prog-name=ld gives a path.
10405   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10406 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10407   case $host in
10408   *-*-mingw*)
10409     # gcc leaves a trailing carriage return which upsets mingw
10410     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10411   *)
10412     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10413   esac
10414   case $ac_prog in
10415     # Accept absolute paths.
10416     [\\/]* | ?:[\\/]*)
10417       re_direlt='/[^/][^/]*/\.\./'
10418       # Canonicalize the pathname of ld
10419       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10420       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10421         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10422       done
10423       test -z "$LD" && LD="$ac_prog"
10424       ;;
10425   "")
10426     # If it fails, then pretend we aren't using GCC.
10427     ac_prog=ld
10428     ;;
10429   *)
10430     # If it is relative, then search for the first ld in PATH.
10431     with_gnu_ld=unknown
10432     ;;
10433   esac
10434 elif test "$with_gnu_ld" = yes; then
10435   echo "$as_me:$LINENO: checking for GNU ld" >&5
10436 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10437 else
10438   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10439 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10440 fi
10441 if test "${lt_cv_path_LD+set}" = set; then
10442   echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10444   if test -z "$LD"; then
10445   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10446   for ac_dir in $PATH; do
10447     IFS="$lt_save_ifs"
10448     test -z "$ac_dir" && ac_dir=.
10449     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10450       lt_cv_path_LD="$ac_dir/$ac_prog"
10451       # Check to see if the program is GNU ld.  I'd rather use --version,
10452       # but apparently some GNU ld's only accept -v.
10453       # Break only if it was the GNU/non-GNU ld that we prefer.
10454       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10455       *GNU* | *'with BFD'*)
10456         test "$with_gnu_ld" != no && break
10457         ;;
10458       *)
10459         test "$with_gnu_ld" != yes && break
10460         ;;
10461       esac
10462     fi
10463   done
10464   IFS="$lt_save_ifs"
10465 else
10466   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10467 fi
10468 fi
10469
10470 LD="$lt_cv_path_LD"
10471 if test -n "$LD"; then
10472   echo "$as_me:$LINENO: result: $LD" >&5
10473 echo "${ECHO_T}$LD" >&6
10474 else
10475   echo "$as_me:$LINENO: result: no" >&5
10476 echo "${ECHO_T}no" >&6
10477 fi
10478 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10479 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10480    { (exit 1); exit 1; }; }
10481 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10482 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10483 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10484   echo $ECHO_N "(cached) $ECHO_C" >&6
10485 else
10486   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10487 case `$LD -v 2>&1 </dev/null` in
10488 *GNU* | *'with BFD'*)
10489   lt_cv_prog_gnu_ld=yes
10490   ;;
10491 *)
10492   lt_cv_prog_gnu_ld=no
10493   ;;
10494 esac
10495 fi
10496 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10497 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10498 with_gnu_ld=$lt_cv_prog_gnu_ld
10499
10500
10501 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10502 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10503 if test "${lt_cv_ld_reload_flag+set}" = set; then
10504   echo $ECHO_N "(cached) $ECHO_C" >&6
10505 else
10506   lt_cv_ld_reload_flag='-r'
10507 fi
10508 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10509 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10510 reload_flag=$lt_cv_ld_reload_flag
10511 case $reload_flag in
10512 "" | " "*) ;;
10513 *) reload_flag=" $reload_flag" ;;
10514 esac
10515 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10516 case $host_os in
10517   darwin*)
10518     if test "$GCC" = yes; then
10519       reload_cmds='$CC -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
10520     else
10521       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10522     fi
10523     ;;
10524 esac
10525
10526 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10527 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10528 if test "${lt_cv_deplibs_check_method+set}" = set; then
10529   echo $ECHO_N "(cached) $ECHO_C" >&6
10530 else
10531   lt_cv_file_magic_cmd='$MAGIC_CMD'
10532 lt_cv_file_magic_test_file=
10533 lt_cv_deplibs_check_method='unknown'
10534 # Need to set the preceding variable on all platforms that support
10535 # interlibrary dependencies.
10536 # 'none' -- dependencies not supported.
10537 # `unknown' -- same as none, but documents that we really don't know.
10538 # 'pass_all' -- all dependencies passed with no checks.
10539 # 'test_compile' -- check by making test program.
10540 # 'file_magic [[regex]]' -- check by looking for files in library path
10541 # which responds to the $file_magic_cmd with a given extended regex.
10542 # If you have `file' or equivalent on your system and you're not sure
10543 # whether `pass_all' will *always* work, you probably want this one.
10544
10545 case $host_os in
10546 aix4* | aix5*)
10547   lt_cv_deplibs_check_method=pass_all
10548   ;;
10549
10550 beos*)
10551   lt_cv_deplibs_check_method=pass_all
10552   ;;
10553
10554 bsdi[45]*)
10555   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10556   lt_cv_file_magic_cmd='/usr/bin/file -L'
10557   lt_cv_file_magic_test_file=/shlib/libc.so
10558   ;;
10559
10560 cygwin*)
10561   # func_win32_libid is a shell function defined in ltmain.sh
10562   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10563   lt_cv_file_magic_cmd='func_win32_libid'
10564   ;;
10565
10566 mingw* | pw32*)
10567   # Base MSYS/MinGW do not provide the 'file' command needed by
10568   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10569   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10570   lt_cv_file_magic_cmd='$OBJDUMP -f'
10571   ;;
10572
10573 darwin* | rhapsody*)
10574   lt_cv_deplibs_check_method=pass_all
10575   ;;
10576
10577 freebsd* | kfreebsd*-gnu)
10578   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10579     case $host_cpu in
10580     i*86 )
10581       # Not sure whether the presence of OpenBSD here was a mistake.
10582       # Let's accept both of them until this is cleared up.
10583       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10584       lt_cv_file_magic_cmd=/usr/bin/file
10585       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10586       ;;
10587     esac
10588   else
10589     lt_cv_deplibs_check_method=pass_all
10590   fi
10591   ;;
10592
10593 gnu*)
10594   lt_cv_deplibs_check_method=pass_all
10595   ;;
10596
10597 hpux10.20* | hpux11*)
10598   lt_cv_file_magic_cmd=/usr/bin/file
10599   case "$host_cpu" in
10600   ia64*)
10601     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10602     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10603     ;;
10604   hppa*64*)
10605     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]'
10606     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10607     ;;
10608   *)
10609     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10610     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10611     ;;
10612   esac
10613   ;;
10614
10615 irix5* | irix6* | nonstopux*)
10616   case $LD in
10617   *-32|*"-32 ") libmagic=32-bit;;
10618   *-n32|*"-n32 ") libmagic=N32;;
10619   *-64|*"-64 ") libmagic=64-bit;;
10620   *) libmagic=never-match;;
10621   esac
10622   lt_cv_deplibs_check_method=pass_all
10623   ;;
10624
10625 # This must be Linux ELF.
10626 linux*)
10627   lt_cv_deplibs_check_method=pass_all
10628   ;;
10629
10630 netbsd*)
10631   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10632     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10633   else
10634     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10635   fi
10636   ;;
10637
10638 newos6*)
10639   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10640   lt_cv_file_magic_cmd=/usr/bin/file
10641   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10642   ;;
10643
10644 nto-qnx*)
10645   lt_cv_deplibs_check_method=unknown
10646   ;;
10647
10648 openbsd*)
10649   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10650     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10651   else
10652     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10653   fi
10654   ;;
10655
10656 osf3* | osf4* | osf5*)
10657   lt_cv_deplibs_check_method=pass_all
10658   ;;
10659
10660 sco3.2v5*)
10661   lt_cv_deplibs_check_method=pass_all
10662   ;;
10663
10664 solaris*)
10665   lt_cv_deplibs_check_method=pass_all
10666   ;;
10667
10668 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10669   case $host_vendor in
10670   motorola)
10671     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]'
10672     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10673     ;;
10674   ncr)
10675     lt_cv_deplibs_check_method=pass_all
10676     ;;
10677   sequent)
10678     lt_cv_file_magic_cmd='/bin/file'
10679     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10680     ;;
10681   sni)
10682     lt_cv_file_magic_cmd='/bin/file'
10683     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10684     lt_cv_file_magic_test_file=/lib/libc.so
10685     ;;
10686   siemens)
10687     lt_cv_deplibs_check_method=pass_all
10688     ;;
10689   esac
10690   ;;
10691
10692 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10693   lt_cv_deplibs_check_method=pass_all
10694   ;;
10695 esac
10696
10697 fi
10698 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10699 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10700 file_magic_cmd=$lt_cv_file_magic_cmd
10701 deplibs_check_method=$lt_cv_deplibs_check_method
10702 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10703
10704
10705
10706 # If no C compiler was specified, use CC.
10707 LTCC=${LTCC-"$CC"}
10708
10709 # Allow CC to be a program name with arguments.
10710 compiler=$CC
10711
10712 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10713 if test "${enable_libtool_lock+set}" = set; then
10714   enableval="$enable_libtool_lock"
10715
10716 fi;
10717 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10718
10719 # Some flags need to be propagated to the compiler or linker for good
10720 # libtool support.
10721 case $host in
10722 ia64-*-hpux*)
10723   # Find out which ABI we are using.
10724   echo 'int i;' > conftest.$ac_ext
10725   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10726   (eval $ac_compile) 2>&5
10727   ac_status=$?
10728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); }; then
10730     case `/usr/bin/file conftest.$ac_objext` in
10731     *ELF-32*)
10732       HPUX_IA64_MODE="32"
10733       ;;
10734     *ELF-64*)
10735       HPUX_IA64_MODE="64"
10736       ;;
10737     esac
10738   fi
10739   rm -rf conftest*
10740   ;;
10741 *-*-irix6*)
10742   # Find out which ABI we are using.
10743   echo '#line 10743 "configure"' > conftest.$ac_ext
10744   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10745   (eval $ac_compile) 2>&5
10746   ac_status=$?
10747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748   (exit $ac_status); }; then
10749    if test "$lt_cv_prog_gnu_ld" = yes; then
10750     case `/usr/bin/file conftest.$ac_objext` in
10751     *32-bit*)
10752       LD="${LD-ld} -melf32bsmip"
10753       ;;
10754     *N32*)
10755       LD="${LD-ld} -melf32bmipn32"
10756       ;;
10757     *64-bit*)
10758       LD="${LD-ld} -melf64bmip"
10759       ;;
10760     esac
10761    else
10762     case `/usr/bin/file conftest.$ac_objext` in
10763     *32-bit*)
10764       LD="${LD-ld} -32"
10765       ;;
10766     *N32*)
10767       LD="${LD-ld} -n32"
10768       ;;
10769     *64-bit*)
10770       LD="${LD-ld} -64"
10771       ;;
10772     esac
10773    fi
10774   fi
10775   rm -rf conftest*
10776   ;;
10777
10778 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10779   # Find out which ABI we are using.
10780   echo 'int i;' > conftest.$ac_ext
10781   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10782   (eval $ac_compile) 2>&5
10783   ac_status=$?
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); }; then
10786     case "`/usr/bin/file conftest.o`" in
10787     *32-bit*)
10788       case $host in
10789         x86_64-*linux*)
10790           LD="${LD-ld} -m elf_i386"
10791           ;;
10792         ppc64-*linux*|powerpc64-*linux*)
10793           LD="${LD-ld} -m elf32ppclinux"
10794           ;;
10795         s390x-*linux*)
10796           LD="${LD-ld} -m elf_s390"
10797           ;;
10798         sparc64-*linux*)
10799           LD="${LD-ld} -m elf32_sparc"
10800           ;;
10801       esac
10802       ;;
10803     *64-bit*)
10804       case $host in
10805         x86_64-*linux*)
10806           LD="${LD-ld} -m elf_x86_64"
10807           ;;
10808         ppc*-*linux*|powerpc*-*linux*)
10809           LD="${LD-ld} -m elf64ppc"
10810           ;;
10811         s390*-*linux*)
10812           LD="${LD-ld} -m elf64_s390"
10813           ;;
10814         sparc*-*linux*)
10815           LD="${LD-ld} -m elf64_sparc"
10816           ;;
10817       esac
10818       ;;
10819     esac
10820   fi
10821   rm -rf conftest*
10822   ;;
10823
10824 *-*-sco3.2v5*)
10825   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10826   SAVE_CFLAGS="$CFLAGS"
10827   CFLAGS="$CFLAGS -belf"
10828   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10829 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10830 if test "${lt_cv_cc_needs_belf+set}" = set; then
10831   echo $ECHO_N "(cached) $ECHO_C" >&6
10832 else
10833   ac_ext=c
10834 ac_cpp='$CPP $CPPFLAGS'
10835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10838
10839      cat >conftest.$ac_ext <<_ACEOF
10840 /* confdefs.h.  */
10841 _ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h.  */
10845
10846 _ACEOF
10847 rm -f conftest.$ac_objext conftest$ac_exeext
10848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10849   (eval $ac_link) 2>conftest.er1
10850   ac_status=$?
10851   grep -v '^ *+' conftest.er1 >conftest.err
10852   rm -f conftest.er1
10853   cat conftest.err >&5
10854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855   (exit $ac_status); } &&
10856          { ac_try='test -z "$ac_c_werror_flag"
10857                          || test ! -s conftest.err'
10858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10859   (eval $ac_try) 2>&5
10860   ac_status=$?
10861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862   (exit $ac_status); }; } &&
10863          { ac_try='test -s conftest$ac_exeext'
10864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10865   (eval $ac_try) 2>&5
10866   ac_status=$?
10867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868   (exit $ac_status); }; }; then
10869   lt_cv_cc_needs_belf=yes
10870 else
10871   echo "$as_me: failed program was:" >&5
10872 sed 's/^/| /' conftest.$ac_ext >&5
10873
10874 lt_cv_cc_needs_belf=no
10875 fi
10876 rm -f conftest.err conftest.$ac_objext \
10877       conftest$ac_exeext conftest.$ac_ext
10878      ac_ext=c
10879 ac_cpp='$CPP $CPPFLAGS'
10880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10883
10884 fi
10885 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10886 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10887   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10888     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10889     CFLAGS="$SAVE_CFLAGS"
10890   fi
10891   ;;
10892
10893 esac
10894
10895 need_locks="$enable_libtool_lock"
10896
10897
10898
10899
10900 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10901     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10902     (test "X$CXX" != "Xg++"))) ; then
10903   ac_ext=cc
10904 ac_cpp='$CXXCPP $CPPFLAGS'
10905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10908 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10909 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10910 if test -z "$CXXCPP"; then
10911   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10912   echo $ECHO_N "(cached) $ECHO_C" >&6
10913 else
10914       # Double quotes because CXXCPP needs to be expanded
10915     for CXXCPP in "$CXX -E" "/lib/cpp"
10916     do
10917       ac_preproc_ok=false
10918 for ac_cxx_preproc_warn_flag in '' yes
10919 do
10920   # Use a header file that comes with gcc, so configuring glibc
10921   # with a fresh cross-compiler works.
10922   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10923   # <limits.h> exists even on freestanding compilers.
10924   # On the NeXT, cc -E runs the code through the compiler's parser,
10925   # not just through cpp. "Syntax error" is here to catch this case.
10926   cat >conftest.$ac_ext <<_ACEOF
10927 /* confdefs.h.  */
10928 _ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h.  */
10932 #ifdef __STDC__
10933 # include <limits.h>
10934 #else
10935 # include <assert.h>
10936 #endif
10937                      Syntax error
10938 _ACEOF
10939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10940   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10941   ac_status=$?
10942   grep -v '^ *+' conftest.er1 >conftest.err
10943   rm -f conftest.er1
10944   cat conftest.err >&5
10945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946   (exit $ac_status); } >/dev/null; then
10947   if test -s conftest.err; then
10948     ac_cpp_err=$ac_cxx_preproc_warn_flag
10949     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10950   else
10951     ac_cpp_err=
10952   fi
10953 else
10954   ac_cpp_err=yes
10955 fi
10956 if test -z "$ac_cpp_err"; then
10957   :
10958 else
10959   echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10961
10962   # Broken: fails on valid input.
10963 continue
10964 fi
10965 rm -f conftest.err conftest.$ac_ext
10966
10967   # OK, works on sane cases.  Now check whether non-existent headers
10968   # can be detected and how.
10969   cat >conftest.$ac_ext <<_ACEOF
10970 /* confdefs.h.  */
10971 _ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h.  */
10975 #include <ac_nonexistent.h>
10976 _ACEOF
10977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10978   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10979   ac_status=$?
10980   grep -v '^ *+' conftest.er1 >conftest.err
10981   rm -f conftest.er1
10982   cat conftest.err >&5
10983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984   (exit $ac_status); } >/dev/null; then
10985   if test -s conftest.err; then
10986     ac_cpp_err=$ac_cxx_preproc_warn_flag
10987     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10988   else
10989     ac_cpp_err=
10990   fi
10991 else
10992   ac_cpp_err=yes
10993 fi
10994 if test -z "$ac_cpp_err"; then
10995   # Broken: success on invalid input.
10996 continue
10997 else
10998   echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11000
11001   # Passes both tests.
11002 ac_preproc_ok=:
11003 break
11004 fi
11005 rm -f conftest.err conftest.$ac_ext
11006
11007 done
11008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11009 rm -f conftest.err conftest.$ac_ext
11010 if $ac_preproc_ok; then
11011   break
11012 fi
11013
11014     done
11015     ac_cv_prog_CXXCPP=$CXXCPP
11016
11017 fi
11018   CXXCPP=$ac_cv_prog_CXXCPP
11019 else
11020   ac_cv_prog_CXXCPP=$CXXCPP
11021 fi
11022 echo "$as_me:$LINENO: result: $CXXCPP" >&5
11023 echo "${ECHO_T}$CXXCPP" >&6
11024 ac_preproc_ok=false
11025 for ac_cxx_preproc_warn_flag in '' yes
11026 do
11027   # Use a header file that comes with gcc, so configuring glibc
11028   # with a fresh cross-compiler works.
11029   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11030   # <limits.h> exists even on freestanding compilers.
11031   # On the NeXT, cc -E runs the code through the compiler's parser,
11032   # not just through cpp. "Syntax error" is here to catch this case.
11033   cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h.  */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h.  */
11039 #ifdef __STDC__
11040 # include <limits.h>
11041 #else
11042 # include <assert.h>
11043 #endif
11044                      Syntax error
11045 _ACEOF
11046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11047   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11048   ac_status=$?
11049   grep -v '^ *+' conftest.er1 >conftest.err
11050   rm -f conftest.er1
11051   cat conftest.err >&5
11052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053   (exit $ac_status); } >/dev/null; then
11054   if test -s conftest.err; then
11055     ac_cpp_err=$ac_cxx_preproc_warn_flag
11056     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11057   else
11058     ac_cpp_err=
11059   fi
11060 else
11061   ac_cpp_err=yes
11062 fi
11063 if test -z "$ac_cpp_err"; then
11064   :
11065 else
11066   echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11068
11069   # Broken: fails on valid input.
11070 continue
11071 fi
11072 rm -f conftest.err conftest.$ac_ext
11073
11074   # OK, works on sane cases.  Now check whether non-existent headers
11075   # can be detected and how.
11076   cat >conftest.$ac_ext <<_ACEOF
11077 /* confdefs.h.  */
11078 _ACEOF
11079 cat confdefs.h >>conftest.$ac_ext
11080 cat >>conftest.$ac_ext <<_ACEOF
11081 /* end confdefs.h.  */
11082 #include <ac_nonexistent.h>
11083 _ACEOF
11084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11085   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11086   ac_status=$?
11087   grep -v '^ *+' conftest.er1 >conftest.err
11088   rm -f conftest.er1
11089   cat conftest.err >&5
11090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091   (exit $ac_status); } >/dev/null; then
11092   if test -s conftest.err; then
11093     ac_cpp_err=$ac_cxx_preproc_warn_flag
11094     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11095   else
11096     ac_cpp_err=
11097   fi
11098 else
11099   ac_cpp_err=yes
11100 fi
11101 if test -z "$ac_cpp_err"; then
11102   # Broken: success on invalid input.
11103 continue
11104 else
11105   echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11107
11108   # Passes both tests.
11109 ac_preproc_ok=:
11110 break
11111 fi
11112 rm -f conftest.err conftest.$ac_ext
11113
11114 done
11115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11116 rm -f conftest.err conftest.$ac_ext
11117 if $ac_preproc_ok; then
11118   :
11119 else
11120   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11121 See \`config.log' for more details." >&5
11122 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11123 See \`config.log' for more details." >&2;}
11124    { (exit 1); exit 1; }; }
11125 fi
11126
11127 ac_ext=cc
11128 ac_cpp='$CXXCPP $CPPFLAGS'
11129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11132
11133 fi
11134
11135
11136 ac_ext=f
11137 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11138 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11139 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11140 if test -n "$ac_tool_prefix"; then
11141   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11142   do
11143     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11145 echo "$as_me:$LINENO: checking for $ac_word" >&5
11146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11147 if test "${ac_cv_prog_F77+set}" = set; then
11148   echo $ECHO_N "(cached) $ECHO_C" >&6
11149 else
11150   if test -n "$F77"; then
11151   ac_cv_prog_F77="$F77" # Let the user override the test.
11152 else
11153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11154 for as_dir in $PATH
11155 do
11156   IFS=$as_save_IFS
11157   test -z "$as_dir" && as_dir=.
11158   for ac_exec_ext in '' $ac_executable_extensions; do
11159   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11160     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
11161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11162     break 2
11163   fi
11164 done
11165 done
11166
11167 fi
11168 fi
11169 F77=$ac_cv_prog_F77
11170 if test -n "$F77"; then
11171   echo "$as_me:$LINENO: result: $F77" >&5
11172 echo "${ECHO_T}$F77" >&6
11173 else
11174   echo "$as_me:$LINENO: result: no" >&5
11175 echo "${ECHO_T}no" >&6
11176 fi
11177
11178     test -n "$F77" && break
11179   done
11180 fi
11181 if test -z "$F77"; then
11182   ac_ct_F77=$F77
11183   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11184 do
11185   # Extract the first word of "$ac_prog", so it can be a program name with args.
11186 set dummy $ac_prog; ac_word=$2
11187 echo "$as_me:$LINENO: checking for $ac_word" >&5
11188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11189 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
11190   echo $ECHO_N "(cached) $ECHO_C" >&6
11191 else
11192   if test -n "$ac_ct_F77"; then
11193   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11194 else
11195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11196 for as_dir in $PATH
11197 do
11198   IFS=$as_save_IFS
11199   test -z "$as_dir" && as_dir=.
11200   for ac_exec_ext in '' $ac_executable_extensions; do
11201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11202     ac_cv_prog_ac_ct_F77="$ac_prog"
11203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11204     break 2
11205   fi
11206 done
11207 done
11208
11209 fi
11210 fi
11211 ac_ct_F77=$ac_cv_prog_ac_ct_F77
11212 if test -n "$ac_ct_F77"; then
11213   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11214 echo "${ECHO_T}$ac_ct_F77" >&6
11215 else
11216   echo "$as_me:$LINENO: result: no" >&5
11217 echo "${ECHO_T}no" >&6
11218 fi
11219
11220   test -n "$ac_ct_F77" && break
11221 done
11222
11223   F77=$ac_ct_F77
11224 fi
11225
11226
11227 # Provide some information about the compiler.
11228 echo "$as_me:11228:" \
11229      "checking for Fortran 77 compiler version" >&5
11230 ac_compiler=`set X $ac_compile; echo $2`
11231 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11232   (eval $ac_compiler --version </dev/null >&5) 2>&5
11233   ac_status=$?
11234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235   (exit $ac_status); }
11236 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11237   (eval $ac_compiler -v </dev/null >&5) 2>&5
11238   ac_status=$?
11239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240   (exit $ac_status); }
11241 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11242   (eval $ac_compiler -V </dev/null >&5) 2>&5
11243   ac_status=$?
11244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245   (exit $ac_status); }
11246 rm -f a.out
11247
11248 # If we don't use `.F' as extension, the preprocessor is not run on the
11249 # input file.  (Note that this only needs to work for GNU compilers.)
11250 ac_save_ext=$ac_ext
11251 ac_ext=F
11252 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11253 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11254 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11255   echo $ECHO_N "(cached) $ECHO_C" >&6
11256 else
11257   cat >conftest.$ac_ext <<_ACEOF
11258       program main
11259 #ifndef __GNUC__
11260        choke me
11261 #endif
11262
11263       end
11264 _ACEOF
11265 rm -f conftest.$ac_objext
11266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11267   (eval $ac_compile) 2>conftest.er1
11268   ac_status=$?
11269   grep -v '^ *+' conftest.er1 >conftest.err
11270   rm -f conftest.er1
11271   cat conftest.err >&5
11272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273   (exit $ac_status); } &&
11274          { ac_try='test -z "$ac_f77_werror_flag"
11275                          || test ! -s conftest.err'
11276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277   (eval $ac_try) 2>&5
11278   ac_status=$?
11279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280   (exit $ac_status); }; } &&
11281          { ac_try='test -s conftest.$ac_objext'
11282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283   (eval $ac_try) 2>&5
11284   ac_status=$?
11285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286   (exit $ac_status); }; }; then
11287   ac_compiler_gnu=yes
11288 else
11289   echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11291
11292 ac_compiler_gnu=no
11293 fi
11294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11295 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11296
11297 fi
11298 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11299 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11300 ac_ext=$ac_save_ext
11301 ac_test_FFLAGS=${FFLAGS+set}
11302 ac_save_FFLAGS=$FFLAGS
11303 FFLAGS=
11304 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11305 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11306 if test "${ac_cv_prog_f77_g+set}" = set; then
11307   echo $ECHO_N "(cached) $ECHO_C" >&6
11308 else
11309   FFLAGS=-g
11310 cat >conftest.$ac_ext <<_ACEOF
11311       program main
11312
11313       end
11314 _ACEOF
11315 rm -f conftest.$ac_objext
11316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11317   (eval $ac_compile) 2>conftest.er1
11318   ac_status=$?
11319   grep -v '^ *+' conftest.er1 >conftest.err
11320   rm -f conftest.er1
11321   cat conftest.err >&5
11322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323   (exit $ac_status); } &&
11324          { ac_try='test -z "$ac_f77_werror_flag"
11325                          || test ! -s conftest.err'
11326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327   (eval $ac_try) 2>&5
11328   ac_status=$?
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); }; } &&
11331          { ac_try='test -s conftest.$ac_objext'
11332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333   (eval $ac_try) 2>&5
11334   ac_status=$?
11335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336   (exit $ac_status); }; }; then
11337   ac_cv_prog_f77_g=yes
11338 else
11339   echo "$as_me: failed program was:" >&5
11340 sed 's/^/| /' conftest.$ac_ext >&5
11341
11342 ac_cv_prog_f77_g=no
11343 fi
11344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11345
11346 fi
11347 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11348 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11349 if test "$ac_test_FFLAGS" = set; then
11350   FFLAGS=$ac_save_FFLAGS
11351 elif test $ac_cv_prog_f77_g = yes; then
11352   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11353     FFLAGS="-g -O2"
11354   else
11355     FFLAGS="-g"
11356   fi
11357 else
11358   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11359     FFLAGS="-O2"
11360   else
11361     FFLAGS=
11362   fi
11363 fi
11364
11365 G77=`test $ac_compiler_gnu = yes && echo yes`
11366 ac_ext=c
11367 ac_cpp='$CPP $CPPFLAGS'
11368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11371
11372
11373
11374 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11375
11376 # find the maximum length of command line arguments
11377 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11378 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11379 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11380   echo $ECHO_N "(cached) $ECHO_C" >&6
11381 else
11382     i=0
11383   teststring="ABCD"
11384
11385   case $build_os in
11386   msdosdjgpp*)
11387     # On DJGPP, this test can blow up pretty badly due to problems in libc
11388     # (any single argument exceeding 2000 bytes causes a buffer overrun
11389     # during glob expansion).  Even if it were fixed, the result of this
11390     # check would be larger than it should be.
11391     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11392     ;;
11393
11394   gnu*)
11395     # Under GNU Hurd, this test is not required because there is
11396     # no limit to the length of command line arguments.
11397     # Libtool will interpret -1 as no limit whatsoever
11398     lt_cv_sys_max_cmd_len=-1;
11399     ;;
11400
11401   cygwin* | mingw*)
11402     # On Win9x/ME, this test blows up -- it succeeds, but takes
11403     # about 5 minutes as the teststring grows exponentially.
11404     # Worse, since 9x/ME are not pre-emptively multitasking,
11405     # you end up with a "frozen" computer, even though with patience
11406     # the test eventually succeeds (with a max line length of 256k).
11407     # Instead, let's just punt: use the minimum linelength reported by
11408     # all of the supported platforms: 8192 (on NT/2K/XP).
11409     lt_cv_sys_max_cmd_len=8192;
11410     ;;
11411
11412   amigaos*)
11413     # On AmigaOS with pdksh, this test takes hours, literally.
11414     # So we just punt and use a minimum line length of 8192.
11415     lt_cv_sys_max_cmd_len=8192;
11416     ;;
11417
11418   netbsd* | freebsd* | openbsd* | darwin* )
11419     # This has been around since 386BSD, at least.  Likely further.
11420     if test -x /sbin/sysctl; then
11421       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11422     elif test -x /usr/sbin/sysctl; then
11423       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11424     else
11425       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11426     fi
11427     # And add a safety zone
11428     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11429     ;;
11430
11431  *)
11432     # If test is not a shell built-in, we'll probably end up computing a
11433     # maximum length that is only half of the actual maximum length, but
11434     # we can't tell.
11435     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11436     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11437                = "XX$teststring") >/dev/null 2>&1 &&
11438             new_result=`expr "X$teststring" : ".*" 2>&1` &&
11439             lt_cv_sys_max_cmd_len=$new_result &&
11440             test $i != 17 # 1/2 MB should be enough
11441     do
11442       i=`expr $i + 1`
11443       teststring=$teststring$teststring
11444     done
11445     teststring=
11446     # Add a significant safety factor because C++ compilers can tack on massive
11447     # amounts of additional arguments before passing them to the linker.
11448     # It appears as though 1/2 is a usable value.
11449     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11450     ;;
11451   esac
11452
11453 fi
11454
11455 if test -n $lt_cv_sys_max_cmd_len ; then
11456   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11457 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11458 else
11459   echo "$as_me:$LINENO: result: none" >&5
11460 echo "${ECHO_T}none" >&6
11461 fi
11462
11463
11464
11465
11466 # Check for command to grab the raw symbol name followed by C symbol from nm.
11467 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11468 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11469 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11470   echo $ECHO_N "(cached) $ECHO_C" >&6
11471 else
11472
11473 # These are sane defaults that work on at least a few old systems.
11474 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11475
11476 # Character class describing NM global symbol codes.
11477 symcode='[BCDEGRST]'
11478
11479 # Regexp to match symbols that can be accessed directly from C.
11480 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11481
11482 # Transform the above into a raw symbol and a C symbol.
11483 symxfrm='\1 \2\3 \3'
11484
11485 # Transform an extracted symbol line into a proper C declaration
11486 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11487
11488 # Transform an extracted symbol line into symbol name and symbol address
11489 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'"
11490
11491 # Define system-specific variables.
11492 case $host_os in
11493 aix*)
11494   symcode='[BCDT]'
11495   ;;
11496 cygwin* | mingw* | pw32*)
11497   symcode='[ABCDGISTW]'
11498   ;;
11499 hpux*) # Its linker distinguishes data from code symbols
11500   if test "$host_cpu" = ia64; then
11501     symcode='[ABCDEGRST]'
11502   fi
11503   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11504   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'"
11505   ;;
11506 linux*)
11507   if test "$host_cpu" = ia64; then
11508     symcode='[ABCDGIRSTW]'
11509     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11510     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'"
11511   fi
11512   ;;
11513 irix* | nonstopux*)
11514   symcode='[BCDEGRST]'
11515   ;;
11516 osf*)
11517   symcode='[BCDEGQRST]'
11518   ;;
11519 solaris* | sysv5*)
11520   symcode='[BDRT]'
11521   ;;
11522 sysv4)
11523   symcode='[DFNSTU]'
11524   ;;
11525 esac
11526
11527 # Handle CRLF in mingw tool chain
11528 opt_cr=
11529 case $build_os in
11530 mingw*)
11531   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11532   ;;
11533 esac
11534
11535 # If we're using GNU nm, then use its standard symbol codes.
11536 case `$NM -V 2>&1` in
11537 *GNU* | *'with BFD'*)
11538   symcode='[ABCDGIRSTW]' ;;
11539 esac
11540
11541 # Try without a prefix undercore, then with it.
11542 for ac_symprfx in "" "_"; do
11543
11544   # Write the raw and C identifiers.
11545   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11546
11547   # Check to see that the pipe works correctly.
11548   pipe_works=no
11549
11550   rm -f conftest*
11551   cat > conftest.$ac_ext <<EOF
11552 #ifdef __cplusplus
11553 extern "C" {
11554 #endif
11555 char nm_test_var;
11556 void nm_test_func(){}
11557 #ifdef __cplusplus
11558 }
11559 #endif
11560 int main(){nm_test_var='a';nm_test_func();return(0);}
11561 EOF
11562
11563   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11564   (eval $ac_compile) 2>&5
11565   ac_status=$?
11566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567   (exit $ac_status); }; then
11568     # Now try to grab the symbols.
11569     nlist=conftest.nm
11570     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11571   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11572   ac_status=$?
11573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574   (exit $ac_status); } && test -s "$nlist"; then
11575       # Try sorting and uniquifying the output.
11576       if sort "$nlist" | uniq > "$nlist"T; then
11577         mv -f "$nlist"T "$nlist"
11578       else
11579         rm -f "$nlist"T
11580       fi
11581
11582       # Make sure that we snagged all the symbols we need.
11583       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11584         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11585           cat <<EOF > conftest.$ac_ext
11586 #ifdef __cplusplus
11587 extern "C" {
11588 #endif
11589
11590 EOF
11591           # Now generate the symbol file.
11592           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11593
11594           cat <<EOF >> conftest.$ac_ext
11595 #if defined (__STDC__) && __STDC__
11596 # define lt_ptr_t void *
11597 #else
11598 # define lt_ptr_t char *
11599 # define const
11600 #endif
11601
11602 /* The mapping between symbol names and symbols. */
11603 const struct {
11604   const char *name;
11605   lt_ptr_t address;
11606 }
11607 lt_preloaded_symbols[] =
11608 {
11609 EOF
11610           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11611           cat <<\EOF >> conftest.$ac_ext
11612   {0, (lt_ptr_t) 0}
11613 };
11614
11615 #ifdef __cplusplus
11616 }
11617 #endif
11618 EOF
11619           # Now try linking the two files.
11620           mv conftest.$ac_objext conftstm.$ac_objext
11621           lt_save_LIBS="$LIBS"
11622           lt_save_CFLAGS="$CFLAGS"
11623           LIBS="conftstm.$ac_objext"
11624           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11625           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11626   (eval $ac_link) 2>&5
11627   ac_status=$?
11628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11630             pipe_works=yes
11631           fi
11632           LIBS="$lt_save_LIBS"
11633           CFLAGS="$lt_save_CFLAGS"
11634         else
11635           echo "cannot find nm_test_func in $nlist" >&5
11636         fi
11637       else
11638         echo "cannot find nm_test_var in $nlist" >&5
11639       fi
11640     else
11641       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11642     fi
11643   else
11644     echo "$progname: failed program was:" >&5
11645     cat conftest.$ac_ext >&5
11646   fi
11647   rm -f conftest* conftst*
11648
11649   # Do not use the global_symbol_pipe unless it works.
11650   if test "$pipe_works" = yes; then
11651     break
11652   else
11653     lt_cv_sys_global_symbol_pipe=
11654   fi
11655 done
11656
11657 fi
11658
11659 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11660   lt_cv_sys_global_symbol_to_cdecl=
11661 fi
11662 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11663   echo "$as_me:$LINENO: result: failed" >&5
11664 echo "${ECHO_T}failed" >&6
11665 else
11666   echo "$as_me:$LINENO: result: ok" >&5
11667 echo "${ECHO_T}ok" >&6
11668 fi
11669
11670 echo "$as_me:$LINENO: checking for objdir" >&5
11671 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11672 if test "${lt_cv_objdir+set}" = set; then
11673   echo $ECHO_N "(cached) $ECHO_C" >&6
11674 else
11675   rm -f .libs 2>/dev/null
11676 mkdir .libs 2>/dev/null
11677 if test -d .libs; then
11678   lt_cv_objdir=.libs
11679 else
11680   # MS-DOS does not allow filenames that begin with a dot.
11681   lt_cv_objdir=_libs
11682 fi
11683 rmdir .libs 2>/dev/null
11684 fi
11685 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11686 echo "${ECHO_T}$lt_cv_objdir" >&6
11687 objdir=$lt_cv_objdir
11688
11689
11690
11691
11692
11693 case $host_os in
11694 aix3*)
11695   # AIX sometimes has problems with the GCC collect2 program.  For some
11696   # reason, if we set the COLLECT_NAMES environment variable, the problems
11697   # vanish in a puff of smoke.
11698   if test "X${COLLECT_NAMES+set}" != Xset; then
11699     COLLECT_NAMES=
11700     export COLLECT_NAMES
11701   fi
11702   ;;
11703 esac
11704
11705 # Sed substitution that helps us do robust quoting.  It backslashifies
11706 # metacharacters that are still active within double-quoted strings.
11707 Xsed='sed -e s/^X//'
11708 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11709
11710 # Same as above, but do not quote variable references.
11711 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11712
11713 # Sed substitution to delay expansion of an escaped shell variable in a
11714 # double_quote_subst'ed string.
11715 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11716
11717 # Sed substitution to avoid accidental globbing in evaled expressions
11718 no_glob_subst='s/\*/\\\*/g'
11719
11720 # Constants:
11721 rm="rm -f"
11722
11723 # Global variables:
11724 default_ofile=mklib
11725 can_build_shared=yes
11726
11727 # All known linkers require a `.a' archive for static linking (except M$VC,
11728 # which needs '.lib').
11729 libext=a
11730 ltmain="$ac_aux_dir/ltmain.sh"
11731 ofile="$default_ofile"
11732 with_gnu_ld="$lt_cv_prog_gnu_ld"
11733
11734 if test -n "$ac_tool_prefix"; then
11735   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11736 set dummy ${ac_tool_prefix}ar; ac_word=$2
11737 echo "$as_me:$LINENO: checking for $ac_word" >&5
11738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11739 if test "${ac_cv_prog_AR+set}" = set; then
11740   echo $ECHO_N "(cached) $ECHO_C" >&6
11741 else
11742   if test -n "$AR"; then
11743   ac_cv_prog_AR="$AR" # Let the user override the test.
11744 else
11745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746 for as_dir in $PATH
11747 do
11748   IFS=$as_save_IFS
11749   test -z "$as_dir" && as_dir=.
11750   for ac_exec_ext in '' $ac_executable_extensions; do
11751   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11752     ac_cv_prog_AR="${ac_tool_prefix}ar"
11753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11754     break 2
11755   fi
11756 done
11757 done
11758
11759 fi
11760 fi
11761 AR=$ac_cv_prog_AR
11762 if test -n "$AR"; then
11763   echo "$as_me:$LINENO: result: $AR" >&5
11764 echo "${ECHO_T}$AR" >&6
11765 else
11766   echo "$as_me:$LINENO: result: no" >&5
11767 echo "${ECHO_T}no" >&6
11768 fi
11769
11770 fi
11771 if test -z "$ac_cv_prog_AR"; then
11772   ac_ct_AR=$AR
11773   # Extract the first word of "ar", so it can be a program name with args.
11774 set dummy ar; ac_word=$2
11775 echo "$as_me:$LINENO: checking for $ac_word" >&5
11776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11777 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11778   echo $ECHO_N "(cached) $ECHO_C" >&6
11779 else
11780   if test -n "$ac_ct_AR"; then
11781   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11782 else
11783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784 for as_dir in $PATH
11785 do
11786   IFS=$as_save_IFS
11787   test -z "$as_dir" && as_dir=.
11788   for ac_exec_ext in '' $ac_executable_extensions; do
11789   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11790     ac_cv_prog_ac_ct_AR="ar"
11791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11792     break 2
11793   fi
11794 done
11795 done
11796
11797   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11798 fi
11799 fi
11800 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11801 if test -n "$ac_ct_AR"; then
11802   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11803 echo "${ECHO_T}$ac_ct_AR" >&6
11804 else
11805   echo "$as_me:$LINENO: result: no" >&5
11806 echo "${ECHO_T}no" >&6
11807 fi
11808
11809   AR=$ac_ct_AR
11810 else
11811   AR="$ac_cv_prog_AR"
11812 fi
11813
11814 if test -n "$ac_tool_prefix"; then
11815   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11816 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11817 echo "$as_me:$LINENO: checking for $ac_word" >&5
11818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11819 if test "${ac_cv_prog_RANLIB+set}" = set; then
11820   echo $ECHO_N "(cached) $ECHO_C" >&6
11821 else
11822   if test -n "$RANLIB"; then
11823   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11824 else
11825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826 for as_dir in $PATH
11827 do
11828   IFS=$as_save_IFS
11829   test -z "$as_dir" && as_dir=.
11830   for ac_exec_ext in '' $ac_executable_extensions; do
11831   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11832     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11834     break 2
11835   fi
11836 done
11837 done
11838
11839 fi
11840 fi
11841 RANLIB=$ac_cv_prog_RANLIB
11842 if test -n "$RANLIB"; then
11843   echo "$as_me:$LINENO: result: $RANLIB" >&5
11844 echo "${ECHO_T}$RANLIB" >&6
11845 else
11846   echo "$as_me:$LINENO: result: no" >&5
11847 echo "${ECHO_T}no" >&6
11848 fi
11849
11850 fi
11851 if test -z "$ac_cv_prog_RANLIB"; then
11852   ac_ct_RANLIB=$RANLIB
11853   # Extract the first word of "ranlib", so it can be a program name with args.
11854 set dummy ranlib; ac_word=$2
11855 echo "$as_me:$LINENO: checking for $ac_word" >&5
11856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11857 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11858   echo $ECHO_N "(cached) $ECHO_C" >&6
11859 else
11860   if test -n "$ac_ct_RANLIB"; then
11861   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11862 else
11863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11864 for as_dir in $PATH
11865 do
11866   IFS=$as_save_IFS
11867   test -z "$as_dir" && as_dir=.
11868   for ac_exec_ext in '' $ac_executable_extensions; do
11869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11870     ac_cv_prog_ac_ct_RANLIB="ranlib"
11871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11872     break 2
11873   fi
11874 done
11875 done
11876
11877   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11878 fi
11879 fi
11880 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11881 if test -n "$ac_ct_RANLIB"; then
11882   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11883 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11884 else
11885   echo "$as_me:$LINENO: result: no" >&5
11886 echo "${ECHO_T}no" >&6
11887 fi
11888
11889   RANLIB=$ac_ct_RANLIB
11890 else
11891   RANLIB="$ac_cv_prog_RANLIB"
11892 fi
11893
11894 if test -n "$ac_tool_prefix"; then
11895   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11896 set dummy ${ac_tool_prefix}strip; ac_word=$2
11897 echo "$as_me:$LINENO: checking for $ac_word" >&5
11898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11899 if test "${ac_cv_prog_STRIP+set}" = set; then
11900   echo $ECHO_N "(cached) $ECHO_C" >&6
11901 else
11902   if test -n "$STRIP"; then
11903   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11904 else
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11907 do
11908   IFS=$as_save_IFS
11909   test -z "$as_dir" && as_dir=.
11910   for ac_exec_ext in '' $ac_executable_extensions; do
11911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11912     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11914     break 2
11915   fi
11916 done
11917 done
11918
11919 fi
11920 fi
11921 STRIP=$ac_cv_prog_STRIP
11922 if test -n "$STRIP"; then
11923   echo "$as_me:$LINENO: result: $STRIP" >&5
11924 echo "${ECHO_T}$STRIP" >&6
11925 else
11926   echo "$as_me:$LINENO: result: no" >&5
11927 echo "${ECHO_T}no" >&6
11928 fi
11929
11930 fi
11931 if test -z "$ac_cv_prog_STRIP"; then
11932   ac_ct_STRIP=$STRIP
11933   # Extract the first word of "strip", so it can be a program name with args.
11934 set dummy strip; ac_word=$2
11935 echo "$as_me:$LINENO: checking for $ac_word" >&5
11936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11937 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11938   echo $ECHO_N "(cached) $ECHO_C" >&6
11939 else
11940   if test -n "$ac_ct_STRIP"; then
11941   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11942 else
11943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11944 for as_dir in $PATH
11945 do
11946   IFS=$as_save_IFS
11947   test -z "$as_dir" && as_dir=.
11948   for ac_exec_ext in '' $ac_executable_extensions; do
11949   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11950     ac_cv_prog_ac_ct_STRIP="strip"
11951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11952     break 2
11953   fi
11954 done
11955 done
11956
11957   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11958 fi
11959 fi
11960 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11961 if test -n "$ac_ct_STRIP"; then
11962   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11963 echo "${ECHO_T}$ac_ct_STRIP" >&6
11964 else
11965   echo "$as_me:$LINENO: result: no" >&5
11966 echo "${ECHO_T}no" >&6
11967 fi
11968
11969   STRIP=$ac_ct_STRIP
11970 else
11971   STRIP="$ac_cv_prog_STRIP"
11972 fi
11973
11974
11975 old_CC="$CC"
11976 old_CFLAGS="$CFLAGS"
11977
11978 # Set sane defaults for various variables
11979 test -z "$AR" && AR=ar
11980 test -z "$AR_FLAGS" && AR_FLAGS=cru
11981 test -z "$AS" && AS=as
11982 test -z "$CC" && CC=cc
11983 test -z "$LTCC" && LTCC=$CC
11984 test -z "$DLLTOOL" && DLLTOOL=dlltool
11985 test -z "$LD" && LD=ld
11986 test -z "$LN_S" && LN_S="ln -s"
11987 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11988 test -z "$NM" && NM=nm
11989 test -z "$SED" && SED=sed
11990 test -z "$OBJDUMP" && OBJDUMP=objdump
11991 test -z "$RANLIB" && RANLIB=:
11992 test -z "$STRIP" && STRIP=:
11993 test -z "$ac_objext" && ac_objext=o
11994
11995 # Determine commands to create old-style static archives.
11996 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11997 old_postinstall_cmds='chmod 644 $oldlib'
11998 old_postuninstall_cmds=
11999
12000 if test -n "$RANLIB"; then
12001   case $host_os in
12002   openbsd*)
12003     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
12004     ;;
12005   *)
12006     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
12007     ;;
12008   esac
12009   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12010 fi
12011
12012 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12013
12014 # Only perform the check for file, if the check method requires it
12015 case $deplibs_check_method in
12016 file_magic*)
12017   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12018     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
12019 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
12020 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12021   echo $ECHO_N "(cached) $ECHO_C" >&6
12022 else
12023   case $MAGIC_CMD in
12024 [\\/*] |  ?:[\\/]*)
12025   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12026   ;;
12027 *)
12028   lt_save_MAGIC_CMD="$MAGIC_CMD"
12029   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12030   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12031   for ac_dir in $ac_dummy; do
12032     IFS="$lt_save_ifs"
12033     test -z "$ac_dir" && ac_dir=.
12034     if test -f $ac_dir/${ac_tool_prefix}file; then
12035       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12036       if test -n "$file_magic_test_file"; then
12037         case $deplibs_check_method in
12038         "file_magic "*)
12039           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12040           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12041           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12042             $EGREP "$file_magic_regex" > /dev/null; then
12043             :
12044           else
12045             cat <<EOF 1>&2
12046
12047 *** Warning: the command libtool uses to detect shared libraries,
12048 *** $file_magic_cmd, produces output that libtool cannot recognize.
12049 *** The result is that libtool may fail to recognize shared libraries
12050 *** as such.  This will affect the creation of libtool libraries that
12051 *** depend on shared libraries, but programs linked with such libtool
12052 *** libraries will work regardless of this problem.  Nevertheless, you
12053 *** may want to report the problem to your system manager and/or to
12054 *** bug-libtool@gnu.org
12055
12056 EOF
12057           fi ;;
12058         esac
12059       fi
12060       break
12061     fi
12062   done
12063   IFS="$lt_save_ifs"
12064   MAGIC_CMD="$lt_save_MAGIC_CMD"
12065   ;;
12066 esac
12067 fi
12068
12069 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12070 if test -n "$MAGIC_CMD"; then
12071   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12072 echo "${ECHO_T}$MAGIC_CMD" >&6
12073 else
12074   echo "$as_me:$LINENO: result: no" >&5
12075 echo "${ECHO_T}no" >&6
12076 fi
12077
12078 if test -z "$lt_cv_path_MAGIC_CMD"; then
12079   if test -n "$ac_tool_prefix"; then
12080     echo "$as_me:$LINENO: checking for file" >&5
12081 echo $ECHO_N "checking for file... $ECHO_C" >&6
12082 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12083   echo $ECHO_N "(cached) $ECHO_C" >&6
12084 else
12085   case $MAGIC_CMD in
12086 [\\/*] |  ?:[\\/]*)
12087   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12088   ;;
12089 *)
12090   lt_save_MAGIC_CMD="$MAGIC_CMD"
12091   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12092   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12093   for ac_dir in $ac_dummy; do
12094     IFS="$lt_save_ifs"
12095     test -z "$ac_dir" && ac_dir=.
12096     if test -f $ac_dir/file; then
12097       lt_cv_path_MAGIC_CMD="$ac_dir/file"
12098       if test -n "$file_magic_test_file"; then
12099         case $deplibs_check_method in
12100         "file_magic "*)
12101           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12102           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12103           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12104             $EGREP "$file_magic_regex" > /dev/null; then
12105             :
12106           else
12107             cat <<EOF 1>&2
12108
12109 *** Warning: the command libtool uses to detect shared libraries,
12110 *** $file_magic_cmd, produces output that libtool cannot recognize.
12111 *** The result is that libtool may fail to recognize shared libraries
12112 *** as such.  This will affect the creation of libtool libraries that
12113 *** depend on shared libraries, but programs linked with such libtool
12114 *** libraries will work regardless of this problem.  Nevertheless, you
12115 *** may want to report the problem to your system manager and/or to
12116 *** bug-libtool@gnu.org
12117
12118 EOF
12119           fi ;;
12120         esac
12121       fi
12122       break
12123     fi
12124   done
12125   IFS="$lt_save_ifs"
12126   MAGIC_CMD="$lt_save_MAGIC_CMD"
12127   ;;
12128 esac
12129 fi
12130
12131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12132 if test -n "$MAGIC_CMD"; then
12133   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12134 echo "${ECHO_T}$MAGIC_CMD" >&6
12135 else
12136   echo "$as_me:$LINENO: result: no" >&5
12137 echo "${ECHO_T}no" >&6
12138 fi
12139
12140   else
12141     MAGIC_CMD=:
12142   fi
12143 fi
12144
12145   fi
12146   ;;
12147 esac
12148
12149 enable_dlopen=yes
12150 enable_win32_dll=no
12151
12152 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
12153 if test "${enable_libtool_lock+set}" = set; then
12154   enableval="$enable_libtool_lock"
12155
12156 fi;
12157 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12158
12159
12160 # Check whether --with-pic or --without-pic was given.
12161 if test "${with_pic+set}" = set; then
12162   withval="$with_pic"
12163   pic_mode="$withval"
12164 else
12165   pic_mode=default
12166 fi;
12167 test -z "$pic_mode" && pic_mode=default
12168
12169 # Use C for the default configuration in the libtool script
12170 tagname=
12171 lt_save_CC="$CC"
12172 ac_ext=c
12173 ac_cpp='$CPP $CPPFLAGS'
12174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12177
12178
12179 # Source file extension for C test sources.
12180 ac_ext=c
12181
12182 # Object file extension for compiled C test sources.
12183 objext=o
12184 objext=$objext
12185
12186 # Code to be used in simple compile tests
12187 lt_simple_compile_test_code="int some_variable = 0;\n"
12188
12189 # Code to be used in simple link tests
12190 lt_simple_link_test_code='int main(){return(0);}\n'
12191
12192
12193 # If no C compiler was specified, use CC.
12194 LTCC=${LTCC-"$CC"}
12195
12196 # Allow CC to be a program name with arguments.
12197 compiler=$CC
12198
12199
12200 #
12201 # Check for any special shared library compilation flags.
12202 #
12203 lt_prog_cc_shlib=
12204 if test "$GCC" = no; then
12205   case $host_os in
12206   sco3.2v5*)
12207     lt_prog_cc_shlib='-belf'
12208     ;;
12209   esac
12210 fi
12211 if test -n "$lt_prog_cc_shlib"; then
12212   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12213 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12214   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
12215   else
12216     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12217 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12218     lt_cv_prog_cc_can_build_shared=no
12219   fi
12220 fi
12221
12222
12223 #
12224 # Check to make sure the static flag actually works.
12225 #
12226 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12227 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12228 if test "${lt_prog_compiler_static_works+set}" = set; then
12229   echo $ECHO_N "(cached) $ECHO_C" >&6
12230 else
12231   lt_prog_compiler_static_works=no
12232    save_LDFLAGS="$LDFLAGS"
12233    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12234    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12235    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12236      # The compiler can only warn and ignore the option if not recognized
12237      # So say no if there are warnings
12238      if test -s conftest.err; then
12239        # Append any errors to the config.log.
12240        cat conftest.err 1>&5
12241      else
12242        lt_prog_compiler_static_works=yes
12243      fi
12244    fi
12245    $rm conftest*
12246    LDFLAGS="$save_LDFLAGS"
12247
12248 fi
12249 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12250 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12251
12252 if test x"$lt_prog_compiler_static_works" = xyes; then
12253     :
12254 else
12255     lt_prog_compiler_static=
12256 fi
12257
12258
12259
12260
12261 lt_prog_compiler_no_builtin_flag=
12262
12263 if test "$GCC" = yes; then
12264   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12265
12266
12267 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12268 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12269 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12270   echo $ECHO_N "(cached) $ECHO_C" >&6
12271 else
12272   lt_cv_prog_compiler_rtti_exceptions=no
12273   ac_outfile=conftest.$ac_objext
12274    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12275    lt_compiler_flag="-fno-rtti -fno-exceptions"
12276    # Insert the option either (1) after the last *FLAGS variable, or
12277    # (2) before a word containing "conftest.", or (3) at the end.
12278    # Note that $ac_compile itself does not contain backslashes and begins
12279    # with a dollar sign (not a hyphen), so the echo should work correctly.
12280    # The option is referenced via a variable to avoid confusing sed.
12281    lt_compile=`echo "$ac_compile" | $SED \
12282    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12283    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12284    -e 's:$: $lt_compiler_flag:'`
12285    (eval echo "\"\$as_me:12285: $lt_compile\"" >&5)
12286    (eval "$lt_compile" 2>conftest.err)
12287    ac_status=$?
12288    cat conftest.err >&5
12289    echo "$as_me:12289: \$? = $ac_status" >&5
12290    if (exit $ac_status) && test -s "$ac_outfile"; then
12291      # The compiler can only warn and ignore the option if not recognized
12292      # So say no if there are warnings
12293      if test ! -s conftest.err; then
12294        lt_cv_prog_compiler_rtti_exceptions=yes
12295      fi
12296    fi
12297    $rm conftest*
12298
12299 fi
12300 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12301 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12302
12303 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12304     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12305 else
12306     :
12307 fi
12308
12309 fi
12310
12311 lt_prog_compiler_wl=
12312 lt_prog_compiler_pic=
12313 lt_prog_compiler_static=
12314
12315 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12316 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12317
12318   if test "$GCC" = yes; then
12319     lt_prog_compiler_wl='-Wl,'
12320     lt_prog_compiler_static='-static'
12321
12322     case $host_os in
12323       aix*)
12324       # All AIX code is PIC.
12325       if test "$host_cpu" = ia64; then
12326         # AIX 5 now supports IA64 processor
12327         lt_prog_compiler_static='-Bstatic'
12328       fi
12329       ;;
12330
12331     amigaos*)
12332       # FIXME: we need at least 68020 code to build shared libraries, but
12333       # adding the `-m68020' flag to GCC prevents building anything better,
12334       # like `-m68040'.
12335       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12336       ;;
12337
12338     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12339       # PIC is the default for these OSes.
12340       ;;
12341
12342     mingw* | pw32* | os2*)
12343       # This hack is so that the source file can tell whether it is being
12344       # built for inclusion in a dll (and should export symbols for example).
12345       lt_prog_compiler_pic='-DDLL_EXPORT'
12346       ;;
12347
12348     darwin* | rhapsody*)
12349       # PIC is the default on this platform
12350       # Common symbols not allowed in MH_DYLIB files
12351       lt_prog_compiler_pic='-fno-common'
12352       ;;
12353
12354     msdosdjgpp*)
12355       # Just because we use GCC doesn't mean we suddenly get shared libraries
12356       # on systems that don't support them.
12357       lt_prog_compiler_can_build_shared=no
12358       enable_shared=no
12359       ;;
12360
12361     sysv4*MP*)
12362       if test -d /usr/nec; then
12363         lt_prog_compiler_pic=-Kconform_pic
12364       fi
12365       ;;
12366
12367     hpux*)
12368       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12369       # not for PA HP-UX.
12370       case "$host_cpu" in
12371       hppa*64*|ia64*)
12372         # +Z the default
12373         ;;
12374       *)
12375         lt_prog_compiler_pic='-fPIC'
12376         ;;
12377       esac
12378       ;;
12379
12380     *)
12381       lt_prog_compiler_pic='-fPIC'
12382       ;;
12383     esac
12384   else
12385     # PORTME Check for flag to pass linker flags through the system compiler.
12386     case $host_os in
12387     aix*)
12388       lt_prog_compiler_wl='-Wl,'
12389       if test "$host_cpu" = ia64; then
12390         # AIX 5 now supports IA64 processor
12391         lt_prog_compiler_static='-Bstatic'
12392       else
12393         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12394       fi
12395       ;;
12396       darwin*)
12397         # PIC is the default on this platform
12398         # Common symbols not allowed in MH_DYLIB files
12399        case "$cc_basename" in
12400          xlc*)
12401          lt_prog_compiler_pic='-qnocommon'
12402          lt_prog_compiler_wl='-Wl,'
12403          ;;
12404        esac
12405        ;;
12406
12407     mingw* | pw32* | os2*)
12408       # This hack is so that the source file can tell whether it is being
12409       # built for inclusion in a dll (and should export symbols for example).
12410       lt_prog_compiler_pic='-DDLL_EXPORT'
12411       ;;
12412
12413     hpux9* | hpux10* | hpux11*)
12414       lt_prog_compiler_wl='-Wl,'
12415       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12416       # not for PA HP-UX.
12417       case "$host_cpu" in
12418       hppa*64*|ia64*)
12419         # +Z the default
12420         ;;
12421       *)
12422         lt_prog_compiler_pic='+Z'
12423         ;;
12424       esac
12425       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12426       lt_prog_compiler_static='${wl}-a ${wl}archive'
12427       ;;
12428
12429     irix5* | irix6* | nonstopux*)
12430       lt_prog_compiler_wl='-Wl,'
12431       # PIC (with -KPIC) is the default.
12432       lt_prog_compiler_static='-non_shared'
12433       ;;
12434
12435     newsos6)
12436       lt_prog_compiler_pic='-KPIC'
12437       lt_prog_compiler_static='-Bstatic'
12438       ;;
12439
12440     linux*)
12441       case $CC in
12442       icc* | ecc*)
12443         lt_prog_compiler_wl='-Wl,'
12444         lt_prog_compiler_pic='-KPIC'
12445         lt_prog_compiler_static='-static'
12446         ;;
12447       ccc*)
12448         lt_prog_compiler_wl='-Wl,'
12449         # All Alpha code is PIC.
12450         lt_prog_compiler_static='-non_shared'
12451         ;;
12452       esac
12453       ;;
12454
12455     osf3* | osf4* | osf5*)
12456       lt_prog_compiler_wl='-Wl,'
12457       # All OSF/1 code is PIC.
12458       lt_prog_compiler_static='-non_shared'
12459       ;;
12460
12461     sco3.2v5*)
12462       lt_prog_compiler_pic='-Kpic'
12463       lt_prog_compiler_static='-dn'
12464       ;;
12465
12466     solaris*)
12467       lt_prog_compiler_wl='-Wl,'
12468       lt_prog_compiler_pic='-KPIC'
12469       lt_prog_compiler_static='-Bstatic'
12470       ;;
12471
12472     sunos4*)
12473       lt_prog_compiler_wl='-Qoption ld '
12474       lt_prog_compiler_pic='-PIC'
12475       lt_prog_compiler_static='-Bstatic'
12476       ;;
12477
12478     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12479       lt_prog_compiler_wl='-Wl,'
12480       lt_prog_compiler_pic='-KPIC'
12481       lt_prog_compiler_static='-Bstatic'
12482       ;;
12483
12484     sysv4*MP*)
12485       if test -d /usr/nec ;then
12486         lt_prog_compiler_pic='-Kconform_pic'
12487         lt_prog_compiler_static='-Bstatic'
12488       fi
12489       ;;
12490
12491     uts4*)
12492       lt_prog_compiler_pic='-pic'
12493       lt_prog_compiler_static='-Bstatic'
12494       ;;
12495
12496     *)
12497       lt_prog_compiler_can_build_shared=no
12498       ;;
12499     esac
12500   fi
12501
12502 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12503 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12504
12505 #
12506 # Check to make sure the PIC flag actually works.
12507 #
12508 if test -n "$lt_prog_compiler_pic"; then
12509
12510 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12511 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12512 if test "${lt_prog_compiler_pic_works+set}" = set; then
12513   echo $ECHO_N "(cached) $ECHO_C" >&6
12514 else
12515   lt_prog_compiler_pic_works=no
12516   ac_outfile=conftest.$ac_objext
12517    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12518    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12519    # Insert the option either (1) after the last *FLAGS variable, or
12520    # (2) before a word containing "conftest.", or (3) at the end.
12521    # Note that $ac_compile itself does not contain backslashes and begins
12522    # with a dollar sign (not a hyphen), so the echo should work correctly.
12523    # The option is referenced via a variable to avoid confusing sed.
12524    lt_compile=`echo "$ac_compile" | $SED \
12525    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12526    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12527    -e 's:$: $lt_compiler_flag:'`
12528    (eval echo "\"\$as_me:12528: $lt_compile\"" >&5)
12529    (eval "$lt_compile" 2>conftest.err)
12530    ac_status=$?
12531    cat conftest.err >&5
12532    echo "$as_me:12532: \$? = $ac_status" >&5
12533    if (exit $ac_status) && test -s "$ac_outfile"; then
12534      # The compiler can only warn and ignore the option if not recognized
12535      # So say no if there are warnings
12536      if test ! -s conftest.err; then
12537        lt_prog_compiler_pic_works=yes
12538      fi
12539    fi
12540    $rm conftest*
12541
12542 fi
12543 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12544 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12545
12546 if test x"$lt_prog_compiler_pic_works" = xyes; then
12547     case $lt_prog_compiler_pic in
12548      "" | " "*) ;;
12549      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12550      esac
12551 else
12552     lt_prog_compiler_pic=
12553      lt_prog_compiler_can_build_shared=no
12554 fi
12555
12556 fi
12557 case "$host_os" in
12558   # For platforms which do not support PIC, -DPIC is meaningless:
12559   *djgpp*)
12560     lt_prog_compiler_pic=
12561     ;;
12562   *)
12563     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12564     ;;
12565 esac
12566
12567 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12568 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12569 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12570   echo $ECHO_N "(cached) $ECHO_C" >&6
12571 else
12572   lt_cv_prog_compiler_c_o=no
12573    $rm -r conftest 2>/dev/null
12574    mkdir conftest
12575    cd conftest
12576    mkdir out
12577    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12578
12579    lt_compiler_flag="-o out/conftest2.$ac_objext"
12580    # Insert the option either (1) after the last *FLAGS variable, or
12581    # (2) before a word containing "conftest.", or (3) at the end.
12582    # Note that $ac_compile itself does not contain backslashes and begins
12583    # with a dollar sign (not a hyphen), so the echo should work correctly.
12584    lt_compile=`echo "$ac_compile" | $SED \
12585    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12586    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12587    -e 's:$: $lt_compiler_flag:'`
12588    (eval echo "\"\$as_me:12588: $lt_compile\"" >&5)
12589    (eval "$lt_compile" 2>out/conftest.err)
12590    ac_status=$?
12591    cat out/conftest.err >&5
12592    echo "$as_me:12592: \$? = $ac_status" >&5
12593    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12594    then
12595      # The compiler can only warn and ignore the option if not recognized
12596      # So say no if there are warnings
12597      if test ! -s out/conftest.err; then
12598        lt_cv_prog_compiler_c_o=yes
12599      fi
12600    fi
12601    chmod u+w .
12602    $rm conftest*
12603    # SGI C++ compiler will create directory out/ii_files/ for
12604    # template instantiation
12605    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12606    $rm out/* && rmdir out
12607    cd ..
12608    rmdir conftest
12609    $rm conftest*
12610
12611 fi
12612 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12613 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12614
12615
12616 hard_links="nottested"
12617 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12618   # do not overwrite the value of need_locks provided by the user
12619   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12620 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12621   hard_links=yes
12622   $rm conftest*
12623   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12624   touch conftest.a
12625   ln conftest.a conftest.b 2>&5 || hard_links=no
12626   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12627   echo "$as_me:$LINENO: result: $hard_links" >&5
12628 echo "${ECHO_T}$hard_links" >&6
12629   if test "$hard_links" = no; then
12630     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12631 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12632     need_locks=warn
12633   fi
12634 else
12635   need_locks=no
12636 fi
12637
12638 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12639 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12640
12641   runpath_var=
12642   allow_undefined_flag=
12643   enable_shared_with_static_runtimes=no
12644   archive_cmds=
12645   archive_expsym_cmds=
12646   old_archive_From_new_cmds=
12647   old_archive_from_expsyms_cmds=
12648   export_dynamic_flag_spec=
12649   whole_archive_flag_spec=
12650   thread_safe_flag_spec=
12651   hardcode_libdir_flag_spec=
12652   hardcode_libdir_flag_spec_ld=
12653   hardcode_libdir_separator=
12654   hardcode_direct=no
12655   hardcode_minus_L=no
12656   hardcode_shlibpath_var=unsupported
12657   link_all_deplibs=unknown
12658   hardcode_automatic=no
12659   module_cmds=
12660   module_expsym_cmds=
12661   always_export_symbols=no
12662   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12663   # include_expsyms should be a list of space-separated symbols to be *always*
12664   # included in the symbol list
12665   include_expsyms=
12666   # exclude_expsyms can be an extended regexp of symbols to exclude
12667   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12668   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12669   # as well as any symbol that contains `d'.
12670   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12671   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12672   # platforms (ab)use it in PIC code, but their linkers get confused if
12673   # the symbol is explicitly referenced.  Since portable code cannot
12674   # rely on this symbol name, it's probably fine to never include it in
12675   # preloaded symbol tables.
12676   extract_expsyms_cmds=
12677
12678   case $host_os in
12679   cygwin* | mingw* | pw32*)
12680     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12681     # When not using gcc, we currently assume that we are using
12682     # Microsoft Visual C++.
12683     if test "$GCC" != yes; then
12684       with_gnu_ld=no
12685     fi
12686     ;;
12687   openbsd*)
12688     with_gnu_ld=no
12689     ;;
12690   esac
12691
12692   ld_shlibs=yes
12693   if test "$with_gnu_ld" = yes; then
12694     # If archive_cmds runs LD, not CC, wlarc should be empty
12695     wlarc='${wl}'
12696
12697     # See if GNU ld supports shared libraries.
12698     case $host_os in
12699     aix3* | aix4* | aix5*)
12700       # On AIX/PPC, the GNU linker is very broken
12701       if test "$host_cpu" != ia64; then
12702         ld_shlibs=no
12703         cat <<EOF 1>&2
12704
12705 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12706 *** to be unable to reliably create shared libraries on AIX.
12707 *** Therefore, libtool is disabling shared libraries support.  If you
12708 *** really care for shared libraries, you may want to modify your PATH
12709 *** so that a non-GNU linker is found, and then restart.
12710
12711 EOF
12712       fi
12713       ;;
12714
12715     amigaos*)
12716       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)'
12717       hardcode_libdir_flag_spec='-L$libdir'
12718       hardcode_minus_L=yes
12719
12720       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12721       # that the semantics of dynamic libraries on AmigaOS, at least up
12722       # to version 4, is to share data among multiple programs linked
12723       # with the same dynamic library.  Since this doesn't match the
12724       # behavior of shared libraries on other platforms, we can't use
12725       # them.
12726       ld_shlibs=no
12727       ;;
12728
12729     beos*)
12730       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12731         allow_undefined_flag=unsupported
12732         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12733         # support --undefined.  This deserves some investigation.  FIXME
12734         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12735       else
12736         ld_shlibs=no
12737       fi
12738       ;;
12739
12740     cygwin* | mingw* | pw32*)
12741       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12742       # as there is no search path for DLLs.
12743       hardcode_libdir_flag_spec='-L$libdir'
12744       allow_undefined_flag=unsupported
12745       always_export_symbols=no
12746       enable_shared_with_static_runtimes=yes
12747       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12748
12749       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12750         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12751         # If the export-symbols file already is a .def file (1st line
12752         # is EXPORTS), use it as is; otherwise, prepend...
12753         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12754           cp $export_symbols $output_objdir/$soname.def;
12755         else
12756           echo EXPORTS > $output_objdir/$soname.def;
12757           cat $export_symbols >> $output_objdir/$soname.def;
12758         fi~
12759         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12760       else
12761         ld_shlibs=no
12762       fi
12763       ;;
12764
12765     netbsd*)
12766       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12767         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12768         wlarc=
12769       else
12770         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12771         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12772       fi
12773       ;;
12774
12775     solaris* | sysv5*)
12776       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12777         ld_shlibs=no
12778         cat <<EOF 1>&2
12779
12780 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12781 *** create shared libraries on Solaris systems.  Therefore, libtool
12782 *** is disabling shared libraries support.  We urge you to upgrade GNU
12783 *** binutils to release 2.9.1 or newer.  Another option is to modify
12784 *** your PATH or compiler configuration so that the native linker is
12785 *** used, and then restart.
12786
12787 EOF
12788       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12789         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12790         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12791       else
12792         ld_shlibs=no
12793       fi
12794       ;;
12795
12796     sunos4*)
12797       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12798       wlarc=
12799       hardcode_direct=yes
12800       hardcode_shlibpath_var=no
12801       ;;
12802
12803   linux*)
12804     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12805         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12806         archive_cmds="$tmp_archive_cmds"
12807       supports_anon_versioning=no
12808       case `$LD -v 2>/dev/null` in
12809         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12810         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12811         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12812         *\ 2.11.*) ;; # other 2.11 versions
12813         *) supports_anon_versioning=yes ;;
12814       esac
12815       if test $supports_anon_versioning = yes; then
12816         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12817 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12818 $echo "local: *; };" >> $output_objdir/$libname.ver~
12819         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12820       else
12821         archive_expsym_cmds="$tmp_archive_cmds"
12822       fi
12823     else
12824       ld_shlibs=no
12825     fi
12826     ;;
12827
12828     *)
12829       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12830         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12831         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12832       else
12833         ld_shlibs=no
12834       fi
12835       ;;
12836     esac
12837
12838     if test "$ld_shlibs" = yes; then
12839       runpath_var=LD_RUN_PATH
12840       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12841       export_dynamic_flag_spec='${wl}--export-dynamic'
12842       # ancient GNU ld didn't support --whole-archive et. al.
12843       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12844         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12845       else
12846         whole_archive_flag_spec=
12847       fi
12848     fi
12849   else
12850     # PORTME fill in a description of your system's linker (not GNU ld)
12851     case $host_os in
12852     aix3*)
12853       allow_undefined_flag=unsupported
12854       always_export_symbols=yes
12855       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'
12856       # Note: this linker hardcodes the directories in LIBPATH if there
12857       # are no directories specified by -L.
12858       hardcode_minus_L=yes
12859       if test "$GCC" = yes && test -z "$link_static_flag"; then
12860         # Neither direct hardcoding nor static linking is supported with a
12861         # broken collect2.
12862         hardcode_direct=unsupported
12863       fi
12864       ;;
12865
12866     aix4* | aix5*)
12867       if test "$host_cpu" = ia64; then
12868         # On IA64, the linker does run time linking by default, so we don't
12869         # have to do anything special.
12870         aix_use_runtimelinking=no
12871         exp_sym_flag='-Bexport'
12872         no_entry_flag=""
12873       else
12874         # If we're using GNU nm, then we don't want the "-C" option.
12875         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12876         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12877           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'
12878         else
12879           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'
12880         fi
12881         aix_use_runtimelinking=no
12882
12883         # Test if we are trying to use run time linking or normal
12884         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12885         # need to do runtime linking.
12886         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12887           for ld_flag in $LDFLAGS; do
12888           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12889             aix_use_runtimelinking=yes
12890             break
12891           fi
12892           done
12893         esac
12894
12895         exp_sym_flag='-bexport'
12896         no_entry_flag='-bnoentry'
12897       fi
12898
12899       # When large executables or shared objects are built, AIX ld can
12900       # have problems creating the table of contents.  If linking a library
12901       # or program results in "error TOC overflow" add -mminimal-toc to
12902       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12903       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12904
12905       archive_cmds=''
12906       hardcode_direct=yes
12907       hardcode_libdir_separator=':'
12908       link_all_deplibs=yes
12909
12910       if test "$GCC" = yes; then
12911         case $host_os in aix4.012|aix4.012.*)
12912         # We only want to do this on AIX 4.2 and lower, the check
12913         # below for broken collect2 doesn't work under 4.3+
12914           collect2name=`${CC} -print-prog-name=collect2`
12915           if test -f "$collect2name" && \
12916            strings "$collect2name" | grep resolve_lib_name >/dev/null
12917           then
12918           # We have reworked collect2
12919           hardcode_direct=yes
12920           else
12921           # We have old collect2
12922           hardcode_direct=unsupported
12923           # It fails to find uninstalled libraries when the uninstalled
12924           # path is not listed in the libpath.  Setting hardcode_minus_L
12925           # to unsupported forces relinking
12926           hardcode_minus_L=yes
12927           hardcode_libdir_flag_spec='-L$libdir'
12928           hardcode_libdir_separator=
12929           fi
12930         esac
12931         shared_flag='-shared'
12932       else
12933         # not using gcc
12934         if test "$host_cpu" = ia64; then
12935         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12936         # chokes on -Wl,-G. The following line is correct:
12937           shared_flag='-G'
12938         else
12939         if test "$aix_use_runtimelinking" = yes; then
12940             shared_flag='${wl}-G'
12941           else
12942             shared_flag='${wl}-bM:SRE'
12943         fi
12944         fi
12945       fi
12946
12947       # It seems that -bexpall does not export symbols beginning with
12948       # underscore (_), so it is better to generate a list of symbols to export.
12949       always_export_symbols=yes
12950       if test "$aix_use_runtimelinking" = yes; then
12951         # Warning - without using the other runtime loading flags (-brtl),
12952         # -berok will link without error, but may produce a broken library.
12953         allow_undefined_flag='-berok'
12954        # Determine the default libpath from the value encoded in an empty executable.
12955        cat >conftest.$ac_ext <<_ACEOF
12956 /* confdefs.h.  */
12957 _ACEOF
12958 cat confdefs.h >>conftest.$ac_ext
12959 cat >>conftest.$ac_ext <<_ACEOF
12960 /* end confdefs.h.  */
12961
12962 int
12963 main ()
12964 {
12965
12966   ;
12967   return 0;
12968 }
12969 _ACEOF
12970 rm -f conftest.$ac_objext conftest$ac_exeext
12971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12972   (eval $ac_link) 2>conftest.er1
12973   ac_status=$?
12974   grep -v '^ *+' conftest.er1 >conftest.err
12975   rm -f conftest.er1
12976   cat conftest.err >&5
12977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978   (exit $ac_status); } &&
12979          { ac_try='test -z "$ac_c_werror_flag"
12980                          || test ! -s conftest.err'
12981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982   (eval $ac_try) 2>&5
12983   ac_status=$?
12984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985   (exit $ac_status); }; } &&
12986          { ac_try='test -s conftest$ac_exeext'
12987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988   (eval $ac_try) 2>&5
12989   ac_status=$?
12990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991   (exit $ac_status); }; }; then
12992
12993 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12994 }'`
12995 # Check for a 64-bit object if we didn't find anything.
12996 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; }
12997 }'`; fi
12998 else
12999   echo "$as_me: failed program was:" >&5
13000 sed 's/^/| /' conftest.$ac_ext >&5
13001
13002 fi
13003 rm -f conftest.err conftest.$ac_objext \
13004       conftest$ac_exeext conftest.$ac_ext
13005 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13006
13007        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13008         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"
13009        else
13010         if test "$host_cpu" = ia64; then
13011           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13012           allow_undefined_flag="-z nodefs"
13013           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"
13014         else
13015          # Determine the default libpath from the value encoded in an empty executable.
13016          cat >conftest.$ac_ext <<_ACEOF
13017 /* confdefs.h.  */
13018 _ACEOF
13019 cat confdefs.h >>conftest.$ac_ext
13020 cat >>conftest.$ac_ext <<_ACEOF
13021 /* end confdefs.h.  */
13022
13023 int
13024 main ()
13025 {
13026
13027   ;
13028   return 0;
13029 }
13030 _ACEOF
13031 rm -f conftest.$ac_objext conftest$ac_exeext
13032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13033   (eval $ac_link) 2>conftest.er1
13034   ac_status=$?
13035   grep -v '^ *+' conftest.er1 >conftest.err
13036   rm -f conftest.er1
13037   cat conftest.err >&5
13038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039   (exit $ac_status); } &&
13040          { ac_try='test -z "$ac_c_werror_flag"
13041                          || test ! -s conftest.err'
13042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043   (eval $ac_try) 2>&5
13044   ac_status=$?
13045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046   (exit $ac_status); }; } &&
13047          { ac_try='test -s conftest$ac_exeext'
13048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049   (eval $ac_try) 2>&5
13050   ac_status=$?
13051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052   (exit $ac_status); }; }; then
13053
13054 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13055 }'`
13056 # Check for a 64-bit object if we didn't find anything.
13057 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; }
13058 }'`; fi
13059 else
13060   echo "$as_me: failed program was:" >&5
13061 sed 's/^/| /' conftest.$ac_ext >&5
13062
13063 fi
13064 rm -f conftest.err conftest.$ac_objext \
13065       conftest$ac_exeext conftest.$ac_ext
13066 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13067
13068          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13069           # Warning - without using the other run time loading flags,
13070           # -berok will link without error, but may produce a broken library.
13071           no_undefined_flag=' ${wl}-bernotok'
13072           allow_undefined_flag=' ${wl}-berok'
13073           # -bexpall does not export symbols beginning with underscore (_)
13074           always_export_symbols=yes
13075           # Exported symbols can be pulled into shared objects from archives
13076           whole_archive_flag_spec=' '
13077           archive_cmds_need_lc=yes
13078           # This is similar to how AIX traditionally builds it's shared libraries.
13079           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'
13080         fi
13081       fi
13082       ;;
13083
13084     amigaos*)
13085       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)'
13086       hardcode_libdir_flag_spec='-L$libdir'
13087       hardcode_minus_L=yes
13088       # see comment about different semantics on the GNU ld section
13089       ld_shlibs=no
13090       ;;
13091
13092     bsdi[45]*)
13093       export_dynamic_flag_spec=-rdynamic
13094       ;;
13095
13096     cygwin* | mingw* | pw32*)
13097       # When not using gcc, we currently assume that we are using
13098       # Microsoft Visual C++.
13099       # hardcode_libdir_flag_spec is actually meaningless, as there is
13100       # no search path for DLLs.
13101       hardcode_libdir_flag_spec=' '
13102       allow_undefined_flag=unsupported
13103       # Tell ltmain to make .lib files, not .a files.
13104       libext=lib
13105       # Tell ltmain to make .dll files, not .so files.
13106       shrext_cmds=".dll"
13107       # FIXME: Setting linknames here is a bad hack.
13108       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13109       # The linker will automatically build a .lib file if we build a DLL.
13110       old_archive_From_new_cmds='true'
13111       # FIXME: Should let the user specify the lib program.
13112       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
13113       fix_srcfile_path='`cygpath -w "$srcfile"`'
13114       enable_shared_with_static_runtimes=yes
13115       ;;
13116
13117     darwin* | rhapsody*)
13118       case "$host_os" in
13119         rhapsody* | darwin1.[012])
13120          allow_undefined_flag='${wl}-undefined ${wl}suppress'
13121          ;;
13122        *) # Darwin 1.3 on
13123          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13124            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13125          else
13126            case ${MACOSX_DEPLOYMENT_TARGET} in
13127              10.[012])
13128                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13129                ;;
13130              10.*)
13131                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
13132                ;;
13133            esac
13134          fi
13135          ;;
13136       esac
13137       archive_cmds_need_lc=no
13138       hardcode_direct=no
13139       hardcode_automatic=yes
13140       hardcode_shlibpath_var=unsupported
13141       whole_archive_flag_spec=''
13142       link_all_deplibs=yes
13143     if test "$GCC" = yes ; then
13144         output_verbose_link_cmd='echo'
13145         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13146       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13147       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13148       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}'
13149       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}'
13150     else
13151       case "$cc_basename" in
13152         xlc*)
13153          output_verbose_link_cmd='echo'
13154          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13155          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13156           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13157          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}'
13158           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}'
13159           ;;
13160        *)
13161          ld_shlibs=no
13162           ;;
13163       esac
13164     fi
13165       ;;
13166
13167     dgux*)
13168       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13169       hardcode_libdir_flag_spec='-L$libdir'
13170       hardcode_shlibpath_var=no
13171       ;;
13172
13173     freebsd1*)
13174       ld_shlibs=no
13175       ;;
13176
13177     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13178     # support.  Future versions do this automatically, but an explicit c++rt0.o
13179     # does not break anything, and helps significantly (at the cost of a little
13180     # extra space).
13181     freebsd2.2*)
13182       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13183       hardcode_libdir_flag_spec='-R$libdir'
13184       hardcode_direct=yes
13185       hardcode_shlibpath_var=no
13186       ;;
13187
13188     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13189     freebsd2*)
13190       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13191       hardcode_direct=yes
13192       hardcode_minus_L=yes
13193       hardcode_shlibpath_var=no
13194       ;;
13195
13196     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13197     freebsd* | kfreebsd*-gnu)
13198       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13199       hardcode_libdir_flag_spec='-R$libdir'
13200       hardcode_direct=yes
13201       hardcode_shlibpath_var=no
13202       ;;
13203
13204     hpux9*)
13205       if test "$GCC" = yes; then
13206         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'
13207       else
13208         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'
13209       fi
13210       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13211       hardcode_libdir_separator=:
13212       hardcode_direct=yes
13213
13214       # hardcode_minus_L: Not really in the search PATH,
13215       # but as the default location of the library.
13216       hardcode_minus_L=yes
13217       export_dynamic_flag_spec='${wl}-E'
13218       ;;
13219
13220     hpux10* | hpux11*)
13221       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13222         case "$host_cpu" in
13223         hppa*64*|ia64*)
13224           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13225           ;;
13226         *)
13227           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13228           ;;
13229         esac
13230       else
13231         case "$host_cpu" in
13232         hppa*64*|ia64*)
13233           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13234           ;;
13235         *)
13236           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13237           ;;
13238         esac
13239       fi
13240       if test "$with_gnu_ld" = no; then
13241         case "$host_cpu" in
13242         hppa*64*)
13243           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13244           hardcode_libdir_flag_spec_ld='+b $libdir'
13245           hardcode_libdir_separator=:
13246           hardcode_direct=no
13247           hardcode_shlibpath_var=no
13248           ;;
13249         ia64*)
13250           hardcode_libdir_flag_spec='-L$libdir'
13251           hardcode_direct=no
13252           hardcode_shlibpath_var=no
13253
13254           # hardcode_minus_L: Not really in the search PATH,
13255           # but as the default location of the library.
13256           hardcode_minus_L=yes
13257           ;;
13258         *)
13259           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13260           hardcode_libdir_separator=:
13261           hardcode_direct=yes
13262           export_dynamic_flag_spec='${wl}-E'
13263
13264           # hardcode_minus_L: Not really in the search PATH,
13265           # but as the default location of the library.
13266           hardcode_minus_L=yes
13267           ;;
13268         esac
13269       fi
13270       ;;
13271
13272     irix5* | irix6* | nonstopux*)
13273       if test "$GCC" = yes; then
13274         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'
13275       else
13276         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'
13277         hardcode_libdir_flag_spec_ld='-rpath $libdir'
13278       fi
13279       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13280       hardcode_libdir_separator=:
13281       link_all_deplibs=yes
13282       ;;
13283
13284     netbsd*)
13285       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13286         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13287       else
13288         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13289       fi
13290       hardcode_libdir_flag_spec='-R$libdir'
13291       hardcode_direct=yes
13292       hardcode_shlibpath_var=no
13293       ;;
13294
13295     newsos6)
13296       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13297       hardcode_direct=yes
13298       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13299       hardcode_libdir_separator=:
13300       hardcode_shlibpath_var=no
13301       ;;
13302
13303     openbsd*)
13304       hardcode_direct=yes
13305       hardcode_shlibpath_var=no
13306       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13307         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13308         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13309         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13310         export_dynamic_flag_spec='${wl}-E'
13311       else
13312        case $host_os in
13313          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13314            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13315            hardcode_libdir_flag_spec='-R$libdir'
13316            ;;
13317          *)
13318            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13319            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13320            ;;
13321        esac
13322       fi
13323       ;;
13324
13325     os2*)
13326       hardcode_libdir_flag_spec='-L$libdir'
13327       hardcode_minus_L=yes
13328       allow_undefined_flag=unsupported
13329       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'
13330       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13331       ;;
13332
13333     osf3*)
13334       if test "$GCC" = yes; then
13335         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13336         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'
13337       else
13338         allow_undefined_flag=' -expect_unresolved \*'
13339         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'
13340       fi
13341       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13342       hardcode_libdir_separator=:
13343       ;;
13344
13345     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13346       if test "$GCC" = yes; then
13347         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13348         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'
13349         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13350       else
13351         allow_undefined_flag=' -expect_unresolved \*'
13352         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'
13353         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13354         $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'
13355
13356         # Both c and cxx compiler support -rpath directly
13357         hardcode_libdir_flag_spec='-rpath $libdir'
13358       fi
13359       hardcode_libdir_separator=:
13360       ;;
13361
13362     sco3.2v5*)
13363       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13364       hardcode_shlibpath_var=no
13365       export_dynamic_flag_spec='${wl}-Bexport'
13366       runpath_var=LD_RUN_PATH
13367       hardcode_runpath_var=yes
13368       ;;
13369
13370     solaris*)
13371       no_undefined_flag=' -z text'
13372       if test "$GCC" = yes; then
13373         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13374         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13375           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13376       else
13377         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13378         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13379         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13380       fi
13381       hardcode_libdir_flag_spec='-R$libdir'
13382       hardcode_shlibpath_var=no
13383       case $host_os in
13384       solaris2.[0-5] | solaris2.[0-5].*) ;;
13385       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13386         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13387       esac
13388       link_all_deplibs=yes
13389       ;;
13390
13391     sunos4*)
13392       if test "x$host_vendor" = xsequent; then
13393         # Use $CC to link under sequent, because it throws in some extra .o
13394         # files that make .init and .fini sections work.
13395         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13396       else
13397         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13398       fi
13399       hardcode_libdir_flag_spec='-L$libdir'
13400       hardcode_direct=yes
13401       hardcode_minus_L=yes
13402       hardcode_shlibpath_var=no
13403       ;;
13404
13405     sysv4)
13406       case $host_vendor in
13407         sni)
13408           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13409           hardcode_direct=yes # is this really true???
13410         ;;
13411         siemens)
13412           ## LD is ld it makes a PLAMLIB
13413           ## CC just makes a GrossModule.
13414           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13415           reload_cmds='$CC -r -o $output$reload_objs'
13416           hardcode_direct=no
13417         ;;
13418         motorola)
13419           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13420           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13421         ;;
13422       esac
13423       runpath_var='LD_RUN_PATH'
13424       hardcode_shlibpath_var=no
13425       ;;
13426
13427     sysv4.3*)
13428       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13429       hardcode_shlibpath_var=no
13430       export_dynamic_flag_spec='-Bexport'
13431       ;;
13432
13433     sysv4*MP*)
13434       if test -d /usr/nec; then
13435         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13436         hardcode_shlibpath_var=no
13437         runpath_var=LD_RUN_PATH
13438         hardcode_runpath_var=yes
13439         ld_shlibs=yes
13440       fi
13441       ;;
13442
13443     sysv4.2uw2*)
13444       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13445       hardcode_direct=yes
13446       hardcode_minus_L=no
13447       hardcode_shlibpath_var=no
13448       hardcode_runpath_var=yes
13449       runpath_var=LD_RUN_PATH
13450       ;;
13451
13452    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13453       no_undefined_flag='${wl}-z ${wl}text'
13454       if test "$GCC" = yes; then
13455         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13456       else
13457         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13458       fi
13459       runpath_var='LD_RUN_PATH'
13460       hardcode_shlibpath_var=no
13461       ;;
13462
13463     sysv5*)
13464       no_undefined_flag=' -z text'
13465       # $CC -shared without GNU ld will not create a library from C++
13466       # object files and a static libstdc++, better avoid it by now
13467       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13468       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13469                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13470       hardcode_libdir_flag_spec=
13471       hardcode_shlibpath_var=no
13472       runpath_var='LD_RUN_PATH'
13473       ;;
13474
13475     uts4*)
13476       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13477       hardcode_libdir_flag_spec='-L$libdir'
13478       hardcode_shlibpath_var=no
13479       ;;
13480
13481     *)
13482       ld_shlibs=no
13483       ;;
13484     esac
13485   fi
13486
13487 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13488 echo "${ECHO_T}$ld_shlibs" >&6
13489 test "$ld_shlibs" = no && can_build_shared=no
13490
13491 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13492 if test "$GCC" = yes; then
13493   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13494 fi
13495
13496 #
13497 # Do we need to explicitly link libc?
13498 #
13499 case "x$archive_cmds_need_lc" in
13500 x|xyes)
13501   # Assume -lc should be added
13502   archive_cmds_need_lc=yes
13503
13504   if test "$enable_shared" = yes && test "$GCC" = yes; then
13505     case $archive_cmds in
13506     *'~'*)
13507       # FIXME: we may have to deal with multi-command sequences.
13508       ;;
13509     '$CC '*)
13510       # Test whether the compiler implicitly links with -lc since on some
13511       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13512       # to ld, don't add -lc before -lgcc.
13513       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13514 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13515       $rm conftest*
13516       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13517
13518       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13519   (eval $ac_compile) 2>&5
13520   ac_status=$?
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); } 2>conftest.err; then
13523         soname=conftest
13524         lib=conftest
13525         libobjs=conftest.$ac_objext
13526         deplibs=
13527         wl=$lt_prog_compiler_wl
13528         compiler_flags=-v
13529         linker_flags=-v
13530         verstring=
13531         output_objdir=.
13532         libname=conftest
13533         lt_save_allow_undefined_flag=$allow_undefined_flag
13534         allow_undefined_flag=
13535         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13536   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13537   ac_status=$?
13538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539   (exit $ac_status); }
13540         then
13541           archive_cmds_need_lc=no
13542         else
13543           archive_cmds_need_lc=yes
13544         fi
13545         allow_undefined_flag=$lt_save_allow_undefined_flag
13546       else
13547         cat conftest.err 1>&5
13548       fi
13549       $rm conftest*
13550       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13551 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13552       ;;
13553     esac
13554   fi
13555   ;;
13556 esac
13557
13558 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13559 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13560 library_names_spec=
13561 libname_spec='lib$name'
13562 soname_spec=
13563 shrext_cmds=".so"
13564 postinstall_cmds=
13565 postuninstall_cmds=
13566 finish_cmds=
13567 finish_eval=
13568 shlibpath_var=
13569 shlibpath_overrides_runpath=unknown
13570 version_type=none
13571 dynamic_linker="$host_os ld.so"
13572 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13573 if test "$GCC" = yes; then
13574   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13575   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13576     # if the path contains ";" then we assume it to be the separator
13577     # otherwise default to the standard path separator (i.e. ":") - it is
13578     # assumed that no part of a normal pathname contains ";" but that should
13579     # okay in the real world where ";" in dirpaths is itself problematic.
13580     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13581   else
13582     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13583   fi
13584 else
13585   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13586 fi
13587 need_lib_prefix=unknown
13588 hardcode_into_libs=no
13589
13590 # when you set need_version to no, make sure it does not cause -set_version
13591 # flags to be left without arguments
13592 need_version=unknown
13593
13594 case $host_os in
13595 aix3*)
13596   version_type=linux
13597   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13598   shlibpath_var=LIBPATH
13599
13600   # AIX 3 has no versioning support, so we append a major version to the name.
13601   soname_spec='${libname}${release}${shared_ext}$major'
13602   ;;
13603
13604 aix4* | aix5*)
13605   version_type=linux
13606   need_lib_prefix=no
13607   need_version=no
13608   hardcode_into_libs=yes
13609   if test "$host_cpu" = ia64; then
13610     # AIX 5 supports IA64
13611     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13612     shlibpath_var=LD_LIBRARY_PATH
13613   else
13614     # With GCC up to 2.95.x, collect2 would create an import file
13615     # for dependence libraries.  The import file would start with
13616     # the line `#! .'.  This would cause the generated library to
13617     # depend on `.', always an invalid library.  This was fixed in
13618     # development snapshots of GCC prior to 3.0.
13619     case $host_os in
13620       aix4 | aix4.[01] | aix4.[01].*)
13621       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13622            echo ' yes '
13623            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13624         :
13625       else
13626         can_build_shared=no
13627       fi
13628       ;;
13629     esac
13630     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13631     # soname into executable. Probably we can add versioning support to
13632     # collect2, so additional links can be useful in future.
13633     if test "$aix_use_runtimelinking" = yes; then
13634       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13635       # instead of lib<name>.a to let people know that these are not
13636       # typical AIX shared libraries.
13637       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13638     else
13639       # We preserve .a as extension for shared libraries through AIX4.2
13640       # and later when we are not doing run time linking.
13641       library_names_spec='${libname}${release}.a $libname.a'
13642       soname_spec='${libname}${release}${shared_ext}$major'
13643     fi
13644     shlibpath_var=LIBPATH
13645   fi
13646   ;;
13647
13648 amigaos*)
13649   library_names_spec='$libname.ixlibrary $libname.a'
13650   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13651   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'
13652   ;;
13653
13654 beos*)
13655   library_names_spec='${libname}${shared_ext}'
13656   dynamic_linker="$host_os ld.so"
13657   shlibpath_var=LIBRARY_PATH
13658   ;;
13659
13660 bsdi[45]*)
13661   version_type=linux
13662   need_version=no
13663   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13664   soname_spec='${libname}${release}${shared_ext}$major'
13665   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13666   shlibpath_var=LD_LIBRARY_PATH
13667   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13668   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13669   # the default ld.so.conf also contains /usr/contrib/lib and
13670   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13671   # libtool to hard-code these into programs
13672   ;;
13673
13674 cygwin* | mingw* | pw32*)
13675   version_type=windows
13676   shrext_cmds=".dll"
13677   need_version=no
13678   need_lib_prefix=no
13679
13680   case $GCC,$host_os in
13681   yes,cygwin* | yes,mingw* | yes,pw32*)
13682     library_names_spec='$libname.dll.a'
13683     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13684     postinstall_cmds='base_file=`basename \${file}`~
13685       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13686       dldir=$destdir/`dirname \$dlpath`~
13687       test -d \$dldir || mkdir -p \$dldir~
13688       $install_prog $dir/$dlname \$dldir/$dlname'
13689     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13690       dlpath=$dir/\$dldll~
13691        $rm \$dlpath'
13692     shlibpath_overrides_runpath=yes
13693
13694     case $host_os in
13695     cygwin*)
13696       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13697       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13698       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13699       ;;
13700     mingw*)
13701       # MinGW DLLs use traditional 'lib' prefix
13702       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13703       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13704       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13705         # It is most probably a Windows format PATH printed by
13706         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13707         # path with ; separators, and with drive letters. We can handle the
13708         # drive letters (cygwin fileutils understands them), so leave them,
13709         # especially as we might pass files found there to a mingw objdump,
13710         # which wouldn't understand a cygwinified path. Ahh.
13711         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13712       else
13713         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13714       fi
13715       ;;
13716     pw32*)
13717       # pw32 DLLs use 'pw' prefix rather than 'lib'
13718       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13719       ;;
13720     esac
13721     ;;
13722
13723   *)
13724     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13725     ;;
13726   esac
13727   dynamic_linker='Win32 ld.exe'
13728   # FIXME: first we should search . and the directory the executable is in
13729   shlibpath_var=PATH
13730   ;;
13731
13732 darwin* | rhapsody*)
13733   dynamic_linker="$host_os dyld"
13734   version_type=darwin
13735   need_lib_prefix=no
13736   need_version=no
13737   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13738   soname_spec='${libname}${release}${major}$shared_ext'
13739   shlibpath_overrides_runpath=yes
13740   shlibpath_var=DYLD_LIBRARY_PATH
13741   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13742   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13743   if test "$GCC" = yes; then
13744     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"`
13745   else
13746     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13747   fi
13748   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13749   ;;
13750
13751 dgux*)
13752   version_type=linux
13753   need_lib_prefix=no
13754   need_version=no
13755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13756   soname_spec='${libname}${release}${shared_ext}$major'
13757   shlibpath_var=LD_LIBRARY_PATH
13758   ;;
13759
13760 freebsd1*)
13761   dynamic_linker=no
13762   ;;
13763
13764 kfreebsd*-gnu)
13765   version_type=linux
13766   need_lib_prefix=no
13767   need_version=no
13768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13769   soname_spec='${libname}${release}${shared_ext}$major'
13770   shlibpath_var=LD_LIBRARY_PATH
13771   shlibpath_overrides_runpath=no
13772   hardcode_into_libs=yes
13773   dynamic_linker='GNU ld.so'
13774   ;;
13775
13776 freebsd*)
13777   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13778   version_type=freebsd-$objformat
13779   case $version_type in
13780     freebsd-elf*)
13781       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13782       need_version=no
13783       need_lib_prefix=no
13784       ;;
13785     freebsd-*)
13786       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13787       need_version=yes
13788       ;;
13789   esac
13790   shlibpath_var=LD_LIBRARY_PATH
13791   case $host_os in
13792   freebsd2*)
13793     shlibpath_overrides_runpath=yes
13794     ;;
13795   freebsd3.01* | freebsdelf3.01*)
13796     shlibpath_overrides_runpath=yes
13797     hardcode_into_libs=yes
13798     ;;
13799   *) # from 3.2 on
13800     shlibpath_overrides_runpath=no
13801     hardcode_into_libs=yes
13802     ;;
13803   esac
13804   ;;
13805
13806 gnu*)
13807   version_type=linux
13808   need_lib_prefix=no
13809   need_version=no
13810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13811   soname_spec='${libname}${release}${shared_ext}$major'
13812   shlibpath_var=LD_LIBRARY_PATH
13813   hardcode_into_libs=yes
13814   ;;
13815
13816 hpux9* | hpux10* | hpux11*)
13817   # Give a soname corresponding to the major version so that dld.sl refuses to
13818   # link against other versions.
13819   version_type=sunos
13820   need_lib_prefix=no
13821   need_version=no
13822   case "$host_cpu" in
13823   ia64*)
13824     shrext_cmds='.so'
13825     hardcode_into_libs=yes
13826     dynamic_linker="$host_os dld.so"
13827     shlibpath_var=LD_LIBRARY_PATH
13828     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13829     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13830     soname_spec='${libname}${release}${shared_ext}$major'
13831     if test "X$HPUX_IA64_MODE" = X32; then
13832       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13833     else
13834       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13835     fi
13836     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13837     ;;
13838    hppa*64*)
13839      shrext_cmds='.sl'
13840      hardcode_into_libs=yes
13841      dynamic_linker="$host_os dld.sl"
13842      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13843      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13844      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13845      soname_spec='${libname}${release}${shared_ext}$major'
13846      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13847      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13848      ;;
13849    *)
13850     shrext_cmds='.sl'
13851     dynamic_linker="$host_os dld.sl"
13852     shlibpath_var=SHLIB_PATH
13853     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13854     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13855     soname_spec='${libname}${release}${shared_ext}$major'
13856     ;;
13857   esac
13858   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13859   postinstall_cmds='chmod 555 $lib'
13860   ;;
13861
13862 irix5* | irix6* | nonstopux*)
13863   case $host_os in
13864     nonstopux*) version_type=nonstopux ;;
13865     *)
13866         if test "$lt_cv_prog_gnu_ld" = yes; then
13867                 version_type=linux
13868         else
13869                 version_type=irix
13870         fi ;;
13871   esac
13872   need_lib_prefix=no
13873   need_version=no
13874   soname_spec='${libname}${release}${shared_ext}$major'
13875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13876   case $host_os in
13877   irix5* | nonstopux*)
13878     libsuff= shlibsuff=
13879     ;;
13880   *)
13881     case $LD in # libtool.m4 will add one of these switches to LD
13882     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13883       libsuff= shlibsuff= libmagic=32-bit;;
13884     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13885       libsuff=32 shlibsuff=N32 libmagic=N32;;
13886     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13887       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13888     *) libsuff= shlibsuff= libmagic=never-match;;
13889     esac
13890     ;;
13891   esac
13892   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13893   shlibpath_overrides_runpath=no
13894   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13895   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13896   hardcode_into_libs=yes
13897   ;;
13898
13899 # No shared lib support for Linux oldld, aout, or coff.
13900 linux*oldld* | linux*aout* | linux*coff*)
13901   dynamic_linker=no
13902   ;;
13903
13904 # This must be Linux ELF.
13905 linux*)
13906   version_type=linux
13907   need_lib_prefix=no
13908   need_version=no
13909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13910   soname_spec='${libname}${release}${shared_ext}$major'
13911   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13912   shlibpath_var=LD_LIBRARY_PATH
13913   shlibpath_overrides_runpath=no
13914   # This implies no fast_install, which is unacceptable.
13915   # Some rework will be needed to allow for fast_install
13916   # before this can be enabled.
13917   hardcode_into_libs=yes
13918
13919   # Append ld.so.conf contents to the search path
13920   if test -f /etc/ld.so.conf; then
13921     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13922     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13923   fi
13924
13925   # We used to test for /lib/ld.so.1 and disable shared libraries on
13926   # powerpc, because MkLinux only supported shared libraries with the
13927   # GNU dynamic linker.  Since this was broken with cross compilers,
13928   # most powerpc-linux boxes support dynamic linking these days and
13929   # people can always --disable-shared, the test was removed, and we
13930   # assume the GNU/Linux dynamic linker is in use.
13931   dynamic_linker='GNU/Linux ld.so'
13932   ;;
13933
13934 knetbsd*-gnu)
13935   version_type=linux
13936   need_lib_prefix=no
13937   need_version=no
13938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13939   soname_spec='${libname}${release}${shared_ext}$major'
13940   shlibpath_var=LD_LIBRARY_PATH
13941   shlibpath_overrides_runpath=no
13942   hardcode_into_libs=yes
13943   dynamic_linker='GNU ld.so'
13944   ;;
13945
13946 netbsd*)
13947   version_type=sunos
13948   need_lib_prefix=no
13949   need_version=no
13950   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13951     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13952     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13953     dynamic_linker='NetBSD (a.out) ld.so'
13954   else
13955     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13956     soname_spec='${libname}${release}${shared_ext}$major'
13957     dynamic_linker='NetBSD ld.elf_so'
13958   fi
13959   shlibpath_var=LD_LIBRARY_PATH
13960   shlibpath_overrides_runpath=yes
13961   hardcode_into_libs=yes
13962   ;;
13963
13964 newsos6)
13965   version_type=linux
13966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13967   shlibpath_var=LD_LIBRARY_PATH
13968   shlibpath_overrides_runpath=yes
13969   ;;
13970
13971 nto-qnx*)
13972   version_type=linux
13973   need_lib_prefix=no
13974   need_version=no
13975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13976   soname_spec='${libname}${release}${shared_ext}$major'
13977   shlibpath_var=LD_LIBRARY_PATH
13978   shlibpath_overrides_runpath=yes
13979   ;;
13980
13981 openbsd*)
13982   version_type=sunos
13983   need_lib_prefix=no
13984   need_version=no
13985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13986   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13987   shlibpath_var=LD_LIBRARY_PATH
13988   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13989     case $host_os in
13990       openbsd2.[89] | openbsd2.[89].*)
13991         shlibpath_overrides_runpath=no
13992         ;;
13993       *)
13994         shlibpath_overrides_runpath=yes
13995         ;;
13996       esac
13997   else
13998     shlibpath_overrides_runpath=yes
13999   fi
14000   ;;
14001
14002 os2*)
14003   libname_spec='$name'
14004   shrext_cmds=".dll"
14005   need_lib_prefix=no
14006   library_names_spec='$libname${shared_ext} $libname.a'
14007   dynamic_linker='OS/2 ld.exe'
14008   shlibpath_var=LIBPATH
14009   ;;
14010
14011 osf3* | osf4* | osf5*)
14012   version_type=osf
14013   need_lib_prefix=no
14014   need_version=no
14015   soname_spec='${libname}${release}${shared_ext}$major'
14016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14017   shlibpath_var=LD_LIBRARY_PATH
14018   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14019   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14020   ;;
14021
14022 sco3.2v5*)
14023   version_type=osf
14024   soname_spec='${libname}${release}${shared_ext}$major'
14025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14026   shlibpath_var=LD_LIBRARY_PATH
14027   ;;
14028
14029 solaris*)
14030   version_type=linux
14031   need_lib_prefix=no
14032   need_version=no
14033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14034   soname_spec='${libname}${release}${shared_ext}$major'
14035   shlibpath_var=LD_LIBRARY_PATH
14036   shlibpath_overrides_runpath=yes
14037   hardcode_into_libs=yes
14038   # ldd complains unless libraries are executable
14039   postinstall_cmds='chmod +x $lib'
14040   ;;
14041
14042 sunos4*)
14043   version_type=sunos
14044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14045   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14046   shlibpath_var=LD_LIBRARY_PATH
14047   shlibpath_overrides_runpath=yes
14048   if test "$with_gnu_ld" = yes; then
14049     need_lib_prefix=no
14050   fi
14051   need_version=yes
14052   ;;
14053
14054 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14055   version_type=linux
14056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14057   soname_spec='${libname}${release}${shared_ext}$major'
14058   shlibpath_var=LD_LIBRARY_PATH
14059   case $host_vendor in
14060     sni)
14061       shlibpath_overrides_runpath=no
14062       need_lib_prefix=no
14063       export_dynamic_flag_spec='${wl}-Blargedynsym'
14064       runpath_var=LD_RUN_PATH
14065       ;;
14066     siemens)
14067       need_lib_prefix=no
14068       ;;
14069     motorola)
14070       need_lib_prefix=no
14071       need_version=no
14072       shlibpath_overrides_runpath=no
14073       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14074       ;;
14075   esac
14076   ;;
14077
14078 sysv4*MP*)
14079   if test -d /usr/nec ;then
14080     version_type=linux
14081     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14082     soname_spec='$libname${shared_ext}.$major'
14083     shlibpath_var=LD_LIBRARY_PATH
14084   fi
14085   ;;
14086
14087 uts4*)
14088   version_type=linux
14089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14090   soname_spec='${libname}${release}${shared_ext}$major'
14091   shlibpath_var=LD_LIBRARY_PATH
14092   ;;
14093
14094 *)
14095   dynamic_linker=no
14096   ;;
14097 esac
14098 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14099 echo "${ECHO_T}$dynamic_linker" >&6
14100 test "$dynamic_linker" = no && can_build_shared=no
14101
14102 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14103 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14104 hardcode_action=
14105 if test -n "$hardcode_libdir_flag_spec" || \
14106    test -n "$runpath_var" || \
14107    test "X$hardcode_automatic" = "Xyes" ; then
14108
14109   # We can hardcode non-existant directories.
14110   if test "$hardcode_direct" != no &&
14111      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14112      # have to relink, otherwise we might link with an installed library
14113      # when we should be linking with a yet-to-be-installed one
14114      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
14115      test "$hardcode_minus_L" != no; then
14116     # Linking always hardcodes the temporary library directory.
14117     hardcode_action=relink
14118   else
14119     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14120     hardcode_action=immediate
14121   fi
14122 else
14123   # We cannot hardcode anything, or else we can only hardcode existing
14124   # directories.
14125   hardcode_action=unsupported
14126 fi
14127 echo "$as_me:$LINENO: result: $hardcode_action" >&5
14128 echo "${ECHO_T}$hardcode_action" >&6
14129
14130 if test "$hardcode_action" = relink; then
14131   # Fast installation is not supported
14132   enable_fast_install=no
14133 elif test "$shlibpath_overrides_runpath" = yes ||
14134      test "$enable_shared" = no; then
14135   # Fast installation is not necessary
14136   enable_fast_install=needless
14137 fi
14138
14139 striplib=
14140 old_striplib=
14141 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14142 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14143 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14144   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14145   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14146   echo "$as_me:$LINENO: result: yes" >&5
14147 echo "${ECHO_T}yes" >&6
14148 else
14149 # FIXME - insert some real tests, host_os isn't really good enough
14150   case $host_os in
14151    darwin*)
14152        if test -n "$STRIP" ; then
14153          striplib="$STRIP -x"
14154          echo "$as_me:$LINENO: result: yes" >&5
14155 echo "${ECHO_T}yes" >&6
14156        else
14157   echo "$as_me:$LINENO: result: no" >&5
14158 echo "${ECHO_T}no" >&6
14159 fi
14160        ;;
14161    *)
14162   echo "$as_me:$LINENO: result: no" >&5
14163 echo "${ECHO_T}no" >&6
14164     ;;
14165   esac
14166 fi
14167
14168 if test "x$enable_dlopen" != xyes; then
14169   enable_dlopen=unknown
14170   enable_dlopen_self=unknown
14171   enable_dlopen_self_static=unknown
14172 else
14173   lt_cv_dlopen=no
14174   lt_cv_dlopen_libs=
14175
14176   case $host_os in
14177   beos*)
14178     lt_cv_dlopen="load_add_on"
14179     lt_cv_dlopen_libs=
14180     lt_cv_dlopen_self=yes
14181     ;;
14182
14183   mingw* | pw32*)
14184     lt_cv_dlopen="LoadLibrary"
14185     lt_cv_dlopen_libs=
14186    ;;
14187
14188   cygwin*)
14189     lt_cv_dlopen="dlopen"
14190     lt_cv_dlopen_libs=
14191    ;;
14192
14193   darwin*)
14194   # if libdl is installed we need to link against it
14195     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14196 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14197 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14198   echo $ECHO_N "(cached) $ECHO_C" >&6
14199 else
14200   ac_check_lib_save_LIBS=$LIBS
14201 LIBS="-ldl  $LIBS"
14202 cat >conftest.$ac_ext <<_ACEOF
14203 /* confdefs.h.  */
14204 _ACEOF
14205 cat confdefs.h >>conftest.$ac_ext
14206 cat >>conftest.$ac_ext <<_ACEOF
14207 /* end confdefs.h.  */
14208
14209 /* Override any gcc2 internal prototype to avoid an error.  */
14210 #ifdef __cplusplus
14211 extern "C"
14212 #endif
14213 /* We use char because int might match the return type of a gcc2
14214    builtin and then its argument prototype would still apply.  */
14215 char dlopen ();
14216 int
14217 main ()
14218 {
14219 dlopen ();
14220   ;
14221   return 0;
14222 }
14223 _ACEOF
14224 rm -f conftest.$ac_objext conftest$ac_exeext
14225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14226   (eval $ac_link) 2>conftest.er1
14227   ac_status=$?
14228   grep -v '^ *+' conftest.er1 >conftest.err
14229   rm -f conftest.er1
14230   cat conftest.err >&5
14231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232   (exit $ac_status); } &&
14233          { ac_try='test -z "$ac_c_werror_flag"
14234                          || test ! -s conftest.err'
14235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236   (eval $ac_try) 2>&5
14237   ac_status=$?
14238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239   (exit $ac_status); }; } &&
14240          { ac_try='test -s conftest$ac_exeext'
14241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242   (eval $ac_try) 2>&5
14243   ac_status=$?
14244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245   (exit $ac_status); }; }; then
14246   ac_cv_lib_dl_dlopen=yes
14247 else
14248   echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14250
14251 ac_cv_lib_dl_dlopen=no
14252 fi
14253 rm -f conftest.err conftest.$ac_objext \
14254       conftest$ac_exeext conftest.$ac_ext
14255 LIBS=$ac_check_lib_save_LIBS
14256 fi
14257 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14258 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14259 if test $ac_cv_lib_dl_dlopen = yes; then
14260   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14261 else
14262
14263     lt_cv_dlopen="dyld"
14264     lt_cv_dlopen_libs=
14265     lt_cv_dlopen_self=yes
14266
14267 fi
14268
14269    ;;
14270
14271   *)
14272     echo "$as_me:$LINENO: checking for shl_load" >&5
14273 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14274 if test "${ac_cv_func_shl_load+set}" = set; then
14275   echo $ECHO_N "(cached) $ECHO_C" >&6
14276 else
14277   cat >conftest.$ac_ext <<_ACEOF
14278 /* confdefs.h.  */
14279 _ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h.  */
14283 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14284    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14285 #define shl_load innocuous_shl_load
14286
14287 /* System header to define __stub macros and hopefully few prototypes,
14288     which can conflict with char shl_load (); below.
14289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14290     <limits.h> exists even on freestanding compilers.  */
14291
14292 #ifdef __STDC__
14293 # include <limits.h>
14294 #else
14295 # include <assert.h>
14296 #endif
14297
14298 #undef shl_load
14299
14300 /* Override any gcc2 internal prototype to avoid an error.  */
14301 #ifdef __cplusplus
14302 extern "C"
14303 {
14304 #endif
14305 /* We use char because int might match the return type of a gcc2
14306    builtin and then its argument prototype would still apply.  */
14307 char shl_load ();
14308 /* The GNU C library defines this for functions which it implements
14309     to always fail with ENOSYS.  Some functions are actually named
14310     something starting with __ and the normal name is an alias.  */
14311 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14312 choke me
14313 #else
14314 char (*f) () = shl_load;
14315 #endif
14316 #ifdef __cplusplus
14317 }
14318 #endif
14319
14320 int
14321 main ()
14322 {
14323 return f != shl_load;
14324   ;
14325   return 0;
14326 }
14327 _ACEOF
14328 rm -f conftest.$ac_objext conftest$ac_exeext
14329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14330   (eval $ac_link) 2>conftest.er1
14331   ac_status=$?
14332   grep -v '^ *+' conftest.er1 >conftest.err
14333   rm -f conftest.er1
14334   cat conftest.err >&5
14335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); } &&
14337          { ac_try='test -z "$ac_c_werror_flag"
14338                          || test ! -s conftest.err'
14339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340   (eval $ac_try) 2>&5
14341   ac_status=$?
14342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343   (exit $ac_status); }; } &&
14344          { ac_try='test -s conftest$ac_exeext'
14345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346   (eval $ac_try) 2>&5
14347   ac_status=$?
14348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349   (exit $ac_status); }; }; then
14350   ac_cv_func_shl_load=yes
14351 else
14352   echo "$as_me: failed program was:" >&5
14353 sed 's/^/| /' conftest.$ac_ext >&5
14354
14355 ac_cv_func_shl_load=no
14356 fi
14357 rm -f conftest.err conftest.$ac_objext \
14358       conftest$ac_exeext conftest.$ac_ext
14359 fi
14360 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14361 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14362 if test $ac_cv_func_shl_load = yes; then
14363   lt_cv_dlopen="shl_load"
14364 else
14365   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14366 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14367 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14368   echo $ECHO_N "(cached) $ECHO_C" >&6
14369 else
14370   ac_check_lib_save_LIBS=$LIBS
14371 LIBS="-ldld  $LIBS"
14372 cat >conftest.$ac_ext <<_ACEOF
14373 /* confdefs.h.  */
14374 _ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h.  */
14378
14379 /* Override any gcc2 internal prototype to avoid an error.  */
14380 #ifdef __cplusplus
14381 extern "C"
14382 #endif
14383 /* We use char because int might match the return type of a gcc2
14384    builtin and then its argument prototype would still apply.  */
14385 char shl_load ();
14386 int
14387 main ()
14388 {
14389 shl_load ();
14390   ;
14391   return 0;
14392 }
14393 _ACEOF
14394 rm -f conftest.$ac_objext conftest$ac_exeext
14395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14396   (eval $ac_link) 2>conftest.er1
14397   ac_status=$?
14398   grep -v '^ *+' conftest.er1 >conftest.err
14399   rm -f conftest.er1
14400   cat conftest.err >&5
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); } &&
14403          { ac_try='test -z "$ac_c_werror_flag"
14404                          || test ! -s conftest.err'
14405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406   (eval $ac_try) 2>&5
14407   ac_status=$?
14408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409   (exit $ac_status); }; } &&
14410          { ac_try='test -s conftest$ac_exeext'
14411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14412   (eval $ac_try) 2>&5
14413   ac_status=$?
14414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415   (exit $ac_status); }; }; then
14416   ac_cv_lib_dld_shl_load=yes
14417 else
14418   echo "$as_me: failed program was:" >&5
14419 sed 's/^/| /' conftest.$ac_ext >&5
14420
14421 ac_cv_lib_dld_shl_load=no
14422 fi
14423 rm -f conftest.err conftest.$ac_objext \
14424       conftest$ac_exeext conftest.$ac_ext
14425 LIBS=$ac_check_lib_save_LIBS
14426 fi
14427 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14428 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14429 if test $ac_cv_lib_dld_shl_load = yes; then
14430   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14431 else
14432   echo "$as_me:$LINENO: checking for dlopen" >&5
14433 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14434 if test "${ac_cv_func_dlopen+set}" = set; then
14435   echo $ECHO_N "(cached) $ECHO_C" >&6
14436 else
14437   cat >conftest.$ac_ext <<_ACEOF
14438 /* confdefs.h.  */
14439 _ACEOF
14440 cat confdefs.h >>conftest.$ac_ext
14441 cat >>conftest.$ac_ext <<_ACEOF
14442 /* end confdefs.h.  */
14443 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14444    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14445 #define dlopen innocuous_dlopen
14446
14447 /* System header to define __stub macros and hopefully few prototypes,
14448     which can conflict with char dlopen (); below.
14449     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14450     <limits.h> exists even on freestanding compilers.  */
14451
14452 #ifdef __STDC__
14453 # include <limits.h>
14454 #else
14455 # include <assert.h>
14456 #endif
14457
14458 #undef dlopen
14459
14460 /* Override any gcc2 internal prototype to avoid an error.  */
14461 #ifdef __cplusplus
14462 extern "C"
14463 {
14464 #endif
14465 /* We use char because int might match the return type of a gcc2
14466    builtin and then its argument prototype would still apply.  */
14467 char dlopen ();
14468 /* The GNU C library defines this for functions which it implements
14469     to always fail with ENOSYS.  Some functions are actually named
14470     something starting with __ and the normal name is an alias.  */
14471 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14472 choke me
14473 #else
14474 char (*f) () = dlopen;
14475 #endif
14476 #ifdef __cplusplus
14477 }
14478 #endif
14479
14480 int
14481 main ()
14482 {
14483 return f != dlopen;
14484   ;
14485   return 0;
14486 }
14487 _ACEOF
14488 rm -f conftest.$ac_objext conftest$ac_exeext
14489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14490   (eval $ac_link) 2>conftest.er1
14491   ac_status=$?
14492   grep -v '^ *+' conftest.er1 >conftest.err
14493   rm -f conftest.er1
14494   cat conftest.err >&5
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); } &&
14497          { ac_try='test -z "$ac_c_werror_flag"
14498                          || test ! -s conftest.err'
14499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500   (eval $ac_try) 2>&5
14501   ac_status=$?
14502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503   (exit $ac_status); }; } &&
14504          { ac_try='test -s conftest$ac_exeext'
14505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506   (eval $ac_try) 2>&5
14507   ac_status=$?
14508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509   (exit $ac_status); }; }; then
14510   ac_cv_func_dlopen=yes
14511 else
14512   echo "$as_me: failed program was:" >&5
14513 sed 's/^/| /' conftest.$ac_ext >&5
14514
14515 ac_cv_func_dlopen=no
14516 fi
14517 rm -f conftest.err conftest.$ac_objext \
14518       conftest$ac_exeext conftest.$ac_ext
14519 fi
14520 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14521 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14522 if test $ac_cv_func_dlopen = yes; then
14523   lt_cv_dlopen="dlopen"
14524 else
14525   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14526 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14527 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14528   echo $ECHO_N "(cached) $ECHO_C" >&6
14529 else
14530   ac_check_lib_save_LIBS=$LIBS
14531 LIBS="-ldl  $LIBS"
14532 cat >conftest.$ac_ext <<_ACEOF
14533 /* confdefs.h.  */
14534 _ACEOF
14535 cat confdefs.h >>conftest.$ac_ext
14536 cat >>conftest.$ac_ext <<_ACEOF
14537 /* end confdefs.h.  */
14538
14539 /* Override any gcc2 internal prototype to avoid an error.  */
14540 #ifdef __cplusplus
14541 extern "C"
14542 #endif
14543 /* We use char because int might match the return type of a gcc2
14544    builtin and then its argument prototype would still apply.  */
14545 char dlopen ();
14546 int
14547 main ()
14548 {
14549 dlopen ();
14550   ;
14551   return 0;
14552 }
14553 _ACEOF
14554 rm -f conftest.$ac_objext conftest$ac_exeext
14555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14556   (eval $ac_link) 2>conftest.er1
14557   ac_status=$?
14558   grep -v '^ *+' conftest.er1 >conftest.err
14559   rm -f conftest.er1
14560   cat conftest.err >&5
14561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562   (exit $ac_status); } &&
14563          { ac_try='test -z "$ac_c_werror_flag"
14564                          || test ! -s conftest.err'
14565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14566   (eval $ac_try) 2>&5
14567   ac_status=$?
14568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569   (exit $ac_status); }; } &&
14570          { ac_try='test -s conftest$ac_exeext'
14571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14572   (eval $ac_try) 2>&5
14573   ac_status=$?
14574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575   (exit $ac_status); }; }; then
14576   ac_cv_lib_dl_dlopen=yes
14577 else
14578   echo "$as_me: failed program was:" >&5
14579 sed 's/^/| /' conftest.$ac_ext >&5
14580
14581 ac_cv_lib_dl_dlopen=no
14582 fi
14583 rm -f conftest.err conftest.$ac_objext \
14584       conftest$ac_exeext conftest.$ac_ext
14585 LIBS=$ac_check_lib_save_LIBS
14586 fi
14587 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14588 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14589 if test $ac_cv_lib_dl_dlopen = yes; then
14590   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14591 else
14592   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14593 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14594 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14595   echo $ECHO_N "(cached) $ECHO_C" >&6
14596 else
14597   ac_check_lib_save_LIBS=$LIBS
14598 LIBS="-lsvld  $LIBS"
14599 cat >conftest.$ac_ext <<_ACEOF
14600 /* confdefs.h.  */
14601 _ACEOF
14602 cat confdefs.h >>conftest.$ac_ext
14603 cat >>conftest.$ac_ext <<_ACEOF
14604 /* end confdefs.h.  */
14605
14606 /* Override any gcc2 internal prototype to avoid an error.  */
14607 #ifdef __cplusplus
14608 extern "C"
14609 #endif
14610 /* We use char because int might match the return type of a gcc2
14611    builtin and then its argument prototype would still apply.  */
14612 char dlopen ();
14613 int
14614 main ()
14615 {
14616 dlopen ();
14617   ;
14618   return 0;
14619 }
14620 _ACEOF
14621 rm -f conftest.$ac_objext conftest$ac_exeext
14622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14623   (eval $ac_link) 2>conftest.er1
14624   ac_status=$?
14625   grep -v '^ *+' conftest.er1 >conftest.err
14626   rm -f conftest.er1
14627   cat conftest.err >&5
14628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629   (exit $ac_status); } &&
14630          { ac_try='test -z "$ac_c_werror_flag"
14631                          || test ! -s conftest.err'
14632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633   (eval $ac_try) 2>&5
14634   ac_status=$?
14635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636   (exit $ac_status); }; } &&
14637          { ac_try='test -s conftest$ac_exeext'
14638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639   (eval $ac_try) 2>&5
14640   ac_status=$?
14641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642   (exit $ac_status); }; }; then
14643   ac_cv_lib_svld_dlopen=yes
14644 else
14645   echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14647
14648 ac_cv_lib_svld_dlopen=no
14649 fi
14650 rm -f conftest.err conftest.$ac_objext \
14651       conftest$ac_exeext conftest.$ac_ext
14652 LIBS=$ac_check_lib_save_LIBS
14653 fi
14654 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14655 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14656 if test $ac_cv_lib_svld_dlopen = yes; then
14657   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14658 else
14659   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14660 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14661 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14662   echo $ECHO_N "(cached) $ECHO_C" >&6
14663 else
14664   ac_check_lib_save_LIBS=$LIBS
14665 LIBS="-ldld  $LIBS"
14666 cat >conftest.$ac_ext <<_ACEOF
14667 /* confdefs.h.  */
14668 _ACEOF
14669 cat confdefs.h >>conftest.$ac_ext
14670 cat >>conftest.$ac_ext <<_ACEOF
14671 /* end confdefs.h.  */
14672
14673 /* Override any gcc2 internal prototype to avoid an error.  */
14674 #ifdef __cplusplus
14675 extern "C"
14676 #endif
14677 /* We use char because int might match the return type of a gcc2
14678    builtin and then its argument prototype would still apply.  */
14679 char dld_link ();
14680 int
14681 main ()
14682 {
14683 dld_link ();
14684   ;
14685   return 0;
14686 }
14687 _ACEOF
14688 rm -f conftest.$ac_objext conftest$ac_exeext
14689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14690   (eval $ac_link) 2>conftest.er1
14691   ac_status=$?
14692   grep -v '^ *+' conftest.er1 >conftest.err
14693   rm -f conftest.er1
14694   cat conftest.err >&5
14695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696   (exit $ac_status); } &&
14697          { ac_try='test -z "$ac_c_werror_flag"
14698                          || test ! -s conftest.err'
14699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700   (eval $ac_try) 2>&5
14701   ac_status=$?
14702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703   (exit $ac_status); }; } &&
14704          { ac_try='test -s conftest$ac_exeext'
14705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706   (eval $ac_try) 2>&5
14707   ac_status=$?
14708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709   (exit $ac_status); }; }; then
14710   ac_cv_lib_dld_dld_link=yes
14711 else
14712   echo "$as_me: failed program was:" >&5
14713 sed 's/^/| /' conftest.$ac_ext >&5
14714
14715 ac_cv_lib_dld_dld_link=no
14716 fi
14717 rm -f conftest.err conftest.$ac_objext \
14718       conftest$ac_exeext conftest.$ac_ext
14719 LIBS=$ac_check_lib_save_LIBS
14720 fi
14721 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14722 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14723 if test $ac_cv_lib_dld_dld_link = yes; then
14724   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14725 fi
14726
14727
14728 fi
14729
14730
14731 fi
14732
14733
14734 fi
14735
14736
14737 fi
14738
14739
14740 fi
14741
14742     ;;
14743   esac
14744
14745   if test "x$lt_cv_dlopen" != xno; then
14746     enable_dlopen=yes
14747   else
14748     enable_dlopen=no
14749   fi
14750
14751   case $lt_cv_dlopen in
14752   dlopen)
14753     save_CPPFLAGS="$CPPFLAGS"
14754     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14755
14756     save_LDFLAGS="$LDFLAGS"
14757     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14758
14759     save_LIBS="$LIBS"
14760     LIBS="$lt_cv_dlopen_libs $LIBS"
14761
14762     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14763 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14764 if test "${lt_cv_dlopen_self+set}" = set; then
14765   echo $ECHO_N "(cached) $ECHO_C" >&6
14766 else
14767           if test "$cross_compiling" = yes; then :
14768   lt_cv_dlopen_self=cross
14769 else
14770   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14771   lt_status=$lt_dlunknown
14772   cat > conftest.$ac_ext <<EOF
14773 #line 14773 "configure"
14774 #include "confdefs.h"
14775
14776 #if HAVE_DLFCN_H
14777 #include <dlfcn.h>
14778 #endif
14779
14780 #include <stdio.h>
14781
14782 #ifdef RTLD_GLOBAL
14783 #  define LT_DLGLOBAL           RTLD_GLOBAL
14784 #else
14785 #  ifdef DL_GLOBAL
14786 #    define LT_DLGLOBAL         DL_GLOBAL
14787 #  else
14788 #    define LT_DLGLOBAL         0
14789 #  endif
14790 #endif
14791
14792 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14793    find out it does not work in some platform. */
14794 #ifndef LT_DLLAZY_OR_NOW
14795 #  ifdef RTLD_LAZY
14796 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14797 #  else
14798 #    ifdef DL_LAZY
14799 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14800 #    else
14801 #      ifdef RTLD_NOW
14802 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14803 #      else
14804 #        ifdef DL_NOW
14805 #          define LT_DLLAZY_OR_NOW      DL_NOW
14806 #        else
14807 #          define LT_DLLAZY_OR_NOW      0
14808 #        endif
14809 #      endif
14810 #    endif
14811 #  endif
14812 #endif
14813
14814 #ifdef __cplusplus
14815 extern "C" void exit (int);
14816 #endif
14817
14818 void fnord() { int i=42;}
14819 int main ()
14820 {
14821   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14822   int status = $lt_dlunknown;
14823
14824   if (self)
14825     {
14826       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14827       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14828       /* dlclose (self); */
14829     }
14830
14831     exit (status);
14832 }
14833 EOF
14834   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14835   (eval $ac_link) 2>&5
14836   ac_status=$?
14837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14839     (./conftest; exit; ) 2>/dev/null
14840     lt_status=$?
14841     case x$lt_status in
14842       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14843       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14844       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14845     esac
14846   else :
14847     # compilation failed
14848     lt_cv_dlopen_self=no
14849   fi
14850 fi
14851 rm -fr conftest*
14852
14853
14854 fi
14855 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14856 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14857
14858     if test "x$lt_cv_dlopen_self" = xyes; then
14859       LDFLAGS="$LDFLAGS $link_static_flag"
14860       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14861 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14862 if test "${lt_cv_dlopen_self_static+set}" = set; then
14863   echo $ECHO_N "(cached) $ECHO_C" >&6
14864 else
14865           if test "$cross_compiling" = yes; then :
14866   lt_cv_dlopen_self_static=cross
14867 else
14868   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14869   lt_status=$lt_dlunknown
14870   cat > conftest.$ac_ext <<EOF
14871 #line 14871 "configure"
14872 #include "confdefs.h"
14873
14874 #if HAVE_DLFCN_H
14875 #include <dlfcn.h>
14876 #endif
14877
14878 #include <stdio.h>
14879
14880 #ifdef RTLD_GLOBAL
14881 #  define LT_DLGLOBAL           RTLD_GLOBAL
14882 #else
14883 #  ifdef DL_GLOBAL
14884 #    define LT_DLGLOBAL         DL_GLOBAL
14885 #  else
14886 #    define LT_DLGLOBAL         0
14887 #  endif
14888 #endif
14889
14890 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14891    find out it does not work in some platform. */
14892 #ifndef LT_DLLAZY_OR_NOW
14893 #  ifdef RTLD_LAZY
14894 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14895 #  else
14896 #    ifdef DL_LAZY
14897 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14898 #    else
14899 #      ifdef RTLD_NOW
14900 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14901 #      else
14902 #        ifdef DL_NOW
14903 #          define LT_DLLAZY_OR_NOW      DL_NOW
14904 #        else
14905 #          define LT_DLLAZY_OR_NOW      0
14906 #        endif
14907 #      endif
14908 #    endif
14909 #  endif
14910 #endif
14911
14912 #ifdef __cplusplus
14913 extern "C" void exit (int);
14914 #endif
14915
14916 void fnord() { int i=42;}
14917 int main ()
14918 {
14919   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14920   int status = $lt_dlunknown;
14921
14922   if (self)
14923     {
14924       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14925       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14926       /* dlclose (self); */
14927     }
14928
14929     exit (status);
14930 }
14931 EOF
14932   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14933   (eval $ac_link) 2>&5
14934   ac_status=$?
14935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14937     (./conftest; exit; ) 2>/dev/null
14938     lt_status=$?
14939     case x$lt_status in
14940       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14941       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14942       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14943     esac
14944   else :
14945     # compilation failed
14946     lt_cv_dlopen_self_static=no
14947   fi
14948 fi
14949 rm -fr conftest*
14950
14951
14952 fi
14953 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14954 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14955     fi
14956
14957     CPPFLAGS="$save_CPPFLAGS"
14958     LDFLAGS="$save_LDFLAGS"
14959     LIBS="$save_LIBS"
14960     ;;
14961   esac
14962
14963   case $lt_cv_dlopen_self in
14964   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14965   *) enable_dlopen_self=unknown ;;
14966   esac
14967
14968   case $lt_cv_dlopen_self_static in
14969   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14970   *) enable_dlopen_self_static=unknown ;;
14971   esac
14972 fi
14973
14974
14975 # Report which librarie types wil actually be built
14976 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14977 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14978 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14979 echo "${ECHO_T}$can_build_shared" >&6
14980
14981 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14982 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14983 test "$can_build_shared" = "no" && enable_shared=no
14984
14985 # On AIX, shared libraries and static libraries use the same namespace, and
14986 # are all built from PIC.
14987 case "$host_os" in
14988 aix3*)
14989   test "$enable_shared" = yes && enable_static=no
14990   if test -n "$RANLIB"; then
14991     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14992     postinstall_cmds='$RANLIB $lib'
14993   fi
14994   ;;
14995
14996 aix4* | aix5*)
14997   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14998     test "$enable_shared" = yes && enable_static=no
14999   fi
15000     ;;
15001 esac
15002 echo "$as_me:$LINENO: result: $enable_shared" >&5
15003 echo "${ECHO_T}$enable_shared" >&6
15004
15005 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15006 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15007 # Make sure either enable_shared or enable_static is yes.
15008 test "$enable_shared" = yes || enable_static=yes
15009 echo "$as_me:$LINENO: result: $enable_static" >&5
15010 echo "${ECHO_T}$enable_static" >&6
15011
15012 # The else clause should only fire when bootstrapping the
15013 # libtool distribution, otherwise you forgot to ship ltmain.sh
15014 # with your package, and you will get complaints that there are
15015 # no rules to generate ltmain.sh.
15016 if test -f "$ltmain"; then
15017   # See if we are running on zsh, and set the options which allow our commands through
15018   # without removal of \ escapes.
15019   if test -n "${ZSH_VERSION+set}" ; then
15020     setopt NO_GLOB_SUBST
15021   fi
15022   # Now quote all the things that may contain metacharacters while being
15023   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15024   # variables and quote the copies for generation of the libtool script.
15025   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15026     SED SHELL STRIP \
15027     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15028     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15029     deplibs_check_method reload_flag reload_cmds need_locks \
15030     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15031     lt_cv_sys_global_symbol_to_c_name_address \
15032     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15033     old_postinstall_cmds old_postuninstall_cmds \
15034     compiler \
15035     CC \
15036     LD \
15037     lt_prog_compiler_wl \
15038     lt_prog_compiler_pic \
15039     lt_prog_compiler_static \
15040     lt_prog_compiler_no_builtin_flag \
15041     export_dynamic_flag_spec \
15042     thread_safe_flag_spec \
15043     whole_archive_flag_spec \
15044     enable_shared_with_static_runtimes \
15045     old_archive_cmds \
15046     old_archive_from_new_cmds \
15047     predep_objects \
15048     postdep_objects \
15049     predeps \
15050     postdeps \
15051     compiler_lib_search_path \
15052     archive_cmds \
15053     archive_expsym_cmds \
15054     postinstall_cmds \
15055     postuninstall_cmds \
15056     old_archive_from_expsyms_cmds \
15057     allow_undefined_flag \
15058     no_undefined_flag \
15059     export_symbols_cmds \
15060     hardcode_libdir_flag_spec \
15061     hardcode_libdir_flag_spec_ld \
15062     hardcode_libdir_separator \
15063     hardcode_automatic \
15064     module_cmds \
15065     module_expsym_cmds \
15066     lt_cv_prog_compiler_c_o \
15067     exclude_expsyms \
15068     include_expsyms; do
15069
15070     case $var in
15071     old_archive_cmds | \
15072     old_archive_from_new_cmds | \
15073     archive_cmds | \
15074     archive_expsym_cmds | \
15075     module_cmds | \
15076     module_expsym_cmds | \
15077     old_archive_from_expsyms_cmds | \
15078     export_symbols_cmds | \
15079     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15080     postinstall_cmds | postuninstall_cmds | \
15081     old_postinstall_cmds | old_postuninstall_cmds | \
15082     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15083       # Double-quote double-evaled strings.
15084       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15085       ;;
15086     *)
15087       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15088       ;;
15089     esac
15090   done
15091
15092   case $lt_echo in
15093   *'\$0 --fallback-echo"')
15094     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15095     ;;
15096   esac
15097
15098 cfgfile="${ofile}T"
15099   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
15100   $rm -f "$cfgfile"
15101   { echo "$as_me:$LINENO: creating $ofile" >&5
15102 echo "$as_me: creating $ofile" >&6;}
15103
15104   cat <<__EOF__ >> "$cfgfile"
15105 #! $SHELL
15106
15107 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15108 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
15109 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15110 #
15111 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
15112 # Free Software Foundation, Inc.
15113 #
15114 # This file is part of GNU Libtool:
15115 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15116 #
15117 # This program is free software; you can redistribute it and/or modify
15118 # it under the terms of the GNU General Public License as published by
15119 # the Free Software Foundation; either version 2 of the License, or
15120 # (at your option) any later version.
15121 #
15122 # This program is distributed in the hope that it will be useful, but
15123 # WITHOUT ANY WARRANTY; without even the implied warranty of
15124 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15125 # General Public License for more details.
15126 #
15127 # You should have received a copy of the GNU General Public License
15128 # along with this program; if not, write to the Free Software
15129 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15130 #
15131 # As a special exception to the GNU General Public License, if you
15132 # distribute this file as part of a program that contains a
15133 # configuration script generated by Autoconf, you may include it under
15134 # the same distribution terms that you use for the rest of that program.
15135
15136 # A sed program that does not truncate output.
15137 SED=$lt_SED
15138
15139 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15140 Xsed="$SED -e s/^X//"
15141
15142 # The HP-UX ksh and POSIX shell print the target directory to stdout
15143 # if CDPATH is set.
15144 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15145
15146 # The names of the tagged configurations supported by this script.
15147 available_tags=
15148
15149 # ### BEGIN LIBTOOL CONFIG
15150
15151 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15152
15153 # Shell to use when invoking shell scripts.
15154 SHELL=$lt_SHELL
15155
15156 # Whether or not to build shared libraries.
15157 build_libtool_libs=$enable_shared
15158
15159 # Whether or not to build static libraries.
15160 build_old_libs=$enable_static
15161
15162 # Whether or not to add -lc for building shared libraries.
15163 build_libtool_need_lc=$archive_cmds_need_lc
15164
15165 # Whether or not to disallow shared libs when runtime libs are static
15166 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15167
15168 # Whether or not to optimize for fast installation.
15169 fast_install=$enable_fast_install
15170
15171 # The host system.
15172 host_alias=$host_alias
15173 host=$host
15174
15175 # An echo program that does not interpret backslashes.
15176 echo=$lt_echo
15177
15178 # The archiver.
15179 AR=$lt_AR
15180 AR_FLAGS=$lt_AR_FLAGS
15181
15182 # A C compiler.
15183 LTCC=$lt_LTCC
15184
15185 # A language-specific compiler.
15186 CC=$lt_compiler
15187
15188 # Is the compiler the GNU C compiler?
15189 with_gcc=$GCC
15190
15191 # An ERE matcher.
15192 EGREP=$lt_EGREP
15193
15194 # The linker used to build libraries.
15195 LD=$lt_LD
15196
15197 # Whether we need hard or soft links.
15198 LN_S=$lt_LN_S
15199
15200 # A BSD-compatible nm program.
15201 NM=$lt_NM
15202
15203 # A symbol stripping program
15204 STRIP=$lt_STRIP
15205
15206 # Used to examine libraries when file_magic_cmd begins "file"
15207 MAGIC_CMD=$MAGIC_CMD
15208
15209 # Used on cygwin: DLL creation program.
15210 DLLTOOL="$DLLTOOL"
15211
15212 # Used on cygwin: object dumper.
15213 OBJDUMP="$OBJDUMP"
15214
15215 # Used on cygwin: assembler.
15216 AS="$AS"
15217
15218 # The name of the directory that contains temporary libtool files.
15219 objdir=$objdir
15220
15221 # How to create reloadable object files.
15222 reload_flag=$lt_reload_flag
15223 reload_cmds=$lt_reload_cmds
15224
15225 # How to pass a linker flag through the compiler.
15226 wl=$lt_lt_prog_compiler_wl
15227
15228 # Object file suffix (normally "o").
15229 objext="$ac_objext"
15230
15231 # Old archive suffix (normally "a").
15232 libext="$libext"
15233
15234 # Shared library suffix (normally ".so").
15235 shrext_cmds='$shrext_cmds'
15236
15237 # Executable file suffix (normally "").
15238 exeext="$exeext"
15239
15240 # Additional compiler flags for building library objects.
15241 pic_flag=$lt_lt_prog_compiler_pic
15242 pic_mode=$pic_mode
15243
15244 # What is the maximum length of a command?
15245 max_cmd_len=$lt_cv_sys_max_cmd_len
15246
15247 # Does compiler simultaneously support -c and -o options?
15248 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15249
15250 # Must we lock files when doing compilation ?
15251 need_locks=$lt_need_locks
15252
15253 # Do we need the lib prefix for modules?
15254 need_lib_prefix=$need_lib_prefix
15255
15256 # Do we need a version for libraries?
15257 need_version=$need_version
15258
15259 # Whether dlopen is supported.
15260 dlopen_support=$enable_dlopen
15261
15262 # Whether dlopen of programs is supported.
15263 dlopen_self=$enable_dlopen_self
15264
15265 # Whether dlopen of statically linked programs is supported.
15266 dlopen_self_static=$enable_dlopen_self_static
15267
15268 # Compiler flag to prevent dynamic linking.
15269 link_static_flag=$lt_lt_prog_compiler_static
15270
15271 # Compiler flag to turn off builtin functions.
15272 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15273
15274 # Compiler flag to allow reflexive dlopens.
15275 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15276
15277 # Compiler flag to generate shared objects directly from archives.
15278 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15279
15280 # Compiler flag to generate thread-safe objects.
15281 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15282
15283 # Library versioning type.
15284 version_type=$version_type
15285
15286 # Format of library name prefix.
15287 libname_spec=$lt_libname_spec
15288
15289 # List of archive names.  First name is the real one, the rest are links.
15290 # The last name is the one that the linker finds with -lNAME.
15291 library_names_spec=$lt_library_names_spec
15292
15293 # The coded name of the library, if different from the real name.
15294 soname_spec=$lt_soname_spec
15295
15296 # Commands used to build and install an old-style archive.
15297 RANLIB=$lt_RANLIB
15298 old_archive_cmds=$lt_old_archive_cmds
15299 old_postinstall_cmds=$lt_old_postinstall_cmds
15300 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15301
15302 # Create an old-style archive from a shared archive.
15303 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15304
15305 # Create a temporary old-style archive to link instead of a shared archive.
15306 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15307
15308 # Commands used to build and install a shared archive.
15309 archive_cmds=$lt_archive_cmds
15310 archive_expsym_cmds=$lt_archive_expsym_cmds
15311 postinstall_cmds=$lt_postinstall_cmds
15312 postuninstall_cmds=$lt_postuninstall_cmds
15313
15314 # Commands used to build a loadable module (assumed same as above if empty)
15315 module_cmds=$lt_module_cmds
15316 module_expsym_cmds=$lt_module_expsym_cmds
15317
15318 # Commands to strip libraries.
15319 old_striplib=$lt_old_striplib
15320 striplib=$lt_striplib
15321
15322 # Dependencies to place before the objects being linked to create a
15323 # shared library.
15324 predep_objects=$lt_predep_objects
15325
15326 # Dependencies to place after the objects being linked to create a
15327 # shared library.
15328 postdep_objects=$lt_postdep_objects
15329
15330 # Dependencies to place before the objects being linked to create a
15331 # shared library.
15332 predeps=$lt_predeps
15333
15334 # Dependencies to place after the objects being linked to create a
15335 # shared library.
15336 postdeps=$lt_postdeps
15337
15338 # The library search path used internally by the compiler when linking
15339 # a shared library.
15340 compiler_lib_search_path=$lt_compiler_lib_search_path
15341
15342 # Method to check whether dependent libraries are shared objects.
15343 deplibs_check_method=$lt_deplibs_check_method
15344
15345 # Command to use when deplibs_check_method == file_magic.
15346 file_magic_cmd=$lt_file_magic_cmd
15347
15348 # Flag that allows shared libraries with undefined symbols to be built.
15349 allow_undefined_flag=$lt_allow_undefined_flag
15350
15351 # Flag that forces no undefined symbols.
15352 no_undefined_flag=$lt_no_undefined_flag
15353
15354 # Commands used to finish a libtool library installation in a directory.
15355 finish_cmds=$lt_finish_cmds
15356
15357 # Same as above, but a single script fragment to be evaled but not shown.
15358 finish_eval=$lt_finish_eval
15359
15360 # Take the output of nm and produce a listing of raw symbols and C names.
15361 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15362
15363 # Transform the output of nm in a proper C declaration
15364 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15365
15366 # Transform the output of nm in a C name address pair
15367 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15368
15369 # This is the shared library runtime path variable.
15370 runpath_var=$runpath_var
15371
15372 # This is the shared library path variable.
15373 shlibpath_var=$shlibpath_var
15374
15375 # Is shlibpath searched before the hard-coded library search path?
15376 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15377
15378 # How to hardcode a shared library path into an executable.
15379 hardcode_action=$hardcode_action
15380
15381 # Whether we should hardcode library paths into libraries.
15382 hardcode_into_libs=$hardcode_into_libs
15383
15384 # Flag to hardcode \$libdir into a binary during linking.
15385 # This must work even if \$libdir does not exist.
15386 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15387
15388 # If ld is used when linking, flag to hardcode \$libdir into
15389 # a binary during linking. This must work even if \$libdir does
15390 # not exist.
15391 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15392
15393 # Whether we need a single -rpath flag with a separated argument.
15394 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15395
15396 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15397 # resulting binary.
15398 hardcode_direct=$hardcode_direct
15399
15400 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15401 # resulting binary.
15402 hardcode_minus_L=$hardcode_minus_L
15403
15404 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15405 # the resulting binary.
15406 hardcode_shlibpath_var=$hardcode_shlibpath_var
15407
15408 # Set to yes if building a shared library automatically hardcodes DIR into the library
15409 # and all subsequent libraries and executables linked against it.
15410 hardcode_automatic=$hardcode_automatic
15411
15412 # Variables whose values should be saved in libtool wrapper scripts and
15413 # restored at relink time.
15414 variables_saved_for_relink="$variables_saved_for_relink"
15415
15416 # Whether libtool must link a program against all its dependency libraries.
15417 link_all_deplibs=$link_all_deplibs
15418
15419 # Compile-time system search path for libraries
15420 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15421
15422 # Run-time system search path for libraries
15423 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15424
15425 # Fix the shell variable \$srcfile for the compiler.
15426 fix_srcfile_path="$fix_srcfile_path"
15427
15428 # Set to yes if exported symbols are required.
15429 always_export_symbols=$always_export_symbols
15430
15431 # The commands to list exported symbols.
15432 export_symbols_cmds=$lt_export_symbols_cmds
15433
15434 # The commands to extract the exported symbol list from a shared archive.
15435 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15436
15437 # Symbols that should not be listed in the preloaded symbols.
15438 exclude_expsyms=$lt_exclude_expsyms
15439
15440 # Symbols that must always be exported.
15441 include_expsyms=$lt_include_expsyms
15442
15443 # ### END LIBTOOL CONFIG
15444
15445 __EOF__
15446
15447
15448   case $host_os in
15449   aix3*)
15450     cat <<\EOF >> "$cfgfile"
15451
15452 # AIX sometimes has problems with the GCC collect2 program.  For some
15453 # reason, if we set the COLLECT_NAMES environment variable, the problems
15454 # vanish in a puff of smoke.
15455 if test "X${COLLECT_NAMES+set}" != Xset; then
15456   COLLECT_NAMES=
15457   export COLLECT_NAMES
15458 fi
15459 EOF
15460     ;;
15461   esac
15462
15463   # We use sed instead of cat because bash on DJGPP gets confused if
15464   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15465   # text mode, it properly converts lines to CR/LF.  This bash problem
15466   # is reportedly fixed, but why not run on old versions too?
15467   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15468
15469   mv -f "$cfgfile" "$ofile" || \
15470     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15471   chmod +x "$ofile"
15472
15473 else
15474   # If there is no Makefile yet, we rely on a make rule to execute
15475   # `config.status --recheck' to rerun these tests and create the
15476   # libtool script then.
15477   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15478   if test -f "$ltmain_in"; then
15479     test -f Makefile && make "$ltmain"
15480   fi
15481 fi
15482
15483
15484 ac_ext=c
15485 ac_cpp='$CPP $CPPFLAGS'
15486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15489
15490 CC="$lt_save_CC"
15491
15492
15493 # Check whether --with-tags or --without-tags was given.
15494 if test "${with_tags+set}" = set; then
15495   withval="$with_tags"
15496   tagnames="$withval"
15497 fi;
15498
15499 if test -f "$ltmain" && test -n "$tagnames"; then
15500   if test ! -f "${ofile}"; then
15501     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15502 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15503   fi
15504
15505   if test -z "$LTCC"; then
15506     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15507     if test -z "$LTCC"; then
15508       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15509 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15510     else
15511       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15512 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15513     fi
15514   fi
15515
15516   # Extract list of available tagged configurations in $ofile.
15517   # Note that this assumes the entire list is on one line.
15518   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15519
15520   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15521   for tagname in $tagnames; do
15522     IFS="$lt_save_ifs"
15523     # Check whether tagname contains only valid characters
15524     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15525     "") ;;
15526     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15527 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15528    { (exit 1); exit 1; }; }
15529         ;;
15530     esac
15531
15532     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15533     then
15534       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15535 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15536    { (exit 1); exit 1; }; }
15537     fi
15538
15539     # Update the list of available tags.
15540     if test -n "$tagname"; then
15541       echo appending configuration tag "$tagname" to $ofile
15542
15543       case $tagname in
15544       CXX)
15545         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15546             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15547             (test "X$CXX" != "Xg++"))) ; then
15548           ac_ext=cc
15549 ac_cpp='$CXXCPP $CPPFLAGS'
15550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15553
15554
15555
15556
15557 archive_cmds_need_lc_CXX=no
15558 allow_undefined_flag_CXX=
15559 always_export_symbols_CXX=no
15560 archive_expsym_cmds_CXX=
15561 export_dynamic_flag_spec_CXX=
15562 hardcode_direct_CXX=no
15563 hardcode_libdir_flag_spec_CXX=
15564 hardcode_libdir_flag_spec_ld_CXX=
15565 hardcode_libdir_separator_CXX=
15566 hardcode_minus_L_CXX=no
15567 hardcode_automatic_CXX=no
15568 module_cmds_CXX=
15569 module_expsym_cmds_CXX=
15570 link_all_deplibs_CXX=unknown
15571 old_archive_cmds_CXX=$old_archive_cmds
15572 no_undefined_flag_CXX=
15573 whole_archive_flag_spec_CXX=
15574 enable_shared_with_static_runtimes_CXX=no
15575
15576 # Dependencies to place before and after the object being linked:
15577 predep_objects_CXX=
15578 postdep_objects_CXX=
15579 predeps_CXX=
15580 postdeps_CXX=
15581 compiler_lib_search_path_CXX=
15582
15583 # Source file extension for C++ test sources.
15584 ac_ext=cc
15585
15586 # Object file extension for compiled C++ test sources.
15587 objext=o
15588 objext_CXX=$objext
15589
15590 # Code to be used in simple compile tests
15591 lt_simple_compile_test_code="int some_variable = 0;\n"
15592
15593 # Code to be used in simple link tests
15594 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15595
15596 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15597
15598 # If no C compiler was specified, use CC.
15599 LTCC=${LTCC-"$CC"}
15600
15601 # Allow CC to be a program name with arguments.
15602 compiler=$CC
15603
15604
15605 # Allow CC to be a program name with arguments.
15606 lt_save_CC=$CC
15607 lt_save_LD=$LD
15608 lt_save_GCC=$GCC
15609 GCC=$GXX
15610 lt_save_with_gnu_ld=$with_gnu_ld
15611 lt_save_path_LD=$lt_cv_path_LD
15612 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15613   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15614 else
15615   unset lt_cv_prog_gnu_ld
15616 fi
15617 if test -n "${lt_cv_path_LDCXX+set}"; then
15618   lt_cv_path_LD=$lt_cv_path_LDCXX
15619 else
15620   unset lt_cv_path_LD
15621 fi
15622 test -z "${LDCXX+set}" || LD=$LDCXX
15623 CC=${CXX-"c++"}
15624 compiler=$CC
15625 compiler_CXX=$CC
15626 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15627
15628 # We don't want -fno-exception wen compiling C++ code, so set the
15629 # no_builtin_flag separately
15630 if test "$GXX" = yes; then
15631   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15632 else
15633   lt_prog_compiler_no_builtin_flag_CXX=
15634 fi
15635
15636 if test "$GXX" = yes; then
15637   # Set up default GNU C++ configuration
15638
15639
15640 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15641 if test "${with_gnu_ld+set}" = set; then
15642   withval="$with_gnu_ld"
15643   test "$withval" = no || with_gnu_ld=yes
15644 else
15645   with_gnu_ld=no
15646 fi;
15647 ac_prog=ld
15648 if test "$GCC" = yes; then
15649   # Check if gcc -print-prog-name=ld gives a path.
15650   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15651 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15652   case $host in
15653   *-*-mingw*)
15654     # gcc leaves a trailing carriage return which upsets mingw
15655     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15656   *)
15657     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15658   esac
15659   case $ac_prog in
15660     # Accept absolute paths.
15661     [\\/]* | ?:[\\/]*)
15662       re_direlt='/[^/][^/]*/\.\./'
15663       # Canonicalize the pathname of ld
15664       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15665       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15666         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15667       done
15668       test -z "$LD" && LD="$ac_prog"
15669       ;;
15670   "")
15671     # If it fails, then pretend we aren't using GCC.
15672     ac_prog=ld
15673     ;;
15674   *)
15675     # If it is relative, then search for the first ld in PATH.
15676     with_gnu_ld=unknown
15677     ;;
15678   esac
15679 elif test "$with_gnu_ld" = yes; then
15680   echo "$as_me:$LINENO: checking for GNU ld" >&5
15681 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15682 else
15683   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15684 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15685 fi
15686 if test "${lt_cv_path_LD+set}" = set; then
15687   echo $ECHO_N "(cached) $ECHO_C" >&6
15688 else
15689   if test -z "$LD"; then
15690   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15691   for ac_dir in $PATH; do
15692     IFS="$lt_save_ifs"
15693     test -z "$ac_dir" && ac_dir=.
15694     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15695       lt_cv_path_LD="$ac_dir/$ac_prog"
15696       # Check to see if the program is GNU ld.  I'd rather use --version,
15697       # but apparently some GNU ld's only accept -v.
15698       # Break only if it was the GNU/non-GNU ld that we prefer.
15699       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15700       *GNU* | *'with BFD'*)
15701         test "$with_gnu_ld" != no && break
15702         ;;
15703       *)
15704         test "$with_gnu_ld" != yes && break
15705         ;;
15706       esac
15707     fi
15708   done
15709   IFS="$lt_save_ifs"
15710 else
15711   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15712 fi
15713 fi
15714
15715 LD="$lt_cv_path_LD"
15716 if test -n "$LD"; then
15717   echo "$as_me:$LINENO: result: $LD" >&5
15718 echo "${ECHO_T}$LD" >&6
15719 else
15720   echo "$as_me:$LINENO: result: no" >&5
15721 echo "${ECHO_T}no" >&6
15722 fi
15723 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15724 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15725    { (exit 1); exit 1; }; }
15726 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15727 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15728 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15729   echo $ECHO_N "(cached) $ECHO_C" >&6
15730 else
15731   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15732 case `$LD -v 2>&1 </dev/null` in
15733 *GNU* | *'with BFD'*)
15734   lt_cv_prog_gnu_ld=yes
15735   ;;
15736 *)
15737   lt_cv_prog_gnu_ld=no
15738   ;;
15739 esac
15740 fi
15741 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15742 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15743 with_gnu_ld=$lt_cv_prog_gnu_ld
15744
15745
15746
15747   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15748   # archiving commands below assume that GNU ld is being used.
15749   if test "$with_gnu_ld" = yes; then
15750     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15751     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'
15752
15753     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15754     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15755
15756     # If archive_cmds runs LD, not CC, wlarc should be empty
15757     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15758     #     investigate it a little bit more. (MM)
15759     wlarc='${wl}'
15760
15761     # ancient GNU ld didn't support --whole-archive et. al.
15762     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15763         grep 'no-whole-archive' > /dev/null; then
15764       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15765     else
15766       whole_archive_flag_spec_CXX=
15767     fi
15768   else
15769     with_gnu_ld=no
15770     wlarc=
15771
15772     # A generic and very simple default shared library creation
15773     # command for GNU C++ for the case where it uses the native
15774     # linker, instead of GNU ld.  If possible, this setting should
15775     # overridden to take advantage of the native linker features on
15776     # the platform it is being used on.
15777     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15778   fi
15779
15780   # Commands to make compiler produce verbose output that lists
15781   # what "hidden" libraries, object files and flags are used when
15782   # linking a shared library.
15783   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15784
15785 else
15786   GXX=no
15787   with_gnu_ld=no
15788   wlarc=
15789 fi
15790
15791 # PORTME: fill in a description of your system's C++ link characteristics
15792 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15793 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15794 ld_shlibs_CXX=yes
15795 case $host_os in
15796   aix3*)
15797     # FIXME: insert proper C++ library support
15798     ld_shlibs_CXX=no
15799     ;;
15800   aix4* | aix5*)
15801     if test "$host_cpu" = ia64; then
15802       # On IA64, the linker does run time linking by default, so we don't
15803       # have to do anything special.
15804       aix_use_runtimelinking=no
15805       exp_sym_flag='-Bexport'
15806       no_entry_flag=""
15807     else
15808       aix_use_runtimelinking=no
15809
15810       # Test if we are trying to use run time linking or normal
15811       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15812       # need to do runtime linking.
15813       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15814         for ld_flag in $LDFLAGS; do
15815           case $ld_flag in
15816           *-brtl*)
15817             aix_use_runtimelinking=yes
15818             break
15819             ;;
15820           esac
15821         done
15822       esac
15823
15824       exp_sym_flag='-bexport'
15825       no_entry_flag='-bnoentry'
15826     fi
15827
15828     # When large executables or shared objects are built, AIX ld can
15829     # have problems creating the table of contents.  If linking a library
15830     # or program results in "error TOC overflow" add -mminimal-toc to
15831     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15832     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15833
15834     archive_cmds_CXX=''
15835     hardcode_direct_CXX=yes
15836     hardcode_libdir_separator_CXX=':'
15837     link_all_deplibs_CXX=yes
15838
15839     if test "$GXX" = yes; then
15840       case $host_os in aix4.012|aix4.012.*)
15841       # We only want to do this on AIX 4.2 and lower, the check
15842       # below for broken collect2 doesn't work under 4.3+
15843         collect2name=`${CC} -print-prog-name=collect2`
15844         if test -f "$collect2name" && \
15845            strings "$collect2name" | grep resolve_lib_name >/dev/null
15846         then
15847           # We have reworked collect2
15848           hardcode_direct_CXX=yes
15849         else
15850           # We have old collect2
15851           hardcode_direct_CXX=unsupported
15852           # It fails to find uninstalled libraries when the uninstalled
15853           # path is not listed in the libpath.  Setting hardcode_minus_L
15854           # to unsupported forces relinking
15855           hardcode_minus_L_CXX=yes
15856           hardcode_libdir_flag_spec_CXX='-L$libdir'
15857           hardcode_libdir_separator_CXX=
15858         fi
15859       esac
15860       shared_flag='-shared'
15861     else
15862       # not using gcc
15863       if test "$host_cpu" = ia64; then
15864         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15865         # chokes on -Wl,-G. The following line is correct:
15866         shared_flag='-G'
15867       else
15868         if test "$aix_use_runtimelinking" = yes; then
15869           shared_flag='${wl}-G'
15870         else
15871           shared_flag='${wl}-bM:SRE'
15872         fi
15873       fi
15874     fi
15875
15876     # It seems that -bexpall does not export symbols beginning with
15877     # underscore (_), so it is better to generate a list of symbols to export.
15878     always_export_symbols_CXX=yes
15879     if test "$aix_use_runtimelinking" = yes; then
15880       # Warning - without using the other runtime loading flags (-brtl),
15881       # -berok will link without error, but may produce a broken library.
15882       allow_undefined_flag_CXX='-berok'
15883       # Determine the default libpath from the value encoded in an empty executable.
15884       cat >conftest.$ac_ext <<_ACEOF
15885 /* confdefs.h.  */
15886 _ACEOF
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h.  */
15890
15891 int
15892 main ()
15893 {
15894
15895   ;
15896   return 0;
15897 }
15898 _ACEOF
15899 rm -f conftest.$ac_objext conftest$ac_exeext
15900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15901   (eval $ac_link) 2>conftest.er1
15902   ac_status=$?
15903   grep -v '^ *+' conftest.er1 >conftest.err
15904   rm -f conftest.er1
15905   cat conftest.err >&5
15906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907   (exit $ac_status); } &&
15908          { ac_try='test -z "$ac_cxx_werror_flag"
15909                          || test ! -s conftest.err'
15910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911   (eval $ac_try) 2>&5
15912   ac_status=$?
15913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914   (exit $ac_status); }; } &&
15915          { ac_try='test -s conftest$ac_exeext'
15916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917   (eval $ac_try) 2>&5
15918   ac_status=$?
15919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920   (exit $ac_status); }; }; then
15921
15922 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15923 }'`
15924 # Check for a 64-bit object if we didn't find anything.
15925 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; }
15926 }'`; fi
15927 else
15928   echo "$as_me: failed program was:" >&5
15929 sed 's/^/| /' conftest.$ac_ext >&5
15930
15931 fi
15932 rm -f conftest.err conftest.$ac_objext \
15933       conftest$ac_exeext conftest.$ac_ext
15934 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15935
15936       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15937
15938       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"
15939      else
15940       if test "$host_cpu" = ia64; then
15941         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15942         allow_undefined_flag_CXX="-z nodefs"
15943         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"
15944       else
15945         # Determine the default libpath from the value encoded in an empty executable.
15946         cat >conftest.$ac_ext <<_ACEOF
15947 /* confdefs.h.  */
15948 _ACEOF
15949 cat confdefs.h >>conftest.$ac_ext
15950 cat >>conftest.$ac_ext <<_ACEOF
15951 /* end confdefs.h.  */
15952
15953 int
15954 main ()
15955 {
15956
15957   ;
15958   return 0;
15959 }
15960 _ACEOF
15961 rm -f conftest.$ac_objext conftest$ac_exeext
15962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15963   (eval $ac_link) 2>conftest.er1
15964   ac_status=$?
15965   grep -v '^ *+' conftest.er1 >conftest.err
15966   rm -f conftest.er1
15967   cat conftest.err >&5
15968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969   (exit $ac_status); } &&
15970          { ac_try='test -z "$ac_cxx_werror_flag"
15971                          || test ! -s conftest.err'
15972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15973   (eval $ac_try) 2>&5
15974   ac_status=$?
15975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976   (exit $ac_status); }; } &&
15977          { ac_try='test -s conftest$ac_exeext'
15978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979   (eval $ac_try) 2>&5
15980   ac_status=$?
15981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982   (exit $ac_status); }; }; then
15983
15984 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15985 }'`
15986 # Check for a 64-bit object if we didn't find anything.
15987 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; }
15988 }'`; fi
15989 else
15990   echo "$as_me: failed program was:" >&5
15991 sed 's/^/| /' conftest.$ac_ext >&5
15992
15993 fi
15994 rm -f conftest.err conftest.$ac_objext \
15995       conftest$ac_exeext conftest.$ac_ext
15996 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15997
15998         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15999         # Warning - without using the other run time loading flags,
16000         # -berok will link without error, but may produce a broken library.
16001         no_undefined_flag_CXX=' ${wl}-bernotok'
16002         allow_undefined_flag_CXX=' ${wl}-berok'
16003         # -bexpall does not export symbols beginning with underscore (_)
16004         always_export_symbols_CXX=yes
16005         # Exported symbols can be pulled into shared objects from archives
16006         whole_archive_flag_spec_CXX=' '
16007         archive_cmds_need_lc_CXX=yes
16008         # This is similar to how AIX traditionally builds it's shared libraries.
16009         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'
16010       fi
16011     fi
16012     ;;
16013   chorus*)
16014     case $cc_basename in
16015       *)
16016         # FIXME: insert proper C++ library support
16017         ld_shlibs_CXX=no
16018         ;;
16019     esac
16020     ;;
16021
16022
16023   cygwin* | mingw* | pw32*)
16024     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16025     # as there is no search path for DLLs.
16026     hardcode_libdir_flag_spec_CXX='-L$libdir'
16027     allow_undefined_flag_CXX=unsupported
16028     always_export_symbols_CXX=no
16029     enable_shared_with_static_runtimes_CXX=yes
16030
16031     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16032       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'
16033       # If the export-symbols file already is a .def file (1st line
16034       # is EXPORTS), use it as is; otherwise, prepend...
16035       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16036         cp $export_symbols $output_objdir/$soname.def;
16037       else
16038         echo EXPORTS > $output_objdir/$soname.def;
16039         cat $export_symbols >> $output_objdir/$soname.def;
16040       fi~
16041       $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'
16042     else
16043       ld_shlibs_CXX=no
16044     fi
16045   ;;
16046       darwin* | rhapsody*)
16047         case "$host_os" in
16048         rhapsody* | darwin1.[012])
16049          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
16050          ;;
16051        *) # Darwin 1.3 on
16052          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16053            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16054          else
16055            case ${MACOSX_DEPLOYMENT_TARGET} in
16056              10.[012])
16057                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16058                ;;
16059              10.*)
16060                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
16061                ;;
16062            esac
16063          fi
16064          ;;
16065         esac
16066       archive_cmds_need_lc_CXX=no
16067       hardcode_direct_CXX=no
16068       hardcode_automatic_CXX=yes
16069       hardcode_shlibpath_var_CXX=unsupported
16070       whole_archive_flag_spec_CXX=''
16071       link_all_deplibs_CXX=yes
16072
16073     if test "$GXX" = yes ; then
16074       lt_int_apple_cc_single_mod=no
16075       output_verbose_link_cmd='echo'
16076       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
16077        lt_int_apple_cc_single_mod=yes
16078       fi
16079       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16080        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16081       else
16082           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'
16083         fi
16084         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16085         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16086           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16087             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}'
16088           else
16089             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}'
16090           fi
16091             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}'
16092       else
16093       case "$cc_basename" in
16094         xlc*)
16095          output_verbose_link_cmd='echo'
16096           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'
16097           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16098           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16099           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}'
16100           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}'
16101           ;;
16102        *)
16103          ld_shlibs_CXX=no
16104           ;;
16105       esac
16106       fi
16107         ;;
16108
16109   dgux*)
16110     case $cc_basename in
16111       ec++)
16112         # FIXME: insert proper C++ library support
16113         ld_shlibs_CXX=no
16114         ;;
16115       ghcx)
16116         # Green Hills C++ Compiler
16117         # FIXME: insert proper C++ library support
16118         ld_shlibs_CXX=no
16119         ;;
16120       *)
16121         # FIXME: insert proper C++ library support
16122         ld_shlibs_CXX=no
16123         ;;
16124     esac
16125     ;;
16126   freebsd12*)
16127     # C++ shared libraries reported to be fairly broken before switch to ELF
16128     ld_shlibs_CXX=no
16129     ;;
16130   freebsd-elf*)
16131     archive_cmds_need_lc_CXX=no
16132     ;;
16133   freebsd* | kfreebsd*-gnu)
16134     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16135     # conventions
16136     ld_shlibs_CXX=yes
16137     ;;
16138   gnu*)
16139     ;;
16140   hpux9*)
16141     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16142     hardcode_libdir_separator_CXX=:
16143     export_dynamic_flag_spec_CXX='${wl}-E'
16144     hardcode_direct_CXX=yes
16145     hardcode_minus_L_CXX=yes # Not in the search PATH,
16146                                 # but as the default
16147                                 # location of the library.
16148
16149     case $cc_basename in
16150     CC)
16151       # FIXME: insert proper C++ library support
16152       ld_shlibs_CXX=no
16153       ;;
16154     aCC)
16155       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'
16156       # Commands to make compiler produce verbose output that lists
16157       # what "hidden" libraries, object files and flags are used when
16158       # linking a shared library.
16159       #
16160       # There doesn't appear to be a way to prevent this compiler from
16161       # explicitly linking system object files so we need to strip them
16162       # from the output so that they don't get included in the library
16163       # dependencies.
16164       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'
16165       ;;
16166     *)
16167       if test "$GXX" = yes; then
16168         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'
16169       else
16170         # FIXME: insert proper C++ library support
16171         ld_shlibs_CXX=no
16172       fi
16173       ;;
16174     esac
16175     ;;
16176   hpux10*|hpux11*)
16177     if test $with_gnu_ld = no; then
16178       case "$host_cpu" in
16179       hppa*64*)
16180         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16181         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
16182         hardcode_libdir_separator_CXX=:
16183         ;;
16184       ia64*)
16185         hardcode_libdir_flag_spec_CXX='-L$libdir'
16186         ;;
16187       *)
16188         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16189         hardcode_libdir_separator_CXX=:
16190         export_dynamic_flag_spec_CXX='${wl}-E'
16191         ;;
16192       esac
16193     fi
16194     case "$host_cpu" in
16195     hppa*64*)
16196       hardcode_direct_CXX=no
16197       hardcode_shlibpath_var_CXX=no
16198       ;;
16199     ia64*)
16200       hardcode_direct_CXX=no
16201       hardcode_shlibpath_var_CXX=no
16202       hardcode_minus_L_CXX=yes # Not in the search PATH,
16203                                               # but as the default
16204                                               # location of the library.
16205       ;;
16206     *)
16207       hardcode_direct_CXX=yes
16208       hardcode_minus_L_CXX=yes # Not in the search PATH,
16209                                               # but as the default
16210                                               # location of the library.
16211       ;;
16212     esac
16213
16214     case $cc_basename in
16215       CC)
16216         # FIXME: insert proper C++ library support
16217         ld_shlibs_CXX=no
16218         ;;
16219       aCC)
16220         case "$host_cpu" in
16221         hppa*64*|ia64*)
16222           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16223           ;;
16224         *)
16225           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16226           ;;
16227         esac
16228         # Commands to make compiler produce verbose output that lists
16229         # what "hidden" libraries, object files and flags are used when
16230         # linking a shared library.
16231         #
16232         # There doesn't appear to be a way to prevent this compiler from
16233         # explicitly linking system object files so we need to strip them
16234         # from the output so that they don't get included in the library
16235         # dependencies.
16236         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'
16237         ;;
16238       *)
16239         if test "$GXX" = yes; then
16240           if test $with_gnu_ld = no; then
16241             case "$host_cpu" in
16242             ia64*|hppa*64*)
16243               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16244               ;;
16245             *)
16246               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'
16247               ;;
16248             esac
16249           fi
16250         else
16251           # FIXME: insert proper C++ library support
16252           ld_shlibs_CXX=no
16253         fi
16254         ;;
16255     esac
16256     ;;
16257   irix5* | irix6*)
16258     case $cc_basename in
16259       CC)
16260         # SGI C++
16261         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'
16262
16263         # Archives containing C++ object files must be created using
16264         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16265         # necessary to make sure instantiated templates are included
16266         # in the archive.
16267         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16268         ;;
16269       *)
16270         if test "$GXX" = yes; then
16271           if test "$with_gnu_ld" = no; then
16272             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'
16273           else
16274             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'
16275           fi
16276         fi
16277         link_all_deplibs_CXX=yes
16278         ;;
16279     esac
16280     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16281     hardcode_libdir_separator_CXX=:
16282     ;;
16283   linux*)
16284     case $cc_basename in
16285       KCC)
16286         # Kuck and Associates, Inc. (KAI) C++ Compiler
16287
16288         # KCC will only create a shared library if the output file
16289         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16290         # to its proper name (with version) after linking.
16291         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'
16292         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'
16293         # Commands to make compiler produce verbose output that lists
16294         # what "hidden" libraries, object files and flags are used when
16295         # linking a shared library.
16296         #
16297         # There doesn't appear to be a way to prevent this compiler from
16298         # explicitly linking system object files so we need to strip them
16299         # from the output so that they don't get included in the library
16300         # dependencies.
16301         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'
16302
16303         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16304         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16305
16306         # Archives containing C++ object files must be created using
16307         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16308         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16309         ;;
16310       icpc)
16311         # Intel C++
16312         with_gnu_ld=yes
16313         # version 8.0 and above of icpc choke on multiply defined symbols
16314         # if we add $predep_objects and $postdep_objects, however 7.1 and
16315         # earlier do not add the objects themselves.
16316         case `$CC -V 2>&1` in
16317         *"Version 7."*)
16318           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16319           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'
16320           ;;
16321         *)  # Version 8.0 or newer
16322           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16323         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16324           ;;
16325         esac
16326         archive_cmds_need_lc_CXX=no
16327         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16328         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16329         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16330         ;;
16331       cxx)
16332         # Compaq C++
16333         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16334         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'
16335
16336         runpath_var=LD_RUN_PATH
16337         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16338         hardcode_libdir_separator_CXX=:
16339
16340         # Commands to make compiler produce verbose output that lists
16341         # what "hidden" libraries, object files and flags are used when
16342         # linking a shared library.
16343         #
16344         # There doesn't appear to be a way to prevent this compiler from
16345         # explicitly linking system object files so we need to strip them
16346         # from the output so that they don't get included in the library
16347         # dependencies.
16348         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'
16349         ;;
16350     esac
16351     ;;
16352   lynxos*)
16353     # FIXME: insert proper C++ library support
16354     ld_shlibs_CXX=no
16355     ;;
16356   m88k*)
16357     # FIXME: insert proper C++ library support
16358     ld_shlibs_CXX=no
16359     ;;
16360   mvs*)
16361     case $cc_basename in
16362       cxx)
16363         # FIXME: insert proper C++ library support
16364         ld_shlibs_CXX=no
16365         ;;
16366       *)
16367         # FIXME: insert proper C++ library support
16368         ld_shlibs_CXX=no
16369         ;;
16370     esac
16371     ;;
16372   netbsd*)
16373     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16374       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16375       wlarc=
16376       hardcode_libdir_flag_spec_CXX='-R$libdir'
16377       hardcode_direct_CXX=yes
16378       hardcode_shlibpath_var_CXX=no
16379     fi
16380     # Workaround some broken pre-1.5 toolchains
16381     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16382     ;;
16383   openbsd2*)
16384     # C++ shared libraries are fairly broken
16385     ld_shlibs_CXX=no
16386     ;;
16387   openbsd*)
16388     hardcode_direct_CXX=yes
16389     hardcode_shlibpath_var_CXX=no
16390     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16391     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16392     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16393       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16394       export_dynamic_flag_spec_CXX='${wl}-E'
16395       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16396     fi
16397     output_verbose_link_cmd='echo'
16398     ;;
16399   osf3*)
16400     case $cc_basename in
16401       KCC)
16402         # Kuck and Associates, Inc. (KAI) C++ Compiler
16403
16404         # KCC will only create a shared library if the output file
16405         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16406         # to its proper name (with version) after linking.
16407         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'
16408
16409         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16410         hardcode_libdir_separator_CXX=:
16411
16412         # Archives containing C++ object files must be created using
16413         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16414         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16415
16416         ;;
16417       RCC)
16418         # Rational C++ 2.4.1
16419         # FIXME: insert proper C++ library support
16420         ld_shlibs_CXX=no
16421         ;;
16422       cxx)
16423         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16424         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'
16425
16426         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16427         hardcode_libdir_separator_CXX=:
16428
16429         # Commands to make compiler produce verbose output that lists
16430         # what "hidden" libraries, object files and flags are used when
16431         # linking a shared library.
16432         #
16433         # There doesn't appear to be a way to prevent this compiler from
16434         # explicitly linking system object files so we need to strip them
16435         # from the output so that they don't get included in the library
16436         # dependencies.
16437         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'
16438         ;;
16439       *)
16440         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16441           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16442           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'
16443
16444           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16445           hardcode_libdir_separator_CXX=:
16446
16447           # Commands to make compiler produce verbose output that lists
16448           # what "hidden" libraries, object files and flags are used when
16449           # linking a shared library.
16450           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16451
16452         else
16453           # FIXME: insert proper C++ library support
16454           ld_shlibs_CXX=no
16455         fi
16456         ;;
16457     esac
16458     ;;
16459   osf4* | osf5*)
16460     case $cc_basename in
16461       KCC)
16462         # Kuck and Associates, Inc. (KAI) C++ Compiler
16463
16464         # KCC will only create a shared library if the output file
16465         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16466         # to its proper name (with version) after linking.
16467         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'
16468
16469         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16470         hardcode_libdir_separator_CXX=:
16471
16472         # Archives containing C++ object files must be created using
16473         # the KAI C++ compiler.
16474         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16475         ;;
16476       RCC)
16477         # Rational C++ 2.4.1
16478         # FIXME: insert proper C++ library support
16479         ld_shlibs_CXX=no
16480         ;;
16481       cxx)
16482         allow_undefined_flag_CXX=' -expect_unresolved \*'
16483         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'
16484         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16485           echo "-hidden">> $lib.exp~
16486           $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~
16487           $rm $lib.exp'
16488
16489         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16490         hardcode_libdir_separator_CXX=:
16491
16492         # Commands to make compiler produce verbose output that lists
16493         # what "hidden" libraries, object files and flags are used when
16494         # linking a shared library.
16495         #
16496         # There doesn't appear to be a way to prevent this compiler from
16497         # explicitly linking system object files so we need to strip them
16498         # from the output so that they don't get included in the library
16499         # dependencies.
16500         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'
16501         ;;
16502       *)
16503         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16504           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16505          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'
16506
16507           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16508           hardcode_libdir_separator_CXX=:
16509
16510           # Commands to make compiler produce verbose output that lists
16511           # what "hidden" libraries, object files and flags are used when
16512           # linking a shared library.
16513           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16514
16515         else
16516           # FIXME: insert proper C++ library support
16517           ld_shlibs_CXX=no
16518         fi
16519         ;;
16520     esac
16521     ;;
16522   psos*)
16523     # FIXME: insert proper C++ library support
16524     ld_shlibs_CXX=no
16525     ;;
16526   sco*)
16527     archive_cmds_need_lc_CXX=no
16528     case $cc_basename in
16529       CC)
16530         # FIXME: insert proper C++ library support
16531         ld_shlibs_CXX=no
16532         ;;
16533       *)
16534         # FIXME: insert proper C++ library support
16535         ld_shlibs_CXX=no
16536         ;;
16537     esac
16538     ;;
16539   sunos4*)
16540     case $cc_basename in
16541       CC)
16542         # Sun C++ 4.x
16543         # FIXME: insert proper C++ library support
16544         ld_shlibs_CXX=no
16545         ;;
16546       lcc)
16547         # Lucid
16548         # FIXME: insert proper C++ library support
16549         ld_shlibs_CXX=no
16550         ;;
16551       *)
16552         # FIXME: insert proper C++ library support
16553         ld_shlibs_CXX=no
16554         ;;
16555     esac
16556     ;;
16557   solaris*)
16558     case $cc_basename in
16559       CC)
16560         # Sun C++ 4.2, 5.x and Centerline C++
16561         no_undefined_flag_CXX=' -zdefs'
16562         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16563         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16564         $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'
16565
16566         hardcode_libdir_flag_spec_CXX='-R$libdir'
16567         hardcode_shlibpath_var_CXX=no
16568         case $host_os in
16569           solaris2.0-5 | solaris2.0-5.*) ;;
16570           *)
16571             # The C++ compiler is used as linker so we must use $wl
16572             # flag to pass the commands to the underlying system
16573             # linker.
16574             # Supported since Solaris 2.6 (maybe 2.5.1?)
16575             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16576             ;;
16577         esac
16578         link_all_deplibs_CXX=yes
16579
16580         # Commands to make compiler produce verbose output that lists
16581         # what "hidden" libraries, object files and flags are used when
16582         # linking a shared library.
16583         #
16584         # There doesn't appear to be a way to prevent this compiler from
16585         # explicitly linking system object files so we need to strip them
16586         # from the output so that they don't get included in the library
16587         # dependencies.
16588         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'
16589
16590         # Archives containing C++ object files must be created using
16591         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16592         # necessary to make sure instantiated templates are included
16593         # in the archive.
16594         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16595         ;;
16596       gcx)
16597         # Green Hills C++ Compiler
16598         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16599
16600         # The C++ compiler must be used to create the archive.
16601         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16602         ;;
16603       *)
16604         # GNU C++ compiler with Solaris linker
16605         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16606           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16607           if $CC --version | grep -v '^2\.7' > /dev/null; then
16608             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16609             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16610                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16611
16612             # Commands to make compiler produce verbose output that lists
16613             # what "hidden" libraries, object files and flags are used when
16614             # linking a shared library.
16615             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16616           else
16617             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16618             # platform.
16619             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16620             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16621                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16622
16623             # Commands to make compiler produce verbose output that lists
16624             # what "hidden" libraries, object files and flags are used when
16625             # linking a shared library.
16626             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16627           fi
16628
16629           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16630         fi
16631         ;;
16632     esac
16633     ;;
16634   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16635     archive_cmds_need_lc_CXX=no
16636     ;;
16637   tandem*)
16638     case $cc_basename in
16639       NCC)
16640         # NonStop-UX NCC 3.20
16641         # FIXME: insert proper C++ library support
16642         ld_shlibs_CXX=no
16643         ;;
16644       *)
16645         # FIXME: insert proper C++ library support
16646         ld_shlibs_CXX=no
16647         ;;
16648     esac
16649     ;;
16650   vxworks*)
16651     # FIXME: insert proper C++ library support
16652     ld_shlibs_CXX=no
16653     ;;
16654   *)
16655     # FIXME: insert proper C++ library support
16656     ld_shlibs_CXX=no
16657     ;;
16658 esac
16659 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16660 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16661 test "$ld_shlibs_CXX" = no && can_build_shared=no
16662
16663 GCC_CXX="$GXX"
16664 LD_CXX="$LD"
16665
16666
16667 cat > conftest.$ac_ext <<EOF
16668 class Foo
16669 {
16670 public:
16671   Foo (void) { a = 0; }
16672 private:
16673   int a;
16674 };
16675 EOF
16676
16677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16678   (eval $ac_compile) 2>&5
16679   ac_status=$?
16680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681   (exit $ac_status); }; then
16682   # Parse the compiler output and extract the necessary
16683   # objects, libraries and library flags.
16684
16685   # Sentinel used to keep track of whether or not we are before
16686   # the conftest object file.
16687   pre_test_object_deps_done=no
16688
16689   # The `*' in the case matches for architectures that use `case' in
16690   # $output_verbose_cmd can trigger glob expansion during the loop
16691   # eval without this substitution.
16692   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16693
16694   for p in `eval $output_verbose_link_cmd`; do
16695     case $p in
16696
16697     -L* | -R* | -l*)
16698        # Some compilers place space between "-{L,R}" and the path.
16699        # Remove the space.
16700        if test $p = "-L" \
16701           || test $p = "-R"; then
16702          prev=$p
16703          continue
16704        else
16705          prev=
16706        fi
16707
16708        if test "$pre_test_object_deps_done" = no; then
16709          case $p in
16710          -L* | -R*)
16711            # Internal compiler library paths should come after those
16712            # provided the user.  The postdeps already come after the
16713            # user supplied libs so there is no need to process them.
16714            if test -z "$compiler_lib_search_path_CXX"; then
16715              compiler_lib_search_path_CXX="${prev}${p}"
16716            else
16717              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16718            fi
16719            ;;
16720          # The "-l" case would never come before the object being
16721          # linked, so don't bother handling this case.
16722          esac
16723        else
16724          if test -z "$postdeps_CXX"; then
16725            postdeps_CXX="${prev}${p}"
16726          else
16727            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16728          fi
16729        fi
16730        ;;
16731
16732     *.$objext)
16733        # This assumes that the test object file only shows up
16734        # once in the compiler output.
16735        if test "$p" = "conftest.$objext"; then
16736          pre_test_object_deps_done=yes
16737          continue
16738        fi
16739
16740        if test "$pre_test_object_deps_done" = no; then
16741          if test -z "$predep_objects_CXX"; then
16742            predep_objects_CXX="$p"
16743          else
16744            predep_objects_CXX="$predep_objects_CXX $p"
16745          fi
16746        else
16747          if test -z "$postdep_objects_CXX"; then
16748            postdep_objects_CXX="$p"
16749          else
16750            postdep_objects_CXX="$postdep_objects_CXX $p"
16751          fi
16752        fi
16753        ;;
16754
16755     *) ;; # Ignore the rest.
16756
16757     esac
16758   done
16759
16760   # Clean up.
16761   rm -f a.out a.exe
16762 else
16763   echo "libtool.m4: error: problem compiling CXX test program"
16764 fi
16765
16766 $rm -f confest.$objext
16767
16768 case " $postdeps_CXX " in
16769 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16770 esac
16771
16772 lt_prog_compiler_wl_CXX=
16773 lt_prog_compiler_pic_CXX=
16774 lt_prog_compiler_static_CXX=
16775
16776 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16777 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16778
16779   # C++ specific cases for pic, static, wl, etc.
16780   if test "$GXX" = yes; then
16781     lt_prog_compiler_wl_CXX='-Wl,'
16782     lt_prog_compiler_static_CXX='-static'
16783
16784     case $host_os in
16785     aix*)
16786       # All AIX code is PIC.
16787       if test "$host_cpu" = ia64; then
16788         # AIX 5 now supports IA64 processor
16789         lt_prog_compiler_static_CXX='-Bstatic'
16790       fi
16791       ;;
16792     amigaos*)
16793       # FIXME: we need at least 68020 code to build shared libraries, but
16794       # adding the `-m68020' flag to GCC prevents building anything better,
16795       # like `-m68040'.
16796       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16797       ;;
16798     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16799       # PIC is the default for these OSes.
16800       ;;
16801     mingw* | os2* | pw32*)
16802       # This hack is so that the source file can tell whether it is being
16803       # built for inclusion in a dll (and should export symbols for example).
16804       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16805       ;;
16806     darwin* | rhapsody*)
16807       # PIC is the default on this platform
16808       # Common symbols not allowed in MH_DYLIB files
16809       lt_prog_compiler_pic_CXX='-fno-common'
16810       ;;
16811     *djgpp*)
16812       # DJGPP does not support shared libraries at all
16813       lt_prog_compiler_pic_CXX=
16814       ;;
16815     sysv4*MP*)
16816       if test -d /usr/nec; then
16817         lt_prog_compiler_pic_CXX=-Kconform_pic
16818       fi
16819       ;;
16820     hpux*)
16821       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16822       # not for PA HP-UX.
16823       case "$host_cpu" in
16824       hppa*64*|ia64*)
16825         ;;
16826       *)
16827         lt_prog_compiler_pic_CXX='-fPIC'
16828         ;;
16829       esac
16830       ;;
16831     *)
16832       lt_prog_compiler_pic_CXX='-fPIC'
16833       ;;
16834     esac
16835   else
16836     case $host_os in
16837       aix4* | aix5*)
16838         # All AIX code is PIC.
16839         if test "$host_cpu" = ia64; then
16840           # AIX 5 now supports IA64 processor
16841           lt_prog_compiler_static_CXX='-Bstatic'
16842         else
16843           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16844         fi
16845         ;;
16846       chorus*)
16847         case $cc_basename in
16848         cxch68)
16849           # Green Hills C++ Compiler
16850           # _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"
16851           ;;
16852         esac
16853         ;;
16854        darwin*)
16855          # PIC is the default on this platform
16856          # Common symbols not allowed in MH_DYLIB files
16857          case "$cc_basename" in
16858            xlc*)
16859            lt_prog_compiler_pic_CXX='-qnocommon'
16860            lt_prog_compiler_wl_CXX='-Wl,'
16861            ;;
16862          esac
16863        ;;
16864       dgux*)
16865         case $cc_basename in
16866           ec++)
16867             lt_prog_compiler_pic_CXX='-KPIC'
16868             ;;
16869           ghcx)
16870             # Green Hills C++ Compiler
16871             lt_prog_compiler_pic_CXX='-pic'
16872             ;;
16873           *)
16874             ;;
16875         esac
16876         ;;
16877       freebsd* | kfreebsd*-gnu)
16878         # FreeBSD uses GNU C++
16879         ;;
16880       hpux9* | hpux10* | hpux11*)
16881         case $cc_basename in
16882           CC)
16883             lt_prog_compiler_wl_CXX='-Wl,'
16884             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16885             if test "$host_cpu" != ia64; then
16886               lt_prog_compiler_pic_CXX='+Z'
16887             fi
16888             ;;
16889           aCC)
16890             lt_prog_compiler_wl_CXX='-Wl,'
16891             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16892             case "$host_cpu" in
16893             hppa*64*|ia64*)
16894               # +Z the default
16895               ;;
16896             *)
16897               lt_prog_compiler_pic_CXX='+Z'
16898               ;;
16899             esac
16900             ;;
16901           *)
16902             ;;
16903         esac
16904         ;;
16905       irix5* | irix6* | nonstopux*)
16906         case $cc_basename in
16907           CC)
16908             lt_prog_compiler_wl_CXX='-Wl,'
16909             lt_prog_compiler_static_CXX='-non_shared'
16910             # CC pic flag -KPIC is the default.
16911             ;;
16912           *)
16913             ;;
16914         esac
16915         ;;
16916       linux*)
16917         case $cc_basename in
16918           KCC)
16919             # KAI C++ Compiler
16920             lt_prog_compiler_wl_CXX='--backend -Wl,'
16921             lt_prog_compiler_pic_CXX='-fPIC'
16922             ;;
16923           icpc)
16924             # Intel C++
16925             lt_prog_compiler_wl_CXX='-Wl,'
16926             lt_prog_compiler_pic_CXX='-KPIC'
16927             lt_prog_compiler_static_CXX='-static'
16928             ;;
16929           cxx)
16930             # Compaq C++
16931             # Make sure the PIC flag is empty.  It appears that all Alpha
16932             # Linux and Compaq Tru64 Unix objects are PIC.
16933             lt_prog_compiler_pic_CXX=
16934             lt_prog_compiler_static_CXX='-non_shared'
16935             ;;
16936           *)
16937             ;;
16938         esac
16939         ;;
16940       lynxos*)
16941         ;;
16942       m88k*)
16943         ;;
16944       mvs*)
16945         case $cc_basename in
16946           cxx)
16947             lt_prog_compiler_pic_CXX='-W c,exportall'
16948             ;;
16949           *)
16950             ;;
16951         esac
16952         ;;
16953       netbsd*)
16954         ;;
16955       osf3* | osf4* | osf5*)
16956         case $cc_basename in
16957           KCC)
16958             lt_prog_compiler_wl_CXX='--backend -Wl,'
16959             ;;
16960           RCC)
16961             # Rational C++ 2.4.1
16962             lt_prog_compiler_pic_CXX='-pic'
16963             ;;
16964           cxx)
16965             # Digital/Compaq C++
16966             lt_prog_compiler_wl_CXX='-Wl,'
16967             # Make sure the PIC flag is empty.  It appears that all Alpha
16968             # Linux and Compaq Tru64 Unix objects are PIC.
16969             lt_prog_compiler_pic_CXX=
16970             lt_prog_compiler_static_CXX='-non_shared'
16971             ;;
16972           *)
16973             ;;
16974         esac
16975         ;;
16976       psos*)
16977         ;;
16978       sco*)
16979         case $cc_basename in
16980           CC)
16981             lt_prog_compiler_pic_CXX='-fPIC'
16982             ;;
16983           *)
16984             ;;
16985         esac
16986         ;;
16987       solaris*)
16988         case $cc_basename in
16989           CC)
16990             # Sun C++ 4.2, 5.x and Centerline C++
16991             lt_prog_compiler_pic_CXX='-KPIC'
16992             lt_prog_compiler_static_CXX='-Bstatic'
16993             lt_prog_compiler_wl_CXX='-Qoption ld '
16994             ;;
16995           gcx)
16996             # Green Hills C++ Compiler
16997             lt_prog_compiler_pic_CXX='-PIC'
16998             ;;
16999           *)
17000             ;;
17001         esac
17002         ;;
17003       sunos4*)
17004         case $cc_basename in
17005           CC)
17006             # Sun C++ 4.x
17007             lt_prog_compiler_pic_CXX='-pic'
17008             lt_prog_compiler_static_CXX='-Bstatic'
17009             ;;
17010           lcc)
17011             # Lucid
17012             lt_prog_compiler_pic_CXX='-pic'
17013             ;;
17014           *)
17015             ;;
17016         esac
17017         ;;
17018       tandem*)
17019         case $cc_basename in
17020           NCC)
17021             # NonStop-UX NCC 3.20
17022             lt_prog_compiler_pic_CXX='-KPIC'
17023             ;;
17024           *)
17025             ;;
17026         esac
17027         ;;
17028       unixware*)
17029         ;;
17030       vxworks*)
17031         ;;
17032       *)
17033         lt_prog_compiler_can_build_shared_CXX=no
17034         ;;
17035     esac
17036   fi
17037
17038 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
17039 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
17040
17041 #
17042 # Check to make sure the PIC flag actually works.
17043 #
17044 if test -n "$lt_prog_compiler_pic_CXX"; then
17045
17046 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17047 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
17048 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
17049   echo $ECHO_N "(cached) $ECHO_C" >&6
17050 else
17051   lt_prog_compiler_pic_works_CXX=no
17052   ac_outfile=conftest.$ac_objext
17053    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17054    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17055    # Insert the option either (1) after the last *FLAGS variable, or
17056    # (2) before a word containing "conftest.", or (3) at the end.
17057    # Note that $ac_compile itself does not contain backslashes and begins
17058    # with a dollar sign (not a hyphen), so the echo should work correctly.
17059    # The option is referenced via a variable to avoid confusing sed.
17060    lt_compile=`echo "$ac_compile" | $SED \
17061    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17062    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17063    -e 's:$: $lt_compiler_flag:'`
17064    (eval echo "\"\$as_me:17064: $lt_compile\"" >&5)
17065    (eval "$lt_compile" 2>conftest.err)
17066    ac_status=$?
17067    cat conftest.err >&5
17068    echo "$as_me:17068: \$? = $ac_status" >&5
17069    if (exit $ac_status) && test -s "$ac_outfile"; then
17070      # The compiler can only warn and ignore the option if not recognized
17071      # So say no if there are warnings
17072      if test ! -s conftest.err; then
17073        lt_prog_compiler_pic_works_CXX=yes
17074      fi
17075    fi
17076    $rm conftest*
17077
17078 fi
17079 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
17080 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
17081
17082 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
17083     case $lt_prog_compiler_pic_CXX in
17084      "" | " "*) ;;
17085      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17086      esac
17087 else
17088     lt_prog_compiler_pic_CXX=
17089      lt_prog_compiler_can_build_shared_CXX=no
17090 fi
17091
17092 fi
17093 case "$host_os" in
17094   # For platforms which do not support PIC, -DPIC is meaningless:
17095   *djgpp*)
17096     lt_prog_compiler_pic_CXX=
17097     ;;
17098   *)
17099     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17100     ;;
17101 esac
17102
17103 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17104 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17105 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17106   echo $ECHO_N "(cached) $ECHO_C" >&6
17107 else
17108   lt_cv_prog_compiler_c_o_CXX=no
17109    $rm -r conftest 2>/dev/null
17110    mkdir conftest
17111    cd conftest
17112    mkdir out
17113    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17114
17115    lt_compiler_flag="-o out/conftest2.$ac_objext"
17116    # Insert the option either (1) after the last *FLAGS variable, or
17117    # (2) before a word containing "conftest.", or (3) at the end.
17118    # Note that $ac_compile itself does not contain backslashes and begins
17119    # with a dollar sign (not a hyphen), so the echo should work correctly.
17120    lt_compile=`echo "$ac_compile" | $SED \
17121    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17122    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17123    -e 's:$: $lt_compiler_flag:'`
17124    (eval echo "\"\$as_me:17124: $lt_compile\"" >&5)
17125    (eval "$lt_compile" 2>out/conftest.err)
17126    ac_status=$?
17127    cat out/conftest.err >&5
17128    echo "$as_me:17128: \$? = $ac_status" >&5
17129    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17130    then
17131      # The compiler can only warn and ignore the option if not recognized
17132      # So say no if there are warnings
17133      if test ! -s out/conftest.err; then
17134        lt_cv_prog_compiler_c_o_CXX=yes
17135      fi
17136    fi
17137    chmod u+w .
17138    $rm conftest*
17139    # SGI C++ compiler will create directory out/ii_files/ for
17140    # template instantiation
17141    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17142    $rm out/* && rmdir out
17143    cd ..
17144    rmdir conftest
17145    $rm conftest*
17146
17147 fi
17148 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17149 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
17150
17151
17152 hard_links="nottested"
17153 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17154   # do not overwrite the value of need_locks provided by the user
17155   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17156 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17157   hard_links=yes
17158   $rm conftest*
17159   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17160   touch conftest.a
17161   ln conftest.a conftest.b 2>&5 || hard_links=no
17162   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17163   echo "$as_me:$LINENO: result: $hard_links" >&5
17164 echo "${ECHO_T}$hard_links" >&6
17165   if test "$hard_links" = no; then
17166     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17167 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17168     need_locks=warn
17169   fi
17170 else
17171   need_locks=no
17172 fi
17173
17174 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17175 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17176
17177   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17178   case $host_os in
17179   aix4* | aix5*)
17180     # If we're using GNU nm, then we don't want the "-C" option.
17181     # -C means demangle to AIX nm, but means don't demangle with GNU nm
17182     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17183       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'
17184     else
17185       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'
17186     fi
17187     ;;
17188   pw32*)
17189     export_symbols_cmds_CXX="$ltdll_cmds"
17190   ;;
17191   cygwin* | mingw*)
17192     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17193   ;;
17194   *)
17195     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17196   ;;
17197   esac
17198
17199 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17200 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17201 test "$ld_shlibs_CXX" = no && can_build_shared=no
17202
17203 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17204 if test "$GCC" = yes; then
17205   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17206 fi
17207
17208 #
17209 # Do we need to explicitly link libc?
17210 #
17211 case "x$archive_cmds_need_lc_CXX" in
17212 x|xyes)
17213   # Assume -lc should be added
17214   archive_cmds_need_lc_CXX=yes
17215
17216   if test "$enable_shared" = yes && test "$GCC" = yes; then
17217     case $archive_cmds_CXX in
17218     *'~'*)
17219       # FIXME: we may have to deal with multi-command sequences.
17220       ;;
17221     '$CC '*)
17222       # Test whether the compiler implicitly links with -lc since on some
17223       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17224       # to ld, don't add -lc before -lgcc.
17225       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17226 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17227       $rm conftest*
17228       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17229
17230       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17231   (eval $ac_compile) 2>&5
17232   ac_status=$?
17233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234   (exit $ac_status); } 2>conftest.err; then
17235         soname=conftest
17236         lib=conftest
17237         libobjs=conftest.$ac_objext
17238         deplibs=
17239         wl=$lt_prog_compiler_wl_CXX
17240         compiler_flags=-v
17241         linker_flags=-v
17242         verstring=
17243         output_objdir=.
17244         libname=conftest
17245         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17246         allow_undefined_flag_CXX=
17247         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17248   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17249   ac_status=$?
17250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251   (exit $ac_status); }
17252         then
17253           archive_cmds_need_lc_CXX=no
17254         else
17255           archive_cmds_need_lc_CXX=yes
17256         fi
17257         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17258       else
17259         cat conftest.err 1>&5
17260       fi
17261       $rm conftest*
17262       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17263 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17264       ;;
17265     esac
17266   fi
17267   ;;
17268 esac
17269
17270 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17271 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17272 library_names_spec=
17273 libname_spec='lib$name'
17274 soname_spec=
17275 shrext_cmds=".so"
17276 postinstall_cmds=
17277 postuninstall_cmds=
17278 finish_cmds=
17279 finish_eval=
17280 shlibpath_var=
17281 shlibpath_overrides_runpath=unknown
17282 version_type=none
17283 dynamic_linker="$host_os ld.so"
17284 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17285 if test "$GCC" = yes; then
17286   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17287   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17288     # if the path contains ";" then we assume it to be the separator
17289     # otherwise default to the standard path separator (i.e. ":") - it is
17290     # assumed that no part of a normal pathname contains ";" but that should
17291     # okay in the real world where ";" in dirpaths is itself problematic.
17292     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17293   else
17294     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17295   fi
17296 else
17297   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17298 fi
17299 need_lib_prefix=unknown
17300 hardcode_into_libs=no
17301
17302 # when you set need_version to no, make sure it does not cause -set_version
17303 # flags to be left without arguments
17304 need_version=unknown
17305
17306 case $host_os in
17307 aix3*)
17308   version_type=linux
17309   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17310   shlibpath_var=LIBPATH
17311
17312   # AIX 3 has no versioning support, so we append a major version to the name.
17313   soname_spec='${libname}${release}${shared_ext}$major'
17314   ;;
17315
17316 aix4* | aix5*)
17317   version_type=linux
17318   need_lib_prefix=no
17319   need_version=no
17320   hardcode_into_libs=yes
17321   if test "$host_cpu" = ia64; then
17322     # AIX 5 supports IA64
17323     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17324     shlibpath_var=LD_LIBRARY_PATH
17325   else
17326     # With GCC up to 2.95.x, collect2 would create an import file
17327     # for dependence libraries.  The import file would start with
17328     # the line `#! .'.  This would cause the generated library to
17329     # depend on `.', always an invalid library.  This was fixed in
17330     # development snapshots of GCC prior to 3.0.
17331     case $host_os in
17332       aix4 | aix4.[01] | aix4.[01].*)
17333       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17334            echo ' yes '
17335            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17336         :
17337       else
17338         can_build_shared=no
17339       fi
17340       ;;
17341     esac
17342     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17343     # soname into executable. Probably we can add versioning support to
17344     # collect2, so additional links can be useful in future.
17345     if test "$aix_use_runtimelinking" = yes; then
17346       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17347       # instead of lib<name>.a to let people know that these are not
17348       # typical AIX shared libraries.
17349       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17350     else
17351       # We preserve .a as extension for shared libraries through AIX4.2
17352       # and later when we are not doing run time linking.
17353       library_names_spec='${libname}${release}.a $libname.a'
17354       soname_spec='${libname}${release}${shared_ext}$major'
17355     fi
17356     shlibpath_var=LIBPATH
17357   fi
17358   ;;
17359
17360 amigaos*)
17361   library_names_spec='$libname.ixlibrary $libname.a'
17362   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17363   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'
17364   ;;
17365
17366 beos*)
17367   library_names_spec='${libname}${shared_ext}'
17368   dynamic_linker="$host_os ld.so"
17369   shlibpath_var=LIBRARY_PATH
17370   ;;
17371
17372 bsdi[45]*)
17373   version_type=linux
17374   need_version=no
17375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17376   soname_spec='${libname}${release}${shared_ext}$major'
17377   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17378   shlibpath_var=LD_LIBRARY_PATH
17379   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17380   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17381   # the default ld.so.conf also contains /usr/contrib/lib and
17382   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17383   # libtool to hard-code these into programs
17384   ;;
17385
17386 cygwin* | mingw* | pw32*)
17387   version_type=windows
17388   shrext_cmds=".dll"
17389   need_version=no
17390   need_lib_prefix=no
17391
17392   case $GCC,$host_os in
17393   yes,cygwin* | yes,mingw* | yes,pw32*)
17394     library_names_spec='$libname.dll.a'
17395     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17396     postinstall_cmds='base_file=`basename \${file}`~
17397       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17398       dldir=$destdir/`dirname \$dlpath`~
17399       test -d \$dldir || mkdir -p \$dldir~
17400       $install_prog $dir/$dlname \$dldir/$dlname'
17401     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17402       dlpath=$dir/\$dldll~
17403        $rm \$dlpath'
17404     shlibpath_overrides_runpath=yes
17405
17406     case $host_os in
17407     cygwin*)
17408       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17409       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17410       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17411       ;;
17412     mingw*)
17413       # MinGW DLLs use traditional 'lib' prefix
17414       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17415       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17416       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17417         # It is most probably a Windows format PATH printed by
17418         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17419         # path with ; separators, and with drive letters. We can handle the
17420         # drive letters (cygwin fileutils understands them), so leave them,
17421         # especially as we might pass files found there to a mingw objdump,
17422         # which wouldn't understand a cygwinified path. Ahh.
17423         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17424       else
17425         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17426       fi
17427       ;;
17428     pw32*)
17429       # pw32 DLLs use 'pw' prefix rather than 'lib'
17430       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17431       ;;
17432     esac
17433     ;;
17434
17435   *)
17436     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17437     ;;
17438   esac
17439   dynamic_linker='Win32 ld.exe'
17440   # FIXME: first we should search . and the directory the executable is in
17441   shlibpath_var=PATH
17442   ;;
17443
17444 darwin* | rhapsody*)
17445   dynamic_linker="$host_os dyld"
17446   version_type=darwin
17447   need_lib_prefix=no
17448   need_version=no
17449   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17450   soname_spec='${libname}${release}${major}$shared_ext'
17451   shlibpath_overrides_runpath=yes
17452   shlibpath_var=DYLD_LIBRARY_PATH
17453   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17454   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17455   if test "$GCC" = yes; then
17456     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"`
17457   else
17458     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17459   fi
17460   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17461   ;;
17462
17463 dgux*)
17464   version_type=linux
17465   need_lib_prefix=no
17466   need_version=no
17467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17468   soname_spec='${libname}${release}${shared_ext}$major'
17469   shlibpath_var=LD_LIBRARY_PATH
17470   ;;
17471
17472 freebsd1*)
17473   dynamic_linker=no
17474   ;;
17475
17476 kfreebsd*-gnu)
17477   version_type=linux
17478   need_lib_prefix=no
17479   need_version=no
17480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17481   soname_spec='${libname}${release}${shared_ext}$major'
17482   shlibpath_var=LD_LIBRARY_PATH
17483   shlibpath_overrides_runpath=no
17484   hardcode_into_libs=yes
17485   dynamic_linker='GNU ld.so'
17486   ;;
17487
17488 freebsd*)
17489   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17490   version_type=freebsd-$objformat
17491   case $version_type in
17492     freebsd-elf*)
17493       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17494       need_version=no
17495       need_lib_prefix=no
17496       ;;
17497     freebsd-*)
17498       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17499       need_version=yes
17500       ;;
17501   esac
17502   shlibpath_var=LD_LIBRARY_PATH
17503   case $host_os in
17504   freebsd2*)
17505     shlibpath_overrides_runpath=yes
17506     ;;
17507   freebsd3.01* | freebsdelf3.01*)
17508     shlibpath_overrides_runpath=yes
17509     hardcode_into_libs=yes
17510     ;;
17511   *) # from 3.2 on
17512     shlibpath_overrides_runpath=no
17513     hardcode_into_libs=yes
17514     ;;
17515   esac
17516   ;;
17517
17518 gnu*)
17519   version_type=linux
17520   need_lib_prefix=no
17521   need_version=no
17522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17523   soname_spec='${libname}${release}${shared_ext}$major'
17524   shlibpath_var=LD_LIBRARY_PATH
17525   hardcode_into_libs=yes
17526   ;;
17527
17528 hpux9* | hpux10* | hpux11*)
17529   # Give a soname corresponding to the major version so that dld.sl refuses to
17530   # link against other versions.
17531   version_type=sunos
17532   need_lib_prefix=no
17533   need_version=no
17534   case "$host_cpu" in
17535   ia64*)
17536     shrext_cmds='.so'
17537     hardcode_into_libs=yes
17538     dynamic_linker="$host_os dld.so"
17539     shlibpath_var=LD_LIBRARY_PATH
17540     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17541     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17542     soname_spec='${libname}${release}${shared_ext}$major'
17543     if test "X$HPUX_IA64_MODE" = X32; then
17544       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17545     else
17546       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17547     fi
17548     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17549     ;;
17550    hppa*64*)
17551      shrext_cmds='.sl'
17552      hardcode_into_libs=yes
17553      dynamic_linker="$host_os dld.sl"
17554      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17555      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17556      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17557      soname_spec='${libname}${release}${shared_ext}$major'
17558      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17559      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17560      ;;
17561    *)
17562     shrext_cmds='.sl'
17563     dynamic_linker="$host_os dld.sl"
17564     shlibpath_var=SHLIB_PATH
17565     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17566     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17567     soname_spec='${libname}${release}${shared_ext}$major'
17568     ;;
17569   esac
17570   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17571   postinstall_cmds='chmod 555 $lib'
17572   ;;
17573
17574 irix5* | irix6* | nonstopux*)
17575   case $host_os in
17576     nonstopux*) version_type=nonstopux ;;
17577     *)
17578         if test "$lt_cv_prog_gnu_ld" = yes; then
17579                 version_type=linux
17580         else
17581                 version_type=irix
17582         fi ;;
17583   esac
17584   need_lib_prefix=no
17585   need_version=no
17586   soname_spec='${libname}${release}${shared_ext}$major'
17587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17588   case $host_os in
17589   irix5* | nonstopux*)
17590     libsuff= shlibsuff=
17591     ;;
17592   *)
17593     case $LD in # libtool.m4 will add one of these switches to LD
17594     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17595       libsuff= shlibsuff= libmagic=32-bit;;
17596     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17597       libsuff=32 shlibsuff=N32 libmagic=N32;;
17598     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17599       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17600     *) libsuff= shlibsuff= libmagic=never-match;;
17601     esac
17602     ;;
17603   esac
17604   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17605   shlibpath_overrides_runpath=no
17606   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17607   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17608   hardcode_into_libs=yes
17609   ;;
17610
17611 # No shared lib support for Linux oldld, aout, or coff.
17612 linux*oldld* | linux*aout* | linux*coff*)
17613   dynamic_linker=no
17614   ;;
17615
17616 # This must be Linux ELF.
17617 linux*)
17618   version_type=linux
17619   need_lib_prefix=no
17620   need_version=no
17621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17622   soname_spec='${libname}${release}${shared_ext}$major'
17623   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17624   shlibpath_var=LD_LIBRARY_PATH
17625   shlibpath_overrides_runpath=no
17626   # This implies no fast_install, which is unacceptable.
17627   # Some rework will be needed to allow for fast_install
17628   # before this can be enabled.
17629   hardcode_into_libs=yes
17630
17631   # Append ld.so.conf contents to the search path
17632   if test -f /etc/ld.so.conf; then
17633     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17634     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17635   fi
17636
17637   # We used to test for /lib/ld.so.1 and disable shared libraries on
17638   # powerpc, because MkLinux only supported shared libraries with the
17639   # GNU dynamic linker.  Since this was broken with cross compilers,
17640   # most powerpc-linux boxes support dynamic linking these days and
17641   # people can always --disable-shared, the test was removed, and we
17642   # assume the GNU/Linux dynamic linker is in use.
17643   dynamic_linker='GNU/Linux ld.so'
17644   ;;
17645
17646 knetbsd*-gnu)
17647   version_type=linux
17648   need_lib_prefix=no
17649   need_version=no
17650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17651   soname_spec='${libname}${release}${shared_ext}$major'
17652   shlibpath_var=LD_LIBRARY_PATH
17653   shlibpath_overrides_runpath=no
17654   hardcode_into_libs=yes
17655   dynamic_linker='GNU ld.so'
17656   ;;
17657
17658 netbsd*)
17659   version_type=sunos
17660   need_lib_prefix=no
17661   need_version=no
17662   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17663     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17664     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17665     dynamic_linker='NetBSD (a.out) ld.so'
17666   else
17667     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17668     soname_spec='${libname}${release}${shared_ext}$major'
17669     dynamic_linker='NetBSD ld.elf_so'
17670   fi
17671   shlibpath_var=LD_LIBRARY_PATH
17672   shlibpath_overrides_runpath=yes
17673   hardcode_into_libs=yes
17674   ;;
17675
17676 newsos6)
17677   version_type=linux
17678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17679   shlibpath_var=LD_LIBRARY_PATH
17680   shlibpath_overrides_runpath=yes
17681   ;;
17682
17683 nto-qnx*)
17684   version_type=linux
17685   need_lib_prefix=no
17686   need_version=no
17687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17688   soname_spec='${libname}${release}${shared_ext}$major'
17689   shlibpath_var=LD_LIBRARY_PATH
17690   shlibpath_overrides_runpath=yes
17691   ;;
17692
17693 openbsd*)
17694   version_type=sunos
17695   need_lib_prefix=no
17696   need_version=no
17697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17698   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17699   shlibpath_var=LD_LIBRARY_PATH
17700   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17701     case $host_os in
17702       openbsd2.[89] | openbsd2.[89].*)
17703         shlibpath_overrides_runpath=no
17704         ;;
17705       *)
17706         shlibpath_overrides_runpath=yes
17707         ;;
17708       esac
17709   else
17710     shlibpath_overrides_runpath=yes
17711   fi
17712   ;;
17713
17714 os2*)
17715   libname_spec='$name'
17716   shrext_cmds=".dll"
17717   need_lib_prefix=no
17718   library_names_spec='$libname${shared_ext} $libname.a'
17719   dynamic_linker='OS/2 ld.exe'
17720   shlibpath_var=LIBPATH
17721   ;;
17722
17723 osf3* | osf4* | osf5*)
17724   version_type=osf
17725   need_lib_prefix=no
17726   need_version=no
17727   soname_spec='${libname}${release}${shared_ext}$major'
17728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17729   shlibpath_var=LD_LIBRARY_PATH
17730   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17731   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17732   ;;
17733
17734 sco3.2v5*)
17735   version_type=osf
17736   soname_spec='${libname}${release}${shared_ext}$major'
17737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17738   shlibpath_var=LD_LIBRARY_PATH
17739   ;;
17740
17741 solaris*)
17742   version_type=linux
17743   need_lib_prefix=no
17744   need_version=no
17745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17746   soname_spec='${libname}${release}${shared_ext}$major'
17747   shlibpath_var=LD_LIBRARY_PATH
17748   shlibpath_overrides_runpath=yes
17749   hardcode_into_libs=yes
17750   # ldd complains unless libraries are executable
17751   postinstall_cmds='chmod +x $lib'
17752   ;;
17753
17754 sunos4*)
17755   version_type=sunos
17756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17757   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17758   shlibpath_var=LD_LIBRARY_PATH
17759   shlibpath_overrides_runpath=yes
17760   if test "$with_gnu_ld" = yes; then
17761     need_lib_prefix=no
17762   fi
17763   need_version=yes
17764   ;;
17765
17766 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17767   version_type=linux
17768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17769   soname_spec='${libname}${release}${shared_ext}$major'
17770   shlibpath_var=LD_LIBRARY_PATH
17771   case $host_vendor in
17772     sni)
17773       shlibpath_overrides_runpath=no
17774       need_lib_prefix=no
17775       export_dynamic_flag_spec='${wl}-Blargedynsym'
17776       runpath_var=LD_RUN_PATH
17777       ;;
17778     siemens)
17779       need_lib_prefix=no
17780       ;;
17781     motorola)
17782       need_lib_prefix=no
17783       need_version=no
17784       shlibpath_overrides_runpath=no
17785       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17786       ;;
17787   esac
17788   ;;
17789
17790 sysv4*MP*)
17791   if test -d /usr/nec ;then
17792     version_type=linux
17793     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17794     soname_spec='$libname${shared_ext}.$major'
17795     shlibpath_var=LD_LIBRARY_PATH
17796   fi
17797   ;;
17798
17799 uts4*)
17800   version_type=linux
17801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17802   soname_spec='${libname}${release}${shared_ext}$major'
17803   shlibpath_var=LD_LIBRARY_PATH
17804   ;;
17805
17806 *)
17807   dynamic_linker=no
17808   ;;
17809 esac
17810 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17811 echo "${ECHO_T}$dynamic_linker" >&6
17812 test "$dynamic_linker" = no && can_build_shared=no
17813
17814 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17815 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17816 hardcode_action_CXX=
17817 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17818    test -n "$runpath_var_CXX" || \
17819    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17820
17821   # We can hardcode non-existant directories.
17822   if test "$hardcode_direct_CXX" != no &&
17823      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17824      # have to relink, otherwise we might link with an installed library
17825      # when we should be linking with a yet-to-be-installed one
17826      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17827      test "$hardcode_minus_L_CXX" != no; then
17828     # Linking always hardcodes the temporary library directory.
17829     hardcode_action_CXX=relink
17830   else
17831     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17832     hardcode_action_CXX=immediate
17833   fi
17834 else
17835   # We cannot hardcode anything, or else we can only hardcode existing
17836   # directories.
17837   hardcode_action_CXX=unsupported
17838 fi
17839 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17840 echo "${ECHO_T}$hardcode_action_CXX" >&6
17841
17842 if test "$hardcode_action_CXX" = relink; then
17843   # Fast installation is not supported
17844   enable_fast_install=no
17845 elif test "$shlibpath_overrides_runpath" = yes ||
17846      test "$enable_shared" = no; then
17847   # Fast installation is not necessary
17848   enable_fast_install=needless
17849 fi
17850
17851 striplib=
17852 old_striplib=
17853 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17854 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17855 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17856   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17857   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17858   echo "$as_me:$LINENO: result: yes" >&5
17859 echo "${ECHO_T}yes" >&6
17860 else
17861 # FIXME - insert some real tests, host_os isn't really good enough
17862   case $host_os in
17863    darwin*)
17864        if test -n "$STRIP" ; then
17865          striplib="$STRIP -x"
17866          echo "$as_me:$LINENO: result: yes" >&5
17867 echo "${ECHO_T}yes" >&6
17868        else
17869   echo "$as_me:$LINENO: result: no" >&5
17870 echo "${ECHO_T}no" >&6
17871 fi
17872        ;;
17873    *)
17874   echo "$as_me:$LINENO: result: no" >&5
17875 echo "${ECHO_T}no" >&6
17876     ;;
17877   esac
17878 fi
17879
17880 if test "x$enable_dlopen" != xyes; then
17881   enable_dlopen=unknown
17882   enable_dlopen_self=unknown
17883   enable_dlopen_self_static=unknown
17884 else
17885   lt_cv_dlopen=no
17886   lt_cv_dlopen_libs=
17887
17888   case $host_os in
17889   beos*)
17890     lt_cv_dlopen="load_add_on"
17891     lt_cv_dlopen_libs=
17892     lt_cv_dlopen_self=yes
17893     ;;
17894
17895   mingw* | pw32*)
17896     lt_cv_dlopen="LoadLibrary"
17897     lt_cv_dlopen_libs=
17898    ;;
17899
17900   cygwin*)
17901     lt_cv_dlopen="dlopen"
17902     lt_cv_dlopen_libs=
17903    ;;
17904
17905   darwin*)
17906   # if libdl is installed we need to link against it
17907     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17908 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17909 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17910   echo $ECHO_N "(cached) $ECHO_C" >&6
17911 else
17912   ac_check_lib_save_LIBS=$LIBS
17913 LIBS="-ldl  $LIBS"
17914 cat >conftest.$ac_ext <<_ACEOF
17915 /* confdefs.h.  */
17916 _ACEOF
17917 cat confdefs.h >>conftest.$ac_ext
17918 cat >>conftest.$ac_ext <<_ACEOF
17919 /* end confdefs.h.  */
17920
17921 /* Override any gcc2 internal prototype to avoid an error.  */
17922 #ifdef __cplusplus
17923 extern "C"
17924 #endif
17925 /* We use char because int might match the return type of a gcc2
17926    builtin and then its argument prototype would still apply.  */
17927 char dlopen ();
17928 int
17929 main ()
17930 {
17931 dlopen ();
17932   ;
17933   return 0;
17934 }
17935 _ACEOF
17936 rm -f conftest.$ac_objext conftest$ac_exeext
17937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17938   (eval $ac_link) 2>conftest.er1
17939   ac_status=$?
17940   grep -v '^ *+' conftest.er1 >conftest.err
17941   rm -f conftest.er1
17942   cat conftest.err >&5
17943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944   (exit $ac_status); } &&
17945          { ac_try='test -z "$ac_cxx_werror_flag"
17946                          || test ! -s conftest.err'
17947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948   (eval $ac_try) 2>&5
17949   ac_status=$?
17950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951   (exit $ac_status); }; } &&
17952          { ac_try='test -s conftest$ac_exeext'
17953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17954   (eval $ac_try) 2>&5
17955   ac_status=$?
17956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957   (exit $ac_status); }; }; then
17958   ac_cv_lib_dl_dlopen=yes
17959 else
17960   echo "$as_me: failed program was:" >&5
17961 sed 's/^/| /' conftest.$ac_ext >&5
17962
17963 ac_cv_lib_dl_dlopen=no
17964 fi
17965 rm -f conftest.err conftest.$ac_objext \
17966       conftest$ac_exeext conftest.$ac_ext
17967 LIBS=$ac_check_lib_save_LIBS
17968 fi
17969 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17970 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17971 if test $ac_cv_lib_dl_dlopen = yes; then
17972   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17973 else
17974
17975     lt_cv_dlopen="dyld"
17976     lt_cv_dlopen_libs=
17977     lt_cv_dlopen_self=yes
17978
17979 fi
17980
17981    ;;
17982
17983   *)
17984     echo "$as_me:$LINENO: checking for shl_load" >&5
17985 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17986 if test "${ac_cv_func_shl_load+set}" = set; then
17987   echo $ECHO_N "(cached) $ECHO_C" >&6
17988 else
17989   cat >conftest.$ac_ext <<_ACEOF
17990 /* confdefs.h.  */
17991 _ACEOF
17992 cat confdefs.h >>conftest.$ac_ext
17993 cat >>conftest.$ac_ext <<_ACEOF
17994 /* end confdefs.h.  */
17995 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17996    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17997 #define shl_load innocuous_shl_load
17998
17999 /* System header to define __stub macros and hopefully few prototypes,
18000     which can conflict with char shl_load (); below.
18001     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18002     <limits.h> exists even on freestanding compilers.  */
18003
18004 #ifdef __STDC__
18005 # include <limits.h>
18006 #else
18007 # include <assert.h>
18008 #endif
18009
18010 #undef shl_load
18011
18012 /* Override any gcc2 internal prototype to avoid an error.  */
18013 #ifdef __cplusplus
18014 extern "C"
18015 {
18016 #endif
18017 /* We use char because int might match the return type of a gcc2
18018    builtin and then its argument prototype would still apply.  */
18019 char shl_load ();
18020 /* The GNU C library defines this for functions which it implements
18021     to always fail with ENOSYS.  Some functions are actually named
18022     something starting with __ and the normal name is an alias.  */
18023 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18024 choke me
18025 #else
18026 char (*f) () = shl_load;
18027 #endif
18028 #ifdef __cplusplus
18029 }
18030 #endif
18031
18032 int
18033 main ()
18034 {
18035 return f != shl_load;
18036   ;
18037   return 0;
18038 }
18039 _ACEOF
18040 rm -f conftest.$ac_objext conftest$ac_exeext
18041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18042   (eval $ac_link) 2>conftest.er1
18043   ac_status=$?
18044   grep -v '^ *+' conftest.er1 >conftest.err
18045   rm -f conftest.er1
18046   cat conftest.err >&5
18047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048   (exit $ac_status); } &&
18049          { ac_try='test -z "$ac_cxx_werror_flag"
18050                          || test ! -s conftest.err'
18051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052   (eval $ac_try) 2>&5
18053   ac_status=$?
18054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055   (exit $ac_status); }; } &&
18056          { ac_try='test -s conftest$ac_exeext'
18057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18058   (eval $ac_try) 2>&5
18059   ac_status=$?
18060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061   (exit $ac_status); }; }; then
18062   ac_cv_func_shl_load=yes
18063 else
18064   echo "$as_me: failed program was:" >&5
18065 sed 's/^/| /' conftest.$ac_ext >&5
18066
18067 ac_cv_func_shl_load=no
18068 fi
18069 rm -f conftest.err conftest.$ac_objext \
18070       conftest$ac_exeext conftest.$ac_ext
18071 fi
18072 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18073 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18074 if test $ac_cv_func_shl_load = yes; then
18075   lt_cv_dlopen="shl_load"
18076 else
18077   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18078 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18079 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18080   echo $ECHO_N "(cached) $ECHO_C" >&6
18081 else
18082   ac_check_lib_save_LIBS=$LIBS
18083 LIBS="-ldld  $LIBS"
18084 cat >conftest.$ac_ext <<_ACEOF
18085 /* confdefs.h.  */
18086 _ACEOF
18087 cat confdefs.h >>conftest.$ac_ext
18088 cat >>conftest.$ac_ext <<_ACEOF
18089 /* end confdefs.h.  */
18090
18091 /* Override any gcc2 internal prototype to avoid an error.  */
18092 #ifdef __cplusplus
18093 extern "C"
18094 #endif
18095 /* We use char because int might match the return type of a gcc2
18096    builtin and then its argument prototype would still apply.  */
18097 char shl_load ();
18098 int
18099 main ()
18100 {
18101 shl_load ();
18102   ;
18103   return 0;
18104 }
18105 _ACEOF
18106 rm -f conftest.$ac_objext conftest$ac_exeext
18107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18108   (eval $ac_link) 2>conftest.er1
18109   ac_status=$?
18110   grep -v '^ *+' conftest.er1 >conftest.err
18111   rm -f conftest.er1
18112   cat conftest.err >&5
18113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114   (exit $ac_status); } &&
18115          { ac_try='test -z "$ac_cxx_werror_flag"
18116                          || test ! -s conftest.err'
18117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118   (eval $ac_try) 2>&5
18119   ac_status=$?
18120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121   (exit $ac_status); }; } &&
18122          { ac_try='test -s conftest$ac_exeext'
18123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124   (eval $ac_try) 2>&5
18125   ac_status=$?
18126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127   (exit $ac_status); }; }; then
18128   ac_cv_lib_dld_shl_load=yes
18129 else
18130   echo "$as_me: failed program was:" >&5
18131 sed 's/^/| /' conftest.$ac_ext >&5
18132
18133 ac_cv_lib_dld_shl_load=no
18134 fi
18135 rm -f conftest.err conftest.$ac_objext \
18136       conftest$ac_exeext conftest.$ac_ext
18137 LIBS=$ac_check_lib_save_LIBS
18138 fi
18139 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18140 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18141 if test $ac_cv_lib_dld_shl_load = yes; then
18142   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18143 else
18144   echo "$as_me:$LINENO: checking for dlopen" >&5
18145 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18146 if test "${ac_cv_func_dlopen+set}" = set; then
18147   echo $ECHO_N "(cached) $ECHO_C" >&6
18148 else
18149   cat >conftest.$ac_ext <<_ACEOF
18150 /* confdefs.h.  */
18151 _ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h.  */
18155 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18156    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18157 #define dlopen innocuous_dlopen
18158
18159 /* System header to define __stub macros and hopefully few prototypes,
18160     which can conflict with char dlopen (); below.
18161     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18162     <limits.h> exists even on freestanding compilers.  */
18163
18164 #ifdef __STDC__
18165 # include <limits.h>
18166 #else
18167 # include <assert.h>
18168 #endif
18169
18170 #undef dlopen
18171
18172 /* Override any gcc2 internal prototype to avoid an error.  */
18173 #ifdef __cplusplus
18174 extern "C"
18175 {
18176 #endif
18177 /* We use char because int might match the return type of a gcc2
18178    builtin and then its argument prototype would still apply.  */
18179 char dlopen ();
18180 /* The GNU C library defines this for functions which it implements
18181     to always fail with ENOSYS.  Some functions are actually named
18182     something starting with __ and the normal name is an alias.  */
18183 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18184 choke me
18185 #else
18186 char (*f) () = dlopen;
18187 #endif
18188 #ifdef __cplusplus
18189 }
18190 #endif
18191
18192 int
18193 main ()
18194 {
18195 return f != dlopen;
18196   ;
18197   return 0;
18198 }
18199 _ACEOF
18200 rm -f conftest.$ac_objext conftest$ac_exeext
18201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18202   (eval $ac_link) 2>conftest.er1
18203   ac_status=$?
18204   grep -v '^ *+' conftest.er1 >conftest.err
18205   rm -f conftest.er1
18206   cat conftest.err >&5
18207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208   (exit $ac_status); } &&
18209          { ac_try='test -z "$ac_cxx_werror_flag"
18210                          || test ! -s conftest.err'
18211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212   (eval $ac_try) 2>&5
18213   ac_status=$?
18214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215   (exit $ac_status); }; } &&
18216          { ac_try='test -s conftest$ac_exeext'
18217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218   (eval $ac_try) 2>&5
18219   ac_status=$?
18220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221   (exit $ac_status); }; }; then
18222   ac_cv_func_dlopen=yes
18223 else
18224   echo "$as_me: failed program was:" >&5
18225 sed 's/^/| /' conftest.$ac_ext >&5
18226
18227 ac_cv_func_dlopen=no
18228 fi
18229 rm -f conftest.err conftest.$ac_objext \
18230       conftest$ac_exeext conftest.$ac_ext
18231 fi
18232 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18233 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18234 if test $ac_cv_func_dlopen = yes; then
18235   lt_cv_dlopen="dlopen"
18236 else
18237   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18238 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18239 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18240   echo $ECHO_N "(cached) $ECHO_C" >&6
18241 else
18242   ac_check_lib_save_LIBS=$LIBS
18243 LIBS="-ldl  $LIBS"
18244 cat >conftest.$ac_ext <<_ACEOF
18245 /* confdefs.h.  */
18246 _ACEOF
18247 cat confdefs.h >>conftest.$ac_ext
18248 cat >>conftest.$ac_ext <<_ACEOF
18249 /* end confdefs.h.  */
18250
18251 /* Override any gcc2 internal prototype to avoid an error.  */
18252 #ifdef __cplusplus
18253 extern "C"
18254 #endif
18255 /* We use char because int might match the return type of a gcc2
18256    builtin and then its argument prototype would still apply.  */
18257 char dlopen ();
18258 int
18259 main ()
18260 {
18261 dlopen ();
18262   ;
18263   return 0;
18264 }
18265 _ACEOF
18266 rm -f conftest.$ac_objext conftest$ac_exeext
18267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18268   (eval $ac_link) 2>conftest.er1
18269   ac_status=$?
18270   grep -v '^ *+' conftest.er1 >conftest.err
18271   rm -f conftest.er1
18272   cat conftest.err >&5
18273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274   (exit $ac_status); } &&
18275          { ac_try='test -z "$ac_cxx_werror_flag"
18276                          || test ! -s conftest.err'
18277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278   (eval $ac_try) 2>&5
18279   ac_status=$?
18280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281   (exit $ac_status); }; } &&
18282          { ac_try='test -s conftest$ac_exeext'
18283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284   (eval $ac_try) 2>&5
18285   ac_status=$?
18286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287   (exit $ac_status); }; }; then
18288   ac_cv_lib_dl_dlopen=yes
18289 else
18290   echo "$as_me: failed program was:" >&5
18291 sed 's/^/| /' conftest.$ac_ext >&5
18292
18293 ac_cv_lib_dl_dlopen=no
18294 fi
18295 rm -f conftest.err conftest.$ac_objext \
18296       conftest$ac_exeext conftest.$ac_ext
18297 LIBS=$ac_check_lib_save_LIBS
18298 fi
18299 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18300 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18301 if test $ac_cv_lib_dl_dlopen = yes; then
18302   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18303 else
18304   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18305 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18306 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18307   echo $ECHO_N "(cached) $ECHO_C" >&6
18308 else
18309   ac_check_lib_save_LIBS=$LIBS
18310 LIBS="-lsvld  $LIBS"
18311 cat >conftest.$ac_ext <<_ACEOF
18312 /* confdefs.h.  */
18313 _ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h.  */
18317
18318 /* Override any gcc2 internal prototype to avoid an error.  */
18319 #ifdef __cplusplus
18320 extern "C"
18321 #endif
18322 /* We use char because int might match the return type of a gcc2
18323    builtin and then its argument prototype would still apply.  */
18324 char dlopen ();
18325 int
18326 main ()
18327 {
18328 dlopen ();
18329   ;
18330   return 0;
18331 }
18332 _ACEOF
18333 rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18335   (eval $ac_link) 2>conftest.er1
18336   ac_status=$?
18337   grep -v '^ *+' conftest.er1 >conftest.err
18338   rm -f conftest.er1
18339   cat conftest.err >&5
18340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341   (exit $ac_status); } &&
18342          { ac_try='test -z "$ac_cxx_werror_flag"
18343                          || test ! -s conftest.err'
18344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345   (eval $ac_try) 2>&5
18346   ac_status=$?
18347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348   (exit $ac_status); }; } &&
18349          { ac_try='test -s conftest$ac_exeext'
18350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351   (eval $ac_try) 2>&5
18352   ac_status=$?
18353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354   (exit $ac_status); }; }; then
18355   ac_cv_lib_svld_dlopen=yes
18356 else
18357   echo "$as_me: failed program was:" >&5
18358 sed 's/^/| /' conftest.$ac_ext >&5
18359
18360 ac_cv_lib_svld_dlopen=no
18361 fi
18362 rm -f conftest.err conftest.$ac_objext \
18363       conftest$ac_exeext conftest.$ac_ext
18364 LIBS=$ac_check_lib_save_LIBS
18365 fi
18366 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18367 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18368 if test $ac_cv_lib_svld_dlopen = yes; then
18369   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18370 else
18371   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18372 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18373 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18374   echo $ECHO_N "(cached) $ECHO_C" >&6
18375 else
18376   ac_check_lib_save_LIBS=$LIBS
18377 LIBS="-ldld  $LIBS"
18378 cat >conftest.$ac_ext <<_ACEOF
18379 /* confdefs.h.  */
18380 _ACEOF
18381 cat confdefs.h >>conftest.$ac_ext
18382 cat >>conftest.$ac_ext <<_ACEOF
18383 /* end confdefs.h.  */
18384
18385 /* Override any gcc2 internal prototype to avoid an error.  */
18386 #ifdef __cplusplus
18387 extern "C"
18388 #endif
18389 /* We use char because int might match the return type of a gcc2
18390    builtin and then its argument prototype would still apply.  */
18391 char dld_link ();
18392 int
18393 main ()
18394 {
18395 dld_link ();
18396   ;
18397   return 0;
18398 }
18399 _ACEOF
18400 rm -f conftest.$ac_objext conftest$ac_exeext
18401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18402   (eval $ac_link) 2>conftest.er1
18403   ac_status=$?
18404   grep -v '^ *+' conftest.er1 >conftest.err
18405   rm -f conftest.er1
18406   cat conftest.err >&5
18407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408   (exit $ac_status); } &&
18409          { ac_try='test -z "$ac_cxx_werror_flag"
18410                          || test ! -s conftest.err'
18411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412   (eval $ac_try) 2>&5
18413   ac_status=$?
18414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415   (exit $ac_status); }; } &&
18416          { ac_try='test -s conftest$ac_exeext'
18417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418   (eval $ac_try) 2>&5
18419   ac_status=$?
18420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421   (exit $ac_status); }; }; then
18422   ac_cv_lib_dld_dld_link=yes
18423 else
18424   echo "$as_me: failed program was:" >&5
18425 sed 's/^/| /' conftest.$ac_ext >&5
18426
18427 ac_cv_lib_dld_dld_link=no
18428 fi
18429 rm -f conftest.err conftest.$ac_objext \
18430       conftest$ac_exeext conftest.$ac_ext
18431 LIBS=$ac_check_lib_save_LIBS
18432 fi
18433 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18434 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18435 if test $ac_cv_lib_dld_dld_link = yes; then
18436   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18437 fi
18438
18439
18440 fi
18441
18442
18443 fi
18444
18445
18446 fi
18447
18448
18449 fi
18450
18451
18452 fi
18453
18454     ;;
18455   esac
18456
18457   if test "x$lt_cv_dlopen" != xno; then
18458     enable_dlopen=yes
18459   else
18460     enable_dlopen=no
18461   fi
18462
18463   case $lt_cv_dlopen in
18464   dlopen)
18465     save_CPPFLAGS="$CPPFLAGS"
18466     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18467
18468     save_LDFLAGS="$LDFLAGS"
18469     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18470
18471     save_LIBS="$LIBS"
18472     LIBS="$lt_cv_dlopen_libs $LIBS"
18473
18474     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18475 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18476 if test "${lt_cv_dlopen_self+set}" = set; then
18477   echo $ECHO_N "(cached) $ECHO_C" >&6
18478 else
18479           if test "$cross_compiling" = yes; then :
18480   lt_cv_dlopen_self=cross
18481 else
18482   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18483   lt_status=$lt_dlunknown
18484   cat > conftest.$ac_ext <<EOF
18485 #line 18485 "configure"
18486 #include "confdefs.h"
18487
18488 #if HAVE_DLFCN_H
18489 #include <dlfcn.h>
18490 #endif
18491
18492 #include <stdio.h>
18493
18494 #ifdef RTLD_GLOBAL
18495 #  define LT_DLGLOBAL           RTLD_GLOBAL
18496 #else
18497 #  ifdef DL_GLOBAL
18498 #    define LT_DLGLOBAL         DL_GLOBAL
18499 #  else
18500 #    define LT_DLGLOBAL         0
18501 #  endif
18502 #endif
18503
18504 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18505    find out it does not work in some platform. */
18506 #ifndef LT_DLLAZY_OR_NOW
18507 #  ifdef RTLD_LAZY
18508 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18509 #  else
18510 #    ifdef DL_LAZY
18511 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18512 #    else
18513 #      ifdef RTLD_NOW
18514 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18515 #      else
18516 #        ifdef DL_NOW
18517 #          define LT_DLLAZY_OR_NOW      DL_NOW
18518 #        else
18519 #          define LT_DLLAZY_OR_NOW      0
18520 #        endif
18521 #      endif
18522 #    endif
18523 #  endif
18524 #endif
18525
18526 #ifdef __cplusplus
18527 extern "C" void exit (int);
18528 #endif
18529
18530 void fnord() { int i=42;}
18531 int main ()
18532 {
18533   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18534   int status = $lt_dlunknown;
18535
18536   if (self)
18537     {
18538       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18539       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18540       /* dlclose (self); */
18541     }
18542
18543     exit (status);
18544 }
18545 EOF
18546   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18547   (eval $ac_link) 2>&5
18548   ac_status=$?
18549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18551     (./conftest; exit; ) 2>/dev/null
18552     lt_status=$?
18553     case x$lt_status in
18554       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18555       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18556       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18557     esac
18558   else :
18559     # compilation failed
18560     lt_cv_dlopen_self=no
18561   fi
18562 fi
18563 rm -fr conftest*
18564
18565
18566 fi
18567 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18568 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18569
18570     if test "x$lt_cv_dlopen_self" = xyes; then
18571       LDFLAGS="$LDFLAGS $link_static_flag"
18572       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18573 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18574 if test "${lt_cv_dlopen_self_static+set}" = set; then
18575   echo $ECHO_N "(cached) $ECHO_C" >&6
18576 else
18577           if test "$cross_compiling" = yes; then :
18578   lt_cv_dlopen_self_static=cross
18579 else
18580   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18581   lt_status=$lt_dlunknown
18582   cat > conftest.$ac_ext <<EOF
18583 #line 18583 "configure"
18584 #include "confdefs.h"
18585
18586 #if HAVE_DLFCN_H
18587 #include <dlfcn.h>
18588 #endif
18589
18590 #include <stdio.h>
18591
18592 #ifdef RTLD_GLOBAL
18593 #  define LT_DLGLOBAL           RTLD_GLOBAL
18594 #else
18595 #  ifdef DL_GLOBAL
18596 #    define LT_DLGLOBAL         DL_GLOBAL
18597 #  else
18598 #    define LT_DLGLOBAL         0
18599 #  endif
18600 #endif
18601
18602 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18603    find out it does not work in some platform. */
18604 #ifndef LT_DLLAZY_OR_NOW
18605 #  ifdef RTLD_LAZY
18606 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18607 #  else
18608 #    ifdef DL_LAZY
18609 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18610 #    else
18611 #      ifdef RTLD_NOW
18612 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18613 #      else
18614 #        ifdef DL_NOW
18615 #          define LT_DLLAZY_OR_NOW      DL_NOW
18616 #        else
18617 #          define LT_DLLAZY_OR_NOW      0
18618 #        endif
18619 #      endif
18620 #    endif
18621 #  endif
18622 #endif
18623
18624 #ifdef __cplusplus
18625 extern "C" void exit (int);
18626 #endif
18627
18628 void fnord() { int i=42;}
18629 int main ()
18630 {
18631   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18632   int status = $lt_dlunknown;
18633
18634   if (self)
18635     {
18636       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18637       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18638       /* dlclose (self); */
18639     }
18640
18641     exit (status);
18642 }
18643 EOF
18644   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18645   (eval $ac_link) 2>&5
18646   ac_status=$?
18647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18649     (./conftest; exit; ) 2>/dev/null
18650     lt_status=$?
18651     case x$lt_status in
18652       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18653       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18654       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18655     esac
18656   else :
18657     # compilation failed
18658     lt_cv_dlopen_self_static=no
18659   fi
18660 fi
18661 rm -fr conftest*
18662
18663
18664 fi
18665 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18666 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18667     fi
18668
18669     CPPFLAGS="$save_CPPFLAGS"
18670     LDFLAGS="$save_LDFLAGS"
18671     LIBS="$save_LIBS"
18672     ;;
18673   esac
18674
18675   case $lt_cv_dlopen_self in
18676   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18677   *) enable_dlopen_self=unknown ;;
18678   esac
18679
18680   case $lt_cv_dlopen_self_static in
18681   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18682   *) enable_dlopen_self_static=unknown ;;
18683   esac
18684 fi
18685
18686
18687 # The else clause should only fire when bootstrapping the
18688 # libtool distribution, otherwise you forgot to ship ltmain.sh
18689 # with your package, and you will get complaints that there are
18690 # no rules to generate ltmain.sh.
18691 if test -f "$ltmain"; then
18692   # See if we are running on zsh, and set the options which allow our commands through
18693   # without removal of \ escapes.
18694   if test -n "${ZSH_VERSION+set}" ; then
18695     setopt NO_GLOB_SUBST
18696   fi
18697   # Now quote all the things that may contain metacharacters while being
18698   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18699   # variables and quote the copies for generation of the libtool script.
18700   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18701     SED SHELL STRIP \
18702     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18703     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18704     deplibs_check_method reload_flag reload_cmds need_locks \
18705     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18706     lt_cv_sys_global_symbol_to_c_name_address \
18707     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18708     old_postinstall_cmds old_postuninstall_cmds \
18709     compiler_CXX \
18710     CC_CXX \
18711     LD_CXX \
18712     lt_prog_compiler_wl_CXX \
18713     lt_prog_compiler_pic_CXX \
18714     lt_prog_compiler_static_CXX \
18715     lt_prog_compiler_no_builtin_flag_CXX \
18716     export_dynamic_flag_spec_CXX \
18717     thread_safe_flag_spec_CXX \
18718     whole_archive_flag_spec_CXX \
18719     enable_shared_with_static_runtimes_CXX \
18720     old_archive_cmds_CXX \
18721     old_archive_from_new_cmds_CXX \
18722     predep_objects_CXX \
18723     postdep_objects_CXX \
18724     predeps_CXX \
18725     postdeps_CXX \
18726     compiler_lib_search_path_CXX \
18727     archive_cmds_CXX \
18728     archive_expsym_cmds_CXX \
18729     postinstall_cmds_CXX \
18730     postuninstall_cmds_CXX \
18731     old_archive_from_expsyms_cmds_CXX \
18732     allow_undefined_flag_CXX \
18733     no_undefined_flag_CXX \
18734     export_symbols_cmds_CXX \
18735     hardcode_libdir_flag_spec_CXX \
18736     hardcode_libdir_flag_spec_ld_CXX \
18737     hardcode_libdir_separator_CXX \
18738     hardcode_automatic_CXX \
18739     module_cmds_CXX \
18740     module_expsym_cmds_CXX \
18741     lt_cv_prog_compiler_c_o_CXX \
18742     exclude_expsyms_CXX \
18743     include_expsyms_CXX; do
18744
18745     case $var in
18746     old_archive_cmds_CXX | \
18747     old_archive_from_new_cmds_CXX | \
18748     archive_cmds_CXX | \
18749     archive_expsym_cmds_CXX | \
18750     module_cmds_CXX | \
18751     module_expsym_cmds_CXX | \
18752     old_archive_from_expsyms_cmds_CXX | \
18753     export_symbols_cmds_CXX | \
18754     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18755     postinstall_cmds | postuninstall_cmds | \
18756     old_postinstall_cmds | old_postuninstall_cmds | \
18757     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18758       # Double-quote double-evaled strings.
18759       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18760       ;;
18761     *)
18762       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18763       ;;
18764     esac
18765   done
18766
18767   case $lt_echo in
18768   *'\$0 --fallback-echo"')
18769     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18770     ;;
18771   esac
18772
18773 cfgfile="$ofile"
18774
18775   cat <<__EOF__ >> "$cfgfile"
18776 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18777
18778 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18779
18780 # Shell to use when invoking shell scripts.
18781 SHELL=$lt_SHELL
18782
18783 # Whether or not to build shared libraries.
18784 build_libtool_libs=$enable_shared
18785
18786 # Whether or not to build static libraries.
18787 build_old_libs=$enable_static
18788
18789 # Whether or not to add -lc for building shared libraries.
18790 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18791
18792 # Whether or not to disallow shared libs when runtime libs are static
18793 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18794
18795 # Whether or not to optimize for fast installation.
18796 fast_install=$enable_fast_install
18797
18798 # The host system.
18799 host_alias=$host_alias
18800 host=$host
18801
18802 # An echo program that does not interpret backslashes.
18803 echo=$lt_echo
18804
18805 # The archiver.
18806 AR=$lt_AR
18807 AR_FLAGS=$lt_AR_FLAGS
18808
18809 # A C compiler.
18810 LTCC=$lt_LTCC
18811
18812 # A language-specific compiler.
18813 CC=$lt_compiler_CXX
18814
18815 # Is the compiler the GNU C compiler?
18816 with_gcc=$GCC_CXX
18817
18818 # An ERE matcher.
18819 EGREP=$lt_EGREP
18820
18821 # The linker used to build libraries.
18822 LD=$lt_LD_CXX
18823
18824 # Whether we need hard or soft links.
18825 LN_S=$lt_LN_S
18826
18827 # A BSD-compatible nm program.
18828 NM=$lt_NM
18829
18830 # A symbol stripping program
18831 STRIP=$lt_STRIP
18832
18833 # Used to examine libraries when file_magic_cmd begins "file"
18834 MAGIC_CMD=$MAGIC_CMD
18835
18836 # Used on cygwin: DLL creation program.
18837 DLLTOOL="$DLLTOOL"
18838
18839 # Used on cygwin: object dumper.
18840 OBJDUMP="$OBJDUMP"
18841
18842 # Used on cygwin: assembler.
18843 AS="$AS"
18844
18845 # The name of the directory that contains temporary libtool files.
18846 objdir=$objdir
18847
18848 # How to create reloadable object files.
18849 reload_flag=$lt_reload_flag
18850 reload_cmds=$lt_reload_cmds
18851
18852 # How to pass a linker flag through the compiler.
18853 wl=$lt_lt_prog_compiler_wl_CXX
18854
18855 # Object file suffix (normally "o").
18856 objext="$ac_objext"
18857
18858 # Old archive suffix (normally "a").
18859 libext="$libext"
18860
18861 # Shared library suffix (normally ".so").
18862 shrext_cmds='$shrext_cmds'
18863
18864 # Executable file suffix (normally "").
18865 exeext="$exeext"
18866
18867 # Additional compiler flags for building library objects.
18868 pic_flag=$lt_lt_prog_compiler_pic_CXX
18869 pic_mode=$pic_mode
18870
18871 # What is the maximum length of a command?
18872 max_cmd_len=$lt_cv_sys_max_cmd_len
18873
18874 # Does compiler simultaneously support -c and -o options?
18875 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18876
18877 # Must we lock files when doing compilation ?
18878 need_locks=$lt_need_locks
18879
18880 # Do we need the lib prefix for modules?
18881 need_lib_prefix=$need_lib_prefix
18882
18883 # Do we need a version for libraries?
18884 need_version=$need_version
18885
18886 # Whether dlopen is supported.
18887 dlopen_support=$enable_dlopen
18888
18889 # Whether dlopen of programs is supported.
18890 dlopen_self=$enable_dlopen_self
18891
18892 # Whether dlopen of statically linked programs is supported.
18893 dlopen_self_static=$enable_dlopen_self_static
18894
18895 # Compiler flag to prevent dynamic linking.
18896 link_static_flag=$lt_lt_prog_compiler_static_CXX
18897
18898 # Compiler flag to turn off builtin functions.
18899 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18900
18901 # Compiler flag to allow reflexive dlopens.
18902 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18903
18904 # Compiler flag to generate shared objects directly from archives.
18905 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18906
18907 # Compiler flag to generate thread-safe objects.
18908 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18909
18910 # Library versioning type.
18911 version_type=$version_type
18912
18913 # Format of library name prefix.
18914 libname_spec=$lt_libname_spec
18915
18916 # List of archive names.  First name is the real one, the rest are links.
18917 # The last name is the one that the linker finds with -lNAME.
18918 library_names_spec=$lt_library_names_spec
18919
18920 # The coded name of the library, if different from the real name.
18921 soname_spec=$lt_soname_spec
18922
18923 # Commands used to build and install an old-style archive.
18924 RANLIB=$lt_RANLIB
18925 old_archive_cmds=$lt_old_archive_cmds_CXX
18926 old_postinstall_cmds=$lt_old_postinstall_cmds
18927 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18928
18929 # Create an old-style archive from a shared archive.
18930 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18931
18932 # Create a temporary old-style archive to link instead of a shared archive.
18933 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18934
18935 # Commands used to build and install a shared archive.
18936 archive_cmds=$lt_archive_cmds_CXX
18937 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18938 postinstall_cmds=$lt_postinstall_cmds
18939 postuninstall_cmds=$lt_postuninstall_cmds
18940
18941 # Commands used to build a loadable module (assumed same as above if empty)
18942 module_cmds=$lt_module_cmds_CXX
18943 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18944
18945 # Commands to strip libraries.
18946 old_striplib=$lt_old_striplib
18947 striplib=$lt_striplib
18948
18949 # Dependencies to place before the objects being linked to create a
18950 # shared library.
18951 predep_objects=$lt_predep_objects_CXX
18952
18953 # Dependencies to place after the objects being linked to create a
18954 # shared library.
18955 postdep_objects=$lt_postdep_objects_CXX
18956
18957 # Dependencies to place before the objects being linked to create a
18958 # shared library.
18959 predeps=$lt_predeps_CXX
18960
18961 # Dependencies to place after the objects being linked to create a
18962 # shared library.
18963 postdeps=$lt_postdeps_CXX
18964
18965 # The library search path used internally by the compiler when linking
18966 # a shared library.
18967 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18968
18969 # Method to check whether dependent libraries are shared objects.
18970 deplibs_check_method=$lt_deplibs_check_method
18971
18972 # Command to use when deplibs_check_method == file_magic.
18973 file_magic_cmd=$lt_file_magic_cmd
18974
18975 # Flag that allows shared libraries with undefined symbols to be built.
18976 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18977
18978 # Flag that forces no undefined symbols.
18979 no_undefined_flag=$lt_no_undefined_flag_CXX
18980
18981 # Commands used to finish a libtool library installation in a directory.
18982 finish_cmds=$lt_finish_cmds
18983
18984 # Same as above, but a single script fragment to be evaled but not shown.
18985 finish_eval=$lt_finish_eval
18986
18987 # Take the output of nm and produce a listing of raw symbols and C names.
18988 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18989
18990 # Transform the output of nm in a proper C declaration
18991 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18992
18993 # Transform the output of nm in a C name address pair
18994 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18995
18996 # This is the shared library runtime path variable.
18997 runpath_var=$runpath_var
18998
18999 # This is the shared library path variable.
19000 shlibpath_var=$shlibpath_var
19001
19002 # Is shlibpath searched before the hard-coded library search path?
19003 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19004
19005 # How to hardcode a shared library path into an executable.
19006 hardcode_action=$hardcode_action_CXX
19007
19008 # Whether we should hardcode library paths into libraries.
19009 hardcode_into_libs=$hardcode_into_libs
19010
19011 # Flag to hardcode \$libdir into a binary during linking.
19012 # This must work even if \$libdir does not exist.
19013 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19014
19015 # If ld is used when linking, flag to hardcode \$libdir into
19016 # a binary during linking. This must work even if \$libdir does
19017 # not exist.
19018 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19019
19020 # Whether we need a single -rpath flag with a separated argument.
19021 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19022
19023 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19024 # resulting binary.
19025 hardcode_direct=$hardcode_direct_CXX
19026
19027 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19028 # resulting binary.
19029 hardcode_minus_L=$hardcode_minus_L_CXX
19030
19031 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19032 # the resulting binary.
19033 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19034
19035 # Set to yes if building a shared library automatically hardcodes DIR into the library
19036 # and all subsequent libraries and executables linked against it.
19037 hardcode_automatic=$hardcode_automatic_CXX
19038
19039 # Variables whose values should be saved in libtool wrapper scripts and
19040 # restored at relink time.
19041 variables_saved_for_relink="$variables_saved_for_relink"
19042
19043 # Whether libtool must link a program against all its dependency libraries.
19044 link_all_deplibs=$link_all_deplibs_CXX
19045
19046 # Compile-time system search path for libraries
19047 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19048
19049 # Run-time system search path for libraries
19050 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19051
19052 # Fix the shell variable \$srcfile for the compiler.
19053 fix_srcfile_path="$fix_srcfile_path_CXX"
19054
19055 # Set to yes if exported symbols are required.
19056 always_export_symbols=$always_export_symbols_CXX
19057
19058 # The commands to list exported symbols.
19059 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19060
19061 # The commands to extract the exported symbol list from a shared archive.
19062 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19063
19064 # Symbols that should not be listed in the preloaded symbols.
19065 exclude_expsyms=$lt_exclude_expsyms_CXX
19066
19067 # Symbols that must always be exported.
19068 include_expsyms=$lt_include_expsyms_CXX
19069
19070 # ### END LIBTOOL TAG CONFIG: $tagname
19071
19072 __EOF__
19073
19074
19075 else
19076   # If there is no Makefile yet, we rely on a make rule to execute
19077   # `config.status --recheck' to rerun these tests and create the
19078   # libtool script then.
19079   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19080   if test -f "$ltmain_in"; then
19081     test -f Makefile && make "$ltmain"
19082   fi
19083 fi
19084
19085
19086 ac_ext=c
19087 ac_cpp='$CPP $CPPFLAGS'
19088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19091
19092 CC=$lt_save_CC
19093 LDCXX=$LD
19094 LD=$lt_save_LD
19095 GCC=$lt_save_GCC
19096 with_gnu_ldcxx=$with_gnu_ld
19097 with_gnu_ld=$lt_save_with_gnu_ld
19098 lt_cv_path_LDCXX=$lt_cv_path_LD
19099 lt_cv_path_LD=$lt_save_path_LD
19100 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19101 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19102
19103         else
19104           tagname=""
19105         fi
19106         ;;
19107
19108       F77)
19109         if test -n "$F77" && test "X$F77" != "Xno"; then
19110
19111 ac_ext=f
19112 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19113 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19114 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19115
19116
19117 archive_cmds_need_lc_F77=no
19118 allow_undefined_flag_F77=
19119 always_export_symbols_F77=no
19120 archive_expsym_cmds_F77=
19121 export_dynamic_flag_spec_F77=
19122 hardcode_direct_F77=no
19123 hardcode_libdir_flag_spec_F77=
19124 hardcode_libdir_flag_spec_ld_F77=
19125 hardcode_libdir_separator_F77=
19126 hardcode_minus_L_F77=no
19127 hardcode_automatic_F77=no
19128 module_cmds_F77=
19129 module_expsym_cmds_F77=
19130 link_all_deplibs_F77=unknown
19131 old_archive_cmds_F77=$old_archive_cmds
19132 no_undefined_flag_F77=
19133 whole_archive_flag_spec_F77=
19134 enable_shared_with_static_runtimes_F77=no
19135
19136 # Source file extension for f77 test sources.
19137 ac_ext=f
19138
19139 # Object file extension for compiled f77 test sources.
19140 objext=o
19141 objext_F77=$objext
19142
19143 # Code to be used in simple compile tests
19144 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
19145
19146 # Code to be used in simple link tests
19147 lt_simple_link_test_code="      program t\n      end\n"
19148
19149 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19150
19151 # If no C compiler was specified, use CC.
19152 LTCC=${LTCC-"$CC"}
19153
19154 # Allow CC to be a program name with arguments.
19155 compiler=$CC
19156
19157
19158 # Allow CC to be a program name with arguments.
19159 lt_save_CC="$CC"
19160 CC=${F77-"f77"}
19161 compiler=$CC
19162 compiler_F77=$CC
19163 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
19164
19165 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19166 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19167 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19168 echo "${ECHO_T}$can_build_shared" >&6
19169
19170 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19171 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19172 test "$can_build_shared" = "no" && enable_shared=no
19173
19174 # On AIX, shared libraries and static libraries use the same namespace, and
19175 # are all built from PIC.
19176 case "$host_os" in
19177 aix3*)
19178   test "$enable_shared" = yes && enable_static=no
19179   if test -n "$RANLIB"; then
19180     archive_cmds="$archive_cmds~\$RANLIB \$lib"
19181     postinstall_cmds='$RANLIB $lib'
19182   fi
19183   ;;
19184 aix4* | aix5*)
19185   test "$enable_shared" = yes && enable_static=no
19186   ;;
19187 esac
19188 echo "$as_me:$LINENO: result: $enable_shared" >&5
19189 echo "${ECHO_T}$enable_shared" >&6
19190
19191 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19192 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19193 # Make sure either enable_shared or enable_static is yes.
19194 test "$enable_shared" = yes || enable_static=yes
19195 echo "$as_me:$LINENO: result: $enable_static" >&5
19196 echo "${ECHO_T}$enable_static" >&6
19197
19198 test "$ld_shlibs_F77" = no && can_build_shared=no
19199
19200 GCC_F77="$G77"
19201 LD_F77="$LD"
19202
19203 lt_prog_compiler_wl_F77=
19204 lt_prog_compiler_pic_F77=
19205 lt_prog_compiler_static_F77=
19206
19207 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19208 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19209
19210   if test "$GCC" = yes; then
19211     lt_prog_compiler_wl_F77='-Wl,'
19212     lt_prog_compiler_static_F77='-static'
19213
19214     case $host_os in
19215       aix*)
19216       # All AIX code is PIC.
19217       if test "$host_cpu" = ia64; then
19218         # AIX 5 now supports IA64 processor
19219         lt_prog_compiler_static_F77='-Bstatic'
19220       fi
19221       ;;
19222
19223     amigaos*)
19224       # FIXME: we need at least 68020 code to build shared libraries, but
19225       # adding the `-m68020' flag to GCC prevents building anything better,
19226       # like `-m68040'.
19227       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
19228       ;;
19229
19230     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19231       # PIC is the default for these OSes.
19232       ;;
19233
19234     mingw* | pw32* | os2*)
19235       # This hack is so that the source file can tell whether it is being
19236       # built for inclusion in a dll (and should export symbols for example).
19237       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19238       ;;
19239
19240     darwin* | rhapsody*)
19241       # PIC is the default on this platform
19242       # Common symbols not allowed in MH_DYLIB files
19243       lt_prog_compiler_pic_F77='-fno-common'
19244       ;;
19245
19246     msdosdjgpp*)
19247       # Just because we use GCC doesn't mean we suddenly get shared libraries
19248       # on systems that don't support them.
19249       lt_prog_compiler_can_build_shared_F77=no
19250       enable_shared=no
19251       ;;
19252
19253     sysv4*MP*)
19254       if test -d /usr/nec; then
19255         lt_prog_compiler_pic_F77=-Kconform_pic
19256       fi
19257       ;;
19258
19259     hpux*)
19260       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19261       # not for PA HP-UX.
19262       case "$host_cpu" in
19263       hppa*64*|ia64*)
19264         # +Z the default
19265         ;;
19266       *)
19267         lt_prog_compiler_pic_F77='-fPIC'
19268         ;;
19269       esac
19270       ;;
19271
19272     *)
19273       lt_prog_compiler_pic_F77='-fPIC'
19274       ;;
19275     esac
19276   else
19277     # PORTME Check for flag to pass linker flags through the system compiler.
19278     case $host_os in
19279     aix*)
19280       lt_prog_compiler_wl_F77='-Wl,'
19281       if test "$host_cpu" = ia64; then
19282         # AIX 5 now supports IA64 processor
19283         lt_prog_compiler_static_F77='-Bstatic'
19284       else
19285         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19286       fi
19287       ;;
19288       darwin*)
19289         # PIC is the default on this platform
19290         # Common symbols not allowed in MH_DYLIB files
19291        case "$cc_basename" in
19292          xlc*)
19293          lt_prog_compiler_pic_F77='-qnocommon'
19294          lt_prog_compiler_wl_F77='-Wl,'
19295          ;;
19296        esac
19297        ;;
19298
19299     mingw* | pw32* | os2*)
19300       # This hack is so that the source file can tell whether it is being
19301       # built for inclusion in a dll (and should export symbols for example).
19302       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19303       ;;
19304
19305     hpux9* | hpux10* | hpux11*)
19306       lt_prog_compiler_wl_F77='-Wl,'
19307       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19308       # not for PA HP-UX.
19309       case "$host_cpu" in
19310       hppa*64*|ia64*)
19311         # +Z the default
19312         ;;
19313       *)
19314         lt_prog_compiler_pic_F77='+Z'
19315         ;;
19316       esac
19317       # Is there a better lt_prog_compiler_static that works with the bundled CC?
19318       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19319       ;;
19320
19321     irix5* | irix6* | nonstopux*)
19322       lt_prog_compiler_wl_F77='-Wl,'
19323       # PIC (with -KPIC) is the default.
19324       lt_prog_compiler_static_F77='-non_shared'
19325       ;;
19326
19327     newsos6)
19328       lt_prog_compiler_pic_F77='-KPIC'
19329       lt_prog_compiler_static_F77='-Bstatic'
19330       ;;
19331
19332     linux*)
19333       case $CC in
19334       icc* | ecc*)
19335         lt_prog_compiler_wl_F77='-Wl,'
19336         lt_prog_compiler_pic_F77='-KPIC'
19337         lt_prog_compiler_static_F77='-static'
19338         ;;
19339       ccc*)
19340         lt_prog_compiler_wl_F77='-Wl,'
19341         # All Alpha code is PIC.
19342         lt_prog_compiler_static_F77='-non_shared'
19343         ;;
19344       esac
19345       ;;
19346
19347     osf3* | osf4* | osf5*)
19348       lt_prog_compiler_wl_F77='-Wl,'
19349       # All OSF/1 code is PIC.
19350       lt_prog_compiler_static_F77='-non_shared'
19351       ;;
19352
19353     sco3.2v5*)
19354       lt_prog_compiler_pic_F77='-Kpic'
19355       lt_prog_compiler_static_F77='-dn'
19356       ;;
19357
19358     solaris*)
19359       lt_prog_compiler_wl_F77='-Wl,'
19360       lt_prog_compiler_pic_F77='-KPIC'
19361       lt_prog_compiler_static_F77='-Bstatic'
19362       ;;
19363
19364     sunos4*)
19365       lt_prog_compiler_wl_F77='-Qoption ld '
19366       lt_prog_compiler_pic_F77='-PIC'
19367       lt_prog_compiler_static_F77='-Bstatic'
19368       ;;
19369
19370     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19371       lt_prog_compiler_wl_F77='-Wl,'
19372       lt_prog_compiler_pic_F77='-KPIC'
19373       lt_prog_compiler_static_F77='-Bstatic'
19374       ;;
19375
19376     sysv4*MP*)
19377       if test -d /usr/nec ;then
19378         lt_prog_compiler_pic_F77='-Kconform_pic'
19379         lt_prog_compiler_static_F77='-Bstatic'
19380       fi
19381       ;;
19382
19383     uts4*)
19384       lt_prog_compiler_pic_F77='-pic'
19385       lt_prog_compiler_static_F77='-Bstatic'
19386       ;;
19387
19388     *)
19389       lt_prog_compiler_can_build_shared_F77=no
19390       ;;
19391     esac
19392   fi
19393
19394 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19395 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19396
19397 #
19398 # Check to make sure the PIC flag actually works.
19399 #
19400 if test -n "$lt_prog_compiler_pic_F77"; then
19401
19402 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19403 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19404 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19405   echo $ECHO_N "(cached) $ECHO_C" >&6
19406 else
19407   lt_prog_compiler_pic_works_F77=no
19408   ac_outfile=conftest.$ac_objext
19409    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19410    lt_compiler_flag="$lt_prog_compiler_pic_F77"
19411    # Insert the option either (1) after the last *FLAGS variable, or
19412    # (2) before a word containing "conftest.", or (3) at the end.
19413    # Note that $ac_compile itself does not contain backslashes and begins
19414    # with a dollar sign (not a hyphen), so the echo should work correctly.
19415    # The option is referenced via a variable to avoid confusing sed.
19416    lt_compile=`echo "$ac_compile" | $SED \
19417    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19418    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19419    -e 's:$: $lt_compiler_flag:'`
19420    (eval echo "\"\$as_me:19420: $lt_compile\"" >&5)
19421    (eval "$lt_compile" 2>conftest.err)
19422    ac_status=$?
19423    cat conftest.err >&5
19424    echo "$as_me:19424: \$? = $ac_status" >&5
19425    if (exit $ac_status) && test -s "$ac_outfile"; then
19426      # The compiler can only warn and ignore the option if not recognized
19427      # So say no if there are warnings
19428      if test ! -s conftest.err; then
19429        lt_prog_compiler_pic_works_F77=yes
19430      fi
19431    fi
19432    $rm conftest*
19433
19434 fi
19435 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19436 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19437
19438 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19439     case $lt_prog_compiler_pic_F77 in
19440      "" | " "*) ;;
19441      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19442      esac
19443 else
19444     lt_prog_compiler_pic_F77=
19445      lt_prog_compiler_can_build_shared_F77=no
19446 fi
19447
19448 fi
19449 case "$host_os" in
19450   # For platforms which do not support PIC, -DPIC is meaningless:
19451   *djgpp*)
19452     lt_prog_compiler_pic_F77=
19453     ;;
19454   *)
19455     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19456     ;;
19457 esac
19458
19459 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19460 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19461 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19462   echo $ECHO_N "(cached) $ECHO_C" >&6
19463 else
19464   lt_cv_prog_compiler_c_o_F77=no
19465    $rm -r conftest 2>/dev/null
19466    mkdir conftest
19467    cd conftest
19468    mkdir out
19469    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19470
19471    lt_compiler_flag="-o out/conftest2.$ac_objext"
19472    # Insert the option either (1) after the last *FLAGS variable, or
19473    # (2) before a word containing "conftest.", or (3) at the end.
19474    # Note that $ac_compile itself does not contain backslashes and begins
19475    # with a dollar sign (not a hyphen), so the echo should work correctly.
19476    lt_compile=`echo "$ac_compile" | $SED \
19477    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19478    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19479    -e 's:$: $lt_compiler_flag:'`
19480    (eval echo "\"\$as_me:19480: $lt_compile\"" >&5)
19481    (eval "$lt_compile" 2>out/conftest.err)
19482    ac_status=$?
19483    cat out/conftest.err >&5
19484    echo "$as_me:19484: \$? = $ac_status" >&5
19485    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19486    then
19487      # The compiler can only warn and ignore the option if not recognized
19488      # So say no if there are warnings
19489      if test ! -s out/conftest.err; then
19490        lt_cv_prog_compiler_c_o_F77=yes
19491      fi
19492    fi
19493    chmod u+w .
19494    $rm conftest*
19495    # SGI C++ compiler will create directory out/ii_files/ for
19496    # template instantiation
19497    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19498    $rm out/* && rmdir out
19499    cd ..
19500    rmdir conftest
19501    $rm conftest*
19502
19503 fi
19504 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19505 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19506
19507
19508 hard_links="nottested"
19509 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19510   # do not overwrite the value of need_locks provided by the user
19511   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19512 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19513   hard_links=yes
19514   $rm conftest*
19515   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19516   touch conftest.a
19517   ln conftest.a conftest.b 2>&5 || hard_links=no
19518   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19519   echo "$as_me:$LINENO: result: $hard_links" >&5
19520 echo "${ECHO_T}$hard_links" >&6
19521   if test "$hard_links" = no; then
19522     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19523 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19524     need_locks=warn
19525   fi
19526 else
19527   need_locks=no
19528 fi
19529
19530 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19531 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19532
19533   runpath_var=
19534   allow_undefined_flag_F77=
19535   enable_shared_with_static_runtimes_F77=no
19536   archive_cmds_F77=
19537   archive_expsym_cmds_F77=
19538   old_archive_From_new_cmds_F77=
19539   old_archive_from_expsyms_cmds_F77=
19540   export_dynamic_flag_spec_F77=
19541   whole_archive_flag_spec_F77=
19542   thread_safe_flag_spec_F77=
19543   hardcode_libdir_flag_spec_F77=
19544   hardcode_libdir_flag_spec_ld_F77=
19545   hardcode_libdir_separator_F77=
19546   hardcode_direct_F77=no
19547   hardcode_minus_L_F77=no
19548   hardcode_shlibpath_var_F77=unsupported
19549   link_all_deplibs_F77=unknown
19550   hardcode_automatic_F77=no
19551   module_cmds_F77=
19552   module_expsym_cmds_F77=
19553   always_export_symbols_F77=no
19554   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19555   # include_expsyms should be a list of space-separated symbols to be *always*
19556   # included in the symbol list
19557   include_expsyms_F77=
19558   # exclude_expsyms can be an extended regexp of symbols to exclude
19559   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19560   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19561   # as well as any symbol that contains `d'.
19562   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19563   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19564   # platforms (ab)use it in PIC code, but their linkers get confused if
19565   # the symbol is explicitly referenced.  Since portable code cannot
19566   # rely on this symbol name, it's probably fine to never include it in
19567   # preloaded symbol tables.
19568   extract_expsyms_cmds=
19569
19570   case $host_os in
19571   cygwin* | mingw* | pw32*)
19572     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19573     # When not using gcc, we currently assume that we are using
19574     # Microsoft Visual C++.
19575     if test "$GCC" != yes; then
19576       with_gnu_ld=no
19577     fi
19578     ;;
19579   openbsd*)
19580     with_gnu_ld=no
19581     ;;
19582   esac
19583
19584   ld_shlibs_F77=yes
19585   if test "$with_gnu_ld" = yes; then
19586     # If archive_cmds runs LD, not CC, wlarc should be empty
19587     wlarc='${wl}'
19588
19589     # See if GNU ld supports shared libraries.
19590     case $host_os in
19591     aix3* | aix4* | aix5*)
19592       # On AIX/PPC, the GNU linker is very broken
19593       if test "$host_cpu" != ia64; then
19594         ld_shlibs_F77=no
19595         cat <<EOF 1>&2
19596
19597 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19598 *** to be unable to reliably create shared libraries on AIX.
19599 *** Therefore, libtool is disabling shared libraries support.  If you
19600 *** really care for shared libraries, you may want to modify your PATH
19601 *** so that a non-GNU linker is found, and then restart.
19602
19603 EOF
19604       fi
19605       ;;
19606
19607     amigaos*)
19608       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)'
19609       hardcode_libdir_flag_spec_F77='-L$libdir'
19610       hardcode_minus_L_F77=yes
19611
19612       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19613       # that the semantics of dynamic libraries on AmigaOS, at least up
19614       # to version 4, is to share data among multiple programs linked
19615       # with the same dynamic library.  Since this doesn't match the
19616       # behavior of shared libraries on other platforms, we can't use
19617       # them.
19618       ld_shlibs_F77=no
19619       ;;
19620
19621     beos*)
19622       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19623         allow_undefined_flag_F77=unsupported
19624         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19625         # support --undefined.  This deserves some investigation.  FIXME
19626         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19627       else
19628         ld_shlibs_F77=no
19629       fi
19630       ;;
19631
19632     cygwin* | mingw* | pw32*)
19633       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19634       # as there is no search path for DLLs.
19635       hardcode_libdir_flag_spec_F77='-L$libdir'
19636       allow_undefined_flag_F77=unsupported
19637       always_export_symbols_F77=no
19638       enable_shared_with_static_runtimes_F77=yes
19639       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19640
19641       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19642         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19643         # If the export-symbols file already is a .def file (1st line
19644         # is EXPORTS), use it as is; otherwise, prepend...
19645         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19646           cp $export_symbols $output_objdir/$soname.def;
19647         else
19648           echo EXPORTS > $output_objdir/$soname.def;
19649           cat $export_symbols >> $output_objdir/$soname.def;
19650         fi~
19651         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19652       else
19653         ld_shlibs=no
19654       fi
19655       ;;
19656
19657     netbsd*)
19658       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19659         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19660         wlarc=
19661       else
19662         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19663         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19664       fi
19665       ;;
19666
19667     solaris* | sysv5*)
19668       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19669         ld_shlibs_F77=no
19670         cat <<EOF 1>&2
19671
19672 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19673 *** create shared libraries on Solaris systems.  Therefore, libtool
19674 *** is disabling shared libraries support.  We urge you to upgrade GNU
19675 *** binutils to release 2.9.1 or newer.  Another option is to modify
19676 *** your PATH or compiler configuration so that the native linker is
19677 *** used, and then restart.
19678
19679 EOF
19680       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19681         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19682         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19683       else
19684         ld_shlibs_F77=no
19685       fi
19686       ;;
19687
19688     sunos4*)
19689       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19690       wlarc=
19691       hardcode_direct_F77=yes
19692       hardcode_shlibpath_var_F77=no
19693       ;;
19694
19695   linux*)
19696     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19697         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19698         archive_cmds_F77="$tmp_archive_cmds"
19699       supports_anon_versioning=no
19700       case `$LD -v 2>/dev/null` in
19701         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19702         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19703         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19704         *\ 2.11.*) ;; # other 2.11 versions
19705         *) supports_anon_versioning=yes ;;
19706       esac
19707       if test $supports_anon_versioning = yes; then
19708         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19709 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19710 $echo "local: *; };" >> $output_objdir/$libname.ver~
19711         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19712       else
19713         archive_expsym_cmds_F77="$tmp_archive_cmds"
19714       fi
19715     else
19716       ld_shlibs_F77=no
19717     fi
19718     ;;
19719
19720     *)
19721       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19722         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19723         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19724       else
19725         ld_shlibs_F77=no
19726       fi
19727       ;;
19728     esac
19729
19730     if test "$ld_shlibs_F77" = yes; then
19731       runpath_var=LD_RUN_PATH
19732       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19733       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19734       # ancient GNU ld didn't support --whole-archive et. al.
19735       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19736         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19737       else
19738         whole_archive_flag_spec_F77=
19739       fi
19740     fi
19741   else
19742     # PORTME fill in a description of your system's linker (not GNU ld)
19743     case $host_os in
19744     aix3*)
19745       allow_undefined_flag_F77=unsupported
19746       always_export_symbols_F77=yes
19747       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'
19748       # Note: this linker hardcodes the directories in LIBPATH if there
19749       # are no directories specified by -L.
19750       hardcode_minus_L_F77=yes
19751       if test "$GCC" = yes && test -z "$link_static_flag"; then
19752         # Neither direct hardcoding nor static linking is supported with a
19753         # broken collect2.
19754         hardcode_direct_F77=unsupported
19755       fi
19756       ;;
19757
19758     aix4* | aix5*)
19759       if test "$host_cpu" = ia64; then
19760         # On IA64, the linker does run time linking by default, so we don't
19761         # have to do anything special.
19762         aix_use_runtimelinking=no
19763         exp_sym_flag='-Bexport'
19764         no_entry_flag=""
19765       else
19766         # If we're using GNU nm, then we don't want the "-C" option.
19767         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19768         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19769           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'
19770         else
19771           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'
19772         fi
19773         aix_use_runtimelinking=no
19774
19775         # Test if we are trying to use run time linking or normal
19776         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19777         # need to do runtime linking.
19778         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19779           for ld_flag in $LDFLAGS; do
19780           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19781             aix_use_runtimelinking=yes
19782             break
19783           fi
19784           done
19785         esac
19786
19787         exp_sym_flag='-bexport'
19788         no_entry_flag='-bnoentry'
19789       fi
19790
19791       # When large executables or shared objects are built, AIX ld can
19792       # have problems creating the table of contents.  If linking a library
19793       # or program results in "error TOC overflow" add -mminimal-toc to
19794       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19795       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19796
19797       archive_cmds_F77=''
19798       hardcode_direct_F77=yes
19799       hardcode_libdir_separator_F77=':'
19800       link_all_deplibs_F77=yes
19801
19802       if test "$GCC" = yes; then
19803         case $host_os in aix4.012|aix4.012.*)
19804         # We only want to do this on AIX 4.2 and lower, the check
19805         # below for broken collect2 doesn't work under 4.3+
19806           collect2name=`${CC} -print-prog-name=collect2`
19807           if test -f "$collect2name" && \
19808            strings "$collect2name" | grep resolve_lib_name >/dev/null
19809           then
19810           # We have reworked collect2
19811           hardcode_direct_F77=yes
19812           else
19813           # We have old collect2
19814           hardcode_direct_F77=unsupported
19815           # It fails to find uninstalled libraries when the uninstalled
19816           # path is not listed in the libpath.  Setting hardcode_minus_L
19817           # to unsupported forces relinking
19818           hardcode_minus_L_F77=yes
19819           hardcode_libdir_flag_spec_F77='-L$libdir'
19820           hardcode_libdir_separator_F77=
19821           fi
19822         esac
19823         shared_flag='-shared'
19824       else
19825         # not using gcc
19826         if test "$host_cpu" = ia64; then
19827         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19828         # chokes on -Wl,-G. The following line is correct:
19829           shared_flag='-G'
19830         else
19831         if test "$aix_use_runtimelinking" = yes; then
19832             shared_flag='${wl}-G'
19833           else
19834             shared_flag='${wl}-bM:SRE'
19835         fi
19836         fi
19837       fi
19838
19839       # It seems that -bexpall does not export symbols beginning with
19840       # underscore (_), so it is better to generate a list of symbols to export.
19841       always_export_symbols_F77=yes
19842       if test "$aix_use_runtimelinking" = yes; then
19843         # Warning - without using the other runtime loading flags (-brtl),
19844         # -berok will link without error, but may produce a broken library.
19845         allow_undefined_flag_F77='-berok'
19846        # Determine the default libpath from the value encoded in an empty executable.
19847        cat >conftest.$ac_ext <<_ACEOF
19848       program main
19849
19850       end
19851 _ACEOF
19852 rm -f conftest.$ac_objext conftest$ac_exeext
19853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19854   (eval $ac_link) 2>conftest.er1
19855   ac_status=$?
19856   grep -v '^ *+' conftest.er1 >conftest.err
19857   rm -f conftest.er1
19858   cat conftest.err >&5
19859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860   (exit $ac_status); } &&
19861          { ac_try='test -z "$ac_f77_werror_flag"
19862                          || test ! -s conftest.err'
19863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864   (eval $ac_try) 2>&5
19865   ac_status=$?
19866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867   (exit $ac_status); }; } &&
19868          { ac_try='test -s conftest$ac_exeext'
19869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870   (eval $ac_try) 2>&5
19871   ac_status=$?
19872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873   (exit $ac_status); }; }; then
19874
19875 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19876 }'`
19877 # Check for a 64-bit object if we didn't find anything.
19878 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; }
19879 }'`; fi
19880 else
19881   echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19883
19884 fi
19885 rm -f conftest.err conftest.$ac_objext \
19886       conftest$ac_exeext conftest.$ac_ext
19887 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19888
19889        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19890         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"
19891        else
19892         if test "$host_cpu" = ia64; then
19893           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19894           allow_undefined_flag_F77="-z nodefs"
19895           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"
19896         else
19897          # Determine the default libpath from the value encoded in an empty executable.
19898          cat >conftest.$ac_ext <<_ACEOF
19899       program main
19900
19901       end
19902 _ACEOF
19903 rm -f conftest.$ac_objext conftest$ac_exeext
19904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19905   (eval $ac_link) 2>conftest.er1
19906   ac_status=$?
19907   grep -v '^ *+' conftest.er1 >conftest.err
19908   rm -f conftest.er1
19909   cat conftest.err >&5
19910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911   (exit $ac_status); } &&
19912          { ac_try='test -z "$ac_f77_werror_flag"
19913                          || test ! -s conftest.err'
19914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915   (eval $ac_try) 2>&5
19916   ac_status=$?
19917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918   (exit $ac_status); }; } &&
19919          { ac_try='test -s conftest$ac_exeext'
19920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19921   (eval $ac_try) 2>&5
19922   ac_status=$?
19923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924   (exit $ac_status); }; }; then
19925
19926 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19927 }'`
19928 # Check for a 64-bit object if we didn't find anything.
19929 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; }
19930 }'`; fi
19931 else
19932   echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19934
19935 fi
19936 rm -f conftest.err conftest.$ac_objext \
19937       conftest$ac_exeext conftest.$ac_ext
19938 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19939
19940          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19941           # Warning - without using the other run time loading flags,
19942           # -berok will link without error, but may produce a broken library.
19943           no_undefined_flag_F77=' ${wl}-bernotok'
19944           allow_undefined_flag_F77=' ${wl}-berok'
19945           # -bexpall does not export symbols beginning with underscore (_)
19946           always_export_symbols_F77=yes
19947           # Exported symbols can be pulled into shared objects from archives
19948           whole_archive_flag_spec_F77=' '
19949           archive_cmds_need_lc_F77=yes
19950           # This is similar to how AIX traditionally builds it's shared libraries.
19951           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'
19952         fi
19953       fi
19954       ;;
19955
19956     amigaos*)
19957       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)'
19958       hardcode_libdir_flag_spec_F77='-L$libdir'
19959       hardcode_minus_L_F77=yes
19960       # see comment about different semantics on the GNU ld section
19961       ld_shlibs_F77=no
19962       ;;
19963
19964     bsdi[45]*)
19965       export_dynamic_flag_spec_F77=-rdynamic
19966       ;;
19967
19968     cygwin* | mingw* | pw32*)
19969       # When not using gcc, we currently assume that we are using
19970       # Microsoft Visual C++.
19971       # hardcode_libdir_flag_spec is actually meaningless, as there is
19972       # no search path for DLLs.
19973       hardcode_libdir_flag_spec_F77=' '
19974       allow_undefined_flag_F77=unsupported
19975       # Tell ltmain to make .lib files, not .a files.
19976       libext=lib
19977       # Tell ltmain to make .dll files, not .so files.
19978       shrext_cmds=".dll"
19979       # FIXME: Setting linknames here is a bad hack.
19980       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19981       # The linker will automatically build a .lib file if we build a DLL.
19982       old_archive_From_new_cmds_F77='true'
19983       # FIXME: Should let the user specify the lib program.
19984       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19985       fix_srcfile_path='`cygpath -w "$srcfile"`'
19986       enable_shared_with_static_runtimes_F77=yes
19987       ;;
19988
19989     darwin* | rhapsody*)
19990       case "$host_os" in
19991         rhapsody* | darwin1.[012])
19992          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19993          ;;
19994        *) # Darwin 1.3 on
19995          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19996            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19997          else
19998            case ${MACOSX_DEPLOYMENT_TARGET} in
19999              10.[012])
20000                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20001                ;;
20002              10.*)
20003                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20004                ;;
20005            esac
20006          fi
20007          ;;
20008       esac
20009       archive_cmds_need_lc_F77=no
20010       hardcode_direct_F77=no
20011       hardcode_automatic_F77=yes
20012       hardcode_shlibpath_var_F77=unsupported
20013       whole_archive_flag_spec_F77=''
20014       link_all_deplibs_F77=yes
20015     if test "$GCC" = yes ; then
20016         output_verbose_link_cmd='echo'
20017         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20018       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20019       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20020       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}'
20021       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}'
20022     else
20023       case "$cc_basename" in
20024         xlc*)
20025          output_verbose_link_cmd='echo'
20026          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20027          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20028           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20029          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}'
20030           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}'
20031           ;;
20032        *)
20033          ld_shlibs_F77=no
20034           ;;
20035       esac
20036     fi
20037       ;;
20038
20039     dgux*)
20040       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20041       hardcode_libdir_flag_spec_F77='-L$libdir'
20042       hardcode_shlibpath_var_F77=no
20043       ;;
20044
20045     freebsd1*)
20046       ld_shlibs_F77=no
20047       ;;
20048
20049     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20050     # support.  Future versions do this automatically, but an explicit c++rt0.o
20051     # does not break anything, and helps significantly (at the cost of a little
20052     # extra space).
20053     freebsd2.2*)
20054       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20055       hardcode_libdir_flag_spec_F77='-R$libdir'
20056       hardcode_direct_F77=yes
20057       hardcode_shlibpath_var_F77=no
20058       ;;
20059
20060     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20061     freebsd2*)
20062       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20063       hardcode_direct_F77=yes
20064       hardcode_minus_L_F77=yes
20065       hardcode_shlibpath_var_F77=no
20066       ;;
20067
20068     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20069     freebsd* | kfreebsd*-gnu)
20070       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20071       hardcode_libdir_flag_spec_F77='-R$libdir'
20072       hardcode_direct_F77=yes
20073       hardcode_shlibpath_var_F77=no
20074       ;;
20075
20076     hpux9*)
20077       if test "$GCC" = yes; then
20078         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'
20079       else
20080         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'
20081       fi
20082       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20083       hardcode_libdir_separator_F77=:
20084       hardcode_direct_F77=yes
20085
20086       # hardcode_minus_L: Not really in the search PATH,
20087       # but as the default location of the library.
20088       hardcode_minus_L_F77=yes
20089       export_dynamic_flag_spec_F77='${wl}-E'
20090       ;;
20091
20092     hpux10* | hpux11*)
20093       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20094         case "$host_cpu" in
20095         hppa*64*|ia64*)
20096           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20097           ;;
20098         *)
20099           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20100           ;;
20101         esac
20102       else
20103         case "$host_cpu" in
20104         hppa*64*|ia64*)
20105           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20106           ;;
20107         *)
20108           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20109           ;;
20110         esac
20111       fi
20112       if test "$with_gnu_ld" = no; then
20113         case "$host_cpu" in
20114         hppa*64*)
20115           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20116           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
20117           hardcode_libdir_separator_F77=:
20118           hardcode_direct_F77=no
20119           hardcode_shlibpath_var_F77=no
20120           ;;
20121         ia64*)
20122           hardcode_libdir_flag_spec_F77='-L$libdir'
20123           hardcode_direct_F77=no
20124           hardcode_shlibpath_var_F77=no
20125
20126           # hardcode_minus_L: Not really in the search PATH,
20127           # but as the default location of the library.
20128           hardcode_minus_L_F77=yes
20129           ;;
20130         *)
20131           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20132           hardcode_libdir_separator_F77=:
20133           hardcode_direct_F77=yes
20134           export_dynamic_flag_spec_F77='${wl}-E'
20135
20136           # hardcode_minus_L: Not really in the search PATH,
20137           # but as the default location of the library.
20138           hardcode_minus_L_F77=yes
20139           ;;
20140         esac
20141       fi
20142       ;;
20143
20144     irix5* | irix6* | nonstopux*)
20145       if test "$GCC" = yes; then
20146         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'
20147       else
20148         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'
20149         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
20150       fi
20151       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20152       hardcode_libdir_separator_F77=:
20153       link_all_deplibs_F77=yes
20154       ;;
20155
20156     netbsd*)
20157       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20158         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
20159       else
20160         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
20161       fi
20162       hardcode_libdir_flag_spec_F77='-R$libdir'
20163       hardcode_direct_F77=yes
20164       hardcode_shlibpath_var_F77=no
20165       ;;
20166
20167     newsos6)
20168       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20169       hardcode_direct_F77=yes
20170       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20171       hardcode_libdir_separator_F77=:
20172       hardcode_shlibpath_var_F77=no
20173       ;;
20174
20175     openbsd*)
20176       hardcode_direct_F77=yes
20177       hardcode_shlibpath_var_F77=no
20178       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20179         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20180         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20181         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20182         export_dynamic_flag_spec_F77='${wl}-E'
20183       else
20184        case $host_os in
20185          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20186            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20187            hardcode_libdir_flag_spec_F77='-R$libdir'
20188            ;;
20189          *)
20190            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20191            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20192            ;;
20193        esac
20194       fi
20195       ;;
20196
20197     os2*)
20198       hardcode_libdir_flag_spec_F77='-L$libdir'
20199       hardcode_minus_L_F77=yes
20200       allow_undefined_flag_F77=unsupported
20201       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'
20202       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20203       ;;
20204
20205     osf3*)
20206       if test "$GCC" = yes; then
20207         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20208         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'
20209       else
20210         allow_undefined_flag_F77=' -expect_unresolved \*'
20211         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'
20212       fi
20213       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20214       hardcode_libdir_separator_F77=:
20215       ;;
20216
20217     osf4* | osf5*)      # as osf3* with the addition of -msym flag
20218       if test "$GCC" = yes; then
20219         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
20220         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'
20221         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
20222       else
20223         allow_undefined_flag_F77=' -expect_unresolved \*'
20224         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'
20225         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~
20226         $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'
20227
20228         # Both c and cxx compiler support -rpath directly
20229         hardcode_libdir_flag_spec_F77='-rpath $libdir'
20230       fi
20231       hardcode_libdir_separator_F77=:
20232       ;;
20233
20234     sco3.2v5*)
20235       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20236       hardcode_shlibpath_var_F77=no
20237       export_dynamic_flag_spec_F77='${wl}-Bexport'
20238       runpath_var=LD_RUN_PATH
20239       hardcode_runpath_var=yes
20240       ;;
20241
20242     solaris*)
20243       no_undefined_flag_F77=' -z text'
20244       if test "$GCC" = yes; then
20245         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20246         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20247           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20248       else
20249         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20250         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20251         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20252       fi
20253       hardcode_libdir_flag_spec_F77='-R$libdir'
20254       hardcode_shlibpath_var_F77=no
20255       case $host_os in
20256       solaris2.[0-5] | solaris2.[0-5].*) ;;
20257       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
20258         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
20259       esac
20260       link_all_deplibs_F77=yes
20261       ;;
20262
20263     sunos4*)
20264       if test "x$host_vendor" = xsequent; then
20265         # Use $CC to link under sequent, because it throws in some extra .o
20266         # files that make .init and .fini sections work.
20267         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20268       else
20269         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20270       fi
20271       hardcode_libdir_flag_spec_F77='-L$libdir'
20272       hardcode_direct_F77=yes
20273       hardcode_minus_L_F77=yes
20274       hardcode_shlibpath_var_F77=no
20275       ;;
20276
20277     sysv4)
20278       case $host_vendor in
20279         sni)
20280           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20281           hardcode_direct_F77=yes # is this really true???
20282         ;;
20283         siemens)
20284           ## LD is ld it makes a PLAMLIB
20285           ## CC just makes a GrossModule.
20286           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20287           reload_cmds_F77='$CC -r -o $output$reload_objs'
20288           hardcode_direct_F77=no
20289         ;;
20290         motorola)
20291           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20292           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20293         ;;
20294       esac
20295       runpath_var='LD_RUN_PATH'
20296       hardcode_shlibpath_var_F77=no
20297       ;;
20298
20299     sysv4.3*)
20300       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20301       hardcode_shlibpath_var_F77=no
20302       export_dynamic_flag_spec_F77='-Bexport'
20303       ;;
20304
20305     sysv4*MP*)
20306       if test -d /usr/nec; then
20307         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20308         hardcode_shlibpath_var_F77=no
20309         runpath_var=LD_RUN_PATH
20310         hardcode_runpath_var=yes
20311         ld_shlibs_F77=yes
20312       fi
20313       ;;
20314
20315     sysv4.2uw2*)
20316       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20317       hardcode_direct_F77=yes
20318       hardcode_minus_L_F77=no
20319       hardcode_shlibpath_var_F77=no
20320       hardcode_runpath_var=yes
20321       runpath_var=LD_RUN_PATH
20322       ;;
20323
20324    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
20325       no_undefined_flag_F77='${wl}-z ${wl}text'
20326       if test "$GCC" = yes; then
20327         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20328       else
20329         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20330       fi
20331       runpath_var='LD_RUN_PATH'
20332       hardcode_shlibpath_var_F77=no
20333       ;;
20334
20335     sysv5*)
20336       no_undefined_flag_F77=' -z text'
20337       # $CC -shared without GNU ld will not create a library from C++
20338       # object files and a static libstdc++, better avoid it by now
20339       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20340       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20341                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20342       hardcode_libdir_flag_spec_F77=
20343       hardcode_shlibpath_var_F77=no
20344       runpath_var='LD_RUN_PATH'
20345       ;;
20346
20347     uts4*)
20348       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20349       hardcode_libdir_flag_spec_F77='-L$libdir'
20350       hardcode_shlibpath_var_F77=no
20351       ;;
20352
20353     *)
20354       ld_shlibs_F77=no
20355       ;;
20356     esac
20357   fi
20358
20359 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20360 echo "${ECHO_T}$ld_shlibs_F77" >&6
20361 test "$ld_shlibs_F77" = no && can_build_shared=no
20362
20363 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20364 if test "$GCC" = yes; then
20365   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20366 fi
20367
20368 #
20369 # Do we need to explicitly link libc?
20370 #
20371 case "x$archive_cmds_need_lc_F77" in
20372 x|xyes)
20373   # Assume -lc should be added
20374   archive_cmds_need_lc_F77=yes
20375
20376   if test "$enable_shared" = yes && test "$GCC" = yes; then
20377     case $archive_cmds_F77 in
20378     *'~'*)
20379       # FIXME: we may have to deal with multi-command sequences.
20380       ;;
20381     '$CC '*)
20382       # Test whether the compiler implicitly links with -lc since on some
20383       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20384       # to ld, don't add -lc before -lgcc.
20385       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20386 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20387       $rm conftest*
20388       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20389
20390       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20391   (eval $ac_compile) 2>&5
20392   ac_status=$?
20393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394   (exit $ac_status); } 2>conftest.err; then
20395         soname=conftest
20396         lib=conftest
20397         libobjs=conftest.$ac_objext
20398         deplibs=
20399         wl=$lt_prog_compiler_wl_F77
20400         compiler_flags=-v
20401         linker_flags=-v
20402         verstring=
20403         output_objdir=.
20404         libname=conftest
20405         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20406         allow_undefined_flag_F77=
20407         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20408   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20409   ac_status=$?
20410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411   (exit $ac_status); }
20412         then
20413           archive_cmds_need_lc_F77=no
20414         else
20415           archive_cmds_need_lc_F77=yes
20416         fi
20417         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20418       else
20419         cat conftest.err 1>&5
20420       fi
20421       $rm conftest*
20422       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20423 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20424       ;;
20425     esac
20426   fi
20427   ;;
20428 esac
20429
20430 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20431 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20432 library_names_spec=
20433 libname_spec='lib$name'
20434 soname_spec=
20435 shrext_cmds=".so"
20436 postinstall_cmds=
20437 postuninstall_cmds=
20438 finish_cmds=
20439 finish_eval=
20440 shlibpath_var=
20441 shlibpath_overrides_runpath=unknown
20442 version_type=none
20443 dynamic_linker="$host_os ld.so"
20444 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20445 if test "$GCC" = yes; then
20446   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20447   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20448     # if the path contains ";" then we assume it to be the separator
20449     # otherwise default to the standard path separator (i.e. ":") - it is
20450     # assumed that no part of a normal pathname contains ";" but that should
20451     # okay in the real world where ";" in dirpaths is itself problematic.
20452     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20453   else
20454     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20455   fi
20456 else
20457   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20458 fi
20459 need_lib_prefix=unknown
20460 hardcode_into_libs=no
20461
20462 # when you set need_version to no, make sure it does not cause -set_version
20463 # flags to be left without arguments
20464 need_version=unknown
20465
20466 case $host_os in
20467 aix3*)
20468   version_type=linux
20469   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20470   shlibpath_var=LIBPATH
20471
20472   # AIX 3 has no versioning support, so we append a major version to the name.
20473   soname_spec='${libname}${release}${shared_ext}$major'
20474   ;;
20475
20476 aix4* | aix5*)
20477   version_type=linux
20478   need_lib_prefix=no
20479   need_version=no
20480   hardcode_into_libs=yes
20481   if test "$host_cpu" = ia64; then
20482     # AIX 5 supports IA64
20483     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20484     shlibpath_var=LD_LIBRARY_PATH
20485   else
20486     # With GCC up to 2.95.x, collect2 would create an import file
20487     # for dependence libraries.  The import file would start with
20488     # the line `#! .'.  This would cause the generated library to
20489     # depend on `.', always an invalid library.  This was fixed in
20490     # development snapshots of GCC prior to 3.0.
20491     case $host_os in
20492       aix4 | aix4.[01] | aix4.[01].*)
20493       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20494            echo ' yes '
20495            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20496         :
20497       else
20498         can_build_shared=no
20499       fi
20500       ;;
20501     esac
20502     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20503     # soname into executable. Probably we can add versioning support to
20504     # collect2, so additional links can be useful in future.
20505     if test "$aix_use_runtimelinking" = yes; then
20506       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20507       # instead of lib<name>.a to let people know that these are not
20508       # typical AIX shared libraries.
20509       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20510     else
20511       # We preserve .a as extension for shared libraries through AIX4.2
20512       # and later when we are not doing run time linking.
20513       library_names_spec='${libname}${release}.a $libname.a'
20514       soname_spec='${libname}${release}${shared_ext}$major'
20515     fi
20516     shlibpath_var=LIBPATH
20517   fi
20518   ;;
20519
20520 amigaos*)
20521   library_names_spec='$libname.ixlibrary $libname.a'
20522   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20523   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'
20524   ;;
20525
20526 beos*)
20527   library_names_spec='${libname}${shared_ext}'
20528   dynamic_linker="$host_os ld.so"
20529   shlibpath_var=LIBRARY_PATH
20530   ;;
20531
20532 bsdi[45]*)
20533   version_type=linux
20534   need_version=no
20535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20536   soname_spec='${libname}${release}${shared_ext}$major'
20537   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20538   shlibpath_var=LD_LIBRARY_PATH
20539   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20540   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20541   # the default ld.so.conf also contains /usr/contrib/lib and
20542   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20543   # libtool to hard-code these into programs
20544   ;;
20545
20546 cygwin* | mingw* | pw32*)
20547   version_type=windows
20548   shrext_cmds=".dll"
20549   need_version=no
20550   need_lib_prefix=no
20551
20552   case $GCC,$host_os in
20553   yes,cygwin* | yes,mingw* | yes,pw32*)
20554     library_names_spec='$libname.dll.a'
20555     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20556     postinstall_cmds='base_file=`basename \${file}`~
20557       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20558       dldir=$destdir/`dirname \$dlpath`~
20559       test -d \$dldir || mkdir -p \$dldir~
20560       $install_prog $dir/$dlname \$dldir/$dlname'
20561     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20562       dlpath=$dir/\$dldll~
20563        $rm \$dlpath'
20564     shlibpath_overrides_runpath=yes
20565
20566     case $host_os in
20567     cygwin*)
20568       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20569       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20570       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20571       ;;
20572     mingw*)
20573       # MinGW DLLs use traditional 'lib' prefix
20574       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20575       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20576       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20577         # It is most probably a Windows format PATH printed by
20578         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20579         # path with ; separators, and with drive letters. We can handle the
20580         # drive letters (cygwin fileutils understands them), so leave them,
20581         # especially as we might pass files found there to a mingw objdump,
20582         # which wouldn't understand a cygwinified path. Ahh.
20583         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20584       else
20585         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20586       fi
20587       ;;
20588     pw32*)
20589       # pw32 DLLs use 'pw' prefix rather than 'lib'
20590       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20591       ;;
20592     esac
20593     ;;
20594
20595   *)
20596     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20597     ;;
20598   esac
20599   dynamic_linker='Win32 ld.exe'
20600   # FIXME: first we should search . and the directory the executable is in
20601   shlibpath_var=PATH
20602   ;;
20603
20604 darwin* | rhapsody*)
20605   dynamic_linker="$host_os dyld"
20606   version_type=darwin
20607   need_lib_prefix=no
20608   need_version=no
20609   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20610   soname_spec='${libname}${release}${major}$shared_ext'
20611   shlibpath_overrides_runpath=yes
20612   shlibpath_var=DYLD_LIBRARY_PATH
20613   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20614   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20615   if test "$GCC" = yes; then
20616     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"`
20617   else
20618     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20619   fi
20620   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20621   ;;
20622
20623 dgux*)
20624   version_type=linux
20625   need_lib_prefix=no
20626   need_version=no
20627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20628   soname_spec='${libname}${release}${shared_ext}$major'
20629   shlibpath_var=LD_LIBRARY_PATH
20630   ;;
20631
20632 freebsd1*)
20633   dynamic_linker=no
20634   ;;
20635
20636 kfreebsd*-gnu)
20637   version_type=linux
20638   need_lib_prefix=no
20639   need_version=no
20640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20641   soname_spec='${libname}${release}${shared_ext}$major'
20642   shlibpath_var=LD_LIBRARY_PATH
20643   shlibpath_overrides_runpath=no
20644   hardcode_into_libs=yes
20645   dynamic_linker='GNU ld.so'
20646   ;;
20647
20648 freebsd*)
20649   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20650   version_type=freebsd-$objformat
20651   case $version_type in
20652     freebsd-elf*)
20653       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20654       need_version=no
20655       need_lib_prefix=no
20656       ;;
20657     freebsd-*)
20658       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20659       need_version=yes
20660       ;;
20661   esac
20662   shlibpath_var=LD_LIBRARY_PATH
20663   case $host_os in
20664   freebsd2*)
20665     shlibpath_overrides_runpath=yes
20666     ;;
20667   freebsd3.01* | freebsdelf3.01*)
20668     shlibpath_overrides_runpath=yes
20669     hardcode_into_libs=yes
20670     ;;
20671   *) # from 3.2 on
20672     shlibpath_overrides_runpath=no
20673     hardcode_into_libs=yes
20674     ;;
20675   esac
20676   ;;
20677
20678 gnu*)
20679   version_type=linux
20680   need_lib_prefix=no
20681   need_version=no
20682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20683   soname_spec='${libname}${release}${shared_ext}$major'
20684   shlibpath_var=LD_LIBRARY_PATH
20685   hardcode_into_libs=yes
20686   ;;
20687
20688 hpux9* | hpux10* | hpux11*)
20689   # Give a soname corresponding to the major version so that dld.sl refuses to
20690   # link against other versions.
20691   version_type=sunos
20692   need_lib_prefix=no
20693   need_version=no
20694   case "$host_cpu" in
20695   ia64*)
20696     shrext_cmds='.so'
20697     hardcode_into_libs=yes
20698     dynamic_linker="$host_os dld.so"
20699     shlibpath_var=LD_LIBRARY_PATH
20700     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20701     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20702     soname_spec='${libname}${release}${shared_ext}$major'
20703     if test "X$HPUX_IA64_MODE" = X32; then
20704       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20705     else
20706       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20707     fi
20708     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20709     ;;
20710    hppa*64*)
20711      shrext_cmds='.sl'
20712      hardcode_into_libs=yes
20713      dynamic_linker="$host_os dld.sl"
20714      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20715      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20716      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20717      soname_spec='${libname}${release}${shared_ext}$major'
20718      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20719      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20720      ;;
20721    *)
20722     shrext_cmds='.sl'
20723     dynamic_linker="$host_os dld.sl"
20724     shlibpath_var=SHLIB_PATH
20725     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20726     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20727     soname_spec='${libname}${release}${shared_ext}$major'
20728     ;;
20729   esac
20730   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20731   postinstall_cmds='chmod 555 $lib'
20732   ;;
20733
20734 irix5* | irix6* | nonstopux*)
20735   case $host_os in
20736     nonstopux*) version_type=nonstopux ;;
20737     *)
20738         if test "$lt_cv_prog_gnu_ld" = yes; then
20739                 version_type=linux
20740         else
20741                 version_type=irix
20742         fi ;;
20743   esac
20744   need_lib_prefix=no
20745   need_version=no
20746   soname_spec='${libname}${release}${shared_ext}$major'
20747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20748   case $host_os in
20749   irix5* | nonstopux*)
20750     libsuff= shlibsuff=
20751     ;;
20752   *)
20753     case $LD in # libtool.m4 will add one of these switches to LD
20754     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20755       libsuff= shlibsuff= libmagic=32-bit;;
20756     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20757       libsuff=32 shlibsuff=N32 libmagic=N32;;
20758     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20759       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20760     *) libsuff= shlibsuff= libmagic=never-match;;
20761     esac
20762     ;;
20763   esac
20764   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20765   shlibpath_overrides_runpath=no
20766   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20767   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20768   hardcode_into_libs=yes
20769   ;;
20770
20771 # No shared lib support for Linux oldld, aout, or coff.
20772 linux*oldld* | linux*aout* | linux*coff*)
20773   dynamic_linker=no
20774   ;;
20775
20776 # This must be Linux ELF.
20777 linux*)
20778   version_type=linux
20779   need_lib_prefix=no
20780   need_version=no
20781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20782   soname_spec='${libname}${release}${shared_ext}$major'
20783   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20784   shlibpath_var=LD_LIBRARY_PATH
20785   shlibpath_overrides_runpath=no
20786   # This implies no fast_install, which is unacceptable.
20787   # Some rework will be needed to allow for fast_install
20788   # before this can be enabled.
20789   hardcode_into_libs=yes
20790
20791   # Append ld.so.conf contents to the search path
20792   if test -f /etc/ld.so.conf; then
20793     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20794     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20795   fi
20796
20797   # We used to test for /lib/ld.so.1 and disable shared libraries on
20798   # powerpc, because MkLinux only supported shared libraries with the
20799   # GNU dynamic linker.  Since this was broken with cross compilers,
20800   # most powerpc-linux boxes support dynamic linking these days and
20801   # people can always --disable-shared, the test was removed, and we
20802   # assume the GNU/Linux dynamic linker is in use.
20803   dynamic_linker='GNU/Linux ld.so'
20804   ;;
20805
20806 knetbsd*-gnu)
20807   version_type=linux
20808   need_lib_prefix=no
20809   need_version=no
20810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20811   soname_spec='${libname}${release}${shared_ext}$major'
20812   shlibpath_var=LD_LIBRARY_PATH
20813   shlibpath_overrides_runpath=no
20814   hardcode_into_libs=yes
20815   dynamic_linker='GNU ld.so'
20816   ;;
20817
20818 netbsd*)
20819   version_type=sunos
20820   need_lib_prefix=no
20821   need_version=no
20822   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20823     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20824     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20825     dynamic_linker='NetBSD (a.out) ld.so'
20826   else
20827     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20828     soname_spec='${libname}${release}${shared_ext}$major'
20829     dynamic_linker='NetBSD ld.elf_so'
20830   fi
20831   shlibpath_var=LD_LIBRARY_PATH
20832   shlibpath_overrides_runpath=yes
20833   hardcode_into_libs=yes
20834   ;;
20835
20836 newsos6)
20837   version_type=linux
20838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20839   shlibpath_var=LD_LIBRARY_PATH
20840   shlibpath_overrides_runpath=yes
20841   ;;
20842
20843 nto-qnx*)
20844   version_type=linux
20845   need_lib_prefix=no
20846   need_version=no
20847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20848   soname_spec='${libname}${release}${shared_ext}$major'
20849   shlibpath_var=LD_LIBRARY_PATH
20850   shlibpath_overrides_runpath=yes
20851   ;;
20852
20853 openbsd*)
20854   version_type=sunos
20855   need_lib_prefix=no
20856   need_version=no
20857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20858   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20859   shlibpath_var=LD_LIBRARY_PATH
20860   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20861     case $host_os in
20862       openbsd2.[89] | openbsd2.[89].*)
20863         shlibpath_overrides_runpath=no
20864         ;;
20865       *)
20866         shlibpath_overrides_runpath=yes
20867         ;;
20868       esac
20869   else
20870     shlibpath_overrides_runpath=yes
20871   fi
20872   ;;
20873
20874 os2*)
20875   libname_spec='$name'
20876   shrext_cmds=".dll"
20877   need_lib_prefix=no
20878   library_names_spec='$libname${shared_ext} $libname.a'
20879   dynamic_linker='OS/2 ld.exe'
20880   shlibpath_var=LIBPATH
20881   ;;
20882
20883 osf3* | osf4* | osf5*)
20884   version_type=osf
20885   need_lib_prefix=no
20886   need_version=no
20887   soname_spec='${libname}${release}${shared_ext}$major'
20888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20889   shlibpath_var=LD_LIBRARY_PATH
20890   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20891   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20892   ;;
20893
20894 sco3.2v5*)
20895   version_type=osf
20896   soname_spec='${libname}${release}${shared_ext}$major'
20897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20898   shlibpath_var=LD_LIBRARY_PATH
20899   ;;
20900
20901 solaris*)
20902   version_type=linux
20903   need_lib_prefix=no
20904   need_version=no
20905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20906   soname_spec='${libname}${release}${shared_ext}$major'
20907   shlibpath_var=LD_LIBRARY_PATH
20908   shlibpath_overrides_runpath=yes
20909   hardcode_into_libs=yes
20910   # ldd complains unless libraries are executable
20911   postinstall_cmds='chmod +x $lib'
20912   ;;
20913
20914 sunos4*)
20915   version_type=sunos
20916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20917   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20918   shlibpath_var=LD_LIBRARY_PATH
20919   shlibpath_overrides_runpath=yes
20920   if test "$with_gnu_ld" = yes; then
20921     need_lib_prefix=no
20922   fi
20923   need_version=yes
20924   ;;
20925
20926 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20927   version_type=linux
20928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20929   soname_spec='${libname}${release}${shared_ext}$major'
20930   shlibpath_var=LD_LIBRARY_PATH
20931   case $host_vendor in
20932     sni)
20933       shlibpath_overrides_runpath=no
20934       need_lib_prefix=no
20935       export_dynamic_flag_spec='${wl}-Blargedynsym'
20936       runpath_var=LD_RUN_PATH
20937       ;;
20938     siemens)
20939       need_lib_prefix=no
20940       ;;
20941     motorola)
20942       need_lib_prefix=no
20943       need_version=no
20944       shlibpath_overrides_runpath=no
20945       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20946       ;;
20947   esac
20948   ;;
20949
20950 sysv4*MP*)
20951   if test -d /usr/nec ;then
20952     version_type=linux
20953     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20954     soname_spec='$libname${shared_ext}.$major'
20955     shlibpath_var=LD_LIBRARY_PATH
20956   fi
20957   ;;
20958
20959 uts4*)
20960   version_type=linux
20961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20962   soname_spec='${libname}${release}${shared_ext}$major'
20963   shlibpath_var=LD_LIBRARY_PATH
20964   ;;
20965
20966 *)
20967   dynamic_linker=no
20968   ;;
20969 esac
20970 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20971 echo "${ECHO_T}$dynamic_linker" >&6
20972 test "$dynamic_linker" = no && can_build_shared=no
20973
20974 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20975 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20976 hardcode_action_F77=
20977 if test -n "$hardcode_libdir_flag_spec_F77" || \
20978    test -n "$runpath_var_F77" || \
20979    test "X$hardcode_automatic_F77" = "Xyes" ; then
20980
20981   # We can hardcode non-existant directories.
20982   if test "$hardcode_direct_F77" != no &&
20983      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20984      # have to relink, otherwise we might link with an installed library
20985      # when we should be linking with a yet-to-be-installed one
20986      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20987      test "$hardcode_minus_L_F77" != no; then
20988     # Linking always hardcodes the temporary library directory.
20989     hardcode_action_F77=relink
20990   else
20991     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20992     hardcode_action_F77=immediate
20993   fi
20994 else
20995   # We cannot hardcode anything, or else we can only hardcode existing
20996   # directories.
20997   hardcode_action_F77=unsupported
20998 fi
20999 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
21000 echo "${ECHO_T}$hardcode_action_F77" >&6
21001
21002 if test "$hardcode_action_F77" = relink; then
21003   # Fast installation is not supported
21004   enable_fast_install=no
21005 elif test "$shlibpath_overrides_runpath" = yes ||
21006      test "$enable_shared" = no; then
21007   # Fast installation is not necessary
21008   enable_fast_install=needless
21009 fi
21010
21011 striplib=
21012 old_striplib=
21013 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21014 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21015 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21016   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21017   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21018   echo "$as_me:$LINENO: result: yes" >&5
21019 echo "${ECHO_T}yes" >&6
21020 else
21021 # FIXME - insert some real tests, host_os isn't really good enough
21022   case $host_os in
21023    darwin*)
21024        if test -n "$STRIP" ; then
21025          striplib="$STRIP -x"
21026          echo "$as_me:$LINENO: result: yes" >&5
21027 echo "${ECHO_T}yes" >&6
21028        else
21029   echo "$as_me:$LINENO: result: no" >&5
21030 echo "${ECHO_T}no" >&6
21031 fi
21032        ;;
21033    *)
21034   echo "$as_me:$LINENO: result: no" >&5
21035 echo "${ECHO_T}no" >&6
21036     ;;
21037   esac
21038 fi
21039
21040
21041
21042 # The else clause should only fire when bootstrapping the
21043 # libtool distribution, otherwise you forgot to ship ltmain.sh
21044 # with your package, and you will get complaints that there are
21045 # no rules to generate ltmain.sh.
21046 if test -f "$ltmain"; then
21047   # See if we are running on zsh, and set the options which allow our commands through
21048   # without removal of \ escapes.
21049   if test -n "${ZSH_VERSION+set}" ; then
21050     setopt NO_GLOB_SUBST
21051   fi
21052   # Now quote all the things that may contain metacharacters while being
21053   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21054   # variables and quote the copies for generation of the libtool script.
21055   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21056     SED SHELL STRIP \
21057     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21058     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21059     deplibs_check_method reload_flag reload_cmds need_locks \
21060     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21061     lt_cv_sys_global_symbol_to_c_name_address \
21062     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21063     old_postinstall_cmds old_postuninstall_cmds \
21064     compiler_F77 \
21065     CC_F77 \
21066     LD_F77 \
21067     lt_prog_compiler_wl_F77 \
21068     lt_prog_compiler_pic_F77 \
21069     lt_prog_compiler_static_F77 \
21070     lt_prog_compiler_no_builtin_flag_F77 \
21071     export_dynamic_flag_spec_F77 \
21072     thread_safe_flag_spec_F77 \
21073     whole_archive_flag_spec_F77 \
21074     enable_shared_with_static_runtimes_F77 \
21075     old_archive_cmds_F77 \
21076     old_archive_from_new_cmds_F77 \
21077     predep_objects_F77 \
21078     postdep_objects_F77 \
21079     predeps_F77 \
21080     postdeps_F77 \
21081     compiler_lib_search_path_F77 \
21082     archive_cmds_F77 \
21083     archive_expsym_cmds_F77 \
21084     postinstall_cmds_F77 \
21085     postuninstall_cmds_F77 \
21086     old_archive_from_expsyms_cmds_F77 \
21087     allow_undefined_flag_F77 \
21088     no_undefined_flag_F77 \
21089     export_symbols_cmds_F77 \
21090     hardcode_libdir_flag_spec_F77 \
21091     hardcode_libdir_flag_spec_ld_F77 \
21092     hardcode_libdir_separator_F77 \
21093     hardcode_automatic_F77 \
21094     module_cmds_F77 \
21095     module_expsym_cmds_F77 \
21096     lt_cv_prog_compiler_c_o_F77 \
21097     exclude_expsyms_F77 \
21098     include_expsyms_F77; do
21099
21100     case $var in
21101     old_archive_cmds_F77 | \
21102     old_archive_from_new_cmds_F77 | \
21103     archive_cmds_F77 | \
21104     archive_expsym_cmds_F77 | \
21105     module_cmds_F77 | \
21106     module_expsym_cmds_F77 | \
21107     old_archive_from_expsyms_cmds_F77 | \
21108     export_symbols_cmds_F77 | \
21109     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21110     postinstall_cmds | postuninstall_cmds | \
21111     old_postinstall_cmds | old_postuninstall_cmds | \
21112     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21113       # Double-quote double-evaled strings.
21114       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21115       ;;
21116     *)
21117       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21118       ;;
21119     esac
21120   done
21121
21122   case $lt_echo in
21123   *'\$0 --fallback-echo"')
21124     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21125     ;;
21126   esac
21127
21128 cfgfile="$ofile"
21129
21130   cat <<__EOF__ >> "$cfgfile"
21131 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21132
21133 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21134
21135 # Shell to use when invoking shell scripts.
21136 SHELL=$lt_SHELL
21137
21138 # Whether or not to build shared libraries.
21139 build_libtool_libs=$enable_shared
21140
21141 # Whether or not to build static libraries.
21142 build_old_libs=$enable_static
21143
21144 # Whether or not to add -lc for building shared libraries.
21145 build_libtool_need_lc=$archive_cmds_need_lc_F77
21146
21147 # Whether or not to disallow shared libs when runtime libs are static
21148 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
21149
21150 # Whether or not to optimize for fast installation.
21151 fast_install=$enable_fast_install
21152
21153 # The host system.
21154 host_alias=$host_alias
21155 host=$host
21156
21157 # An echo program that does not interpret backslashes.
21158 echo=$lt_echo
21159
21160 # The archiver.
21161 AR=$lt_AR
21162 AR_FLAGS=$lt_AR_FLAGS
21163
21164 # A C compiler.
21165 LTCC=$lt_LTCC
21166
21167 # A language-specific compiler.
21168 CC=$lt_compiler_F77
21169
21170 # Is the compiler the GNU C compiler?
21171 with_gcc=$GCC_F77
21172
21173 # An ERE matcher.
21174 EGREP=$lt_EGREP
21175
21176 # The linker used to build libraries.
21177 LD=$lt_LD_F77
21178
21179 # Whether we need hard or soft links.
21180 LN_S=$lt_LN_S
21181
21182 # A BSD-compatible nm program.
21183 NM=$lt_NM
21184
21185 # A symbol stripping program
21186 STRIP=$lt_STRIP
21187
21188 # Used to examine libraries when file_magic_cmd begins "file"
21189 MAGIC_CMD=$MAGIC_CMD
21190
21191 # Used on cygwin: DLL creation program.
21192 DLLTOOL="$DLLTOOL"
21193
21194 # Used on cygwin: object dumper.
21195 OBJDUMP="$OBJDUMP"
21196
21197 # Used on cygwin: assembler.
21198 AS="$AS"
21199
21200 # The name of the directory that contains temporary libtool files.
21201 objdir=$objdir
21202
21203 # How to create reloadable object files.
21204 reload_flag=$lt_reload_flag
21205 reload_cmds=$lt_reload_cmds
21206
21207 # How to pass a linker flag through the compiler.
21208 wl=$lt_lt_prog_compiler_wl_F77
21209
21210 # Object file suffix (normally "o").
21211 objext="$ac_objext"
21212
21213 # Old archive suffix (normally "a").
21214 libext="$libext"
21215
21216 # Shared library suffix (normally ".so").
21217 shrext_cmds='$shrext_cmds'
21218
21219 # Executable file suffix (normally "").
21220 exeext="$exeext"
21221
21222 # Additional compiler flags for building library objects.
21223 pic_flag=$lt_lt_prog_compiler_pic_F77
21224 pic_mode=$pic_mode
21225
21226 # What is the maximum length of a command?
21227 max_cmd_len=$lt_cv_sys_max_cmd_len
21228
21229 # Does compiler simultaneously support -c and -o options?
21230 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21231
21232 # Must we lock files when doing compilation ?
21233 need_locks=$lt_need_locks
21234
21235 # Do we need the lib prefix for modules?
21236 need_lib_prefix=$need_lib_prefix
21237
21238 # Do we need a version for libraries?
21239 need_version=$need_version
21240
21241 # Whether dlopen is supported.
21242 dlopen_support=$enable_dlopen
21243
21244 # Whether dlopen of programs is supported.
21245 dlopen_self=$enable_dlopen_self
21246
21247 # Whether dlopen of statically linked programs is supported.
21248 dlopen_self_static=$enable_dlopen_self_static
21249
21250 # Compiler flag to prevent dynamic linking.
21251 link_static_flag=$lt_lt_prog_compiler_static_F77
21252
21253 # Compiler flag to turn off builtin functions.
21254 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21255
21256 # Compiler flag to allow reflexive dlopens.
21257 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21258
21259 # Compiler flag to generate shared objects directly from archives.
21260 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21261
21262 # Compiler flag to generate thread-safe objects.
21263 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21264
21265 # Library versioning type.
21266 version_type=$version_type
21267
21268 # Format of library name prefix.
21269 libname_spec=$lt_libname_spec
21270
21271 # List of archive names.  First name is the real one, the rest are links.
21272 # The last name is the one that the linker finds with -lNAME.
21273 library_names_spec=$lt_library_names_spec
21274
21275 # The coded name of the library, if different from the real name.
21276 soname_spec=$lt_soname_spec
21277
21278 # Commands used to build and install an old-style archive.
21279 RANLIB=$lt_RANLIB
21280 old_archive_cmds=$lt_old_archive_cmds_F77
21281 old_postinstall_cmds=$lt_old_postinstall_cmds
21282 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21283
21284 # Create an old-style archive from a shared archive.
21285 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21286
21287 # Create a temporary old-style archive to link instead of a shared archive.
21288 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21289
21290 # Commands used to build and install a shared archive.
21291 archive_cmds=$lt_archive_cmds_F77
21292 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21293 postinstall_cmds=$lt_postinstall_cmds
21294 postuninstall_cmds=$lt_postuninstall_cmds
21295
21296 # Commands used to build a loadable module (assumed same as above if empty)
21297 module_cmds=$lt_module_cmds_F77
21298 module_expsym_cmds=$lt_module_expsym_cmds_F77
21299
21300 # Commands to strip libraries.
21301 old_striplib=$lt_old_striplib
21302 striplib=$lt_striplib
21303
21304 # Dependencies to place before the objects being linked to create a
21305 # shared library.
21306 predep_objects=$lt_predep_objects_F77
21307
21308 # Dependencies to place after the objects being linked to create a
21309 # shared library.
21310 postdep_objects=$lt_postdep_objects_F77
21311
21312 # Dependencies to place before the objects being linked to create a
21313 # shared library.
21314 predeps=$lt_predeps_F77
21315
21316 # Dependencies to place after the objects being linked to create a
21317 # shared library.
21318 postdeps=$lt_postdeps_F77
21319
21320 # The library search path used internally by the compiler when linking
21321 # a shared library.
21322 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21323
21324 # Method to check whether dependent libraries are shared objects.
21325 deplibs_check_method=$lt_deplibs_check_method
21326
21327 # Command to use when deplibs_check_method == file_magic.
21328 file_magic_cmd=$lt_file_magic_cmd
21329
21330 # Flag that allows shared libraries with undefined symbols to be built.
21331 allow_undefined_flag=$lt_allow_undefined_flag_F77
21332
21333 # Flag that forces no undefined symbols.
21334 no_undefined_flag=$lt_no_undefined_flag_F77
21335
21336 # Commands used to finish a libtool library installation in a directory.
21337 finish_cmds=$lt_finish_cmds
21338
21339 # Same as above, but a single script fragment to be evaled but not shown.
21340 finish_eval=$lt_finish_eval
21341
21342 # Take the output of nm and produce a listing of raw symbols and C names.
21343 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21344
21345 # Transform the output of nm in a proper C declaration
21346 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21347
21348 # Transform the output of nm in a C name address pair
21349 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21350
21351 # This is the shared library runtime path variable.
21352 runpath_var=$runpath_var
21353
21354 # This is the shared library path variable.
21355 shlibpath_var=$shlibpath_var
21356
21357 # Is shlibpath searched before the hard-coded library search path?
21358 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21359
21360 # How to hardcode a shared library path into an executable.
21361 hardcode_action=$hardcode_action_F77
21362
21363 # Whether we should hardcode library paths into libraries.
21364 hardcode_into_libs=$hardcode_into_libs
21365
21366 # Flag to hardcode \$libdir into a binary during linking.
21367 # This must work even if \$libdir does not exist.
21368 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21369
21370 # If ld is used when linking, flag to hardcode \$libdir into
21371 # a binary during linking. This must work even if \$libdir does
21372 # not exist.
21373 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21374
21375 # Whether we need a single -rpath flag with a separated argument.
21376 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21377
21378 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21379 # resulting binary.
21380 hardcode_direct=$hardcode_direct_F77
21381
21382 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21383 # resulting binary.
21384 hardcode_minus_L=$hardcode_minus_L_F77
21385
21386 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21387 # the resulting binary.
21388 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21389
21390 # Set to yes if building a shared library automatically hardcodes DIR into the library
21391 # and all subsequent libraries and executables linked against it.
21392 hardcode_automatic=$hardcode_automatic_F77
21393
21394 # Variables whose values should be saved in libtool wrapper scripts and
21395 # restored at relink time.
21396 variables_saved_for_relink="$variables_saved_for_relink"
21397
21398 # Whether libtool must link a program against all its dependency libraries.
21399 link_all_deplibs=$link_all_deplibs_F77
21400
21401 # Compile-time system search path for libraries
21402 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21403
21404 # Run-time system search path for libraries
21405 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21406
21407 # Fix the shell variable \$srcfile for the compiler.
21408 fix_srcfile_path="$fix_srcfile_path_F77"
21409
21410 # Set to yes if exported symbols are required.
21411 always_export_symbols=$always_export_symbols_F77
21412
21413 # The commands to list exported symbols.
21414 export_symbols_cmds=$lt_export_symbols_cmds_F77
21415
21416 # The commands to extract the exported symbol list from a shared archive.
21417 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21418
21419 # Symbols that should not be listed in the preloaded symbols.
21420 exclude_expsyms=$lt_exclude_expsyms_F77
21421
21422 # Symbols that must always be exported.
21423 include_expsyms=$lt_include_expsyms_F77
21424
21425 # ### END LIBTOOL TAG CONFIG: $tagname
21426
21427 __EOF__
21428
21429
21430 else
21431   # If there is no Makefile yet, we rely on a make rule to execute
21432   # `config.status --recheck' to rerun these tests and create the
21433   # libtool script then.
21434   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21435   if test -f "$ltmain_in"; then
21436     test -f Makefile && make "$ltmain"
21437   fi
21438 fi
21439
21440
21441 ac_ext=c
21442 ac_cpp='$CPP $CPPFLAGS'
21443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21446
21447 CC="$lt_save_CC"
21448
21449         else
21450           tagname=""
21451         fi
21452         ;;
21453
21454       GCJ)
21455         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21456           ac_ext=c
21457 ac_cpp='$CPP $CPPFLAGS'
21458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21461
21462
21463 # Source file extension for Java test sources.
21464 ac_ext=java
21465
21466 # Object file extension for compiled Java test sources.
21467 objext=o
21468 objext_GCJ=$objext
21469
21470 # Code to be used in simple compile tests
21471 lt_simple_compile_test_code="class foo {}\n"
21472
21473 # Code to be used in simple link tests
21474 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21475
21476 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21477
21478 # If no C compiler was specified, use CC.
21479 LTCC=${LTCC-"$CC"}
21480
21481 # Allow CC to be a program name with arguments.
21482 compiler=$CC
21483
21484
21485 # Allow CC to be a program name with arguments.
21486 lt_save_CC="$CC"
21487 CC=${GCJ-"gcj"}
21488 compiler=$CC
21489 compiler_GCJ=$CC
21490
21491 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21492 archive_cmds_need_lc_GCJ=no
21493
21494
21495 lt_prog_compiler_no_builtin_flag_GCJ=
21496
21497 if test "$GCC" = yes; then
21498   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21499
21500
21501 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21502 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21503 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21504   echo $ECHO_N "(cached) $ECHO_C" >&6
21505 else
21506   lt_cv_prog_compiler_rtti_exceptions=no
21507   ac_outfile=conftest.$ac_objext
21508    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21509    lt_compiler_flag="-fno-rtti -fno-exceptions"
21510    # Insert the option either (1) after the last *FLAGS variable, or
21511    # (2) before a word containing "conftest.", or (3) at the end.
21512    # Note that $ac_compile itself does not contain backslashes and begins
21513    # with a dollar sign (not a hyphen), so the echo should work correctly.
21514    # The option is referenced via a variable to avoid confusing sed.
21515    lt_compile=`echo "$ac_compile" | $SED \
21516    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21517    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21518    -e 's:$: $lt_compiler_flag:'`
21519    (eval echo "\"\$as_me:21519: $lt_compile\"" >&5)
21520    (eval "$lt_compile" 2>conftest.err)
21521    ac_status=$?
21522    cat conftest.err >&5
21523    echo "$as_me:21523: \$? = $ac_status" >&5
21524    if (exit $ac_status) && test -s "$ac_outfile"; then
21525      # The compiler can only warn and ignore the option if not recognized
21526      # So say no if there are warnings
21527      if test ! -s conftest.err; then
21528        lt_cv_prog_compiler_rtti_exceptions=yes
21529      fi
21530    fi
21531    $rm conftest*
21532
21533 fi
21534 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21535 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21536
21537 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21538     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21539 else
21540     :
21541 fi
21542
21543 fi
21544
21545 lt_prog_compiler_wl_GCJ=
21546 lt_prog_compiler_pic_GCJ=
21547 lt_prog_compiler_static_GCJ=
21548
21549 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21550 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21551
21552   if test "$GCC" = yes; then
21553     lt_prog_compiler_wl_GCJ='-Wl,'
21554     lt_prog_compiler_static_GCJ='-static'
21555
21556     case $host_os in
21557       aix*)
21558       # All AIX code is PIC.
21559       if test "$host_cpu" = ia64; then
21560         # AIX 5 now supports IA64 processor
21561         lt_prog_compiler_static_GCJ='-Bstatic'
21562       fi
21563       ;;
21564
21565     amigaos*)
21566       # FIXME: we need at least 68020 code to build shared libraries, but
21567       # adding the `-m68020' flag to GCC prevents building anything better,
21568       # like `-m68040'.
21569       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21570       ;;
21571
21572     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21573       # PIC is the default for these OSes.
21574       ;;
21575
21576     mingw* | pw32* | os2*)
21577       # This hack is so that the source file can tell whether it is being
21578       # built for inclusion in a dll (and should export symbols for example).
21579       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21580       ;;
21581
21582     darwin* | rhapsody*)
21583       # PIC is the default on this platform
21584       # Common symbols not allowed in MH_DYLIB files
21585       lt_prog_compiler_pic_GCJ='-fno-common'
21586       ;;
21587
21588     msdosdjgpp*)
21589       # Just because we use GCC doesn't mean we suddenly get shared libraries
21590       # on systems that don't support them.
21591       lt_prog_compiler_can_build_shared_GCJ=no
21592       enable_shared=no
21593       ;;
21594
21595     sysv4*MP*)
21596       if test -d /usr/nec; then
21597         lt_prog_compiler_pic_GCJ=-Kconform_pic
21598       fi
21599       ;;
21600
21601     hpux*)
21602       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21603       # not for PA HP-UX.
21604       case "$host_cpu" in
21605       hppa*64*|ia64*)
21606         # +Z the default
21607         ;;
21608       *)
21609         lt_prog_compiler_pic_GCJ='-fPIC'
21610         ;;
21611       esac
21612       ;;
21613
21614     *)
21615       lt_prog_compiler_pic_GCJ='-fPIC'
21616       ;;
21617     esac
21618   else
21619     # PORTME Check for flag to pass linker flags through the system compiler.
21620     case $host_os in
21621     aix*)
21622       lt_prog_compiler_wl_GCJ='-Wl,'
21623       if test "$host_cpu" = ia64; then
21624         # AIX 5 now supports IA64 processor
21625         lt_prog_compiler_static_GCJ='-Bstatic'
21626       else
21627         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21628       fi
21629       ;;
21630       darwin*)
21631         # PIC is the default on this platform
21632         # Common symbols not allowed in MH_DYLIB files
21633        case "$cc_basename" in
21634          xlc*)
21635          lt_prog_compiler_pic_GCJ='-qnocommon'
21636          lt_prog_compiler_wl_GCJ='-Wl,'
21637          ;;
21638        esac
21639        ;;
21640
21641     mingw* | pw32* | os2*)
21642       # This hack is so that the source file can tell whether it is being
21643       # built for inclusion in a dll (and should export symbols for example).
21644       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21645       ;;
21646
21647     hpux9* | hpux10* | hpux11*)
21648       lt_prog_compiler_wl_GCJ='-Wl,'
21649       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21650       # not for PA HP-UX.
21651       case "$host_cpu" in
21652       hppa*64*|ia64*)
21653         # +Z the default
21654         ;;
21655       *)
21656         lt_prog_compiler_pic_GCJ='+Z'
21657         ;;
21658       esac
21659       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21660       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21661       ;;
21662
21663     irix5* | irix6* | nonstopux*)
21664       lt_prog_compiler_wl_GCJ='-Wl,'
21665       # PIC (with -KPIC) is the default.
21666       lt_prog_compiler_static_GCJ='-non_shared'
21667       ;;
21668
21669     newsos6)
21670       lt_prog_compiler_pic_GCJ='-KPIC'
21671       lt_prog_compiler_static_GCJ='-Bstatic'
21672       ;;
21673
21674     linux*)
21675       case $CC in
21676       icc* | ecc*)
21677         lt_prog_compiler_wl_GCJ='-Wl,'
21678         lt_prog_compiler_pic_GCJ='-KPIC'
21679         lt_prog_compiler_static_GCJ='-static'
21680         ;;
21681       ccc*)
21682         lt_prog_compiler_wl_GCJ='-Wl,'
21683         # All Alpha code is PIC.
21684         lt_prog_compiler_static_GCJ='-non_shared'
21685         ;;
21686       esac
21687       ;;
21688
21689     osf3* | osf4* | osf5*)
21690       lt_prog_compiler_wl_GCJ='-Wl,'
21691       # All OSF/1 code is PIC.
21692       lt_prog_compiler_static_GCJ='-non_shared'
21693       ;;
21694
21695     sco3.2v5*)
21696       lt_prog_compiler_pic_GCJ='-Kpic'
21697       lt_prog_compiler_static_GCJ='-dn'
21698       ;;
21699
21700     solaris*)
21701       lt_prog_compiler_wl_GCJ='-Wl,'
21702       lt_prog_compiler_pic_GCJ='-KPIC'
21703       lt_prog_compiler_static_GCJ='-Bstatic'
21704       ;;
21705
21706     sunos4*)
21707       lt_prog_compiler_wl_GCJ='-Qoption ld '
21708       lt_prog_compiler_pic_GCJ='-PIC'
21709       lt_prog_compiler_static_GCJ='-Bstatic'
21710       ;;
21711
21712     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21713       lt_prog_compiler_wl_GCJ='-Wl,'
21714       lt_prog_compiler_pic_GCJ='-KPIC'
21715       lt_prog_compiler_static_GCJ='-Bstatic'
21716       ;;
21717
21718     sysv4*MP*)
21719       if test -d /usr/nec ;then
21720         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21721         lt_prog_compiler_static_GCJ='-Bstatic'
21722       fi
21723       ;;
21724
21725     uts4*)
21726       lt_prog_compiler_pic_GCJ='-pic'
21727       lt_prog_compiler_static_GCJ='-Bstatic'
21728       ;;
21729
21730     *)
21731       lt_prog_compiler_can_build_shared_GCJ=no
21732       ;;
21733     esac
21734   fi
21735
21736 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21737 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21738
21739 #
21740 # Check to make sure the PIC flag actually works.
21741 #
21742 if test -n "$lt_prog_compiler_pic_GCJ"; then
21743
21744 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21745 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21746 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21747   echo $ECHO_N "(cached) $ECHO_C" >&6
21748 else
21749   lt_prog_compiler_pic_works_GCJ=no
21750   ac_outfile=conftest.$ac_objext
21751    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21752    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21753    # Insert the option either (1) after the last *FLAGS variable, or
21754    # (2) before a word containing "conftest.", or (3) at the end.
21755    # Note that $ac_compile itself does not contain backslashes and begins
21756    # with a dollar sign (not a hyphen), so the echo should work correctly.
21757    # The option is referenced via a variable to avoid confusing sed.
21758    lt_compile=`echo "$ac_compile" | $SED \
21759    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21760    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21761    -e 's:$: $lt_compiler_flag:'`
21762    (eval echo "\"\$as_me:21762: $lt_compile\"" >&5)
21763    (eval "$lt_compile" 2>conftest.err)
21764    ac_status=$?
21765    cat conftest.err >&5
21766    echo "$as_me:21766: \$? = $ac_status" >&5
21767    if (exit $ac_status) && test -s "$ac_outfile"; then
21768      # The compiler can only warn and ignore the option if not recognized
21769      # So say no if there are warnings
21770      if test ! -s conftest.err; then
21771        lt_prog_compiler_pic_works_GCJ=yes
21772      fi
21773    fi
21774    $rm conftest*
21775
21776 fi
21777 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21778 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21779
21780 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21781     case $lt_prog_compiler_pic_GCJ in
21782      "" | " "*) ;;
21783      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21784      esac
21785 else
21786     lt_prog_compiler_pic_GCJ=
21787      lt_prog_compiler_can_build_shared_GCJ=no
21788 fi
21789
21790 fi
21791 case "$host_os" in
21792   # For platforms which do not support PIC, -DPIC is meaningless:
21793   *djgpp*)
21794     lt_prog_compiler_pic_GCJ=
21795     ;;
21796   *)
21797     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21798     ;;
21799 esac
21800
21801 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21802 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21803 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21804   echo $ECHO_N "(cached) $ECHO_C" >&6
21805 else
21806   lt_cv_prog_compiler_c_o_GCJ=no
21807    $rm -r conftest 2>/dev/null
21808    mkdir conftest
21809    cd conftest
21810    mkdir out
21811    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21812
21813    lt_compiler_flag="-o out/conftest2.$ac_objext"
21814    # Insert the option either (1) after the last *FLAGS variable, or
21815    # (2) before a word containing "conftest.", or (3) at the end.
21816    # Note that $ac_compile itself does not contain backslashes and begins
21817    # with a dollar sign (not a hyphen), so the echo should work correctly.
21818    lt_compile=`echo "$ac_compile" | $SED \
21819    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21820    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21821    -e 's:$: $lt_compiler_flag:'`
21822    (eval echo "\"\$as_me:21822: $lt_compile\"" >&5)
21823    (eval "$lt_compile" 2>out/conftest.err)
21824    ac_status=$?
21825    cat out/conftest.err >&5
21826    echo "$as_me:21826: \$? = $ac_status" >&5
21827    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21828    then
21829      # The compiler can only warn and ignore the option if not recognized
21830      # So say no if there are warnings
21831      if test ! -s out/conftest.err; then
21832        lt_cv_prog_compiler_c_o_GCJ=yes
21833      fi
21834    fi
21835    chmod u+w .
21836    $rm conftest*
21837    # SGI C++ compiler will create directory out/ii_files/ for
21838    # template instantiation
21839    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21840    $rm out/* && rmdir out
21841    cd ..
21842    rmdir conftest
21843    $rm conftest*
21844
21845 fi
21846 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21847 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21848
21849
21850 hard_links="nottested"
21851 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21852   # do not overwrite the value of need_locks provided by the user
21853   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21854 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21855   hard_links=yes
21856   $rm conftest*
21857   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21858   touch conftest.a
21859   ln conftest.a conftest.b 2>&5 || hard_links=no
21860   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21861   echo "$as_me:$LINENO: result: $hard_links" >&5
21862 echo "${ECHO_T}$hard_links" >&6
21863   if test "$hard_links" = no; then
21864     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21865 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21866     need_locks=warn
21867   fi
21868 else
21869   need_locks=no
21870 fi
21871
21872 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21873 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21874
21875   runpath_var=
21876   allow_undefined_flag_GCJ=
21877   enable_shared_with_static_runtimes_GCJ=no
21878   archive_cmds_GCJ=
21879   archive_expsym_cmds_GCJ=
21880   old_archive_From_new_cmds_GCJ=
21881   old_archive_from_expsyms_cmds_GCJ=
21882   export_dynamic_flag_spec_GCJ=
21883   whole_archive_flag_spec_GCJ=
21884   thread_safe_flag_spec_GCJ=
21885   hardcode_libdir_flag_spec_GCJ=
21886   hardcode_libdir_flag_spec_ld_GCJ=
21887   hardcode_libdir_separator_GCJ=
21888   hardcode_direct_GCJ=no
21889   hardcode_minus_L_GCJ=no
21890   hardcode_shlibpath_var_GCJ=unsupported
21891   link_all_deplibs_GCJ=unknown
21892   hardcode_automatic_GCJ=no
21893   module_cmds_GCJ=
21894   module_expsym_cmds_GCJ=
21895   always_export_symbols_GCJ=no
21896   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21897   # include_expsyms should be a list of space-separated symbols to be *always*
21898   # included in the symbol list
21899   include_expsyms_GCJ=
21900   # exclude_expsyms can be an extended regexp of symbols to exclude
21901   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21902   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21903   # as well as any symbol that contains `d'.
21904   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21905   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21906   # platforms (ab)use it in PIC code, but their linkers get confused if
21907   # the symbol is explicitly referenced.  Since portable code cannot
21908   # rely on this symbol name, it's probably fine to never include it in
21909   # preloaded symbol tables.
21910   extract_expsyms_cmds=
21911
21912   case $host_os in
21913   cygwin* | mingw* | pw32*)
21914     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21915     # When not using gcc, we currently assume that we are using
21916     # Microsoft Visual C++.
21917     if test "$GCC" != yes; then
21918       with_gnu_ld=no
21919     fi
21920     ;;
21921   openbsd*)
21922     with_gnu_ld=no
21923     ;;
21924   esac
21925
21926   ld_shlibs_GCJ=yes
21927   if test "$with_gnu_ld" = yes; then
21928     # If archive_cmds runs LD, not CC, wlarc should be empty
21929     wlarc='${wl}'
21930
21931     # See if GNU ld supports shared libraries.
21932     case $host_os in
21933     aix3* | aix4* | aix5*)
21934       # On AIX/PPC, the GNU linker is very broken
21935       if test "$host_cpu" != ia64; then
21936         ld_shlibs_GCJ=no
21937         cat <<EOF 1>&2
21938
21939 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21940 *** to be unable to reliably create shared libraries on AIX.
21941 *** Therefore, libtool is disabling shared libraries support.  If you
21942 *** really care for shared libraries, you may want to modify your PATH
21943 *** so that a non-GNU linker is found, and then restart.
21944
21945 EOF
21946       fi
21947       ;;
21948
21949     amigaos*)
21950       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)'
21951       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21952       hardcode_minus_L_GCJ=yes
21953
21954       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21955       # that the semantics of dynamic libraries on AmigaOS, at least up
21956       # to version 4, is to share data among multiple programs linked
21957       # with the same dynamic library.  Since this doesn't match the
21958       # behavior of shared libraries on other platforms, we can't use
21959       # them.
21960       ld_shlibs_GCJ=no
21961       ;;
21962
21963     beos*)
21964       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21965         allow_undefined_flag_GCJ=unsupported
21966         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21967         # support --undefined.  This deserves some investigation.  FIXME
21968         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21969       else
21970         ld_shlibs_GCJ=no
21971       fi
21972       ;;
21973
21974     cygwin* | mingw* | pw32*)
21975       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21976       # as there is no search path for DLLs.
21977       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21978       allow_undefined_flag_GCJ=unsupported
21979       always_export_symbols_GCJ=no
21980       enable_shared_with_static_runtimes_GCJ=yes
21981       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21982
21983       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21984         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21985         # If the export-symbols file already is a .def file (1st line
21986         # is EXPORTS), use it as is; otherwise, prepend...
21987         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21988           cp $export_symbols $output_objdir/$soname.def;
21989         else
21990           echo EXPORTS > $output_objdir/$soname.def;
21991           cat $export_symbols >> $output_objdir/$soname.def;
21992         fi~
21993         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21994       else
21995         ld_shlibs=no
21996       fi
21997       ;;
21998
21999     netbsd*)
22000       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22001         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22002         wlarc=
22003       else
22004         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22005         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22006       fi
22007       ;;
22008
22009     solaris* | sysv5*)
22010       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22011         ld_shlibs_GCJ=no
22012         cat <<EOF 1>&2
22013
22014 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22015 *** create shared libraries on Solaris systems.  Therefore, libtool
22016 *** is disabling shared libraries support.  We urge you to upgrade GNU
22017 *** binutils to release 2.9.1 or newer.  Another option is to modify
22018 *** your PATH or compiler configuration so that the native linker is
22019 *** used, and then restart.
22020
22021 EOF
22022       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22023         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22024         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22025       else
22026         ld_shlibs_GCJ=no
22027       fi
22028       ;;
22029
22030     sunos4*)
22031       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22032       wlarc=
22033       hardcode_direct_GCJ=yes
22034       hardcode_shlibpath_var_GCJ=no
22035       ;;
22036
22037   linux*)
22038     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22039         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22040         archive_cmds_GCJ="$tmp_archive_cmds"
22041       supports_anon_versioning=no
22042       case `$LD -v 2>/dev/null` in
22043         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22044         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22045         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22046         *\ 2.11.*) ;; # other 2.11 versions
22047         *) supports_anon_versioning=yes ;;
22048       esac
22049       if test $supports_anon_versioning = yes; then
22050         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
22051 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22052 $echo "local: *; };" >> $output_objdir/$libname.ver~
22053         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22054       else
22055         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
22056       fi
22057     else
22058       ld_shlibs_GCJ=no
22059     fi
22060     ;;
22061
22062     *)
22063       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22064         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22065         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22066       else
22067         ld_shlibs_GCJ=no
22068       fi
22069       ;;
22070     esac
22071
22072     if test "$ld_shlibs_GCJ" = yes; then
22073       runpath_var=LD_RUN_PATH
22074       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
22075       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
22076       # ancient GNU ld didn't support --whole-archive et. al.
22077       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22078         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22079       else
22080         whole_archive_flag_spec_GCJ=
22081       fi
22082     fi
22083   else
22084     # PORTME fill in a description of your system's linker (not GNU ld)
22085     case $host_os in
22086     aix3*)
22087       allow_undefined_flag_GCJ=unsupported
22088       always_export_symbols_GCJ=yes
22089       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'
22090       # Note: this linker hardcodes the directories in LIBPATH if there
22091       # are no directories specified by -L.
22092       hardcode_minus_L_GCJ=yes
22093       if test "$GCC" = yes && test -z "$link_static_flag"; then
22094         # Neither direct hardcoding nor static linking is supported with a
22095         # broken collect2.
22096         hardcode_direct_GCJ=unsupported
22097       fi
22098       ;;
22099
22100     aix4* | aix5*)
22101       if test "$host_cpu" = ia64; then
22102         # On IA64, the linker does run time linking by default, so we don't
22103         # have to do anything special.
22104         aix_use_runtimelinking=no
22105         exp_sym_flag='-Bexport'
22106         no_entry_flag=""
22107       else
22108         # If we're using GNU nm, then we don't want the "-C" option.
22109         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22110         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22111           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'
22112         else
22113           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'
22114         fi
22115         aix_use_runtimelinking=no
22116
22117         # Test if we are trying to use run time linking or normal
22118         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22119         # need to do runtime linking.
22120         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22121           for ld_flag in $LDFLAGS; do
22122           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22123             aix_use_runtimelinking=yes
22124             break
22125           fi
22126           done
22127         esac
22128
22129         exp_sym_flag='-bexport'
22130         no_entry_flag='-bnoentry'
22131       fi
22132
22133       # When large executables or shared objects are built, AIX ld can
22134       # have problems creating the table of contents.  If linking a library
22135       # or program results in "error TOC overflow" add -mminimal-toc to
22136       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22137       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22138
22139       archive_cmds_GCJ=''
22140       hardcode_direct_GCJ=yes
22141       hardcode_libdir_separator_GCJ=':'
22142       link_all_deplibs_GCJ=yes
22143
22144       if test "$GCC" = yes; then
22145         case $host_os in aix4.012|aix4.012.*)
22146         # We only want to do this on AIX 4.2 and lower, the check
22147         # below for broken collect2 doesn't work under 4.3+
22148           collect2name=`${CC} -print-prog-name=collect2`
22149           if test -f "$collect2name" && \
22150            strings "$collect2name" | grep resolve_lib_name >/dev/null
22151           then
22152           # We have reworked collect2
22153           hardcode_direct_GCJ=yes
22154           else
22155           # We have old collect2
22156           hardcode_direct_GCJ=unsupported
22157           # It fails to find uninstalled libraries when the uninstalled
22158           # path is not listed in the libpath.  Setting hardcode_minus_L
22159           # to unsupported forces relinking
22160           hardcode_minus_L_GCJ=yes
22161           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22162           hardcode_libdir_separator_GCJ=
22163           fi
22164         esac
22165         shared_flag='-shared'
22166       else
22167         # not using gcc
22168         if test "$host_cpu" = ia64; then
22169         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22170         # chokes on -Wl,-G. The following line is correct:
22171           shared_flag='-G'
22172         else
22173         if test "$aix_use_runtimelinking" = yes; then
22174             shared_flag='${wl}-G'
22175           else
22176             shared_flag='${wl}-bM:SRE'
22177         fi
22178         fi
22179       fi
22180
22181       # It seems that -bexpall does not export symbols beginning with
22182       # underscore (_), so it is better to generate a list of symbols to export.
22183       always_export_symbols_GCJ=yes
22184       if test "$aix_use_runtimelinking" = yes; then
22185         # Warning - without using the other runtime loading flags (-brtl),
22186         # -berok will link without error, but may produce a broken library.
22187         allow_undefined_flag_GCJ='-berok'
22188        # Determine the default libpath from the value encoded in an empty executable.
22189        cat >conftest.$ac_ext <<_ACEOF
22190 /* confdefs.h.  */
22191 _ACEOF
22192 cat confdefs.h >>conftest.$ac_ext
22193 cat >>conftest.$ac_ext <<_ACEOF
22194 /* end confdefs.h.  */
22195
22196 int
22197 main ()
22198 {
22199
22200   ;
22201   return 0;
22202 }
22203 _ACEOF
22204 rm -f conftest.$ac_objext conftest$ac_exeext
22205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22206   (eval $ac_link) 2>conftest.er1
22207   ac_status=$?
22208   grep -v '^ *+' conftest.er1 >conftest.err
22209   rm -f conftest.er1
22210   cat conftest.err >&5
22211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212   (exit $ac_status); } &&
22213          { ac_try='test -z "$ac_c_werror_flag"
22214                          || test ! -s conftest.err'
22215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22216   (eval $ac_try) 2>&5
22217   ac_status=$?
22218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219   (exit $ac_status); }; } &&
22220          { ac_try='test -s conftest$ac_exeext'
22221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222   (eval $ac_try) 2>&5
22223   ac_status=$?
22224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225   (exit $ac_status); }; }; then
22226
22227 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22228 }'`
22229 # Check for a 64-bit object if we didn't find anything.
22230 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; }
22231 }'`; fi
22232 else
22233   echo "$as_me: failed program was:" >&5
22234 sed 's/^/| /' conftest.$ac_ext >&5
22235
22236 fi
22237 rm -f conftest.err conftest.$ac_objext \
22238       conftest$ac_exeext conftest.$ac_ext
22239 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22240
22241        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22242         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"
22243        else
22244         if test "$host_cpu" = ia64; then
22245           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
22246           allow_undefined_flag_GCJ="-z nodefs"
22247           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"
22248         else
22249          # Determine the default libpath from the value encoded in an empty executable.
22250          cat >conftest.$ac_ext <<_ACEOF
22251 /* confdefs.h.  */
22252 _ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h.  */
22256
22257 int
22258 main ()
22259 {
22260
22261   ;
22262   return 0;
22263 }
22264 _ACEOF
22265 rm -f conftest.$ac_objext conftest$ac_exeext
22266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22267   (eval $ac_link) 2>conftest.er1
22268   ac_status=$?
22269   grep -v '^ *+' conftest.er1 >conftest.err
22270   rm -f conftest.er1
22271   cat conftest.err >&5
22272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273   (exit $ac_status); } &&
22274          { ac_try='test -z "$ac_c_werror_flag"
22275                          || test ! -s conftest.err'
22276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22277   (eval $ac_try) 2>&5
22278   ac_status=$?
22279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280   (exit $ac_status); }; } &&
22281          { ac_try='test -s conftest$ac_exeext'
22282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22283   (eval $ac_try) 2>&5
22284   ac_status=$?
22285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286   (exit $ac_status); }; }; then
22287
22288 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22289 }'`
22290 # Check for a 64-bit object if we didn't find anything.
22291 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; }
22292 }'`; fi
22293 else
22294   echo "$as_me: failed program was:" >&5
22295 sed 's/^/| /' conftest.$ac_ext >&5
22296
22297 fi
22298 rm -f conftest.err conftest.$ac_objext \
22299       conftest$ac_exeext conftest.$ac_ext
22300 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22301
22302          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22303           # Warning - without using the other run time loading flags,
22304           # -berok will link without error, but may produce a broken library.
22305           no_undefined_flag_GCJ=' ${wl}-bernotok'
22306           allow_undefined_flag_GCJ=' ${wl}-berok'
22307           # -bexpall does not export symbols beginning with underscore (_)
22308           always_export_symbols_GCJ=yes
22309           # Exported symbols can be pulled into shared objects from archives
22310           whole_archive_flag_spec_GCJ=' '
22311           archive_cmds_need_lc_GCJ=yes
22312           # This is similar to how AIX traditionally builds it's shared libraries.
22313           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'
22314         fi
22315       fi
22316       ;;
22317
22318     amigaos*)
22319       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)'
22320       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22321       hardcode_minus_L_GCJ=yes
22322       # see comment about different semantics on the GNU ld section
22323       ld_shlibs_GCJ=no
22324       ;;
22325
22326     bsdi[45]*)
22327       export_dynamic_flag_spec_GCJ=-rdynamic
22328       ;;
22329
22330     cygwin* | mingw* | pw32*)
22331       # When not using gcc, we currently assume that we are using
22332       # Microsoft Visual C++.
22333       # hardcode_libdir_flag_spec is actually meaningless, as there is
22334       # no search path for DLLs.
22335       hardcode_libdir_flag_spec_GCJ=' '
22336       allow_undefined_flag_GCJ=unsupported
22337       # Tell ltmain to make .lib files, not .a files.
22338       libext=lib
22339       # Tell ltmain to make .dll files, not .so files.
22340       shrext_cmds=".dll"
22341       # FIXME: Setting linknames here is a bad hack.
22342       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22343       # The linker will automatically build a .lib file if we build a DLL.
22344       old_archive_From_new_cmds_GCJ='true'
22345       # FIXME: Should let the user specify the lib program.
22346       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22347       fix_srcfile_path='`cygpath -w "$srcfile"`'
22348       enable_shared_with_static_runtimes_GCJ=yes
22349       ;;
22350
22351     darwin* | rhapsody*)
22352       case "$host_os" in
22353         rhapsody* | darwin1.[012])
22354          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22355          ;;
22356        *) # Darwin 1.3 on
22357          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22358            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22359          else
22360            case ${MACOSX_DEPLOYMENT_TARGET} in
22361              10.[012])
22362                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22363                ;;
22364              10.*)
22365                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22366                ;;
22367            esac
22368          fi
22369          ;;
22370       esac
22371       archive_cmds_need_lc_GCJ=no
22372       hardcode_direct_GCJ=no
22373       hardcode_automatic_GCJ=yes
22374       hardcode_shlibpath_var_GCJ=unsupported
22375       whole_archive_flag_spec_GCJ=''
22376       link_all_deplibs_GCJ=yes
22377     if test "$GCC" = yes ; then
22378         output_verbose_link_cmd='echo'
22379         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22380       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22381       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22382       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}'
22383       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}'
22384     else
22385       case "$cc_basename" in
22386         xlc*)
22387          output_verbose_link_cmd='echo'
22388          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22389          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22390           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22391          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}'
22392           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}'
22393           ;;
22394        *)
22395          ld_shlibs_GCJ=no
22396           ;;
22397       esac
22398     fi
22399       ;;
22400
22401     dgux*)
22402       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22403       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22404       hardcode_shlibpath_var_GCJ=no
22405       ;;
22406
22407     freebsd1*)
22408       ld_shlibs_GCJ=no
22409       ;;
22410
22411     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22412     # support.  Future versions do this automatically, but an explicit c++rt0.o
22413     # does not break anything, and helps significantly (at the cost of a little
22414     # extra space).
22415     freebsd2.2*)
22416       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22417       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22418       hardcode_direct_GCJ=yes
22419       hardcode_shlibpath_var_GCJ=no
22420       ;;
22421
22422     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22423     freebsd2*)
22424       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22425       hardcode_direct_GCJ=yes
22426       hardcode_minus_L_GCJ=yes
22427       hardcode_shlibpath_var_GCJ=no
22428       ;;
22429
22430     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22431     freebsd* | kfreebsd*-gnu)
22432       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22433       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22434       hardcode_direct_GCJ=yes
22435       hardcode_shlibpath_var_GCJ=no
22436       ;;
22437
22438     hpux9*)
22439       if test "$GCC" = yes; then
22440         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'
22441       else
22442         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'
22443       fi
22444       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22445       hardcode_libdir_separator_GCJ=:
22446       hardcode_direct_GCJ=yes
22447
22448       # hardcode_minus_L: Not really in the search PATH,
22449       # but as the default location of the library.
22450       hardcode_minus_L_GCJ=yes
22451       export_dynamic_flag_spec_GCJ='${wl}-E'
22452       ;;
22453
22454     hpux10* | hpux11*)
22455       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22456         case "$host_cpu" in
22457         hppa*64*|ia64*)
22458           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22459           ;;
22460         *)
22461           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22462           ;;
22463         esac
22464       else
22465         case "$host_cpu" in
22466         hppa*64*|ia64*)
22467           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22468           ;;
22469         *)
22470           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22471           ;;
22472         esac
22473       fi
22474       if test "$with_gnu_ld" = no; then
22475         case "$host_cpu" in
22476         hppa*64*)
22477           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22478           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22479           hardcode_libdir_separator_GCJ=:
22480           hardcode_direct_GCJ=no
22481           hardcode_shlibpath_var_GCJ=no
22482           ;;
22483         ia64*)
22484           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22485           hardcode_direct_GCJ=no
22486           hardcode_shlibpath_var_GCJ=no
22487
22488           # hardcode_minus_L: Not really in the search PATH,
22489           # but as the default location of the library.
22490           hardcode_minus_L_GCJ=yes
22491           ;;
22492         *)
22493           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22494           hardcode_libdir_separator_GCJ=:
22495           hardcode_direct_GCJ=yes
22496           export_dynamic_flag_spec_GCJ='${wl}-E'
22497
22498           # hardcode_minus_L: Not really in the search PATH,
22499           # but as the default location of the library.
22500           hardcode_minus_L_GCJ=yes
22501           ;;
22502         esac
22503       fi
22504       ;;
22505
22506     irix5* | irix6* | nonstopux*)
22507       if test "$GCC" = yes; then
22508         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'
22509       else
22510         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'
22511         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22512       fi
22513       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22514       hardcode_libdir_separator_GCJ=:
22515       link_all_deplibs_GCJ=yes
22516       ;;
22517
22518     netbsd*)
22519       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22520         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22521       else
22522         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22523       fi
22524       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22525       hardcode_direct_GCJ=yes
22526       hardcode_shlibpath_var_GCJ=no
22527       ;;
22528
22529     newsos6)
22530       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22531       hardcode_direct_GCJ=yes
22532       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22533       hardcode_libdir_separator_GCJ=:
22534       hardcode_shlibpath_var_GCJ=no
22535       ;;
22536
22537     openbsd*)
22538       hardcode_direct_GCJ=yes
22539       hardcode_shlibpath_var_GCJ=no
22540       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22541         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22542         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22543         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22544         export_dynamic_flag_spec_GCJ='${wl}-E'
22545       else
22546        case $host_os in
22547          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22548            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22549            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22550            ;;
22551          *)
22552            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22553            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22554            ;;
22555        esac
22556       fi
22557       ;;
22558
22559     os2*)
22560       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22561       hardcode_minus_L_GCJ=yes
22562       allow_undefined_flag_GCJ=unsupported
22563       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'
22564       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22565       ;;
22566
22567     osf3*)
22568       if test "$GCC" = yes; then
22569         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22570         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'
22571       else
22572         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22573         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'
22574       fi
22575       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22576       hardcode_libdir_separator_GCJ=:
22577       ;;
22578
22579     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22580       if test "$GCC" = yes; then
22581         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22582         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'
22583         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22584       else
22585         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22586         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'
22587         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~
22588         $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'
22589
22590         # Both c and cxx compiler support -rpath directly
22591         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22592       fi
22593       hardcode_libdir_separator_GCJ=:
22594       ;;
22595
22596     sco3.2v5*)
22597       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22598       hardcode_shlibpath_var_GCJ=no
22599       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22600       runpath_var=LD_RUN_PATH
22601       hardcode_runpath_var=yes
22602       ;;
22603
22604     solaris*)
22605       no_undefined_flag_GCJ=' -z text'
22606       if test "$GCC" = yes; then
22607         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22608         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22609           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22610       else
22611         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22612         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22613         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22614       fi
22615       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22616       hardcode_shlibpath_var_GCJ=no
22617       case $host_os in
22618       solaris2.[0-5] | solaris2.[0-5].*) ;;
22619       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22620         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22621       esac
22622       link_all_deplibs_GCJ=yes
22623       ;;
22624
22625     sunos4*)
22626       if test "x$host_vendor" = xsequent; then
22627         # Use $CC to link under sequent, because it throws in some extra .o
22628         # files that make .init and .fini sections work.
22629         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22630       else
22631         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22632       fi
22633       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22634       hardcode_direct_GCJ=yes
22635       hardcode_minus_L_GCJ=yes
22636       hardcode_shlibpath_var_GCJ=no
22637       ;;
22638
22639     sysv4)
22640       case $host_vendor in
22641         sni)
22642           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22643           hardcode_direct_GCJ=yes # is this really true???
22644         ;;
22645         siemens)
22646           ## LD is ld it makes a PLAMLIB
22647           ## CC just makes a GrossModule.
22648           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22649           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22650           hardcode_direct_GCJ=no
22651         ;;
22652         motorola)
22653           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22654           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22655         ;;
22656       esac
22657       runpath_var='LD_RUN_PATH'
22658       hardcode_shlibpath_var_GCJ=no
22659       ;;
22660
22661     sysv4.3*)
22662       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22663       hardcode_shlibpath_var_GCJ=no
22664       export_dynamic_flag_spec_GCJ='-Bexport'
22665       ;;
22666
22667     sysv4*MP*)
22668       if test -d /usr/nec; then
22669         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22670         hardcode_shlibpath_var_GCJ=no
22671         runpath_var=LD_RUN_PATH
22672         hardcode_runpath_var=yes
22673         ld_shlibs_GCJ=yes
22674       fi
22675       ;;
22676
22677     sysv4.2uw2*)
22678       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22679       hardcode_direct_GCJ=yes
22680       hardcode_minus_L_GCJ=no
22681       hardcode_shlibpath_var_GCJ=no
22682       hardcode_runpath_var=yes
22683       runpath_var=LD_RUN_PATH
22684       ;;
22685
22686    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22687       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22688       if test "$GCC" = yes; then
22689         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22690       else
22691         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22692       fi
22693       runpath_var='LD_RUN_PATH'
22694       hardcode_shlibpath_var_GCJ=no
22695       ;;
22696
22697     sysv5*)
22698       no_undefined_flag_GCJ=' -z text'
22699       # $CC -shared without GNU ld will not create a library from C++
22700       # object files and a static libstdc++, better avoid it by now
22701       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22702       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22703                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22704       hardcode_libdir_flag_spec_GCJ=
22705       hardcode_shlibpath_var_GCJ=no
22706       runpath_var='LD_RUN_PATH'
22707       ;;
22708
22709     uts4*)
22710       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22711       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22712       hardcode_shlibpath_var_GCJ=no
22713       ;;
22714
22715     *)
22716       ld_shlibs_GCJ=no
22717       ;;
22718     esac
22719   fi
22720
22721 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22722 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22723 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22724
22725 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22726 if test "$GCC" = yes; then
22727   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22728 fi
22729
22730 #
22731 # Do we need to explicitly link libc?
22732 #
22733 case "x$archive_cmds_need_lc_GCJ" in
22734 x|xyes)
22735   # Assume -lc should be added
22736   archive_cmds_need_lc_GCJ=yes
22737
22738   if test "$enable_shared" = yes && test "$GCC" = yes; then
22739     case $archive_cmds_GCJ in
22740     *'~'*)
22741       # FIXME: we may have to deal with multi-command sequences.
22742       ;;
22743     '$CC '*)
22744       # Test whether the compiler implicitly links with -lc since on some
22745       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22746       # to ld, don't add -lc before -lgcc.
22747       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22748 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22749       $rm conftest*
22750       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22751
22752       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22753   (eval $ac_compile) 2>&5
22754   ac_status=$?
22755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756   (exit $ac_status); } 2>conftest.err; then
22757         soname=conftest
22758         lib=conftest
22759         libobjs=conftest.$ac_objext
22760         deplibs=
22761         wl=$lt_prog_compiler_wl_GCJ
22762         compiler_flags=-v
22763         linker_flags=-v
22764         verstring=
22765         output_objdir=.
22766         libname=conftest
22767         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22768         allow_undefined_flag_GCJ=
22769         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22770   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22771   ac_status=$?
22772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773   (exit $ac_status); }
22774         then
22775           archive_cmds_need_lc_GCJ=no
22776         else
22777           archive_cmds_need_lc_GCJ=yes
22778         fi
22779         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22780       else
22781         cat conftest.err 1>&5
22782       fi
22783       $rm conftest*
22784       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22785 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22786       ;;
22787     esac
22788   fi
22789   ;;
22790 esac
22791
22792 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22793 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22794 library_names_spec=
22795 libname_spec='lib$name'
22796 soname_spec=
22797 shrext_cmds=".so"
22798 postinstall_cmds=
22799 postuninstall_cmds=
22800 finish_cmds=
22801 finish_eval=
22802 shlibpath_var=
22803 shlibpath_overrides_runpath=unknown
22804 version_type=none
22805 dynamic_linker="$host_os ld.so"
22806 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22807 if test "$GCC" = yes; then
22808   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22809   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22810     # if the path contains ";" then we assume it to be the separator
22811     # otherwise default to the standard path separator (i.e. ":") - it is
22812     # assumed that no part of a normal pathname contains ";" but that should
22813     # okay in the real world where ";" in dirpaths is itself problematic.
22814     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22815   else
22816     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22817   fi
22818 else
22819   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22820 fi
22821 need_lib_prefix=unknown
22822 hardcode_into_libs=no
22823
22824 # when you set need_version to no, make sure it does not cause -set_version
22825 # flags to be left without arguments
22826 need_version=unknown
22827
22828 case $host_os in
22829 aix3*)
22830   version_type=linux
22831   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22832   shlibpath_var=LIBPATH
22833
22834   # AIX 3 has no versioning support, so we append a major version to the name.
22835   soname_spec='${libname}${release}${shared_ext}$major'
22836   ;;
22837
22838 aix4* | aix5*)
22839   version_type=linux
22840   need_lib_prefix=no
22841   need_version=no
22842   hardcode_into_libs=yes
22843   if test "$host_cpu" = ia64; then
22844     # AIX 5 supports IA64
22845     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22846     shlibpath_var=LD_LIBRARY_PATH
22847   else
22848     # With GCC up to 2.95.x, collect2 would create an import file
22849     # for dependence libraries.  The import file would start with
22850     # the line `#! .'.  This would cause the generated library to
22851     # depend on `.', always an invalid library.  This was fixed in
22852     # development snapshots of GCC prior to 3.0.
22853     case $host_os in
22854       aix4 | aix4.[01] | aix4.[01].*)
22855       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22856            echo ' yes '
22857            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22858         :
22859       else
22860         can_build_shared=no
22861       fi
22862       ;;
22863     esac
22864     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22865     # soname into executable. Probably we can add versioning support to
22866     # collect2, so additional links can be useful in future.
22867     if test "$aix_use_runtimelinking" = yes; then
22868       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22869       # instead of lib<name>.a to let people know that these are not
22870       # typical AIX shared libraries.
22871       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22872     else
22873       # We preserve .a as extension for shared libraries through AIX4.2
22874       # and later when we are not doing run time linking.
22875       library_names_spec='${libname}${release}.a $libname.a'
22876       soname_spec='${libname}${release}${shared_ext}$major'
22877     fi
22878     shlibpath_var=LIBPATH
22879   fi
22880   ;;
22881
22882 amigaos*)
22883   library_names_spec='$libname.ixlibrary $libname.a'
22884   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22885   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'
22886   ;;
22887
22888 beos*)
22889   library_names_spec='${libname}${shared_ext}'
22890   dynamic_linker="$host_os ld.so"
22891   shlibpath_var=LIBRARY_PATH
22892   ;;
22893
22894 bsdi[45]*)
22895   version_type=linux
22896   need_version=no
22897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22898   soname_spec='${libname}${release}${shared_ext}$major'
22899   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22900   shlibpath_var=LD_LIBRARY_PATH
22901   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22902   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22903   # the default ld.so.conf also contains /usr/contrib/lib and
22904   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22905   # libtool to hard-code these into programs
22906   ;;
22907
22908 cygwin* | mingw* | pw32*)
22909   version_type=windows
22910   shrext_cmds=".dll"
22911   need_version=no
22912   need_lib_prefix=no
22913
22914   case $GCC,$host_os in
22915   yes,cygwin* | yes,mingw* | yes,pw32*)
22916     library_names_spec='$libname.dll.a'
22917     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22918     postinstall_cmds='base_file=`basename \${file}`~
22919       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22920       dldir=$destdir/`dirname \$dlpath`~
22921       test -d \$dldir || mkdir -p \$dldir~
22922       $install_prog $dir/$dlname \$dldir/$dlname'
22923     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22924       dlpath=$dir/\$dldll~
22925        $rm \$dlpath'
22926     shlibpath_overrides_runpath=yes
22927
22928     case $host_os in
22929     cygwin*)
22930       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22931       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22932       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22933       ;;
22934     mingw*)
22935       # MinGW DLLs use traditional 'lib' prefix
22936       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22937       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22938       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22939         # It is most probably a Windows format PATH printed by
22940         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22941         # path with ; separators, and with drive letters. We can handle the
22942         # drive letters (cygwin fileutils understands them), so leave them,
22943         # especially as we might pass files found there to a mingw objdump,
22944         # which wouldn't understand a cygwinified path. Ahh.
22945         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22946       else
22947         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22948       fi
22949       ;;
22950     pw32*)
22951       # pw32 DLLs use 'pw' prefix rather than 'lib'
22952       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22953       ;;
22954     esac
22955     ;;
22956
22957   *)
22958     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22959     ;;
22960   esac
22961   dynamic_linker='Win32 ld.exe'
22962   # FIXME: first we should search . and the directory the executable is in
22963   shlibpath_var=PATH
22964   ;;
22965
22966 darwin* | rhapsody*)
22967   dynamic_linker="$host_os dyld"
22968   version_type=darwin
22969   need_lib_prefix=no
22970   need_version=no
22971   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22972   soname_spec='${libname}${release}${major}$shared_ext'
22973   shlibpath_overrides_runpath=yes
22974   shlibpath_var=DYLD_LIBRARY_PATH
22975   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22976   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22977   if test "$GCC" = yes; then
22978     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"`
22979   else
22980     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22981   fi
22982   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22983   ;;
22984
22985 dgux*)
22986   version_type=linux
22987   need_lib_prefix=no
22988   need_version=no
22989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22990   soname_spec='${libname}${release}${shared_ext}$major'
22991   shlibpath_var=LD_LIBRARY_PATH
22992   ;;
22993
22994 freebsd1*)
22995   dynamic_linker=no
22996   ;;
22997
22998 kfreebsd*-gnu)
22999   version_type=linux
23000   need_lib_prefix=no
23001   need_version=no
23002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23003   soname_spec='${libname}${release}${shared_ext}$major'
23004   shlibpath_var=LD_LIBRARY_PATH
23005   shlibpath_overrides_runpath=no
23006   hardcode_into_libs=yes
23007   dynamic_linker='GNU ld.so'
23008   ;;
23009
23010 freebsd*)
23011   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
23012   version_type=freebsd-$objformat
23013   case $version_type in
23014     freebsd-elf*)
23015       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23016       need_version=no
23017       need_lib_prefix=no
23018       ;;
23019     freebsd-*)
23020       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23021       need_version=yes
23022       ;;
23023   esac
23024   shlibpath_var=LD_LIBRARY_PATH
23025   case $host_os in
23026   freebsd2*)
23027     shlibpath_overrides_runpath=yes
23028     ;;
23029   freebsd3.01* | freebsdelf3.01*)
23030     shlibpath_overrides_runpath=yes
23031     hardcode_into_libs=yes
23032     ;;
23033   *) # from 3.2 on
23034     shlibpath_overrides_runpath=no
23035     hardcode_into_libs=yes
23036     ;;
23037   esac
23038   ;;
23039
23040 gnu*)
23041   version_type=linux
23042   need_lib_prefix=no
23043   need_version=no
23044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23045   soname_spec='${libname}${release}${shared_ext}$major'
23046   shlibpath_var=LD_LIBRARY_PATH
23047   hardcode_into_libs=yes
23048   ;;
23049
23050 hpux9* | hpux10* | hpux11*)
23051   # Give a soname corresponding to the major version so that dld.sl refuses to
23052   # link against other versions.
23053   version_type=sunos
23054   need_lib_prefix=no
23055   need_version=no
23056   case "$host_cpu" in
23057   ia64*)
23058     shrext_cmds='.so'
23059     hardcode_into_libs=yes
23060     dynamic_linker="$host_os dld.so"
23061     shlibpath_var=LD_LIBRARY_PATH
23062     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23063     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23064     soname_spec='${libname}${release}${shared_ext}$major'
23065     if test "X$HPUX_IA64_MODE" = X32; then
23066       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23067     else
23068       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23069     fi
23070     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23071     ;;
23072    hppa*64*)
23073      shrext_cmds='.sl'
23074      hardcode_into_libs=yes
23075      dynamic_linker="$host_os dld.sl"
23076      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23077      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23078      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23079      soname_spec='${libname}${release}${shared_ext}$major'
23080      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23081      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23082      ;;
23083    *)
23084     shrext_cmds='.sl'
23085     dynamic_linker="$host_os dld.sl"
23086     shlibpath_var=SHLIB_PATH
23087     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23088     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23089     soname_spec='${libname}${release}${shared_ext}$major'
23090     ;;
23091   esac
23092   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23093   postinstall_cmds='chmod 555 $lib'
23094   ;;
23095
23096 irix5* | irix6* | nonstopux*)
23097   case $host_os in
23098     nonstopux*) version_type=nonstopux ;;
23099     *)
23100         if test "$lt_cv_prog_gnu_ld" = yes; then
23101                 version_type=linux
23102         else
23103                 version_type=irix
23104         fi ;;
23105   esac
23106   need_lib_prefix=no
23107   need_version=no
23108   soname_spec='${libname}${release}${shared_ext}$major'
23109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23110   case $host_os in
23111   irix5* | nonstopux*)
23112     libsuff= shlibsuff=
23113     ;;
23114   *)
23115     case $LD in # libtool.m4 will add one of these switches to LD
23116     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23117       libsuff= shlibsuff= libmagic=32-bit;;
23118     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23119       libsuff=32 shlibsuff=N32 libmagic=N32;;
23120     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23121       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23122     *) libsuff= shlibsuff= libmagic=never-match;;
23123     esac
23124     ;;
23125   esac
23126   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23127   shlibpath_overrides_runpath=no
23128   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23129   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23130   hardcode_into_libs=yes
23131   ;;
23132
23133 # No shared lib support for Linux oldld, aout, or coff.
23134 linux*oldld* | linux*aout* | linux*coff*)
23135   dynamic_linker=no
23136   ;;
23137
23138 # This must be Linux ELF.
23139 linux*)
23140   version_type=linux
23141   need_lib_prefix=no
23142   need_version=no
23143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23144   soname_spec='${libname}${release}${shared_ext}$major'
23145   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23146   shlibpath_var=LD_LIBRARY_PATH
23147   shlibpath_overrides_runpath=no
23148   # This implies no fast_install, which is unacceptable.
23149   # Some rework will be needed to allow for fast_install
23150   # before this can be enabled.
23151   hardcode_into_libs=yes
23152
23153   # Append ld.so.conf contents to the search path
23154   if test -f /etc/ld.so.conf; then
23155     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
23156     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23157   fi
23158
23159   # We used to test for /lib/ld.so.1 and disable shared libraries on
23160   # powerpc, because MkLinux only supported shared libraries with the
23161   # GNU dynamic linker.  Since this was broken with cross compilers,
23162   # most powerpc-linux boxes support dynamic linking these days and
23163   # people can always --disable-shared, the test was removed, and we
23164   # assume the GNU/Linux dynamic linker is in use.
23165   dynamic_linker='GNU/Linux ld.so'
23166   ;;
23167
23168 knetbsd*-gnu)
23169   version_type=linux
23170   need_lib_prefix=no
23171   need_version=no
23172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23173   soname_spec='${libname}${release}${shared_ext}$major'
23174   shlibpath_var=LD_LIBRARY_PATH
23175   shlibpath_overrides_runpath=no
23176   hardcode_into_libs=yes
23177   dynamic_linker='GNU ld.so'
23178   ;;
23179
23180 netbsd*)
23181   version_type=sunos
23182   need_lib_prefix=no
23183   need_version=no
23184   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23185     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23186     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23187     dynamic_linker='NetBSD (a.out) ld.so'
23188   else
23189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23190     soname_spec='${libname}${release}${shared_ext}$major'
23191     dynamic_linker='NetBSD ld.elf_so'
23192   fi
23193   shlibpath_var=LD_LIBRARY_PATH
23194   shlibpath_overrides_runpath=yes
23195   hardcode_into_libs=yes
23196   ;;
23197
23198 newsos6)
23199   version_type=linux
23200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23201   shlibpath_var=LD_LIBRARY_PATH
23202   shlibpath_overrides_runpath=yes
23203   ;;
23204
23205 nto-qnx*)
23206   version_type=linux
23207   need_lib_prefix=no
23208   need_version=no
23209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23210   soname_spec='${libname}${release}${shared_ext}$major'
23211   shlibpath_var=LD_LIBRARY_PATH
23212   shlibpath_overrides_runpath=yes
23213   ;;
23214
23215 openbsd*)
23216   version_type=sunos
23217   need_lib_prefix=no
23218   need_version=no
23219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23220   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23221   shlibpath_var=LD_LIBRARY_PATH
23222   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23223     case $host_os in
23224       openbsd2.[89] | openbsd2.[89].*)
23225         shlibpath_overrides_runpath=no
23226         ;;
23227       *)
23228         shlibpath_overrides_runpath=yes
23229         ;;
23230       esac
23231   else
23232     shlibpath_overrides_runpath=yes
23233   fi
23234   ;;
23235
23236 os2*)
23237   libname_spec='$name'
23238   shrext_cmds=".dll"
23239   need_lib_prefix=no
23240   library_names_spec='$libname${shared_ext} $libname.a'
23241   dynamic_linker='OS/2 ld.exe'
23242   shlibpath_var=LIBPATH
23243   ;;
23244
23245 osf3* | osf4* | osf5*)
23246   version_type=osf
23247   need_lib_prefix=no
23248   need_version=no
23249   soname_spec='${libname}${release}${shared_ext}$major'
23250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23251   shlibpath_var=LD_LIBRARY_PATH
23252   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23253   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23254   ;;
23255
23256 sco3.2v5*)
23257   version_type=osf
23258   soname_spec='${libname}${release}${shared_ext}$major'
23259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23260   shlibpath_var=LD_LIBRARY_PATH
23261   ;;
23262
23263 solaris*)
23264   version_type=linux
23265   need_lib_prefix=no
23266   need_version=no
23267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23268   soname_spec='${libname}${release}${shared_ext}$major'
23269   shlibpath_var=LD_LIBRARY_PATH
23270   shlibpath_overrides_runpath=yes
23271   hardcode_into_libs=yes
23272   # ldd complains unless libraries are executable
23273   postinstall_cmds='chmod +x $lib'
23274   ;;
23275
23276 sunos4*)
23277   version_type=sunos
23278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23279   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23280   shlibpath_var=LD_LIBRARY_PATH
23281   shlibpath_overrides_runpath=yes
23282   if test "$with_gnu_ld" = yes; then
23283     need_lib_prefix=no
23284   fi
23285   need_version=yes
23286   ;;
23287
23288 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23289   version_type=linux
23290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23291   soname_spec='${libname}${release}${shared_ext}$major'
23292   shlibpath_var=LD_LIBRARY_PATH
23293   case $host_vendor in
23294     sni)
23295       shlibpath_overrides_runpath=no
23296       need_lib_prefix=no
23297       export_dynamic_flag_spec='${wl}-Blargedynsym'
23298       runpath_var=LD_RUN_PATH
23299       ;;
23300     siemens)
23301       need_lib_prefix=no
23302       ;;
23303     motorola)
23304       need_lib_prefix=no
23305       need_version=no
23306       shlibpath_overrides_runpath=no
23307       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23308       ;;
23309   esac
23310   ;;
23311
23312 sysv4*MP*)
23313   if test -d /usr/nec ;then
23314     version_type=linux
23315     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23316     soname_spec='$libname${shared_ext}.$major'
23317     shlibpath_var=LD_LIBRARY_PATH
23318   fi
23319   ;;
23320
23321 uts4*)
23322   version_type=linux
23323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23324   soname_spec='${libname}${release}${shared_ext}$major'
23325   shlibpath_var=LD_LIBRARY_PATH
23326   ;;
23327
23328 *)
23329   dynamic_linker=no
23330   ;;
23331 esac
23332 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23333 echo "${ECHO_T}$dynamic_linker" >&6
23334 test "$dynamic_linker" = no && can_build_shared=no
23335
23336 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23337 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23338 hardcode_action_GCJ=
23339 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23340    test -n "$runpath_var_GCJ" || \
23341    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23342
23343   # We can hardcode non-existant directories.
23344   if test "$hardcode_direct_GCJ" != no &&
23345      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23346      # have to relink, otherwise we might link with an installed library
23347      # when we should be linking with a yet-to-be-installed one
23348      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23349      test "$hardcode_minus_L_GCJ" != no; then
23350     # Linking always hardcodes the temporary library directory.
23351     hardcode_action_GCJ=relink
23352   else
23353     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23354     hardcode_action_GCJ=immediate
23355   fi
23356 else
23357   # We cannot hardcode anything, or else we can only hardcode existing
23358   # directories.
23359   hardcode_action_GCJ=unsupported
23360 fi
23361 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23362 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23363
23364 if test "$hardcode_action_GCJ" = relink; then
23365   # Fast installation is not supported
23366   enable_fast_install=no
23367 elif test "$shlibpath_overrides_runpath" = yes ||
23368      test "$enable_shared" = no; then
23369   # Fast installation is not necessary
23370   enable_fast_install=needless
23371 fi
23372
23373 striplib=
23374 old_striplib=
23375 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23376 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23377 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23378   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23379   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23380   echo "$as_me:$LINENO: result: yes" >&5
23381 echo "${ECHO_T}yes" >&6
23382 else
23383 # FIXME - insert some real tests, host_os isn't really good enough
23384   case $host_os in
23385    darwin*)
23386        if test -n "$STRIP" ; then
23387          striplib="$STRIP -x"
23388          echo "$as_me:$LINENO: result: yes" >&5
23389 echo "${ECHO_T}yes" >&6
23390        else
23391   echo "$as_me:$LINENO: result: no" >&5
23392 echo "${ECHO_T}no" >&6
23393 fi
23394        ;;
23395    *)
23396   echo "$as_me:$LINENO: result: no" >&5
23397 echo "${ECHO_T}no" >&6
23398     ;;
23399   esac
23400 fi
23401
23402 if test "x$enable_dlopen" != xyes; then
23403   enable_dlopen=unknown
23404   enable_dlopen_self=unknown
23405   enable_dlopen_self_static=unknown
23406 else
23407   lt_cv_dlopen=no
23408   lt_cv_dlopen_libs=
23409
23410   case $host_os in
23411   beos*)
23412     lt_cv_dlopen="load_add_on"
23413     lt_cv_dlopen_libs=
23414     lt_cv_dlopen_self=yes
23415     ;;
23416
23417   mingw* | pw32*)
23418     lt_cv_dlopen="LoadLibrary"
23419     lt_cv_dlopen_libs=
23420    ;;
23421
23422   cygwin*)
23423     lt_cv_dlopen="dlopen"
23424     lt_cv_dlopen_libs=
23425    ;;
23426
23427   darwin*)
23428   # if libdl is installed we need to link against it
23429     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23430 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23431 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23432   echo $ECHO_N "(cached) $ECHO_C" >&6
23433 else
23434   ac_check_lib_save_LIBS=$LIBS
23435 LIBS="-ldl  $LIBS"
23436 cat >conftest.$ac_ext <<_ACEOF
23437 /* confdefs.h.  */
23438 _ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h.  */
23442
23443 /* Override any gcc2 internal prototype to avoid an error.  */
23444 #ifdef __cplusplus
23445 extern "C"
23446 #endif
23447 /* We use char because int might match the return type of a gcc2
23448    builtin and then its argument prototype would still apply.  */
23449 char dlopen ();
23450 int
23451 main ()
23452 {
23453 dlopen ();
23454   ;
23455   return 0;
23456 }
23457 _ACEOF
23458 rm -f conftest.$ac_objext conftest$ac_exeext
23459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23460   (eval $ac_link) 2>conftest.er1
23461   ac_status=$?
23462   grep -v '^ *+' conftest.er1 >conftest.err
23463   rm -f conftest.er1
23464   cat conftest.err >&5
23465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466   (exit $ac_status); } &&
23467          { ac_try='test -z "$ac_c_werror_flag"
23468                          || test ! -s conftest.err'
23469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23470   (eval $ac_try) 2>&5
23471   ac_status=$?
23472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473   (exit $ac_status); }; } &&
23474          { ac_try='test -s conftest$ac_exeext'
23475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23476   (eval $ac_try) 2>&5
23477   ac_status=$?
23478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479   (exit $ac_status); }; }; then
23480   ac_cv_lib_dl_dlopen=yes
23481 else
23482   echo "$as_me: failed program was:" >&5
23483 sed 's/^/| /' conftest.$ac_ext >&5
23484
23485 ac_cv_lib_dl_dlopen=no
23486 fi
23487 rm -f conftest.err conftest.$ac_objext \
23488       conftest$ac_exeext conftest.$ac_ext
23489 LIBS=$ac_check_lib_save_LIBS
23490 fi
23491 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23492 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23493 if test $ac_cv_lib_dl_dlopen = yes; then
23494   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23495 else
23496
23497     lt_cv_dlopen="dyld"
23498     lt_cv_dlopen_libs=
23499     lt_cv_dlopen_self=yes
23500
23501 fi
23502
23503    ;;
23504
23505   *)
23506     echo "$as_me:$LINENO: checking for shl_load" >&5
23507 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23508 if test "${ac_cv_func_shl_load+set}" = set; then
23509   echo $ECHO_N "(cached) $ECHO_C" >&6
23510 else
23511   cat >conftest.$ac_ext <<_ACEOF
23512 /* confdefs.h.  */
23513 _ACEOF
23514 cat confdefs.h >>conftest.$ac_ext
23515 cat >>conftest.$ac_ext <<_ACEOF
23516 /* end confdefs.h.  */
23517 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23518    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23519 #define shl_load innocuous_shl_load
23520
23521 /* System header to define __stub macros and hopefully few prototypes,
23522     which can conflict with char shl_load (); below.
23523     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23524     <limits.h> exists even on freestanding compilers.  */
23525
23526 #ifdef __STDC__
23527 # include <limits.h>
23528 #else
23529 # include <assert.h>
23530 #endif
23531
23532 #undef shl_load
23533
23534 /* Override any gcc2 internal prototype to avoid an error.  */
23535 #ifdef __cplusplus
23536 extern "C"
23537 {
23538 #endif
23539 /* We use char because int might match the return type of a gcc2
23540    builtin and then its argument prototype would still apply.  */
23541 char shl_load ();
23542 /* The GNU C library defines this for functions which it implements
23543     to always fail with ENOSYS.  Some functions are actually named
23544     something starting with __ and the normal name is an alias.  */
23545 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23546 choke me
23547 #else
23548 char (*f) () = shl_load;
23549 #endif
23550 #ifdef __cplusplus
23551 }
23552 #endif
23553
23554 int
23555 main ()
23556 {
23557 return f != shl_load;
23558   ;
23559   return 0;
23560 }
23561 _ACEOF
23562 rm -f conftest.$ac_objext conftest$ac_exeext
23563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23564   (eval $ac_link) 2>conftest.er1
23565   ac_status=$?
23566   grep -v '^ *+' conftest.er1 >conftest.err
23567   rm -f conftest.er1
23568   cat conftest.err >&5
23569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570   (exit $ac_status); } &&
23571          { ac_try='test -z "$ac_c_werror_flag"
23572                          || test ! -s conftest.err'
23573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23574   (eval $ac_try) 2>&5
23575   ac_status=$?
23576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577   (exit $ac_status); }; } &&
23578          { ac_try='test -s conftest$ac_exeext'
23579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23580   (eval $ac_try) 2>&5
23581   ac_status=$?
23582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583   (exit $ac_status); }; }; then
23584   ac_cv_func_shl_load=yes
23585 else
23586   echo "$as_me: failed program was:" >&5
23587 sed 's/^/| /' conftest.$ac_ext >&5
23588
23589 ac_cv_func_shl_load=no
23590 fi
23591 rm -f conftest.err conftest.$ac_objext \
23592       conftest$ac_exeext conftest.$ac_ext
23593 fi
23594 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23595 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23596 if test $ac_cv_func_shl_load = yes; then
23597   lt_cv_dlopen="shl_load"
23598 else
23599   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23600 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23601 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23602   echo $ECHO_N "(cached) $ECHO_C" >&6
23603 else
23604   ac_check_lib_save_LIBS=$LIBS
23605 LIBS="-ldld  $LIBS"
23606 cat >conftest.$ac_ext <<_ACEOF
23607 /* confdefs.h.  */
23608 _ACEOF
23609 cat confdefs.h >>conftest.$ac_ext
23610 cat >>conftest.$ac_ext <<_ACEOF
23611 /* end confdefs.h.  */
23612
23613 /* Override any gcc2 internal prototype to avoid an error.  */
23614 #ifdef __cplusplus
23615 extern "C"
23616 #endif
23617 /* We use char because int might match the return type of a gcc2
23618    builtin and then its argument prototype would still apply.  */
23619 char shl_load ();
23620 int
23621 main ()
23622 {
23623 shl_load ();
23624   ;
23625   return 0;
23626 }
23627 _ACEOF
23628 rm -f conftest.$ac_objext conftest$ac_exeext
23629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23630   (eval $ac_link) 2>conftest.er1
23631   ac_status=$?
23632   grep -v '^ *+' conftest.er1 >conftest.err
23633   rm -f conftest.er1
23634   cat conftest.err >&5
23635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636   (exit $ac_status); } &&
23637          { ac_try='test -z "$ac_c_werror_flag"
23638                          || test ! -s conftest.err'
23639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23640   (eval $ac_try) 2>&5
23641   ac_status=$?
23642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643   (exit $ac_status); }; } &&
23644          { ac_try='test -s conftest$ac_exeext'
23645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23646   (eval $ac_try) 2>&5
23647   ac_status=$?
23648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649   (exit $ac_status); }; }; then
23650   ac_cv_lib_dld_shl_load=yes
23651 else
23652   echo "$as_me: failed program was:" >&5
23653 sed 's/^/| /' conftest.$ac_ext >&5
23654
23655 ac_cv_lib_dld_shl_load=no
23656 fi
23657 rm -f conftest.err conftest.$ac_objext \
23658       conftest$ac_exeext conftest.$ac_ext
23659 LIBS=$ac_check_lib_save_LIBS
23660 fi
23661 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23662 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23663 if test $ac_cv_lib_dld_shl_load = yes; then
23664   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23665 else
23666   echo "$as_me:$LINENO: checking for dlopen" >&5
23667 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23668 if test "${ac_cv_func_dlopen+set}" = set; then
23669   echo $ECHO_N "(cached) $ECHO_C" >&6
23670 else
23671   cat >conftest.$ac_ext <<_ACEOF
23672 /* confdefs.h.  */
23673 _ACEOF
23674 cat confdefs.h >>conftest.$ac_ext
23675 cat >>conftest.$ac_ext <<_ACEOF
23676 /* end confdefs.h.  */
23677 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23679 #define dlopen innocuous_dlopen
23680
23681 /* System header to define __stub macros and hopefully few prototypes,
23682     which can conflict with char dlopen (); below.
23683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23684     <limits.h> exists even on freestanding compilers.  */
23685
23686 #ifdef __STDC__
23687 # include <limits.h>
23688 #else
23689 # include <assert.h>
23690 #endif
23691
23692 #undef dlopen
23693
23694 /* Override any gcc2 internal prototype to avoid an error.  */
23695 #ifdef __cplusplus
23696 extern "C"
23697 {
23698 #endif
23699 /* We use char because int might match the return type of a gcc2
23700    builtin and then its argument prototype would still apply.  */
23701 char dlopen ();
23702 /* The GNU C library defines this for functions which it implements
23703     to always fail with ENOSYS.  Some functions are actually named
23704     something starting with __ and the normal name is an alias.  */
23705 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23706 choke me
23707 #else
23708 char (*f) () = dlopen;
23709 #endif
23710 #ifdef __cplusplus
23711 }
23712 #endif
23713
23714 int
23715 main ()
23716 {
23717 return f != dlopen;
23718   ;
23719   return 0;
23720 }
23721 _ACEOF
23722 rm -f conftest.$ac_objext conftest$ac_exeext
23723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23724   (eval $ac_link) 2>conftest.er1
23725   ac_status=$?
23726   grep -v '^ *+' conftest.er1 >conftest.err
23727   rm -f conftest.er1
23728   cat conftest.err >&5
23729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730   (exit $ac_status); } &&
23731          { ac_try='test -z "$ac_c_werror_flag"
23732                          || test ! -s conftest.err'
23733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23734   (eval $ac_try) 2>&5
23735   ac_status=$?
23736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23737   (exit $ac_status); }; } &&
23738          { ac_try='test -s conftest$ac_exeext'
23739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23740   (eval $ac_try) 2>&5
23741   ac_status=$?
23742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743   (exit $ac_status); }; }; then
23744   ac_cv_func_dlopen=yes
23745 else
23746   echo "$as_me: failed program was:" >&5
23747 sed 's/^/| /' conftest.$ac_ext >&5
23748
23749 ac_cv_func_dlopen=no
23750 fi
23751 rm -f conftest.err conftest.$ac_objext \
23752       conftest$ac_exeext conftest.$ac_ext
23753 fi
23754 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23755 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23756 if test $ac_cv_func_dlopen = yes; then
23757   lt_cv_dlopen="dlopen"
23758 else
23759   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23760 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23761 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23762   echo $ECHO_N "(cached) $ECHO_C" >&6
23763 else
23764   ac_check_lib_save_LIBS=$LIBS
23765 LIBS="-ldl  $LIBS"
23766 cat >conftest.$ac_ext <<_ACEOF
23767 /* confdefs.h.  */
23768 _ACEOF
23769 cat confdefs.h >>conftest.$ac_ext
23770 cat >>conftest.$ac_ext <<_ACEOF
23771 /* end confdefs.h.  */
23772
23773 /* Override any gcc2 internal prototype to avoid an error.  */
23774 #ifdef __cplusplus
23775 extern "C"
23776 #endif
23777 /* We use char because int might match the return type of a gcc2
23778    builtin and then its argument prototype would still apply.  */
23779 char dlopen ();
23780 int
23781 main ()
23782 {
23783 dlopen ();
23784   ;
23785   return 0;
23786 }
23787 _ACEOF
23788 rm -f conftest.$ac_objext conftest$ac_exeext
23789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23790   (eval $ac_link) 2>conftest.er1
23791   ac_status=$?
23792   grep -v '^ *+' conftest.er1 >conftest.err
23793   rm -f conftest.er1
23794   cat conftest.err >&5
23795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796   (exit $ac_status); } &&
23797          { ac_try='test -z "$ac_c_werror_flag"
23798                          || test ! -s conftest.err'
23799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23800   (eval $ac_try) 2>&5
23801   ac_status=$?
23802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803   (exit $ac_status); }; } &&
23804          { ac_try='test -s conftest$ac_exeext'
23805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23806   (eval $ac_try) 2>&5
23807   ac_status=$?
23808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809   (exit $ac_status); }; }; then
23810   ac_cv_lib_dl_dlopen=yes
23811 else
23812   echo "$as_me: failed program was:" >&5
23813 sed 's/^/| /' conftest.$ac_ext >&5
23814
23815 ac_cv_lib_dl_dlopen=no
23816 fi
23817 rm -f conftest.err conftest.$ac_objext \
23818       conftest$ac_exeext conftest.$ac_ext
23819 LIBS=$ac_check_lib_save_LIBS
23820 fi
23821 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23822 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23823 if test $ac_cv_lib_dl_dlopen = yes; then
23824   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23825 else
23826   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23827 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23828 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23829   echo $ECHO_N "(cached) $ECHO_C" >&6
23830 else
23831   ac_check_lib_save_LIBS=$LIBS
23832 LIBS="-lsvld  $LIBS"
23833 cat >conftest.$ac_ext <<_ACEOF
23834 /* confdefs.h.  */
23835 _ACEOF
23836 cat confdefs.h >>conftest.$ac_ext
23837 cat >>conftest.$ac_ext <<_ACEOF
23838 /* end confdefs.h.  */
23839
23840 /* Override any gcc2 internal prototype to avoid an error.  */
23841 #ifdef __cplusplus
23842 extern "C"
23843 #endif
23844 /* We use char because int might match the return type of a gcc2
23845    builtin and then its argument prototype would still apply.  */
23846 char dlopen ();
23847 int
23848 main ()
23849 {
23850 dlopen ();
23851   ;
23852   return 0;
23853 }
23854 _ACEOF
23855 rm -f conftest.$ac_objext conftest$ac_exeext
23856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23857   (eval $ac_link) 2>conftest.er1
23858   ac_status=$?
23859   grep -v '^ *+' conftest.er1 >conftest.err
23860   rm -f conftest.er1
23861   cat conftest.err >&5
23862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863   (exit $ac_status); } &&
23864          { ac_try='test -z "$ac_c_werror_flag"
23865                          || test ! -s conftest.err'
23866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23867   (eval $ac_try) 2>&5
23868   ac_status=$?
23869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870   (exit $ac_status); }; } &&
23871          { ac_try='test -s conftest$ac_exeext'
23872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23873   (eval $ac_try) 2>&5
23874   ac_status=$?
23875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876   (exit $ac_status); }; }; then
23877   ac_cv_lib_svld_dlopen=yes
23878 else
23879   echo "$as_me: failed program was:" >&5
23880 sed 's/^/| /' conftest.$ac_ext >&5
23881
23882 ac_cv_lib_svld_dlopen=no
23883 fi
23884 rm -f conftest.err conftest.$ac_objext \
23885       conftest$ac_exeext conftest.$ac_ext
23886 LIBS=$ac_check_lib_save_LIBS
23887 fi
23888 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23889 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23890 if test $ac_cv_lib_svld_dlopen = yes; then
23891   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23892 else
23893   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23894 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23895 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23896   echo $ECHO_N "(cached) $ECHO_C" >&6
23897 else
23898   ac_check_lib_save_LIBS=$LIBS
23899 LIBS="-ldld  $LIBS"
23900 cat >conftest.$ac_ext <<_ACEOF
23901 /* confdefs.h.  */
23902 _ACEOF
23903 cat confdefs.h >>conftest.$ac_ext
23904 cat >>conftest.$ac_ext <<_ACEOF
23905 /* end confdefs.h.  */
23906
23907 /* Override any gcc2 internal prototype to avoid an error.  */
23908 #ifdef __cplusplus
23909 extern "C"
23910 #endif
23911 /* We use char because int might match the return type of a gcc2
23912    builtin and then its argument prototype would still apply.  */
23913 char dld_link ();
23914 int
23915 main ()
23916 {
23917 dld_link ();
23918   ;
23919   return 0;
23920 }
23921 _ACEOF
23922 rm -f conftest.$ac_objext conftest$ac_exeext
23923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23924   (eval $ac_link) 2>conftest.er1
23925   ac_status=$?
23926   grep -v '^ *+' conftest.er1 >conftest.err
23927   rm -f conftest.er1
23928   cat conftest.err >&5
23929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930   (exit $ac_status); } &&
23931          { ac_try='test -z "$ac_c_werror_flag"
23932                          || test ! -s conftest.err'
23933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23934   (eval $ac_try) 2>&5
23935   ac_status=$?
23936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937   (exit $ac_status); }; } &&
23938          { ac_try='test -s conftest$ac_exeext'
23939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23940   (eval $ac_try) 2>&5
23941   ac_status=$?
23942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943   (exit $ac_status); }; }; then
23944   ac_cv_lib_dld_dld_link=yes
23945 else
23946   echo "$as_me: failed program was:" >&5
23947 sed 's/^/| /' conftest.$ac_ext >&5
23948
23949 ac_cv_lib_dld_dld_link=no
23950 fi
23951 rm -f conftest.err conftest.$ac_objext \
23952       conftest$ac_exeext conftest.$ac_ext
23953 LIBS=$ac_check_lib_save_LIBS
23954 fi
23955 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23956 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23957 if test $ac_cv_lib_dld_dld_link = yes; then
23958   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23959 fi
23960
23961
23962 fi
23963
23964
23965 fi
23966
23967
23968 fi
23969
23970
23971 fi
23972
23973
23974 fi
23975
23976     ;;
23977   esac
23978
23979   if test "x$lt_cv_dlopen" != xno; then
23980     enable_dlopen=yes
23981   else
23982     enable_dlopen=no
23983   fi
23984
23985   case $lt_cv_dlopen in
23986   dlopen)
23987     save_CPPFLAGS="$CPPFLAGS"
23988     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23989
23990     save_LDFLAGS="$LDFLAGS"
23991     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23992
23993     save_LIBS="$LIBS"
23994     LIBS="$lt_cv_dlopen_libs $LIBS"
23995
23996     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23997 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23998 if test "${lt_cv_dlopen_self+set}" = set; then
23999   echo $ECHO_N "(cached) $ECHO_C" >&6
24000 else
24001           if test "$cross_compiling" = yes; then :
24002   lt_cv_dlopen_self=cross
24003 else
24004   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24005   lt_status=$lt_dlunknown
24006   cat > conftest.$ac_ext <<EOF
24007 #line 24007 "configure"
24008 #include "confdefs.h"
24009
24010 #if HAVE_DLFCN_H
24011 #include <dlfcn.h>
24012 #endif
24013
24014 #include <stdio.h>
24015
24016 #ifdef RTLD_GLOBAL
24017 #  define LT_DLGLOBAL           RTLD_GLOBAL
24018 #else
24019 #  ifdef DL_GLOBAL
24020 #    define LT_DLGLOBAL         DL_GLOBAL
24021 #  else
24022 #    define LT_DLGLOBAL         0
24023 #  endif
24024 #endif
24025
24026 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24027    find out it does not work in some platform. */
24028 #ifndef LT_DLLAZY_OR_NOW
24029 #  ifdef RTLD_LAZY
24030 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
24031 #  else
24032 #    ifdef DL_LAZY
24033 #      define LT_DLLAZY_OR_NOW          DL_LAZY
24034 #    else
24035 #      ifdef RTLD_NOW
24036 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
24037 #      else
24038 #        ifdef DL_NOW
24039 #          define LT_DLLAZY_OR_NOW      DL_NOW
24040 #        else
24041 #          define LT_DLLAZY_OR_NOW      0
24042 #        endif
24043 #      endif
24044 #    endif
24045 #  endif
24046 #endif
24047
24048 #ifdef __cplusplus
24049 extern "C" void exit (int);
24050 #endif
24051
24052 void fnord() { int i=42;}
24053 int main ()
24054 {
24055   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24056   int status = $lt_dlunknown;
24057
24058   if (self)
24059     {
24060       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
24061       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24062       /* dlclose (self); */
24063     }
24064
24065     exit (status);
24066 }
24067 EOF
24068   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24069   (eval $ac_link) 2>&5
24070   ac_status=$?
24071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24073     (./conftest; exit; ) 2>/dev/null
24074     lt_status=$?
24075     case x$lt_status in
24076       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
24077       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
24078       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
24079     esac
24080   else :
24081     # compilation failed
24082     lt_cv_dlopen_self=no
24083   fi
24084 fi
24085 rm -fr conftest*
24086
24087
24088 fi
24089 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
24090 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
24091
24092     if test "x$lt_cv_dlopen_self" = xyes; then
24093       LDFLAGS="$LDFLAGS $link_static_flag"
24094       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
24095 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
24096 if test "${lt_cv_dlopen_self_static+set}" = set; then
24097   echo $ECHO_N "(cached) $ECHO_C" >&6
24098 else
24099           if test "$cross_compiling" = yes; then :
24100   lt_cv_dlopen_self_static=cross
24101 else
24102   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
24103   lt_status=$lt_dlunknown
24104   cat > conftest.$ac_ext <<EOF
24105 #line 24105 "configure"
24106 #include "confdefs.h"
24107
24108 #if HAVE_DLFCN_H
24109 #include <dlfcn.h>
24110 #endif
24111
24112 #include <stdio.h>
24113
24114 #ifdef RTLD_GLOBAL
24115 #  define LT_DLGLOBAL           RTLD_GLOBAL
24116 #else
24117 #  ifdef DL_GLOBAL
24118 #    define LT_DLGLOBAL         DL_GLOBAL
24119 #  else
24120 #    define LT_DLGLOBAL         0
24121 #  endif
24122 #endif
24123
24124 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
24125    find out it does not work in some platform. */
24126 #ifndef LT_DLLAZY_OR_NOW
24127 #  ifdef RTLD_LAZY
24128 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
24129 #  else
24130 #    ifdef DL_LAZY
24131 #      define LT_DLLAZY_OR_NOW          DL_LAZY
24132 #    else
24133 #      ifdef RTLD_NOW
24134 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
24135 #      else
24136 #        ifdef DL_NOW
24137 #          define LT_DLLAZY_OR_NOW      DL_NOW
24138 #        else
24139 #          define LT_DLLAZY_OR_NOW      0
24140 #        endif
24141 #      endif
24142 #    endif
24143 #  endif
24144 #endif
24145
24146 #ifdef __cplusplus
24147 extern "C" void exit (int);
24148 #endif
24149
24150 void fnord() { int i=42;}
24151 int main ()
24152 {
24153   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
24154   int status = $lt_dlunknown;
24155
24156   if (self)
24157     {
24158       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
24159       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
24160       /* dlclose (self); */
24161     }
24162
24163     exit (status);
24164 }
24165 EOF
24166   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24167   (eval $ac_link) 2>&5
24168   ac_status=$?
24169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
24171     (./conftest; exit; ) 2>/dev/null
24172     lt_status=$?
24173     case x$lt_status in
24174       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
24175       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
24176       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
24177     esac
24178   else :
24179     # compilation failed
24180     lt_cv_dlopen_self_static=no
24181   fi
24182 fi
24183 rm -fr conftest*
24184
24185
24186 fi
24187 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
24188 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
24189     fi
24190
24191     CPPFLAGS="$save_CPPFLAGS"
24192     LDFLAGS="$save_LDFLAGS"
24193     LIBS="$save_LIBS"
24194     ;;
24195   esac
24196
24197   case $lt_cv_dlopen_self in
24198   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
24199   *) enable_dlopen_self=unknown ;;
24200   esac
24201
24202   case $lt_cv_dlopen_self_static in
24203   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
24204   *) enable_dlopen_self_static=unknown ;;
24205   esac
24206 fi
24207
24208
24209 # The else clause should only fire when bootstrapping the
24210 # libtool distribution, otherwise you forgot to ship ltmain.sh
24211 # with your package, and you will get complaints that there are
24212 # no rules to generate ltmain.sh.
24213 if test -f "$ltmain"; then
24214   # See if we are running on zsh, and set the options which allow our commands through
24215   # without removal of \ escapes.
24216   if test -n "${ZSH_VERSION+set}" ; then
24217     setopt NO_GLOB_SUBST
24218   fi
24219   # Now quote all the things that may contain metacharacters while being
24220   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24221   # variables and quote the copies for generation of the libtool script.
24222   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24223     SED SHELL STRIP \
24224     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24225     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24226     deplibs_check_method reload_flag reload_cmds need_locks \
24227     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24228     lt_cv_sys_global_symbol_to_c_name_address \
24229     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24230     old_postinstall_cmds old_postuninstall_cmds \
24231     compiler_GCJ \
24232     CC_GCJ \
24233     LD_GCJ \
24234     lt_prog_compiler_wl_GCJ \
24235     lt_prog_compiler_pic_GCJ \
24236     lt_prog_compiler_static_GCJ \
24237     lt_prog_compiler_no_builtin_flag_GCJ \
24238     export_dynamic_flag_spec_GCJ \
24239     thread_safe_flag_spec_GCJ \
24240     whole_archive_flag_spec_GCJ \
24241     enable_shared_with_static_runtimes_GCJ \
24242     old_archive_cmds_GCJ \
24243     old_archive_from_new_cmds_GCJ \
24244     predep_objects_GCJ \
24245     postdep_objects_GCJ \
24246     predeps_GCJ \
24247     postdeps_GCJ \
24248     compiler_lib_search_path_GCJ \
24249     archive_cmds_GCJ \
24250     archive_expsym_cmds_GCJ \
24251     postinstall_cmds_GCJ \
24252     postuninstall_cmds_GCJ \
24253     old_archive_from_expsyms_cmds_GCJ \
24254     allow_undefined_flag_GCJ \
24255     no_undefined_flag_GCJ \
24256     export_symbols_cmds_GCJ \
24257     hardcode_libdir_flag_spec_GCJ \
24258     hardcode_libdir_flag_spec_ld_GCJ \
24259     hardcode_libdir_separator_GCJ \
24260     hardcode_automatic_GCJ \
24261     module_cmds_GCJ \
24262     module_expsym_cmds_GCJ \
24263     lt_cv_prog_compiler_c_o_GCJ \
24264     exclude_expsyms_GCJ \
24265     include_expsyms_GCJ; do
24266
24267     case $var in
24268     old_archive_cmds_GCJ | \
24269     old_archive_from_new_cmds_GCJ | \
24270     archive_cmds_GCJ | \
24271     archive_expsym_cmds_GCJ | \
24272     module_cmds_GCJ | \
24273     module_expsym_cmds_GCJ | \
24274     old_archive_from_expsyms_cmds_GCJ | \
24275     export_symbols_cmds_GCJ | \
24276     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24277     postinstall_cmds | postuninstall_cmds | \
24278     old_postinstall_cmds | old_postuninstall_cmds | \
24279     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24280       # Double-quote double-evaled strings.
24281       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24282       ;;
24283     *)
24284       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24285       ;;
24286     esac
24287   done
24288
24289   case $lt_echo in
24290   *'\$0 --fallback-echo"')
24291     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24292     ;;
24293   esac
24294
24295 cfgfile="$ofile"
24296
24297   cat <<__EOF__ >> "$cfgfile"
24298 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24299
24300 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24301
24302 # Shell to use when invoking shell scripts.
24303 SHELL=$lt_SHELL
24304
24305 # Whether or not to build shared libraries.
24306 build_libtool_libs=$enable_shared
24307
24308 # Whether or not to build static libraries.
24309 build_old_libs=$enable_static
24310
24311 # Whether or not to add -lc for building shared libraries.
24312 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24313
24314 # Whether or not to disallow shared libs when runtime libs are static
24315 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24316
24317 # Whether or not to optimize for fast installation.
24318 fast_install=$enable_fast_install
24319
24320 # The host system.
24321 host_alias=$host_alias
24322 host=$host
24323
24324 # An echo program that does not interpret backslashes.
24325 echo=$lt_echo
24326
24327 # The archiver.
24328 AR=$lt_AR
24329 AR_FLAGS=$lt_AR_FLAGS
24330
24331 # A C compiler.
24332 LTCC=$lt_LTCC
24333
24334 # A language-specific compiler.
24335 CC=$lt_compiler_GCJ
24336
24337 # Is the compiler the GNU C compiler?
24338 with_gcc=$GCC_GCJ
24339
24340 # An ERE matcher.
24341 EGREP=$lt_EGREP
24342
24343 # The linker used to build libraries.
24344 LD=$lt_LD_GCJ
24345
24346 # Whether we need hard or soft links.
24347 LN_S=$lt_LN_S
24348
24349 # A BSD-compatible nm program.
24350 NM=$lt_NM
24351
24352 # A symbol stripping program
24353 STRIP=$lt_STRIP
24354
24355 # Used to examine libraries when file_magic_cmd begins "file"
24356 MAGIC_CMD=$MAGIC_CMD
24357
24358 # Used on cygwin: DLL creation program.
24359 DLLTOOL="$DLLTOOL"
24360
24361 # Used on cygwin: object dumper.
24362 OBJDUMP="$OBJDUMP"
24363
24364 # Used on cygwin: assembler.
24365 AS="$AS"
24366
24367 # The name of the directory that contains temporary libtool files.
24368 objdir=$objdir
24369
24370 # How to create reloadable object files.
24371 reload_flag=$lt_reload_flag
24372 reload_cmds=$lt_reload_cmds
24373
24374 # How to pass a linker flag through the compiler.
24375 wl=$lt_lt_prog_compiler_wl_GCJ
24376
24377 # Object file suffix (normally "o").
24378 objext="$ac_objext"
24379
24380 # Old archive suffix (normally "a").
24381 libext="$libext"
24382
24383 # Shared library suffix (normally ".so").
24384 shrext_cmds='$shrext_cmds'
24385
24386 # Executable file suffix (normally "").
24387 exeext="$exeext"
24388
24389 # Additional compiler flags for building library objects.
24390 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24391 pic_mode=$pic_mode
24392
24393 # What is the maximum length of a command?
24394 max_cmd_len=$lt_cv_sys_max_cmd_len
24395
24396 # Does compiler simultaneously support -c and -o options?
24397 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24398
24399 # Must we lock files when doing compilation ?
24400 need_locks=$lt_need_locks
24401
24402 # Do we need the lib prefix for modules?
24403 need_lib_prefix=$need_lib_prefix
24404
24405 # Do we need a version for libraries?
24406 need_version=$need_version
24407
24408 # Whether dlopen is supported.
24409 dlopen_support=$enable_dlopen
24410
24411 # Whether dlopen of programs is supported.
24412 dlopen_self=$enable_dlopen_self
24413
24414 # Whether dlopen of statically linked programs is supported.
24415 dlopen_self_static=$enable_dlopen_self_static
24416
24417 # Compiler flag to prevent dynamic linking.
24418 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24419
24420 # Compiler flag to turn off builtin functions.
24421 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24422
24423 # Compiler flag to allow reflexive dlopens.
24424 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24425
24426 # Compiler flag to generate shared objects directly from archives.
24427 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24428
24429 # Compiler flag to generate thread-safe objects.
24430 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24431
24432 # Library versioning type.
24433 version_type=$version_type
24434
24435 # Format of library name prefix.
24436 libname_spec=$lt_libname_spec
24437
24438 # List of archive names.  First name is the real one, the rest are links.
24439 # The last name is the one that the linker finds with -lNAME.
24440 library_names_spec=$lt_library_names_spec
24441
24442 # The coded name of the library, if different from the real name.
24443 soname_spec=$lt_soname_spec
24444
24445 # Commands used to build and install an old-style archive.
24446 RANLIB=$lt_RANLIB
24447 old_archive_cmds=$lt_old_archive_cmds_GCJ
24448 old_postinstall_cmds=$lt_old_postinstall_cmds
24449 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24450
24451 # Create an old-style archive from a shared archive.
24452 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24453
24454 # Create a temporary old-style archive to link instead of a shared archive.
24455 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24456
24457 # Commands used to build and install a shared archive.
24458 archive_cmds=$lt_archive_cmds_GCJ
24459 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24460 postinstall_cmds=$lt_postinstall_cmds
24461 postuninstall_cmds=$lt_postuninstall_cmds
24462
24463 # Commands used to build a loadable module (assumed same as above if empty)
24464 module_cmds=$lt_module_cmds_GCJ
24465 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24466
24467 # Commands to strip libraries.
24468 old_striplib=$lt_old_striplib
24469 striplib=$lt_striplib
24470
24471 # Dependencies to place before the objects being linked to create a
24472 # shared library.
24473 predep_objects=$lt_predep_objects_GCJ
24474
24475 # Dependencies to place after the objects being linked to create a
24476 # shared library.
24477 postdep_objects=$lt_postdep_objects_GCJ
24478
24479 # Dependencies to place before the objects being linked to create a
24480 # shared library.
24481 predeps=$lt_predeps_GCJ
24482
24483 # Dependencies to place after the objects being linked to create a
24484 # shared library.
24485 postdeps=$lt_postdeps_GCJ
24486
24487 # The library search path used internally by the compiler when linking
24488 # a shared library.
24489 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24490
24491 # Method to check whether dependent libraries are shared objects.
24492 deplibs_check_method=$lt_deplibs_check_method
24493
24494 # Command to use when deplibs_check_method == file_magic.
24495 file_magic_cmd=$lt_file_magic_cmd
24496
24497 # Flag that allows shared libraries with undefined symbols to be built.
24498 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24499
24500 # Flag that forces no undefined symbols.
24501 no_undefined_flag=$lt_no_undefined_flag_GCJ
24502
24503 # Commands used to finish a libtool library installation in a directory.
24504 finish_cmds=$lt_finish_cmds
24505
24506 # Same as above, but a single script fragment to be evaled but not shown.
24507 finish_eval=$lt_finish_eval
24508
24509 # Take the output of nm and produce a listing of raw symbols and C names.
24510 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24511
24512 # Transform the output of nm in a proper C declaration
24513 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24514
24515 # Transform the output of nm in a C name address pair
24516 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24517
24518 # This is the shared library runtime path variable.
24519 runpath_var=$runpath_var
24520
24521 # This is the shared library path variable.
24522 shlibpath_var=$shlibpath_var
24523
24524 # Is shlibpath searched before the hard-coded library search path?
24525 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24526
24527 # How to hardcode a shared library path into an executable.
24528 hardcode_action=$hardcode_action_GCJ
24529
24530 # Whether we should hardcode library paths into libraries.
24531 hardcode_into_libs=$hardcode_into_libs
24532
24533 # Flag to hardcode \$libdir into a binary during linking.
24534 # This must work even if \$libdir does not exist.
24535 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24536
24537 # If ld is used when linking, flag to hardcode \$libdir into
24538 # a binary during linking. This must work even if \$libdir does
24539 # not exist.
24540 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24541
24542 # Whether we need a single -rpath flag with a separated argument.
24543 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24544
24545 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24546 # resulting binary.
24547 hardcode_direct=$hardcode_direct_GCJ
24548
24549 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24550 # resulting binary.
24551 hardcode_minus_L=$hardcode_minus_L_GCJ
24552
24553 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24554 # the resulting binary.
24555 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24556
24557 # Set to yes if building a shared library automatically hardcodes DIR into the library
24558 # and all subsequent libraries and executables linked against it.
24559 hardcode_automatic=$hardcode_automatic_GCJ
24560
24561 # Variables whose values should be saved in libtool wrapper scripts and
24562 # restored at relink time.
24563 variables_saved_for_relink="$variables_saved_for_relink"
24564
24565 # Whether libtool must link a program against all its dependency libraries.
24566 link_all_deplibs=$link_all_deplibs_GCJ
24567
24568 # Compile-time system search path for libraries
24569 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24570
24571 # Run-time system search path for libraries
24572 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24573
24574 # Fix the shell variable \$srcfile for the compiler.
24575 fix_srcfile_path="$fix_srcfile_path_GCJ"
24576
24577 # Set to yes if exported symbols are required.
24578 always_export_symbols=$always_export_symbols_GCJ
24579
24580 # The commands to list exported symbols.
24581 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24582
24583 # The commands to extract the exported symbol list from a shared archive.
24584 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24585
24586 # Symbols that should not be listed in the preloaded symbols.
24587 exclude_expsyms=$lt_exclude_expsyms_GCJ
24588
24589 # Symbols that must always be exported.
24590 include_expsyms=$lt_include_expsyms_GCJ
24591
24592 # ### END LIBTOOL TAG CONFIG: $tagname
24593
24594 __EOF__
24595
24596
24597 else
24598   # If there is no Makefile yet, we rely on a make rule to execute
24599   # `config.status --recheck' to rerun these tests and create the
24600   # libtool script then.
24601   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24602   if test -f "$ltmain_in"; then
24603     test -f Makefile && make "$ltmain"
24604   fi
24605 fi
24606
24607
24608 ac_ext=c
24609 ac_cpp='$CPP $CPPFLAGS'
24610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24613
24614 CC="$lt_save_CC"
24615
24616         else
24617           tagname=""
24618         fi
24619         ;;
24620
24621       RC)
24622         ac_ext=c
24623 ac_cpp='$CPP $CPPFLAGS'
24624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24627
24628
24629 # Source file extension for RC test sources.
24630 ac_ext=rc
24631
24632 # Object file extension for compiled RC test sources.
24633 objext=o
24634 objext_RC=$objext
24635
24636 # Code to be used in simple compile tests
24637 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24638
24639 # Code to be used in simple link tests
24640 lt_simple_link_test_code="$lt_simple_compile_test_code"
24641
24642 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24643
24644 # If no C compiler was specified, use CC.
24645 LTCC=${LTCC-"$CC"}
24646
24647 # Allow CC to be a program name with arguments.
24648 compiler=$CC
24649
24650
24651 # Allow CC to be a program name with arguments.
24652 lt_save_CC="$CC"
24653 CC=${RC-"windres"}
24654 compiler=$CC
24655 compiler_RC=$CC
24656 lt_cv_prog_compiler_c_o_RC=yes
24657
24658 # The else clause should only fire when bootstrapping the
24659 # libtool distribution, otherwise you forgot to ship ltmain.sh
24660 # with your package, and you will get complaints that there are
24661 # no rules to generate ltmain.sh.
24662 if test -f "$ltmain"; then
24663   # See if we are running on zsh, and set the options which allow our commands through
24664   # without removal of \ escapes.
24665   if test -n "${ZSH_VERSION+set}" ; then
24666     setopt NO_GLOB_SUBST
24667   fi
24668   # Now quote all the things that may contain metacharacters while being
24669   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24670   # variables and quote the copies for generation of the libtool script.
24671   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24672     SED SHELL STRIP \
24673     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24674     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24675     deplibs_check_method reload_flag reload_cmds need_locks \
24676     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24677     lt_cv_sys_global_symbol_to_c_name_address \
24678     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24679     old_postinstall_cmds old_postuninstall_cmds \
24680     compiler_RC \
24681     CC_RC \
24682     LD_RC \
24683     lt_prog_compiler_wl_RC \
24684     lt_prog_compiler_pic_RC \
24685     lt_prog_compiler_static_RC \
24686     lt_prog_compiler_no_builtin_flag_RC \
24687     export_dynamic_flag_spec_RC \
24688     thread_safe_flag_spec_RC \
24689     whole_archive_flag_spec_RC \
24690     enable_shared_with_static_runtimes_RC \
24691     old_archive_cmds_RC \
24692     old_archive_from_new_cmds_RC \
24693     predep_objects_RC \
24694     postdep_objects_RC \
24695     predeps_RC \
24696     postdeps_RC \
24697     compiler_lib_search_path_RC \
24698     archive_cmds_RC \
24699     archive_expsym_cmds_RC \
24700     postinstall_cmds_RC \
24701     postuninstall_cmds_RC \
24702     old_archive_from_expsyms_cmds_RC \
24703     allow_undefined_flag_RC \
24704     no_undefined_flag_RC \
24705     export_symbols_cmds_RC \
24706     hardcode_libdir_flag_spec_RC \
24707     hardcode_libdir_flag_spec_ld_RC \
24708     hardcode_libdir_separator_RC \
24709     hardcode_automatic_RC \
24710     module_cmds_RC \
24711     module_expsym_cmds_RC \
24712     lt_cv_prog_compiler_c_o_RC \
24713     exclude_expsyms_RC \
24714     include_expsyms_RC; do
24715
24716     case $var in
24717     old_archive_cmds_RC | \
24718     old_archive_from_new_cmds_RC | \
24719     archive_cmds_RC | \
24720     archive_expsym_cmds_RC | \
24721     module_cmds_RC | \
24722     module_expsym_cmds_RC | \
24723     old_archive_from_expsyms_cmds_RC | \
24724     export_symbols_cmds_RC | \
24725     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24726     postinstall_cmds | postuninstall_cmds | \
24727     old_postinstall_cmds | old_postuninstall_cmds | \
24728     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24729       # Double-quote double-evaled strings.
24730       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24731       ;;
24732     *)
24733       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24734       ;;
24735     esac
24736   done
24737
24738   case $lt_echo in
24739   *'\$0 --fallback-echo"')
24740     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24741     ;;
24742   esac
24743
24744 cfgfile="$ofile"
24745
24746   cat <<__EOF__ >> "$cfgfile"
24747 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24748
24749 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24750
24751 # Shell to use when invoking shell scripts.
24752 SHELL=$lt_SHELL
24753
24754 # Whether or not to build shared libraries.
24755 build_libtool_libs=$enable_shared
24756
24757 # Whether or not to build static libraries.
24758 build_old_libs=$enable_static
24759
24760 # Whether or not to add -lc for building shared libraries.
24761 build_libtool_need_lc=$archive_cmds_need_lc_RC
24762
24763 # Whether or not to disallow shared libs when runtime libs are static
24764 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24765
24766 # Whether or not to optimize for fast installation.
24767 fast_install=$enable_fast_install
24768
24769 # The host system.
24770 host_alias=$host_alias
24771 host=$host
24772
24773 # An echo program that does not interpret backslashes.
24774 echo=$lt_echo
24775
24776 # The archiver.
24777 AR=$lt_AR
24778 AR_FLAGS=$lt_AR_FLAGS
24779
24780 # A C compiler.
24781 LTCC=$lt_LTCC
24782
24783 # A language-specific compiler.
24784 CC=$lt_compiler_RC
24785
24786 # Is the compiler the GNU C compiler?
24787 with_gcc=$GCC_RC
24788
24789 # An ERE matcher.
24790 EGREP=$lt_EGREP
24791
24792 # The linker used to build libraries.
24793 LD=$lt_LD_RC
24794
24795 # Whether we need hard or soft links.
24796 LN_S=$lt_LN_S
24797
24798 # A BSD-compatible nm program.
24799 NM=$lt_NM
24800
24801 # A symbol stripping program
24802 STRIP=$lt_STRIP
24803
24804 # Used to examine libraries when file_magic_cmd begins "file"
24805 MAGIC_CMD=$MAGIC_CMD
24806
24807 # Used on cygwin: DLL creation program.
24808 DLLTOOL="$DLLTOOL"
24809
24810 # Used on cygwin: object dumper.
24811 OBJDUMP="$OBJDUMP"
24812
24813 # Used on cygwin: assembler.
24814 AS="$AS"
24815
24816 # The name of the directory that contains temporary libtool files.
24817 objdir=$objdir
24818
24819 # How to create reloadable object files.
24820 reload_flag=$lt_reload_flag
24821 reload_cmds=$lt_reload_cmds
24822
24823 # How to pass a linker flag through the compiler.
24824 wl=$lt_lt_prog_compiler_wl_RC
24825
24826 # Object file suffix (normally "o").
24827 objext="$ac_objext"
24828
24829 # Old archive suffix (normally "a").
24830 libext="$libext"
24831
24832 # Shared library suffix (normally ".so").
24833 shrext_cmds='$shrext_cmds'
24834
24835 # Executable file suffix (normally "").
24836 exeext="$exeext"
24837
24838 # Additional compiler flags for building library objects.
24839 pic_flag=$lt_lt_prog_compiler_pic_RC
24840 pic_mode=$pic_mode
24841
24842 # What is the maximum length of a command?
24843 max_cmd_len=$lt_cv_sys_max_cmd_len
24844
24845 # Does compiler simultaneously support -c and -o options?
24846 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24847
24848 # Must we lock files when doing compilation ?
24849 need_locks=$lt_need_locks
24850
24851 # Do we need the lib prefix for modules?
24852 need_lib_prefix=$need_lib_prefix
24853
24854 # Do we need a version for libraries?
24855 need_version=$need_version
24856
24857 # Whether dlopen is supported.
24858 dlopen_support=$enable_dlopen
24859
24860 # Whether dlopen of programs is supported.
24861 dlopen_self=$enable_dlopen_self
24862
24863 # Whether dlopen of statically linked programs is supported.
24864 dlopen_self_static=$enable_dlopen_self_static
24865
24866 # Compiler flag to prevent dynamic linking.
24867 link_static_flag=$lt_lt_prog_compiler_static_RC
24868
24869 # Compiler flag to turn off builtin functions.
24870 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24871
24872 # Compiler flag to allow reflexive dlopens.
24873 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24874
24875 # Compiler flag to generate shared objects directly from archives.
24876 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24877
24878 # Compiler flag to generate thread-safe objects.
24879 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24880
24881 # Library versioning type.
24882 version_type=$version_type
24883
24884 # Format of library name prefix.
24885 libname_spec=$lt_libname_spec
24886
24887 # List of archive names.  First name is the real one, the rest are links.
24888 # The last name is the one that the linker finds with -lNAME.
24889 library_names_spec=$lt_library_names_spec
24890
24891 # The coded name of the library, if different from the real name.
24892 soname_spec=$lt_soname_spec
24893
24894 # Commands used to build and install an old-style archive.
24895 RANLIB=$lt_RANLIB
24896 old_archive_cmds=$lt_old_archive_cmds_RC
24897 old_postinstall_cmds=$lt_old_postinstall_cmds
24898 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24899
24900 # Create an old-style archive from a shared archive.
24901 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24902
24903 # Create a temporary old-style archive to link instead of a shared archive.
24904 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24905
24906 # Commands used to build and install a shared archive.
24907 archive_cmds=$lt_archive_cmds_RC
24908 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24909 postinstall_cmds=$lt_postinstall_cmds
24910 postuninstall_cmds=$lt_postuninstall_cmds
24911
24912 # Commands used to build a loadable module (assumed same as above if empty)
24913 module_cmds=$lt_module_cmds_RC
24914 module_expsym_cmds=$lt_module_expsym_cmds_RC
24915
24916 # Commands to strip libraries.
24917 old_striplib=$lt_old_striplib
24918 striplib=$lt_striplib
24919
24920 # Dependencies to place before the objects being linked to create a
24921 # shared library.
24922 predep_objects=$lt_predep_objects_RC
24923
24924 # Dependencies to place after the objects being linked to create a
24925 # shared library.
24926 postdep_objects=$lt_postdep_objects_RC
24927
24928 # Dependencies to place before the objects being linked to create a
24929 # shared library.
24930 predeps=$lt_predeps_RC
24931
24932 # Dependencies to place after the objects being linked to create a
24933 # shared library.
24934 postdeps=$lt_postdeps_RC
24935
24936 # The library search path used internally by the compiler when linking
24937 # a shared library.
24938 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24939
24940 # Method to check whether dependent libraries are shared objects.
24941 deplibs_check_method=$lt_deplibs_check_method
24942
24943 # Command to use when deplibs_check_method == file_magic.
24944 file_magic_cmd=$lt_file_magic_cmd
24945
24946 # Flag that allows shared libraries with undefined symbols to be built.
24947 allow_undefined_flag=$lt_allow_undefined_flag_RC
24948
24949 # Flag that forces no undefined symbols.
24950 no_undefined_flag=$lt_no_undefined_flag_RC
24951
24952 # Commands used to finish a libtool library installation in a directory.
24953 finish_cmds=$lt_finish_cmds
24954
24955 # Same as above, but a single script fragment to be evaled but not shown.
24956 finish_eval=$lt_finish_eval
24957
24958 # Take the output of nm and produce a listing of raw symbols and C names.
24959 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24960
24961 # Transform the output of nm in a proper C declaration
24962 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24963
24964 # Transform the output of nm in a C name address pair
24965 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24966
24967 # This is the shared library runtime path variable.
24968 runpath_var=$runpath_var
24969
24970 # This is the shared library path variable.
24971 shlibpath_var=$shlibpath_var
24972
24973 # Is shlibpath searched before the hard-coded library search path?
24974 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24975
24976 # How to hardcode a shared library path into an executable.
24977 hardcode_action=$hardcode_action_RC
24978
24979 # Whether we should hardcode library paths into libraries.
24980 hardcode_into_libs=$hardcode_into_libs
24981
24982 # Flag to hardcode \$libdir into a binary during linking.
24983 # This must work even if \$libdir does not exist.
24984 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24985
24986 # If ld is used when linking, flag to hardcode \$libdir into
24987 # a binary during linking. This must work even if \$libdir does
24988 # not exist.
24989 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24990
24991 # Whether we need a single -rpath flag with a separated argument.
24992 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24993
24994 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24995 # resulting binary.
24996 hardcode_direct=$hardcode_direct_RC
24997
24998 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24999 # resulting binary.
25000 hardcode_minus_L=$hardcode_minus_L_RC
25001
25002 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25003 # the resulting binary.
25004 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25005
25006 # Set to yes if building a shared library automatically hardcodes DIR into the library
25007 # and all subsequent libraries and executables linked against it.
25008 hardcode_automatic=$hardcode_automatic_RC
25009
25010 # Variables whose values should be saved in libtool wrapper scripts and
25011 # restored at relink time.
25012 variables_saved_for_relink="$variables_saved_for_relink"
25013
25014 # Whether libtool must link a program against all its dependency libraries.
25015 link_all_deplibs=$link_all_deplibs_RC
25016
25017 # Compile-time system search path for libraries
25018 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25019
25020 # Run-time system search path for libraries
25021 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25022
25023 # Fix the shell variable \$srcfile for the compiler.
25024 fix_srcfile_path="$fix_srcfile_path_RC"
25025
25026 # Set to yes if exported symbols are required.
25027 always_export_symbols=$always_export_symbols_RC
25028
25029 # The commands to list exported symbols.
25030 export_symbols_cmds=$lt_export_symbols_cmds_RC
25031
25032 # The commands to extract the exported symbol list from a shared archive.
25033 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25034
25035 # Symbols that should not be listed in the preloaded symbols.
25036 exclude_expsyms=$lt_exclude_expsyms_RC
25037
25038 # Symbols that must always be exported.
25039 include_expsyms=$lt_include_expsyms_RC
25040
25041 # ### END LIBTOOL TAG CONFIG: $tagname
25042
25043 __EOF__
25044
25045
25046 else
25047   # If there is no Makefile yet, we rely on a make rule to execute
25048   # `config.status --recheck' to rerun these tests and create the
25049   # libtool script then.
25050   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25051   if test -f "$ltmain_in"; then
25052     test -f Makefile && make "$ltmain"
25053   fi
25054 fi
25055
25056
25057 ac_ext=c
25058 ac_cpp='$CPP $CPPFLAGS'
25059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25062
25063 CC="$lt_save_CC"
25064
25065         ;;
25066
25067       *)
25068         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25069 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25070    { (exit 1); exit 1; }; }
25071         ;;
25072       esac
25073
25074       # Append the new tag name to the list of available tags.
25075       if test -n "$tagname" ; then
25076       available_tags="$available_tags $tagname"
25077     fi
25078     fi
25079   done
25080   IFS="$lt_save_ifs"
25081
25082   # Now substitute the updated list of available tags.
25083   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25084     mv "${ofile}T" "$ofile"
25085     chmod +x "$ofile"
25086   else
25087     rm -f "${ofile}T"
25088     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25089 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25090    { (exit 1); exit 1; }; }
25091   fi
25092 fi
25093
25094
25095
25096 # This can be used to rebuild libtool when needed
25097 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25098
25099 # Always use our own libtool.
25100 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
25101
25102 # Prevent multiple expansion
25103
25104
25105
25106
25107
25108
25109
25110
25111
25112
25113
25114
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124 if test "$lt_cv_dlopen_self" = "yes" ; then
25125
25126 cat >>confdefs.h <<\_ACEOF
25127 #define CAN_DLOPEN_SELF 1
25128 _ACEOF
25129
25130 fi
25131
25132 etags_version=`$ETAGS --version 2>&1`
25133 case "$etags_version" in
25134         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
25135         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
25136         *) ETAGSFLAGS="" ;;
25137 esac
25138 ETAGSFLAGS=$ETAGSFLAGS
25139
25140
25141 if test "$WITH_LLVMGCCDIR" = "default" ; then
25142   LLVMGCC="llvm-gcc${EXEEXT}"
25143   LLVMGXX="llvm-g++${EXEEXT}"
25144   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25145 set dummy $LLVMGCC; ac_word=$2
25146 echo "$as_me:$LINENO: checking for $ac_word" >&5
25147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25148 if test "${ac_cv_path_LLVMGCC+set}" = set; then
25149   echo $ECHO_N "(cached) $ECHO_C" >&6
25150 else
25151   case $LLVMGCC in
25152   [\\/]* | ?:[\\/]*)
25153   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25154   ;;
25155   *)
25156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25157 for as_dir in $PATH
25158 do
25159   IFS=$as_save_IFS
25160   test -z "$as_dir" && as_dir=.
25161   for ac_exec_ext in '' $ac_executable_extensions; do
25162   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25163     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25165     break 2
25166   fi
25167 done
25168 done
25169
25170   ;;
25171 esac
25172 fi
25173 LLVMGCC=$ac_cv_path_LLVMGCC
25174
25175 if test -n "$LLVMGCC"; then
25176   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25177 echo "${ECHO_T}$LLVMGCC" >&6
25178 else
25179   echo "$as_me:$LINENO: result: no" >&5
25180 echo "${ECHO_T}no" >&6
25181 fi
25182
25183   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25184 set dummy $LLVMGXX; ac_word=$2
25185 echo "$as_me:$LINENO: checking for $ac_word" >&5
25186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25187 if test "${ac_cv_path_LLVMGXX+set}" = set; then
25188   echo $ECHO_N "(cached) $ECHO_C" >&6
25189 else
25190   case $LLVMGXX in
25191   [\\/]* | ?:[\\/]*)
25192   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25193   ;;
25194   *)
25195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25196 for as_dir in $PATH
25197 do
25198   IFS=$as_save_IFS
25199   test -z "$as_dir" && as_dir=.
25200   for ac_exec_ext in '' $ac_executable_extensions; do
25201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25202     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25204     break 2
25205   fi
25206 done
25207 done
25208
25209   ;;
25210 esac
25211 fi
25212 LLVMGXX=$ac_cv_path_LLVMGXX
25213
25214 if test -n "$LLVMGXX"; then
25215   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25216 echo "${ECHO_T}$LLVMGXX" >&6
25217 else
25218   echo "$as_me:$LINENO: result: no" >&5
25219 echo "${ECHO_T}no" >&6
25220 fi
25221
25222 else
25223   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25224   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25225   LLVMGCC=$LLVMGCC
25226
25227   LLVMGXX=$LLVMGXX
25228
25229 fi
25230
25231 echo "$as_me:$LINENO: checking tool compatibility" >&5
25232 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
25233
25234 ICC=no
25235 IXX=no
25236 case $CC in
25237   icc*|icpc*)
25238     ICC=yes
25239     IXX=yes
25240     ;;
25241    *)
25242     ;;
25243 esac
25244
25245 if test "$GCC" != "yes" && test "$ICC" != "yes"
25246 then
25247   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25248 echo "$as_me: error: gcc|icc required but not found" >&2;}
25249    { (exit 1); exit 1; }; }
25250 fi
25251
25252 if test "$GXX" != "yes" && test "$IXX" != "yes"
25253 then
25254   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25255 echo "$as_me: error: g++|icc required but not found" >&2;}
25256    { (exit 1); exit 1; }; }
25257 fi
25258
25259 if test "$GCC" = "yes"
25260 then
25261   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
25262   if test "$gccmajor" -lt "3"
25263   then
25264     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
25265 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25266    { (exit 1); exit 1; }; }
25267   fi
25268 fi
25269
25270 if test -z "$llvm_cv_gnu_make_command"
25271 then
25272   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25273 echo "$as_me: error: GNU Make required but not found" >&2;}
25274    { (exit 1); exit 1; }; }
25275 fi
25276
25277 echo "$as_me:$LINENO: result: ok" >&5
25278 echo "${ECHO_T}ok" >&6
25279
25280
25281
25282 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25283 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25284 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25285   echo $ECHO_N "(cached) $ECHO_C" >&6
25286 else
25287   ac_check_lib_save_LIBS=$LIBS
25288 LIBS="-lelf  $LIBS"
25289 cat >conftest.$ac_ext <<_ACEOF
25290 /* confdefs.h.  */
25291 _ACEOF
25292 cat confdefs.h >>conftest.$ac_ext
25293 cat >>conftest.$ac_ext <<_ACEOF
25294 /* end confdefs.h.  */
25295
25296 /* Override any gcc2 internal prototype to avoid an error.  */
25297 #ifdef __cplusplus
25298 extern "C"
25299 #endif
25300 /* We use char because int might match the return type of a gcc2
25301    builtin and then its argument prototype would still apply.  */
25302 char elf_begin ();
25303 int
25304 main ()
25305 {
25306 elf_begin ();
25307   ;
25308   return 0;
25309 }
25310 _ACEOF
25311 rm -f conftest.$ac_objext conftest$ac_exeext
25312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25313   (eval $ac_link) 2>conftest.er1
25314   ac_status=$?
25315   grep -v '^ *+' conftest.er1 >conftest.err
25316   rm -f conftest.er1
25317   cat conftest.err >&5
25318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319   (exit $ac_status); } &&
25320          { ac_try='test -z "$ac_c_werror_flag"
25321                          || test ! -s conftest.err'
25322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25323   (eval $ac_try) 2>&5
25324   ac_status=$?
25325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326   (exit $ac_status); }; } &&
25327          { ac_try='test -s conftest$ac_exeext'
25328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25329   (eval $ac_try) 2>&5
25330   ac_status=$?
25331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332   (exit $ac_status); }; }; then
25333   ac_cv_lib_elf_elf_begin=yes
25334 else
25335   echo "$as_me: failed program was:" >&5
25336 sed 's/^/| /' conftest.$ac_ext >&5
25337
25338 ac_cv_lib_elf_elf_begin=no
25339 fi
25340 rm -f conftest.err conftest.$ac_objext \
25341       conftest$ac_exeext conftest.$ac_ext
25342 LIBS=$ac_check_lib_save_LIBS
25343 fi
25344 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25345 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25346 if test $ac_cv_lib_elf_elf_begin = yes; then
25347   cat >>confdefs.h <<_ACEOF
25348 #define HAVE_LIBELF 1
25349 _ACEOF
25350
25351   LIBS="-lelf $LIBS"
25352
25353 fi
25354
25355
25356 echo "$as_me:$LINENO: checking for sin in -lm" >&5
25357 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25358 if test "${ac_cv_lib_m_sin+set}" = set; then
25359   echo $ECHO_N "(cached) $ECHO_C" >&6
25360 else
25361   ac_check_lib_save_LIBS=$LIBS
25362 LIBS="-lm  $LIBS"
25363 cat >conftest.$ac_ext <<_ACEOF
25364 /* confdefs.h.  */
25365 _ACEOF
25366 cat confdefs.h >>conftest.$ac_ext
25367 cat >>conftest.$ac_ext <<_ACEOF
25368 /* end confdefs.h.  */
25369
25370 /* Override any gcc2 internal prototype to avoid an error.  */
25371 #ifdef __cplusplus
25372 extern "C"
25373 #endif
25374 /* We use char because int might match the return type of a gcc2
25375    builtin and then its argument prototype would still apply.  */
25376 char sin ();
25377 int
25378 main ()
25379 {
25380 sin ();
25381   ;
25382   return 0;
25383 }
25384 _ACEOF
25385 rm -f conftest.$ac_objext conftest$ac_exeext
25386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25387   (eval $ac_link) 2>conftest.er1
25388   ac_status=$?
25389   grep -v '^ *+' conftest.er1 >conftest.err
25390   rm -f conftest.er1
25391   cat conftest.err >&5
25392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25393   (exit $ac_status); } &&
25394          { ac_try='test -z "$ac_c_werror_flag"
25395                          || test ! -s conftest.err'
25396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25397   (eval $ac_try) 2>&5
25398   ac_status=$?
25399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400   (exit $ac_status); }; } &&
25401          { ac_try='test -s conftest$ac_exeext'
25402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25403   (eval $ac_try) 2>&5
25404   ac_status=$?
25405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406   (exit $ac_status); }; }; then
25407   ac_cv_lib_m_sin=yes
25408 else
25409   echo "$as_me: failed program was:" >&5
25410 sed 's/^/| /' conftest.$ac_ext >&5
25411
25412 ac_cv_lib_m_sin=no
25413 fi
25414 rm -f conftest.err conftest.$ac_objext \
25415       conftest$ac_exeext conftest.$ac_ext
25416 LIBS=$ac_check_lib_save_LIBS
25417 fi
25418 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25419 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25420 if test $ac_cv_lib_m_sin = yes; then
25421   cat >>confdefs.h <<_ACEOF
25422 #define HAVE_LIBM 1
25423 _ACEOF
25424
25425   LIBS="-lm $LIBS"
25426
25427 fi
25428
25429 if test "$llvm_cv_os_type" == "MingW" ; then
25430
25431 echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25432 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6
25433 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
25434   echo $ECHO_N "(cached) $ECHO_C" >&6
25435 else
25436   ac_check_lib_save_LIBS=$LIBS
25437 LIBS="-limagehlp  $LIBS"
25438 cat >conftest.$ac_ext <<_ACEOF
25439 /* confdefs.h.  */
25440 _ACEOF
25441 cat confdefs.h >>conftest.$ac_ext
25442 cat >>conftest.$ac_ext <<_ACEOF
25443 /* end confdefs.h.  */
25444
25445
25446 int
25447 main ()
25448 {
25449 main ();
25450   ;
25451   return 0;
25452 }
25453 _ACEOF
25454 rm -f conftest.$ac_objext conftest$ac_exeext
25455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25456   (eval $ac_link) 2>conftest.er1
25457   ac_status=$?
25458   grep -v '^ *+' conftest.er1 >conftest.err
25459   rm -f conftest.er1
25460   cat conftest.err >&5
25461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462   (exit $ac_status); } &&
25463          { ac_try='test -z "$ac_c_werror_flag"
25464                          || test ! -s conftest.err'
25465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25466   (eval $ac_try) 2>&5
25467   ac_status=$?
25468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469   (exit $ac_status); }; } &&
25470          { ac_try='test -s conftest$ac_exeext'
25471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25472   (eval $ac_try) 2>&5
25473   ac_status=$?
25474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475   (exit $ac_status); }; }; then
25476   ac_cv_lib_imagehlp_main=yes
25477 else
25478   echo "$as_me: failed program was:" >&5
25479 sed 's/^/| /' conftest.$ac_ext >&5
25480
25481 ac_cv_lib_imagehlp_main=no
25482 fi
25483 rm -f conftest.err conftest.$ac_objext \
25484       conftest$ac_exeext conftest.$ac_ext
25485 LIBS=$ac_check_lib_save_LIBS
25486 fi
25487 echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25488 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6
25489 if test $ac_cv_lib_imagehlp_main = yes; then
25490   cat >>confdefs.h <<_ACEOF
25491 #define HAVE_LIBIMAGEHLP 1
25492 _ACEOF
25493
25494   LIBS="-limagehlp $LIBS"
25495
25496 fi
25497
25498
25499 echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25500 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6
25501 if test "${ac_cv_lib_psapi_main+set}" = set; then
25502   echo $ECHO_N "(cached) $ECHO_C" >&6
25503 else
25504   ac_check_lib_save_LIBS=$LIBS
25505 LIBS="-lpsapi  $LIBS"
25506 cat >conftest.$ac_ext <<_ACEOF
25507 /* confdefs.h.  */
25508 _ACEOF
25509 cat confdefs.h >>conftest.$ac_ext
25510 cat >>conftest.$ac_ext <<_ACEOF
25511 /* end confdefs.h.  */
25512
25513
25514 int
25515 main ()
25516 {
25517 main ();
25518   ;
25519   return 0;
25520 }
25521 _ACEOF
25522 rm -f conftest.$ac_objext conftest$ac_exeext
25523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25524   (eval $ac_link) 2>conftest.er1
25525   ac_status=$?
25526   grep -v '^ *+' conftest.er1 >conftest.err
25527   rm -f conftest.er1
25528   cat conftest.err >&5
25529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530   (exit $ac_status); } &&
25531          { ac_try='test -z "$ac_c_werror_flag"
25532                          || test ! -s conftest.err'
25533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25534   (eval $ac_try) 2>&5
25535   ac_status=$?
25536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537   (exit $ac_status); }; } &&
25538          { ac_try='test -s conftest$ac_exeext'
25539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25540   (eval $ac_try) 2>&5
25541   ac_status=$?
25542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543   (exit $ac_status); }; }; then
25544   ac_cv_lib_psapi_main=yes
25545 else
25546   echo "$as_me: failed program was:" >&5
25547 sed 's/^/| /' conftest.$ac_ext >&5
25548
25549 ac_cv_lib_psapi_main=no
25550 fi
25551 rm -f conftest.err conftest.$ac_objext \
25552       conftest$ac_exeext conftest.$ac_ext
25553 LIBS=$ac_check_lib_save_LIBS
25554 fi
25555 echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
25556 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6
25557 if test $ac_cv_lib_psapi_main = yes; then
25558   cat >>confdefs.h <<_ACEOF
25559 #define HAVE_LIBPSAPI 1
25560 _ACEOF
25561
25562   LIBS="-lpsapi $LIBS"
25563
25564 fi
25565
25566 fi
25567
25568 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25569 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25570 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25571   echo $ECHO_N "(cached) $ECHO_C" >&6
25572 else
25573   ac_func_search_save_LIBS=$LIBS
25574 ac_cv_search_lt_dlopen=no
25575 cat >conftest.$ac_ext <<_ACEOF
25576 /* confdefs.h.  */
25577 _ACEOF
25578 cat confdefs.h >>conftest.$ac_ext
25579 cat >>conftest.$ac_ext <<_ACEOF
25580 /* end confdefs.h.  */
25581
25582 /* Override any gcc2 internal prototype to avoid an error.  */
25583 #ifdef __cplusplus
25584 extern "C"
25585 #endif
25586 /* We use char because int might match the return type of a gcc2
25587    builtin and then its argument prototype would still apply.  */
25588 char lt_dlopen ();
25589 int
25590 main ()
25591 {
25592 lt_dlopen ();
25593   ;
25594   return 0;
25595 }
25596 _ACEOF
25597 rm -f conftest.$ac_objext conftest$ac_exeext
25598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25599   (eval $ac_link) 2>conftest.er1
25600   ac_status=$?
25601   grep -v '^ *+' conftest.er1 >conftest.err
25602   rm -f conftest.er1
25603   cat conftest.err >&5
25604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605   (exit $ac_status); } &&
25606          { ac_try='test -z "$ac_c_werror_flag"
25607                          || test ! -s conftest.err'
25608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25609   (eval $ac_try) 2>&5
25610   ac_status=$?
25611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612   (exit $ac_status); }; } &&
25613          { ac_try='test -s conftest$ac_exeext'
25614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25615   (eval $ac_try) 2>&5
25616   ac_status=$?
25617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618   (exit $ac_status); }; }; then
25619   ac_cv_search_lt_dlopen="none required"
25620 else
25621   echo "$as_me: failed program was:" >&5
25622 sed 's/^/| /' conftest.$ac_ext >&5
25623
25624 fi
25625 rm -f conftest.err conftest.$ac_objext \
25626       conftest$ac_exeext conftest.$ac_ext
25627 if test "$ac_cv_search_lt_dlopen" = no; then
25628   for ac_lib in ltdl; do
25629     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25630     cat >conftest.$ac_ext <<_ACEOF
25631 /* confdefs.h.  */
25632 _ACEOF
25633 cat confdefs.h >>conftest.$ac_ext
25634 cat >>conftest.$ac_ext <<_ACEOF
25635 /* end confdefs.h.  */
25636
25637 /* Override any gcc2 internal prototype to avoid an error.  */
25638 #ifdef __cplusplus
25639 extern "C"
25640 #endif
25641 /* We use char because int might match the return type of a gcc2
25642    builtin and then its argument prototype would still apply.  */
25643 char lt_dlopen ();
25644 int
25645 main ()
25646 {
25647 lt_dlopen ();
25648   ;
25649   return 0;
25650 }
25651 _ACEOF
25652 rm -f conftest.$ac_objext conftest$ac_exeext
25653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25654   (eval $ac_link) 2>conftest.er1
25655   ac_status=$?
25656   grep -v '^ *+' conftest.er1 >conftest.err
25657   rm -f conftest.er1
25658   cat conftest.err >&5
25659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660   (exit $ac_status); } &&
25661          { ac_try='test -z "$ac_c_werror_flag"
25662                          || test ! -s conftest.err'
25663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25664   (eval $ac_try) 2>&5
25665   ac_status=$?
25666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25667   (exit $ac_status); }; } &&
25668          { ac_try='test -s conftest$ac_exeext'
25669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25670   (eval $ac_try) 2>&5
25671   ac_status=$?
25672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673   (exit $ac_status); }; }; then
25674   ac_cv_search_lt_dlopen="-l$ac_lib"
25675 break
25676 else
25677   echo "$as_me: failed program was:" >&5
25678 sed 's/^/| /' conftest.$ac_ext >&5
25679
25680 fi
25681 rm -f conftest.err conftest.$ac_objext \
25682       conftest$ac_exeext conftest.$ac_ext
25683   done
25684 fi
25685 LIBS=$ac_func_search_save_LIBS
25686 fi
25687 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25688 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25689 if test "$ac_cv_search_lt_dlopen" != no; then
25690   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25691
25692 cat >>confdefs.h <<\_ACEOF
25693 #define HAVE_LT_DLOPEN 1
25694 _ACEOF
25695
25696 else
25697   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25698                            not be available" >&5
25699 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25700                            not be available" >&2;}
25701 fi
25702
25703
25704 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25705 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25706 if test "${ac_cv_search_dlopen+set}" = set; then
25707   echo $ECHO_N "(cached) $ECHO_C" >&6
25708 else
25709   ac_func_search_save_LIBS=$LIBS
25710 ac_cv_search_dlopen=no
25711 cat >conftest.$ac_ext <<_ACEOF
25712 /* confdefs.h.  */
25713 _ACEOF
25714 cat confdefs.h >>conftest.$ac_ext
25715 cat >>conftest.$ac_ext <<_ACEOF
25716 /* end confdefs.h.  */
25717
25718 /* Override any gcc2 internal prototype to avoid an error.  */
25719 #ifdef __cplusplus
25720 extern "C"
25721 #endif
25722 /* We use char because int might match the return type of a gcc2
25723    builtin and then its argument prototype would still apply.  */
25724 char dlopen ();
25725 int
25726 main ()
25727 {
25728 dlopen ();
25729   ;
25730   return 0;
25731 }
25732 _ACEOF
25733 rm -f conftest.$ac_objext conftest$ac_exeext
25734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25735   (eval $ac_link) 2>conftest.er1
25736   ac_status=$?
25737   grep -v '^ *+' conftest.er1 >conftest.err
25738   rm -f conftest.er1
25739   cat conftest.err >&5
25740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25741   (exit $ac_status); } &&
25742          { ac_try='test -z "$ac_c_werror_flag"
25743                          || test ! -s conftest.err'
25744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25745   (eval $ac_try) 2>&5
25746   ac_status=$?
25747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748   (exit $ac_status); }; } &&
25749          { ac_try='test -s conftest$ac_exeext'
25750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25751   (eval $ac_try) 2>&5
25752   ac_status=$?
25753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754   (exit $ac_status); }; }; then
25755   ac_cv_search_dlopen="none required"
25756 else
25757   echo "$as_me: failed program was:" >&5
25758 sed 's/^/| /' conftest.$ac_ext >&5
25759
25760 fi
25761 rm -f conftest.err conftest.$ac_objext \
25762       conftest$ac_exeext conftest.$ac_ext
25763 if test "$ac_cv_search_dlopen" = no; then
25764   for ac_lib in dl; do
25765     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25766     cat >conftest.$ac_ext <<_ACEOF
25767 /* confdefs.h.  */
25768 _ACEOF
25769 cat confdefs.h >>conftest.$ac_ext
25770 cat >>conftest.$ac_ext <<_ACEOF
25771 /* end confdefs.h.  */
25772
25773 /* Override any gcc2 internal prototype to avoid an error.  */
25774 #ifdef __cplusplus
25775 extern "C"
25776 #endif
25777 /* We use char because int might match the return type of a gcc2
25778    builtin and then its argument prototype would still apply.  */
25779 char dlopen ();
25780 int
25781 main ()
25782 {
25783 dlopen ();
25784   ;
25785   return 0;
25786 }
25787 _ACEOF
25788 rm -f conftest.$ac_objext conftest$ac_exeext
25789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25790   (eval $ac_link) 2>conftest.er1
25791   ac_status=$?
25792   grep -v '^ *+' conftest.er1 >conftest.err
25793   rm -f conftest.er1
25794   cat conftest.err >&5
25795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796   (exit $ac_status); } &&
25797          { ac_try='test -z "$ac_c_werror_flag"
25798                          || test ! -s conftest.err'
25799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25800   (eval $ac_try) 2>&5
25801   ac_status=$?
25802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803   (exit $ac_status); }; } &&
25804          { ac_try='test -s conftest$ac_exeext'
25805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25806   (eval $ac_try) 2>&5
25807   ac_status=$?
25808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809   (exit $ac_status); }; }; then
25810   ac_cv_search_dlopen="-l$ac_lib"
25811 break
25812 else
25813   echo "$as_me: failed program was:" >&5
25814 sed 's/^/| /' conftest.$ac_ext >&5
25815
25816 fi
25817 rm -f conftest.err conftest.$ac_objext \
25818       conftest$ac_exeext conftest.$ac_ext
25819   done
25820 fi
25821 LIBS=$ac_func_search_save_LIBS
25822 fi
25823 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25824 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25825 if test "$ac_cv_search_dlopen" != no; then
25826   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25827
25828 cat >>confdefs.h <<\_ACEOF
25829 #define HAVE_DLOPEN 1
25830 _ACEOF
25831
25832 else
25833   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25834 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25835 fi
25836
25837
25838 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25839 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25840 if test "${ac_cv_search_mallinfo+set}" = set; then
25841   echo $ECHO_N "(cached) $ECHO_C" >&6
25842 else
25843   ac_func_search_save_LIBS=$LIBS
25844 ac_cv_search_mallinfo=no
25845 cat >conftest.$ac_ext <<_ACEOF
25846 /* confdefs.h.  */
25847 _ACEOF
25848 cat confdefs.h >>conftest.$ac_ext
25849 cat >>conftest.$ac_ext <<_ACEOF
25850 /* end confdefs.h.  */
25851
25852 /* Override any gcc2 internal prototype to avoid an error.  */
25853 #ifdef __cplusplus
25854 extern "C"
25855 #endif
25856 /* We use char because int might match the return type of a gcc2
25857    builtin and then its argument prototype would still apply.  */
25858 char mallinfo ();
25859 int
25860 main ()
25861 {
25862 mallinfo ();
25863   ;
25864   return 0;
25865 }
25866 _ACEOF
25867 rm -f conftest.$ac_objext conftest$ac_exeext
25868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25869   (eval $ac_link) 2>conftest.er1
25870   ac_status=$?
25871   grep -v '^ *+' conftest.er1 >conftest.err
25872   rm -f conftest.er1
25873   cat conftest.err >&5
25874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875   (exit $ac_status); } &&
25876          { ac_try='test -z "$ac_c_werror_flag"
25877                          || test ! -s conftest.err'
25878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25879   (eval $ac_try) 2>&5
25880   ac_status=$?
25881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882   (exit $ac_status); }; } &&
25883          { ac_try='test -s conftest$ac_exeext'
25884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25885   (eval $ac_try) 2>&5
25886   ac_status=$?
25887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888   (exit $ac_status); }; }; then
25889   ac_cv_search_mallinfo="none required"
25890 else
25891   echo "$as_me: failed program was:" >&5
25892 sed 's/^/| /' conftest.$ac_ext >&5
25893
25894 fi
25895 rm -f conftest.err conftest.$ac_objext \
25896       conftest$ac_exeext conftest.$ac_ext
25897 if test "$ac_cv_search_mallinfo" = no; then
25898   for ac_lib in malloc; do
25899     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25900     cat >conftest.$ac_ext <<_ACEOF
25901 /* confdefs.h.  */
25902 _ACEOF
25903 cat confdefs.h >>conftest.$ac_ext
25904 cat >>conftest.$ac_ext <<_ACEOF
25905 /* end confdefs.h.  */
25906
25907 /* Override any gcc2 internal prototype to avoid an error.  */
25908 #ifdef __cplusplus
25909 extern "C"
25910 #endif
25911 /* We use char because int might match the return type of a gcc2
25912    builtin and then its argument prototype would still apply.  */
25913 char mallinfo ();
25914 int
25915 main ()
25916 {
25917 mallinfo ();
25918   ;
25919   return 0;
25920 }
25921 _ACEOF
25922 rm -f conftest.$ac_objext conftest$ac_exeext
25923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25924   (eval $ac_link) 2>conftest.er1
25925   ac_status=$?
25926   grep -v '^ *+' conftest.er1 >conftest.err
25927   rm -f conftest.er1
25928   cat conftest.err >&5
25929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930   (exit $ac_status); } &&
25931          { ac_try='test -z "$ac_c_werror_flag"
25932                          || test ! -s conftest.err'
25933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25934   (eval $ac_try) 2>&5
25935   ac_status=$?
25936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937   (exit $ac_status); }; } &&
25938          { ac_try='test -s conftest$ac_exeext'
25939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25940   (eval $ac_try) 2>&5
25941   ac_status=$?
25942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943   (exit $ac_status); }; }; then
25944   ac_cv_search_mallinfo="-l$ac_lib"
25945 break
25946 else
25947   echo "$as_me: failed program was:" >&5
25948 sed 's/^/| /' conftest.$ac_ext >&5
25949
25950 fi
25951 rm -f conftest.err conftest.$ac_objext \
25952       conftest$ac_exeext conftest.$ac_ext
25953   done
25954 fi
25955 LIBS=$ac_func_search_save_LIBS
25956 fi
25957 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25958 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25959 if test "$ac_cv_search_mallinfo" != no; then
25960   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25961
25962 cat >>confdefs.h <<\_ACEOF
25963 #define HAVE_MALLINFO 1
25964 _ACEOF
25965
25966 fi
25967
25968
25969 if test "$ENABLE_THREADS" -eq 1 ; then
25970
25971 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25972 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25973 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25974   echo $ECHO_N "(cached) $ECHO_C" >&6
25975 else
25976   ac_check_lib_save_LIBS=$LIBS
25977 LIBS="-lpthread  $LIBS"
25978 cat >conftest.$ac_ext <<_ACEOF
25979 /* confdefs.h.  */
25980 _ACEOF
25981 cat confdefs.h >>conftest.$ac_ext
25982 cat >>conftest.$ac_ext <<_ACEOF
25983 /* end confdefs.h.  */
25984
25985 /* Override any gcc2 internal prototype to avoid an error.  */
25986 #ifdef __cplusplus
25987 extern "C"
25988 #endif
25989 /* We use char because int might match the return type of a gcc2
25990    builtin and then its argument prototype would still apply.  */
25991 char pthread_mutex_init ();
25992 int
25993 main ()
25994 {
25995 pthread_mutex_init ();
25996   ;
25997   return 0;
25998 }
25999 _ACEOF
26000 rm -f conftest.$ac_objext conftest$ac_exeext
26001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26002   (eval $ac_link) 2>conftest.er1
26003   ac_status=$?
26004   grep -v '^ *+' conftest.er1 >conftest.err
26005   rm -f conftest.er1
26006   cat conftest.err >&5
26007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008   (exit $ac_status); } &&
26009          { ac_try='test -z "$ac_c_werror_flag"
26010                          || test ! -s conftest.err'
26011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26012   (eval $ac_try) 2>&5
26013   ac_status=$?
26014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015   (exit $ac_status); }; } &&
26016          { ac_try='test -s conftest$ac_exeext'
26017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26018   (eval $ac_try) 2>&5
26019   ac_status=$?
26020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021   (exit $ac_status); }; }; then
26022   ac_cv_lib_pthread_pthread_mutex_init=yes
26023 else
26024   echo "$as_me: failed program was:" >&5
26025 sed 's/^/| /' conftest.$ac_ext >&5
26026
26027 ac_cv_lib_pthread_pthread_mutex_init=no
26028 fi
26029 rm -f conftest.err conftest.$ac_objext \
26030       conftest$ac_exeext conftest.$ac_ext
26031 LIBS=$ac_check_lib_save_LIBS
26032 fi
26033 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26034 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
26035 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26036   cat >>confdefs.h <<_ACEOF
26037 #define HAVE_LIBPTHREAD 1
26038 _ACEOF
26039
26040   LIBS="-lpthread $LIBS"
26041
26042 fi
26043
26044   echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26045 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
26046 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26047   echo $ECHO_N "(cached) $ECHO_C" >&6
26048 else
26049   ac_func_search_save_LIBS=$LIBS
26050 ac_cv_search_pthread_mutex_lock=no
26051 cat >conftest.$ac_ext <<_ACEOF
26052 /* confdefs.h.  */
26053 _ACEOF
26054 cat confdefs.h >>conftest.$ac_ext
26055 cat >>conftest.$ac_ext <<_ACEOF
26056 /* end confdefs.h.  */
26057
26058 /* Override any gcc2 internal prototype to avoid an error.  */
26059 #ifdef __cplusplus
26060 extern "C"
26061 #endif
26062 /* We use char because int might match the return type of a gcc2
26063    builtin and then its argument prototype would still apply.  */
26064 char pthread_mutex_lock ();
26065 int
26066 main ()
26067 {
26068 pthread_mutex_lock ();
26069   ;
26070   return 0;
26071 }
26072 _ACEOF
26073 rm -f conftest.$ac_objext conftest$ac_exeext
26074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26075   (eval $ac_link) 2>conftest.er1
26076   ac_status=$?
26077   grep -v '^ *+' conftest.er1 >conftest.err
26078   rm -f conftest.er1
26079   cat conftest.err >&5
26080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081   (exit $ac_status); } &&
26082          { ac_try='test -z "$ac_c_werror_flag"
26083                          || test ! -s conftest.err'
26084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26085   (eval $ac_try) 2>&5
26086   ac_status=$?
26087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26088   (exit $ac_status); }; } &&
26089          { ac_try='test -s conftest$ac_exeext'
26090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26091   (eval $ac_try) 2>&5
26092   ac_status=$?
26093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094   (exit $ac_status); }; }; then
26095   ac_cv_search_pthread_mutex_lock="none required"
26096 else
26097   echo "$as_me: failed program was:" >&5
26098 sed 's/^/| /' conftest.$ac_ext >&5
26099
26100 fi
26101 rm -f conftest.err conftest.$ac_objext \
26102       conftest$ac_exeext conftest.$ac_ext
26103 if test "$ac_cv_search_pthread_mutex_lock" = no; then
26104   for ac_lib in pthread; do
26105     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26106     cat >conftest.$ac_ext <<_ACEOF
26107 /* confdefs.h.  */
26108 _ACEOF
26109 cat confdefs.h >>conftest.$ac_ext
26110 cat >>conftest.$ac_ext <<_ACEOF
26111 /* end confdefs.h.  */
26112
26113 /* Override any gcc2 internal prototype to avoid an error.  */
26114 #ifdef __cplusplus
26115 extern "C"
26116 #endif
26117 /* We use char because int might match the return type of a gcc2
26118    builtin and then its argument prototype would still apply.  */
26119 char pthread_mutex_lock ();
26120 int
26121 main ()
26122 {
26123 pthread_mutex_lock ();
26124   ;
26125   return 0;
26126 }
26127 _ACEOF
26128 rm -f conftest.$ac_objext conftest$ac_exeext
26129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26130   (eval $ac_link) 2>conftest.er1
26131   ac_status=$?
26132   grep -v '^ *+' conftest.er1 >conftest.err
26133   rm -f conftest.er1
26134   cat conftest.err >&5
26135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136   (exit $ac_status); } &&
26137          { ac_try='test -z "$ac_c_werror_flag"
26138                          || test ! -s conftest.err'
26139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26140   (eval $ac_try) 2>&5
26141   ac_status=$?
26142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26143   (exit $ac_status); }; } &&
26144          { ac_try='test -s conftest$ac_exeext'
26145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26146   (eval $ac_try) 2>&5
26147   ac_status=$?
26148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149   (exit $ac_status); }; }; then
26150   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
26151 break
26152 else
26153   echo "$as_me: failed program was:" >&5
26154 sed 's/^/| /' conftest.$ac_ext >&5
26155
26156 fi
26157 rm -f conftest.err conftest.$ac_objext \
26158       conftest$ac_exeext conftest.$ac_ext
26159   done
26160 fi
26161 LIBS=$ac_func_search_save_LIBS
26162 fi
26163 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26164 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
26165 if test "$ac_cv_search_pthread_mutex_lock" != no; then
26166   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
26167
26168 cat >>confdefs.h <<\_ACEOF
26169 #define HAVE_PTHREAD_MUTEX_LOCK 1
26170 _ACEOF
26171
26172 fi
26173
26174 fi
26175
26176
26177
26178
26179
26180
26181
26182 ac_header_dirent=no
26183 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26184   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26185 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26186 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
26187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26188   echo $ECHO_N "(cached) $ECHO_C" >&6
26189 else
26190   cat >conftest.$ac_ext <<_ACEOF
26191 /* confdefs.h.  */
26192 _ACEOF
26193 cat confdefs.h >>conftest.$ac_ext
26194 cat >>conftest.$ac_ext <<_ACEOF
26195 /* end confdefs.h.  */
26196 #include <sys/types.h>
26197 #include <$ac_hdr>
26198
26199 int
26200 main ()
26201 {
26202 if ((DIR *) 0)
26203 return 0;
26204   ;
26205   return 0;
26206 }
26207 _ACEOF
26208 rm -f conftest.$ac_objext
26209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26210   (eval $ac_compile) 2>conftest.er1
26211   ac_status=$?
26212   grep -v '^ *+' conftest.er1 >conftest.err
26213   rm -f conftest.er1
26214   cat conftest.err >&5
26215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26216   (exit $ac_status); } &&
26217          { ac_try='test -z "$ac_c_werror_flag"
26218                          || test ! -s conftest.err'
26219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26220   (eval $ac_try) 2>&5
26221   ac_status=$?
26222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26223   (exit $ac_status); }; } &&
26224          { ac_try='test -s conftest.$ac_objext'
26225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26226   (eval $ac_try) 2>&5
26227   ac_status=$?
26228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26229   (exit $ac_status); }; }; then
26230   eval "$as_ac_Header=yes"
26231 else
26232   echo "$as_me: failed program was:" >&5
26233 sed 's/^/| /' conftest.$ac_ext >&5
26234
26235 eval "$as_ac_Header=no"
26236 fi
26237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26238 fi
26239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26242   cat >>confdefs.h <<_ACEOF
26243 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26244 _ACEOF
26245
26246 ac_header_dirent=$ac_hdr; break
26247 fi
26248
26249 done
26250 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26251 if test $ac_header_dirent = dirent.h; then
26252   echo "$as_me:$LINENO: checking for library containing opendir" >&5
26253 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26254 if test "${ac_cv_search_opendir+set}" = set; then
26255   echo $ECHO_N "(cached) $ECHO_C" >&6
26256 else
26257   ac_func_search_save_LIBS=$LIBS
26258 ac_cv_search_opendir=no
26259 cat >conftest.$ac_ext <<_ACEOF
26260 /* confdefs.h.  */
26261 _ACEOF
26262 cat confdefs.h >>conftest.$ac_ext
26263 cat >>conftest.$ac_ext <<_ACEOF
26264 /* end confdefs.h.  */
26265
26266 /* Override any gcc2 internal prototype to avoid an error.  */
26267 #ifdef __cplusplus
26268 extern "C"
26269 #endif
26270 /* We use char because int might match the return type of a gcc2
26271    builtin and then its argument prototype would still apply.  */
26272 char opendir ();
26273 int
26274 main ()
26275 {
26276 opendir ();
26277   ;
26278   return 0;
26279 }
26280 _ACEOF
26281 rm -f conftest.$ac_objext conftest$ac_exeext
26282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26283   (eval $ac_link) 2>conftest.er1
26284   ac_status=$?
26285   grep -v '^ *+' conftest.er1 >conftest.err
26286   rm -f conftest.er1
26287   cat conftest.err >&5
26288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289   (exit $ac_status); } &&
26290          { ac_try='test -z "$ac_c_werror_flag"
26291                          || test ! -s conftest.err'
26292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26293   (eval $ac_try) 2>&5
26294   ac_status=$?
26295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296   (exit $ac_status); }; } &&
26297          { ac_try='test -s conftest$ac_exeext'
26298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26299   (eval $ac_try) 2>&5
26300   ac_status=$?
26301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302   (exit $ac_status); }; }; then
26303   ac_cv_search_opendir="none required"
26304 else
26305   echo "$as_me: failed program was:" >&5
26306 sed 's/^/| /' conftest.$ac_ext >&5
26307
26308 fi
26309 rm -f conftest.err conftest.$ac_objext \
26310       conftest$ac_exeext conftest.$ac_ext
26311 if test "$ac_cv_search_opendir" = no; then
26312   for ac_lib in dir; do
26313     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26314     cat >conftest.$ac_ext <<_ACEOF
26315 /* confdefs.h.  */
26316 _ACEOF
26317 cat confdefs.h >>conftest.$ac_ext
26318 cat >>conftest.$ac_ext <<_ACEOF
26319 /* end confdefs.h.  */
26320
26321 /* Override any gcc2 internal prototype to avoid an error.  */
26322 #ifdef __cplusplus
26323 extern "C"
26324 #endif
26325 /* We use char because int might match the return type of a gcc2
26326    builtin and then its argument prototype would still apply.  */
26327 char opendir ();
26328 int
26329 main ()
26330 {
26331 opendir ();
26332   ;
26333   return 0;
26334 }
26335 _ACEOF
26336 rm -f conftest.$ac_objext conftest$ac_exeext
26337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26338   (eval $ac_link) 2>conftest.er1
26339   ac_status=$?
26340   grep -v '^ *+' conftest.er1 >conftest.err
26341   rm -f conftest.er1
26342   cat conftest.err >&5
26343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344   (exit $ac_status); } &&
26345          { ac_try='test -z "$ac_c_werror_flag"
26346                          || test ! -s conftest.err'
26347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26348   (eval $ac_try) 2>&5
26349   ac_status=$?
26350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351   (exit $ac_status); }; } &&
26352          { ac_try='test -s conftest$ac_exeext'
26353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26354   (eval $ac_try) 2>&5
26355   ac_status=$?
26356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357   (exit $ac_status); }; }; then
26358   ac_cv_search_opendir="-l$ac_lib"
26359 break
26360 else
26361   echo "$as_me: failed program was:" >&5
26362 sed 's/^/| /' conftest.$ac_ext >&5
26363
26364 fi
26365 rm -f conftest.err conftest.$ac_objext \
26366       conftest$ac_exeext conftest.$ac_ext
26367   done
26368 fi
26369 LIBS=$ac_func_search_save_LIBS
26370 fi
26371 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26372 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26373 if test "$ac_cv_search_opendir" != no; then
26374   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26375
26376 fi
26377
26378 else
26379   echo "$as_me:$LINENO: checking for library containing opendir" >&5
26380 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
26381 if test "${ac_cv_search_opendir+set}" = set; then
26382   echo $ECHO_N "(cached) $ECHO_C" >&6
26383 else
26384   ac_func_search_save_LIBS=$LIBS
26385 ac_cv_search_opendir=no
26386 cat >conftest.$ac_ext <<_ACEOF
26387 /* confdefs.h.  */
26388 _ACEOF
26389 cat confdefs.h >>conftest.$ac_ext
26390 cat >>conftest.$ac_ext <<_ACEOF
26391 /* end confdefs.h.  */
26392
26393 /* Override any gcc2 internal prototype to avoid an error.  */
26394 #ifdef __cplusplus
26395 extern "C"
26396 #endif
26397 /* We use char because int might match the return type of a gcc2
26398    builtin and then its argument prototype would still apply.  */
26399 char opendir ();
26400 int
26401 main ()
26402 {
26403 opendir ();
26404   ;
26405   return 0;
26406 }
26407 _ACEOF
26408 rm -f conftest.$ac_objext conftest$ac_exeext
26409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26410   (eval $ac_link) 2>conftest.er1
26411   ac_status=$?
26412   grep -v '^ *+' conftest.er1 >conftest.err
26413   rm -f conftest.er1
26414   cat conftest.err >&5
26415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26416   (exit $ac_status); } &&
26417          { ac_try='test -z "$ac_c_werror_flag"
26418                          || test ! -s conftest.err'
26419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26420   (eval $ac_try) 2>&5
26421   ac_status=$?
26422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423   (exit $ac_status); }; } &&
26424          { ac_try='test -s conftest$ac_exeext'
26425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26426   (eval $ac_try) 2>&5
26427   ac_status=$?
26428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26429   (exit $ac_status); }; }; then
26430   ac_cv_search_opendir="none required"
26431 else
26432   echo "$as_me: failed program was:" >&5
26433 sed 's/^/| /' conftest.$ac_ext >&5
26434
26435 fi
26436 rm -f conftest.err conftest.$ac_objext \
26437       conftest$ac_exeext conftest.$ac_ext
26438 if test "$ac_cv_search_opendir" = no; then
26439   for ac_lib in x; do
26440     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26441     cat >conftest.$ac_ext <<_ACEOF
26442 /* confdefs.h.  */
26443 _ACEOF
26444 cat confdefs.h >>conftest.$ac_ext
26445 cat >>conftest.$ac_ext <<_ACEOF
26446 /* end confdefs.h.  */
26447
26448 /* Override any gcc2 internal prototype to avoid an error.  */
26449 #ifdef __cplusplus
26450 extern "C"
26451 #endif
26452 /* We use char because int might match the return type of a gcc2
26453    builtin and then its argument prototype would still apply.  */
26454 char opendir ();
26455 int
26456 main ()
26457 {
26458 opendir ();
26459   ;
26460   return 0;
26461 }
26462 _ACEOF
26463 rm -f conftest.$ac_objext conftest$ac_exeext
26464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26465   (eval $ac_link) 2>conftest.er1
26466   ac_status=$?
26467   grep -v '^ *+' conftest.er1 >conftest.err
26468   rm -f conftest.er1
26469   cat conftest.err >&5
26470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471   (exit $ac_status); } &&
26472          { ac_try='test -z "$ac_c_werror_flag"
26473                          || test ! -s conftest.err'
26474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475   (eval $ac_try) 2>&5
26476   ac_status=$?
26477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478   (exit $ac_status); }; } &&
26479          { ac_try='test -s conftest$ac_exeext'
26480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26481   (eval $ac_try) 2>&5
26482   ac_status=$?
26483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484   (exit $ac_status); }; }; then
26485   ac_cv_search_opendir="-l$ac_lib"
26486 break
26487 else
26488   echo "$as_me: failed program was:" >&5
26489 sed 's/^/| /' conftest.$ac_ext >&5
26490
26491 fi
26492 rm -f conftest.err conftest.$ac_objext \
26493       conftest$ac_exeext conftest.$ac_ext
26494   done
26495 fi
26496 LIBS=$ac_func_search_save_LIBS
26497 fi
26498 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26499 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26500 if test "$ac_cv_search_opendir" != no; then
26501   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26502
26503 fi
26504
26505 fi
26506
26507 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26508 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26509 if test "${ac_cv_header_mmap_anon+set}" = set; then
26510   echo $ECHO_N "(cached) $ECHO_C" >&6
26511 else
26512    ac_ext=c
26513 ac_cpp='$CPP $CPPFLAGS'
26514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26517
26518   cat >conftest.$ac_ext <<_ACEOF
26519 /* confdefs.h.  */
26520 _ACEOF
26521 cat confdefs.h >>conftest.$ac_ext
26522 cat >>conftest.$ac_ext <<_ACEOF
26523 /* end confdefs.h.  */
26524 #include <sys/mman.h>
26525 #include <unistd.h>
26526 #include <fcntl.h>
26527 int
26528 main ()
26529 {
26530 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26531   ;
26532   return 0;
26533 }
26534 _ACEOF
26535 rm -f conftest.$ac_objext
26536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26537   (eval $ac_compile) 2>conftest.er1
26538   ac_status=$?
26539   grep -v '^ *+' conftest.er1 >conftest.err
26540   rm -f conftest.er1
26541   cat conftest.err >&5
26542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543   (exit $ac_status); } &&
26544          { ac_try='test -z "$ac_c_werror_flag"
26545                          || test ! -s conftest.err'
26546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26547   (eval $ac_try) 2>&5
26548   ac_status=$?
26549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26550   (exit $ac_status); }; } &&
26551          { ac_try='test -s conftest.$ac_objext'
26552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26553   (eval $ac_try) 2>&5
26554   ac_status=$?
26555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556   (exit $ac_status); }; }; then
26557   ac_cv_header_mmap_anon=yes
26558 else
26559   echo "$as_me: failed program was:" >&5
26560 sed 's/^/| /' conftest.$ac_ext >&5
26561
26562 ac_cv_header_mmap_anon=no
26563 fi
26564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26565   ac_ext=c
26566 ac_cpp='$CPP $CPPFLAGS'
26567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26570
26571
26572 fi
26573 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26574 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26575 if test "$ac_cv_header_mmap_anon" = yes; then
26576
26577 cat >>confdefs.h <<\_ACEOF
26578 #define HAVE_MMAP_ANONYMOUS 1
26579 _ACEOF
26580
26581 fi
26582
26583 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26584 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26585 if test "${ac_cv_header_stat_broken+set}" = set; then
26586   echo $ECHO_N "(cached) $ECHO_C" >&6
26587 else
26588   cat >conftest.$ac_ext <<_ACEOF
26589 /* confdefs.h.  */
26590 _ACEOF
26591 cat confdefs.h >>conftest.$ac_ext
26592 cat >>conftest.$ac_ext <<_ACEOF
26593 /* end confdefs.h.  */
26594 #include <sys/types.h>
26595 #include <sys/stat.h>
26596
26597 #if defined(S_ISBLK) && defined(S_IFDIR)
26598 # if S_ISBLK (S_IFDIR)
26599 You lose.
26600 # endif
26601 #endif
26602
26603 #if defined(S_ISBLK) && defined(S_IFCHR)
26604 # if S_ISBLK (S_IFCHR)
26605 You lose.
26606 # endif
26607 #endif
26608
26609 #if defined(S_ISLNK) && defined(S_IFREG)
26610 # if S_ISLNK (S_IFREG)
26611 You lose.
26612 # endif
26613 #endif
26614
26615 #if defined(S_ISSOCK) && defined(S_IFREG)
26616 # if S_ISSOCK (S_IFREG)
26617 You lose.
26618 # endif
26619 #endif
26620
26621 _ACEOF
26622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26623   $EGREP "You lose" >/dev/null 2>&1; then
26624   ac_cv_header_stat_broken=yes
26625 else
26626   ac_cv_header_stat_broken=no
26627 fi
26628 rm -f conftest*
26629
26630 fi
26631 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26632 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26633 if test $ac_cv_header_stat_broken = yes; then
26634
26635 cat >>confdefs.h <<\_ACEOF
26636 #define STAT_MACROS_BROKEN 1
26637 _ACEOF
26638
26639 fi
26640
26641 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26642 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26643 if test "${ac_cv_header_stdc+set}" = set; then
26644   echo $ECHO_N "(cached) $ECHO_C" >&6
26645 else
26646   cat >conftest.$ac_ext <<_ACEOF
26647 /* confdefs.h.  */
26648 _ACEOF
26649 cat confdefs.h >>conftest.$ac_ext
26650 cat >>conftest.$ac_ext <<_ACEOF
26651 /* end confdefs.h.  */
26652 #include <stdlib.h>
26653 #include <stdarg.h>
26654 #include <string.h>
26655 #include <float.h>
26656
26657 int
26658 main ()
26659 {
26660
26661   ;
26662   return 0;
26663 }
26664 _ACEOF
26665 rm -f conftest.$ac_objext
26666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26667   (eval $ac_compile) 2>conftest.er1
26668   ac_status=$?
26669   grep -v '^ *+' conftest.er1 >conftest.err
26670   rm -f conftest.er1
26671   cat conftest.err >&5
26672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26673   (exit $ac_status); } &&
26674          { ac_try='test -z "$ac_c_werror_flag"
26675                          || test ! -s conftest.err'
26676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26677   (eval $ac_try) 2>&5
26678   ac_status=$?
26679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26680   (exit $ac_status); }; } &&
26681          { ac_try='test -s conftest.$ac_objext'
26682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26683   (eval $ac_try) 2>&5
26684   ac_status=$?
26685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26686   (exit $ac_status); }; }; then
26687   ac_cv_header_stdc=yes
26688 else
26689   echo "$as_me: failed program was:" >&5
26690 sed 's/^/| /' conftest.$ac_ext >&5
26691
26692 ac_cv_header_stdc=no
26693 fi
26694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26695
26696 if test $ac_cv_header_stdc = yes; then
26697   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26698   cat >conftest.$ac_ext <<_ACEOF
26699 /* confdefs.h.  */
26700 _ACEOF
26701 cat confdefs.h >>conftest.$ac_ext
26702 cat >>conftest.$ac_ext <<_ACEOF
26703 /* end confdefs.h.  */
26704 #include <string.h>
26705
26706 _ACEOF
26707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26708   $EGREP "memchr" >/dev/null 2>&1; then
26709   :
26710 else
26711   ac_cv_header_stdc=no
26712 fi
26713 rm -f conftest*
26714
26715 fi
26716
26717 if test $ac_cv_header_stdc = yes; then
26718   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26719   cat >conftest.$ac_ext <<_ACEOF
26720 /* confdefs.h.  */
26721 _ACEOF
26722 cat confdefs.h >>conftest.$ac_ext
26723 cat >>conftest.$ac_ext <<_ACEOF
26724 /* end confdefs.h.  */
26725 #include <stdlib.h>
26726
26727 _ACEOF
26728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26729   $EGREP "free" >/dev/null 2>&1; then
26730   :
26731 else
26732   ac_cv_header_stdc=no
26733 fi
26734 rm -f conftest*
26735
26736 fi
26737
26738 if test $ac_cv_header_stdc = yes; then
26739   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26740   if test "$cross_compiling" = yes; then
26741   :
26742 else
26743   cat >conftest.$ac_ext <<_ACEOF
26744 /* confdefs.h.  */
26745 _ACEOF
26746 cat confdefs.h >>conftest.$ac_ext
26747 cat >>conftest.$ac_ext <<_ACEOF
26748 /* end confdefs.h.  */
26749 #include <ctype.h>
26750 #if ((' ' & 0x0FF) == 0x020)
26751 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26752 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26753 #else
26754 # define ISLOWER(c) \
26755                    (('a' <= (c) && (c) <= 'i') \
26756                      || ('j' <= (c) && (c) <= 'r') \
26757                      || ('s' <= (c) && (c) <= 'z'))
26758 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26759 #endif
26760
26761 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26762 int
26763 main ()
26764 {
26765   int i;
26766   for (i = 0; i < 256; i++)
26767     if (XOR (islower (i), ISLOWER (i))
26768         || toupper (i) != TOUPPER (i))
26769       exit(2);
26770   exit (0);
26771 }
26772 _ACEOF
26773 rm -f conftest$ac_exeext
26774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26775   (eval $ac_link) 2>&5
26776   ac_status=$?
26777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26778   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26780   (eval $ac_try) 2>&5
26781   ac_status=$?
26782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783   (exit $ac_status); }; }; then
26784   :
26785 else
26786   echo "$as_me: program exited with status $ac_status" >&5
26787 echo "$as_me: failed program was:" >&5
26788 sed 's/^/| /' conftest.$ac_ext >&5
26789
26790 ( exit $ac_status )
26791 ac_cv_header_stdc=no
26792 fi
26793 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26794 fi
26795 fi
26796 fi
26797 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26798 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26799 if test $ac_cv_header_stdc = yes; then
26800
26801 cat >>confdefs.h <<\_ACEOF
26802 #define STDC_HEADERS 1
26803 _ACEOF
26804
26805 fi
26806
26807 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26808 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26809 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26810   echo $ECHO_N "(cached) $ECHO_C" >&6
26811 else
26812   cat >conftest.$ac_ext <<_ACEOF
26813 /* confdefs.h.  */
26814 _ACEOF
26815 cat confdefs.h >>conftest.$ac_ext
26816 cat >>conftest.$ac_ext <<_ACEOF
26817 /* end confdefs.h.  */
26818 #include <sys/types.h>
26819 #include <sys/wait.h>
26820 #ifndef WEXITSTATUS
26821 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26822 #endif
26823 #ifndef WIFEXITED
26824 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26825 #endif
26826
26827 int
26828 main ()
26829 {
26830   int s;
26831   wait (&s);
26832   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26833   ;
26834   return 0;
26835 }
26836 _ACEOF
26837 rm -f conftest.$ac_objext
26838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26839   (eval $ac_compile) 2>conftest.er1
26840   ac_status=$?
26841   grep -v '^ *+' conftest.er1 >conftest.err
26842   rm -f conftest.er1
26843   cat conftest.err >&5
26844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845   (exit $ac_status); } &&
26846          { ac_try='test -z "$ac_c_werror_flag"
26847                          || test ! -s conftest.err'
26848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26849   (eval $ac_try) 2>&5
26850   ac_status=$?
26851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852   (exit $ac_status); }; } &&
26853          { ac_try='test -s conftest.$ac_objext'
26854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26855   (eval $ac_try) 2>&5
26856   ac_status=$?
26857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858   (exit $ac_status); }; }; then
26859   ac_cv_header_sys_wait_h=yes
26860 else
26861   echo "$as_me: failed program was:" >&5
26862 sed 's/^/| /' conftest.$ac_ext >&5
26863
26864 ac_cv_header_sys_wait_h=no
26865 fi
26866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26867 fi
26868 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26869 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26870 if test $ac_cv_header_sys_wait_h = yes; then
26871
26872 cat >>confdefs.h <<\_ACEOF
26873 #define HAVE_SYS_WAIT_H 1
26874 _ACEOF
26875
26876 fi
26877
26878 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26879 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26880 if test "${ac_cv_header_time+set}" = set; then
26881   echo $ECHO_N "(cached) $ECHO_C" >&6
26882 else
26883   cat >conftest.$ac_ext <<_ACEOF
26884 /* confdefs.h.  */
26885 _ACEOF
26886 cat confdefs.h >>conftest.$ac_ext
26887 cat >>conftest.$ac_ext <<_ACEOF
26888 /* end confdefs.h.  */
26889 #include <sys/types.h>
26890 #include <sys/time.h>
26891 #include <time.h>
26892
26893 int
26894 main ()
26895 {
26896 if ((struct tm *) 0)
26897 return 0;
26898   ;
26899   return 0;
26900 }
26901 _ACEOF
26902 rm -f conftest.$ac_objext
26903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26904   (eval $ac_compile) 2>conftest.er1
26905   ac_status=$?
26906   grep -v '^ *+' conftest.er1 >conftest.err
26907   rm -f conftest.er1
26908   cat conftest.err >&5
26909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26910   (exit $ac_status); } &&
26911          { ac_try='test -z "$ac_c_werror_flag"
26912                          || test ! -s conftest.err'
26913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26914   (eval $ac_try) 2>&5
26915   ac_status=$?
26916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917   (exit $ac_status); }; } &&
26918          { ac_try='test -s conftest.$ac_objext'
26919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26920   (eval $ac_try) 2>&5
26921   ac_status=$?
26922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26923   (exit $ac_status); }; }; then
26924   ac_cv_header_time=yes
26925 else
26926   echo "$as_me: failed program was:" >&5
26927 sed 's/^/| /' conftest.$ac_ext >&5
26928
26929 ac_cv_header_time=no
26930 fi
26931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26932 fi
26933 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26934 echo "${ECHO_T}$ac_cv_header_time" >&6
26935 if test $ac_cv_header_time = yes; then
26936
26937 cat >>confdefs.h <<\_ACEOF
26938 #define TIME_WITH_SYS_TIME 1
26939 _ACEOF
26940
26941 fi
26942
26943
26944
26945
26946
26947
26948
26949
26950 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26951 do
26952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26954   echo "$as_me:$LINENO: checking for $ac_header" >&5
26955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26957   echo $ECHO_N "(cached) $ECHO_C" >&6
26958 fi
26959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26961 else
26962   # Is the header compilable?
26963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26965 cat >conftest.$ac_ext <<_ACEOF
26966 /* confdefs.h.  */
26967 _ACEOF
26968 cat confdefs.h >>conftest.$ac_ext
26969 cat >>conftest.$ac_ext <<_ACEOF
26970 /* end confdefs.h.  */
26971 $ac_includes_default
26972 #include <$ac_header>
26973 _ACEOF
26974 rm -f conftest.$ac_objext
26975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26976   (eval $ac_compile) 2>conftest.er1
26977   ac_status=$?
26978   grep -v '^ *+' conftest.er1 >conftest.err
26979   rm -f conftest.er1
26980   cat conftest.err >&5
26981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982   (exit $ac_status); } &&
26983          { ac_try='test -z "$ac_c_werror_flag"
26984                          || test ! -s conftest.err'
26985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26986   (eval $ac_try) 2>&5
26987   ac_status=$?
26988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989   (exit $ac_status); }; } &&
26990          { ac_try='test -s conftest.$ac_objext'
26991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26992   (eval $ac_try) 2>&5
26993   ac_status=$?
26994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26995   (exit $ac_status); }; }; then
26996   ac_header_compiler=yes
26997 else
26998   echo "$as_me: failed program was:" >&5
26999 sed 's/^/| /' conftest.$ac_ext >&5
27000
27001 ac_header_compiler=no
27002 fi
27003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27005 echo "${ECHO_T}$ac_header_compiler" >&6
27006
27007 # Is the header present?
27008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27010 cat >conftest.$ac_ext <<_ACEOF
27011 /* confdefs.h.  */
27012 _ACEOF
27013 cat confdefs.h >>conftest.$ac_ext
27014 cat >>conftest.$ac_ext <<_ACEOF
27015 /* end confdefs.h.  */
27016 #include <$ac_header>
27017 _ACEOF
27018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27019   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27020   ac_status=$?
27021   grep -v '^ *+' conftest.er1 >conftest.err
27022   rm -f conftest.er1
27023   cat conftest.err >&5
27024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025   (exit $ac_status); } >/dev/null; then
27026   if test -s conftest.err; then
27027     ac_cpp_err=$ac_c_preproc_warn_flag
27028     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27029   else
27030     ac_cpp_err=
27031   fi
27032 else
27033   ac_cpp_err=yes
27034 fi
27035 if test -z "$ac_cpp_err"; then
27036   ac_header_preproc=yes
27037 else
27038   echo "$as_me: failed program was:" >&5
27039 sed 's/^/| /' conftest.$ac_ext >&5
27040
27041   ac_header_preproc=no
27042 fi
27043 rm -f conftest.err conftest.$ac_ext
27044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27045 echo "${ECHO_T}$ac_header_preproc" >&6
27046
27047 # So?  What about this header?
27048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27049   yes:no: )
27050     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27054     ac_header_preproc=yes
27055     ;;
27056   no:yes:* )
27057     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27059     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27060 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27061     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27063     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27064 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27067     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27069     (
27070       cat <<\_ASBOX
27071 ## ----------------------------------- ##
27072 ## Report this to llvmbugs@cs.uiuc.edu ##
27073 ## ----------------------------------- ##
27074 _ASBOX
27075     ) |
27076       sed "s/^/$as_me: WARNING:     /" >&2
27077     ;;
27078 esac
27079 echo "$as_me:$LINENO: checking for $ac_header" >&5
27080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27082   echo $ECHO_N "(cached) $ECHO_C" >&6
27083 else
27084   eval "$as_ac_Header=\$ac_header_preproc"
27085 fi
27086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27088
27089 fi
27090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27091   cat >>confdefs.h <<_ACEOF
27092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27093 _ACEOF
27094
27095 fi
27096
27097 done
27098
27099
27100
27101
27102
27103
27104
27105 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
27106 do
27107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27109   echo "$as_me:$LINENO: checking for $ac_header" >&5
27110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27112   echo $ECHO_N "(cached) $ECHO_C" >&6
27113 fi
27114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27116 else
27117   # Is the header compilable?
27118 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27120 cat >conftest.$ac_ext <<_ACEOF
27121 /* confdefs.h.  */
27122 _ACEOF
27123 cat confdefs.h >>conftest.$ac_ext
27124 cat >>conftest.$ac_ext <<_ACEOF
27125 /* end confdefs.h.  */
27126 $ac_includes_default
27127 #include <$ac_header>
27128 _ACEOF
27129 rm -f conftest.$ac_objext
27130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27131   (eval $ac_compile) 2>conftest.er1
27132   ac_status=$?
27133   grep -v '^ *+' conftest.er1 >conftest.err
27134   rm -f conftest.er1
27135   cat conftest.err >&5
27136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137   (exit $ac_status); } &&
27138          { ac_try='test -z "$ac_c_werror_flag"
27139                          || test ! -s conftest.err'
27140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27141   (eval $ac_try) 2>&5
27142   ac_status=$?
27143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144   (exit $ac_status); }; } &&
27145          { ac_try='test -s conftest.$ac_objext'
27146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27147   (eval $ac_try) 2>&5
27148   ac_status=$?
27149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150   (exit $ac_status); }; }; then
27151   ac_header_compiler=yes
27152 else
27153   echo "$as_me: failed program was:" >&5
27154 sed 's/^/| /' conftest.$ac_ext >&5
27155
27156 ac_header_compiler=no
27157 fi
27158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27159 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27160 echo "${ECHO_T}$ac_header_compiler" >&6
27161
27162 # Is the header present?
27163 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27165 cat >conftest.$ac_ext <<_ACEOF
27166 /* confdefs.h.  */
27167 _ACEOF
27168 cat confdefs.h >>conftest.$ac_ext
27169 cat >>conftest.$ac_ext <<_ACEOF
27170 /* end confdefs.h.  */
27171 #include <$ac_header>
27172 _ACEOF
27173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27174   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27175   ac_status=$?
27176   grep -v '^ *+' conftest.er1 >conftest.err
27177   rm -f conftest.er1
27178   cat conftest.err >&5
27179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180   (exit $ac_status); } >/dev/null; then
27181   if test -s conftest.err; then
27182     ac_cpp_err=$ac_c_preproc_warn_flag
27183     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27184   else
27185     ac_cpp_err=
27186   fi
27187 else
27188   ac_cpp_err=yes
27189 fi
27190 if test -z "$ac_cpp_err"; then
27191   ac_header_preproc=yes
27192 else
27193   echo "$as_me: failed program was:" >&5
27194 sed 's/^/| /' conftest.$ac_ext >&5
27195
27196   ac_header_preproc=no
27197 fi
27198 rm -f conftest.err conftest.$ac_ext
27199 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27200 echo "${ECHO_T}$ac_header_preproc" >&6
27201
27202 # So?  What about this header?
27203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27204   yes:no: )
27205     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27207     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27209     ac_header_preproc=yes
27210     ;;
27211   no:yes:* )
27212     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27214     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27215 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27216     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27218     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27219 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27222     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27224     (
27225       cat <<\_ASBOX
27226 ## ----------------------------------- ##
27227 ## Report this to llvmbugs@cs.uiuc.edu ##
27228 ## ----------------------------------- ##
27229 _ASBOX
27230     ) |
27231       sed "s/^/$as_me: WARNING:     /" >&2
27232     ;;
27233 esac
27234 echo "$as_me:$LINENO: checking for $ac_header" >&5
27235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27237   echo $ECHO_N "(cached) $ECHO_C" >&6
27238 else
27239   eval "$as_ac_Header=\$ac_header_preproc"
27240 fi
27241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27243
27244 fi
27245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27246   cat >>confdefs.h <<_ACEOF
27247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27248 _ACEOF
27249
27250 fi
27251
27252 done
27253
27254
27255
27256
27257
27258
27259 for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
27260 do
27261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27263   echo "$as_me:$LINENO: checking for $ac_header" >&5
27264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27266   echo $ECHO_N "(cached) $ECHO_C" >&6
27267 fi
27268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27270 else
27271   # Is the header compilable?
27272 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27274 cat >conftest.$ac_ext <<_ACEOF
27275 /* confdefs.h.  */
27276 _ACEOF
27277 cat confdefs.h >>conftest.$ac_ext
27278 cat >>conftest.$ac_ext <<_ACEOF
27279 /* end confdefs.h.  */
27280 $ac_includes_default
27281 #include <$ac_header>
27282 _ACEOF
27283 rm -f conftest.$ac_objext
27284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27285   (eval $ac_compile) 2>conftest.er1
27286   ac_status=$?
27287   grep -v '^ *+' conftest.er1 >conftest.err
27288   rm -f conftest.er1
27289   cat conftest.err >&5
27290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291   (exit $ac_status); } &&
27292          { ac_try='test -z "$ac_c_werror_flag"
27293                          || test ! -s conftest.err'
27294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27295   (eval $ac_try) 2>&5
27296   ac_status=$?
27297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298   (exit $ac_status); }; } &&
27299          { ac_try='test -s conftest.$ac_objext'
27300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27301   (eval $ac_try) 2>&5
27302   ac_status=$?
27303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304   (exit $ac_status); }; }; then
27305   ac_header_compiler=yes
27306 else
27307   echo "$as_me: failed program was:" >&5
27308 sed 's/^/| /' conftest.$ac_ext >&5
27309
27310 ac_header_compiler=no
27311 fi
27312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27314 echo "${ECHO_T}$ac_header_compiler" >&6
27315
27316 # Is the header present?
27317 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27318 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27319 cat >conftest.$ac_ext <<_ACEOF
27320 /* confdefs.h.  */
27321 _ACEOF
27322 cat confdefs.h >>conftest.$ac_ext
27323 cat >>conftest.$ac_ext <<_ACEOF
27324 /* end confdefs.h.  */
27325 #include <$ac_header>
27326 _ACEOF
27327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27328   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27329   ac_status=$?
27330   grep -v '^ *+' conftest.er1 >conftest.err
27331   rm -f conftest.er1
27332   cat conftest.err >&5
27333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27334   (exit $ac_status); } >/dev/null; then
27335   if test -s conftest.err; then
27336     ac_cpp_err=$ac_c_preproc_warn_flag
27337     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27338   else
27339     ac_cpp_err=
27340   fi
27341 else
27342   ac_cpp_err=yes
27343 fi
27344 if test -z "$ac_cpp_err"; then
27345   ac_header_preproc=yes
27346 else
27347   echo "$as_me: failed program was:" >&5
27348 sed 's/^/| /' conftest.$ac_ext >&5
27349
27350   ac_header_preproc=no
27351 fi
27352 rm -f conftest.err conftest.$ac_ext
27353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27354 echo "${ECHO_T}$ac_header_preproc" >&6
27355
27356 # So?  What about this header?
27357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27358   yes:no: )
27359     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27361     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27363     ac_header_preproc=yes
27364     ;;
27365   no:yes:* )
27366     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27368     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27369 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27370     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27372     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27373 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27374     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27376     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27378     (
27379       cat <<\_ASBOX
27380 ## ----------------------------------- ##
27381 ## Report this to llvmbugs@cs.uiuc.edu ##
27382 ## ----------------------------------- ##
27383 _ASBOX
27384     ) |
27385       sed "s/^/$as_me: WARNING:     /" >&2
27386     ;;
27387 esac
27388 echo "$as_me:$LINENO: checking for $ac_header" >&5
27389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27391   echo $ECHO_N "(cached) $ECHO_C" >&6
27392 else
27393   eval "$as_ac_Header=\$ac_header_preproc"
27394 fi
27395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27397
27398 fi
27399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27400   cat >>confdefs.h <<_ACEOF
27401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27402 _ACEOF
27403
27404 fi
27405
27406 done
27407
27408
27409
27410 for ac_header in sys/types.h malloc/malloc.h
27411 do
27412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27414   echo "$as_me:$LINENO: checking for $ac_header" >&5
27415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27417   echo $ECHO_N "(cached) $ECHO_C" >&6
27418 fi
27419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27421 else
27422   # Is the header compilable?
27423 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27425 cat >conftest.$ac_ext <<_ACEOF
27426 /* confdefs.h.  */
27427 _ACEOF
27428 cat confdefs.h >>conftest.$ac_ext
27429 cat >>conftest.$ac_ext <<_ACEOF
27430 /* end confdefs.h.  */
27431 $ac_includes_default
27432 #include <$ac_header>
27433 _ACEOF
27434 rm -f conftest.$ac_objext
27435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27436   (eval $ac_compile) 2>conftest.er1
27437   ac_status=$?
27438   grep -v '^ *+' conftest.er1 >conftest.err
27439   rm -f conftest.er1
27440   cat conftest.err >&5
27441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442   (exit $ac_status); } &&
27443          { ac_try='test -z "$ac_c_werror_flag"
27444                          || test ! -s conftest.err'
27445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27446   (eval $ac_try) 2>&5
27447   ac_status=$?
27448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27449   (exit $ac_status); }; } &&
27450          { ac_try='test -s conftest.$ac_objext'
27451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27452   (eval $ac_try) 2>&5
27453   ac_status=$?
27454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455   (exit $ac_status); }; }; then
27456   ac_header_compiler=yes
27457 else
27458   echo "$as_me: failed program was:" >&5
27459 sed 's/^/| /' conftest.$ac_ext >&5
27460
27461 ac_header_compiler=no
27462 fi
27463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27465 echo "${ECHO_T}$ac_header_compiler" >&6
27466
27467 # Is the header present?
27468 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27470 cat >conftest.$ac_ext <<_ACEOF
27471 /* confdefs.h.  */
27472 _ACEOF
27473 cat confdefs.h >>conftest.$ac_ext
27474 cat >>conftest.$ac_ext <<_ACEOF
27475 /* end confdefs.h.  */
27476 #include <$ac_header>
27477 _ACEOF
27478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27479   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27480   ac_status=$?
27481   grep -v '^ *+' conftest.er1 >conftest.err
27482   rm -f conftest.er1
27483   cat conftest.err >&5
27484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27485   (exit $ac_status); } >/dev/null; then
27486   if test -s conftest.err; then
27487     ac_cpp_err=$ac_c_preproc_warn_flag
27488     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27489   else
27490     ac_cpp_err=
27491   fi
27492 else
27493   ac_cpp_err=yes
27494 fi
27495 if test -z "$ac_cpp_err"; then
27496   ac_header_preproc=yes
27497 else
27498   echo "$as_me: failed program was:" >&5
27499 sed 's/^/| /' conftest.$ac_ext >&5
27500
27501   ac_header_preproc=no
27502 fi
27503 rm -f conftest.err conftest.$ac_ext
27504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27505 echo "${ECHO_T}$ac_header_preproc" >&6
27506
27507 # So?  What about this header?
27508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27509   yes:no: )
27510     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27514     ac_header_preproc=yes
27515     ;;
27516   no:yes:* )
27517     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27519     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27520 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27521     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27523     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27524 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27527     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27529     (
27530       cat <<\_ASBOX
27531 ## ----------------------------------- ##
27532 ## Report this to llvmbugs@cs.uiuc.edu ##
27533 ## ----------------------------------- ##
27534 _ASBOX
27535     ) |
27536       sed "s/^/$as_me: WARNING:     /" >&2
27537     ;;
27538 esac
27539 echo "$as_me:$LINENO: checking for $ac_header" >&5
27540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27542   echo $ECHO_N "(cached) $ECHO_C" >&6
27543 else
27544   eval "$as_ac_Header=\$ac_header_preproc"
27545 fi
27546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27548
27549 fi
27550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27551   cat >>confdefs.h <<_ACEOF
27552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27553 _ACEOF
27554
27555 fi
27556
27557 done
27558
27559 if test "$ENABLE_THREADS" -eq 1 ; then
27560
27561 for ac_header in pthread.h
27562 do
27563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27565   echo "$as_me:$LINENO: checking for $ac_header" >&5
27566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27568   echo $ECHO_N "(cached) $ECHO_C" >&6
27569 fi
27570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27572 else
27573   # Is the header compilable?
27574 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27575 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27576 cat >conftest.$ac_ext <<_ACEOF
27577 /* confdefs.h.  */
27578 _ACEOF
27579 cat confdefs.h >>conftest.$ac_ext
27580 cat >>conftest.$ac_ext <<_ACEOF
27581 /* end confdefs.h.  */
27582 $ac_includes_default
27583 #include <$ac_header>
27584 _ACEOF
27585 rm -f conftest.$ac_objext
27586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27587   (eval $ac_compile) 2>conftest.er1
27588   ac_status=$?
27589   grep -v '^ *+' conftest.er1 >conftest.err
27590   rm -f conftest.er1
27591   cat conftest.err >&5
27592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593   (exit $ac_status); } &&
27594          { ac_try='test -z "$ac_c_werror_flag"
27595                          || test ! -s conftest.err'
27596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27597   (eval $ac_try) 2>&5
27598   ac_status=$?
27599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600   (exit $ac_status); }; } &&
27601          { ac_try='test -s conftest.$ac_objext'
27602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27603   (eval $ac_try) 2>&5
27604   ac_status=$?
27605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27606   (exit $ac_status); }; }; then
27607   ac_header_compiler=yes
27608 else
27609   echo "$as_me: failed program was:" >&5
27610 sed 's/^/| /' conftest.$ac_ext >&5
27611
27612 ac_header_compiler=no
27613 fi
27614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27615 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27616 echo "${ECHO_T}$ac_header_compiler" >&6
27617
27618 # Is the header present?
27619 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27621 cat >conftest.$ac_ext <<_ACEOF
27622 /* confdefs.h.  */
27623 _ACEOF
27624 cat confdefs.h >>conftest.$ac_ext
27625 cat >>conftest.$ac_ext <<_ACEOF
27626 /* end confdefs.h.  */
27627 #include <$ac_header>
27628 _ACEOF
27629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27630   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27631   ac_status=$?
27632   grep -v '^ *+' conftest.er1 >conftest.err
27633   rm -f conftest.er1
27634   cat conftest.err >&5
27635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636   (exit $ac_status); } >/dev/null; then
27637   if test -s conftest.err; then
27638     ac_cpp_err=$ac_c_preproc_warn_flag
27639     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27640   else
27641     ac_cpp_err=
27642   fi
27643 else
27644   ac_cpp_err=yes
27645 fi
27646 if test -z "$ac_cpp_err"; then
27647   ac_header_preproc=yes
27648 else
27649   echo "$as_me: failed program was:" >&5
27650 sed 's/^/| /' conftest.$ac_ext >&5
27651
27652   ac_header_preproc=no
27653 fi
27654 rm -f conftest.err conftest.$ac_ext
27655 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27656 echo "${ECHO_T}$ac_header_preproc" >&6
27657
27658 # So?  What about this header?
27659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27660   yes:no: )
27661     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27662 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27663     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27664 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27665     ac_header_preproc=yes
27666     ;;
27667   no:yes:* )
27668     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27669 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27670     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27671 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27672     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27673 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27674     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27675 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27676     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27678     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27679 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27680     (
27681       cat <<\_ASBOX
27682 ## ----------------------------------- ##
27683 ## Report this to llvmbugs@cs.uiuc.edu ##
27684 ## ----------------------------------- ##
27685 _ASBOX
27686     ) |
27687       sed "s/^/$as_me: WARNING:     /" >&2
27688     ;;
27689 esac
27690 echo "$as_me:$LINENO: checking for $ac_header" >&5
27691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27693   echo $ECHO_N "(cached) $ECHO_C" >&6
27694 else
27695   eval "$as_ac_Header=\$ac_header_preproc"
27696 fi
27697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27699
27700 fi
27701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27702   cat >>confdefs.h <<_ACEOF
27703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27704 _ACEOF
27705
27706 fi
27707
27708 done
27709
27710 fi
27711
27712
27713 echo "$as_me:$LINENO: checking for pid_t" >&5
27714 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27715 if test "${ac_cv_type_pid_t+set}" = set; then
27716   echo $ECHO_N "(cached) $ECHO_C" >&6
27717 else
27718   cat >conftest.$ac_ext <<_ACEOF
27719 /* confdefs.h.  */
27720 _ACEOF
27721 cat confdefs.h >>conftest.$ac_ext
27722 cat >>conftest.$ac_ext <<_ACEOF
27723 /* end confdefs.h.  */
27724 $ac_includes_default
27725 int
27726 main ()
27727 {
27728 if ((pid_t *) 0)
27729   return 0;
27730 if (sizeof (pid_t))
27731   return 0;
27732   ;
27733   return 0;
27734 }
27735 _ACEOF
27736 rm -f conftest.$ac_objext
27737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27738   (eval $ac_compile) 2>conftest.er1
27739   ac_status=$?
27740   grep -v '^ *+' conftest.er1 >conftest.err
27741   rm -f conftest.er1
27742   cat conftest.err >&5
27743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27744   (exit $ac_status); } &&
27745          { ac_try='test -z "$ac_c_werror_flag"
27746                          || test ! -s conftest.err'
27747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27748   (eval $ac_try) 2>&5
27749   ac_status=$?
27750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751   (exit $ac_status); }; } &&
27752          { ac_try='test -s conftest.$ac_objext'
27753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27754   (eval $ac_try) 2>&5
27755   ac_status=$?
27756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27757   (exit $ac_status); }; }; then
27758   ac_cv_type_pid_t=yes
27759 else
27760   echo "$as_me: failed program was:" >&5
27761 sed 's/^/| /' conftest.$ac_ext >&5
27762
27763 ac_cv_type_pid_t=no
27764 fi
27765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27766 fi
27767 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27768 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27769 if test $ac_cv_type_pid_t = yes; then
27770   :
27771 else
27772
27773 cat >>confdefs.h <<_ACEOF
27774 #define pid_t int
27775 _ACEOF
27776
27777 fi
27778
27779 echo "$as_me:$LINENO: checking for size_t" >&5
27780 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27781 if test "${ac_cv_type_size_t+set}" = set; then
27782   echo $ECHO_N "(cached) $ECHO_C" >&6
27783 else
27784   cat >conftest.$ac_ext <<_ACEOF
27785 /* confdefs.h.  */
27786 _ACEOF
27787 cat confdefs.h >>conftest.$ac_ext
27788 cat >>conftest.$ac_ext <<_ACEOF
27789 /* end confdefs.h.  */
27790 $ac_includes_default
27791 int
27792 main ()
27793 {
27794 if ((size_t *) 0)
27795   return 0;
27796 if (sizeof (size_t))
27797   return 0;
27798   ;
27799   return 0;
27800 }
27801 _ACEOF
27802 rm -f conftest.$ac_objext
27803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27804   (eval $ac_compile) 2>conftest.er1
27805   ac_status=$?
27806   grep -v '^ *+' conftest.er1 >conftest.err
27807   rm -f conftest.er1
27808   cat conftest.err >&5
27809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810   (exit $ac_status); } &&
27811          { ac_try='test -z "$ac_c_werror_flag"
27812                          || test ! -s conftest.err'
27813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27814   (eval $ac_try) 2>&5
27815   ac_status=$?
27816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817   (exit $ac_status); }; } &&
27818          { ac_try='test -s conftest.$ac_objext'
27819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27820   (eval $ac_try) 2>&5
27821   ac_status=$?
27822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27823   (exit $ac_status); }; }; then
27824   ac_cv_type_size_t=yes
27825 else
27826   echo "$as_me: failed program was:" >&5
27827 sed 's/^/| /' conftest.$ac_ext >&5
27828
27829 ac_cv_type_size_t=no
27830 fi
27831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27832 fi
27833 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27834 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27835 if test $ac_cv_type_size_t = yes; then
27836   :
27837 else
27838
27839 cat >>confdefs.h <<_ACEOF
27840 #define size_t unsigned
27841 _ACEOF
27842
27843 fi
27844
27845 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27846 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27847 if test "${ac_cv_type_signal+set}" = set; then
27848   echo $ECHO_N "(cached) $ECHO_C" >&6
27849 else
27850   cat >conftest.$ac_ext <<_ACEOF
27851 /* confdefs.h.  */
27852 _ACEOF
27853 cat confdefs.h >>conftest.$ac_ext
27854 cat >>conftest.$ac_ext <<_ACEOF
27855 /* end confdefs.h.  */
27856 #include <sys/types.h>
27857 #include <signal.h>
27858 #ifdef signal
27859 # undef signal
27860 #endif
27861 #ifdef __cplusplus
27862 extern "C" void (*signal (int, void (*)(int)))(int);
27863 #else
27864 void (*signal ()) ();
27865 #endif
27866
27867 int
27868 main ()
27869 {
27870 int i;
27871   ;
27872   return 0;
27873 }
27874 _ACEOF
27875 rm -f conftest.$ac_objext
27876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27877   (eval $ac_compile) 2>conftest.er1
27878   ac_status=$?
27879   grep -v '^ *+' conftest.er1 >conftest.err
27880   rm -f conftest.er1
27881   cat conftest.err >&5
27882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883   (exit $ac_status); } &&
27884          { ac_try='test -z "$ac_c_werror_flag"
27885                          || test ! -s conftest.err'
27886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27887   (eval $ac_try) 2>&5
27888   ac_status=$?
27889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890   (exit $ac_status); }; } &&
27891          { ac_try='test -s conftest.$ac_objext'
27892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27893   (eval $ac_try) 2>&5
27894   ac_status=$?
27895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896   (exit $ac_status); }; }; then
27897   ac_cv_type_signal=void
27898 else
27899   echo "$as_me: failed program was:" >&5
27900 sed 's/^/| /' conftest.$ac_ext >&5
27901
27902 ac_cv_type_signal=int
27903 fi
27904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27905 fi
27906 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27907 echo "${ECHO_T}$ac_cv_type_signal" >&6
27908
27909 cat >>confdefs.h <<_ACEOF
27910 #define RETSIGTYPE $ac_cv_type_signal
27911 _ACEOF
27912
27913
27914 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27915 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27916 if test "${ac_cv_struct_tm+set}" = set; then
27917   echo $ECHO_N "(cached) $ECHO_C" >&6
27918 else
27919   cat >conftest.$ac_ext <<_ACEOF
27920 /* confdefs.h.  */
27921 _ACEOF
27922 cat confdefs.h >>conftest.$ac_ext
27923 cat >>conftest.$ac_ext <<_ACEOF
27924 /* end confdefs.h.  */
27925 #include <sys/types.h>
27926 #include <time.h>
27927
27928 int
27929 main ()
27930 {
27931 struct tm *tp; tp->tm_sec;
27932   ;
27933   return 0;
27934 }
27935 _ACEOF
27936 rm -f conftest.$ac_objext
27937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27938   (eval $ac_compile) 2>conftest.er1
27939   ac_status=$?
27940   grep -v '^ *+' conftest.er1 >conftest.err
27941   rm -f conftest.er1
27942   cat conftest.err >&5
27943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944   (exit $ac_status); } &&
27945          { ac_try='test -z "$ac_c_werror_flag"
27946                          || test ! -s conftest.err'
27947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27948   (eval $ac_try) 2>&5
27949   ac_status=$?
27950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27951   (exit $ac_status); }; } &&
27952          { ac_try='test -s conftest.$ac_objext'
27953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27954   (eval $ac_try) 2>&5
27955   ac_status=$?
27956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957   (exit $ac_status); }; }; then
27958   ac_cv_struct_tm=time.h
27959 else
27960   echo "$as_me: failed program was:" >&5
27961 sed 's/^/| /' conftest.$ac_ext >&5
27962
27963 ac_cv_struct_tm=sys/time.h
27964 fi
27965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27966 fi
27967 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27968 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27969 if test $ac_cv_struct_tm = sys/time.h; then
27970
27971 cat >>confdefs.h <<\_ACEOF
27972 #define TM_IN_SYS_TIME 1
27973 _ACEOF
27974
27975 fi
27976
27977 echo "$as_me:$LINENO: checking for int64_t" >&5
27978 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27979 if test "${ac_cv_type_int64_t+set}" = set; then
27980   echo $ECHO_N "(cached) $ECHO_C" >&6
27981 else
27982   cat >conftest.$ac_ext <<_ACEOF
27983 /* confdefs.h.  */
27984 _ACEOF
27985 cat confdefs.h >>conftest.$ac_ext
27986 cat >>conftest.$ac_ext <<_ACEOF
27987 /* end confdefs.h.  */
27988 $ac_includes_default
27989 int
27990 main ()
27991 {
27992 if ((int64_t *) 0)
27993   return 0;
27994 if (sizeof (int64_t))
27995   return 0;
27996   ;
27997   return 0;
27998 }
27999 _ACEOF
28000 rm -f conftest.$ac_objext
28001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28002   (eval $ac_compile) 2>conftest.er1
28003   ac_status=$?
28004   grep -v '^ *+' conftest.er1 >conftest.err
28005   rm -f conftest.er1
28006   cat conftest.err >&5
28007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28008   (exit $ac_status); } &&
28009          { ac_try='test -z "$ac_c_werror_flag"
28010                          || test ! -s conftest.err'
28011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28012   (eval $ac_try) 2>&5
28013   ac_status=$?
28014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015   (exit $ac_status); }; } &&
28016          { ac_try='test -s conftest.$ac_objext'
28017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28018   (eval $ac_try) 2>&5
28019   ac_status=$?
28020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28021   (exit $ac_status); }; }; then
28022   ac_cv_type_int64_t=yes
28023 else
28024   echo "$as_me: failed program was:" >&5
28025 sed 's/^/| /' conftest.$ac_ext >&5
28026
28027 ac_cv_type_int64_t=no
28028 fi
28029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28030 fi
28031 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28032 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
28033 if test $ac_cv_type_int64_t = yes; then
28034
28035 cat >>confdefs.h <<_ACEOF
28036 #define HAVE_INT64_T 1
28037 _ACEOF
28038
28039
28040 else
28041   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28042 echo "$as_me: error: Type int64_t required but not found" >&2;}
28043    { (exit 1); exit 1; }; }
28044 fi
28045
28046 echo "$as_me:$LINENO: checking for uint64_t" >&5
28047 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
28048 if test "${ac_cv_type_uint64_t+set}" = set; then
28049   echo $ECHO_N "(cached) $ECHO_C" >&6
28050 else
28051   cat >conftest.$ac_ext <<_ACEOF
28052 /* confdefs.h.  */
28053 _ACEOF
28054 cat confdefs.h >>conftest.$ac_ext
28055 cat >>conftest.$ac_ext <<_ACEOF
28056 /* end confdefs.h.  */
28057 $ac_includes_default
28058 int
28059 main ()
28060 {
28061 if ((uint64_t *) 0)
28062   return 0;
28063 if (sizeof (uint64_t))
28064   return 0;
28065   ;
28066   return 0;
28067 }
28068 _ACEOF
28069 rm -f conftest.$ac_objext
28070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28071   (eval $ac_compile) 2>conftest.er1
28072   ac_status=$?
28073   grep -v '^ *+' conftest.er1 >conftest.err
28074   rm -f conftest.er1
28075   cat conftest.err >&5
28076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077   (exit $ac_status); } &&
28078          { ac_try='test -z "$ac_c_werror_flag"
28079                          || test ! -s conftest.err'
28080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28081   (eval $ac_try) 2>&5
28082   ac_status=$?
28083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084   (exit $ac_status); }; } &&
28085          { ac_try='test -s conftest.$ac_objext'
28086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28087   (eval $ac_try) 2>&5
28088   ac_status=$?
28089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28090   (exit $ac_status); }; }; then
28091   ac_cv_type_uint64_t=yes
28092 else
28093   echo "$as_me: failed program was:" >&5
28094 sed 's/^/| /' conftest.$ac_ext >&5
28095
28096 ac_cv_type_uint64_t=no
28097 fi
28098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28099 fi
28100 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28101 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
28102 if test $ac_cv_type_uint64_t = yes; then
28103
28104 cat >>confdefs.h <<_ACEOF
28105 #define HAVE_UINT64_T 1
28106 _ACEOF
28107
28108
28109 else
28110   echo "$as_me:$LINENO: checking for u_int64_t" >&5
28111 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
28112 if test "${ac_cv_type_u_int64_t+set}" = set; then
28113   echo $ECHO_N "(cached) $ECHO_C" >&6
28114 else
28115   cat >conftest.$ac_ext <<_ACEOF
28116 /* confdefs.h.  */
28117 _ACEOF
28118 cat confdefs.h >>conftest.$ac_ext
28119 cat >>conftest.$ac_ext <<_ACEOF
28120 /* end confdefs.h.  */
28121 $ac_includes_default
28122 int
28123 main ()
28124 {
28125 if ((u_int64_t *) 0)
28126   return 0;
28127 if (sizeof (u_int64_t))
28128   return 0;
28129   ;
28130   return 0;
28131 }
28132 _ACEOF
28133 rm -f conftest.$ac_objext
28134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28135   (eval $ac_compile) 2>conftest.er1
28136   ac_status=$?
28137   grep -v '^ *+' conftest.er1 >conftest.err
28138   rm -f conftest.er1
28139   cat conftest.err >&5
28140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141   (exit $ac_status); } &&
28142          { ac_try='test -z "$ac_c_werror_flag"
28143                          || test ! -s conftest.err'
28144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28145   (eval $ac_try) 2>&5
28146   ac_status=$?
28147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148   (exit $ac_status); }; } &&
28149          { ac_try='test -s conftest.$ac_objext'
28150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28151   (eval $ac_try) 2>&5
28152   ac_status=$?
28153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154   (exit $ac_status); }; }; then
28155   ac_cv_type_u_int64_t=yes
28156 else
28157   echo "$as_me: failed program was:" >&5
28158 sed 's/^/| /' conftest.$ac_ext >&5
28159
28160 ac_cv_type_u_int64_t=no
28161 fi
28162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28163 fi
28164 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28165 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
28166 if test $ac_cv_type_u_int64_t = yes; then
28167
28168 cat >>confdefs.h <<_ACEOF
28169 #define HAVE_U_INT64_T 1
28170 _ACEOF
28171
28172
28173 else
28174   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28175 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28176    { (exit 1); exit 1; }; }
28177 fi
28178
28179 fi
28180
28181
28182
28183
28184
28185
28186
28187
28188
28189
28190 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
28191 do
28192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28193 echo "$as_me:$LINENO: checking for $ac_func" >&5
28194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28195 if eval "test \"\${$as_ac_var+set}\" = set"; then
28196   echo $ECHO_N "(cached) $ECHO_C" >&6
28197 else
28198   cat >conftest.$ac_ext <<_ACEOF
28199 /* confdefs.h.  */
28200 _ACEOF
28201 cat confdefs.h >>conftest.$ac_ext
28202 cat >>conftest.$ac_ext <<_ACEOF
28203 /* end confdefs.h.  */
28204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28205    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28206 #define $ac_func innocuous_$ac_func
28207
28208 /* System header to define __stub macros and hopefully few prototypes,
28209     which can conflict with char $ac_func (); below.
28210     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28211     <limits.h> exists even on freestanding compilers.  */
28212
28213 #ifdef __STDC__
28214 # include <limits.h>
28215 #else
28216 # include <assert.h>
28217 #endif
28218
28219 #undef $ac_func
28220
28221 /* Override any gcc2 internal prototype to avoid an error.  */
28222 #ifdef __cplusplus
28223 extern "C"
28224 {
28225 #endif
28226 /* We use char because int might match the return type of a gcc2
28227    builtin and then its argument prototype would still apply.  */
28228 char $ac_func ();
28229 /* The GNU C library defines this for functions which it implements
28230     to always fail with ENOSYS.  Some functions are actually named
28231     something starting with __ and the normal name is an alias.  */
28232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28233 choke me
28234 #else
28235 char (*f) () = $ac_func;
28236 #endif
28237 #ifdef __cplusplus
28238 }
28239 #endif
28240
28241 int
28242 main ()
28243 {
28244 return f != $ac_func;
28245   ;
28246   return 0;
28247 }
28248 _ACEOF
28249 rm -f conftest.$ac_objext conftest$ac_exeext
28250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28251   (eval $ac_link) 2>conftest.er1
28252   ac_status=$?
28253   grep -v '^ *+' conftest.er1 >conftest.err
28254   rm -f conftest.er1
28255   cat conftest.err >&5
28256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257   (exit $ac_status); } &&
28258          { ac_try='test -z "$ac_c_werror_flag"
28259                          || test ! -s conftest.err'
28260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28261   (eval $ac_try) 2>&5
28262   ac_status=$?
28263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264   (exit $ac_status); }; } &&
28265          { ac_try='test -s conftest$ac_exeext'
28266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28267   (eval $ac_try) 2>&5
28268   ac_status=$?
28269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270   (exit $ac_status); }; }; then
28271   eval "$as_ac_var=yes"
28272 else
28273   echo "$as_me: failed program was:" >&5
28274 sed 's/^/| /' conftest.$ac_ext >&5
28275
28276 eval "$as_ac_var=no"
28277 fi
28278 rm -f conftest.err conftest.$ac_objext \
28279       conftest$ac_exeext conftest.$ac_ext
28280 fi
28281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28283 if test `eval echo '${'$as_ac_var'}'` = yes; then
28284   cat >>confdefs.h <<_ACEOF
28285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28286 _ACEOF
28287
28288 fi
28289 done
28290
28291
28292
28293
28294
28295
28296
28297 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
28298 do
28299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28300 echo "$as_me:$LINENO: checking for $ac_func" >&5
28301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28302 if eval "test \"\${$as_ac_var+set}\" = set"; then
28303   echo $ECHO_N "(cached) $ECHO_C" >&6
28304 else
28305   cat >conftest.$ac_ext <<_ACEOF
28306 /* confdefs.h.  */
28307 _ACEOF
28308 cat confdefs.h >>conftest.$ac_ext
28309 cat >>conftest.$ac_ext <<_ACEOF
28310 /* end confdefs.h.  */
28311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28313 #define $ac_func innocuous_$ac_func
28314
28315 /* System header to define __stub macros and hopefully few prototypes,
28316     which can conflict with char $ac_func (); below.
28317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28318     <limits.h> exists even on freestanding compilers.  */
28319
28320 #ifdef __STDC__
28321 # include <limits.h>
28322 #else
28323 # include <assert.h>
28324 #endif
28325
28326 #undef $ac_func
28327
28328 /* Override any gcc2 internal prototype to avoid an error.  */
28329 #ifdef __cplusplus
28330 extern "C"
28331 {
28332 #endif
28333 /* We use char because int might match the return type of a gcc2
28334    builtin and then its argument prototype would still apply.  */
28335 char $ac_func ();
28336 /* The GNU C library defines this for functions which it implements
28337     to always fail with ENOSYS.  Some functions are actually named
28338     something starting with __ and the normal name is an alias.  */
28339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28340 choke me
28341 #else
28342 char (*f) () = $ac_func;
28343 #endif
28344 #ifdef __cplusplus
28345 }
28346 #endif
28347
28348 int
28349 main ()
28350 {
28351 return f != $ac_func;
28352   ;
28353   return 0;
28354 }
28355 _ACEOF
28356 rm -f conftest.$ac_objext conftest$ac_exeext
28357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28358   (eval $ac_link) 2>conftest.er1
28359   ac_status=$?
28360   grep -v '^ *+' conftest.er1 >conftest.err
28361   rm -f conftest.er1
28362   cat conftest.err >&5
28363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364   (exit $ac_status); } &&
28365          { ac_try='test -z "$ac_c_werror_flag"
28366                          || test ! -s conftest.err'
28367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28368   (eval $ac_try) 2>&5
28369   ac_status=$?
28370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28371   (exit $ac_status); }; } &&
28372          { ac_try='test -s conftest$ac_exeext'
28373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28374   (eval $ac_try) 2>&5
28375   ac_status=$?
28376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377   (exit $ac_status); }; }; then
28378   eval "$as_ac_var=yes"
28379 else
28380   echo "$as_me: failed program was:" >&5
28381 sed 's/^/| /' conftest.$ac_ext >&5
28382
28383 eval "$as_ac_var=no"
28384 fi
28385 rm -f conftest.err conftest.$ac_objext \
28386       conftest$ac_exeext conftest.$ac_ext
28387 fi
28388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28389 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28390 if test `eval echo '${'$as_ac_var'}'` = yes; then
28391   cat >>confdefs.h <<_ACEOF
28392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28393 _ACEOF
28394
28395 fi
28396 done
28397
28398
28399
28400
28401
28402
28403
28404
28405 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
28406 do
28407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28408 echo "$as_me:$LINENO: checking for $ac_func" >&5
28409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28410 if eval "test \"\${$as_ac_var+set}\" = set"; then
28411   echo $ECHO_N "(cached) $ECHO_C" >&6
28412 else
28413   cat >conftest.$ac_ext <<_ACEOF
28414 /* confdefs.h.  */
28415 _ACEOF
28416 cat confdefs.h >>conftest.$ac_ext
28417 cat >>conftest.$ac_ext <<_ACEOF
28418 /* end confdefs.h.  */
28419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28421 #define $ac_func innocuous_$ac_func
28422
28423 /* System header to define __stub macros and hopefully few prototypes,
28424     which can conflict with char $ac_func (); below.
28425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28426     <limits.h> exists even on freestanding compilers.  */
28427
28428 #ifdef __STDC__
28429 # include <limits.h>
28430 #else
28431 # include <assert.h>
28432 #endif
28433
28434 #undef $ac_func
28435
28436 /* Override any gcc2 internal prototype to avoid an error.  */
28437 #ifdef __cplusplus
28438 extern "C"
28439 {
28440 #endif
28441 /* We use char because int might match the return type of a gcc2
28442    builtin and then its argument prototype would still apply.  */
28443 char $ac_func ();
28444 /* The GNU C library defines this for functions which it implements
28445     to always fail with ENOSYS.  Some functions are actually named
28446     something starting with __ and the normal name is an alias.  */
28447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28448 choke me
28449 #else
28450 char (*f) () = $ac_func;
28451 #endif
28452 #ifdef __cplusplus
28453 }
28454 #endif
28455
28456 int
28457 main ()
28458 {
28459 return f != $ac_func;
28460   ;
28461   return 0;
28462 }
28463 _ACEOF
28464 rm -f conftest.$ac_objext conftest$ac_exeext
28465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28466   (eval $ac_link) 2>conftest.er1
28467   ac_status=$?
28468   grep -v '^ *+' conftest.er1 >conftest.err
28469   rm -f conftest.er1
28470   cat conftest.err >&5
28471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472   (exit $ac_status); } &&
28473          { ac_try='test -z "$ac_c_werror_flag"
28474                          || test ! -s conftest.err'
28475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28476   (eval $ac_try) 2>&5
28477   ac_status=$?
28478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479   (exit $ac_status); }; } &&
28480          { ac_try='test -s conftest$ac_exeext'
28481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28482   (eval $ac_try) 2>&5
28483   ac_status=$?
28484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28485   (exit $ac_status); }; }; then
28486   eval "$as_ac_var=yes"
28487 else
28488   echo "$as_me: failed program was:" >&5
28489 sed 's/^/| /' conftest.$ac_ext >&5
28490
28491 eval "$as_ac_var=no"
28492 fi
28493 rm -f conftest.err conftest.$ac_objext \
28494       conftest$ac_exeext conftest.$ac_ext
28495 fi
28496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28497 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28498 if test `eval echo '${'$as_ac_var'}'` = yes; then
28499   cat >>confdefs.h <<_ACEOF
28500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28501 _ACEOF
28502
28503 fi
28504 done
28505
28506
28507
28508
28509
28510 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28511 do
28512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28513 echo "$as_me:$LINENO: checking for $ac_func" >&5
28514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28515 if eval "test \"\${$as_ac_var+set}\" = set"; then
28516   echo $ECHO_N "(cached) $ECHO_C" >&6
28517 else
28518   cat >conftest.$ac_ext <<_ACEOF
28519 /* confdefs.h.  */
28520 _ACEOF
28521 cat confdefs.h >>conftest.$ac_ext
28522 cat >>conftest.$ac_ext <<_ACEOF
28523 /* end confdefs.h.  */
28524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28525    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28526 #define $ac_func innocuous_$ac_func
28527
28528 /* System header to define __stub macros and hopefully few prototypes,
28529     which can conflict with char $ac_func (); below.
28530     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28531     <limits.h> exists even on freestanding compilers.  */
28532
28533 #ifdef __STDC__
28534 # include <limits.h>
28535 #else
28536 # include <assert.h>
28537 #endif
28538
28539 #undef $ac_func
28540
28541 /* Override any gcc2 internal prototype to avoid an error.  */
28542 #ifdef __cplusplus
28543 extern "C"
28544 {
28545 #endif
28546 /* We use char because int might match the return type of a gcc2
28547    builtin and then its argument prototype would still apply.  */
28548 char $ac_func ();
28549 /* The GNU C library defines this for functions which it implements
28550     to always fail with ENOSYS.  Some functions are actually named
28551     something starting with __ and the normal name is an alias.  */
28552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28553 choke me
28554 #else
28555 char (*f) () = $ac_func;
28556 #endif
28557 #ifdef __cplusplus
28558 }
28559 #endif
28560
28561 int
28562 main ()
28563 {
28564 return f != $ac_func;
28565   ;
28566   return 0;
28567 }
28568 _ACEOF
28569 rm -f conftest.$ac_objext conftest$ac_exeext
28570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28571   (eval $ac_link) 2>conftest.er1
28572   ac_status=$?
28573   grep -v '^ *+' conftest.er1 >conftest.err
28574   rm -f conftest.er1
28575   cat conftest.err >&5
28576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577   (exit $ac_status); } &&
28578          { ac_try='test -z "$ac_c_werror_flag"
28579                          || test ! -s conftest.err'
28580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28581   (eval $ac_try) 2>&5
28582   ac_status=$?
28583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584   (exit $ac_status); }; } &&
28585          { ac_try='test -s conftest$ac_exeext'
28586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28587   (eval $ac_try) 2>&5
28588   ac_status=$?
28589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590   (exit $ac_status); }; }; then
28591   eval "$as_ac_var=yes"
28592 else
28593   echo "$as_me: failed program was:" >&5
28594 sed 's/^/| /' conftest.$ac_ext >&5
28595
28596 eval "$as_ac_var=no"
28597 fi
28598 rm -f conftest.err conftest.$ac_objext \
28599       conftest$ac_exeext conftest.$ac_ext
28600 fi
28601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28603 if test `eval echo '${'$as_ac_var'}'` = yes; then
28604   cat >>confdefs.h <<_ACEOF
28605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28606 _ACEOF
28607
28608 fi
28609 done
28610
28611
28612
28613
28614
28615
28616
28617 for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
28618 do
28619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28620 echo "$as_me:$LINENO: checking for $ac_func" >&5
28621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28622 if eval "test \"\${$as_ac_var+set}\" = set"; then
28623   echo $ECHO_N "(cached) $ECHO_C" >&6
28624 else
28625   cat >conftest.$ac_ext <<_ACEOF
28626 /* confdefs.h.  */
28627 _ACEOF
28628 cat confdefs.h >>conftest.$ac_ext
28629 cat >>conftest.$ac_ext <<_ACEOF
28630 /* end confdefs.h.  */
28631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28633 #define $ac_func innocuous_$ac_func
28634
28635 /* System header to define __stub macros and hopefully few prototypes,
28636     which can conflict with char $ac_func (); below.
28637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28638     <limits.h> exists even on freestanding compilers.  */
28639
28640 #ifdef __STDC__
28641 # include <limits.h>
28642 #else
28643 # include <assert.h>
28644 #endif
28645
28646 #undef $ac_func
28647
28648 /* Override any gcc2 internal prototype to avoid an error.  */
28649 #ifdef __cplusplus
28650 extern "C"
28651 {
28652 #endif
28653 /* We use char because int might match the return type of a gcc2
28654    builtin and then its argument prototype would still apply.  */
28655 char $ac_func ();
28656 /* The GNU C library defines this for functions which it implements
28657     to always fail with ENOSYS.  Some functions are actually named
28658     something starting with __ and the normal name is an alias.  */
28659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28660 choke me
28661 #else
28662 char (*f) () = $ac_func;
28663 #endif
28664 #ifdef __cplusplus
28665 }
28666 #endif
28667
28668 int
28669 main ()
28670 {
28671 return f != $ac_func;
28672   ;
28673   return 0;
28674 }
28675 _ACEOF
28676 rm -f conftest.$ac_objext conftest$ac_exeext
28677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28678   (eval $ac_link) 2>conftest.er1
28679   ac_status=$?
28680   grep -v '^ *+' conftest.er1 >conftest.err
28681   rm -f conftest.er1
28682   cat conftest.err >&5
28683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684   (exit $ac_status); } &&
28685          { ac_try='test -z "$ac_c_werror_flag"
28686                          || test ! -s conftest.err'
28687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28688   (eval $ac_try) 2>&5
28689   ac_status=$?
28690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691   (exit $ac_status); }; } &&
28692          { ac_try='test -s conftest$ac_exeext'
28693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28694   (eval $ac_try) 2>&5
28695   ac_status=$?
28696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697   (exit $ac_status); }; }; then
28698   eval "$as_ac_var=yes"
28699 else
28700   echo "$as_me: failed program was:" >&5
28701 sed 's/^/| /' conftest.$ac_ext >&5
28702
28703 eval "$as_ac_var=no"
28704 fi
28705 rm -f conftest.err conftest.$ac_objext \
28706       conftest$ac_exeext conftest.$ac_ext
28707 fi
28708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28710 if test `eval echo '${'$as_ac_var'}'` = yes; then
28711   cat >>confdefs.h <<_ACEOF
28712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28713 _ACEOF
28714
28715 fi
28716 done
28717
28718 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28719 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28720 if test "${llvm_cv_c_printf_a+set}" = set; then
28721   echo $ECHO_N "(cached) $ECHO_C" >&6
28722 else
28723   ac_ext=c
28724 ac_cpp='$CPP $CPPFLAGS'
28725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28728
28729  if test "$cross_compiling" = yes; then
28730   llvmac_cv_c_printf_a=no
28731 else
28732   cat >conftest.$ac_ext <<_ACEOF
28733
28734   /* confdefs.h.  */
28735 _ACEOF
28736 cat confdefs.h >>conftest.$ac_ext
28737 cat >>conftest.$ac_ext <<_ACEOF
28738 /* end confdefs.h.  */
28739
28740 #include <stdio.h>
28741 #include <stdlib.h>
28742
28743 int
28744 main ()
28745 {
28746
28747 volatile double A, B;
28748 char Buffer[100];
28749 A = 1;
28750 A /= 10.0;
28751 sprintf(Buffer, "%a", A);
28752 B = atof(Buffer);
28753 if (A != B)
28754   return (1);
28755 if (A != 0x1.999999999999ap-4)
28756   return (1);
28757 return (0);
28758   ;
28759   return 0;
28760 }
28761 _ACEOF
28762 rm -f conftest$ac_exeext
28763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28764   (eval $ac_link) 2>&5
28765   ac_status=$?
28766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28767   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28769   (eval $ac_try) 2>&5
28770   ac_status=$?
28771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772   (exit $ac_status); }; }; then
28773   llvm_cv_c_printf_a=yes
28774 else
28775   echo "$as_me: program exited with status $ac_status" >&5
28776 echo "$as_me: failed program was:" >&5
28777 sed 's/^/| /' conftest.$ac_ext >&5
28778
28779 ( exit $ac_status )
28780 llvmac_cv_c_printf_a=no
28781 fi
28782 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28783 fi
28784  ac_ext=c
28785 ac_cpp='$CPP $CPPFLAGS'
28786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28789
28790 fi
28791 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28792 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28793  if test "$llvm_cv_c_printf_a" = "yes"; then
28794
28795 cat >>confdefs.h <<\_ACEOF
28796 #define HAVE_PRINTF_A 1
28797 _ACEOF
28798
28799  fi
28800
28801 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28802 # for constant arguments.  Useless!
28803 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28804 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28805 if test "${ac_cv_working_alloca_h+set}" = set; then
28806   echo $ECHO_N "(cached) $ECHO_C" >&6
28807 else
28808   cat >conftest.$ac_ext <<_ACEOF
28809 /* confdefs.h.  */
28810 _ACEOF
28811 cat confdefs.h >>conftest.$ac_ext
28812 cat >>conftest.$ac_ext <<_ACEOF
28813 /* end confdefs.h.  */
28814 #include <alloca.h>
28815 int
28816 main ()
28817 {
28818 char *p = (char *) alloca (2 * sizeof (int));
28819   ;
28820   return 0;
28821 }
28822 _ACEOF
28823 rm -f conftest.$ac_objext conftest$ac_exeext
28824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28825   (eval $ac_link) 2>conftest.er1
28826   ac_status=$?
28827   grep -v '^ *+' conftest.er1 >conftest.err
28828   rm -f conftest.er1
28829   cat conftest.err >&5
28830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28831   (exit $ac_status); } &&
28832          { ac_try='test -z "$ac_c_werror_flag"
28833                          || test ! -s conftest.err'
28834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28835   (eval $ac_try) 2>&5
28836   ac_status=$?
28837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838   (exit $ac_status); }; } &&
28839          { ac_try='test -s conftest$ac_exeext'
28840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28841   (eval $ac_try) 2>&5
28842   ac_status=$?
28843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844   (exit $ac_status); }; }; then
28845   ac_cv_working_alloca_h=yes
28846 else
28847   echo "$as_me: failed program was:" >&5
28848 sed 's/^/| /' conftest.$ac_ext >&5
28849
28850 ac_cv_working_alloca_h=no
28851 fi
28852 rm -f conftest.err conftest.$ac_objext \
28853       conftest$ac_exeext conftest.$ac_ext
28854 fi
28855 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28856 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28857 if test $ac_cv_working_alloca_h = yes; then
28858
28859 cat >>confdefs.h <<\_ACEOF
28860 #define HAVE_ALLOCA_H 1
28861 _ACEOF
28862
28863 fi
28864
28865 echo "$as_me:$LINENO: checking for alloca" >&5
28866 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28867 if test "${ac_cv_func_alloca_works+set}" = set; then
28868   echo $ECHO_N "(cached) $ECHO_C" >&6
28869 else
28870   cat >conftest.$ac_ext <<_ACEOF
28871 /* confdefs.h.  */
28872 _ACEOF
28873 cat confdefs.h >>conftest.$ac_ext
28874 cat >>conftest.$ac_ext <<_ACEOF
28875 /* end confdefs.h.  */
28876 #ifdef __GNUC__
28877 # define alloca __builtin_alloca
28878 #else
28879 # ifdef _MSC_VER
28880 #  include <malloc.h>
28881 #  define alloca _alloca
28882 # else
28883 #  if HAVE_ALLOCA_H
28884 #   include <alloca.h>
28885 #  else
28886 #   ifdef _AIX
28887  #pragma alloca
28888 #   else
28889 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28890 char *alloca ();
28891 #    endif
28892 #   endif
28893 #  endif
28894 # endif
28895 #endif
28896
28897 int
28898 main ()
28899 {
28900 char *p = (char *) alloca (1);
28901   ;
28902   return 0;
28903 }
28904 _ACEOF
28905 rm -f conftest.$ac_objext conftest$ac_exeext
28906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28907   (eval $ac_link) 2>conftest.er1
28908   ac_status=$?
28909   grep -v '^ *+' conftest.er1 >conftest.err
28910   rm -f conftest.er1
28911   cat conftest.err >&5
28912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913   (exit $ac_status); } &&
28914          { ac_try='test -z "$ac_c_werror_flag"
28915                          || test ! -s conftest.err'
28916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28917   (eval $ac_try) 2>&5
28918   ac_status=$?
28919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920   (exit $ac_status); }; } &&
28921          { ac_try='test -s conftest$ac_exeext'
28922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28923   (eval $ac_try) 2>&5
28924   ac_status=$?
28925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926   (exit $ac_status); }; }; then
28927   ac_cv_func_alloca_works=yes
28928 else
28929   echo "$as_me: failed program was:" >&5
28930 sed 's/^/| /' conftest.$ac_ext >&5
28931
28932 ac_cv_func_alloca_works=no
28933 fi
28934 rm -f conftest.err conftest.$ac_objext \
28935       conftest$ac_exeext conftest.$ac_ext
28936 fi
28937 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28938 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28939
28940 if test $ac_cv_func_alloca_works = yes; then
28941
28942 cat >>confdefs.h <<\_ACEOF
28943 #define HAVE_ALLOCA 1
28944 _ACEOF
28945
28946 else
28947   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28948 # that cause trouble.  Some versions do not even contain alloca or
28949 # contain a buggy version.  If you still want to use their alloca,
28950 # use ar to extract alloca.o from them instead of compiling alloca.c.
28951
28952 ALLOCA=alloca.$ac_objext
28953
28954 cat >>confdefs.h <<\_ACEOF
28955 #define C_ALLOCA 1
28956 _ACEOF
28957
28958
28959 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28960 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28961 if test "${ac_cv_os_cray+set}" = set; then
28962   echo $ECHO_N "(cached) $ECHO_C" >&6
28963 else
28964   cat >conftest.$ac_ext <<_ACEOF
28965 /* confdefs.h.  */
28966 _ACEOF
28967 cat confdefs.h >>conftest.$ac_ext
28968 cat >>conftest.$ac_ext <<_ACEOF
28969 /* end confdefs.h.  */
28970 #if defined(CRAY) && ! defined(CRAY2)
28971 webecray
28972 #else
28973 wenotbecray
28974 #endif
28975
28976 _ACEOF
28977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28978   $EGREP "webecray" >/dev/null 2>&1; then
28979   ac_cv_os_cray=yes
28980 else
28981   ac_cv_os_cray=no
28982 fi
28983 rm -f conftest*
28984
28985 fi
28986 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28987 echo "${ECHO_T}$ac_cv_os_cray" >&6
28988 if test $ac_cv_os_cray = yes; then
28989   for ac_func in _getb67 GETB67 getb67; do
28990     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28991 echo "$as_me:$LINENO: checking for $ac_func" >&5
28992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28993 if eval "test \"\${$as_ac_var+set}\" = set"; then
28994   echo $ECHO_N "(cached) $ECHO_C" >&6
28995 else
28996   cat >conftest.$ac_ext <<_ACEOF
28997 /* confdefs.h.  */
28998 _ACEOF
28999 cat confdefs.h >>conftest.$ac_ext
29000 cat >>conftest.$ac_ext <<_ACEOF
29001 /* end confdefs.h.  */
29002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29004 #define $ac_func innocuous_$ac_func
29005
29006 /* System header to define __stub macros and hopefully few prototypes,
29007     which can conflict with char $ac_func (); below.
29008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29009     <limits.h> exists even on freestanding compilers.  */
29010
29011 #ifdef __STDC__
29012 # include <limits.h>
29013 #else
29014 # include <assert.h>
29015 #endif
29016
29017 #undef $ac_func
29018
29019 /* Override any gcc2 internal prototype to avoid an error.  */
29020 #ifdef __cplusplus
29021 extern "C"
29022 {
29023 #endif
29024 /* We use char because int might match the return type of a gcc2
29025    builtin and then its argument prototype would still apply.  */
29026 char $ac_func ();
29027 /* The GNU C library defines this for functions which it implements
29028     to always fail with ENOSYS.  Some functions are actually named
29029     something starting with __ and the normal name is an alias.  */
29030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29031 choke me
29032 #else
29033 char (*f) () = $ac_func;
29034 #endif
29035 #ifdef __cplusplus
29036 }
29037 #endif
29038
29039 int
29040 main ()
29041 {
29042 return f != $ac_func;
29043   ;
29044   return 0;
29045 }
29046 _ACEOF
29047 rm -f conftest.$ac_objext conftest$ac_exeext
29048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29049   (eval $ac_link) 2>conftest.er1
29050   ac_status=$?
29051   grep -v '^ *+' conftest.er1 >conftest.err
29052   rm -f conftest.er1
29053   cat conftest.err >&5
29054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055   (exit $ac_status); } &&
29056          { ac_try='test -z "$ac_c_werror_flag"
29057                          || test ! -s conftest.err'
29058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29059   (eval $ac_try) 2>&5
29060   ac_status=$?
29061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062   (exit $ac_status); }; } &&
29063          { ac_try='test -s conftest$ac_exeext'
29064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29065   (eval $ac_try) 2>&5
29066   ac_status=$?
29067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068   (exit $ac_status); }; }; then
29069   eval "$as_ac_var=yes"
29070 else
29071   echo "$as_me: failed program was:" >&5
29072 sed 's/^/| /' conftest.$ac_ext >&5
29073
29074 eval "$as_ac_var=no"
29075 fi
29076 rm -f conftest.err conftest.$ac_objext \
29077       conftest$ac_exeext conftest.$ac_ext
29078 fi
29079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29081 if test `eval echo '${'$as_ac_var'}'` = yes; then
29082
29083 cat >>confdefs.h <<_ACEOF
29084 #define CRAY_STACKSEG_END $ac_func
29085 _ACEOF
29086
29087     break
29088 fi
29089
29090   done
29091 fi
29092
29093 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29094 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
29095 if test "${ac_cv_c_stack_direction+set}" = set; then
29096   echo $ECHO_N "(cached) $ECHO_C" >&6
29097 else
29098   if test "$cross_compiling" = yes; then
29099   ac_cv_c_stack_direction=0
29100 else
29101   cat >conftest.$ac_ext <<_ACEOF
29102 /* confdefs.h.  */
29103 _ACEOF
29104 cat confdefs.h >>conftest.$ac_ext
29105 cat >>conftest.$ac_ext <<_ACEOF
29106 /* end confdefs.h.  */
29107 int
29108 find_stack_direction ()
29109 {
29110   static char *addr = 0;
29111   auto char dummy;
29112   if (addr == 0)
29113     {
29114       addr = &dummy;
29115       return find_stack_direction ();
29116     }
29117   else
29118     return (&dummy > addr) ? 1 : -1;
29119 }
29120
29121 int
29122 main ()
29123 {
29124   exit (find_stack_direction () < 0);
29125 }
29126 _ACEOF
29127 rm -f conftest$ac_exeext
29128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29129   (eval $ac_link) 2>&5
29130   ac_status=$?
29131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29134   (eval $ac_try) 2>&5
29135   ac_status=$?
29136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137   (exit $ac_status); }; }; then
29138   ac_cv_c_stack_direction=1
29139 else
29140   echo "$as_me: program exited with status $ac_status" >&5
29141 echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29143
29144 ( exit $ac_status )
29145 ac_cv_c_stack_direction=-1
29146 fi
29147 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29148 fi
29149 fi
29150 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29151 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
29152
29153 cat >>confdefs.h <<_ACEOF
29154 #define STACK_DIRECTION $ac_cv_c_stack_direction
29155 _ACEOF
29156
29157
29158 fi
29159
29160
29161 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
29162 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
29163 if test "${ac_cv_func_rand48+set}" = set; then
29164   echo $ECHO_N "(cached) $ECHO_C" >&6
29165 else
29166   ac_ext=cc
29167 ac_cpp='$CXXCPP $CPPFLAGS'
29168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29171
29172    cat >conftest.$ac_ext <<_ACEOF
29173 /* confdefs.h.  */
29174 _ACEOF
29175 cat confdefs.h >>conftest.$ac_ext
29176 cat >>conftest.$ac_ext <<_ACEOF
29177 /* end confdefs.h.  */
29178 #include <stdlib.h>
29179 int
29180 main ()
29181 {
29182 srand48(0);lrand48();drand48();
29183   ;
29184   return 0;
29185 }
29186 _ACEOF
29187 rm -f conftest.$ac_objext
29188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29189   (eval $ac_compile) 2>conftest.er1
29190   ac_status=$?
29191   grep -v '^ *+' conftest.er1 >conftest.err
29192   rm -f conftest.er1
29193   cat conftest.err >&5
29194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195   (exit $ac_status); } &&
29196          { ac_try='test -z "$ac_cxx_werror_flag"
29197                          || test ! -s conftest.err'
29198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29199   (eval $ac_try) 2>&5
29200   ac_status=$?
29201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29202   (exit $ac_status); }; } &&
29203          { ac_try='test -s conftest.$ac_objext'
29204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29205   (eval $ac_try) 2>&5
29206   ac_status=$?
29207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208   (exit $ac_status); }; }; then
29209   ac_cv_func_rand48=yes
29210 else
29211   echo "$as_me: failed program was:" >&5
29212 sed 's/^/| /' conftest.$ac_ext >&5
29213
29214 ac_cv_func_rand48=no
29215 fi
29216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29217   ac_ext=c
29218 ac_cpp='$CPP $CPPFLAGS'
29219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29222
29223 fi
29224 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29225 echo "${ECHO_T}$ac_cv_func_rand48" >&6
29226
29227 if test "$ac_cv_func_rand48" = "yes" ; then
29228
29229 cat >>confdefs.h <<\_ACEOF
29230 #define HAVE_RAND48 1
29231 _ACEOF
29232
29233 fi
29234
29235
29236 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29237 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
29238 if test "${ac_cv_cxx_namespaces+set}" = set; then
29239   echo $ECHO_N "(cached) $ECHO_C" >&6
29240 else
29241   ac_ext=cc
29242 ac_cpp='$CXXCPP $CPPFLAGS'
29243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29246
29247  cat >conftest.$ac_ext <<_ACEOF
29248 /* confdefs.h.  */
29249 _ACEOF
29250 cat confdefs.h >>conftest.$ac_ext
29251 cat >>conftest.$ac_ext <<_ACEOF
29252 /* end confdefs.h.  */
29253 namespace Outer { namespace Inner { int i = 0; }}
29254 int
29255 main ()
29256 {
29257 using namespace Outer::Inner; return i;
29258   ;
29259   return 0;
29260 }
29261 _ACEOF
29262 rm -f conftest.$ac_objext
29263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29264   (eval $ac_compile) 2>conftest.er1
29265   ac_status=$?
29266   grep -v '^ *+' conftest.er1 >conftest.err
29267   rm -f conftest.er1
29268   cat conftest.err >&5
29269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29270   (exit $ac_status); } &&
29271          { ac_try='test -z "$ac_cxx_werror_flag"
29272                          || test ! -s conftest.err'
29273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29274   (eval $ac_try) 2>&5
29275   ac_status=$?
29276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29277   (exit $ac_status); }; } &&
29278          { ac_try='test -s conftest.$ac_objext'
29279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29280   (eval $ac_try) 2>&5
29281   ac_status=$?
29282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283   (exit $ac_status); }; }; then
29284   ac_cv_cxx_namespaces=yes
29285 else
29286   echo "$as_me: failed program was:" >&5
29287 sed 's/^/| /' conftest.$ac_ext >&5
29288
29289 ac_cv_cxx_namespaces=no
29290 fi
29291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29292  ac_ext=c
29293 ac_cpp='$CPP $CPPFLAGS'
29294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29297
29298
29299 fi
29300 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29301 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
29302 if test "$ac_cv_cxx_namespaces" = yes; then
29303
29304 cat >>confdefs.h <<\_ACEOF
29305 #define HAVE_NAMESPACES
29306 _ACEOF
29307
29308 fi
29309
29310 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29311 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
29312 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
29313   echo $ECHO_N "(cached) $ECHO_C" >&6
29314 else
29315
29316   ac_ext=cc
29317 ac_cpp='$CXXCPP $CPPFLAGS'
29318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29321
29322   cat >conftest.$ac_ext <<_ACEOF
29323 /* confdefs.h.  */
29324 _ACEOF
29325 cat confdefs.h >>conftest.$ac_ext
29326 cat >>conftest.$ac_ext <<_ACEOF
29327 /* end confdefs.h.  */
29328 #include <ext/hash_map>
29329 #ifdef HAVE_NAMESPACES
29330 using namespace std;
29331 #endif
29332 int
29333 main ()
29334 {
29335 hash_map<int, int> t;
29336   ;
29337   return 0;
29338 }
29339 _ACEOF
29340 rm -f conftest.$ac_objext
29341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29342   (eval $ac_compile) 2>conftest.er1
29343   ac_status=$?
29344   grep -v '^ *+' conftest.er1 >conftest.err
29345   rm -f conftest.er1
29346   cat conftest.err >&5
29347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348   (exit $ac_status); } &&
29349          { ac_try='test -z "$ac_cxx_werror_flag"
29350                          || test ! -s conftest.err'
29351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29352   (eval $ac_try) 2>&5
29353   ac_status=$?
29354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355   (exit $ac_status); }; } &&
29356          { ac_try='test -s conftest.$ac_objext'
29357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29358   (eval $ac_try) 2>&5
29359   ac_status=$?
29360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361   (exit $ac_status); }; }; then
29362   ac_cv_cxx_have_std_ext_hash_map=yes
29363 else
29364   echo "$as_me: failed program was:" >&5
29365 sed 's/^/| /' conftest.$ac_ext >&5
29366
29367 ac_cv_cxx_have_std_ext_hash_map=no
29368 fi
29369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29370   ac_ext=c
29371 ac_cpp='$CPP $CPPFLAGS'
29372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29375
29376 fi
29377 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29378 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
29379  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29380  then
29381
29382 cat >>confdefs.h <<\_ACEOF
29383 #define HAVE_STD_EXT_HASH_MAP 1
29384 _ACEOF
29385
29386  else
29387
29388 cat >>confdefs.h <<\_ACEOF
29389 #define HAVE_STD_EXT_HASH_MAP 0
29390 _ACEOF
29391
29392  fi
29393
29394  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
29395 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
29396 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
29397   echo $ECHO_N "(cached) $ECHO_C" >&6
29398 else
29399
29400   ac_ext=cc
29401 ac_cpp='$CXXCPP $CPPFLAGS'
29402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29405
29406   cat >conftest.$ac_ext <<_ACEOF
29407 /* confdefs.h.  */
29408 _ACEOF
29409 cat confdefs.h >>conftest.$ac_ext
29410 cat >>conftest.$ac_ext <<_ACEOF
29411 /* end confdefs.h.  */
29412 #include <ext/hash_map>
29413 #ifdef HAVE_NAMESPACES
29414 using namespace __gnu_cxx;
29415 #endif
29416 int
29417 main ()
29418 {
29419 hash_map<int,int> t;
29420   ;
29421   return 0;
29422 }
29423 _ACEOF
29424 rm -f conftest.$ac_objext
29425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29426   (eval $ac_compile) 2>conftest.er1
29427   ac_status=$?
29428   grep -v '^ *+' conftest.er1 >conftest.err
29429   rm -f conftest.er1
29430   cat conftest.err >&5
29431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432   (exit $ac_status); } &&
29433          { ac_try='test -z "$ac_cxx_werror_flag"
29434                          || test ! -s conftest.err'
29435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29436   (eval $ac_try) 2>&5
29437   ac_status=$?
29438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439   (exit $ac_status); }; } &&
29440          { ac_try='test -s conftest.$ac_objext'
29441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29442   (eval $ac_try) 2>&5
29443   ac_status=$?
29444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445   (exit $ac_status); }; }; then
29446   ac_cv_cxx_have_gnu_ext_hash_map=yes
29447 else
29448   echo "$as_me: failed program was:" >&5
29449 sed 's/^/| /' conftest.$ac_ext >&5
29450
29451 ac_cv_cxx_have_gnu_ext_hash_map=no
29452 fi
29453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29454   ac_ext=c
29455 ac_cpp='$CPP $CPPFLAGS'
29456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29459
29460 fi
29461 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
29462 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
29463  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
29464  then
29465
29466 cat >>confdefs.h <<\_ACEOF
29467 #define HAVE_GNU_EXT_HASH_MAP 1
29468 _ACEOF
29469
29470  else
29471
29472 cat >>confdefs.h <<\_ACEOF
29473 #define HAVE_GNU_EXT_HASH_MAP 0
29474 _ACEOF
29475
29476  fi
29477
29478  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
29479 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
29480 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
29481   echo $ECHO_N "(cached) $ECHO_C" >&6
29482 else
29483
29484   ac_ext=cc
29485 ac_cpp='$CXXCPP $CPPFLAGS'
29486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29489
29490   cat >conftest.$ac_ext <<_ACEOF
29491 /* confdefs.h.  */
29492 _ACEOF
29493 cat confdefs.h >>conftest.$ac_ext
29494 cat >>conftest.$ac_ext <<_ACEOF
29495 /* end confdefs.h.  */
29496 #include <hash_map>
29497 int
29498 main ()
29499 {
29500 hash_map<int,int> t;
29501   ;
29502   return 0;
29503 }
29504 _ACEOF
29505 rm -f conftest.$ac_objext
29506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29507   (eval $ac_compile) 2>conftest.er1
29508   ac_status=$?
29509   grep -v '^ *+' conftest.er1 >conftest.err
29510   rm -f conftest.er1
29511   cat conftest.err >&5
29512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29513   (exit $ac_status); } &&
29514          { ac_try='test -z "$ac_cxx_werror_flag"
29515                          || test ! -s conftest.err'
29516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29517   (eval $ac_try) 2>&5
29518   ac_status=$?
29519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29520   (exit $ac_status); }; } &&
29521          { ac_try='test -s conftest.$ac_objext'
29522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29523   (eval $ac_try) 2>&5
29524   ac_status=$?
29525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526   (exit $ac_status); }; }; then
29527   ac_cv_cxx_have_global_hash_map=yes
29528 else
29529   echo "$as_me: failed program was:" >&5
29530 sed 's/^/| /' conftest.$ac_ext >&5
29531
29532 ac_cv_cxx_have_global_hash_map=no
29533 fi
29534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29535   ac_ext=c
29536 ac_cpp='$CPP $CPPFLAGS'
29537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29540
29541 fi
29542 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29543 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
29544  if test "$ac_cv_cxx_have_global_hash_map" = yes
29545  then
29546
29547 cat >>confdefs.h <<\_ACEOF
29548 #define HAVE_GLOBAL_HASH_MAP 1
29549 _ACEOF
29550
29551  else
29552
29553 cat >>confdefs.h <<\_ACEOF
29554 #define HAVE_GLOBAL_HASH_MAP 0
29555 _ACEOF
29556
29557  fi
29558
29559 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29560 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29561 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
29562   echo $ECHO_N "(cached) $ECHO_C" >&6
29563 else
29564
29565   ac_ext=cc
29566 ac_cpp='$CXXCPP $CPPFLAGS'
29567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29570
29571   cat >conftest.$ac_ext <<_ACEOF
29572 /* confdefs.h.  */
29573 _ACEOF
29574 cat confdefs.h >>conftest.$ac_ext
29575 cat >>conftest.$ac_ext <<_ACEOF
29576 /* end confdefs.h.  */
29577 #include <ext/hash_set>
29578 #ifdef HAVE_NAMESPACES
29579 using namespace std;
29580 #endif
29581 int
29582 main ()
29583 {
29584 hash_set<int> t;
29585   ;
29586   return 0;
29587 }
29588 _ACEOF
29589 rm -f conftest.$ac_objext
29590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29591   (eval $ac_compile) 2>conftest.er1
29592   ac_status=$?
29593   grep -v '^ *+' conftest.er1 >conftest.err
29594   rm -f conftest.er1
29595   cat conftest.err >&5
29596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29597   (exit $ac_status); } &&
29598          { ac_try='test -z "$ac_cxx_werror_flag"
29599                          || test ! -s conftest.err'
29600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29601   (eval $ac_try) 2>&5
29602   ac_status=$?
29603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29604   (exit $ac_status); }; } &&
29605          { ac_try='test -s conftest.$ac_objext'
29606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29607   (eval $ac_try) 2>&5
29608   ac_status=$?
29609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610   (exit $ac_status); }; }; then
29611   ac_cv_cxx_have_std_ext_hash_set=yes
29612 else
29613   echo "$as_me: failed program was:" >&5
29614 sed 's/^/| /' conftest.$ac_ext >&5
29615
29616 ac_cv_cxx_have_std_ext_hash_set=no
29617 fi
29618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29619   ac_ext=c
29620 ac_cpp='$CPP $CPPFLAGS'
29621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29624
29625 fi
29626 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29627 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29628  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29629  then
29630
29631 cat >>confdefs.h <<\_ACEOF
29632 #define HAVE_STD_EXT_HASH_SET 1
29633 _ACEOF
29634
29635  else
29636
29637 cat >>confdefs.h <<\_ACEOF
29638 #define HAVE_STD_EXT_HASH_SET 0
29639 _ACEOF
29640
29641  fi
29642
29643  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29644 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29645 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29646   echo $ECHO_N "(cached) $ECHO_C" >&6
29647 else
29648
29649   ac_ext=cc
29650 ac_cpp='$CXXCPP $CPPFLAGS'
29651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29654
29655   cat >conftest.$ac_ext <<_ACEOF
29656 /* confdefs.h.  */
29657 _ACEOF
29658 cat confdefs.h >>conftest.$ac_ext
29659 cat >>conftest.$ac_ext <<_ACEOF
29660 /* end confdefs.h.  */
29661 #include <ext/hash_set>
29662 #ifdef HAVE_NAMESPACES
29663 using namespace __gnu_cxx;
29664 #endif
29665 int
29666 main ()
29667 {
29668 hash_set<int> t;
29669   ;
29670   return 0;
29671 }
29672 _ACEOF
29673 rm -f conftest.$ac_objext
29674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29675   (eval $ac_compile) 2>conftest.er1
29676   ac_status=$?
29677   grep -v '^ *+' conftest.er1 >conftest.err
29678   rm -f conftest.er1
29679   cat conftest.err >&5
29680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681   (exit $ac_status); } &&
29682          { ac_try='test -z "$ac_cxx_werror_flag"
29683                          || test ! -s conftest.err'
29684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29685   (eval $ac_try) 2>&5
29686   ac_status=$?
29687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688   (exit $ac_status); }; } &&
29689          { ac_try='test -s conftest.$ac_objext'
29690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29691   (eval $ac_try) 2>&5
29692   ac_status=$?
29693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694   (exit $ac_status); }; }; then
29695   ac_cv_cxx_have_gnu_ext_hash_set=yes
29696 else
29697   echo "$as_me: failed program was:" >&5
29698 sed 's/^/| /' conftest.$ac_ext >&5
29699
29700 ac_cv_cxx_have_gnu_ext_hash_set=no
29701 fi
29702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29703   ac_ext=c
29704 ac_cpp='$CPP $CPPFLAGS'
29705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29708
29709 fi
29710 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29711 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29712  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29713  then
29714
29715 cat >>confdefs.h <<\_ACEOF
29716 #define HAVE_GNU_EXT_HASH_SET 1
29717 _ACEOF
29718
29719  else
29720
29721 cat >>confdefs.h <<\_ACEOF
29722 #define HAVE_GNU_EXT_HASH_SET 0
29723 _ACEOF
29724
29725  fi
29726
29727  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29728 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29729 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29730   echo $ECHO_N "(cached) $ECHO_C" >&6
29731 else
29732
29733   ac_ext=cc
29734 ac_cpp='$CXXCPP $CPPFLAGS'
29735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29738
29739   cat >conftest.$ac_ext <<_ACEOF
29740 /* confdefs.h.  */
29741 _ACEOF
29742 cat confdefs.h >>conftest.$ac_ext
29743 cat >>conftest.$ac_ext <<_ACEOF
29744 /* end confdefs.h.  */
29745 #include <hash_set>
29746 int
29747 main ()
29748 {
29749 hash_set<int> t; return 0;
29750   ;
29751   return 0;
29752 }
29753 _ACEOF
29754 rm -f conftest.$ac_objext
29755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29756   (eval $ac_compile) 2>conftest.er1
29757   ac_status=$?
29758   grep -v '^ *+' conftest.er1 >conftest.err
29759   rm -f conftest.er1
29760   cat conftest.err >&5
29761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762   (exit $ac_status); } &&
29763          { ac_try='test -z "$ac_cxx_werror_flag"
29764                          || test ! -s conftest.err'
29765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29766   (eval $ac_try) 2>&5
29767   ac_status=$?
29768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29769   (exit $ac_status); }; } &&
29770          { ac_try='test -s conftest.$ac_objext'
29771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29772   (eval $ac_try) 2>&5
29773   ac_status=$?
29774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775   (exit $ac_status); }; }; then
29776   ac_cv_cxx_have_global_hash_set=yes
29777 else
29778   echo "$as_me: failed program was:" >&5
29779 sed 's/^/| /' conftest.$ac_ext >&5
29780
29781 ac_cv_cxx_have_global_hash_set=no
29782 fi
29783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29784   ac_ext=c
29785 ac_cpp='$CPP $CPPFLAGS'
29786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29789
29790 fi
29791 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29792 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29793  if test "$ac_cv_cxx_have_global_hash_set" = yes
29794  then
29795
29796 cat >>confdefs.h <<\_ACEOF
29797 #define HAVE_GLOBAL_HASH_SET 1
29798 _ACEOF
29799
29800  else
29801
29802 cat >>confdefs.h <<\_ACEOF
29803 #define HAVE_GLOBAL_HASH_SET 0
29804 _ACEOF
29805
29806  fi
29807
29808 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29809 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29810 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29811   echo $ECHO_N "(cached) $ECHO_C" >&6
29812 else
29813
29814   ac_ext=cc
29815 ac_cpp='$CXXCPP $CPPFLAGS'
29816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29819
29820   cat >conftest.$ac_ext <<_ACEOF
29821 /* confdefs.h.  */
29822 _ACEOF
29823 cat confdefs.h >>conftest.$ac_ext
29824 cat >>conftest.$ac_ext <<_ACEOF
29825 /* end confdefs.h.  */
29826 #include <iterator>
29827 #ifdef HAVE_NAMESPACES
29828 using namespace std;
29829 #endif
29830 int
29831 main ()
29832 {
29833 iterator<int,int,int> t; return 0;
29834   ;
29835   return 0;
29836 }
29837 _ACEOF
29838 rm -f conftest.$ac_objext
29839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29840   (eval $ac_compile) 2>conftest.er1
29841   ac_status=$?
29842   grep -v '^ *+' conftest.er1 >conftest.err
29843   rm -f conftest.er1
29844   cat conftest.err >&5
29845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29846   (exit $ac_status); } &&
29847          { ac_try='test -z "$ac_cxx_werror_flag"
29848                          || test ! -s conftest.err'
29849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29850   (eval $ac_try) 2>&5
29851   ac_status=$?
29852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29853   (exit $ac_status); }; } &&
29854          { ac_try='test -s conftest.$ac_objext'
29855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29856   (eval $ac_try) 2>&5
29857   ac_status=$?
29858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859   (exit $ac_status); }; }; then
29860   ac_cv_cxx_have_std_iterator=yes
29861 else
29862   echo "$as_me: failed program was:" >&5
29863 sed 's/^/| /' conftest.$ac_ext >&5
29864
29865 ac_cv_cxx_have_std_iterator=no
29866 fi
29867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29868   ac_ext=c
29869 ac_cpp='$CPP $CPPFLAGS'
29870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29873
29874
29875 fi
29876 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29877 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29878 if test "$ac_cv_cxx_have_std_iterator" = yes
29879 then
29880
29881 cat >>confdefs.h <<\_ACEOF
29882 #define HAVE_STD_ITERATOR 1
29883 _ACEOF
29884
29885 else
29886
29887 cat >>confdefs.h <<\_ACEOF
29888 #define HAVE_STD_ITERATOR 0
29889 _ACEOF
29890
29891 fi
29892
29893 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29894 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29895 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29896   echo $ECHO_N "(cached) $ECHO_C" >&6
29897 else
29898
29899   ac_ext=cc
29900 ac_cpp='$CXXCPP $CPPFLAGS'
29901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29904
29905   cat >conftest.$ac_ext <<_ACEOF
29906 /* confdefs.h.  */
29907 _ACEOF
29908 cat confdefs.h >>conftest.$ac_ext
29909 cat >>conftest.$ac_ext <<_ACEOF
29910 /* end confdefs.h.  */
29911 #include <iterator>
29912 #ifdef HAVE_NAMESPACES
29913 using namespace std;
29914 #endif
29915 int
29916 main ()
29917 {
29918 bidirectional_iterator<int,int> t; return 0;
29919   ;
29920   return 0;
29921 }
29922 _ACEOF
29923 rm -f conftest.$ac_objext
29924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29925   (eval $ac_compile) 2>conftest.er1
29926   ac_status=$?
29927   grep -v '^ *+' conftest.er1 >conftest.err
29928   rm -f conftest.er1
29929   cat conftest.err >&5
29930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29931   (exit $ac_status); } &&
29932          { ac_try='test -z "$ac_cxx_werror_flag"
29933                          || test ! -s conftest.err'
29934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29935   (eval $ac_try) 2>&5
29936   ac_status=$?
29937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938   (exit $ac_status); }; } &&
29939          { ac_try='test -s conftest.$ac_objext'
29940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29941   (eval $ac_try) 2>&5
29942   ac_status=$?
29943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944   (exit $ac_status); }; }; then
29945   ac_cv_cxx_have_bi_iterator=yes
29946 else
29947   echo "$as_me: failed program was:" >&5
29948 sed 's/^/| /' conftest.$ac_ext >&5
29949
29950 ac_cv_cxx_have_bi_iterator=no
29951 fi
29952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29953   ac_ext=c
29954 ac_cpp='$CPP $CPPFLAGS'
29955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29958
29959
29960 fi
29961 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29962 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29963 if test "$ac_cv_cxx_have_bi_iterator" = yes
29964 then
29965
29966 cat >>confdefs.h <<\_ACEOF
29967 #define HAVE_BI_ITERATOR 1
29968 _ACEOF
29969
29970 else
29971
29972 cat >>confdefs.h <<\_ACEOF
29973 #define HAVE_BI_ITERATOR 0
29974 _ACEOF
29975
29976 fi
29977
29978 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29979 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29980 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29981   echo $ECHO_N "(cached) $ECHO_C" >&6
29982 else
29983
29984   ac_ext=cc
29985 ac_cpp='$CXXCPP $CPPFLAGS'
29986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29989
29990   cat >conftest.$ac_ext <<_ACEOF
29991 /* confdefs.h.  */
29992 _ACEOF
29993 cat confdefs.h >>conftest.$ac_ext
29994 cat >>conftest.$ac_ext <<_ACEOF
29995 /* end confdefs.h.  */
29996 #include <iterator>
29997 #ifdef HAVE_NAMESPACES
29998 using namespace std;
29999 #endif
30000 int
30001 main ()
30002 {
30003 forward_iterator<int,int> t; return 0;
30004   ;
30005   return 0;
30006 }
30007 _ACEOF
30008 rm -f conftest.$ac_objext
30009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30010   (eval $ac_compile) 2>conftest.er1
30011   ac_status=$?
30012   grep -v '^ *+' conftest.er1 >conftest.err
30013   rm -f conftest.er1
30014   cat conftest.err >&5
30015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016   (exit $ac_status); } &&
30017          { ac_try='test -z "$ac_cxx_werror_flag"
30018                          || test ! -s conftest.err'
30019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30020   (eval $ac_try) 2>&5
30021   ac_status=$?
30022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30023   (exit $ac_status); }; } &&
30024          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
30030   ac_cv_cxx_have_fwd_iterator=yes
30031 else
30032   echo "$as_me: failed program was:" >&5
30033 sed 's/^/| /' conftest.$ac_ext >&5
30034
30035 ac_cv_cxx_have_fwd_iterator=no
30036 fi
30037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30038   ac_ext=c
30039 ac_cpp='$CPP $CPPFLAGS'
30040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30043
30044
30045 fi
30046 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30047 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
30048 if test "$ac_cv_cxx_have_fwd_iterator" = yes
30049 then
30050
30051 cat >>confdefs.h <<\_ACEOF
30052 #define HAVE_FWD_ITERATOR 1
30053 _ACEOF
30054
30055 else
30056
30057 cat >>confdefs.h <<\_ACEOF
30058 #define HAVE_FWD_ITERATOR 0
30059 _ACEOF
30060
30061 fi
30062
30063
30064 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30065 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
30066 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30067   echo $ECHO_N "(cached) $ECHO_C" >&6
30068 else
30069   ac_ext=cc
30070 ac_cpp='$CXXCPP $CPPFLAGS'
30071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30074
30075    cat >conftest.$ac_ext <<_ACEOF
30076 /* confdefs.h.  */
30077 _ACEOF
30078 cat confdefs.h >>conftest.$ac_ext
30079 cat >>conftest.$ac_ext <<_ACEOF
30080 /* end confdefs.h.  */
30081 #include <math.h>
30082 int
30083 main ()
30084 {
30085 float f; isnan(f);
30086   ;
30087   return 0;
30088 }
30089 _ACEOF
30090 rm -f conftest.$ac_objext
30091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30092   (eval $ac_compile) 2>conftest.er1
30093   ac_status=$?
30094   grep -v '^ *+' conftest.er1 >conftest.err
30095   rm -f conftest.er1
30096   cat conftest.err >&5
30097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30098   (exit $ac_status); } &&
30099          { ac_try='test -z "$ac_cxx_werror_flag"
30100                          || test ! -s conftest.err'
30101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30102   (eval $ac_try) 2>&5
30103   ac_status=$?
30104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30105   (exit $ac_status); }; } &&
30106          { ac_try='test -s conftest.$ac_objext'
30107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30108   (eval $ac_try) 2>&5
30109   ac_status=$?
30110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111   (exit $ac_status); }; }; then
30112   ac_cv_func_isnan_in_math_h=yes
30113 else
30114   echo "$as_me: failed program was:" >&5
30115 sed 's/^/| /' conftest.$ac_ext >&5
30116
30117 ac_cv_func_isnan_in_math_h=no
30118 fi
30119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30120   ac_ext=c
30121 ac_cpp='$CPP $CPPFLAGS'
30122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30125
30126 fi
30127 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30128 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
30129
30130
30131 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
30132
30133 cat >>confdefs.h <<\_ACEOF
30134 #define HAVE_ISNAN_IN_MATH_H 1
30135 _ACEOF
30136
30137 fi
30138
30139 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30140 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
30141 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30142   echo $ECHO_N "(cached) $ECHO_C" >&6
30143 else
30144   ac_ext=cc
30145 ac_cpp='$CXXCPP $CPPFLAGS'
30146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30149
30150    cat >conftest.$ac_ext <<_ACEOF
30151 /* confdefs.h.  */
30152 _ACEOF
30153 cat confdefs.h >>conftest.$ac_ext
30154 cat >>conftest.$ac_ext <<_ACEOF
30155 /* end confdefs.h.  */
30156 #include <cmath>
30157 int
30158 main ()
30159 {
30160 float f; isnan(f);
30161   ;
30162   return 0;
30163 }
30164 _ACEOF
30165 rm -f conftest.$ac_objext
30166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30167   (eval $ac_compile) 2>conftest.er1
30168   ac_status=$?
30169   grep -v '^ *+' conftest.er1 >conftest.err
30170   rm -f conftest.er1
30171   cat conftest.err >&5
30172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173   (exit $ac_status); } &&
30174          { ac_try='test -z "$ac_cxx_werror_flag"
30175                          || test ! -s conftest.err'
30176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30177   (eval $ac_try) 2>&5
30178   ac_status=$?
30179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30180   (exit $ac_status); }; } &&
30181          { ac_try='test -s conftest.$ac_objext'
30182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30183   (eval $ac_try) 2>&5
30184   ac_status=$?
30185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30186   (exit $ac_status); }; }; then
30187   ac_cv_func_isnan_in_cmath=yes
30188 else
30189   echo "$as_me: failed program was:" >&5
30190 sed 's/^/| /' conftest.$ac_ext >&5
30191
30192 ac_cv_func_isnan_in_cmath=no
30193 fi
30194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30195   ac_ext=c
30196 ac_cpp='$CPP $CPPFLAGS'
30197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30200
30201 fi
30202 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30203 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
30204
30205 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
30206
30207 cat >>confdefs.h <<\_ACEOF
30208 #define HAVE_ISNAN_IN_CMATH 1
30209 _ACEOF
30210
30211 fi
30212
30213 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30214 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
30215 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30216   echo $ECHO_N "(cached) $ECHO_C" >&6
30217 else
30218   ac_ext=cc
30219 ac_cpp='$CXXCPP $CPPFLAGS'
30220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30223
30224    cat >conftest.$ac_ext <<_ACEOF
30225 /* confdefs.h.  */
30226 _ACEOF
30227 cat confdefs.h >>conftest.$ac_ext
30228 cat >>conftest.$ac_ext <<_ACEOF
30229 /* end confdefs.h.  */
30230 #include <cmath>
30231 int
30232 main ()
30233 {
30234 float f; std::isnan(f);
30235   ;
30236   return 0;
30237 }
30238 _ACEOF
30239 rm -f conftest.$ac_objext
30240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30241   (eval $ac_compile) 2>conftest.er1
30242   ac_status=$?
30243   grep -v '^ *+' conftest.er1 >conftest.err
30244   rm -f conftest.er1
30245   cat conftest.err >&5
30246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30247   (exit $ac_status); } &&
30248          { ac_try='test -z "$ac_cxx_werror_flag"
30249                          || test ! -s conftest.err'
30250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30251   (eval $ac_try) 2>&5
30252   ac_status=$?
30253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254   (exit $ac_status); }; } &&
30255          { ac_try='test -s conftest.$ac_objext'
30256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30257   (eval $ac_try) 2>&5
30258   ac_status=$?
30259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260   (exit $ac_status); }; }; then
30261   ac_cv_func_std_isnan_in_cmath=yes
30262 else
30263   echo "$as_me: failed program was:" >&5
30264 sed 's/^/| /' conftest.$ac_ext >&5
30265
30266 ac_cv_func_std_isnan_in_cmath=no
30267 fi
30268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30269   ac_ext=c
30270 ac_cpp='$CPP $CPPFLAGS'
30271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30274
30275 fi
30276 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30277 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
30278
30279 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
30280
30281 cat >>confdefs.h <<\_ACEOF
30282 #define HAVE_STD_ISNAN_IN_CMATH 1
30283 _ACEOF
30284
30285 fi
30286
30287
30288 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30289 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
30290 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30291   echo $ECHO_N "(cached) $ECHO_C" >&6
30292 else
30293   ac_ext=cc
30294 ac_cpp='$CXXCPP $CPPFLAGS'
30295 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30296 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30297 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30298
30299    cat >conftest.$ac_ext <<_ACEOF
30300 /* confdefs.h.  */
30301 _ACEOF
30302 cat confdefs.h >>conftest.$ac_ext
30303 cat >>conftest.$ac_ext <<_ACEOF
30304 /* end confdefs.h.  */
30305 #include <math.h>
30306 int
30307 main ()
30308 {
30309 float f; isinf(f);
30310   ;
30311   return 0;
30312 }
30313 _ACEOF
30314 rm -f conftest.$ac_objext
30315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30316   (eval $ac_compile) 2>conftest.er1
30317   ac_status=$?
30318   grep -v '^ *+' conftest.er1 >conftest.err
30319   rm -f conftest.er1
30320   cat conftest.err >&5
30321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30322   (exit $ac_status); } &&
30323          { ac_try='test -z "$ac_cxx_werror_flag"
30324                          || test ! -s conftest.err'
30325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30326   (eval $ac_try) 2>&5
30327   ac_status=$?
30328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30329   (exit $ac_status); }; } &&
30330          { ac_try='test -s conftest.$ac_objext'
30331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30332   (eval $ac_try) 2>&5
30333   ac_status=$?
30334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335   (exit $ac_status); }; }; then
30336   ac_cv_func_isinf_in_math_h=yes
30337 else
30338   echo "$as_me: failed program was:" >&5
30339 sed 's/^/| /' conftest.$ac_ext >&5
30340
30341 ac_cv_func_isinf_in_math_h=no
30342 fi
30343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30344   ac_ext=c
30345 ac_cpp='$CPP $CPPFLAGS'
30346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30349
30350 fi
30351 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30352 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
30353
30354 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30355
30356 cat >>confdefs.h <<\_ACEOF
30357 #define HAVE_ISINF_IN_MATH_H 1
30358 _ACEOF
30359
30360 fi
30361
30362 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30363 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
30364 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30365   echo $ECHO_N "(cached) $ECHO_C" >&6
30366 else
30367   ac_ext=cc
30368 ac_cpp='$CXXCPP $CPPFLAGS'
30369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30372
30373    cat >conftest.$ac_ext <<_ACEOF
30374 /* confdefs.h.  */
30375 _ACEOF
30376 cat confdefs.h >>conftest.$ac_ext
30377 cat >>conftest.$ac_ext <<_ACEOF
30378 /* end confdefs.h.  */
30379 #include <cmath>
30380 int
30381 main ()
30382 {
30383 float f; isinf(f);
30384   ;
30385   return 0;
30386 }
30387 _ACEOF
30388 rm -f conftest.$ac_objext
30389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30390   (eval $ac_compile) 2>conftest.er1
30391   ac_status=$?
30392   grep -v '^ *+' conftest.er1 >conftest.err
30393   rm -f conftest.er1
30394   cat conftest.err >&5
30395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30396   (exit $ac_status); } &&
30397          { ac_try='test -z "$ac_cxx_werror_flag"
30398                          || test ! -s conftest.err'
30399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30400   (eval $ac_try) 2>&5
30401   ac_status=$?
30402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30403   (exit $ac_status); }; } &&
30404          { ac_try='test -s conftest.$ac_objext'
30405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30406   (eval $ac_try) 2>&5
30407   ac_status=$?
30408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30409   (exit $ac_status); }; }; then
30410   ac_cv_func_isinf_in_cmath=yes
30411 else
30412   echo "$as_me: failed program was:" >&5
30413 sed 's/^/| /' conftest.$ac_ext >&5
30414
30415 ac_cv_func_isinf_in_cmath=no
30416 fi
30417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30418   ac_ext=c
30419 ac_cpp='$CPP $CPPFLAGS'
30420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30423
30424 fi
30425 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30426 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
30427
30428 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30429
30430 cat >>confdefs.h <<\_ACEOF
30431 #define HAVE_ISINF_IN_CMATH 1
30432 _ACEOF
30433
30434 fi
30435
30436 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30437 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
30438 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30439   echo $ECHO_N "(cached) $ECHO_C" >&6
30440 else
30441   ac_ext=cc
30442 ac_cpp='$CXXCPP $CPPFLAGS'
30443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30446
30447    cat >conftest.$ac_ext <<_ACEOF
30448 /* confdefs.h.  */
30449 _ACEOF
30450 cat confdefs.h >>conftest.$ac_ext
30451 cat >>conftest.$ac_ext <<_ACEOF
30452 /* end confdefs.h.  */
30453 #include <cmath>
30454 int
30455 main ()
30456 {
30457 float f; std::isinf(f)}
30458   ;
30459   return 0;
30460 }
30461 _ACEOF
30462 rm -f conftest.$ac_objext
30463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30464   (eval $ac_compile) 2>conftest.er1
30465   ac_status=$?
30466   grep -v '^ *+' conftest.er1 >conftest.err
30467   rm -f conftest.er1
30468   cat conftest.err >&5
30469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30470   (exit $ac_status); } &&
30471          { ac_try='test -z "$ac_cxx_werror_flag"
30472                          || test ! -s conftest.err'
30473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30474   (eval $ac_try) 2>&5
30475   ac_status=$?
30476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30477   (exit $ac_status); }; } &&
30478          { ac_try='test -s conftest.$ac_objext'
30479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30480   (eval $ac_try) 2>&5
30481   ac_status=$?
30482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30483   (exit $ac_status); }; }; then
30484   ac_cv_func_std_isinf_in_cmath=yes
30485 else
30486   echo "$as_me: failed program was:" >&5
30487 sed 's/^/| /' conftest.$ac_ext >&5
30488
30489 ac_cv_func_std_isinf_in_cmath=no
30490 fi
30491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30492   ac_ext=c
30493 ac_cpp='$CPP $CPPFLAGS'
30494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30497
30498 fi
30499 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
30500 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
30501
30502 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
30503
30504 cat >>confdefs.h <<\_ACEOF
30505 #define HAVE_STD_ISINF_IN_CMATH 1
30506 _ACEOF
30507
30508 fi
30509
30510 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
30511 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
30512 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
30513   echo $ECHO_N "(cached) $ECHO_C" >&6
30514 else
30515   ac_ext=cc
30516 ac_cpp='$CXXCPP $CPPFLAGS'
30517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30520
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 #include <ieeefp.h>
30528 int
30529 main ()
30530 {
30531 float f; finite(f);
30532   ;
30533   return 0;
30534 }
30535 _ACEOF
30536 rm -f conftest.$ac_objext
30537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30538   (eval $ac_compile) 2>conftest.er1
30539   ac_status=$?
30540   grep -v '^ *+' conftest.er1 >conftest.err
30541   rm -f conftest.er1
30542   cat conftest.err >&5
30543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30544   (exit $ac_status); } &&
30545          { ac_try='test -z "$ac_cxx_werror_flag"
30546                          || test ! -s conftest.err'
30547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30548   (eval $ac_try) 2>&5
30549   ac_status=$?
30550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30551   (exit $ac_status); }; } &&
30552          { ac_try='test -s conftest.$ac_objext'
30553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30554   (eval $ac_try) 2>&5
30555   ac_status=$?
30556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557   (exit $ac_status); }; }; then
30558   ac_cv_func_finite_in_ieeefp_h=yes
30559 else
30560   echo "$as_me: failed program was:" >&5
30561 sed 's/^/| /' conftest.$ac_ext >&5
30562
30563 ac_cv_func_finite_in_ieeefp_h=no
30564 fi
30565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30566   ac_ext=c
30567 ac_cpp='$CPP $CPPFLAGS'
30568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30571
30572 fi
30573 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30574 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
30575
30576 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30577
30578 cat >>confdefs.h <<\_ACEOF
30579 #define HAVE_FINITE_IN_IEEEFP_H 1
30580 _ACEOF
30581
30582 fi
30583
30584
30585
30586
30587
30588 for ac_header in stdlib.h unistd.h
30589 do
30590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30592   echo "$as_me:$LINENO: checking for $ac_header" >&5
30593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30595   echo $ECHO_N "(cached) $ECHO_C" >&6
30596 fi
30597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30599 else
30600   # Is the header compilable?
30601 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30603 cat >conftest.$ac_ext <<_ACEOF
30604 /* confdefs.h.  */
30605 _ACEOF
30606 cat confdefs.h >>conftest.$ac_ext
30607 cat >>conftest.$ac_ext <<_ACEOF
30608 /* end confdefs.h.  */
30609 $ac_includes_default
30610 #include <$ac_header>
30611 _ACEOF
30612 rm -f conftest.$ac_objext
30613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30614   (eval $ac_compile) 2>conftest.er1
30615   ac_status=$?
30616   grep -v '^ *+' conftest.er1 >conftest.err
30617   rm -f conftest.er1
30618   cat conftest.err >&5
30619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30620   (exit $ac_status); } &&
30621          { ac_try='test -z "$ac_c_werror_flag"
30622                          || test ! -s conftest.err'
30623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30624   (eval $ac_try) 2>&5
30625   ac_status=$?
30626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627   (exit $ac_status); }; } &&
30628          { ac_try='test -s conftest.$ac_objext'
30629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30630   (eval $ac_try) 2>&5
30631   ac_status=$?
30632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30633   (exit $ac_status); }; }; then
30634   ac_header_compiler=yes
30635 else
30636   echo "$as_me: failed program was:" >&5
30637 sed 's/^/| /' conftest.$ac_ext >&5
30638
30639 ac_header_compiler=no
30640 fi
30641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30643 echo "${ECHO_T}$ac_header_compiler" >&6
30644
30645 # Is the header present?
30646 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30648 cat >conftest.$ac_ext <<_ACEOF
30649 /* confdefs.h.  */
30650 _ACEOF
30651 cat confdefs.h >>conftest.$ac_ext
30652 cat >>conftest.$ac_ext <<_ACEOF
30653 /* end confdefs.h.  */
30654 #include <$ac_header>
30655 _ACEOF
30656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30657   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30658   ac_status=$?
30659   grep -v '^ *+' conftest.er1 >conftest.err
30660   rm -f conftest.er1
30661   cat conftest.err >&5
30662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30663   (exit $ac_status); } >/dev/null; then
30664   if test -s conftest.err; then
30665     ac_cpp_err=$ac_c_preproc_warn_flag
30666     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30667   else
30668     ac_cpp_err=
30669   fi
30670 else
30671   ac_cpp_err=yes
30672 fi
30673 if test -z "$ac_cpp_err"; then
30674   ac_header_preproc=yes
30675 else
30676   echo "$as_me: failed program was:" >&5
30677 sed 's/^/| /' conftest.$ac_ext >&5
30678
30679   ac_header_preproc=no
30680 fi
30681 rm -f conftest.err conftest.$ac_ext
30682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30683 echo "${ECHO_T}$ac_header_preproc" >&6
30684
30685 # So?  What about this header?
30686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30687   yes:no: )
30688     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30690     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30692     ac_header_preproc=yes
30693     ;;
30694   no:yes:* )
30695     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30697     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30698 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30699     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30701     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30702 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30703     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30705     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30707     (
30708       cat <<\_ASBOX
30709 ## ----------------------------------- ##
30710 ## Report this to llvmbugs@cs.uiuc.edu ##
30711 ## ----------------------------------- ##
30712 _ASBOX
30713     ) |
30714       sed "s/^/$as_me: WARNING:     /" >&2
30715     ;;
30716 esac
30717 echo "$as_me:$LINENO: checking for $ac_header" >&5
30718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30720   echo $ECHO_N "(cached) $ECHO_C" >&6
30721 else
30722   eval "$as_ac_Header=\$ac_header_preproc"
30723 fi
30724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30726
30727 fi
30728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30729   cat >>confdefs.h <<_ACEOF
30730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30731 _ACEOF
30732
30733 fi
30734
30735 done
30736
30737
30738 for ac_func in getpagesize
30739 do
30740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30741 echo "$as_me:$LINENO: checking for $ac_func" >&5
30742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30743 if eval "test \"\${$as_ac_var+set}\" = set"; then
30744   echo $ECHO_N "(cached) $ECHO_C" >&6
30745 else
30746   cat >conftest.$ac_ext <<_ACEOF
30747 /* confdefs.h.  */
30748 _ACEOF
30749 cat confdefs.h >>conftest.$ac_ext
30750 cat >>conftest.$ac_ext <<_ACEOF
30751 /* end confdefs.h.  */
30752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30754 #define $ac_func innocuous_$ac_func
30755
30756 /* System header to define __stub macros and hopefully few prototypes,
30757     which can conflict with char $ac_func (); below.
30758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30759     <limits.h> exists even on freestanding compilers.  */
30760
30761 #ifdef __STDC__
30762 # include <limits.h>
30763 #else
30764 # include <assert.h>
30765 #endif
30766
30767 #undef $ac_func
30768
30769 /* Override any gcc2 internal prototype to avoid an error.  */
30770 #ifdef __cplusplus
30771 extern "C"
30772 {
30773 #endif
30774 /* We use char because int might match the return type of a gcc2
30775    builtin and then its argument prototype would still apply.  */
30776 char $ac_func ();
30777 /* The GNU C library defines this for functions which it implements
30778     to always fail with ENOSYS.  Some functions are actually named
30779     something starting with __ and the normal name is an alias.  */
30780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30781 choke me
30782 #else
30783 char (*f) () = $ac_func;
30784 #endif
30785 #ifdef __cplusplus
30786 }
30787 #endif
30788
30789 int
30790 main ()
30791 {
30792 return f != $ac_func;
30793   ;
30794   return 0;
30795 }
30796 _ACEOF
30797 rm -f conftest.$ac_objext conftest$ac_exeext
30798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30799   (eval $ac_link) 2>conftest.er1
30800   ac_status=$?
30801   grep -v '^ *+' conftest.er1 >conftest.err
30802   rm -f conftest.er1
30803   cat conftest.err >&5
30804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30805   (exit $ac_status); } &&
30806          { ac_try='test -z "$ac_c_werror_flag"
30807                          || test ! -s conftest.err'
30808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30809   (eval $ac_try) 2>&5
30810   ac_status=$?
30811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812   (exit $ac_status); }; } &&
30813          { ac_try='test -s conftest$ac_exeext'
30814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30815   (eval $ac_try) 2>&5
30816   ac_status=$?
30817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30818   (exit $ac_status); }; }; then
30819   eval "$as_ac_var=yes"
30820 else
30821   echo "$as_me: failed program was:" >&5
30822 sed 's/^/| /' conftest.$ac_ext >&5
30823
30824 eval "$as_ac_var=no"
30825 fi
30826 rm -f conftest.err conftest.$ac_objext \
30827       conftest$ac_exeext conftest.$ac_ext
30828 fi
30829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30831 if test `eval echo '${'$as_ac_var'}'` = yes; then
30832   cat >>confdefs.h <<_ACEOF
30833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30834 _ACEOF
30835
30836 fi
30837 done
30838
30839 echo "$as_me:$LINENO: checking for working mmap" >&5
30840 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30841 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30842   echo $ECHO_N "(cached) $ECHO_C" >&6
30843 else
30844   if test "$cross_compiling" = yes; then
30845   ac_cv_func_mmap_fixed_mapped=no
30846 else
30847   cat >conftest.$ac_ext <<_ACEOF
30848 /* confdefs.h.  */
30849 _ACEOF
30850 cat confdefs.h >>conftest.$ac_ext
30851 cat >>conftest.$ac_ext <<_ACEOF
30852 /* end confdefs.h.  */
30853 $ac_includes_default
30854 /* malloc might have been renamed as rpl_malloc. */
30855 #undef malloc
30856
30857 /* Thanks to Mike Haertel and Jim Avera for this test.
30858    Here is a matrix of mmap possibilities:
30859         mmap private not fixed
30860         mmap private fixed at somewhere currently unmapped
30861         mmap private fixed at somewhere already mapped
30862         mmap shared not fixed
30863         mmap shared fixed at somewhere currently unmapped
30864         mmap shared fixed at somewhere already mapped
30865    For private mappings, we should verify that changes cannot be read()
30866    back from the file, nor mmap's back from the file at a different
30867    address.  (There have been systems where private was not correctly
30868    implemented like the infamous i386 svr4.0, and systems where the
30869    VM page cache was not coherent with the file system buffer cache
30870    like early versions of FreeBSD and possibly contemporary NetBSD.)
30871    For shared mappings, we should conversely verify that changes get
30872    propagated back to all the places they're supposed to be.
30873
30874    Grep wants private fixed already mapped.
30875    The main things grep needs to know about mmap are:
30876    * does it exist and is it safe to write into the mmap'd area
30877    * how to use it (BSD variants)  */
30878
30879 #include <fcntl.h>
30880 #include <sys/mman.h>
30881
30882 #if !STDC_HEADERS && !HAVE_STDLIB_H
30883 char *malloc ();
30884 #endif
30885
30886 /* This mess was copied from the GNU getpagesize.h.  */
30887 #if !HAVE_GETPAGESIZE
30888 /* Assume that all systems that can run configure have sys/param.h.  */
30889 # if !HAVE_SYS_PARAM_H
30890 #  define HAVE_SYS_PARAM_H 1
30891 # endif
30892
30893 # ifdef _SC_PAGESIZE
30894 #  define getpagesize() sysconf(_SC_PAGESIZE)
30895 # else /* no _SC_PAGESIZE */
30896 #  if HAVE_SYS_PARAM_H
30897 #   include <sys/param.h>
30898 #   ifdef EXEC_PAGESIZE
30899 #    define getpagesize() EXEC_PAGESIZE
30900 #   else /* no EXEC_PAGESIZE */
30901 #    ifdef NBPG
30902 #     define getpagesize() NBPG * CLSIZE
30903 #     ifndef CLSIZE
30904 #      define CLSIZE 1
30905 #     endif /* no CLSIZE */
30906 #    else /* no NBPG */
30907 #     ifdef NBPC
30908 #      define getpagesize() NBPC
30909 #     else /* no NBPC */
30910 #      ifdef PAGESIZE
30911 #       define getpagesize() PAGESIZE
30912 #      endif /* PAGESIZE */
30913 #     endif /* no NBPC */
30914 #    endif /* no NBPG */
30915 #   endif /* no EXEC_PAGESIZE */
30916 #  else /* no HAVE_SYS_PARAM_H */
30917 #   define getpagesize() 8192   /* punt totally */
30918 #  endif /* no HAVE_SYS_PARAM_H */
30919 # endif /* no _SC_PAGESIZE */
30920
30921 #endif /* no HAVE_GETPAGESIZE */
30922
30923 int
30924 main ()
30925 {
30926   char *data, *data2, *data3;
30927   int i, pagesize;
30928   int fd;
30929
30930   pagesize = getpagesize ();
30931
30932   /* First, make a file with some known garbage in it. */
30933   data = (char *) malloc (pagesize);
30934   if (!data)
30935     exit (1);
30936   for (i = 0; i < pagesize; ++i)
30937     *(data + i) = rand ();
30938   umask (0);
30939   fd = creat ("conftest.mmap", 0600);
30940   if (fd < 0)
30941     exit (1);
30942   if (write (fd, data, pagesize) != pagesize)
30943     exit (1);
30944   close (fd);
30945
30946   /* Next, try to mmap the file at a fixed address which already has
30947      something else allocated at it.  If we can, also make sure that
30948      we see the same garbage.  */
30949   fd = open ("conftest.mmap", O_RDWR);
30950   if (fd < 0)
30951     exit (1);
30952   data2 = (char *) malloc (2 * pagesize);
30953   if (!data2)
30954     exit (1);
30955   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30956   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30957                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
30958     exit (1);
30959   for (i = 0; i < pagesize; ++i)
30960     if (*(data + i) != *(data2 + i))
30961       exit (1);
30962
30963   /* Finally, make sure that changes to the mapped area do not
30964      percolate back to the file as seen by read().  (This is a bug on
30965      some variants of i386 svr4.0.)  */
30966   for (i = 0; i < pagesize; ++i)
30967     *(data2 + i) = *(data2 + i) + 1;
30968   data3 = (char *) malloc (pagesize);
30969   if (!data3)
30970     exit (1);
30971   if (read (fd, data3, pagesize) != pagesize)
30972     exit (1);
30973   for (i = 0; i < pagesize; ++i)
30974     if (*(data + i) != *(data3 + i))
30975       exit (1);
30976   close (fd);
30977   exit (0);
30978 }
30979 _ACEOF
30980 rm -f conftest$ac_exeext
30981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30982   (eval $ac_link) 2>&5
30983   ac_status=$?
30984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30985   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30987   (eval $ac_try) 2>&5
30988   ac_status=$?
30989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990   (exit $ac_status); }; }; then
30991   ac_cv_func_mmap_fixed_mapped=yes
30992 else
30993   echo "$as_me: program exited with status $ac_status" >&5
30994 echo "$as_me: failed program was:" >&5
30995 sed 's/^/| /' conftest.$ac_ext >&5
30996
30997 ( exit $ac_status )
30998 ac_cv_func_mmap_fixed_mapped=no
30999 fi
31000 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31001 fi
31002 fi
31003 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31004 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
31005 if test $ac_cv_func_mmap_fixed_mapped = yes; then
31006
31007 cat >>confdefs.h <<\_ACEOF
31008 #define HAVE_MMAP 1
31009 _ACEOF
31010
31011 fi
31012 rm -f conftest.mmap
31013
31014 echo "$as_me:$LINENO: checking for mmap of files" >&5
31015 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
31016 if test "${ac_cv_func_mmap_file+set}" = set; then
31017   echo $ECHO_N "(cached) $ECHO_C" >&6
31018 else
31019    ac_ext=c
31020 ac_cpp='$CPP $CPPFLAGS'
31021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31024
31025   if test "$cross_compiling" = yes; then
31026   ac_cv_func_mmap_file=no
31027 else
31028   cat >conftest.$ac_ext <<_ACEOF
31029
31030     /* confdefs.h.  */
31031 _ACEOF
31032 cat confdefs.h >>conftest.$ac_ext
31033 cat >>conftest.$ac_ext <<_ACEOF
31034 /* end confdefs.h.  */
31035
31036 #include <sys/types.h>
31037 #include <sys/mman.h>
31038 #include <fcntl.h>
31039
31040 int
31041 main ()
31042 {
31043
31044   int fd;
31045   fd = creat ("foo",0777);
31046   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31047   unlink ("foo");
31048   return (fd != (int) MAP_FAILED);
31049   ;
31050   return 0;
31051 }
31052 _ACEOF
31053 rm -f conftest$ac_exeext
31054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31055   (eval $ac_link) 2>&5
31056   ac_status=$?
31057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31060   (eval $ac_try) 2>&5
31061   ac_status=$?
31062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063   (exit $ac_status); }; }; then
31064   ac_cv_func_mmap_file=yes
31065 else
31066   echo "$as_me: program exited with status $ac_status" >&5
31067 echo "$as_me: failed program was:" >&5
31068 sed 's/^/| /' conftest.$ac_ext >&5
31069
31070 ( exit $ac_status )
31071 ac_cv_func_mmap_file=no
31072 fi
31073 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31074 fi
31075   ac_ext=c
31076 ac_cpp='$CPP $CPPFLAGS'
31077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31080
31081
31082 fi
31083 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31084 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
31085 if test "$ac_cv_func_mmap_file" = yes; then
31086
31087 cat >>confdefs.h <<\_ACEOF
31088 #define HAVE_MMAP_FILE
31089 _ACEOF
31090
31091    MMAP_FILE=yes
31092
31093 fi
31094
31095 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
31096 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
31097 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31098   echo $ECHO_N "(cached) $ECHO_C" >&6
31099 else
31100   if test "$llvm_cv_os_type" = "Interix" ; then
31101    ac_cv_need_dev_zero_for_mmap=yes
31102  else
31103    ac_cv_need_dev_zero_for_mmap=no
31104  fi
31105
31106 fi
31107 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31108 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
31109 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31110
31111 cat >>confdefs.h <<\_ACEOF
31112 #define NEED_DEV_ZERO_FOR_MMAP 1
31113 _ACEOF
31114
31115 fi
31116 echo "$as_me:$LINENO: checking for mprotect" >&5
31117 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
31118 if test "${ac_cv_func_mprotect+set}" = set; then
31119   echo $ECHO_N "(cached) $ECHO_C" >&6
31120 else
31121   cat >conftest.$ac_ext <<_ACEOF
31122 /* confdefs.h.  */
31123 _ACEOF
31124 cat confdefs.h >>conftest.$ac_ext
31125 cat >>conftest.$ac_ext <<_ACEOF
31126 /* end confdefs.h.  */
31127 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
31128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31129 #define mprotect innocuous_mprotect
31130
31131 /* System header to define __stub macros and hopefully few prototypes,
31132     which can conflict with char mprotect (); below.
31133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31134     <limits.h> exists even on freestanding compilers.  */
31135
31136 #ifdef __STDC__
31137 # include <limits.h>
31138 #else
31139 # include <assert.h>
31140 #endif
31141
31142 #undef mprotect
31143
31144 /* Override any gcc2 internal prototype to avoid an error.  */
31145 #ifdef __cplusplus
31146 extern "C"
31147 {
31148 #endif
31149 /* We use char because int might match the return type of a gcc2
31150    builtin and then its argument prototype would still apply.  */
31151 char mprotect ();
31152 /* The GNU C library defines this for functions which it implements
31153     to always fail with ENOSYS.  Some functions are actually named
31154     something starting with __ and the normal name is an alias.  */
31155 #if defined (__stub_mprotect) || defined (__stub___mprotect)
31156 choke me
31157 #else
31158 char (*f) () = mprotect;
31159 #endif
31160 #ifdef __cplusplus
31161 }
31162 #endif
31163
31164 int
31165 main ()
31166 {
31167 return f != mprotect;
31168   ;
31169   return 0;
31170 }
31171 _ACEOF
31172 rm -f conftest.$ac_objext conftest$ac_exeext
31173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31174   (eval $ac_link) 2>conftest.er1
31175   ac_status=$?
31176   grep -v '^ *+' conftest.er1 >conftest.err
31177   rm -f conftest.er1
31178   cat conftest.err >&5
31179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31180   (exit $ac_status); } &&
31181          { ac_try='test -z "$ac_c_werror_flag"
31182                          || test ! -s conftest.err'
31183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31184   (eval $ac_try) 2>&5
31185   ac_status=$?
31186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31187   (exit $ac_status); }; } &&
31188          { ac_try='test -s conftest$ac_exeext'
31189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31190   (eval $ac_try) 2>&5
31191   ac_status=$?
31192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193   (exit $ac_status); }; }; then
31194   ac_cv_func_mprotect=yes
31195 else
31196   echo "$as_me: failed program was:" >&5
31197 sed 's/^/| /' conftest.$ac_ext >&5
31198
31199 ac_cv_func_mprotect=no
31200 fi
31201 rm -f conftest.err conftest.$ac_objext \
31202       conftest$ac_exeext conftest.$ac_ext
31203 fi
31204 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
31205 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
31206 if test $ac_cv_func_mprotect = yes; then
31207   :
31208 else
31209   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
31210 echo "$as_me: error: Function mprotect() required but not found" >&2;}
31211    { (exit 1); exit 1; }; }
31212 fi
31213
31214
31215 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31216 then
31217   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31218 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
31219 fi
31220 if test "$ac_cv_func_mmap_file" = "no"
31221 then
31222   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31223 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
31224 fi
31225
31226
31227 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31228 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
31229 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31230   echo $ECHO_N "(cached) $ECHO_C" >&6
31231 else
31232   llvm_cv_llvmgcc_sanity="no"
31233 if test -x "$LLVMGCC" ; then
31234   cp /dev/null conftest.c
31235   "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
31236   if test $? -eq 0 ; then
31237     llvm_cv_llvmgcc_sanity="yes"
31238   fi
31239   rm conftest.c
31240 fi
31241 fi
31242 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31243 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
31244
31245 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31246   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
31247   LLVMCC1=$llvmcc1path
31248
31249   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
31250   LLVMCC1PLUS=$llvmcc1pluspath
31251
31252   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31253   LLVMGCCDIR=$llvmgccdir
31254
31255   llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
31256   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31257   LLVMGCC_VERSION=$llvmgccversion
31258
31259   LLVMGCC_MAJVERS=$llvmgccmajvers
31260
31261 fi
31262
31263 SHLIBEXT=$libltdl_cv_shlibext
31264
31265
31266 # Translate the various configuration directories and other basic
31267 # information into substitutions that will end up in Makefile.config.in
31268 # that these configured values can be used by the makefiles
31269 if test "${prefix}" == "NONE" ; then
31270   prefix="/usr/local"
31271 fi
31272 eval LLVM_PREFIX="${prefix}";
31273 eval LLVM_BINDIR="${prefix}/bin";
31274 eval LLVM_LIBDIR="${prefix}/lib";
31275 eval LLVM_DATADIR="${prefix}/share/llvm";
31276 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31277 eval LLVM_ETCDIR="${prefix}/etc/llvm";
31278 eval LLVM_INCLUDEDIR="${prefix}/include";
31279 eval LLVM_INFODIR="${prefix}/info";
31280 eval LLVM_MANDIR="${prefix}/man";
31281 LLVM_CONFIGTIME=`date`
31282
31283
31284
31285
31286
31287
31288
31289
31290
31291
31292
31293 # Place the various directores into the config.h file as #defines so that we
31294 # can know about the installation paths within LLVM.
31295
31296 cat >>confdefs.h <<_ACEOF
31297 #define LLVM_PREFIX "$LLVM_PREFIX"
31298 _ACEOF
31299
31300
31301 cat >>confdefs.h <<_ACEOF
31302 #define LLVM_BINDIR "$LLVM_BINDIR"
31303 _ACEOF
31304
31305
31306 cat >>confdefs.h <<_ACEOF
31307 #define LLVM_LIBDIR "$LLVM_LIBDIR"
31308 _ACEOF
31309
31310
31311 cat >>confdefs.h <<_ACEOF
31312 #define LLVM_DATADIR "$LLVM_DATADIR"
31313 _ACEOF
31314
31315
31316 cat >>confdefs.h <<_ACEOF
31317 #define LLVM_DATADIR "$LLVM_DOCSDIR"
31318 _ACEOF
31319
31320
31321 cat >>confdefs.h <<_ACEOF
31322 #define LLVM_ETCDIR "$LLVM_ETCDIR"
31323 _ACEOF
31324
31325
31326 cat >>confdefs.h <<_ACEOF
31327 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31328 _ACEOF
31329
31330
31331 cat >>confdefs.h <<_ACEOF
31332 #define LLVM_INFODIR "$LLVM_INFODIR"
31333 _ACEOF
31334
31335
31336 cat >>confdefs.h <<_ACEOF
31337 #define LLVM_MANDIR "$LLVM_MANDIR"
31338 _ACEOF
31339
31340
31341 cat >>confdefs.h <<_ACEOF
31342 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31343 _ACEOF
31344
31345
31346
31347           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31348
31349           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31350
31351           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31352
31353           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31354
31355           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31356
31357
31358           ac_config_files="$ac_config_files Makefile.config"
31359
31360
31361           ac_config_files="$ac_config_files docs/doxygen.cfg"
31362
31363
31364           ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
31365
31366
31367           ac_config_commands="$ac_config_commands setup"
31368
31369           ac_config_commands="$ac_config_commands Makefile"
31370
31371
31372           ac_config_commands="$ac_config_commands Makefile.common"
31373
31374
31375           ac_config_commands="$ac_config_commands examples/Makefile"
31376
31377
31378           ac_config_commands="$ac_config_commands lib/Makefile"
31379
31380
31381           ac_config_commands="$ac_config_commands runtime/Makefile"
31382
31383
31384           ac_config_commands="$ac_config_commands test/Makefile"
31385
31386
31387           ac_config_commands="$ac_config_commands test/Makefile.tests"
31388
31389
31390           ac_config_commands="$ac_config_commands tools/Makefile"
31391
31392
31393           ac_config_commands="$ac_config_commands utils/Makefile"
31394
31395
31396           ac_config_commands="$ac_config_commands projects/Makefile"
31397
31398
31399
31400 cat >confcache <<\_ACEOF
31401 # This file is a shell script that caches the results of configure
31402 # tests run on this system so they can be shared between configure
31403 # scripts and configure runs, see configure's option --config-cache.
31404 # It is not useful on other systems.  If it contains results you don't
31405 # want to keep, you may remove or edit it.
31406 #
31407 # config.status only pays attention to the cache file if you give it
31408 # the --recheck option to rerun configure.
31409 #
31410 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31411 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31412 # following values.
31413
31414 _ACEOF
31415
31416 # The following way of writing the cache mishandles newlines in values,
31417 # but we know of no workaround that is simple, portable, and efficient.
31418 # So, don't put newlines in cache variables' values.
31419 # Ultrix sh set writes to stderr and can't be redirected directly,
31420 # and sets the high bit in the cache file unless we assign to the vars.
31421 {
31422   (set) 2>&1 |
31423     case `(ac_space=' '; set | grep ac_space) 2>&1` in
31424     *ac_space=\ *)
31425       # `set' does not quote correctly, so add quotes (double-quote
31426       # substitution turns \\\\ into \\, and sed turns \\ into \).
31427       sed -n \
31428         "s/'/'\\\\''/g;
31429           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31430       ;;
31431     *)
31432       # `set' quotes correctly as required by POSIX, so do not add quotes.
31433       sed -n \
31434         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31435       ;;
31436     esac;
31437 } |
31438   sed '
31439      t clear
31440      : clear
31441      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31442      t end
31443      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31444      : end' >>confcache
31445 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31446   if test -w $cache_file; then
31447     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31448     cat confcache >$cache_file
31449   else
31450     echo "not updating unwritable cache $cache_file"
31451   fi
31452 fi
31453 rm -f confcache
31454
31455 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31456 # Let make expand exec_prefix.
31457 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31458
31459 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31460 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31461 # trailing colons and then remove the whole line if VPATH becomes empty
31462 # (actually we leave an empty line to preserve line numbers).
31463 if test "x$srcdir" = x.; then
31464   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31465 s/:*\$(srcdir):*/:/;
31466 s/:*\${srcdir}:*/:/;
31467 s/:*@srcdir@:*/:/;
31468 s/^\([^=]*=[     ]*\):*/\1/;
31469 s/:*$//;
31470 s/^[^=]*=[       ]*$//;
31471 }'
31472 fi
31473
31474 DEFS=-DHAVE_CONFIG_H
31475
31476 ac_libobjs=
31477 ac_ltlibobjs=
31478 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31479   # 1. Remove the extension, and $U if already installed.
31480   ac_i=`echo "$ac_i" |
31481          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31482   # 2. Add them.
31483   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31484   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31485 done
31486 LIBOBJS=$ac_libobjs
31487
31488 LTLIBOBJS=$ac_ltlibobjs
31489
31490
31491 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31492   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
31493 Usually this means the macro was only invoked conditionally." >&5
31494 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
31495 Usually this means the macro was only invoked conditionally." >&2;}
31496    { (exit 1); exit 1; }; }
31497 fi
31498 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31499   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31500 Usually this means the macro was only invoked conditionally." >&5
31501 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
31502 Usually this means the macro was only invoked conditionally." >&2;}
31503    { (exit 1); exit 1; }; }
31504 fi
31505
31506 : ${CONFIG_STATUS=./config.status}
31507 ac_clean_files_save=$ac_clean_files
31508 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31509 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31510 echo "$as_me: creating $CONFIG_STATUS" >&6;}
31511 cat >$CONFIG_STATUS <<_ACEOF
31512 #! $SHELL
31513 # Generated by $as_me.
31514 # Run this file to recreate the current configuration.
31515 # Compiler output produced by configure, useful for debugging
31516 # configure, is in config.log if it exists.
31517
31518 debug=false
31519 ac_cs_recheck=false
31520 ac_cs_silent=false
31521 SHELL=\${CONFIG_SHELL-$SHELL}
31522 _ACEOF
31523
31524 cat >>$CONFIG_STATUS <<\_ACEOF
31525 ## --------------------- ##
31526 ## M4sh Initialization.  ##
31527 ## --------------------- ##
31528
31529 # Be Bourne compatible
31530 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31531   emulate sh
31532   NULLCMD=:
31533   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31534   # is contrary to our usage.  Disable this feature.
31535   alias -g '${1+"$@"}'='"$@"'
31536 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31537   set -o posix
31538 fi
31539 DUALCASE=1; export DUALCASE # for MKS sh
31540
31541 # Support unset when possible.
31542 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31543   as_unset=unset
31544 else
31545   as_unset=false
31546 fi
31547
31548
31549 # Work around bugs in pre-3.0 UWIN ksh.
31550 $as_unset ENV MAIL MAILPATH
31551 PS1='$ '
31552 PS2='> '
31553 PS4='+ '
31554
31555 # NLS nuisances.
31556 for as_var in \
31557   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31558   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31559   LC_TELEPHONE LC_TIME
31560 do
31561   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31562     eval $as_var=C; export $as_var
31563   else
31564     $as_unset $as_var
31565   fi
31566 done
31567
31568 # Required to use basename.
31569 if expr a : '\(a\)' >/dev/null 2>&1; then
31570   as_expr=expr
31571 else
31572   as_expr=false
31573 fi
31574
31575 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31576   as_basename=basename
31577 else
31578   as_basename=false
31579 fi
31580
31581
31582 # Name of the executable.
31583 as_me=`$as_basename "$0" ||
31584 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31585          X"$0" : 'X\(//\)$' \| \
31586          X"$0" : 'X\(/\)$' \| \
31587          .     : '\(.\)' 2>/dev/null ||
31588 echo X/"$0" |
31589     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31590           /^X\/\(\/\/\)$/{ s//\1/; q; }
31591           /^X\/\(\/\).*/{ s//\1/; q; }
31592           s/.*/./; q'`
31593
31594
31595 # PATH needs CR, and LINENO needs CR and PATH.
31596 # Avoid depending upon Character Ranges.
31597 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31598 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31599 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31600 as_cr_digits='0123456789'
31601 as_cr_alnum=$as_cr_Letters$as_cr_digits
31602
31603 # The user is always right.
31604 if test "${PATH_SEPARATOR+set}" != set; then
31605   echo "#! /bin/sh" >conf$$.sh
31606   echo  "exit 0"   >>conf$$.sh
31607   chmod +x conf$$.sh
31608   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31609     PATH_SEPARATOR=';'
31610   else
31611     PATH_SEPARATOR=:
31612   fi
31613   rm -f conf$$.sh
31614 fi
31615
31616
31617   as_lineno_1=$LINENO
31618   as_lineno_2=$LINENO
31619   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31620   test "x$as_lineno_1" != "x$as_lineno_2" &&
31621   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
31622   # Find who we are.  Look in the path if we contain no path at all
31623   # relative or not.
31624   case $0 in
31625     *[\\/]* ) as_myself=$0 ;;
31626     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31627 for as_dir in $PATH
31628 do
31629   IFS=$as_save_IFS
31630   test -z "$as_dir" && as_dir=.
31631   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31632 done
31633
31634        ;;
31635   esac
31636   # We did not find ourselves, most probably we were run as `sh COMMAND'
31637   # in which case we are not to be found in the path.
31638   if test "x$as_myself" = x; then
31639     as_myself=$0
31640   fi
31641   if test ! -f "$as_myself"; then
31642     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31643 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31644    { (exit 1); exit 1; }; }
31645   fi
31646   case $CONFIG_SHELL in
31647   '')
31648     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31649 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31650 do
31651   IFS=$as_save_IFS
31652   test -z "$as_dir" && as_dir=.
31653   for as_base in sh bash ksh sh5; do
31654          case $as_dir in
31655          /*)
31656            if ("$as_dir/$as_base" -c '
31657   as_lineno_1=$LINENO
31658   as_lineno_2=$LINENO
31659   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31660   test "x$as_lineno_1" != "x$as_lineno_2" &&
31661   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
31662              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31663              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31664              CONFIG_SHELL=$as_dir/$as_base
31665              export CONFIG_SHELL
31666              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31667            fi;;
31668          esac
31669        done
31670 done
31671 ;;
31672   esac
31673
31674   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31675   # uniformly replaced by the line number.  The first 'sed' inserts a
31676   # line-number line before each line; the second 'sed' does the real
31677   # work.  The second script uses 'N' to pair each line-number line
31678   # with the numbered line, and appends trailing '-' during
31679   # substitution so that $LINENO is not a special case at line end.
31680   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31681   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
31682   sed '=' <$as_myself |
31683     sed '
31684       N
31685       s,$,-,
31686       : loop
31687       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31688       t loop
31689       s,-$,,
31690       s,^['$as_cr_digits']*\n,,
31691     ' >$as_me.lineno &&
31692   chmod +x $as_me.lineno ||
31693     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31694 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31695    { (exit 1); exit 1; }; }
31696
31697   # Don't try to exec as it changes $[0], causing all sort of problems
31698   # (the dirname of $[0] is not the place where we might find the
31699   # original and so on.  Autoconf is especially sensible to this).
31700   . ./$as_me.lineno
31701   # Exit status is that of the last command.
31702   exit
31703 }
31704
31705
31706 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31707   *c*,-n*) ECHO_N= ECHO_C='
31708 ' ECHO_T='      ' ;;
31709   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31710   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
31711 esac
31712
31713 if expr a : '\(a\)' >/dev/null 2>&1; then
31714   as_expr=expr
31715 else
31716   as_expr=false
31717 fi
31718
31719 rm -f conf$$ conf$$.exe conf$$.file
31720 echo >conf$$.file
31721 if ln -s conf$$.file conf$$ 2>/dev/null; then
31722   # We could just check for DJGPP; but this test a) works b) is more generic
31723   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31724   if test -f conf$$.exe; then
31725     # Don't use ln at all; we don't have any links
31726     as_ln_s='cp -p'
31727   else
31728     as_ln_s='ln -s'
31729   fi
31730 elif ln conf$$.file conf$$ 2>/dev/null; then
31731   as_ln_s=ln
31732 else
31733   as_ln_s='cp -p'
31734 fi
31735 rm -f conf$$ conf$$.exe conf$$.file
31736
31737 if mkdir -p . 2>/dev/null; then
31738   as_mkdir_p=:
31739 else
31740   test -d ./-p && rmdir ./-p
31741   as_mkdir_p=false
31742 fi
31743
31744 as_executable_p="test -f"
31745
31746 # Sed expression to map a string onto a valid CPP name.
31747 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31748
31749 # Sed expression to map a string onto a valid variable name.
31750 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31751
31752
31753 # IFS
31754 # We need space, tab and new line, in precisely that order.
31755 as_nl='
31756 '
31757 IFS="   $as_nl"
31758
31759 # CDPATH.
31760 $as_unset CDPATH
31761
31762 exec 6>&1
31763
31764 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31765 # report actual input values of CONFIG_FILES etc. instead of their
31766 # values after options handling.  Logging --version etc. is OK.
31767 exec 5>>config.log
31768 {
31769   echo
31770   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31771 ## Running $as_me. ##
31772 _ASBOX
31773 } >&5
31774 cat >&5 <<_CSEOF
31775
31776 This file was extended by llvm $as_me 1.8cvs, which was
31777 generated by GNU Autoconf 2.59.  Invocation command line was
31778
31779   CONFIG_FILES    = $CONFIG_FILES
31780   CONFIG_HEADERS  = $CONFIG_HEADERS
31781   CONFIG_LINKS    = $CONFIG_LINKS
31782   CONFIG_COMMANDS = $CONFIG_COMMANDS
31783   $ $0 $@
31784
31785 _CSEOF
31786 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31787 echo >&5
31788 _ACEOF
31789
31790 # Files that config.status was made for.
31791 if test -n "$ac_config_files"; then
31792   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31793 fi
31794
31795 if test -n "$ac_config_headers"; then
31796   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31797 fi
31798
31799 if test -n "$ac_config_links"; then
31800   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31801 fi
31802
31803 if test -n "$ac_config_commands"; then
31804   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31805 fi
31806
31807 cat >>$CONFIG_STATUS <<\_ACEOF
31808
31809 ac_cs_usage="\
31810 \`$as_me' instantiates files from templates according to the
31811 current configuration.
31812
31813 Usage: $0 [OPTIONS] [FILE]...
31814
31815   -h, --help       print this help, then exit
31816   -V, --version    print version number, then exit
31817   -q, --quiet      do not print progress messages
31818   -d, --debug      don't remove temporary files
31819       --recheck    update $as_me by reconfiguring in the same conditions
31820   --file=FILE[:TEMPLATE]
31821                    instantiate the configuration file FILE
31822   --header=FILE[:TEMPLATE]
31823                    instantiate the configuration header FILE
31824
31825 Configuration files:
31826 $config_files
31827
31828 Configuration headers:
31829 $config_headers
31830
31831 Configuration commands:
31832 $config_commands
31833
31834 Report bugs to <bug-autoconf@gnu.org>."
31835 _ACEOF
31836
31837 cat >>$CONFIG_STATUS <<_ACEOF
31838 ac_cs_version="\\
31839 llvm config.status 1.8cvs
31840 configured by $0, generated by GNU Autoconf 2.59,
31841   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31842
31843 Copyright (C) 2003 Free Software Foundation, Inc.
31844 This config.status script is free software; the Free Software Foundation
31845 gives unlimited permission to copy, distribute and modify it."
31846 srcdir=$srcdir
31847 INSTALL="$INSTALL"
31848 _ACEOF
31849
31850 cat >>$CONFIG_STATUS <<\_ACEOF
31851 # If no file are specified by the user, then we need to provide default
31852 # value.  By we need to know if files were specified by the user.
31853 ac_need_defaults=:
31854 while test $# != 0
31855 do
31856   case $1 in
31857   --*=*)
31858     ac_option=`expr "x$1" : 'x\([^=]*\)='`
31859     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31860     ac_shift=:
31861     ;;
31862   -*)
31863     ac_option=$1
31864     ac_optarg=$2
31865     ac_shift=shift
31866     ;;
31867   *) # This is not an option, so the user has probably given explicit
31868      # arguments.
31869      ac_option=$1
31870      ac_need_defaults=false;;
31871   esac
31872
31873   case $ac_option in
31874   # Handling of the options.
31875 _ACEOF
31876 cat >>$CONFIG_STATUS <<\_ACEOF
31877   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31878     ac_cs_recheck=: ;;
31879   --version | --vers* | -V )
31880     echo "$ac_cs_version"; exit 0 ;;
31881   --he | --h)
31882     # Conflict between --help and --header
31883     { { echo "$as_me:$LINENO: error: ambiguous option: $1
31884 Try \`$0 --help' for more information." >&5
31885 echo "$as_me: error: ambiguous option: $1
31886 Try \`$0 --help' for more information." >&2;}
31887    { (exit 1); exit 1; }; };;
31888   --help | --hel | -h )
31889     echo "$ac_cs_usage"; exit 0 ;;
31890   --debug | --d* | -d )
31891     debug=: ;;
31892   --file | --fil | --fi | --f )
31893     $ac_shift
31894     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31895     ac_need_defaults=false;;
31896   --header | --heade | --head | --hea )
31897     $ac_shift
31898     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31899     ac_need_defaults=false;;
31900   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31901   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31902     ac_cs_silent=: ;;
31903
31904   # This is an error.
31905   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31906 Try \`$0 --help' for more information." >&5
31907 echo "$as_me: error: unrecognized option: $1
31908 Try \`$0 --help' for more information." >&2;}
31909    { (exit 1); exit 1; }; } ;;
31910
31911   *) ac_config_targets="$ac_config_targets $1" ;;
31912
31913   esac
31914   shift
31915 done
31916
31917 ac_configure_extra_args=
31918
31919 if $ac_cs_silent; then
31920   exec 6>/dev/null
31921   ac_configure_extra_args="$ac_configure_extra_args --silent"
31922 fi
31923
31924 _ACEOF
31925 cat >>$CONFIG_STATUS <<_ACEOF
31926 if \$ac_cs_recheck; then
31927   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31928   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31929 fi
31930
31931 _ACEOF
31932
31933 cat >>$CONFIG_STATUS <<_ACEOF
31934 #
31935 # INIT-COMMANDS section.
31936 #
31937
31938 llvm_src="${srcdir}"
31939
31940 _ACEOF
31941
31942
31943
31944 cat >>$CONFIG_STATUS <<\_ACEOF
31945 for ac_config_target in $ac_config_targets
31946 do
31947   case "$ac_config_target" in
31948   # Handling of arguments.
31949   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31950   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31951   "tools/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
31952   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31953   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31954   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31955   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31956   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31957   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31958   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31959   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31960   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31961   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31962   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31963   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31964   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31965   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31966   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31967   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31968   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31969 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31970    { (exit 1); exit 1; }; };;
31971   esac
31972 done
31973
31974 # If the user did not use the arguments to specify the items to instantiate,
31975 # then the envvar interface is used.  Set only those that are not.
31976 # We use the long form for the default assignment because of an extremely
31977 # bizarre bug on SunOS 4.1.3.
31978 if $ac_need_defaults; then
31979   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31980   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31981   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31982 fi
31983
31984 # Have a temporary directory for convenience.  Make it in the build tree
31985 # simply because there is no reason to put it here, and in addition,
31986 # creating and moving files from /tmp can sometimes cause problems.
31987 # Create a temporary directory, and hook for its removal unless debugging.
31988 $debug ||
31989 {
31990   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31991   trap '{ (exit 1); exit 1; }' 1 2 13 15
31992 }
31993
31994 # Create a (secure) tmp directory for tmp files.
31995
31996 {
31997   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31998   test -n "$tmp" && test -d "$tmp"
31999 }  ||
32000 {
32001   tmp=./confstat$$-$RANDOM
32002   (umask 077 && mkdir $tmp)
32003 } ||
32004 {
32005    echo "$me: cannot create a temporary directory in ." >&2
32006    { (exit 1); exit 1; }
32007 }
32008
32009 _ACEOF
32010
32011 cat >>$CONFIG_STATUS <<_ACEOF
32012
32013 #
32014 # CONFIG_FILES section.
32015 #
32016
32017 # No need to generate the scripts if there are no CONFIG_FILES.
32018 # This happens for instance when ./config.status config.h
32019 if test -n "\$CONFIG_FILES"; then
32020   # Protect against being on the right side of a sed subst in config.status.
32021   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
32022    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
32023 s,@SHELL@,$SHELL,;t t
32024 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
32025 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
32026 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
32027 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
32028 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
32029 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
32030 s,@exec_prefix@,$exec_prefix,;t t
32031 s,@prefix@,$prefix,;t t
32032 s,@program_transform_name@,$program_transform_name,;t t
32033 s,@bindir@,$bindir,;t t
32034 s,@sbindir@,$sbindir,;t t
32035 s,@libexecdir@,$libexecdir,;t t
32036 s,@datadir@,$datadir,;t t
32037 s,@sysconfdir@,$sysconfdir,;t t
32038 s,@sharedstatedir@,$sharedstatedir,;t t
32039 s,@localstatedir@,$localstatedir,;t t
32040 s,@libdir@,$libdir,;t t
32041 s,@includedir@,$includedir,;t t
32042 s,@oldincludedir@,$oldincludedir,;t t
32043 s,@infodir@,$infodir,;t t
32044 s,@mandir@,$mandir,;t t
32045 s,@build_alias@,$build_alias,;t t
32046 s,@host_alias@,$host_alias,;t t
32047 s,@target_alias@,$target_alias,;t t
32048 s,@DEFS@,$DEFS,;t t
32049 s,@ECHO_C@,$ECHO_C,;t t
32050 s,@ECHO_N@,$ECHO_N,;t t
32051 s,@ECHO_T@,$ECHO_T,;t t
32052 s,@LIBS@,$LIBS,;t t
32053 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
32054 s,@subdirs@,$subdirs,;t t
32055 s,@build@,$build,;t t
32056 s,@build_cpu@,$build_cpu,;t t
32057 s,@build_vendor@,$build_vendor,;t t
32058 s,@build_os@,$build_os,;t t
32059 s,@host@,$host,;t t
32060 s,@host_cpu@,$host_cpu,;t t
32061 s,@host_vendor@,$host_vendor,;t t
32062 s,@host_os@,$host_os,;t t
32063 s,@target@,$target,;t t
32064 s,@target_cpu@,$target_cpu,;t t
32065 s,@target_vendor@,$target_vendor,;t t
32066 s,@target_os@,$target_os,;t t
32067 s,@OS@,$OS,;t t
32068 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
32069 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
32070 s,@ARCH@,$ARCH,;t t
32071 s,@ENDIAN@,$ENDIAN,;t t
32072 s,@CC@,$CC,;t t
32073 s,@CFLAGS@,$CFLAGS,;t t
32074 s,@LDFLAGS@,$LDFLAGS,;t t
32075 s,@CPPFLAGS@,$CPPFLAGS,;t t
32076 s,@ac_ct_CC@,$ac_ct_CC,;t t
32077 s,@EXEEXT@,$EXEEXT,;t t
32078 s,@OBJEXT@,$OBJEXT,;t t
32079 s,@LLVM_CROSS_COMPILING@,$LLVM_CROSS_COMPILING,;t t
32080 s,@BUILD_CC@,$BUILD_CC,;t t
32081 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
32082 s,@CVSBUILD@,$CVSBUILD,;t t
32083 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
32084 s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
32085 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
32086 s,@JIT@,$JIT,;t t
32087 s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
32088 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
32089 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
32090 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
32091 s,@EXTRA_OPTIONS@,$EXTRA_OPTIONS,;t t
32092 s,@CPP@,$CPP,;t t
32093 s,@CXX@,$CXX,;t t
32094 s,@CXXFLAGS@,$CXXFLAGS,;t t
32095 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
32096 s,@LEX@,$LEX,;t t
32097 s,@LEXLIB@,$LEXLIB,;t t
32098 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
32099 s,@FLEX@,$FLEX,;t t
32100 s,@YACC@,$YACC,;t t
32101 s,@BISON@,$BISON,;t t
32102 s,@ifGNUmake@,$ifGNUmake,;t t
32103 s,@LN_S@,$LN_S,;t t
32104 s,@CMP@,$CMP,;t t
32105 s,@CP@,$CP,;t t
32106 s,@DATE@,$DATE,;t t
32107 s,@FIND@,$FIND,;t t
32108 s,@GREP@,$GREP,;t t
32109 s,@MKDIR@,$MKDIR,;t t
32110 s,@MV@,$MV,;t t
32111 s,@RANLIB@,$RANLIB,;t t
32112 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
32113 s,@RM@,$RM,;t t
32114 s,@SED@,$SED,;t t
32115 s,@TAR@,$TAR,;t t
32116 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
32117 s,@DOT@,$DOT,;t t
32118 s,@GV@,$GV,;t t
32119 s,@DOTTY@,$DOTTY,;t t
32120 s,@PERL@,$PERL,;t t
32121 s,@HAVE_PERL@,$HAVE_PERL,;t t
32122 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
32123 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
32124 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
32125 s,@BZIP2@,$BZIP2,;t t
32126 s,@DOXYGEN@,$DOXYGEN,;t t
32127 s,@ETAGS@,$ETAGS,;t t
32128 s,@GROFF@,$GROFF,;t t
32129 s,@GZIP@,$GZIP,;t t
32130 s,@POD2HTML@,$POD2HTML,;t t
32131 s,@POD2MAN@,$POD2MAN,;t t
32132 s,@RUNTEST@,$RUNTEST,;t t
32133 s,@TCLSH@,$TCLSH,;t t
32134 s,@ZIP@,$ZIP,;t t
32135 s,@EGREP@,$EGREP,;t t
32136 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
32137 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
32138 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
32139 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
32140 s,@LIBADD_DL@,$LIBADD_DL,;t t
32141 s,@ECHO@,$ECHO,;t t
32142 s,@AR@,$AR,;t t
32143 s,@ac_ct_AR@,$ac_ct_AR,;t t
32144 s,@STRIP@,$STRIP,;t t
32145 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
32146 s,@CXXCPP@,$CXXCPP,;t t
32147 s,@F77@,$F77,;t t
32148 s,@FFLAGS@,$FFLAGS,;t t
32149 s,@ac_ct_F77@,$ac_ct_F77,;t t
32150 s,@LIBTOOL@,$LIBTOOL,;t t
32151 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
32152 s,@LLVMGCC@,$LLVMGCC,;t t
32153 s,@LLVMGXX@,$LLVMGXX,;t t
32154 s,@ALLOCA@,$ALLOCA,;t t
32155 s,@MMAP_FILE@,$MMAP_FILE,;t t
32156 s,@LLVMCC1@,$LLVMCC1,;t t
32157 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
32158 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
32159 s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
32160 s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
32161 s,@SHLIBEXT@,$SHLIBEXT,;t t
32162 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
32163 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
32164 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
32165 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
32166 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
32167 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
32168 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
32169 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
32170 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
32171 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
32172 s,@LIBOBJS@,$LIBOBJS,;t t
32173 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
32174 CEOF
32175
32176 _ACEOF
32177
32178   cat >>$CONFIG_STATUS <<\_ACEOF
32179   # Split the substitutions into bite-sized pieces for seds with
32180   # small command number limits, like on Digital OSF/1 and HP-UX.
32181   ac_max_sed_lines=48
32182   ac_sed_frag=1 # Number of current file.
32183   ac_beg=1 # First line for current file.
32184   ac_end=$ac_max_sed_lines # Line after last line for current file.
32185   ac_more_lines=:
32186   ac_sed_cmds=
32187   while $ac_more_lines; do
32188     if test $ac_beg -gt 1; then
32189       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32190     else
32191       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32192     fi
32193     if test ! -s $tmp/subs.frag; then
32194       ac_more_lines=false
32195     else
32196       # The purpose of the label and of the branching condition is to
32197       # speed up the sed processing (if there are no `@' at all, there
32198       # is no need to browse any of the substitutions).
32199       # These are the two extra sed commands mentioned above.
32200       (echo ':t
32201   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
32202       if test -z "$ac_sed_cmds"; then
32203         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
32204       else
32205         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
32206       fi
32207       ac_sed_frag=`expr $ac_sed_frag + 1`
32208       ac_beg=$ac_end
32209       ac_end=`expr $ac_end + $ac_max_sed_lines`
32210     fi
32211   done
32212   if test -z "$ac_sed_cmds"; then
32213     ac_sed_cmds=cat
32214   fi
32215 fi # test -n "$CONFIG_FILES"
32216
32217 _ACEOF
32218 cat >>$CONFIG_STATUS <<\_ACEOF
32219 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
32220   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32221   case $ac_file in
32222   - | *:- | *:-:* ) # input from stdin
32223         cat >$tmp/stdin
32224         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32225         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32226   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32227         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32228   * )   ac_file_in=$ac_file.in ;;
32229   esac
32230
32231   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
32232   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32233 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32234          X"$ac_file" : 'X\(//\)[^/]' \| \
32235          X"$ac_file" : 'X\(//\)$' \| \
32236          X"$ac_file" : 'X\(/\)' \| \
32237          .     : '\(.\)' 2>/dev/null ||
32238 echo X"$ac_file" |
32239     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32240           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32241           /^X\(\/\/\)$/{ s//\1/; q; }
32242           /^X\(\/\).*/{ s//\1/; q; }
32243           s/.*/./; q'`
32244   { if $as_mkdir_p; then
32245     mkdir -p "$ac_dir"
32246   else
32247     as_dir="$ac_dir"
32248     as_dirs=
32249     while test ! -d "$as_dir"; do
32250       as_dirs="$as_dir $as_dirs"
32251       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32252 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32253          X"$as_dir" : 'X\(//\)[^/]' \| \
32254          X"$as_dir" : 'X\(//\)$' \| \
32255          X"$as_dir" : 'X\(/\)' \| \
32256          .     : '\(.\)' 2>/dev/null ||
32257 echo X"$as_dir" |
32258     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32259           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32260           /^X\(\/\/\)$/{ s//\1/; q; }
32261           /^X\(\/\).*/{ s//\1/; q; }
32262           s/.*/./; q'`
32263     done
32264     test ! -n "$as_dirs" || mkdir $as_dirs
32265   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32266 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32267    { (exit 1); exit 1; }; }; }
32268
32269   ac_builddir=.
32270
32271 if test "$ac_dir" != .; then
32272   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32273   # A "../" for each directory in $ac_dir_suffix.
32274   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32275 else
32276   ac_dir_suffix= ac_top_builddir=
32277 fi
32278
32279 case $srcdir in
32280   .)  # No --srcdir option.  We are building in place.
32281     ac_srcdir=.
32282     if test -z "$ac_top_builddir"; then
32283        ac_top_srcdir=.
32284     else
32285        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32286     fi ;;
32287   [\\/]* | ?:[\\/]* )  # Absolute path.
32288     ac_srcdir=$srcdir$ac_dir_suffix;
32289     ac_top_srcdir=$srcdir ;;
32290   *) # Relative path.
32291     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32292     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32293 esac
32294
32295 # Do not use `cd foo && pwd` to compute absolute paths, because
32296 # the directories may not exist.
32297 case `pwd` in
32298 .) ac_abs_builddir="$ac_dir";;
32299 *)
32300   case "$ac_dir" in
32301   .) ac_abs_builddir=`pwd`;;
32302   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32303   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32304   esac;;
32305 esac
32306 case $ac_abs_builddir in
32307 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32308 *)
32309   case ${ac_top_builddir}. in
32310   .) ac_abs_top_builddir=$ac_abs_builddir;;
32311   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32312   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32313   esac;;
32314 esac
32315 case $ac_abs_builddir in
32316 .) ac_abs_srcdir=$ac_srcdir;;
32317 *)
32318   case $ac_srcdir in
32319   .) ac_abs_srcdir=$ac_abs_builddir;;
32320   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32321   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32322   esac;;
32323 esac
32324 case $ac_abs_builddir in
32325 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32326 *)
32327   case $ac_top_srcdir in
32328   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32329   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32330   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32331   esac;;
32332 esac
32333
32334
32335   case $INSTALL in
32336   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32337   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32338   esac
32339
32340   if test x"$ac_file" != x-; then
32341     { echo "$as_me:$LINENO: creating $ac_file" >&5
32342 echo "$as_me: creating $ac_file" >&6;}
32343     rm -f "$ac_file"
32344   fi
32345   # Let's still pretend it is `configure' which instantiates (i.e., don't
32346   # use $as_me), people would be surprised to read:
32347   #    /* config.h.  Generated by config.status.  */
32348   if test x"$ac_file" = x-; then
32349     configure_input=
32350   else
32351     configure_input="$ac_file.  "
32352   fi
32353   configure_input=$configure_input"Generated from `echo $ac_file_in |
32354                                      sed 's,.*/,,'` by configure."
32355
32356   # First look for the input files in the build tree, otherwise in the
32357   # src tree.
32358   ac_file_inputs=`IFS=:
32359     for f in $ac_file_in; do
32360       case $f in
32361       -) echo $tmp/stdin ;;
32362       [\\/$]*)
32363          # Absolute (can't be DOS-style, as IFS=:)
32364          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32365 echo "$as_me: error: cannot find input file: $f" >&2;}
32366    { (exit 1); exit 1; }; }
32367          echo "$f";;
32368       *) # Relative
32369          if test -f "$f"; then
32370            # Build tree
32371            echo "$f"
32372          elif test -f "$srcdir/$f"; then
32373            # Source tree
32374            echo "$srcdir/$f"
32375          else
32376            # /dev/null tree
32377            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32378 echo "$as_me: error: cannot find input file: $f" >&2;}
32379    { (exit 1); exit 1; }; }
32380          fi;;
32381       esac
32382     done` || { (exit 1); exit 1; }
32383 _ACEOF
32384 cat >>$CONFIG_STATUS <<_ACEOF
32385   sed "$ac_vpsub
32386 $extrasub
32387 _ACEOF
32388 cat >>$CONFIG_STATUS <<\_ACEOF
32389 :t
32390 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32391 s,@configure_input@,$configure_input,;t t
32392 s,@srcdir@,$ac_srcdir,;t t
32393 s,@abs_srcdir@,$ac_abs_srcdir,;t t
32394 s,@top_srcdir@,$ac_top_srcdir,;t t
32395 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32396 s,@builddir@,$ac_builddir,;t t
32397 s,@abs_builddir@,$ac_abs_builddir,;t t
32398 s,@top_builddir@,$ac_top_builddir,;t t
32399 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32400 s,@INSTALL@,$ac_INSTALL,;t t
32401 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32402   rm -f $tmp/stdin
32403   if test x"$ac_file" != x-; then
32404     mv $tmp/out $ac_file
32405   else
32406     cat $tmp/out
32407     rm -f $tmp/out
32408   fi
32409
32410 done
32411 _ACEOF
32412 cat >>$CONFIG_STATUS <<\_ACEOF
32413
32414 #
32415 # CONFIG_HEADER section.
32416 #
32417
32418 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32419 # NAME is the cpp macro being defined and VALUE is the value it is being given.
32420 #
32421 # ac_d sets the value in "#define NAME VALUE" lines.
32422 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
32423 ac_dB='[         ].*$,\1#\2'
32424 ac_dC=' '
32425 ac_dD=',;t'
32426 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32427 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
32428 ac_uB='$,\1#\2define\3'
32429 ac_uC=' '
32430 ac_uD=',;t'
32431
32432 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32433   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32434   case $ac_file in
32435   - | *:- | *:-:* ) # input from stdin
32436         cat >$tmp/stdin
32437         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32438         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32439   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32440         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32441   * )   ac_file_in=$ac_file.in ;;
32442   esac
32443
32444   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32445 echo "$as_me: creating $ac_file" >&6;}
32446
32447   # First look for the input files in the build tree, otherwise in the
32448   # src tree.
32449   ac_file_inputs=`IFS=:
32450     for f in $ac_file_in; do
32451       case $f in
32452       -) echo $tmp/stdin ;;
32453       [\\/$]*)
32454          # Absolute (can't be DOS-style, as IFS=:)
32455          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32456 echo "$as_me: error: cannot find input file: $f" >&2;}
32457    { (exit 1); exit 1; }; }
32458          # Do quote $f, to prevent DOS paths from being IFS'd.
32459          echo "$f";;
32460       *) # Relative
32461          if test -f "$f"; then
32462            # Build tree
32463            echo "$f"
32464          elif test -f "$srcdir/$f"; then
32465            # Source tree
32466            echo "$srcdir/$f"
32467          else
32468            # /dev/null tree
32469            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32470 echo "$as_me: error: cannot find input file: $f" >&2;}
32471    { (exit 1); exit 1; }; }
32472          fi;;
32473       esac
32474     done` || { (exit 1); exit 1; }
32475   # Remove the trailing spaces.
32476   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
32477
32478 _ACEOF
32479
32480 # Transform confdefs.h into two sed scripts, `conftest.defines' and
32481 # `conftest.undefs', that substitutes the proper values into
32482 # config.h.in to produce config.h.  The first handles `#define'
32483 # templates, and the second `#undef' templates.
32484 # And first: Protect against being on the right side of a sed subst in
32485 # config.status.  Protect against being in an unquoted here document
32486 # in config.status.
32487 rm -f conftest.defines conftest.undefs
32488 # Using a here document instead of a string reduces the quoting nightmare.
32489 # Putting comments in sed scripts is not portable.
32490 #
32491 # `end' is used to avoid that the second main sed command (meant for
32492 # 0-ary CPP macros) applies to n-ary macro definitions.
32493 # See the Autoconf documentation for `clear'.
32494 cat >confdef2sed.sed <<\_ACEOF
32495 s/[\\&,]/\\&/g
32496 s,[\\$`],\\&,g
32497 t clear
32498 : clear
32499 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32500 t end
32501 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32502 : end
32503 _ACEOF
32504 # If some macros were called several times there might be several times
32505 # the same #defines, which is useless.  Nevertheless, we may not want to
32506 # sort them, since we want the *last* AC-DEFINE to be honored.
32507 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32508 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32509 rm -f confdef2sed.sed
32510
32511 # This sed command replaces #undef with comments.  This is necessary, for
32512 # example, in the case of _POSIX_SOURCE, which is predefined and required
32513 # on some systems where configure will not decide to define it.
32514 cat >>conftest.undefs <<\_ACEOF
32515 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32516 _ACEOF
32517
32518 # Break up conftest.defines because some shells have a limit on the size
32519 # of here documents, and old seds have small limits too (100 cmds).
32520 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32521 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32522 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32523 echo '  :' >>$CONFIG_STATUS
32524 rm -f conftest.tail
32525 while grep . conftest.defines >/dev/null
32526 do
32527   # Write a limited-size here document to $tmp/defines.sed.
32528   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32529   # Speed up: don't consider the non `#define' lines.
32530   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
32531   # Work around the forget-to-reset-the-flag bug.
32532   echo 't clr' >>$CONFIG_STATUS
32533   echo ': clr' >>$CONFIG_STATUS
32534   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32535   echo 'CEOF
32536   sed -f $tmp/defines.sed $tmp/in >$tmp/out
32537   rm -f $tmp/in
32538   mv $tmp/out $tmp/in
32539 ' >>$CONFIG_STATUS
32540   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32541   rm -f conftest.defines
32542   mv conftest.tail conftest.defines
32543 done
32544 rm -f conftest.defines
32545 echo '  fi # grep' >>$CONFIG_STATUS
32546 echo >>$CONFIG_STATUS
32547
32548 # Break up conftest.undefs because some shells have a limit on the size
32549 # of here documents, and old seds have small limits too (100 cmds).
32550 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
32551 rm -f conftest.tail
32552 while grep . conftest.undefs >/dev/null
32553 do
32554   # Write a limited-size here document to $tmp/undefs.sed.
32555   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32556   # Speed up: don't consider the non `#undef'
32557   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
32558   # Work around the forget-to-reset-the-flag bug.
32559   echo 't clr' >>$CONFIG_STATUS
32560   echo ': clr' >>$CONFIG_STATUS
32561   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32562   echo 'CEOF
32563   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32564   rm -f $tmp/in
32565   mv $tmp/out $tmp/in
32566 ' >>$CONFIG_STATUS
32567   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32568   rm -f conftest.undefs
32569   mv conftest.tail conftest.undefs
32570 done
32571 rm -f conftest.undefs
32572
32573 cat >>$CONFIG_STATUS <<\_ACEOF
32574   # Let's still pretend it is `configure' which instantiates (i.e., don't
32575   # use $as_me), people would be surprised to read:
32576   #    /* config.h.  Generated by config.status.  */
32577   if test x"$ac_file" = x-; then
32578     echo "/* Generated by configure.  */" >$tmp/config.h
32579   else
32580     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
32581   fi
32582   cat $tmp/in >>$tmp/config.h
32583   rm -f $tmp/in
32584   if test x"$ac_file" != x-; then
32585     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32586       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32587 echo "$as_me: $ac_file is unchanged" >&6;}
32588     else
32589       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32590 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32591          X"$ac_file" : 'X\(//\)[^/]' \| \
32592          X"$ac_file" : 'X\(//\)$' \| \
32593          X"$ac_file" : 'X\(/\)' \| \
32594          .     : '\(.\)' 2>/dev/null ||
32595 echo X"$ac_file" |
32596     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32597           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32598           /^X\(\/\/\)$/{ s//\1/; q; }
32599           /^X\(\/\).*/{ s//\1/; q; }
32600           s/.*/./; q'`
32601       { if $as_mkdir_p; then
32602     mkdir -p "$ac_dir"
32603   else
32604     as_dir="$ac_dir"
32605     as_dirs=
32606     while test ! -d "$as_dir"; do
32607       as_dirs="$as_dir $as_dirs"
32608       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32609 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32610          X"$as_dir" : 'X\(//\)[^/]' \| \
32611          X"$as_dir" : 'X\(//\)$' \| \
32612          X"$as_dir" : 'X\(/\)' \| \
32613          .     : '\(.\)' 2>/dev/null ||
32614 echo X"$as_dir" |
32615     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32616           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32617           /^X\(\/\/\)$/{ s//\1/; q; }
32618           /^X\(\/\).*/{ s//\1/; q; }
32619           s/.*/./; q'`
32620     done
32621     test ! -n "$as_dirs" || mkdir $as_dirs
32622   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32623 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32624    { (exit 1); exit 1; }; }; }
32625
32626       rm -f $ac_file
32627       mv $tmp/config.h $ac_file
32628     fi
32629   else
32630     cat $tmp/config.h
32631     rm -f $tmp/config.h
32632   fi
32633 done
32634 _ACEOF
32635 cat >>$CONFIG_STATUS <<\_ACEOF
32636
32637 #
32638 # CONFIG_COMMANDS section.
32639 #
32640 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32641   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32642   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32643   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32644 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32645          X"$ac_dest" : 'X\(//\)[^/]' \| \
32646          X"$ac_dest" : 'X\(//\)$' \| \
32647          X"$ac_dest" : 'X\(/\)' \| \
32648          .     : '\(.\)' 2>/dev/null ||
32649 echo X"$ac_dest" |
32650     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32651           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32652           /^X\(\/\/\)$/{ s//\1/; q; }
32653           /^X\(\/\).*/{ s//\1/; q; }
32654           s/.*/./; q'`
32655   { if $as_mkdir_p; then
32656     mkdir -p "$ac_dir"
32657   else
32658     as_dir="$ac_dir"
32659     as_dirs=
32660     while test ! -d "$as_dir"; do
32661       as_dirs="$as_dir $as_dirs"
32662       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32663 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32664          X"$as_dir" : 'X\(//\)[^/]' \| \
32665          X"$as_dir" : 'X\(//\)$' \| \
32666          X"$as_dir" : 'X\(/\)' \| \
32667          .     : '\(.\)' 2>/dev/null ||
32668 echo X"$as_dir" |
32669     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32670           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32671           /^X\(\/\/\)$/{ s//\1/; q; }
32672           /^X\(\/\).*/{ s//\1/; q; }
32673           s/.*/./; q'`
32674     done
32675     test ! -n "$as_dirs" || mkdir $as_dirs
32676   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32677 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32678    { (exit 1); exit 1; }; }; }
32679
32680   ac_builddir=.
32681
32682 if test "$ac_dir" != .; then
32683   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32684   # A "../" for each directory in $ac_dir_suffix.
32685   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32686 else
32687   ac_dir_suffix= ac_top_builddir=
32688 fi
32689
32690 case $srcdir in
32691   .)  # No --srcdir option.  We are building in place.
32692     ac_srcdir=.
32693     if test -z "$ac_top_builddir"; then
32694        ac_top_srcdir=.
32695     else
32696        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32697     fi ;;
32698   [\\/]* | ?:[\\/]* )  # Absolute path.
32699     ac_srcdir=$srcdir$ac_dir_suffix;
32700     ac_top_srcdir=$srcdir ;;
32701   *) # Relative path.
32702     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32703     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32704 esac
32705
32706 # Do not use `cd foo && pwd` to compute absolute paths, because
32707 # the directories may not exist.
32708 case `pwd` in
32709 .) ac_abs_builddir="$ac_dir";;
32710 *)
32711   case "$ac_dir" in
32712   .) ac_abs_builddir=`pwd`;;
32713   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32714   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32715   esac;;
32716 esac
32717 case $ac_abs_builddir in
32718 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32719 *)
32720   case ${ac_top_builddir}. in
32721   .) ac_abs_top_builddir=$ac_abs_builddir;;
32722   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32723   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32724   esac;;
32725 esac
32726 case $ac_abs_builddir in
32727 .) ac_abs_srcdir=$ac_srcdir;;
32728 *)
32729   case $ac_srcdir in
32730   .) ac_abs_srcdir=$ac_abs_builddir;;
32731   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32732   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32733   esac;;
32734 esac
32735 case $ac_abs_builddir in
32736 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32737 *)
32738   case $ac_top_srcdir in
32739   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32740   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32741   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32742   esac;;
32743 esac
32744
32745
32746   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32747 echo "$as_me: executing $ac_dest commands" >&6;}
32748   case $ac_dest in
32749     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32750    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32751     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32752    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32753     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32754    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32755     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32756    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32757     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32758    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32759     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32760    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32761     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32762    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32763     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32764    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32765     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32766    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32767     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32768    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32769   esac
32770 done
32771 _ACEOF
32772
32773 cat >>$CONFIG_STATUS <<\_ACEOF
32774
32775 { (exit 0); exit 0; }
32776 _ACEOF
32777 chmod +x $CONFIG_STATUS
32778 ac_clean_files=$ac_clean_files_save
32779
32780
32781 # configure is writing to config.log, and then calls config.status.
32782 # config.status does its own redirection, appending to config.log.
32783 # Unfortunately, on DOS this fails, as config.log is still kept open
32784 # by configure, so config.status won't be able to write to it; its
32785 # output is simply discarded.  So we exec the FD to /dev/null,
32786 # effectively closing config.log, so it can be properly (re)opened and
32787 # appended to by config.status.  When coming back to configure, we
32788 # need to make the FD available again.
32789 if test "$no_create" != yes; then
32790   ac_cs_success=:
32791   ac_config_status_args=
32792   test "$silent" = yes &&
32793     ac_config_status_args="$ac_config_status_args --quiet"
32794   exec 5>/dev/null
32795   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32796   exec 5>>config.log
32797   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32798   # would make configure fail if this is the last instruction.
32799   $ac_cs_success || { (exit 1); exit 1; }
32800 fi
32801
32802 #
32803 # CONFIG_SUBDIRS section.
32804 #
32805 if test "$no_recursion" != yes; then
32806
32807   # Remove --cache-file and --srcdir arguments so they do not pile up.
32808   ac_sub_configure_args=
32809   ac_prev=
32810   for ac_arg in $ac_configure_args; do
32811     if test -n "$ac_prev"; then
32812       ac_prev=
32813       continue
32814     fi
32815     case $ac_arg in
32816     -cache-file | --cache-file | --cache-fil | --cache-fi \
32817     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32818       ac_prev=cache_file ;;
32819     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32820     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32821     | --c=*)
32822       ;;
32823     --config-cache | -C)
32824       ;;
32825     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32826       ac_prev=srcdir ;;
32827     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32828       ;;
32829     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32830       ac_prev=prefix ;;
32831     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32832       ;;
32833     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32834     esac
32835   done
32836
32837   # Always prepend --prefix to ensure using the same prefix
32838   # in subdir configurations.
32839   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32840
32841   ac_popdir=`pwd`
32842   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32843
32844     # Do not complain, so a configure script can configure whichever
32845     # parts of a large source tree are present.
32846     test -d $srcdir/$ac_dir || continue
32847
32848     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32849 echo "$as_me: configuring in $ac_dir" >&6;}
32850     { if $as_mkdir_p; then
32851     mkdir -p "$ac_dir"
32852   else
32853     as_dir="$ac_dir"
32854     as_dirs=
32855     while test ! -d "$as_dir"; do
32856       as_dirs="$as_dir $as_dirs"
32857       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32858 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32859          X"$as_dir" : 'X\(//\)[^/]' \| \
32860          X"$as_dir" : 'X\(//\)$' \| \
32861          X"$as_dir" : 'X\(/\)' \| \
32862          .     : '\(.\)' 2>/dev/null ||
32863 echo X"$as_dir" |
32864     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32865           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32866           /^X\(\/\/\)$/{ s//\1/; q; }
32867           /^X\(\/\).*/{ s//\1/; q; }
32868           s/.*/./; q'`
32869     done
32870     test ! -n "$as_dirs" || mkdir $as_dirs
32871   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32872 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32873    { (exit 1); exit 1; }; }; }
32874
32875     ac_builddir=.
32876
32877 if test "$ac_dir" != .; then
32878   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32879   # A "../" for each directory in $ac_dir_suffix.
32880   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32881 else
32882   ac_dir_suffix= ac_top_builddir=
32883 fi
32884
32885 case $srcdir in
32886   .)  # No --srcdir option.  We are building in place.
32887     ac_srcdir=.
32888     if test -z "$ac_top_builddir"; then
32889        ac_top_srcdir=.
32890     else
32891        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32892     fi ;;
32893   [\\/]* | ?:[\\/]* )  # Absolute path.
32894     ac_srcdir=$srcdir$ac_dir_suffix;
32895     ac_top_srcdir=$srcdir ;;
32896   *) # Relative path.
32897     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32898     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32899 esac
32900
32901 # Do not use `cd foo && pwd` to compute absolute paths, because
32902 # the directories may not exist.
32903 case `pwd` in
32904 .) ac_abs_builddir="$ac_dir";;
32905 *)
32906   case "$ac_dir" in
32907   .) ac_abs_builddir=`pwd`;;
32908   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32909   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32910   esac;;
32911 esac
32912 case $ac_abs_builddir in
32913 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32914 *)
32915   case ${ac_top_builddir}. in
32916   .) ac_abs_top_builddir=$ac_abs_builddir;;
32917   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32918   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32919   esac;;
32920 esac
32921 case $ac_abs_builddir in
32922 .) ac_abs_srcdir=$ac_srcdir;;
32923 *)
32924   case $ac_srcdir in
32925   .) ac_abs_srcdir=$ac_abs_builddir;;
32926   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32927   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32928   esac;;
32929 esac
32930 case $ac_abs_builddir in
32931 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32932 *)
32933   case $ac_top_srcdir in
32934   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32935   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32936   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32937   esac;;
32938 esac
32939
32940
32941     cd $ac_dir
32942
32943     # Check for guested configure; otherwise get Cygnus style configure.
32944     if test -f $ac_srcdir/configure.gnu; then
32945       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32946     elif test -f $ac_srcdir/configure; then
32947       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32948     elif test -f $ac_srcdir/configure.in; then
32949       ac_sub_configure=$ac_configure
32950     else
32951       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32952 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32953       ac_sub_configure=
32954     fi
32955
32956     # The recursion is here.
32957     if test -n "$ac_sub_configure"; then
32958       # Make the cache file name correct relative to the subdirectory.
32959       case $cache_file in
32960       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32961       *) # Relative path.
32962         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32963       esac
32964
32965       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32966 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32967       # The eval makes quoting arguments work.
32968       eval $ac_sub_configure $ac_sub_configure_args \
32969            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32970         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32971 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32972    { (exit 1); exit 1; }; }
32973     fi
32974
32975     cd $ac_popdir
32976   done
32977 fi
32978
32979
32980 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32981  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32982 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32983  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32984 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32985  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32986 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32987  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32988 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32989  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32990 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
32991 fi