zap
[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.7cvs.
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.7cvs'
429 PACKAGE_STRING='llvm 1.7cvs'
430 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
432 ac_unique_file="lib/VMCore/Module.cpp"
433 ac_subdirs_all="$ac_subdirs_all projects/sample"
434 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
441 ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
442 # Factoring default headers for most tests.
443 ac_includes_default="\
444 #include <stdio.h>
445 #if HAVE_SYS_TYPES_H
446 # include <sys/types.h>
447 #endif
448 #if HAVE_SYS_STAT_H
449 # include <sys/stat.h>
450 #endif
451 #if STDC_HEADERS
452 # include <stdlib.h>
453 # include <stddef.h>
454 #else
455 # if HAVE_STDLIB_H
456 #  include <stdlib.h>
457 # endif
458 #endif
459 #if HAVE_STRING_H
460 # if !STDC_HEADERS && HAVE_MEMORY_H
461 #  include <memory.h>
462 # endif
463 # include <string.h>
464 #endif
465 #if HAVE_STRINGS_H
466 # include <strings.h>
467 #endif
468 #if HAVE_INTTYPES_H
469 # include <inttypes.h>
470 #else
471 # if HAVE_STDINT_H
472 #  include <stdint.h>
473 # endif
474 #endif
475 #if HAVE_UNISTD_H
476 # include <unistd.h>
477 #endif"
478
479 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED DEBUG_RUNTIME JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
480 ac_subst_files=''
481
482 # Initialize some variables set by options.
483 ac_init_help=
484 ac_init_version=false
485 # The variables have the same names as the options, with
486 # dashes changed to underlines.
487 cache_file=/dev/null
488 exec_prefix=NONE
489 no_create=
490 no_recursion=
491 prefix=NONE
492 program_prefix=NONE
493 program_suffix=NONE
494 program_transform_name=s,x,x,
495 silent=
496 site=
497 srcdir=
498 verbose=
499 x_includes=NONE
500 x_libraries=NONE
501
502 # Installation directory options.
503 # These are left unexpanded so users can "make install exec_prefix=/foo"
504 # and all the variables that are supposed to be based on exec_prefix
505 # by default will actually change.
506 # Use braces instead of parens because sh, perl, etc. also accept them.
507 bindir='${exec_prefix}/bin'
508 sbindir='${exec_prefix}/sbin'
509 libexecdir='${exec_prefix}/libexec'
510 datadir='${prefix}/share'
511 sysconfdir='${prefix}/etc'
512 sharedstatedir='${prefix}/com'
513 localstatedir='${prefix}/var'
514 libdir='${exec_prefix}/lib'
515 includedir='${prefix}/include'
516 oldincludedir='/usr/include'
517 infodir='${prefix}/info'
518 mandir='${prefix}/man'
519
520 ac_prev=
521 for ac_option
522 do
523   # If the previous option needs an argument, assign it.
524   if test -n "$ac_prev"; then
525     eval "$ac_prev=\$ac_option"
526     ac_prev=
527     continue
528   fi
529
530   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532   # Accept the important Cygnus configure options, so we can diagnose typos.
533
534   case $ac_option in
535
536   -bindir | --bindir | --bindi | --bind | --bin | --bi)
537     ac_prev=bindir ;;
538   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539     bindir=$ac_optarg ;;
540
541   -build | --build | --buil | --bui | --bu)
542     ac_prev=build_alias ;;
543   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544     build_alias=$ac_optarg ;;
545
546   -cache-file | --cache-file | --cache-fil | --cache-fi \
547   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548     ac_prev=cache_file ;;
549   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551     cache_file=$ac_optarg ;;
552
553   --config-cache | -C)
554     cache_file=config.cache ;;
555
556   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557     ac_prev=datadir ;;
558   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559   | --da=*)
560     datadir=$ac_optarg ;;
561
562   -disable-* | --disable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     eval "enable_$ac_feature=no" ;;
570
571   -enable-* | --enable-*)
572     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573     # Reject names that are not valid shell variable names.
574     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576    { (exit 1); exit 1; }; }
577     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578     case $ac_option in
579       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580       *) ac_optarg=yes ;;
581     esac
582     eval "enable_$ac_feature='$ac_optarg'" ;;
583
584   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586   | --exec | --exe | --ex)
587     ac_prev=exec_prefix ;;
588   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590   | --exec=* | --exe=* | --ex=*)
591     exec_prefix=$ac_optarg ;;
592
593   -gas | --gas | --ga | --g)
594     # Obsolete; use --with-gas.
595     with_gas=yes ;;
596
597   -help | --help | --hel | --he | -h)
598     ac_init_help=long ;;
599   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600     ac_init_help=recursive ;;
601   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602     ac_init_help=short ;;
603
604   -host | --host | --hos | --ho)
605     ac_prev=host_alias ;;
606   -host=* | --host=* | --hos=* | --ho=*)
607     host_alias=$ac_optarg ;;
608
609   -includedir | --includedir | --includedi | --included | --include \
610   | --includ | --inclu | --incl | --inc)
611     ac_prev=includedir ;;
612   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613   | --includ=* | --inclu=* | --incl=* | --inc=*)
614     includedir=$ac_optarg ;;
615
616   -infodir | --infodir | --infodi | --infod | --info | --inf)
617     ac_prev=infodir ;;
618   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619     infodir=$ac_optarg ;;
620
621   -libdir | --libdir | --libdi | --libd)
622     ac_prev=libdir ;;
623   -libdir=* | --libdir=* | --libdi=* | --libd=*)
624     libdir=$ac_optarg ;;
625
626   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627   | --libexe | --libex | --libe)
628     ac_prev=libexecdir ;;
629   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630   | --libexe=* | --libex=* | --libe=*)
631     libexecdir=$ac_optarg ;;
632
633   -localstatedir | --localstatedir | --localstatedi | --localstated \
634   | --localstate | --localstat | --localsta | --localst \
635   | --locals | --local | --loca | --loc | --lo)
636     ac_prev=localstatedir ;;
637   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640     localstatedir=$ac_optarg ;;
641
642   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643     ac_prev=mandir ;;
644   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645     mandir=$ac_optarg ;;
646
647   -nfp | --nfp | --nf)
648     # Obsolete; use --without-fp.
649     with_fp=no ;;
650
651   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652   | --no-cr | --no-c | -n)
653     no_create=yes ;;
654
655   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657     no_recursion=yes ;;
658
659   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661   | --oldin | --oldi | --old | --ol | --o)
662     ac_prev=oldincludedir ;;
663   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666     oldincludedir=$ac_optarg ;;
667
668   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669     ac_prev=prefix ;;
670   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671     prefix=$ac_optarg ;;
672
673   -program-prefix | --program-prefix | --program-prefi | --program-pref \
674   | --program-pre | --program-pr | --program-p)
675     ac_prev=program_prefix ;;
676   -program-prefix=* | --program-prefix=* | --program-prefi=* \
677   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678     program_prefix=$ac_optarg ;;
679
680   -program-suffix | --program-suffix | --program-suffi | --program-suff \
681   | --program-suf | --program-su | --program-s)
682     ac_prev=program_suffix ;;
683   -program-suffix=* | --program-suffix=* | --program-suffi=* \
684   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685     program_suffix=$ac_optarg ;;
686
687   -program-transform-name | --program-transform-name \
688   | --program-transform-nam | --program-transform-na \
689   | --program-transform-n | --program-transform- \
690   | --program-transform | --program-transfor \
691   | --program-transfo | --program-transf \
692   | --program-trans | --program-tran \
693   | --progr-tra | --program-tr | --program-t)
694     ac_prev=program_transform_name ;;
695   -program-transform-name=* | --program-transform-name=* \
696   | --program-transform-nam=* | --program-transform-na=* \
697   | --program-transform-n=* | --program-transform-=* \
698   | --program-transform=* | --program-transfor=* \
699   | --program-transfo=* | --program-transf=* \
700   | --program-trans=* | --program-tran=* \
701   | --progr-tra=* | --program-tr=* | --program-t=*)
702     program_transform_name=$ac_optarg ;;
703
704   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705   | -silent | --silent | --silen | --sile | --sil)
706     silent=yes ;;
707
708   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709     ac_prev=sbindir ;;
710   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711   | --sbi=* | --sb=*)
712     sbindir=$ac_optarg ;;
713
714   -sharedstatedir | --sharedstatedir | --sharedstatedi \
715   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716   | --sharedst | --shareds | --shared | --share | --shar \
717   | --sha | --sh)
718     ac_prev=sharedstatedir ;;
719   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722   | --sha=* | --sh=*)
723     sharedstatedir=$ac_optarg ;;
724
725   -site | --site | --sit)
726     ac_prev=site ;;
727   -site=* | --site=* | --sit=*)
728     site=$ac_optarg ;;
729
730   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731     ac_prev=srcdir ;;
732   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733     srcdir=$ac_optarg ;;
734
735   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736   | --syscon | --sysco | --sysc | --sys | --sy)
737     ac_prev=sysconfdir ;;
738   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740     sysconfdir=$ac_optarg ;;
741
742   -target | --target | --targe | --targ | --tar | --ta | --t)
743     ac_prev=target_alias ;;
744   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745     target_alias=$ac_optarg ;;
746
747   -v | -verbose | --verbose | --verbos | --verbo | --verb)
748     verbose=yes ;;
749
750   -version | --version | --versio | --versi | --vers | -V)
751     ac_init_version=: ;;
752
753   -with-* | --with-*)
754     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package| sed 's/-/_/g'`
760     case $ac_option in
761       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762       *) ac_optarg=yes ;;
763     esac
764     eval "with_$ac_package='$ac_optarg'" ;;
765
766   -without-* | --without-*)
767     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768     # Reject names that are not valid shell variable names.
769     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770       { echo "$as_me: error: invalid package name: $ac_package" >&2
771    { (exit 1); exit 1; }; }
772     ac_package=`echo $ac_package | sed 's/-/_/g'`
773     eval "with_$ac_package=no" ;;
774
775   --x)
776     # Obsolete; use --with-x.
777     with_x=yes ;;
778
779   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780   | --x-incl | --x-inc | --x-in | --x-i)
781     ac_prev=x_includes ;;
782   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784     x_includes=$ac_optarg ;;
785
786   -x-libraries | --x-libraries | --x-librarie | --x-librari \
787   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788     ac_prev=x_libraries ;;
789   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791     x_libraries=$ac_optarg ;;
792
793   -*) { echo "$as_me: error: unrecognized option: $ac_option
794 Try \`$0 --help' for more information." >&2
795    { (exit 1); exit 1; }; }
796     ;;
797
798   *=*)
799     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800     # Reject names that are not valid shell variable names.
801     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803    { (exit 1); exit 1; }; }
804     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805     eval "$ac_envvar='$ac_optarg'"
806     export $ac_envvar ;;
807
808   *)
809     # FIXME: should be removed in autoconf 3.0.
810     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814     ;;
815
816   esac
817 done
818
819 if test -n "$ac_prev"; then
820   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821   { echo "$as_me: error: missing argument to $ac_option" >&2
822    { (exit 1); exit 1; }; }
823 fi
824
825 # Be sure to have absolute paths.
826 for ac_var in exec_prefix prefix
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # Be sure to have absolute paths.
837 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838               localstatedir libdir includedir oldincludedir infodir mandir
839 do
840   eval ac_val=$`echo $ac_var`
841   case $ac_val in
842     [\\/$]* | ?:[\\/]* ) ;;
843     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844    { (exit 1); exit 1; }; };;
845   esac
846 done
847
848 # There might be people who depend on the old broken behavior: `$host'
849 # used to hold the argument of --host etc.
850 # FIXME: To remove some day.
851 build=$build_alias
852 host=$host_alias
853 target=$target_alias
854
855 # FIXME: To remove some day.
856 if test "x$host_alias" != x; then
857   if test "x$build_alias" = x; then
858     cross_compiling=maybe
859     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860     If a cross compiler is detected then cross compile mode will be used." >&2
861   elif test "x$build_alias" != "x$host_alias"; then
862     cross_compiling=yes
863   fi
864 fi
865
866 ac_tool_prefix=
867 test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869 test "$silent" = yes && exec 6>/dev/null
870
871
872 # Find the source files, if location was not specified.
873 if test -z "$srcdir"; then
874   ac_srcdir_defaulted=yes
875   # Try the directory containing this script, then its parent.
876   ac_confdir=`(dirname "$0") 2>/dev/null ||
877 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878          X"$0" : 'X\(//\)[^/]' \| \
879          X"$0" : 'X\(//\)$' \| \
880          X"$0" : 'X\(/\)' \| \
881          .     : '\(.\)' 2>/dev/null ||
882 echo X"$0" |
883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885           /^X\(\/\/\)$/{ s//\1/; q; }
886           /^X\(\/\).*/{ s//\1/; q; }
887           s/.*/./; q'`
888   srcdir=$ac_confdir
889   if test ! -r $srcdir/$ac_unique_file; then
890     srcdir=..
891   fi
892 else
893   ac_srcdir_defaulted=no
894 fi
895 if test ! -r $srcdir/$ac_unique_file; then
896   if test "$ac_srcdir_defaulted" = yes; then
897     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898    { (exit 1); exit 1; }; }
899   else
900     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901    { (exit 1); exit 1; }; }
902   fi
903 fi
904 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906    { (exit 1); exit 1; }; }
907 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908 ac_env_build_alias_set=${build_alias+set}
909 ac_env_build_alias_value=$build_alias
910 ac_cv_env_build_alias_set=${build_alias+set}
911 ac_cv_env_build_alias_value=$build_alias
912 ac_env_host_alias_set=${host_alias+set}
913 ac_env_host_alias_value=$host_alias
914 ac_cv_env_host_alias_set=${host_alias+set}
915 ac_cv_env_host_alias_value=$host_alias
916 ac_env_target_alias_set=${target_alias+set}
917 ac_env_target_alias_value=$target_alias
918 ac_cv_env_target_alias_set=${target_alias+set}
919 ac_cv_env_target_alias_value=$target_alias
920 ac_env_CC_set=${CC+set}
921 ac_env_CC_value=$CC
922 ac_cv_env_CC_set=${CC+set}
923 ac_cv_env_CC_value=$CC
924 ac_env_CFLAGS_set=${CFLAGS+set}
925 ac_env_CFLAGS_value=$CFLAGS
926 ac_cv_env_CFLAGS_set=${CFLAGS+set}
927 ac_cv_env_CFLAGS_value=$CFLAGS
928 ac_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_env_LDFLAGS_value=$LDFLAGS
930 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931 ac_cv_env_LDFLAGS_value=$LDFLAGS
932 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_env_CPPFLAGS_value=$CPPFLAGS
934 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXX_set=${CXX+set}
941 ac_env_CXX_value=$CXX
942 ac_cv_env_CXX_set=${CXX+set}
943 ac_cv_env_CXX_value=$CXX
944 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945 ac_env_CXXFLAGS_value=$CXXFLAGS
946 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948 ac_env_CXXCPP_set=${CXXCPP+set}
949 ac_env_CXXCPP_value=$CXXCPP
950 ac_cv_env_CXXCPP_set=${CXXCPP+set}
951 ac_cv_env_CXXCPP_value=$CXXCPP
952 ac_env_F77_set=${F77+set}
953 ac_env_F77_value=$F77
954 ac_cv_env_F77_set=${F77+set}
955 ac_cv_env_F77_value=$F77
956 ac_env_FFLAGS_set=${FFLAGS+set}
957 ac_env_FFLAGS_value=$FFLAGS
958 ac_cv_env_FFLAGS_set=${FFLAGS+set}
959 ac_cv_env_FFLAGS_value=$FFLAGS
960
961 #
962 # Report the --help message.
963 #
964 if test "$ac_init_help" = "long"; then
965   # Omit some internal or obsolete options to make the list less imposing.
966   # This message is too long to be a string in the A/UX 3.1 sh.
967   cat <<_ACEOF
968 \`configure' configures llvm 1.7cvs to adapt to many kinds of systems.
969
970 Usage: $0 [OPTION]... [VAR=VALUE]...
971
972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
973 VAR=VALUE.  See below for descriptions of some of the useful variables.
974
975 Defaults for the options are specified in brackets.
976
977 Configuration:
978   -h, --help              display this help and exit
979       --help=short        display options specific to this package
980       --help=recursive    display the short help of all the included packages
981   -V, --version           display version information and exit
982   -q, --quiet, --silent   do not print \`checking...' messages
983       --cache-file=FILE   cache test results in FILE [disabled]
984   -C, --config-cache      alias for \`--cache-file=config.cache'
985   -n, --no-create         do not create output files
986       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
987
988 _ACEOF
989
990   cat <<_ACEOF
991 Installation directories:
992   --prefix=PREFIX         install architecture-independent files in PREFIX
993                           [$ac_default_prefix]
994   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
995                           [PREFIX]
996
997 By default, \`make install' will install all the files in
998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000 for instance \`--prefix=\$HOME'.
1001
1002 For better control, use the options below.
1003
1004 Fine tuning of the installation directories:
1005   --bindir=DIR           user executables [EPREFIX/bin]
1006   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1007   --libexecdir=DIR       program executables [EPREFIX/libexec]
1008   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1009   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1010   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1011   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1012   --libdir=DIR           object code libraries [EPREFIX/lib]
1013   --includedir=DIR       C header files [PREFIX/include]
1014   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1015   --infodir=DIR          info documentation [PREFIX/info]
1016   --mandir=DIR           man documentation [PREFIX/man]
1017 _ACEOF
1018
1019   cat <<\_ACEOF
1020
1021 System types:
1022   --build=BUILD     configure for building on BUILD [guessed]
1023   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1024   --target=TARGET   configure for building compilers for TARGET [HOST]
1025 _ACEOF
1026 fi
1027
1028 if test -n "$ac_init_help"; then
1029   case $ac_init_help in
1030      short | recursive ) echo "Configuration of llvm 1.7cvs:";;
1031    esac
1032   cat <<\_ACEOF
1033
1034 Optional Features:
1035   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1036   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1037   --enable-optimized
1038   --enable-debug-runtime
1039   --enable-jit            Enable Just In Time Compiling (default is YES)
1040   --enable-doxygen        Build doxygen documentation (default is NO)
1041   --enable-threads        Use threads if available (default is YES)
1042   --enable-target         Build specific host targets:
1043                           all,host-only,{target-name} (default=all)
1044   --enable-ltdl-install   install libltdl
1045   --enable-shared[=PKGS]
1046                           build shared libraries [default=yes]
1047   --enable-static[=PKGS]
1048                           build static libraries [default=yes]
1049   --enable-fast-install[=PKGS]
1050                           optimize for fast installation [default=yes]
1051   --disable-libtool-lock  avoid locking (might break parallel builds)
1052
1053 Optional Packages:
1054   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1055   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1056   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1057                           searches PATH)
1058   --with-tclinclude       directory where tcl headers are
1059   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1060   --with-pic              try to use only PIC/non-PIC objects [default=use
1061                           both]
1062   --with-tags[=TAGS]
1063                           include additional configurations [automatic]
1064
1065 Some influential environment variables:
1066   CC          C compiler command
1067   CFLAGS      C compiler flags
1068   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1069               nonstandard directory <lib dir>
1070   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1071               headers in a nonstandard directory <include dir>
1072   CPP         C preprocessor
1073   CXX         C++ compiler command
1074   CXXFLAGS    C++ compiler flags
1075   CXXCPP      C++ preprocessor
1076   F77         Fortran 77 compiler command
1077   FFLAGS      Fortran 77 compiler flags
1078
1079 Use these variables to override the choices made by `configure' or to help
1080 it to find libraries and programs with nonstandard names/locations.
1081
1082 Report bugs to <llvmbugs@cs.uiuc.edu>.
1083 _ACEOF
1084 fi
1085
1086 if test "$ac_init_help" = "recursive"; then
1087   # If there are subdirs, report their specific --help.
1088   ac_popdir=`pwd`
1089   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1090     test -d $ac_dir || continue
1091     ac_builddir=.
1092
1093 if test "$ac_dir" != .; then
1094   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1095   # A "../" for each directory in $ac_dir_suffix.
1096   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1097 else
1098   ac_dir_suffix= ac_top_builddir=
1099 fi
1100
1101 case $srcdir in
1102   .)  # No --srcdir option.  We are building in place.
1103     ac_srcdir=.
1104     if test -z "$ac_top_builddir"; then
1105        ac_top_srcdir=.
1106     else
1107        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1108     fi ;;
1109   [\\/]* | ?:[\\/]* )  # Absolute path.
1110     ac_srcdir=$srcdir$ac_dir_suffix;
1111     ac_top_srcdir=$srcdir ;;
1112   *) # Relative path.
1113     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1114     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1115 esac
1116
1117 # Do not use `cd foo && pwd` to compute absolute paths, because
1118 # the directories may not exist.
1119 case `pwd` in
1120 .) ac_abs_builddir="$ac_dir";;
1121 *)
1122   case "$ac_dir" in
1123   .) ac_abs_builddir=`pwd`;;
1124   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1125   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1126   esac;;
1127 esac
1128 case $ac_abs_builddir in
1129 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1130 *)
1131   case ${ac_top_builddir}. in
1132   .) ac_abs_top_builddir=$ac_abs_builddir;;
1133   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1134   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1135   esac;;
1136 esac
1137 case $ac_abs_builddir in
1138 .) ac_abs_srcdir=$ac_srcdir;;
1139 *)
1140   case $ac_srcdir in
1141   .) ac_abs_srcdir=$ac_abs_builddir;;
1142   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1143   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1144   esac;;
1145 esac
1146 case $ac_abs_builddir in
1147 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1148 *)
1149   case $ac_top_srcdir in
1150   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1151   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1152   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1153   esac;;
1154 esac
1155
1156     cd $ac_dir
1157     # Check for guested configure; otherwise get Cygnus style configure.
1158     if test -f $ac_srcdir/configure.gnu; then
1159       echo
1160       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1161     elif test -f $ac_srcdir/configure; then
1162       echo
1163       $SHELL $ac_srcdir/configure  --help=recursive
1164     elif test -f $ac_srcdir/configure.ac ||
1165            test -f $ac_srcdir/configure.in; then
1166       echo
1167       $ac_configure --help
1168     else
1169       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1170     fi
1171     cd $ac_popdir
1172   done
1173 fi
1174
1175 test -n "$ac_init_help" && exit 0
1176 if $ac_init_version; then
1177   cat <<\_ACEOF
1178 llvm configure 1.7cvs
1179 generated by GNU Autoconf 2.59
1180
1181 Copyright (C) 2003 Free Software Foundation, Inc.
1182 This configure script is free software; the Free Software Foundation
1183 gives unlimited permission to copy, distribute and modify it.
1184
1185 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1186 _ACEOF
1187   exit 0
1188 fi
1189 exec 5>config.log
1190 cat >&5 <<_ACEOF
1191 This file contains any messages produced by compilers while
1192 running configure, to aid debugging if configure makes a mistake.
1193
1194 It was created by llvm $as_me 1.7cvs, which was
1195 generated by GNU Autoconf 2.59.  Invocation command line was
1196
1197   $ $0 $@
1198
1199 _ACEOF
1200 {
1201 cat <<_ASUNAME
1202 ## --------- ##
1203 ## Platform. ##
1204 ## --------- ##
1205
1206 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1207 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1208 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1209 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1210 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1211
1212 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1213 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1214
1215 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1216 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1217 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1218 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1219 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1220 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1221 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1222
1223 _ASUNAME
1224
1225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1226 for as_dir in $PATH
1227 do
1228   IFS=$as_save_IFS
1229   test -z "$as_dir" && as_dir=.
1230   echo "PATH: $as_dir"
1231 done
1232
1233 } >&5
1234
1235 cat >&5 <<_ACEOF
1236
1237
1238 ## ----------- ##
1239 ## Core tests. ##
1240 ## ----------- ##
1241
1242 _ACEOF
1243
1244
1245 # Keep a trace of the command line.
1246 # Strip out --no-create and --no-recursion so they do not pile up.
1247 # Strip out --silent because we don't want to record it for future runs.
1248 # Also quote any args containing shell meta-characters.
1249 # Make two passes to allow for proper duplicate-argument suppression.
1250 ac_configure_args=
1251 ac_configure_args0=
1252 ac_configure_args1=
1253 ac_sep=
1254 ac_must_keep_next=false
1255 for ac_pass in 1 2
1256 do
1257   for ac_arg
1258   do
1259     case $ac_arg in
1260     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1261     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1262     | -silent | --silent | --silen | --sile | --sil)
1263       continue ;;
1264     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1265       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1266     esac
1267     case $ac_pass in
1268     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1269     2)
1270       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1271       if test $ac_must_keep_next = true; then
1272         ac_must_keep_next=false # Got value, back to normal.
1273       else
1274         case $ac_arg in
1275           *=* | --config-cache | -C | -disable-* | --disable-* \
1276           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1277           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1278           | -with-* | --with-* | -without-* | --without-* | --x)
1279             case "$ac_configure_args0 " in
1280               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1281             esac
1282             ;;
1283           -* ) ac_must_keep_next=true ;;
1284         esac
1285       fi
1286       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1287       # Get rid of the leading space.
1288       ac_sep=" "
1289       ;;
1290     esac
1291   done
1292 done
1293 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1294 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1295
1296 # When interrupted or exit'd, cleanup temporary files, and complete
1297 # config.log.  We remove comments because anyway the quotes in there
1298 # would cause problems or look ugly.
1299 # WARNING: Be sure not to use single quotes in there, as some shells,
1300 # such as our DU 5.0 friend, will then `close' the trap.
1301 trap 'exit_status=$?
1302   # Save into config.log some information that might help in debugging.
1303   {
1304     echo
1305
1306     cat <<\_ASBOX
1307 ## ---------------- ##
1308 ## Cache variables. ##
1309 ## ---------------- ##
1310 _ASBOX
1311     echo
1312     # The following way of writing the cache mishandles newlines in values,
1313 {
1314   (set) 2>&1 |
1315     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1316     *ac_space=\ *)
1317       sed -n \
1318         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1319           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1320       ;;
1321     *)
1322       sed -n \
1323         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1324       ;;
1325     esac;
1326 }
1327     echo
1328
1329     cat <<\_ASBOX
1330 ## ----------------- ##
1331 ## Output variables. ##
1332 ## ----------------- ##
1333 _ASBOX
1334     echo
1335     for ac_var in $ac_subst_vars
1336     do
1337       eval ac_val=$`echo $ac_var`
1338       echo "$ac_var='"'"'$ac_val'"'"'"
1339     done | sort
1340     echo
1341
1342     if test -n "$ac_subst_files"; then
1343       cat <<\_ASBOX
1344 ## ------------- ##
1345 ## Output files. ##
1346 ## ------------- ##
1347 _ASBOX
1348       echo
1349       for ac_var in $ac_subst_files
1350       do
1351         eval ac_val=$`echo $ac_var`
1352         echo "$ac_var='"'"'$ac_val'"'"'"
1353       done | sort
1354       echo
1355     fi
1356
1357     if test -s confdefs.h; then
1358       cat <<\_ASBOX
1359 ## ----------- ##
1360 ## confdefs.h. ##
1361 ## ----------- ##
1362 _ASBOX
1363       echo
1364       sed "/^$/d" confdefs.h | sort
1365       echo
1366     fi
1367     test "$ac_signal" != 0 &&
1368       echo "$as_me: caught signal $ac_signal"
1369     echo "$as_me: exit $exit_status"
1370   } >&5
1371   rm -f core *.core &&
1372   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1373     exit $exit_status
1374      ' 0
1375 for ac_signal in 1 2 13 15; do
1376   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1377 done
1378 ac_signal=0
1379
1380 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1381 rm -rf conftest* confdefs.h
1382 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1383 echo >confdefs.h
1384
1385 # Predefined preprocessor variables.
1386
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_NAME "$PACKAGE_NAME"
1389 _ACEOF
1390
1391
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1394 _ACEOF
1395
1396
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1399 _ACEOF
1400
1401
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_STRING "$PACKAGE_STRING"
1404 _ACEOF
1405
1406
1407 cat >>confdefs.h <<_ACEOF
1408 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1409 _ACEOF
1410
1411
1412 # Let the site file select an alternate cache file if it wants to.
1413 # Prefer explicitly selected file to automatically selected ones.
1414 if test -z "$CONFIG_SITE"; then
1415   if test "x$prefix" != xNONE; then
1416     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1417   else
1418     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1419   fi
1420 fi
1421 for ac_site_file in $CONFIG_SITE; do
1422   if test -r "$ac_site_file"; then
1423     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1424 echo "$as_me: loading site script $ac_site_file" >&6;}
1425     sed 's/^/| /' "$ac_site_file" >&5
1426     . "$ac_site_file"
1427   fi
1428 done
1429
1430 if test -r "$cache_file"; then
1431   # Some versions of bash will fail to source /dev/null (special
1432   # files actually), so we avoid doing that.
1433   if test -f "$cache_file"; then
1434     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1435 echo "$as_me: loading cache $cache_file" >&6;}
1436     case $cache_file in
1437       [\\/]* | ?:[\\/]* ) . $cache_file;;
1438       *)                      . ./$cache_file;;
1439     esac
1440   fi
1441 else
1442   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1443 echo "$as_me: creating cache $cache_file" >&6;}
1444   >$cache_file
1445 fi
1446
1447 # Check that the precious variables saved in the cache have kept the same
1448 # value.
1449 ac_cache_corrupted=false
1450 for ac_var in `(set) 2>&1 |
1451                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1452   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1453   eval ac_new_set=\$ac_env_${ac_var}_set
1454   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1455   eval ac_new_val="\$ac_env_${ac_var}_value"
1456   case $ac_old_set,$ac_new_set in
1457     set,)
1458       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1459 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1460       ac_cache_corrupted=: ;;
1461     ,set)
1462       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1463 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1464       ac_cache_corrupted=: ;;
1465     ,);;
1466     *)
1467       if test "x$ac_old_val" != "x$ac_new_val"; then
1468         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1469 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1470         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1471 echo "$as_me:   former value:  $ac_old_val" >&2;}
1472         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1473 echo "$as_me:   current value: $ac_new_val" >&2;}
1474         ac_cache_corrupted=:
1475       fi;;
1476   esac
1477   # Pass precious variables to config.status.
1478   if test "$ac_new_set" = set; then
1479     case $ac_new_val in
1480     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1481       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1482     *) ac_arg=$ac_var=$ac_new_val ;;
1483     esac
1484     case " $ac_configure_args " in
1485       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1486       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1487     esac
1488   fi
1489 done
1490 if $ac_cache_corrupted; then
1491   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1492 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1493   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1494 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1495    { (exit 1); exit 1; }; }
1496 fi
1497
1498 ac_ext=c
1499 ac_cpp='$CPP $CPPFLAGS'
1500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1532
1533
1534
1535
1536
1537
1538
1539 ac_aux_dir=
1540 for ac_dir in autoconf $srcdir/autoconf; do
1541   if test -f $ac_dir/install-sh; then
1542     ac_aux_dir=$ac_dir
1543     ac_install_sh="$ac_aux_dir/install-sh -c"
1544     break
1545   elif test -f $ac_dir/install.sh; then
1546     ac_aux_dir=$ac_dir
1547     ac_install_sh="$ac_aux_dir/install.sh -c"
1548     break
1549   elif test -f $ac_dir/shtool; then
1550     ac_aux_dir=$ac_dir
1551     ac_install_sh="$ac_aux_dir/shtool install -c"
1552     break
1553   fi
1554 done
1555 if test -z "$ac_aux_dir"; then
1556   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1557 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1558    { (exit 1); exit 1; }; }
1559 fi
1560 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1561 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1562 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1563
1564
1565 if test ${srcdir} != "." ; then
1566   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1567     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1568 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1569    { (exit 1); exit 1; }; }
1570   fi
1571 fi
1572
1573 for i in `ls ${srcdir}/projects`
1574 do
1575   if test -d ${srcdir}/projects/${i} ; then
1576     case ${i} in
1577       "CVS") ;;
1578       "sample")
1579
1580 subdirs="$subdirs projects/sample"
1581     ;;
1582       "Stacker")
1583
1584 subdirs="$subdirs projects/Stacker"
1585    ;;
1586       "llvm-test")
1587
1588 subdirs="$subdirs projects/llvm-test"
1589  ;;
1590       "llvm-reopt")
1591
1592 subdirs="$subdirs projects/llvm-reopt"
1593 ;;
1594       "llvm-gcc")
1595
1596 subdirs="$subdirs projects/llvm-gcc"
1597   ;;
1598       "llvm-java")
1599
1600 subdirs="$subdirs projects/llvm-java"
1601  ;;
1602       "llvm-tv")
1603
1604 subdirs="$subdirs projects/llvm-tv"
1605    ;;
1606       "llvm-poolalloc")
1607
1608 subdirs="$subdirs projects/llvm-poolalloc"
1609  ;;
1610       "llvm-kernel")
1611
1612 subdirs="$subdirs projects/llvm-kernel"
1613  ;;
1614       *)
1615         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1616 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1617         ;;
1618     esac
1619   fi
1620 done
1621
1622
1623 # Make sure we can run config.sub.
1624 $ac_config_sub sun4 >/dev/null 2>&1 ||
1625   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1626 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1627    { (exit 1); exit 1; }; }
1628
1629 echo "$as_me:$LINENO: checking build system type" >&5
1630 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1631 if test "${ac_cv_build+set}" = set; then
1632   echo $ECHO_N "(cached) $ECHO_C" >&6
1633 else
1634   ac_cv_build_alias=$build_alias
1635 test -z "$ac_cv_build_alias" &&
1636   ac_cv_build_alias=`$ac_config_guess`
1637 test -z "$ac_cv_build_alias" &&
1638   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1639 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1640    { (exit 1); exit 1; }; }
1641 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1642   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1643 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1644    { (exit 1); exit 1; }; }
1645
1646 fi
1647 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1648 echo "${ECHO_T}$ac_cv_build" >&6
1649 build=$ac_cv_build
1650 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1651 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1652 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1653
1654
1655 echo "$as_me:$LINENO: checking host system type" >&5
1656 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1657 if test "${ac_cv_host+set}" = set; then
1658   echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660   ac_cv_host_alias=$host_alias
1661 test -z "$ac_cv_host_alias" &&
1662   ac_cv_host_alias=$ac_cv_build_alias
1663 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1664   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1665 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1666    { (exit 1); exit 1; }; }
1667
1668 fi
1669 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1670 echo "${ECHO_T}$ac_cv_host" >&6
1671 host=$ac_cv_host
1672 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1673 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1674 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1675
1676
1677 echo "$as_me:$LINENO: checking target system type" >&5
1678 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1679 if test "${ac_cv_target+set}" = set; then
1680   echo $ECHO_N "(cached) $ECHO_C" >&6
1681 else
1682   ac_cv_target_alias=$target_alias
1683 test "x$ac_cv_target_alias" = "x" &&
1684   ac_cv_target_alias=$ac_cv_host_alias
1685 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1686   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1687 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1688    { (exit 1); exit 1; }; }
1689
1690 fi
1691 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1692 echo "${ECHO_T}$ac_cv_target" >&6
1693 target=$ac_cv_target
1694 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1695 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1696 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1697
1698
1699 # The aliases save the names the user supplied, while $host etc.
1700 # will get canonicalized.
1701 test -n "$target_alias" &&
1702   test "$program_prefix$program_suffix$program_transform_name" = \
1703     NONENONEs,x,x, &&
1704   program_prefix=${target_alias}-
1705
1706 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1707 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1708 if test "${llvm_cv_os_type+set}" = set; then
1709   echo $ECHO_N "(cached) $ECHO_C" >&6
1710 else
1711   case $build in
1712   *-*-aix*)
1713     llvm_cv_os_type="AIX"
1714     llvm_cv_platform_type="Unix" ;;
1715   *-*-cygwin*)
1716     llvm_cv_os_type="Cygwin"
1717     llvm_cv_platform_type="Unix" ;;
1718   *-*-darwin*)
1719     llvm_cv_os_type="Darwin"
1720     llvm_cv_platform_type="Unix" ;;
1721   *-*-freebsd*)
1722     llvm_cv_os_type="FreeBSD"
1723     llvm_cv_platform_type="Unix" ;;
1724   *-*-hpux*)
1725     llvm_cv_os_type="HP-UX"
1726     llvm_cv_platform_type="Unix" ;;
1727   *-*-interix*)
1728     llvm_cv_os_type="Interix"
1729     llvm_cv_platform_type="Unix" ;;
1730   *-*-linux*)
1731     llvm_cv_os_type="Linux"
1732     llvm_cv_platform_type="Unix" ;;
1733   *-*-solaris*)
1734     llvm_cv_os_type="SunOS"
1735     llvm_cv_platform_type="Unix" ;;
1736   *-*-win32*)
1737     llvm_cv_os_type="Win32"
1738     llvm_cv_platform_type="Win32" ;;
1739   *-*-mingw*)
1740     llvm_cv_os_type="MingW"
1741     llvm_cv_platform_type="Win32" ;;
1742   *)
1743     llvm_cv_os_type="Unknown"
1744     llvm_cv_platform_type="Unknown" ;;
1745 esac
1746 fi
1747 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1748 echo "${ECHO_T}$llvm_cv_os_type" >&6
1749
1750 if test "$llvm_cv_os_type" = "Unknown" ; then
1751   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1752 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1753    { (exit 1); exit 1; }; }
1754 fi
1755
1756 OS=$llvm_cv_os_type
1757
1758
1759 case $llvm_cv_platform_type in
1760   Unix)
1761
1762 cat >>confdefs.h <<\_ACEOF
1763 #define LLVM_ON_UNIX 1
1764 _ACEOF
1765
1766     LLVM_ON_UNIX=1
1767
1768     LLVM_ON_WIN32=0
1769
1770     ;;
1771   Win32)
1772
1773 cat >>confdefs.h <<\_ACEOF
1774 #define LLVM_ON_WIN32 1
1775 _ACEOF
1776
1777     LLVM_ON_UNIX=0
1778
1779     LLVM_ON_WIN32=1
1780
1781     ;;
1782 esac
1783
1784 echo "$as_me:$LINENO: checking target architecture" >&5
1785 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1786 if test "${llvm_cv_target_arch+set}" = set; then
1787   echo $ECHO_N "(cached) $ECHO_C" >&6
1788 else
1789   case $target in
1790   i?86-*)                 llvm_cv_target_arch="x86" ;;
1791   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1792   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1793   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1794   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1795   ia64-*)                 llvm_cv_target_arch="IA64" ;;
1796   *)                      llvm_cv_target_arch="Unknown" ;;
1797 esac
1798 fi
1799 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1800 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1801
1802 if test "$llvm_cv_target_arch" = "Unknown" ; then
1803   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1804 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1805 fi
1806
1807 ARCH=$llvm_cv_target_arch
1808
1809
1810 ac_ext=c
1811 ac_cpp='$CPP $CPPFLAGS'
1812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1815 if test -n "$ac_tool_prefix"; then
1816   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1817 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1818 echo "$as_me:$LINENO: checking for $ac_word" >&5
1819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820 if test "${ac_cv_prog_CC+set}" = set; then
1821   echo $ECHO_N "(cached) $ECHO_C" >&6
1822 else
1823   if test -n "$CC"; then
1824   ac_cv_prog_CC="$CC" # Let the user override the test.
1825 else
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827 for as_dir in $PATH
1828 do
1829   IFS=$as_save_IFS
1830   test -z "$as_dir" && as_dir=.
1831   for ac_exec_ext in '' $ac_executable_extensions; do
1832   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835     break 2
1836   fi
1837 done
1838 done
1839
1840 fi
1841 fi
1842 CC=$ac_cv_prog_CC
1843 if test -n "$CC"; then
1844   echo "$as_me:$LINENO: result: $CC" >&5
1845 echo "${ECHO_T}$CC" >&6
1846 else
1847   echo "$as_me:$LINENO: result: no" >&5
1848 echo "${ECHO_T}no" >&6
1849 fi
1850
1851 fi
1852 if test -z "$ac_cv_prog_CC"; then
1853   ac_ct_CC=$CC
1854   # Extract the first word of "gcc", so it can be a program name with args.
1855 set dummy gcc; ac_word=$2
1856 echo "$as_me:$LINENO: checking for $ac_word" >&5
1857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1859   echo $ECHO_N "(cached) $ECHO_C" >&6
1860 else
1861   if test -n "$ac_ct_CC"; then
1862   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1863 else
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 for as_dir in $PATH
1866 do
1867   IFS=$as_save_IFS
1868   test -z "$as_dir" && as_dir=.
1869   for ac_exec_ext in '' $ac_executable_extensions; do
1870   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871     ac_cv_prog_ac_ct_CC="gcc"
1872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873     break 2
1874   fi
1875 done
1876 done
1877
1878 fi
1879 fi
1880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1881 if test -n "$ac_ct_CC"; then
1882   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1883 echo "${ECHO_T}$ac_ct_CC" >&6
1884 else
1885   echo "$as_me:$LINENO: result: no" >&5
1886 echo "${ECHO_T}no" >&6
1887 fi
1888
1889   CC=$ac_ct_CC
1890 else
1891   CC="$ac_cv_prog_CC"
1892 fi
1893
1894 if test -z "$CC"; then
1895   if test -n "$ac_tool_prefix"; then
1896   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1897 set dummy ${ac_tool_prefix}cc; ac_word=$2
1898 echo "$as_me:$LINENO: checking for $ac_word" >&5
1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900 if test "${ac_cv_prog_CC+set}" = set; then
1901   echo $ECHO_N "(cached) $ECHO_C" >&6
1902 else
1903   if test -n "$CC"; then
1904   ac_cv_prog_CC="$CC" # Let the user override the test.
1905 else
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 for as_dir in $PATH
1908 do
1909   IFS=$as_save_IFS
1910   test -z "$as_dir" && as_dir=.
1911   for ac_exec_ext in '' $ac_executable_extensions; do
1912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913     ac_cv_prog_CC="${ac_tool_prefix}cc"
1914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915     break 2
1916   fi
1917 done
1918 done
1919
1920 fi
1921 fi
1922 CC=$ac_cv_prog_CC
1923 if test -n "$CC"; then
1924   echo "$as_me:$LINENO: result: $CC" >&5
1925 echo "${ECHO_T}$CC" >&6
1926 else
1927   echo "$as_me:$LINENO: result: no" >&5
1928 echo "${ECHO_T}no" >&6
1929 fi
1930
1931 fi
1932 if test -z "$ac_cv_prog_CC"; then
1933   ac_ct_CC=$CC
1934   # Extract the first word of "cc", so it can be a program name with args.
1935 set dummy cc; ac_word=$2
1936 echo "$as_me:$LINENO: checking for $ac_word" >&5
1937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1939   echo $ECHO_N "(cached) $ECHO_C" >&6
1940 else
1941   if test -n "$ac_ct_CC"; then
1942   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1943 else
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945 for as_dir in $PATH
1946 do
1947   IFS=$as_save_IFS
1948   test -z "$as_dir" && as_dir=.
1949   for ac_exec_ext in '' $ac_executable_extensions; do
1950   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1951     ac_cv_prog_ac_ct_CC="cc"
1952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953     break 2
1954   fi
1955 done
1956 done
1957
1958 fi
1959 fi
1960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1961 if test -n "$ac_ct_CC"; then
1962   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1963 echo "${ECHO_T}$ac_ct_CC" >&6
1964 else
1965   echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6
1967 fi
1968
1969   CC=$ac_ct_CC
1970 else
1971   CC="$ac_cv_prog_CC"
1972 fi
1973
1974 fi
1975 if test -z "$CC"; then
1976   # Extract the first word of "cc", so it can be a program name with args.
1977 set dummy cc; ac_word=$2
1978 echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980 if test "${ac_cv_prog_CC+set}" = set; then
1981   echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983   if test -n "$CC"; then
1984   ac_cv_prog_CC="$CC" # Let the user override the test.
1985 else
1986   ac_prog_rejected=no
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1989 do
1990   IFS=$as_save_IFS
1991   test -z "$as_dir" && as_dir=.
1992   for ac_exec_ext in '' $ac_executable_extensions; do
1993   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1995        ac_prog_rejected=yes
1996        continue
1997      fi
1998     ac_cv_prog_CC="cc"
1999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000     break 2
2001   fi
2002 done
2003 done
2004
2005 if test $ac_prog_rejected = yes; then
2006   # We found a bogon in the path, so make sure we never use it.
2007   set dummy $ac_cv_prog_CC
2008   shift
2009   if test $# != 0; then
2010     # We chose a different compiler from the bogus one.
2011     # However, it has the same basename, so the bogon will be chosen
2012     # first if we set CC to just the basename; use the full file name.
2013     shift
2014     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2015   fi
2016 fi
2017 fi
2018 fi
2019 CC=$ac_cv_prog_CC
2020 if test -n "$CC"; then
2021   echo "$as_me:$LINENO: result: $CC" >&5
2022 echo "${ECHO_T}$CC" >&6
2023 else
2024   echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6
2026 fi
2027
2028 fi
2029 if test -z "$CC"; then
2030   if test -n "$ac_tool_prefix"; then
2031   for ac_prog in cl
2032   do
2033     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2034 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2035 echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037 if test "${ac_cv_prog_CC+set}" = set; then
2038   echo $ECHO_N "(cached) $ECHO_C" >&6
2039 else
2040   if test -n "$CC"; then
2041   ac_cv_prog_CC="$CC" # Let the user override the test.
2042 else
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 for as_dir in $PATH
2045 do
2046   IFS=$as_save_IFS
2047   test -z "$as_dir" && as_dir=.
2048   for ac_exec_ext in '' $ac_executable_extensions; do
2049   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052     break 2
2053   fi
2054 done
2055 done
2056
2057 fi
2058 fi
2059 CC=$ac_cv_prog_CC
2060 if test -n "$CC"; then
2061   echo "$as_me:$LINENO: result: $CC" >&5
2062 echo "${ECHO_T}$CC" >&6
2063 else
2064   echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6
2066 fi
2067
2068     test -n "$CC" && break
2069   done
2070 fi
2071 if test -z "$CC"; then
2072   ac_ct_CC=$CC
2073   for ac_prog in cl
2074 do
2075   # Extract the first word of "$ac_prog", so it can be a program name with args.
2076 set dummy $ac_prog; ac_word=$2
2077 echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2079 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2080   echo $ECHO_N "(cached) $ECHO_C" >&6
2081 else
2082   if test -n "$ac_ct_CC"; then
2083   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2084 else
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2087 do
2088   IFS=$as_save_IFS
2089   test -z "$as_dir" && as_dir=.
2090   for ac_exec_ext in '' $ac_executable_extensions; do
2091   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092     ac_cv_prog_ac_ct_CC="$ac_prog"
2093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094     break 2
2095   fi
2096 done
2097 done
2098
2099 fi
2100 fi
2101 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2102 if test -n "$ac_ct_CC"; then
2103   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2104 echo "${ECHO_T}$ac_ct_CC" >&6
2105 else
2106   echo "$as_me:$LINENO: result: no" >&5
2107 echo "${ECHO_T}no" >&6
2108 fi
2109
2110   test -n "$ac_ct_CC" && break
2111 done
2112
2113   CC=$ac_ct_CC
2114 fi
2115
2116 fi
2117
2118
2119 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2120 See \`config.log' for more details." >&5
2121 echo "$as_me: error: no acceptable C compiler found in \$PATH
2122 See \`config.log' for more details." >&2;}
2123    { (exit 1); exit 1; }; }
2124
2125 # Provide some information about the compiler.
2126 echo "$as_me:$LINENO:" \
2127      "checking for C compiler version" >&5
2128 ac_compiler=`set X $ac_compile; echo $2`
2129 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2130   (eval $ac_compiler --version </dev/null >&5) 2>&5
2131   ac_status=$?
2132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133   (exit $ac_status); }
2134 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2135   (eval $ac_compiler -v </dev/null >&5) 2>&5
2136   ac_status=$?
2137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138   (exit $ac_status); }
2139 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2140   (eval $ac_compiler -V </dev/null >&5) 2>&5
2141   ac_status=$?
2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143   (exit $ac_status); }
2144
2145 cat >conftest.$ac_ext <<_ACEOF
2146 /* confdefs.h.  */
2147 _ACEOF
2148 cat confdefs.h >>conftest.$ac_ext
2149 cat >>conftest.$ac_ext <<_ACEOF
2150 /* end confdefs.h.  */
2151
2152 int
2153 main ()
2154 {
2155
2156   ;
2157   return 0;
2158 }
2159 _ACEOF
2160 ac_clean_files_save=$ac_clean_files
2161 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2162 # Try to create an executable without -o first, disregard a.out.
2163 # It will help us diagnose broken compilers, and finding out an intuition
2164 # of exeext.
2165 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2166 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2167 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2168 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2169   (eval $ac_link_default) 2>&5
2170   ac_status=$?
2171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172   (exit $ac_status); }; then
2173   # Find the output, starting from the most likely.  This scheme is
2174 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2175 # resort.
2176
2177 # Be careful to initialize this variable, since it used to be cached.
2178 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2179 ac_cv_exeext=
2180 # b.out is created by i960 compilers.
2181 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2182 do
2183   test -f "$ac_file" || continue
2184   case $ac_file in
2185     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2186         ;;
2187     conftest.$ac_ext )
2188         # This is the source file.
2189         ;;
2190     [ab].out )
2191         # We found the default executable, but exeext='' is most
2192         # certainly right.
2193         break;;
2194     *.* )
2195         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196         # FIXME: I believe we export ac_cv_exeext for Libtool,
2197         # but it would be cool to find out if it's true.  Does anybody
2198         # maintain Libtool? --akim.
2199         export ac_cv_exeext
2200         break;;
2201     * )
2202         break;;
2203   esac
2204 done
2205 else
2206   echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2208
2209 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2210 See \`config.log' for more details." >&5
2211 echo "$as_me: error: C compiler cannot create executables
2212 See \`config.log' for more details." >&2;}
2213    { (exit 77); exit 77; }; }
2214 fi
2215
2216 ac_exeext=$ac_cv_exeext
2217 echo "$as_me:$LINENO: result: $ac_file" >&5
2218 echo "${ECHO_T}$ac_file" >&6
2219
2220 # Check the compiler produces executables we can run.  If not, either
2221 # the compiler is broken, or we cross compile.
2222 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2223 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2224 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2225 # If not cross compiling, check that we can run a simple program.
2226 if test "$cross_compiling" != yes; then
2227   if { ac_try='./$ac_file'
2228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229   (eval $ac_try) 2>&5
2230   ac_status=$?
2231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232   (exit $ac_status); }; }; then
2233     cross_compiling=no
2234   else
2235     if test "$cross_compiling" = maybe; then
2236         cross_compiling=yes
2237     else
2238         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2239 If you meant to cross compile, use \`--host'.
2240 See \`config.log' for more details." >&5
2241 echo "$as_me: error: cannot run C compiled programs.
2242 If you meant to cross compile, use \`--host'.
2243 See \`config.log' for more details." >&2;}
2244    { (exit 1); exit 1; }; }
2245     fi
2246   fi
2247 fi
2248 echo "$as_me:$LINENO: result: yes" >&5
2249 echo "${ECHO_T}yes" >&6
2250
2251 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2252 ac_clean_files=$ac_clean_files_save
2253 # Check the compiler produces executables we can run.  If not, either
2254 # the compiler is broken, or we cross compile.
2255 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2256 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2257 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2258 echo "${ECHO_T}$cross_compiling" >&6
2259
2260 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2261 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2263   (eval $ac_link) 2>&5
2264   ac_status=$?
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); }; then
2267   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2268 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2269 # work properly (i.e., refer to `conftest.exe'), while it won't with
2270 # `rm'.
2271 for ac_file in conftest.exe conftest conftest.*; do
2272   test -f "$ac_file" || continue
2273   case $ac_file in
2274     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2275     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2276           export ac_cv_exeext
2277           break;;
2278     * ) break;;
2279   esac
2280 done
2281 else
2282   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2283 See \`config.log' for more details." >&5
2284 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2285 See \`config.log' for more details." >&2;}
2286    { (exit 1); exit 1; }; }
2287 fi
2288
2289 rm -f conftest$ac_cv_exeext
2290 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2291 echo "${ECHO_T}$ac_cv_exeext" >&6
2292
2293 rm -f conftest.$ac_ext
2294 EXEEXT=$ac_cv_exeext
2295 ac_exeext=$EXEEXT
2296 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2297 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2298 if test "${ac_cv_objext+set}" = set; then
2299   echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301   cat >conftest.$ac_ext <<_ACEOF
2302 /* confdefs.h.  */
2303 _ACEOF
2304 cat confdefs.h >>conftest.$ac_ext
2305 cat >>conftest.$ac_ext <<_ACEOF
2306 /* end confdefs.h.  */
2307
2308 int
2309 main ()
2310 {
2311
2312   ;
2313   return 0;
2314 }
2315 _ACEOF
2316 rm -f conftest.o conftest.obj
2317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318   (eval $ac_compile) 2>&5
2319   ac_status=$?
2320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321   (exit $ac_status); }; then
2322   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2323   case $ac_file in
2324     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2325     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2326        break;;
2327   esac
2328 done
2329 else
2330   echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2332
2333 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2334 See \`config.log' for more details." >&5
2335 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2336 See \`config.log' for more details." >&2;}
2337    { (exit 1); exit 1; }; }
2338 fi
2339
2340 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2341 fi
2342 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2343 echo "${ECHO_T}$ac_cv_objext" >&6
2344 OBJEXT=$ac_cv_objext
2345 ac_objext=$OBJEXT
2346 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2347 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2348 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2349   echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351   cat >conftest.$ac_ext <<_ACEOF
2352 /* confdefs.h.  */
2353 _ACEOF
2354 cat confdefs.h >>conftest.$ac_ext
2355 cat >>conftest.$ac_ext <<_ACEOF
2356 /* end confdefs.h.  */
2357
2358 int
2359 main ()
2360 {
2361 #ifndef __GNUC__
2362        choke me
2363 #endif
2364
2365   ;
2366   return 0;
2367 }
2368 _ACEOF
2369 rm -f conftest.$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371   (eval $ac_compile) 2>conftest.er1
2372   ac_status=$?
2373   grep -v '^ *+' conftest.er1 >conftest.err
2374   rm -f conftest.er1
2375   cat conftest.err >&5
2376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377   (exit $ac_status); } &&
2378          { ac_try='test -z "$ac_c_werror_flag"
2379                          || test ! -s conftest.err'
2380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381   (eval $ac_try) 2>&5
2382   ac_status=$?
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); }; } &&
2385          { ac_try='test -s conftest.$ac_objext'
2386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387   (eval $ac_try) 2>&5
2388   ac_status=$?
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); }; }; then
2391   ac_compiler_gnu=yes
2392 else
2393   echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2395
2396 ac_compiler_gnu=no
2397 fi
2398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2399 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2400
2401 fi
2402 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2403 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2404 GCC=`test $ac_compiler_gnu = yes && echo yes`
2405 ac_test_CFLAGS=${CFLAGS+set}
2406 ac_save_CFLAGS=$CFLAGS
2407 CFLAGS="-g"
2408 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2409 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2410 if test "${ac_cv_prog_cc_g+set}" = set; then
2411   echo $ECHO_N "(cached) $ECHO_C" >&6
2412 else
2413   cat >conftest.$ac_ext <<_ACEOF
2414 /* confdefs.h.  */
2415 _ACEOF
2416 cat confdefs.h >>conftest.$ac_ext
2417 cat >>conftest.$ac_ext <<_ACEOF
2418 /* end confdefs.h.  */
2419
2420 int
2421 main ()
2422 {
2423
2424   ;
2425   return 0;
2426 }
2427 _ACEOF
2428 rm -f conftest.$ac_objext
2429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430   (eval $ac_compile) 2>conftest.er1
2431   ac_status=$?
2432   grep -v '^ *+' conftest.er1 >conftest.err
2433   rm -f conftest.er1
2434   cat conftest.err >&5
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); } &&
2437          { ac_try='test -z "$ac_c_werror_flag"
2438                          || test ! -s conftest.err'
2439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440   (eval $ac_try) 2>&5
2441   ac_status=$?
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); }; } &&
2444          { ac_try='test -s conftest.$ac_objext'
2445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446   (eval $ac_try) 2>&5
2447   ac_status=$?
2448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449   (exit $ac_status); }; }; then
2450   ac_cv_prog_cc_g=yes
2451 else
2452   echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2454
2455 ac_cv_prog_cc_g=no
2456 fi
2457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458 fi
2459 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2460 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2461 if test "$ac_test_CFLAGS" = set; then
2462   CFLAGS=$ac_save_CFLAGS
2463 elif test $ac_cv_prog_cc_g = yes; then
2464   if test "$GCC" = yes; then
2465     CFLAGS="-g -O2"
2466   else
2467     CFLAGS="-g"
2468   fi
2469 else
2470   if test "$GCC" = yes; then
2471     CFLAGS="-O2"
2472   else
2473     CFLAGS=
2474   fi
2475 fi
2476 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2477 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2478 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2479   echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481   ac_cv_prog_cc_stdc=no
2482 ac_save_CC=$CC
2483 cat >conftest.$ac_ext <<_ACEOF
2484 /* confdefs.h.  */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h.  */
2489 #include <stdarg.h>
2490 #include <stdio.h>
2491 #include <sys/types.h>
2492 #include <sys/stat.h>
2493 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2494 struct buf { int x; };
2495 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2496 static char *e (p, i)
2497      char **p;
2498      int i;
2499 {
2500   return p[i];
2501 }
2502 static char *f (char * (*g) (char **, int), char **p, ...)
2503 {
2504   char *s;
2505   va_list v;
2506   va_start (v,p);
2507   s = g (p, va_arg (v,int));
2508   va_end (v);
2509   return s;
2510 }
2511
2512 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2513    function prototypes and stuff, but not '\xHH' hex character constants.
2514    These don't provoke an error unfortunately, instead are silently treated
2515    as 'x'.  The following induces an error, until -std1 is added to get
2516    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2517    array size at least.  It's necessary to write '\x00'==0 to get something
2518    that's true only with -std1.  */
2519 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2520
2521 int test (int i, double x);
2522 struct s1 {int (*f) (int a);};
2523 struct s2 {int (*f) (double a);};
2524 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2525 int argc;
2526 char **argv;
2527 int
2528 main ()
2529 {
2530 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2531   ;
2532   return 0;
2533 }
2534 _ACEOF
2535 # Don't try gcc -ansi; that turns off useful extensions and
2536 # breaks some systems' header files.
2537 # AIX                   -qlanglvl=ansi
2538 # Ultrix and OSF/1      -std1
2539 # HP-UX 10.20 and later -Ae
2540 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2541 # SVR4                  -Xc -D__EXTENSIONS__
2542 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2543 do
2544   CC="$ac_save_CC $ac_arg"
2545   rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547   (eval $ac_compile) 2>conftest.er1
2548   ac_status=$?
2549   grep -v '^ *+' conftest.er1 >conftest.err
2550   rm -f conftest.er1
2551   cat conftest.err >&5
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); } &&
2554          { ac_try='test -z "$ac_c_werror_flag"
2555                          || test ! -s conftest.err'
2556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557   (eval $ac_try) 2>&5
2558   ac_status=$?
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); }; } &&
2561          { ac_try='test -s conftest.$ac_objext'
2562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563   (eval $ac_try) 2>&5
2564   ac_status=$?
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); }; }; then
2567   ac_cv_prog_cc_stdc=$ac_arg
2568 break
2569 else
2570   echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2572
2573 fi
2574 rm -f conftest.err conftest.$ac_objext
2575 done
2576 rm -f conftest.$ac_ext conftest.$ac_objext
2577 CC=$ac_save_CC
2578
2579 fi
2580
2581 case "x$ac_cv_prog_cc_stdc" in
2582   x|xno)
2583     echo "$as_me:$LINENO: result: none needed" >&5
2584 echo "${ECHO_T}none needed" >&6 ;;
2585   *)
2586     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2587 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2588     CC="$CC $ac_cv_prog_cc_stdc" ;;
2589 esac
2590
2591 # Some people use a C++ compiler to compile C.  Since we use `exit',
2592 # in C++ we need to declare it.  In case someone uses the same compiler
2593 # for both compiling C and C++ we need to have the C++ compiler decide
2594 # the declaration of exit, since it's the most demanding environment.
2595 cat >conftest.$ac_ext <<_ACEOF
2596 #ifndef __cplusplus
2597   choke me
2598 #endif
2599 _ACEOF
2600 rm -f conftest.$ac_objext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602   (eval $ac_compile) 2>conftest.er1
2603   ac_status=$?
2604   grep -v '^ *+' conftest.er1 >conftest.err
2605   rm -f conftest.er1
2606   cat conftest.err >&5
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); } &&
2609          { ac_try='test -z "$ac_c_werror_flag"
2610                          || test ! -s conftest.err'
2611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612   (eval $ac_try) 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); }; } &&
2616          { ac_try='test -s conftest.$ac_objext'
2617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618   (eval $ac_try) 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; }; then
2622   for ac_declaration in \
2623    '' \
2624    'extern "C" void std::exit (int) throw (); using std::exit;' \
2625    'extern "C" void std::exit (int); using std::exit;' \
2626    'extern "C" void exit (int) throw ();' \
2627    'extern "C" void exit (int);' \
2628    'void exit (int);'
2629 do
2630   cat >conftest.$ac_ext <<_ACEOF
2631 /* confdefs.h.  */
2632 _ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h.  */
2636 $ac_declaration
2637 #include <stdlib.h>
2638 int
2639 main ()
2640 {
2641 exit (42);
2642   ;
2643   return 0;
2644 }
2645 _ACEOF
2646 rm -f conftest.$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648   (eval $ac_compile) 2>conftest.er1
2649   ac_status=$?
2650   grep -v '^ *+' conftest.er1 >conftest.err
2651   rm -f conftest.er1
2652   cat conftest.err >&5
2653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654   (exit $ac_status); } &&
2655          { ac_try='test -z "$ac_c_werror_flag"
2656                          || test ! -s conftest.err'
2657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658   (eval $ac_try) 2>&5
2659   ac_status=$?
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }; } &&
2662          { ac_try='test -s conftest.$ac_objext'
2663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664   (eval $ac_try) 2>&5
2665   ac_status=$?
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); }; }; then
2668   :
2669 else
2670   echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2672
2673 continue
2674 fi
2675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2676   cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h.  */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h.  */
2682 $ac_declaration
2683 int
2684 main ()
2685 {
2686 exit (42);
2687   ;
2688   return 0;
2689 }
2690 _ACEOF
2691 rm -f conftest.$ac_objext
2692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693   (eval $ac_compile) 2>conftest.er1
2694   ac_status=$?
2695   grep -v '^ *+' conftest.er1 >conftest.err
2696   rm -f conftest.er1
2697   cat conftest.err >&5
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); } &&
2700          { ac_try='test -z "$ac_c_werror_flag"
2701                          || test ! -s conftest.err'
2702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703   (eval $ac_try) 2>&5
2704   ac_status=$?
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); }; } &&
2707          { ac_try='test -s conftest.$ac_objext'
2708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709   (eval $ac_try) 2>&5
2710   ac_status=$?
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); }; }; then
2713   break
2714 else
2715   echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718 fi
2719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2720 done
2721 rm -f conftest*
2722 if test -n "$ac_declaration"; then
2723   echo '#ifdef __cplusplus' >>confdefs.h
2724   echo $ac_declaration      >>confdefs.h
2725   echo '#endif'             >>confdefs.h
2726 fi
2727
2728 else
2729   echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2731
2732 fi
2733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2734 ac_ext=c
2735 ac_cpp='$CPP $CPPFLAGS'
2736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739
2740
2741 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2742 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2743 if test "${ac_cv_c_bigendian+set}" = set; then
2744   echo $ECHO_N "(cached) $ECHO_C" >&6
2745 else
2746   # See if sys/param.h defines the BYTE_ORDER macro.
2747 cat >conftest.$ac_ext <<_ACEOF
2748 /* confdefs.h.  */
2749 _ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h.  */
2753 #include <sys/types.h>
2754 #include <sys/param.h>
2755
2756 int
2757 main ()
2758 {
2759 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2760  bogus endian macros
2761 #endif
2762
2763   ;
2764   return 0;
2765 }
2766 _ACEOF
2767 rm -f conftest.$ac_objext
2768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2769   (eval $ac_compile) 2>conftest.er1
2770   ac_status=$?
2771   grep -v '^ *+' conftest.er1 >conftest.err
2772   rm -f conftest.er1
2773   cat conftest.err >&5
2774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775   (exit $ac_status); } &&
2776          { ac_try='test -z "$ac_c_werror_flag"
2777                          || test ! -s conftest.err'
2778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779   (eval $ac_try) 2>&5
2780   ac_status=$?
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); }; } &&
2783          { ac_try='test -s conftest.$ac_objext'
2784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785   (eval $ac_try) 2>&5
2786   ac_status=$?
2787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788   (exit $ac_status); }; }; then
2789   # It does; now see whether it defined to BIG_ENDIAN or not.
2790 cat >conftest.$ac_ext <<_ACEOF
2791 /* confdefs.h.  */
2792 _ACEOF
2793 cat confdefs.h >>conftest.$ac_ext
2794 cat >>conftest.$ac_ext <<_ACEOF
2795 /* end confdefs.h.  */
2796 #include <sys/types.h>
2797 #include <sys/param.h>
2798
2799 int
2800 main ()
2801 {
2802 #if BYTE_ORDER != BIG_ENDIAN
2803  not big endian
2804 #endif
2805
2806   ;
2807   return 0;
2808 }
2809 _ACEOF
2810 rm -f conftest.$ac_objext
2811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2812   (eval $ac_compile) 2>conftest.er1
2813   ac_status=$?
2814   grep -v '^ *+' conftest.er1 >conftest.err
2815   rm -f conftest.er1
2816   cat conftest.err >&5
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); } &&
2819          { ac_try='test -z "$ac_c_werror_flag"
2820                          || test ! -s conftest.err'
2821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822   (eval $ac_try) 2>&5
2823   ac_status=$?
2824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825   (exit $ac_status); }; } &&
2826          { ac_try='test -s conftest.$ac_objext'
2827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828   (eval $ac_try) 2>&5
2829   ac_status=$?
2830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831   (exit $ac_status); }; }; then
2832   ac_cv_c_bigendian=yes
2833 else
2834   echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2836
2837 ac_cv_c_bigendian=no
2838 fi
2839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2840 else
2841   echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2843
2844 # It does not; compile a test program.
2845 if test "$cross_compiling" = yes; then
2846   # try to guess the endianness by grepping values into an object file
2847   ac_cv_c_bigendian=unknown
2848   cat >conftest.$ac_ext <<_ACEOF
2849 /* confdefs.h.  */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h.  */
2854 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2855 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2856 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2857 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2858 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2859 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2860 int
2861 main ()
2862 {
2863  _ascii (); _ebcdic ();
2864   ;
2865   return 0;
2866 }
2867 _ACEOF
2868 rm -f conftest.$ac_objext
2869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2870   (eval $ac_compile) 2>conftest.er1
2871   ac_status=$?
2872   grep -v '^ *+' conftest.er1 >conftest.err
2873   rm -f conftest.er1
2874   cat conftest.err >&5
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); } &&
2877          { ac_try='test -z "$ac_c_werror_flag"
2878                          || test ! -s conftest.err'
2879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880   (eval $ac_try) 2>&5
2881   ac_status=$?
2882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883   (exit $ac_status); }; } &&
2884          { ac_try='test -s conftest.$ac_objext'
2885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886   (eval $ac_try) 2>&5
2887   ac_status=$?
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); }; }; then
2890   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2891   ac_cv_c_bigendian=yes
2892 fi
2893 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2894   if test "$ac_cv_c_bigendian" = unknown; then
2895     ac_cv_c_bigendian=no
2896   else
2897     # finding both strings is unlikely to happen, but who knows?
2898     ac_cv_c_bigendian=unknown
2899   fi
2900 fi
2901 else
2902   echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2904
2905 fi
2906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2907 else
2908   cat >conftest.$ac_ext <<_ACEOF
2909 /* confdefs.h.  */
2910 _ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h.  */
2914 int
2915 main ()
2916 {
2917   /* Are we little or big endian?  From Harbison&Steele.  */
2918   union
2919   {
2920     long l;
2921     char c[sizeof (long)];
2922   } u;
2923   u.l = 1;
2924   exit (u.c[sizeof (long) - 1] == 1);
2925 }
2926 _ACEOF
2927 rm -f conftest$ac_exeext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2929   (eval $ac_link) 2>&5
2930   ac_status=$?
2931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934   (eval $ac_try) 2>&5
2935   ac_status=$?
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); }; }; then
2938   ac_cv_c_bigendian=no
2939 else
2940   echo "$as_me: program exited with status $ac_status" >&5
2941 echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2943
2944 ( exit $ac_status )
2945 ac_cv_c_bigendian=yes
2946 fi
2947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2948 fi
2949 fi
2950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2951 fi
2952 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2953 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2954 case $ac_cv_c_bigendian in
2955   yes)
2956     ENDIAN=big
2957  ;;
2958   no)
2959     ENDIAN=little
2960  ;;
2961   *)
2962     { { echo "$as_me:$LINENO: error: unknown endianness
2963 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2964 echo "$as_me: error: unknown endianness
2965 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2966    { (exit 1); exit 1; }; } ;;
2967 esac
2968
2969
2970
2971 # Check whether --enable-optimized or --disable-optimized was given.
2972 if test "${enable_optimized+set}" = set; then
2973   enableval="$enable_optimized"
2974
2975 else
2976   enableval=no
2977 fi;
2978 if test ${enableval} = "no" ; then
2979   ENABLE_OPTIMIZED=
2980
2981 else
2982   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2983
2984 fi
2985
2986 # Check whether --enable-debug-runtime or --disable-debug-runtime was given.
2987 if test "${enable_debug_runtime+set}" = set; then
2988   enableval="$enable_debug_runtime"
2989
2990 else
2991   enableval=no
2992 fi;
2993 if test ${enableval} = "no" ; then
2994   DEBUG_RUNTIME=
2995
2996 else
2997   DEBUG_RUNTIME=DEBUG_RUNTIME=1
2998
2999 fi
3000
3001 # Check whether --enable-jit or --disable-jit was given.
3002 if test "${enable_jit+set}" = set; then
3003   enableval="$enable_jit"
3004
3005 else
3006   enableval=default
3007 fi;
3008 if test ${enableval} = "no"
3009 then
3010   JIT=
3011
3012 else
3013   case "$llvm_cv_target_arch" in
3014     x86)     JIT=TARGET_HAS_JIT=1
3015  ;;
3016     Sparc)   JIT=TARGET_HAS_JIT=1
3017  ;;
3018     PowerPC) JIT=TARGET_HAS_JIT=1
3019  ;;
3020     x86_64)  JIT=
3021  ;;
3022     Alpha)   JIT=TARGET_HAS_JIT=1
3023  ;;
3024     IA64)    JIT=
3025  ;;
3026     *)       JIT=
3027  ;;
3028   esac
3029 fi
3030
3031 # Check whether --enable-doxygen or --disable-doxygen was given.
3032 if test "${enable_doxygen+set}" = set; then
3033   enableval="$enable_doxygen"
3034
3035 else
3036   enableval=default
3037 fi;
3038 case "$enableval" in
3039   yes) ENABLE_DOXYGEN=1
3040  ;;
3041   no)  ENABLE_DOXYGEN=0
3042  ;;
3043   default) ENABLE_DOXYGEN=0
3044  ;;
3045   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3046 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3047    { (exit 1); exit 1; }; } ;;
3048 esac
3049
3050 # Check whether --enable-threads or --disable-threads was given.
3051 if test "${enable_threads+set}" = set; then
3052   enableval="$enable_threads"
3053
3054 else
3055   enableval=yes
3056 fi;
3057 case "$enableval" in
3058   yes) ENABLE_THREADS=1
3059  ;;
3060   no)  ENABLE_THREADS=0
3061  ;;
3062   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3063 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3064    { (exit 1); exit 1; }; } ;;
3065 esac
3066
3067 cat >>confdefs.h <<_ACEOF
3068 #define ENABLE_THREADS $ENABLE_THREADS
3069 _ACEOF
3070
3071
3072 TARGETS_TO_BUILD=""
3073 # Check whether --enable-targets or --disable-targets was given.
3074 if test "${enable_targets+set}" = set; then
3075   enableval="$enable_targets"
3076
3077 else
3078   enableval=all
3079 fi;
3080 case "$enableval" in
3081   all) TARGETS_TO_BUILD="X86 Sparc SparcV9 PowerPC Alpha IA64 Skeleton" ;;
3082   host-only)
3083     case "$llvm_cv_target_arch" in
3084       x86)     TARGETS_TO_BUILD="X86" ;;
3085       x86_64)  TARGETS_TO_BUILD="X86" ;;
3086       Sparc)   TARGETS_TO_BUILD="Sparc SparcV9" ;;
3087       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3088       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
3089       IA64)    TARGETS_TO_BUILD="IA64" ;;
3090       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3091 echo "$as_me: error: Can not set target to build" >&2;}
3092    { (exit 1); exit 1; }; } ;;
3093     esac
3094     ;;
3095   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3096       case "$a_target" in
3097         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3098         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3099         sparc)   TARGETS_TO_BUILD="Sparc SparcV9 $TARGETS_TO_BUILD" ;;
3100         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3101         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3102         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3103         skeleton)TARGETS_TO_BUILD="Skeleton $TARGETS_TO_BUILD";;
3104         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3105 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3106    { (exit 1); exit 1; }; } ;;
3107       esac
3108   done
3109   ;;
3110 esac
3111 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3112 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3113
3114
3115
3116 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3117 if test "${with_llvmgccdir+set}" = set; then
3118   withval="$with_llvmgccdir"
3119
3120 else
3121   withval=default
3122 fi;
3123 case "$withval" in
3124   default) WITH_LLVMGCCDIR=default ;;
3125   /*)      WITH_LLVMGCCDIR=$withval ;;
3126   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3127 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3128    { (exit 1); exit 1; }; } ;;
3129 esac
3130
3131
3132
3133 ac_ext=c
3134 ac_cpp='$CPP $CPPFLAGS'
3135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3139 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3140 # On Suns, sometimes $CPP names a directory.
3141 if test -n "$CPP" && test -d "$CPP"; then
3142   CPP=
3143 fi
3144 if test -z "$CPP"; then
3145   if test "${ac_cv_prog_CPP+set}" = set; then
3146   echo $ECHO_N "(cached) $ECHO_C" >&6
3147 else
3148       # Double quotes because CPP needs to be expanded
3149     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3150     do
3151       ac_preproc_ok=false
3152 for ac_c_preproc_warn_flag in '' yes
3153 do
3154   # Use a header file that comes with gcc, so configuring glibc
3155   # with a fresh cross-compiler works.
3156   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3157   # <limits.h> exists even on freestanding compilers.
3158   # On the NeXT, cc -E runs the code through the compiler's parser,
3159   # not just through cpp. "Syntax error" is here to catch this case.
3160   cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h.  */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h.  */
3166 #ifdef __STDC__
3167 # include <limits.h>
3168 #else
3169 # include <assert.h>
3170 #endif
3171                      Syntax error
3172 _ACEOF
3173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3174   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3175   ac_status=$?
3176   grep -v '^ *+' conftest.er1 >conftest.err
3177   rm -f conftest.er1
3178   cat conftest.err >&5
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); } >/dev/null; then
3181   if test -s conftest.err; then
3182     ac_cpp_err=$ac_c_preproc_warn_flag
3183     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3184   else
3185     ac_cpp_err=
3186   fi
3187 else
3188   ac_cpp_err=yes
3189 fi
3190 if test -z "$ac_cpp_err"; then
3191   :
3192 else
3193   echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196   # Broken: fails on valid input.
3197 continue
3198 fi
3199 rm -f conftest.err conftest.$ac_ext
3200
3201   # OK, works on sane cases.  Now check whether non-existent headers
3202   # can be detected and how.
3203   cat >conftest.$ac_ext <<_ACEOF
3204 /* confdefs.h.  */
3205 _ACEOF
3206 cat confdefs.h >>conftest.$ac_ext
3207 cat >>conftest.$ac_ext <<_ACEOF
3208 /* end confdefs.h.  */
3209 #include <ac_nonexistent.h>
3210 _ACEOF
3211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3212   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3213   ac_status=$?
3214   grep -v '^ *+' conftest.er1 >conftest.err
3215   rm -f conftest.er1
3216   cat conftest.err >&5
3217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); } >/dev/null; then
3219   if test -s conftest.err; then
3220     ac_cpp_err=$ac_c_preproc_warn_flag
3221     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3222   else
3223     ac_cpp_err=
3224   fi
3225 else
3226   ac_cpp_err=yes
3227 fi
3228 if test -z "$ac_cpp_err"; then
3229   # Broken: success on invalid input.
3230 continue
3231 else
3232   echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3234
3235   # Passes both tests.
3236 ac_preproc_ok=:
3237 break
3238 fi
3239 rm -f conftest.err conftest.$ac_ext
3240
3241 done
3242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3243 rm -f conftest.err conftest.$ac_ext
3244 if $ac_preproc_ok; then
3245   break
3246 fi
3247
3248     done
3249     ac_cv_prog_CPP=$CPP
3250
3251 fi
3252   CPP=$ac_cv_prog_CPP
3253 else
3254   ac_cv_prog_CPP=$CPP
3255 fi
3256 echo "$as_me:$LINENO: result: $CPP" >&5
3257 echo "${ECHO_T}$CPP" >&6
3258 ac_preproc_ok=false
3259 for ac_c_preproc_warn_flag in '' yes
3260 do
3261   # Use a header file that comes with gcc, so configuring glibc
3262   # with a fresh cross-compiler works.
3263   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3264   # <limits.h> exists even on freestanding compilers.
3265   # On the NeXT, cc -E runs the code through the compiler's parser,
3266   # not just through cpp. "Syntax error" is here to catch this case.
3267   cat >conftest.$ac_ext <<_ACEOF
3268 /* confdefs.h.  */
3269 _ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h.  */
3273 #ifdef __STDC__
3274 # include <limits.h>
3275 #else
3276 # include <assert.h>
3277 #endif
3278                      Syntax error
3279 _ACEOF
3280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3281   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3282   ac_status=$?
3283   grep -v '^ *+' conftest.er1 >conftest.err
3284   rm -f conftest.er1
3285   cat conftest.err >&5
3286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287   (exit $ac_status); } >/dev/null; then
3288   if test -s conftest.err; then
3289     ac_cpp_err=$ac_c_preproc_warn_flag
3290     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3291   else
3292     ac_cpp_err=
3293   fi
3294 else
3295   ac_cpp_err=yes
3296 fi
3297 if test -z "$ac_cpp_err"; then
3298   :
3299 else
3300   echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3302
3303   # Broken: fails on valid input.
3304 continue
3305 fi
3306 rm -f conftest.err conftest.$ac_ext
3307
3308   # OK, works on sane cases.  Now check whether non-existent headers
3309   # can be detected and how.
3310   cat >conftest.$ac_ext <<_ACEOF
3311 /* confdefs.h.  */
3312 _ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h.  */
3316 #include <ac_nonexistent.h>
3317 _ACEOF
3318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3319   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3320   ac_status=$?
3321   grep -v '^ *+' conftest.er1 >conftest.err
3322   rm -f conftest.er1
3323   cat conftest.err >&5
3324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325   (exit $ac_status); } >/dev/null; then
3326   if test -s conftest.err; then
3327     ac_cpp_err=$ac_c_preproc_warn_flag
3328     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3329   else
3330     ac_cpp_err=
3331   fi
3332 else
3333   ac_cpp_err=yes
3334 fi
3335 if test -z "$ac_cpp_err"; then
3336   # Broken: success on invalid input.
3337 continue
3338 else
3339   echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3341
3342   # Passes both tests.
3343 ac_preproc_ok=:
3344 break
3345 fi
3346 rm -f conftest.err conftest.$ac_ext
3347
3348 done
3349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3350 rm -f conftest.err conftest.$ac_ext
3351 if $ac_preproc_ok; then
3352   :
3353 else
3354   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3355 See \`config.log' for more details." >&5
3356 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3357 See \`config.log' for more details." >&2;}
3358    { (exit 1); exit 1; }; }
3359 fi
3360
3361 ac_ext=c
3362 ac_cpp='$CPP $CPPFLAGS'
3363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366
3367 ac_ext=c
3368 ac_cpp='$CPP $CPPFLAGS'
3369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3372 if test -n "$ac_tool_prefix"; then
3373   for ac_prog in gcc
3374   do
3375     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3376 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3377 echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_prog_CC+set}" = set; then
3380   echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382   if test -n "$CC"; then
3383   ac_cv_prog_CC="$CC" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388   IFS=$as_save_IFS
3389   test -z "$as_dir" && as_dir=.
3390   for ac_exec_ext in '' $ac_executable_extensions; do
3391   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394     break 2
3395   fi
3396 done
3397 done
3398
3399 fi
3400 fi
3401 CC=$ac_cv_prog_CC
3402 if test -n "$CC"; then
3403   echo "$as_me:$LINENO: result: $CC" >&5
3404 echo "${ECHO_T}$CC" >&6
3405 else
3406   echo "$as_me:$LINENO: result: no" >&5
3407 echo "${ECHO_T}no" >&6
3408 fi
3409
3410     test -n "$CC" && break
3411   done
3412 fi
3413 if test -z "$CC"; then
3414   ac_ct_CC=$CC
3415   for ac_prog in gcc
3416 do
3417   # Extract the first word of "$ac_prog", so it can be a program name with args.
3418 set dummy $ac_prog; ac_word=$2
3419 echo "$as_me:$LINENO: checking for $ac_word" >&5
3420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3421 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3422   echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424   if test -n "$ac_ct_CC"; then
3425   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3426 else
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH
3429 do
3430   IFS=$as_save_IFS
3431   test -z "$as_dir" && as_dir=.
3432   for ac_exec_ext in '' $ac_executable_extensions; do
3433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434     ac_cv_prog_ac_ct_CC="$ac_prog"
3435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436     break 2
3437   fi
3438 done
3439 done
3440
3441 fi
3442 fi
3443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3444 if test -n "$ac_ct_CC"; then
3445   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3446 echo "${ECHO_T}$ac_ct_CC" >&6
3447 else
3448   echo "$as_me:$LINENO: result: no" >&5
3449 echo "${ECHO_T}no" >&6
3450 fi
3451
3452   test -n "$ac_ct_CC" && break
3453 done
3454
3455   CC=$ac_ct_CC
3456 fi
3457
3458
3459 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3460 See \`config.log' for more details." >&5
3461 echo "$as_me: error: no acceptable C compiler found in \$PATH
3462 See \`config.log' for more details." >&2;}
3463    { (exit 1); exit 1; }; }
3464
3465 # Provide some information about the compiler.
3466 echo "$as_me:$LINENO:" \
3467      "checking for C compiler version" >&5
3468 ac_compiler=`set X $ac_compile; echo $2`
3469 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3470   (eval $ac_compiler --version </dev/null >&5) 2>&5
3471   ac_status=$?
3472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473   (exit $ac_status); }
3474 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3475   (eval $ac_compiler -v </dev/null >&5) 2>&5
3476   ac_status=$?
3477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478   (exit $ac_status); }
3479 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3480   (eval $ac_compiler -V </dev/null >&5) 2>&5
3481   ac_status=$?
3482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483   (exit $ac_status); }
3484
3485 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3486 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3487 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3488   echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490   cat >conftest.$ac_ext <<_ACEOF
3491 /* confdefs.h.  */
3492 _ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h.  */
3496
3497 int
3498 main ()
3499 {
3500 #ifndef __GNUC__
3501        choke me
3502 #endif
3503
3504   ;
3505   return 0;
3506 }
3507 _ACEOF
3508 rm -f conftest.$ac_objext
3509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3510   (eval $ac_compile) 2>conftest.er1
3511   ac_status=$?
3512   grep -v '^ *+' conftest.er1 >conftest.err
3513   rm -f conftest.er1
3514   cat conftest.err >&5
3515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516   (exit $ac_status); } &&
3517          { ac_try='test -z "$ac_c_werror_flag"
3518                          || test ! -s conftest.err'
3519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520   (eval $ac_try) 2>&5
3521   ac_status=$?
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); }; } &&
3524          { ac_try='test -s conftest.$ac_objext'
3525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526   (eval $ac_try) 2>&5
3527   ac_status=$?
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); }; }; then
3530   ac_compiler_gnu=yes
3531 else
3532   echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535 ac_compiler_gnu=no
3536 fi
3537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3538 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3539
3540 fi
3541 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3542 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3543 GCC=`test $ac_compiler_gnu = yes && echo yes`
3544 ac_test_CFLAGS=${CFLAGS+set}
3545 ac_save_CFLAGS=$CFLAGS
3546 CFLAGS="-g"
3547 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3548 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3549 if test "${ac_cv_prog_cc_g+set}" = set; then
3550   echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552   cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h.  */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h.  */
3558
3559 int
3560 main ()
3561 {
3562
3563   ;
3564   return 0;
3565 }
3566 _ACEOF
3567 rm -f conftest.$ac_objext
3568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3569   (eval $ac_compile) 2>conftest.er1
3570   ac_status=$?
3571   grep -v '^ *+' conftest.er1 >conftest.err
3572   rm -f conftest.er1
3573   cat conftest.err >&5
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); } &&
3576          { ac_try='test -z "$ac_c_werror_flag"
3577                          || test ! -s conftest.err'
3578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3579   (eval $ac_try) 2>&5
3580   ac_status=$?
3581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582   (exit $ac_status); }; } &&
3583          { ac_try='test -s conftest.$ac_objext'
3584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585   (eval $ac_try) 2>&5
3586   ac_status=$?
3587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588   (exit $ac_status); }; }; then
3589   ac_cv_prog_cc_g=yes
3590 else
3591   echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3593
3594 ac_cv_prog_cc_g=no
3595 fi
3596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3597 fi
3598 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3599 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3600 if test "$ac_test_CFLAGS" = set; then
3601   CFLAGS=$ac_save_CFLAGS
3602 elif test $ac_cv_prog_cc_g = yes; then
3603   if test "$GCC" = yes; then
3604     CFLAGS="-g -O2"
3605   else
3606     CFLAGS="-g"
3607   fi
3608 else
3609   if test "$GCC" = yes; then
3610     CFLAGS="-O2"
3611   else
3612     CFLAGS=
3613   fi
3614 fi
3615 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3616 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3617 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3618   echo $ECHO_N "(cached) $ECHO_C" >&6
3619 else
3620   ac_cv_prog_cc_stdc=no
3621 ac_save_CC=$CC
3622 cat >conftest.$ac_ext <<_ACEOF
3623 /* confdefs.h.  */
3624 _ACEOF
3625 cat confdefs.h >>conftest.$ac_ext
3626 cat >>conftest.$ac_ext <<_ACEOF
3627 /* end confdefs.h.  */
3628 #include <stdarg.h>
3629 #include <stdio.h>
3630 #include <sys/types.h>
3631 #include <sys/stat.h>
3632 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3633 struct buf { int x; };
3634 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3635 static char *e (p, i)
3636      char **p;
3637      int i;
3638 {
3639   return p[i];
3640 }
3641 static char *f (char * (*g) (char **, int), char **p, ...)
3642 {
3643   char *s;
3644   va_list v;
3645   va_start (v,p);
3646   s = g (p, va_arg (v,int));
3647   va_end (v);
3648   return s;
3649 }
3650
3651 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3652    function prototypes and stuff, but not '\xHH' hex character constants.
3653    These don't provoke an error unfortunately, instead are silently treated
3654    as 'x'.  The following induces an error, until -std1 is added to get
3655    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3656    array size at least.  It's necessary to write '\x00'==0 to get something
3657    that's true only with -std1.  */
3658 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3659
3660 int test (int i, double x);
3661 struct s1 {int (*f) (int a);};
3662 struct s2 {int (*f) (double a);};
3663 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3664 int argc;
3665 char **argv;
3666 int
3667 main ()
3668 {
3669 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3670   ;
3671   return 0;
3672 }
3673 _ACEOF
3674 # Don't try gcc -ansi; that turns off useful extensions and
3675 # breaks some systems' header files.
3676 # AIX                   -qlanglvl=ansi
3677 # Ultrix and OSF/1      -std1
3678 # HP-UX 10.20 and later -Ae
3679 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3680 # SVR4                  -Xc -D__EXTENSIONS__
3681 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3682 do
3683   CC="$ac_save_CC $ac_arg"
3684   rm -f conftest.$ac_objext
3685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3686   (eval $ac_compile) 2>conftest.er1
3687   ac_status=$?
3688   grep -v '^ *+' conftest.er1 >conftest.err
3689   rm -f conftest.er1
3690   cat conftest.err >&5
3691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692   (exit $ac_status); } &&
3693          { ac_try='test -z "$ac_c_werror_flag"
3694                          || test ! -s conftest.err'
3695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696   (eval $ac_try) 2>&5
3697   ac_status=$?
3698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699   (exit $ac_status); }; } &&
3700          { ac_try='test -s conftest.$ac_objext'
3701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702   (eval $ac_try) 2>&5
3703   ac_status=$?
3704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705   (exit $ac_status); }; }; then
3706   ac_cv_prog_cc_stdc=$ac_arg
3707 break
3708 else
3709   echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3711
3712 fi
3713 rm -f conftest.err conftest.$ac_objext
3714 done
3715 rm -f conftest.$ac_ext conftest.$ac_objext
3716 CC=$ac_save_CC
3717
3718 fi
3719
3720 case "x$ac_cv_prog_cc_stdc" in
3721   x|xno)
3722     echo "$as_me:$LINENO: result: none needed" >&5
3723 echo "${ECHO_T}none needed" >&6 ;;
3724   *)
3725     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3726 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3727     CC="$CC $ac_cv_prog_cc_stdc" ;;
3728 esac
3729
3730 # Some people use a C++ compiler to compile C.  Since we use `exit',
3731 # in C++ we need to declare it.  In case someone uses the same compiler
3732 # for both compiling C and C++ we need to have the C++ compiler decide
3733 # the declaration of exit, since it's the most demanding environment.
3734 cat >conftest.$ac_ext <<_ACEOF
3735 #ifndef __cplusplus
3736   choke me
3737 #endif
3738 _ACEOF
3739 rm -f conftest.$ac_objext
3740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3741   (eval $ac_compile) 2>conftest.er1
3742   ac_status=$?
3743   grep -v '^ *+' conftest.er1 >conftest.err
3744   rm -f conftest.er1
3745   cat conftest.err >&5
3746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747   (exit $ac_status); } &&
3748          { ac_try='test -z "$ac_c_werror_flag"
3749                          || test ! -s conftest.err'
3750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751   (eval $ac_try) 2>&5
3752   ac_status=$?
3753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754   (exit $ac_status); }; } &&
3755          { ac_try='test -s conftest.$ac_objext'
3756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757   (eval $ac_try) 2>&5
3758   ac_status=$?
3759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760   (exit $ac_status); }; }; then
3761   for ac_declaration in \
3762    '' \
3763    'extern "C" void std::exit (int) throw (); using std::exit;' \
3764    'extern "C" void std::exit (int); using std::exit;' \
3765    'extern "C" void exit (int) throw ();' \
3766    'extern "C" void exit (int);' \
3767    'void exit (int);'
3768 do
3769   cat >conftest.$ac_ext <<_ACEOF
3770 /* confdefs.h.  */
3771 _ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h.  */
3775 $ac_declaration
3776 #include <stdlib.h>
3777 int
3778 main ()
3779 {
3780 exit (42);
3781   ;
3782   return 0;
3783 }
3784 _ACEOF
3785 rm -f conftest.$ac_objext
3786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3787   (eval $ac_compile) 2>conftest.er1
3788   ac_status=$?
3789   grep -v '^ *+' conftest.er1 >conftest.err
3790   rm -f conftest.er1
3791   cat conftest.err >&5
3792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793   (exit $ac_status); } &&
3794          { ac_try='test -z "$ac_c_werror_flag"
3795                          || test ! -s conftest.err'
3796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797   (eval $ac_try) 2>&5
3798   ac_status=$?
3799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800   (exit $ac_status); }; } &&
3801          { ac_try='test -s conftest.$ac_objext'
3802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803   (eval $ac_try) 2>&5
3804   ac_status=$?
3805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806   (exit $ac_status); }; }; then
3807   :
3808 else
3809   echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3811
3812 continue
3813 fi
3814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3815   cat >conftest.$ac_ext <<_ACEOF
3816 /* confdefs.h.  */
3817 _ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h.  */
3821 $ac_declaration
3822 int
3823 main ()
3824 {
3825 exit (42);
3826   ;
3827   return 0;
3828 }
3829 _ACEOF
3830 rm -f conftest.$ac_objext
3831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3832   (eval $ac_compile) 2>conftest.er1
3833   ac_status=$?
3834   grep -v '^ *+' conftest.er1 >conftest.err
3835   rm -f conftest.er1
3836   cat conftest.err >&5
3837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838   (exit $ac_status); } &&
3839          { ac_try='test -z "$ac_c_werror_flag"
3840                          || test ! -s conftest.err'
3841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842   (eval $ac_try) 2>&5
3843   ac_status=$?
3844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845   (exit $ac_status); }; } &&
3846          { ac_try='test -s conftest.$ac_objext'
3847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848   (eval $ac_try) 2>&5
3849   ac_status=$?
3850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851   (exit $ac_status); }; }; then
3852   break
3853 else
3854   echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3856
3857 fi
3858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3859 done
3860 rm -f conftest*
3861 if test -n "$ac_declaration"; then
3862   echo '#ifdef __cplusplus' >>confdefs.h
3863   echo $ac_declaration      >>confdefs.h
3864   echo '#endif'             >>confdefs.h
3865 fi
3866
3867 else
3868   echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3870
3871 fi
3872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3873 ac_ext=c
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878
3879 ac_ext=cc
3880 ac_cpp='$CXXCPP $CPPFLAGS'
3881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3884 if test -n "$ac_tool_prefix"; then
3885   for ac_prog in $CCC g++
3886   do
3887     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3888 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3889 echo "$as_me:$LINENO: checking for $ac_word" >&5
3890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3891 if test "${ac_cv_prog_CXX+set}" = set; then
3892   echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894   if test -n "$CXX"; then
3895   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3896 else
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH
3899 do
3900   IFS=$as_save_IFS
3901   test -z "$as_dir" && as_dir=.
3902   for ac_exec_ext in '' $ac_executable_extensions; do
3903   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3904     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3906     break 2
3907   fi
3908 done
3909 done
3910
3911 fi
3912 fi
3913 CXX=$ac_cv_prog_CXX
3914 if test -n "$CXX"; then
3915   echo "$as_me:$LINENO: result: $CXX" >&5
3916 echo "${ECHO_T}$CXX" >&6
3917 else
3918   echo "$as_me:$LINENO: result: no" >&5
3919 echo "${ECHO_T}no" >&6
3920 fi
3921
3922     test -n "$CXX" && break
3923   done
3924 fi
3925 if test -z "$CXX"; then
3926   ac_ct_CXX=$CXX
3927   for ac_prog in $CCC g++
3928 do
3929   # Extract the first word of "$ac_prog", so it can be a program name with args.
3930 set dummy $ac_prog; ac_word=$2
3931 echo "$as_me:$LINENO: checking for $ac_word" >&5
3932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3933 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3934   echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936   if test -n "$ac_ct_CXX"; then
3937   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3938 else
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 for as_dir in $PATH
3941 do
3942   IFS=$as_save_IFS
3943   test -z "$as_dir" && as_dir=.
3944   for ac_exec_ext in '' $ac_executable_extensions; do
3945   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3946     ac_cv_prog_ac_ct_CXX="$ac_prog"
3947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3948     break 2
3949   fi
3950 done
3951 done
3952
3953 fi
3954 fi
3955 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3956 if test -n "$ac_ct_CXX"; then
3957   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3958 echo "${ECHO_T}$ac_ct_CXX" >&6
3959 else
3960   echo "$as_me:$LINENO: result: no" >&5
3961 echo "${ECHO_T}no" >&6
3962 fi
3963
3964   test -n "$ac_ct_CXX" && break
3965 done
3966 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3967
3968   CXX=$ac_ct_CXX
3969 fi
3970
3971
3972 # Provide some information about the compiler.
3973 echo "$as_me:$LINENO:" \
3974      "checking for C++ compiler version" >&5
3975 ac_compiler=`set X $ac_compile; echo $2`
3976 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3977   (eval $ac_compiler --version </dev/null >&5) 2>&5
3978   ac_status=$?
3979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980   (exit $ac_status); }
3981 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3982   (eval $ac_compiler -v </dev/null >&5) 2>&5
3983   ac_status=$?
3984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985   (exit $ac_status); }
3986 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3987   (eval $ac_compiler -V </dev/null >&5) 2>&5
3988   ac_status=$?
3989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990   (exit $ac_status); }
3991
3992 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3993 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3994 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3995   echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997   cat >conftest.$ac_ext <<_ACEOF
3998 /* confdefs.h.  */
3999 _ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h.  */
4003
4004 int
4005 main ()
4006 {
4007 #ifndef __GNUC__
4008        choke me
4009 #endif
4010
4011   ;
4012   return 0;
4013 }
4014 _ACEOF
4015 rm -f conftest.$ac_objext
4016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017   (eval $ac_compile) 2>conftest.er1
4018   ac_status=$?
4019   grep -v '^ *+' conftest.er1 >conftest.err
4020   rm -f conftest.er1
4021   cat conftest.err >&5
4022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023   (exit $ac_status); } &&
4024          { ac_try='test -z "$ac_cxx_werror_flag"
4025                          || test ! -s conftest.err'
4026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027   (eval $ac_try) 2>&5
4028   ac_status=$?
4029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030   (exit $ac_status); }; } &&
4031          { ac_try='test -s conftest.$ac_objext'
4032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033   (eval $ac_try) 2>&5
4034   ac_status=$?
4035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036   (exit $ac_status); }; }; then
4037   ac_compiler_gnu=yes
4038 else
4039   echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4041
4042 ac_compiler_gnu=no
4043 fi
4044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4045 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4046
4047 fi
4048 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4049 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4050 GXX=`test $ac_compiler_gnu = yes && echo yes`
4051 ac_test_CXXFLAGS=${CXXFLAGS+set}
4052 ac_save_CXXFLAGS=$CXXFLAGS
4053 CXXFLAGS="-g"
4054 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4055 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4056 if test "${ac_cv_prog_cxx_g+set}" = set; then
4057   echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059   cat >conftest.$ac_ext <<_ACEOF
4060 /* confdefs.h.  */
4061 _ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h.  */
4065
4066 int
4067 main ()
4068 {
4069
4070   ;
4071   return 0;
4072 }
4073 _ACEOF
4074 rm -f conftest.$ac_objext
4075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076   (eval $ac_compile) 2>conftest.er1
4077   ac_status=$?
4078   grep -v '^ *+' conftest.er1 >conftest.err
4079   rm -f conftest.er1
4080   cat conftest.err >&5
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); } &&
4083          { ac_try='test -z "$ac_cxx_werror_flag"
4084                          || test ! -s conftest.err'
4085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086   (eval $ac_try) 2>&5
4087   ac_status=$?
4088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089   (exit $ac_status); }; } &&
4090          { ac_try='test -s conftest.$ac_objext'
4091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092   (eval $ac_try) 2>&5
4093   ac_status=$?
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); }; }; then
4096   ac_cv_prog_cxx_g=yes
4097 else
4098   echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4100
4101 ac_cv_prog_cxx_g=no
4102 fi
4103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4104 fi
4105 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4106 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4107 if test "$ac_test_CXXFLAGS" = set; then
4108   CXXFLAGS=$ac_save_CXXFLAGS
4109 elif test $ac_cv_prog_cxx_g = yes; then
4110   if test "$GXX" = yes; then
4111     CXXFLAGS="-g -O2"
4112   else
4113     CXXFLAGS="-g"
4114   fi
4115 else
4116   if test "$GXX" = yes; then
4117     CXXFLAGS="-O2"
4118   else
4119     CXXFLAGS=
4120   fi
4121 fi
4122 for ac_declaration in \
4123    '' \
4124    'extern "C" void std::exit (int) throw (); using std::exit;' \
4125    'extern "C" void std::exit (int); using std::exit;' \
4126    'extern "C" void exit (int) throw ();' \
4127    'extern "C" void exit (int);' \
4128    'void exit (int);'
4129 do
4130   cat >conftest.$ac_ext <<_ACEOF
4131 /* confdefs.h.  */
4132 _ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h.  */
4136 $ac_declaration
4137 #include <stdlib.h>
4138 int
4139 main ()
4140 {
4141 exit (42);
4142   ;
4143   return 0;
4144 }
4145 _ACEOF
4146 rm -f conftest.$ac_objext
4147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4148   (eval $ac_compile) 2>conftest.er1
4149   ac_status=$?
4150   grep -v '^ *+' conftest.er1 >conftest.err
4151   rm -f conftest.er1
4152   cat conftest.err >&5
4153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); } &&
4155          { ac_try='test -z "$ac_cxx_werror_flag"
4156                          || test ! -s conftest.err'
4157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158   (eval $ac_try) 2>&5
4159   ac_status=$?
4160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161   (exit $ac_status); }; } &&
4162          { ac_try='test -s conftest.$ac_objext'
4163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164   (eval $ac_try) 2>&5
4165   ac_status=$?
4166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167   (exit $ac_status); }; }; then
4168   :
4169 else
4170   echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4172
4173 continue
4174 fi
4175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4176   cat >conftest.$ac_ext <<_ACEOF
4177 /* confdefs.h.  */
4178 _ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h.  */
4182 $ac_declaration
4183 int
4184 main ()
4185 {
4186 exit (42);
4187   ;
4188   return 0;
4189 }
4190 _ACEOF
4191 rm -f conftest.$ac_objext
4192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4193   (eval $ac_compile) 2>conftest.er1
4194   ac_status=$?
4195   grep -v '^ *+' conftest.er1 >conftest.err
4196   rm -f conftest.er1
4197   cat conftest.err >&5
4198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199   (exit $ac_status); } &&
4200          { ac_try='test -z "$ac_cxx_werror_flag"
4201                          || test ! -s conftest.err'
4202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203   (eval $ac_try) 2>&5
4204   ac_status=$?
4205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206   (exit $ac_status); }; } &&
4207          { ac_try='test -s conftest.$ac_objext'
4208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209   (eval $ac_try) 2>&5
4210   ac_status=$?
4211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212   (exit $ac_status); }; }; then
4213   break
4214 else
4215   echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4217
4218 fi
4219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4220 done
4221 rm -f conftest*
4222 if test -n "$ac_declaration"; then
4223   echo '#ifdef __cplusplus' >>confdefs.h
4224   echo $ac_declaration      >>confdefs.h
4225   echo '#endif'             >>confdefs.h
4226 fi
4227
4228 ac_ext=c
4229 ac_cpp='$CPP $CPPFLAGS'
4230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233
4234 echo "$as_me:$LINENO: checking " >&5
4235 echo $ECHO_N "checking ... $ECHO_C" >&6
4236 if test "${ac_cv_has_flex+set}" = set; then
4237   echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239   for ac_prog in flex lex
4240 do
4241   # Extract the first word of "$ac_prog", so it can be a program name with args.
4242 set dummy $ac_prog; ac_word=$2
4243 echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4245 if test "${ac_cv_prog_LEX+set}" = set; then
4246   echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248   if test -n "$LEX"; then
4249   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4250 else
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4253 do
4254   IFS=$as_save_IFS
4255   test -z "$as_dir" && as_dir=.
4256   for ac_exec_ext in '' $ac_executable_extensions; do
4257   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4258     ac_cv_prog_LEX="$ac_prog"
4259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260     break 2
4261   fi
4262 done
4263 done
4264
4265 fi
4266 fi
4267 LEX=$ac_cv_prog_LEX
4268 if test -n "$LEX"; then
4269   echo "$as_me:$LINENO: result: $LEX" >&5
4270 echo "${ECHO_T}$LEX" >&6
4271 else
4272   echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6
4274 fi
4275
4276   test -n "$LEX" && break
4277 done
4278 test -n "$LEX" || LEX=":"
4279
4280 if test -z "$LEXLIB"
4281 then
4282   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4283 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4284 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4285   echo $ECHO_N "(cached) $ECHO_C" >&6
4286 else
4287   ac_check_lib_save_LIBS=$LIBS
4288 LIBS="-lfl  $LIBS"
4289 cat >conftest.$ac_ext <<_ACEOF
4290 /* confdefs.h.  */
4291 _ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h.  */
4295
4296 /* Override any gcc2 internal prototype to avoid an error.  */
4297 #ifdef __cplusplus
4298 extern "C"
4299 #endif
4300 /* We use char because int might match the return type of a gcc2
4301    builtin and then its argument prototype would still apply.  */
4302 char yywrap ();
4303 int
4304 main ()
4305 {
4306 yywrap ();
4307   ;
4308   return 0;
4309 }
4310 _ACEOF
4311 rm -f conftest.$ac_objext conftest$ac_exeext
4312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4313   (eval $ac_link) 2>conftest.er1
4314   ac_status=$?
4315   grep -v '^ *+' conftest.er1 >conftest.err
4316   rm -f conftest.er1
4317   cat conftest.err >&5
4318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319   (exit $ac_status); } &&
4320          { ac_try='test -z "$ac_c_werror_flag"
4321                          || test ! -s conftest.err'
4322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323   (eval $ac_try) 2>&5
4324   ac_status=$?
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); }; } &&
4327          { ac_try='test -s conftest$ac_exeext'
4328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329   (eval $ac_try) 2>&5
4330   ac_status=$?
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); }; }; then
4333   ac_cv_lib_fl_yywrap=yes
4334 else
4335   echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4337
4338 ac_cv_lib_fl_yywrap=no
4339 fi
4340 rm -f conftest.err conftest.$ac_objext \
4341       conftest$ac_exeext conftest.$ac_ext
4342 LIBS=$ac_check_lib_save_LIBS
4343 fi
4344 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4345 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4346 if test $ac_cv_lib_fl_yywrap = yes; then
4347   LEXLIB="-lfl"
4348 else
4349   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4350 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4351 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4352   echo $ECHO_N "(cached) $ECHO_C" >&6
4353 else
4354   ac_check_lib_save_LIBS=$LIBS
4355 LIBS="-ll  $LIBS"
4356 cat >conftest.$ac_ext <<_ACEOF
4357 /* confdefs.h.  */
4358 _ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h.  */
4362
4363 /* Override any gcc2 internal prototype to avoid an error.  */
4364 #ifdef __cplusplus
4365 extern "C"
4366 #endif
4367 /* We use char because int might match the return type of a gcc2
4368    builtin and then its argument prototype would still apply.  */
4369 char yywrap ();
4370 int
4371 main ()
4372 {
4373 yywrap ();
4374   ;
4375   return 0;
4376 }
4377 _ACEOF
4378 rm -f conftest.$ac_objext conftest$ac_exeext
4379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4380   (eval $ac_link) 2>conftest.er1
4381   ac_status=$?
4382   grep -v '^ *+' conftest.er1 >conftest.err
4383   rm -f conftest.er1
4384   cat conftest.err >&5
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); } &&
4387          { ac_try='test -z "$ac_c_werror_flag"
4388                          || test ! -s conftest.err'
4389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4390   (eval $ac_try) 2>&5
4391   ac_status=$?
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); }; } &&
4394          { ac_try='test -s conftest$ac_exeext'
4395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396   (eval $ac_try) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }; }; then
4400   ac_cv_lib_l_yywrap=yes
4401 else
4402   echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4404
4405 ac_cv_lib_l_yywrap=no
4406 fi
4407 rm -f conftest.err conftest.$ac_objext \
4408       conftest$ac_exeext conftest.$ac_ext
4409 LIBS=$ac_check_lib_save_LIBS
4410 fi
4411 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4412 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4413 if test $ac_cv_lib_l_yywrap = yes; then
4414   LEXLIB="-ll"
4415 fi
4416
4417 fi
4418
4419 fi
4420
4421 if test "x$LEX" != "x:"; then
4422   echo "$as_me:$LINENO: checking lex output file root" >&5
4423 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4424 if test "${ac_cv_prog_lex_root+set}" = set; then
4425   echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427   # The minimal lex program is just a single line: %%.  But some broken lexes
4428 # (Solaris, I think it was) want two %% lines, so accommodate them.
4429 cat >conftest.l <<_ACEOF
4430 %%
4431 %%
4432 _ACEOF
4433 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4434   (eval $LEX conftest.l) 2>&5
4435   ac_status=$?
4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437   (exit $ac_status); }
4438 if test -f lex.yy.c; then
4439   ac_cv_prog_lex_root=lex.yy
4440 elif test -f lexyy.c; then
4441   ac_cv_prog_lex_root=lexyy
4442 else
4443   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4444 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4445    { (exit 1); exit 1; }; }
4446 fi
4447 fi
4448 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4449 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4450 rm -f conftest.l
4451 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4452
4453 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4454 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4455 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4456   echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458   # POSIX says lex can declare yytext either as a pointer or an array; the
4459 # default is implementation-dependent. Figure out which it is, since
4460 # not all implementations provide the %pointer and %array declarations.
4461 ac_cv_prog_lex_yytext_pointer=no
4462 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4463 ac_save_LIBS=$LIBS
4464 LIBS="$LIBS $LEXLIB"
4465 cat >conftest.$ac_ext <<_ACEOF
4466 `cat $LEX_OUTPUT_ROOT.c`
4467 _ACEOF
4468 rm -f conftest.$ac_objext conftest$ac_exeext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4470   (eval $ac_link) 2>conftest.er1
4471   ac_status=$?
4472   grep -v '^ *+' conftest.er1 >conftest.err
4473   rm -f conftest.er1
4474   cat conftest.err >&5
4475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476   (exit $ac_status); } &&
4477          { ac_try='test -z "$ac_c_werror_flag"
4478                          || test ! -s conftest.err'
4479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480   (eval $ac_try) 2>&5
4481   ac_status=$?
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); }; } &&
4484          { ac_try='test -s conftest$ac_exeext'
4485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486   (eval $ac_try) 2>&5
4487   ac_status=$?
4488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489   (exit $ac_status); }; }; then
4490   ac_cv_prog_lex_yytext_pointer=yes
4491 else
4492   echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4494
4495 fi
4496 rm -f conftest.err conftest.$ac_objext \
4497       conftest$ac_exeext conftest.$ac_ext
4498 LIBS=$ac_save_LIBS
4499 rm -f "${LEX_OUTPUT_ROOT}.c"
4500
4501 fi
4502 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4503 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4504 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4505
4506 cat >>confdefs.h <<\_ACEOF
4507 #define YYTEXT_POINTER 1
4508 _ACEOF
4509
4510 fi
4511
4512 fi
4513
4514 fi
4515 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4516 echo "${ECHO_T}$ac_cv_has_flex" >&6
4517 if test "$LEX" != "flex"; then
4518   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4519 echo "$as_me: error: flex not found but required" >&2;}
4520    { (exit 1); exit 1; }; }
4521 else
4522   FLEX=flex
4523
4524 fi
4525
4526 echo "$as_me:$LINENO: checking " >&5
4527 echo $ECHO_N "checking ... $ECHO_C" >&6
4528 if test "${llvm_cv_has_bison+set}" = set; then
4529   echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531   for ac_prog in 'bison -y' byacc
4532 do
4533   # Extract the first word of "$ac_prog", so it can be a program name with args.
4534 set dummy $ac_prog; ac_word=$2
4535 echo "$as_me:$LINENO: checking for $ac_word" >&5
4536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4537 if test "${ac_cv_prog_YACC+set}" = set; then
4538   echo $ECHO_N "(cached) $ECHO_C" >&6
4539 else
4540   if test -n "$YACC"; then
4541   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4542 else
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 for as_dir in $PATH
4545 do
4546   IFS=$as_save_IFS
4547   test -z "$as_dir" && as_dir=.
4548   for ac_exec_ext in '' $ac_executable_extensions; do
4549   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4550     ac_cv_prog_YACC="$ac_prog"
4551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4552     break 2
4553   fi
4554 done
4555 done
4556
4557 fi
4558 fi
4559 YACC=$ac_cv_prog_YACC
4560 if test -n "$YACC"; then
4561   echo "$as_me:$LINENO: result: $YACC" >&5
4562 echo "${ECHO_T}$YACC" >&6
4563 else
4564   echo "$as_me:$LINENO: result: no" >&5
4565 echo "${ECHO_T}no" >&6
4566 fi
4567
4568   test -n "$YACC" && break
4569 done
4570 test -n "$YACC" || YACC="yacc"
4571
4572 fi
4573 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4574 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4575 if test "$YACC" != "bison -y"; then
4576   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4577 echo "$as_me: error: bison not found but required" >&2;}
4578    { (exit 1); exit 1; }; }
4579 else
4580   BISON=bison
4581
4582 fi
4583
4584 echo "$as_me:$LINENO: checking for GNU make" >&5
4585 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4586 if test "${llvm_cv_gnu_make_command+set}" = set; then
4587   echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589   llvm_cv_gnu_make_command=''
4590  for a in "$MAKE" make gmake gnumake ; do
4591   if test -z "$a" ; then continue ; fi ;
4592   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4593   then
4594    llvm_cv_gnu_make_command=$a ;
4595    break;
4596   fi
4597  done
4598 fi
4599 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4600 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4601  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4602    ifGNUmake='' ;
4603  else
4604    ifGNUmake='#' ;
4605    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4606 echo "${ECHO_T}\"Not found\"" >&6;
4607  fi
4608
4609
4610 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4611 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4612 LN_S=$as_ln_s
4613 if test "$LN_S" = "ln -s"; then
4614   echo "$as_me:$LINENO: result: yes" >&5
4615 echo "${ECHO_T}yes" >&6
4616 else
4617   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4618 echo "${ECHO_T}no, using $LN_S" >&6
4619 fi
4620
4621 # Extract the first word of "cmp", so it can be a program name with args.
4622 set dummy cmp; ac_word=$2
4623 echo "$as_me:$LINENO: checking for $ac_word" >&5
4624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4625 if test "${ac_cv_path_CMP+set}" = set; then
4626   echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628   case $CMP in
4629   [\\/]* | ?:[\\/]*)
4630   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4631   ;;
4632   *)
4633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH
4635 do
4636   IFS=$as_save_IFS
4637   test -z "$as_dir" && as_dir=.
4638   for ac_exec_ext in '' $ac_executable_extensions; do
4639   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4640     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642     break 2
4643   fi
4644 done
4645 done
4646
4647   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4648   ;;
4649 esac
4650 fi
4651 CMP=$ac_cv_path_CMP
4652
4653 if test -n "$CMP"; then
4654   echo "$as_me:$LINENO: result: $CMP" >&5
4655 echo "${ECHO_T}$CMP" >&6
4656 else
4657   echo "$as_me:$LINENO: result: no" >&5
4658 echo "${ECHO_T}no" >&6
4659 fi
4660
4661 # Extract the first word of "cp", so it can be a program name with args.
4662 set dummy cp; ac_word=$2
4663 echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4665 if test "${ac_cv_path_CP+set}" = set; then
4666   echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668   case $CP in
4669   [\\/]* | ?:[\\/]*)
4670   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4671   ;;
4672   *)
4673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH
4675 do
4676   IFS=$as_save_IFS
4677   test -z "$as_dir" && as_dir=.
4678   for ac_exec_ext in '' $ac_executable_extensions; do
4679   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4680     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682     break 2
4683   fi
4684 done
4685 done
4686
4687   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4688   ;;
4689 esac
4690 fi
4691 CP=$ac_cv_path_CP
4692
4693 if test -n "$CP"; then
4694   echo "$as_me:$LINENO: result: $CP" >&5
4695 echo "${ECHO_T}$CP" >&6
4696 else
4697   echo "$as_me:$LINENO: result: no" >&5
4698 echo "${ECHO_T}no" >&6
4699 fi
4700
4701 # Extract the first word of "date", so it can be a program name with args.
4702 set dummy date; ac_word=$2
4703 echo "$as_me:$LINENO: checking for $ac_word" >&5
4704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4705 if test "${ac_cv_path_DATE+set}" = set; then
4706   echo $ECHO_N "(cached) $ECHO_C" >&6
4707 else
4708   case $DATE in
4709   [\\/]* | ?:[\\/]*)
4710   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4711   ;;
4712   *)
4713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH
4715 do
4716   IFS=$as_save_IFS
4717   test -z "$as_dir" && as_dir=.
4718   for ac_exec_ext in '' $ac_executable_extensions; do
4719   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4720     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722     break 2
4723   fi
4724 done
4725 done
4726
4727   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4728   ;;
4729 esac
4730 fi
4731 DATE=$ac_cv_path_DATE
4732
4733 if test -n "$DATE"; then
4734   echo "$as_me:$LINENO: result: $DATE" >&5
4735 echo "${ECHO_T}$DATE" >&6
4736 else
4737   echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6
4739 fi
4740
4741 # Extract the first word of "find", so it can be a program name with args.
4742 set dummy find; ac_word=$2
4743 echo "$as_me:$LINENO: checking for $ac_word" >&5
4744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4745 if test "${ac_cv_path_FIND+set}" = set; then
4746   echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748   case $FIND in
4749   [\\/]* | ?:[\\/]*)
4750   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4751   ;;
4752   *)
4753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4755 do
4756   IFS=$as_save_IFS
4757   test -z "$as_dir" && as_dir=.
4758   for ac_exec_ext in '' $ac_executable_extensions; do
4759   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4760     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762     break 2
4763   fi
4764 done
4765 done
4766
4767   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4768   ;;
4769 esac
4770 fi
4771 FIND=$ac_cv_path_FIND
4772
4773 if test -n "$FIND"; then
4774   echo "$as_me:$LINENO: result: $FIND" >&5
4775 echo "${ECHO_T}$FIND" >&6
4776 else
4777   echo "$as_me:$LINENO: result: no" >&5
4778 echo "${ECHO_T}no" >&6
4779 fi
4780
4781 # Extract the first word of "grep", so it can be a program name with args.
4782 set dummy grep; ac_word=$2
4783 echo "$as_me:$LINENO: checking for $ac_word" >&5
4784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4785 if test "${ac_cv_path_GREP+set}" = set; then
4786   echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788   case $GREP in
4789   [\\/]* | ?:[\\/]*)
4790   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4791   ;;
4792   *)
4793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH
4795 do
4796   IFS=$as_save_IFS
4797   test -z "$as_dir" && as_dir=.
4798   for ac_exec_ext in '' $ac_executable_extensions; do
4799   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4800     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802     break 2
4803   fi
4804 done
4805 done
4806
4807   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4808   ;;
4809 esac
4810 fi
4811 GREP=$ac_cv_path_GREP
4812
4813 if test -n "$GREP"; then
4814   echo "$as_me:$LINENO: result: $GREP" >&5
4815 echo "${ECHO_T}$GREP" >&6
4816 else
4817   echo "$as_me:$LINENO: result: no" >&5
4818 echo "${ECHO_T}no" >&6
4819 fi
4820
4821 # Extract the first word of "mkdir", so it can be a program name with args.
4822 set dummy mkdir; ac_word=$2
4823 echo "$as_me:$LINENO: checking for $ac_word" >&5
4824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4825 if test "${ac_cv_path_MKDIR+set}" = set; then
4826   echo $ECHO_N "(cached) $ECHO_C" >&6
4827 else
4828   case $MKDIR in
4829   [\\/]* | ?:[\\/]*)
4830   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4831   ;;
4832   *)
4833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH
4835 do
4836   IFS=$as_save_IFS
4837   test -z "$as_dir" && as_dir=.
4838   for ac_exec_ext in '' $ac_executable_extensions; do
4839   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4840     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842     break 2
4843   fi
4844 done
4845 done
4846
4847   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4848   ;;
4849 esac
4850 fi
4851 MKDIR=$ac_cv_path_MKDIR
4852
4853 if test -n "$MKDIR"; then
4854   echo "$as_me:$LINENO: result: $MKDIR" >&5
4855 echo "${ECHO_T}$MKDIR" >&6
4856 else
4857   echo "$as_me:$LINENO: result: no" >&5
4858 echo "${ECHO_T}no" >&6
4859 fi
4860
4861 # Extract the first word of "mv", so it can be a program name with args.
4862 set dummy mv; ac_word=$2
4863 echo "$as_me:$LINENO: checking for $ac_word" >&5
4864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4865 if test "${ac_cv_path_MV+set}" = set; then
4866   echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868   case $MV in
4869   [\\/]* | ?:[\\/]*)
4870   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4871   ;;
4872   *)
4873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4875 do
4876   IFS=$as_save_IFS
4877   test -z "$as_dir" && as_dir=.
4878   for ac_exec_ext in '' $ac_executable_extensions; do
4879   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4880     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882     break 2
4883   fi
4884 done
4885 done
4886
4887   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4888   ;;
4889 esac
4890 fi
4891 MV=$ac_cv_path_MV
4892
4893 if test -n "$MV"; then
4894   echo "$as_me:$LINENO: result: $MV" >&5
4895 echo "${ECHO_T}$MV" >&6
4896 else
4897   echo "$as_me:$LINENO: result: no" >&5
4898 echo "${ECHO_T}no" >&6
4899 fi
4900
4901 if test -n "$ac_tool_prefix"; then
4902   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4903 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4904 echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4906 if test "${ac_cv_prog_RANLIB+set}" = set; then
4907   echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909   if test -n "$RANLIB"; then
4910   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4911 else
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4914 do
4915   IFS=$as_save_IFS
4916   test -z "$as_dir" && as_dir=.
4917   for ac_exec_ext in '' $ac_executable_extensions; do
4918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4919     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921     break 2
4922   fi
4923 done
4924 done
4925
4926 fi
4927 fi
4928 RANLIB=$ac_cv_prog_RANLIB
4929 if test -n "$RANLIB"; then
4930   echo "$as_me:$LINENO: result: $RANLIB" >&5
4931 echo "${ECHO_T}$RANLIB" >&6
4932 else
4933   echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4935 fi
4936
4937 fi
4938 if test -z "$ac_cv_prog_RANLIB"; then
4939   ac_ct_RANLIB=$RANLIB
4940   # Extract the first word of "ranlib", so it can be a program name with args.
4941 set dummy ranlib; ac_word=$2
4942 echo "$as_me:$LINENO: checking for $ac_word" >&5
4943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4944 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4945   echo $ECHO_N "(cached) $ECHO_C" >&6
4946 else
4947   if test -n "$ac_ct_RANLIB"; then
4948   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4949 else
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4952 do
4953   IFS=$as_save_IFS
4954   test -z "$as_dir" && as_dir=.
4955   for ac_exec_ext in '' $ac_executable_extensions; do
4956   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4957     ac_cv_prog_ac_ct_RANLIB="ranlib"
4958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4959     break 2
4960   fi
4961 done
4962 done
4963
4964   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4965 fi
4966 fi
4967 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4968 if test -n "$ac_ct_RANLIB"; then
4969   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4970 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4971 else
4972   echo "$as_me:$LINENO: result: no" >&5
4973 echo "${ECHO_T}no" >&6
4974 fi
4975
4976   RANLIB=$ac_ct_RANLIB
4977 else
4978   RANLIB="$ac_cv_prog_RANLIB"
4979 fi
4980
4981 # Extract the first word of "rm", so it can be a program name with args.
4982 set dummy rm; ac_word=$2
4983 echo "$as_me:$LINENO: checking for $ac_word" >&5
4984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4985 if test "${ac_cv_path_RM+set}" = set; then
4986   echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988   case $RM in
4989   [\\/]* | ?:[\\/]*)
4990   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4991   ;;
4992   *)
4993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4995 do
4996   IFS=$as_save_IFS
4997   test -z "$as_dir" && as_dir=.
4998   for ac_exec_ext in '' $ac_executable_extensions; do
4999   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5002     break 2
5003   fi
5004 done
5005 done
5006
5007   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5008   ;;
5009 esac
5010 fi
5011 RM=$ac_cv_path_RM
5012
5013 if test -n "$RM"; then
5014   echo "$as_me:$LINENO: result: $RM" >&5
5015 echo "${ECHO_T}$RM" >&6
5016 else
5017   echo "$as_me:$LINENO: result: no" >&5
5018 echo "${ECHO_T}no" >&6
5019 fi
5020
5021 # Extract the first word of "sed", so it can be a program name with args.
5022 set dummy sed; ac_word=$2
5023 echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5025 if test "${ac_cv_path_SED+set}" = set; then
5026   echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028   case $SED in
5029   [\\/]* | ?:[\\/]*)
5030   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5031   ;;
5032   *)
5033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5035 do
5036   IFS=$as_save_IFS
5037   test -z "$as_dir" && as_dir=.
5038   for ac_exec_ext in '' $ac_executable_extensions; do
5039   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042     break 2
5043   fi
5044 done
5045 done
5046
5047   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5048   ;;
5049 esac
5050 fi
5051 SED=$ac_cv_path_SED
5052
5053 if test -n "$SED"; then
5054   echo "$as_me:$LINENO: result: $SED" >&5
5055 echo "${ECHO_T}$SED" >&6
5056 else
5057   echo "$as_me:$LINENO: result: no" >&5
5058 echo "${ECHO_T}no" >&6
5059 fi
5060
5061 # Extract the first word of "tar", so it can be a program name with args.
5062 set dummy tar; ac_word=$2
5063 echo "$as_me:$LINENO: checking for $ac_word" >&5
5064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5065 if test "${ac_cv_path_TAR+set}" = set; then
5066   echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068   case $TAR in
5069   [\\/]* | ?:[\\/]*)
5070   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5071   ;;
5072   *)
5073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5075 do
5076   IFS=$as_save_IFS
5077   test -z "$as_dir" && as_dir=.
5078   for ac_exec_ext in '' $ac_executable_extensions; do
5079   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5080     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5082     break 2
5083   fi
5084 done
5085 done
5086
5087   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5088   ;;
5089 esac
5090 fi
5091 TAR=$ac_cv_path_TAR
5092
5093 if test -n "$TAR"; then
5094   echo "$as_me:$LINENO: result: $TAR" >&5
5095 echo "${ECHO_T}$TAR" >&6
5096 else
5097   echo "$as_me:$LINENO: result: no" >&5
5098 echo "${ECHO_T}no" >&6
5099 fi
5100
5101 # Extract the first word of "Graphviz", so it can be a program name with args.
5102 set dummy Graphviz; ac_word=$2
5103 echo "$as_me:$LINENO: checking for $ac_word" >&5
5104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5105 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5106   echo $ECHO_N "(cached) $ECHO_C" >&6
5107 else
5108   case $GRAPHVIZ in
5109   [\\/]* | ?:[\\/]*)
5110   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5111   ;;
5112   *)
5113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5115 do
5116   IFS=$as_save_IFS
5117   test -z "$as_dir" && as_dir=.
5118   for ac_exec_ext in '' $ac_executable_extensions; do
5119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5122     break 2
5123   fi
5124 done
5125 done
5126
5127   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5128   ;;
5129 esac
5130 fi
5131 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5132
5133 if test -n "$GRAPHVIZ"; then
5134   echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5135 echo "${ECHO_T}$GRAPHVIZ" >&6
5136 else
5137   echo "$as_me:$LINENO: result: no" >&5
5138 echo "${ECHO_T}no" >&6
5139 fi
5140
5141 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5142
5143 cat >>confdefs.h <<\_ACEOF
5144 #define HAVE_GRAPHVIZ 1
5145 _ACEOF
5146
5147
5148 cat >>confdefs.h <<_ACEOF
5149 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5150 _ACEOF
5151
5152 fi
5153 # Extract the first word of "gv", so it can be a program name with args.
5154 set dummy gv; ac_word=$2
5155 echo "$as_me:$LINENO: checking for $ac_word" >&5
5156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5157 if test "${ac_cv_path_GV+set}" = set; then
5158   echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160   case $GV in
5161   [\\/]* | ?:[\\/]*)
5162   ac_cv_path_GV="$GV" # Let the user override the test with a path.
5163   ;;
5164   *)
5165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5167 do
5168   IFS=$as_save_IFS
5169   test -z "$as_dir" && as_dir=.
5170   for ac_exec_ext in '' $ac_executable_extensions; do
5171   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5174     break 2
5175   fi
5176 done
5177 done
5178
5179   test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5180   ;;
5181 esac
5182 fi
5183 GV=$ac_cv_path_GV
5184
5185 if test -n "$GV"; then
5186   echo "$as_me:$LINENO: result: $GV" >&5
5187 echo "${ECHO_T}$GV" >&6
5188 else
5189   echo "$as_me:$LINENO: result: no" >&5
5190 echo "${ECHO_T}no" >&6
5191 fi
5192
5193 if test "$GV" != "echo gv" ; then
5194
5195 cat >>confdefs.h <<\_ACEOF
5196 #define HAVE_GV 1
5197 _ACEOF
5198
5199
5200 cat >>confdefs.h <<_ACEOF
5201 #define LLVM_PATH_GV "$GV"
5202 _ACEOF
5203
5204 fi
5205
5206 # Find a good install program.  We prefer a C program (faster),
5207 # so one script is as good as another.  But avoid the broken or
5208 # incompatible versions:
5209 # SysV /etc/install, /usr/sbin/install
5210 # SunOS /usr/etc/install
5211 # IRIX /sbin/install
5212 # AIX /bin/install
5213 # AmigaOS /C/install, which installs bootblocks on floppy discs
5214 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5215 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5216 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5217 # OS/2's system install, which has a completely different semantic
5218 # ./install, which can be erroneously created by make from ./install.sh.
5219 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5220 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5221 if test -z "$INSTALL"; then
5222 if test "${ac_cv_path_install+set}" = set; then
5223   echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5227 do
5228   IFS=$as_save_IFS
5229   test -z "$as_dir" && as_dir=.
5230   # Account for people who put trailing slashes in PATH elements.
5231 case $as_dir/ in
5232   ./ | .// | /cC/* | \
5233   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5234   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5235   /usr/ucb/* ) ;;
5236   *)
5237     # OSF1 and SCO ODT 3.0 have their own names for install.
5238     # Don't use installbsd from OSF since it installs stuff as root
5239     # by default.
5240     for ac_prog in ginstall scoinst install; do
5241       for ac_exec_ext in '' $ac_executable_extensions; do
5242         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5243           if test $ac_prog = install &&
5244             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5245             # AIX install.  It has an incompatible calling convention.
5246             :
5247           elif test $ac_prog = install &&
5248             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5249             # program-specific install script used by HP pwplus--don't use.
5250             :
5251           else
5252             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5253             break 3
5254           fi
5255         fi
5256       done
5257     done
5258     ;;
5259 esac
5260 done
5261
5262
5263 fi
5264   if test "${ac_cv_path_install+set}" = set; then
5265     INSTALL=$ac_cv_path_install
5266   else
5267     # As a last resort, use the slow shell script.  We don't cache a
5268     # path for INSTALL within a source directory, because that will
5269     # break other packages using the cache if that directory is
5270     # removed, or if the path is relative.
5271     INSTALL=$ac_install_sh
5272   fi
5273 fi
5274 echo "$as_me:$LINENO: result: $INSTALL" >&5
5275 echo "${ECHO_T}$INSTALL" >&6
5276
5277 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5278 # It thinks the first close brace ends the variable substitution.
5279 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5280
5281 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5282
5283 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5284
5285
5286 # Extract the first word of "bzip2", so it can be a program name with args.
5287 set dummy bzip2; ac_word=$2
5288 echo "$as_me:$LINENO: checking for $ac_word" >&5
5289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5290 if test "${ac_cv_path_BZIP2+set}" = set; then
5291   echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293   case $BZIP2 in
5294   [\\/]* | ?:[\\/]*)
5295   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5296   ;;
5297   *)
5298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in $PATH
5300 do
5301   IFS=$as_save_IFS
5302   test -z "$as_dir" && as_dir=.
5303   for ac_exec_ext in '' $ac_executable_extensions; do
5304   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5305     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5307     break 2
5308   fi
5309 done
5310 done
5311
5312   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5313   ;;
5314 esac
5315 fi
5316 BZIP2=$ac_cv_path_BZIP2
5317
5318 if test -n "$BZIP2"; then
5319   echo "$as_me:$LINENO: result: $BZIP2" >&5
5320 echo "${ECHO_T}$BZIP2" >&6
5321 else
5322   echo "$as_me:$LINENO: result: no" >&5
5323 echo "${ECHO_T}no" >&6
5324 fi
5325
5326 # Extract the first word of "dot", so it can be a program name with args.
5327 set dummy dot; ac_word=$2
5328 echo "$as_me:$LINENO: checking for $ac_word" >&5
5329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5330 if test "${ac_cv_path_DOT+set}" = set; then
5331   echo $ECHO_N "(cached) $ECHO_C" >&6
5332 else
5333   case $DOT in
5334   [\\/]* | ?:[\\/]*)
5335   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5336   ;;
5337   *)
5338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 for as_dir in $PATH
5340 do
5341   IFS=$as_save_IFS
5342   test -z "$as_dir" && as_dir=.
5343   for ac_exec_ext in '' $ac_executable_extensions; do
5344   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5345     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347     break 2
5348   fi
5349 done
5350 done
5351
5352   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5353   ;;
5354 esac
5355 fi
5356 DOT=$ac_cv_path_DOT
5357
5358 if test -n "$DOT"; then
5359   echo "$as_me:$LINENO: result: $DOT" >&5
5360 echo "${ECHO_T}$DOT" >&6
5361 else
5362   echo "$as_me:$LINENO: result: no" >&5
5363 echo "${ECHO_T}no" >&6
5364 fi
5365
5366 # Extract the first word of "doxygen", so it can be a program name with args.
5367 set dummy doxygen; ac_word=$2
5368 echo "$as_me:$LINENO: checking for $ac_word" >&5
5369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5370 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5371   echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373   case $DOXYGEN in
5374   [\\/]* | ?:[\\/]*)
5375   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5376   ;;
5377   *)
5378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5380 do
5381   IFS=$as_save_IFS
5382   test -z "$as_dir" && as_dir=.
5383   for ac_exec_ext in '' $ac_executable_extensions; do
5384   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5387     break 2
5388   fi
5389 done
5390 done
5391
5392   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5393   ;;
5394 esac
5395 fi
5396 DOXYGEN=$ac_cv_path_DOXYGEN
5397
5398 if test -n "$DOXYGEN"; then
5399   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5400 echo "${ECHO_T}$DOXYGEN" >&6
5401 else
5402   echo "$as_me:$LINENO: result: no" >&5
5403 echo "${ECHO_T}no" >&6
5404 fi
5405
5406 # Extract the first word of "etags", so it can be a program name with args.
5407 set dummy etags; ac_word=$2
5408 echo "$as_me:$LINENO: checking for $ac_word" >&5
5409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5410 if test "${ac_cv_path_ETAGS+set}" = set; then
5411   echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413   case $ETAGS in
5414   [\\/]* | ?:[\\/]*)
5415   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5416   ;;
5417   *)
5418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in $PATH
5420 do
5421   IFS=$as_save_IFS
5422   test -z "$as_dir" && as_dir=.
5423   for ac_exec_ext in '' $ac_executable_extensions; do
5424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5427     break 2
5428   fi
5429 done
5430 done
5431
5432   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5433   ;;
5434 esac
5435 fi
5436 ETAGS=$ac_cv_path_ETAGS
5437
5438 if test -n "$ETAGS"; then
5439   echo "$as_me:$LINENO: result: $ETAGS" >&5
5440 echo "${ECHO_T}$ETAGS" >&6
5441 else
5442   echo "$as_me:$LINENO: result: no" >&5
5443 echo "${ECHO_T}no" >&6
5444 fi
5445
5446 # Extract the first word of "groff", so it can be a program name with args.
5447 set dummy groff; ac_word=$2
5448 echo "$as_me:$LINENO: checking for $ac_word" >&5
5449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5450 if test "${ac_cv_path_GROFF+set}" = set; then
5451   echo $ECHO_N "(cached) $ECHO_C" >&6
5452 else
5453   case $GROFF in
5454   [\\/]* | ?:[\\/]*)
5455   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5456   ;;
5457   *)
5458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5460 do
5461   IFS=$as_save_IFS
5462   test -z "$as_dir" && as_dir=.
5463   for ac_exec_ext in '' $ac_executable_extensions; do
5464   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5465     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5467     break 2
5468   fi
5469 done
5470 done
5471
5472   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5473   ;;
5474 esac
5475 fi
5476 GROFF=$ac_cv_path_GROFF
5477
5478 if test -n "$GROFF"; then
5479   echo "$as_me:$LINENO: result: $GROFF" >&5
5480 echo "${ECHO_T}$GROFF" >&6
5481 else
5482   echo "$as_me:$LINENO: result: no" >&5
5483 echo "${ECHO_T}no" >&6
5484 fi
5485
5486 # Extract the first word of "gzip", so it can be a program name with args.
5487 set dummy gzip; ac_word=$2
5488 echo "$as_me:$LINENO: checking for $ac_word" >&5
5489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5490 if test "${ac_cv_path_GZIP+set}" = set; then
5491   echo $ECHO_N "(cached) $ECHO_C" >&6
5492 else
5493   case $GZIP in
5494   [\\/]* | ?:[\\/]*)
5495   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5496   ;;
5497   *)
5498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $PATH
5500 do
5501   IFS=$as_save_IFS
5502   test -z "$as_dir" && as_dir=.
5503   for ac_exec_ext in '' $ac_executable_extensions; do
5504   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5507     break 2
5508   fi
5509 done
5510 done
5511
5512   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5513   ;;
5514 esac
5515 fi
5516 GZIP=$ac_cv_path_GZIP
5517
5518 if test -n "$GZIP"; then
5519   echo "$as_me:$LINENO: result: $GZIP" >&5
5520 echo "${ECHO_T}$GZIP" >&6
5521 else
5522   echo "$as_me:$LINENO: result: no" >&5
5523 echo "${ECHO_T}no" >&6
5524 fi
5525
5526 # Extract the first word of "pod2html", so it can be a program name with args.
5527 set dummy pod2html; ac_word=$2
5528 echo "$as_me:$LINENO: checking for $ac_word" >&5
5529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5530 if test "${ac_cv_path_POD2HTML+set}" = set; then
5531   echo $ECHO_N "(cached) $ECHO_C" >&6
5532 else
5533   case $POD2HTML in
5534   [\\/]* | ?:[\\/]*)
5535   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5536   ;;
5537   *)
5538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH
5540 do
5541   IFS=$as_save_IFS
5542   test -z "$as_dir" && as_dir=.
5543   for ac_exec_ext in '' $ac_executable_extensions; do
5544   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5545     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5547     break 2
5548   fi
5549 done
5550 done
5551
5552   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5553   ;;
5554 esac
5555 fi
5556 POD2HTML=$ac_cv_path_POD2HTML
5557
5558 if test -n "$POD2HTML"; then
5559   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5560 echo "${ECHO_T}$POD2HTML" >&6
5561 else
5562   echo "$as_me:$LINENO: result: no" >&5
5563 echo "${ECHO_T}no" >&6
5564 fi
5565
5566 # Extract the first word of "pod2man", so it can be a program name with args.
5567 set dummy pod2man; ac_word=$2
5568 echo "$as_me:$LINENO: checking for $ac_word" >&5
5569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5570 if test "${ac_cv_path_POD2MAN+set}" = set; then
5571   echo $ECHO_N "(cached) $ECHO_C" >&6
5572 else
5573   case $POD2MAN in
5574   [\\/]* | ?:[\\/]*)
5575   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5576   ;;
5577   *)
5578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 for as_dir in $PATH
5580 do
5581   IFS=$as_save_IFS
5582   test -z "$as_dir" && as_dir=.
5583   for ac_exec_ext in '' $ac_executable_extensions; do
5584   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5587     break 2
5588   fi
5589 done
5590 done
5591
5592   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5593   ;;
5594 esac
5595 fi
5596 POD2MAN=$ac_cv_path_POD2MAN
5597
5598 if test -n "$POD2MAN"; then
5599   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5600 echo "${ECHO_T}$POD2MAN" >&6
5601 else
5602   echo "$as_me:$LINENO: result: no" >&5
5603 echo "${ECHO_T}no" >&6
5604 fi
5605
5606 # Extract the first word of "runtest", so it can be a program name with args.
5607 set dummy runtest; ac_word=$2
5608 echo "$as_me:$LINENO: checking for $ac_word" >&5
5609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5610 if test "${ac_cv_path_RUNTEST+set}" = set; then
5611   echo $ECHO_N "(cached) $ECHO_C" >&6
5612 else
5613   case $RUNTEST in
5614   [\\/]* | ?:[\\/]*)
5615   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5616   ;;
5617   *)
5618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 for as_dir in $PATH
5620 do
5621   IFS=$as_save_IFS
5622   test -z "$as_dir" && as_dir=.
5623   for ac_exec_ext in '' $ac_executable_extensions; do
5624   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5625     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5627     break 2
5628   fi
5629 done
5630 done
5631
5632   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5633   ;;
5634 esac
5635 fi
5636 RUNTEST=$ac_cv_path_RUNTEST
5637
5638 if test -n "$RUNTEST"; then
5639   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5640 echo "${ECHO_T}$RUNTEST" >&6
5641 else
5642   echo "$as_me:$LINENO: result: no" >&5
5643 echo "${ECHO_T}no" >&6
5644 fi
5645
5646
5647 no_itcl=true
5648 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5649 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5650
5651 # Check whether --with-tclinclude or --without-tclinclude was given.
5652 if test "${with_tclinclude+set}" = set; then
5653   withval="$with_tclinclude"
5654   with_tclinclude=${withval}
5655 else
5656   with_tclinclude=''
5657 fi;
5658 if test "${ac_cv_path_tclsh+set}" = set; then
5659   echo $ECHO_N "(cached) $ECHO_C" >&6
5660 else
5661
5662 if test x"${with_tclinclude}" != x ; then
5663   if test -f ${with_tclinclude}/tclsh ; then
5664     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5665   elif test -f ${with_tclinclude}/src/tclsh ; then
5666     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5667   else
5668     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5669 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5670    { (exit 1); exit 1; }; }
5671   fi
5672 fi
5673
5674 if test x"${ac_cv_path_tclsh}" = x ; then
5675   echo "$as_me:$LINENO: result: none" >&5
5676 echo "${ECHO_T}none" >&6
5677   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
5678 do
5679   # Extract the first word of "$ac_prog", so it can be a program name with args.
5680 set dummy $ac_prog; ac_word=$2
5681 echo "$as_me:$LINENO: checking for $ac_word" >&5
5682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5683 if test "${ac_cv_path_TCLSH+set}" = set; then
5684   echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686   case $TCLSH in
5687   [\\/]* | ?:[\\/]*)
5688   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5689   ;;
5690   *)
5691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH
5693 do
5694   IFS=$as_save_IFS
5695   test -z "$as_dir" && as_dir=.
5696   for ac_exec_ext in '' $ac_executable_extensions; do
5697   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5698     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5699     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5700     break 2
5701   fi
5702 done
5703 done
5704
5705   ;;
5706 esac
5707 fi
5708 TCLSH=$ac_cv_path_TCLSH
5709
5710 if test -n "$TCLSH"; then
5711   echo "$as_me:$LINENO: result: $TCLSH" >&5
5712 echo "${ECHO_T}$TCLSH" >&6
5713 else
5714   echo "$as_me:$LINENO: result: no" >&5
5715 echo "${ECHO_T}no" >&6
5716 fi
5717
5718   test -n "$TCLSH" && break
5719 done
5720
5721   if test x"${TCLSH}" = x ; then
5722     ac_cv_path_tclsh='';
5723   else
5724     ac_cv_path_tclsh="${TCLSH}";
5725   fi
5726 else
5727   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5728 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5729   TCLSH="${ac_cv_path_tclsh}"
5730
5731 fi
5732
5733 fi
5734
5735 # Extract the first word of "zip", so it can be a program name with args.
5736 set dummy zip; ac_word=$2
5737 echo "$as_me:$LINENO: checking for $ac_word" >&5
5738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5739 if test "${ac_cv_path_ZIP+set}" = set; then
5740   echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742   case $ZIP in
5743   [\\/]* | ?:[\\/]*)
5744   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5745   ;;
5746   *)
5747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5748 for as_dir in $PATH
5749 do
5750   IFS=$as_save_IFS
5751   test -z "$as_dir" && as_dir=.
5752   for ac_exec_ext in '' $ac_executable_extensions; do
5753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5754     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5756     break 2
5757   fi
5758 done
5759 done
5760
5761   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5762   ;;
5763 esac
5764 fi
5765 ZIP=$ac_cv_path_ZIP
5766
5767 if test -n "$ZIP"; then
5768   echo "$as_me:$LINENO: result: $ZIP" >&5
5769 echo "${ECHO_T}$ZIP" >&6
5770 else
5771   echo "$as_me:$LINENO: result: no" >&5
5772 echo "${ECHO_T}no" >&6
5773 fi
5774
5775
5776 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5777 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5778 if test "${llvm_cv_link_use_r+set}" = set; then
5779   echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781    ac_ext=c
5782 ac_cpp='$CPP $CPPFLAGS'
5783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5786
5787   oldcflags="$CFLAGS"
5788   CFLAGS="$CFLAGS -Wl,-R."
5789   cat >conftest.$ac_ext <<_ACEOF
5790 /* confdefs.h.  */
5791 _ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h.  */
5795
5796 int
5797 main ()
5798 {
5799 int main() { return 0; }
5800   ;
5801   return 0;
5802 }
5803 _ACEOF
5804 rm -f conftest.$ac_objext conftest$ac_exeext
5805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5806   (eval $ac_link) 2>conftest.er1
5807   ac_status=$?
5808   grep -v '^ *+' conftest.er1 >conftest.err
5809   rm -f conftest.er1
5810   cat conftest.err >&5
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); } &&
5813          { ac_try='test -z "$ac_c_werror_flag"
5814                          || test ! -s conftest.err'
5815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816   (eval $ac_try) 2>&5
5817   ac_status=$?
5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819   (exit $ac_status); }; } &&
5820          { ac_try='test -s conftest$ac_exeext'
5821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822   (eval $ac_try) 2>&5
5823   ac_status=$?
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); }; }; then
5826   llvm_cv_link_use_r=yes
5827 else
5828   echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5830
5831 llvm_cv_link_use_r=no
5832 fi
5833 rm -f conftest.err conftest.$ac_objext \
5834       conftest$ac_exeext conftest.$ac_ext
5835   CFLAGS="$oldcflags"
5836   ac_ext=c
5837 ac_cpp='$CPP $CPPFLAGS'
5838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5841
5842
5843 fi
5844 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5845 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5846 if test "$llvm_cv_link_use_r" = yes ; then
5847
5848 cat >>confdefs.h <<\_ACEOF
5849 #define HAVE_LINK_R 1
5850 _ACEOF
5851
5852   fi
5853
5854
5855
5856
5857 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5858 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5859 if test "${ac_cv_c_const+set}" = set; then
5860   echo $ECHO_N "(cached) $ECHO_C" >&6
5861 else
5862   cat >conftest.$ac_ext <<_ACEOF
5863 /* confdefs.h.  */
5864 _ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h.  */
5868
5869 int
5870 main ()
5871 {
5872 /* FIXME: Include the comments suggested by Paul. */
5873 #ifndef __cplusplus
5874   /* Ultrix mips cc rejects this.  */
5875   typedef int charset[2];
5876   const charset x;
5877   /* SunOS 4.1.1 cc rejects this.  */
5878   char const *const *ccp;
5879   char **p;
5880   /* NEC SVR4.0.2 mips cc rejects this.  */
5881   struct point {int x, y;};
5882   static struct point const zero = {0,0};
5883   /* AIX XL C 1.02.0.0 rejects this.
5884      It does not let you subtract one const X* pointer from another in
5885      an arm of an if-expression whose if-part is not a constant
5886      expression */
5887   const char *g = "string";
5888   ccp = &g + (g ? g-g : 0);
5889   /* HPUX 7.0 cc rejects these. */
5890   ++ccp;
5891   p = (char**) ccp;
5892   ccp = (char const *const *) p;
5893   { /* SCO 3.2v4 cc rejects this.  */
5894     char *t;
5895     char const *s = 0 ? (char *) 0 : (char const *) 0;
5896
5897     *t++ = 0;
5898   }
5899   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5900     int x[] = {25, 17};
5901     const int *foo = &x[0];
5902     ++foo;
5903   }
5904   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5905     typedef const int *iptr;
5906     iptr p = 0;
5907     ++p;
5908   }
5909   { /* AIX XL C 1.02.0.0 rejects this saying
5910        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5911     struct s { int j; const int *ap[3]; };
5912     struct s *b; b->j = 5;
5913   }
5914   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5915     const int foo = 10;
5916   }
5917 #endif
5918
5919   ;
5920   return 0;
5921 }
5922 _ACEOF
5923 rm -f conftest.$ac_objext
5924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5925   (eval $ac_compile) 2>conftest.er1
5926   ac_status=$?
5927   grep -v '^ *+' conftest.er1 >conftest.err
5928   rm -f conftest.er1
5929   cat conftest.err >&5
5930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931   (exit $ac_status); } &&
5932          { ac_try='test -z "$ac_c_werror_flag"
5933                          || test ! -s conftest.err'
5934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935   (eval $ac_try) 2>&5
5936   ac_status=$?
5937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938   (exit $ac_status); }; } &&
5939          { ac_try='test -s conftest.$ac_objext'
5940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941   (eval $ac_try) 2>&5
5942   ac_status=$?
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); }; }; then
5945   ac_cv_c_const=yes
5946 else
5947   echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5949
5950 ac_cv_c_const=no
5951 fi
5952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5953 fi
5954 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5955 echo "${ECHO_T}$ac_cv_c_const" >&6
5956 if test $ac_cv_c_const = no; then
5957
5958 cat >>confdefs.h <<\_ACEOF
5959 #define const
5960 _ACEOF
5961
5962 fi
5963
5964
5965 echo "$as_me:$LINENO: checking for egrep" >&5
5966 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5967 if test "${ac_cv_prog_egrep+set}" = set; then
5968   echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5971     then ac_cv_prog_egrep='grep -E'
5972     else ac_cv_prog_egrep='egrep'
5973     fi
5974 fi
5975 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5976 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5977  EGREP=$ac_cv_prog_egrep
5978
5979
5980 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5981 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5982 if test "${ac_cv_header_stdc+set}" = set; then
5983   echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985   cat >conftest.$ac_ext <<_ACEOF
5986 /* confdefs.h.  */
5987 _ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h.  */
5991 #include <stdlib.h>
5992 #include <stdarg.h>
5993 #include <string.h>
5994 #include <float.h>
5995
5996 int
5997 main ()
5998 {
5999
6000   ;
6001   return 0;
6002 }
6003 _ACEOF
6004 rm -f conftest.$ac_objext
6005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6006   (eval $ac_compile) 2>conftest.er1
6007   ac_status=$?
6008   grep -v '^ *+' conftest.er1 >conftest.err
6009   rm -f conftest.er1
6010   cat conftest.err >&5
6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); } &&
6013          { ac_try='test -z "$ac_c_werror_flag"
6014                          || test ! -s conftest.err'
6015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016   (eval $ac_try) 2>&5
6017   ac_status=$?
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); }; } &&
6020          { ac_try='test -s conftest.$ac_objext'
6021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022   (eval $ac_try) 2>&5
6023   ac_status=$?
6024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025   (exit $ac_status); }; }; then
6026   ac_cv_header_stdc=yes
6027 else
6028   echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6030
6031 ac_cv_header_stdc=no
6032 fi
6033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6034
6035 if test $ac_cv_header_stdc = yes; then
6036   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6037   cat >conftest.$ac_ext <<_ACEOF
6038 /* confdefs.h.  */
6039 _ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h.  */
6043 #include <string.h>
6044
6045 _ACEOF
6046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6047   $EGREP "memchr" >/dev/null 2>&1; then
6048   :
6049 else
6050   ac_cv_header_stdc=no
6051 fi
6052 rm -f conftest*
6053
6054 fi
6055
6056 if test $ac_cv_header_stdc = yes; then
6057   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6058   cat >conftest.$ac_ext <<_ACEOF
6059 /* confdefs.h.  */
6060 _ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h.  */
6064 #include <stdlib.h>
6065
6066 _ACEOF
6067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6068   $EGREP "free" >/dev/null 2>&1; then
6069   :
6070 else
6071   ac_cv_header_stdc=no
6072 fi
6073 rm -f conftest*
6074
6075 fi
6076
6077 if test $ac_cv_header_stdc = yes; then
6078   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6079   if test "$cross_compiling" = yes; then
6080   :
6081 else
6082   cat >conftest.$ac_ext <<_ACEOF
6083 /* confdefs.h.  */
6084 _ACEOF
6085 cat confdefs.h >>conftest.$ac_ext
6086 cat >>conftest.$ac_ext <<_ACEOF
6087 /* end confdefs.h.  */
6088 #include <ctype.h>
6089 #if ((' ' & 0x0FF) == 0x020)
6090 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6091 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6092 #else
6093 # define ISLOWER(c) \
6094                    (('a' <= (c) && (c) <= 'i') \
6095                      || ('j' <= (c) && (c) <= 'r') \
6096                      || ('s' <= (c) && (c) <= 'z'))
6097 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6098 #endif
6099
6100 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6101 int
6102 main ()
6103 {
6104   int i;
6105   for (i = 0; i < 256; i++)
6106     if (XOR (islower (i), ISLOWER (i))
6107         || toupper (i) != TOUPPER (i))
6108       exit(2);
6109   exit (0);
6110 }
6111 _ACEOF
6112 rm -f conftest$ac_exeext
6113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6114   (eval $ac_link) 2>&5
6115   ac_status=$?
6116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119   (eval $ac_try) 2>&5
6120   ac_status=$?
6121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122   (exit $ac_status); }; }; then
6123   :
6124 else
6125   echo "$as_me: program exited with status $ac_status" >&5
6126 echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6128
6129 ( exit $ac_status )
6130 ac_cv_header_stdc=no
6131 fi
6132 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6133 fi
6134 fi
6135 fi
6136 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6137 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6138 if test $ac_cv_header_stdc = yes; then
6139
6140 cat >>confdefs.h <<\_ACEOF
6141 #define STDC_HEADERS 1
6142 _ACEOF
6143
6144 fi
6145
6146
6147
6148
6149
6150
6151 ac_header_dirent=no
6152 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6153   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6154 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6155 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6157   echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159   cat >conftest.$ac_ext <<_ACEOF
6160 /* confdefs.h.  */
6161 _ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h.  */
6165 #include <sys/types.h>
6166 #include <$ac_hdr>
6167
6168 int
6169 main ()
6170 {
6171 if ((DIR *) 0)
6172 return 0;
6173   ;
6174   return 0;
6175 }
6176 _ACEOF
6177 rm -f conftest.$ac_objext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179   (eval $ac_compile) 2>conftest.er1
6180   ac_status=$?
6181   grep -v '^ *+' conftest.er1 >conftest.err
6182   rm -f conftest.er1
6183   cat conftest.err >&5
6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185   (exit $ac_status); } &&
6186          { ac_try='test -z "$ac_c_werror_flag"
6187                          || test ! -s conftest.err'
6188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189   (eval $ac_try) 2>&5
6190   ac_status=$?
6191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192   (exit $ac_status); }; } &&
6193          { ac_try='test -s conftest.$ac_objext'
6194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195   (eval $ac_try) 2>&5
6196   ac_status=$?
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); }; }; then
6199   eval "$as_ac_Header=yes"
6200 else
6201   echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6203
6204 eval "$as_ac_Header=no"
6205 fi
6206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6207 fi
6208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6211   cat >>confdefs.h <<_ACEOF
6212 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6213 _ACEOF
6214
6215 ac_header_dirent=$ac_hdr; break
6216 fi
6217
6218 done
6219 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6220 if test $ac_header_dirent = dirent.h; then
6221   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6222 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6223 if test "${ac_cv_search_opendir+set}" = set; then
6224   echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226   ac_func_search_save_LIBS=$LIBS
6227 ac_cv_search_opendir=no
6228 cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h.  */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h.  */
6234
6235 /* Override any gcc2 internal prototype to avoid an error.  */
6236 #ifdef __cplusplus
6237 extern "C"
6238 #endif
6239 /* We use char because int might match the return type of a gcc2
6240    builtin and then its argument prototype would still apply.  */
6241 char opendir ();
6242 int
6243 main ()
6244 {
6245 opendir ();
6246   ;
6247   return 0;
6248 }
6249 _ACEOF
6250 rm -f conftest.$ac_objext conftest$ac_exeext
6251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6252   (eval $ac_link) 2>conftest.er1
6253   ac_status=$?
6254   grep -v '^ *+' conftest.er1 >conftest.err
6255   rm -f conftest.er1
6256   cat conftest.err >&5
6257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258   (exit $ac_status); } &&
6259          { ac_try='test -z "$ac_c_werror_flag"
6260                          || test ! -s conftest.err'
6261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262   (eval $ac_try) 2>&5
6263   ac_status=$?
6264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265   (exit $ac_status); }; } &&
6266          { ac_try='test -s conftest$ac_exeext'
6267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268   (eval $ac_try) 2>&5
6269   ac_status=$?
6270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271   (exit $ac_status); }; }; then
6272   ac_cv_search_opendir="none required"
6273 else
6274   echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6276
6277 fi
6278 rm -f conftest.err conftest.$ac_objext \
6279       conftest$ac_exeext conftest.$ac_ext
6280 if test "$ac_cv_search_opendir" = no; then
6281   for ac_lib in dir; do
6282     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6283     cat >conftest.$ac_ext <<_ACEOF
6284 /* confdefs.h.  */
6285 _ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h.  */
6289
6290 /* Override any gcc2 internal prototype to avoid an error.  */
6291 #ifdef __cplusplus
6292 extern "C"
6293 #endif
6294 /* We use char because int might match the return type of a gcc2
6295    builtin and then its argument prototype would still apply.  */
6296 char opendir ();
6297 int
6298 main ()
6299 {
6300 opendir ();
6301   ;
6302   return 0;
6303 }
6304 _ACEOF
6305 rm -f conftest.$ac_objext conftest$ac_exeext
6306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6307   (eval $ac_link) 2>conftest.er1
6308   ac_status=$?
6309   grep -v '^ *+' conftest.er1 >conftest.err
6310   rm -f conftest.er1
6311   cat conftest.err >&5
6312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313   (exit $ac_status); } &&
6314          { ac_try='test -z "$ac_c_werror_flag"
6315                          || test ! -s conftest.err'
6316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317   (eval $ac_try) 2>&5
6318   ac_status=$?
6319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320   (exit $ac_status); }; } &&
6321          { ac_try='test -s conftest$ac_exeext'
6322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323   (eval $ac_try) 2>&5
6324   ac_status=$?
6325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326   (exit $ac_status); }; }; then
6327   ac_cv_search_opendir="-l$ac_lib"
6328 break
6329 else
6330   echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6332
6333 fi
6334 rm -f conftest.err conftest.$ac_objext \
6335       conftest$ac_exeext conftest.$ac_ext
6336   done
6337 fi
6338 LIBS=$ac_func_search_save_LIBS
6339 fi
6340 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6341 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6342 if test "$ac_cv_search_opendir" != no; then
6343   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6344
6345 fi
6346
6347 else
6348   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6349 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6350 if test "${ac_cv_search_opendir+set}" = set; then
6351   echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353   ac_func_search_save_LIBS=$LIBS
6354 ac_cv_search_opendir=no
6355 cat >conftest.$ac_ext <<_ACEOF
6356 /* confdefs.h.  */
6357 _ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h.  */
6361
6362 /* Override any gcc2 internal prototype to avoid an error.  */
6363 #ifdef __cplusplus
6364 extern "C"
6365 #endif
6366 /* We use char because int might match the return type of a gcc2
6367    builtin and then its argument prototype would still apply.  */
6368 char opendir ();
6369 int
6370 main ()
6371 {
6372 opendir ();
6373   ;
6374   return 0;
6375 }
6376 _ACEOF
6377 rm -f conftest.$ac_objext conftest$ac_exeext
6378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6379   (eval $ac_link) 2>conftest.er1
6380   ac_status=$?
6381   grep -v '^ *+' conftest.er1 >conftest.err
6382   rm -f conftest.er1
6383   cat conftest.err >&5
6384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385   (exit $ac_status); } &&
6386          { ac_try='test -z "$ac_c_werror_flag"
6387                          || test ! -s conftest.err'
6388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389   (eval $ac_try) 2>&5
6390   ac_status=$?
6391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392   (exit $ac_status); }; } &&
6393          { ac_try='test -s conftest$ac_exeext'
6394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395   (eval $ac_try) 2>&5
6396   ac_status=$?
6397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398   (exit $ac_status); }; }; then
6399   ac_cv_search_opendir="none required"
6400 else
6401   echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6403
6404 fi
6405 rm -f conftest.err conftest.$ac_objext \
6406       conftest$ac_exeext conftest.$ac_ext
6407 if test "$ac_cv_search_opendir" = no; then
6408   for ac_lib in x; do
6409     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6410     cat >conftest.$ac_ext <<_ACEOF
6411 /* confdefs.h.  */
6412 _ACEOF
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h.  */
6416
6417 /* Override any gcc2 internal prototype to avoid an error.  */
6418 #ifdef __cplusplus
6419 extern "C"
6420 #endif
6421 /* We use char because int might match the return type of a gcc2
6422    builtin and then its argument prototype would still apply.  */
6423 char opendir ();
6424 int
6425 main ()
6426 {
6427 opendir ();
6428   ;
6429   return 0;
6430 }
6431 _ACEOF
6432 rm -f conftest.$ac_objext conftest$ac_exeext
6433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6434   (eval $ac_link) 2>conftest.er1
6435   ac_status=$?
6436   grep -v '^ *+' conftest.er1 >conftest.err
6437   rm -f conftest.er1
6438   cat conftest.err >&5
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); } &&
6441          { ac_try='test -z "$ac_c_werror_flag"
6442                          || test ! -s conftest.err'
6443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444   (eval $ac_try) 2>&5
6445   ac_status=$?
6446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447   (exit $ac_status); }; } &&
6448          { ac_try='test -s conftest$ac_exeext'
6449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450   (eval $ac_try) 2>&5
6451   ac_status=$?
6452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453   (exit $ac_status); }; }; then
6454   ac_cv_search_opendir="-l$ac_lib"
6455 break
6456 else
6457   echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6459
6460 fi
6461 rm -f conftest.err conftest.$ac_objext \
6462       conftest$ac_exeext conftest.$ac_ext
6463   done
6464 fi
6465 LIBS=$ac_func_search_save_LIBS
6466 fi
6467 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6468 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6469 if test "$ac_cv_search_opendir" != no; then
6470   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6471
6472 fi
6473
6474 fi
6475
6476 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6487                   inttypes.h stdint.h unistd.h
6488 do
6489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6490 echo "$as_me:$LINENO: checking for $ac_header" >&5
6491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6493   echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495   cat >conftest.$ac_ext <<_ACEOF
6496 /* confdefs.h.  */
6497 _ACEOF
6498 cat confdefs.h >>conftest.$ac_ext
6499 cat >>conftest.$ac_ext <<_ACEOF
6500 /* end confdefs.h.  */
6501 $ac_includes_default
6502
6503 #include <$ac_header>
6504 _ACEOF
6505 rm -f conftest.$ac_objext
6506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6507   (eval $ac_compile) 2>conftest.er1
6508   ac_status=$?
6509   grep -v '^ *+' conftest.er1 >conftest.err
6510   rm -f conftest.er1
6511   cat conftest.err >&5
6512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513   (exit $ac_status); } &&
6514          { ac_try='test -z "$ac_c_werror_flag"
6515                          || test ! -s conftest.err'
6516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517   (eval $ac_try) 2>&5
6518   ac_status=$?
6519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520   (exit $ac_status); }; } &&
6521          { ac_try='test -s conftest.$ac_objext'
6522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523   (eval $ac_try) 2>&5
6524   ac_status=$?
6525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526   (exit $ac_status); }; }; then
6527   eval "$as_ac_Header=yes"
6528 else
6529   echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6531
6532 eval "$as_ac_Header=no"
6533 fi
6534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6535 fi
6536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6539   cat >>confdefs.h <<_ACEOF
6540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6541 _ACEOF
6542
6543 fi
6544
6545 done
6546
6547
6548
6549 for ac_header in dlfcn.h
6550 do
6551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6553   echo "$as_me:$LINENO: checking for $ac_header" >&5
6554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6556   echo $ECHO_N "(cached) $ECHO_C" >&6
6557 fi
6558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6560 else
6561   # Is the header compilable?
6562 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6564 cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h.  */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h.  */
6570 $ac_includes_default
6571 #include <$ac_header>
6572 _ACEOF
6573 rm -f conftest.$ac_objext
6574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6575   (eval $ac_compile) 2>conftest.er1
6576   ac_status=$?
6577   grep -v '^ *+' conftest.er1 >conftest.err
6578   rm -f conftest.er1
6579   cat conftest.err >&5
6580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581   (exit $ac_status); } &&
6582          { ac_try='test -z "$ac_c_werror_flag"
6583                          || test ! -s conftest.err'
6584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585   (eval $ac_try) 2>&5
6586   ac_status=$?
6587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588   (exit $ac_status); }; } &&
6589          { ac_try='test -s conftest.$ac_objext'
6590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591   (eval $ac_try) 2>&5
6592   ac_status=$?
6593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594   (exit $ac_status); }; }; then
6595   ac_header_compiler=yes
6596 else
6597   echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6599
6600 ac_header_compiler=no
6601 fi
6602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6604 echo "${ECHO_T}$ac_header_compiler" >&6
6605
6606 # Is the header present?
6607 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6609 cat >conftest.$ac_ext <<_ACEOF
6610 /* confdefs.h.  */
6611 _ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h.  */
6615 #include <$ac_header>
6616 _ACEOF
6617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6618   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6619   ac_status=$?
6620   grep -v '^ *+' conftest.er1 >conftest.err
6621   rm -f conftest.er1
6622   cat conftest.err >&5
6623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624   (exit $ac_status); } >/dev/null; then
6625   if test -s conftest.err; then
6626     ac_cpp_err=$ac_c_preproc_warn_flag
6627     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6628   else
6629     ac_cpp_err=
6630   fi
6631 else
6632   ac_cpp_err=yes
6633 fi
6634 if test -z "$ac_cpp_err"; then
6635   ac_header_preproc=yes
6636 else
6637   echo "$as_me: failed program was:" >&5
6638 sed 's/^/| /' conftest.$ac_ext >&5
6639
6640   ac_header_preproc=no
6641 fi
6642 rm -f conftest.err conftest.$ac_ext
6643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6644 echo "${ECHO_T}$ac_header_preproc" >&6
6645
6646 # So?  What about this header?
6647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6648   yes:no: )
6649     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6651     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6652 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6653     ac_header_preproc=yes
6654     ;;
6655   no:yes:* )
6656     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6658     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6659 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6660     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6661 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6662     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6663 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6664     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6666     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6667 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6668     (
6669       cat <<\_ASBOX
6670 ## ----------------------------------- ##
6671 ## Report this to llvmbugs@cs.uiuc.edu ##
6672 ## ----------------------------------- ##
6673 _ASBOX
6674     ) |
6675       sed "s/^/$as_me: WARNING:     /" >&2
6676     ;;
6677 esac
6678 echo "$as_me:$LINENO: checking for $ac_header" >&5
6679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6681   echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683   eval "$as_ac_Header=\$ac_header_preproc"
6684 fi
6685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6687
6688 fi
6689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6690   cat >>confdefs.h <<_ACEOF
6691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6692 _ACEOF
6693
6694 fi
6695
6696 done
6697
6698 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6699 if test "${enable_ltdl_install+set}" = set; then
6700   enableval="$enable_ltdl_install"
6701
6702 fi;
6703
6704
6705
6706 if test x"${enable_ltdl_install-no}" != xno; then
6707   INSTALL_LTDL_TRUE=
6708   INSTALL_LTDL_FALSE='#'
6709 else
6710   INSTALL_LTDL_TRUE='#'
6711   INSTALL_LTDL_FALSE=
6712 fi
6713
6714
6715
6716 if test x"${enable_ltdl_convenience-no}" != xno; then
6717   CONVENIENCE_LTDL_TRUE=
6718   CONVENIENCE_LTDL_FALSE='#'
6719 else
6720   CONVENIENCE_LTDL_TRUE='#'
6721   CONVENIENCE_LTDL_FALSE=
6722 fi
6723
6724
6725 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6726 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6727 library_names_spec=
6728 libname_spec='lib$name'
6729 soname_spec=
6730 shrext_cmds=".so"
6731 postinstall_cmds=
6732 postuninstall_cmds=
6733 finish_cmds=
6734 finish_eval=
6735 shlibpath_var=
6736 shlibpath_overrides_runpath=unknown
6737 version_type=none
6738 dynamic_linker="$host_os ld.so"
6739 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6740 if test "$GCC" = yes; then
6741   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6742   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6743     # if the path contains ";" then we assume it to be the separator
6744     # otherwise default to the standard path separator (i.e. ":") - it is
6745     # assumed that no part of a normal pathname contains ";" but that should
6746     # okay in the real world where ";" in dirpaths is itself problematic.
6747     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6748   else
6749     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6750   fi
6751 else
6752   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6753 fi
6754 need_lib_prefix=unknown
6755 hardcode_into_libs=no
6756
6757 # when you set need_version to no, make sure it does not cause -set_version
6758 # flags to be left without arguments
6759 need_version=unknown
6760
6761 case $host_os in
6762 aix3*)
6763   version_type=linux
6764   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6765   shlibpath_var=LIBPATH
6766
6767   # AIX 3 has no versioning support, so we append a major version to the name.
6768   soname_spec='${libname}${release}${shared_ext}$major'
6769   ;;
6770
6771 aix4* | aix5*)
6772   version_type=linux
6773   need_lib_prefix=no
6774   need_version=no
6775   hardcode_into_libs=yes
6776   if test "$host_cpu" = ia64; then
6777     # AIX 5 supports IA64
6778     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6779     shlibpath_var=LD_LIBRARY_PATH
6780   else
6781     # With GCC up to 2.95.x, collect2 would create an import file
6782     # for dependence libraries.  The import file would start with
6783     # the line `#! .'.  This would cause the generated library to
6784     # depend on `.', always an invalid library.  This was fixed in
6785     # development snapshots of GCC prior to 3.0.
6786     case $host_os in
6787       aix4 | aix4.[01] | aix4.[01].*)
6788       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6789            echo ' yes '
6790            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6791         :
6792       else
6793         can_build_shared=no
6794       fi
6795       ;;
6796     esac
6797     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6798     # soname into executable. Probably we can add versioning support to
6799     # collect2, so additional links can be useful in future.
6800     if test "$aix_use_runtimelinking" = yes; then
6801       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6802       # instead of lib<name>.a to let people know that these are not
6803       # typical AIX shared libraries.
6804       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6805     else
6806       # We preserve .a as extension for shared libraries through AIX4.2
6807       # and later when we are not doing run time linking.
6808       library_names_spec='${libname}${release}.a $libname.a'
6809       soname_spec='${libname}${release}${shared_ext}$major'
6810     fi
6811     shlibpath_var=LIBPATH
6812   fi
6813   ;;
6814
6815 amigaos*)
6816   library_names_spec='$libname.ixlibrary $libname.a'
6817   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6818   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'
6819   ;;
6820
6821 beos*)
6822   library_names_spec='${libname}${shared_ext}'
6823   dynamic_linker="$host_os ld.so"
6824   shlibpath_var=LIBRARY_PATH
6825   ;;
6826
6827 bsdi[45]*)
6828   version_type=linux
6829   need_version=no
6830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6831   soname_spec='${libname}${release}${shared_ext}$major'
6832   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6833   shlibpath_var=LD_LIBRARY_PATH
6834   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6835   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6836   # the default ld.so.conf also contains /usr/contrib/lib and
6837   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6838   # libtool to hard-code these into programs
6839   ;;
6840
6841 cygwin* | mingw* | pw32*)
6842   version_type=windows
6843   shrext_cmds=".dll"
6844   need_version=no
6845   need_lib_prefix=no
6846
6847   case $GCC,$host_os in
6848   yes,cygwin* | yes,mingw* | yes,pw32*)
6849     library_names_spec='$libname.dll.a'
6850     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6851     postinstall_cmds='base_file=`basename \${file}`~
6852       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6853       dldir=$destdir/`dirname \$dlpath`~
6854       test -d \$dldir || mkdir -p \$dldir~
6855       $install_prog $dir/$dlname \$dldir/$dlname'
6856     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6857       dlpath=$dir/\$dldll~
6858        $rm \$dlpath'
6859     shlibpath_overrides_runpath=yes
6860
6861     case $host_os in
6862     cygwin*)
6863       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6864       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6865       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6866       ;;
6867     mingw*)
6868       # MinGW DLLs use traditional 'lib' prefix
6869       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6870       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6871       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6872         # It is most probably a Windows format PATH printed by
6873         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6874         # path with ; separators, and with drive letters. We can handle the
6875         # drive letters (cygwin fileutils understands them), so leave them,
6876         # especially as we might pass files found there to a mingw objdump,
6877         # which wouldn't understand a cygwinified path. Ahh.
6878         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6879       else
6880         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6881       fi
6882       ;;
6883     pw32*)
6884       # pw32 DLLs use 'pw' prefix rather than 'lib'
6885       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6886       ;;
6887     esac
6888     ;;
6889
6890   *)
6891     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6892     ;;
6893   esac
6894   dynamic_linker='Win32 ld.exe'
6895   # FIXME: first we should search . and the directory the executable is in
6896   shlibpath_var=PATH
6897   ;;
6898
6899 darwin* | rhapsody*)
6900   dynamic_linker="$host_os dyld"
6901   version_type=darwin
6902   need_lib_prefix=no
6903   need_version=no
6904   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6905   soname_spec='${libname}${release}${major}$shared_ext'
6906   shlibpath_overrides_runpath=yes
6907   shlibpath_var=DYLD_LIBRARY_PATH
6908   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6909   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6910   if test "$GCC" = yes; then
6911     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"`
6912   else
6913     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6914   fi
6915   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6916   ;;
6917
6918 dgux*)
6919   version_type=linux
6920   need_lib_prefix=no
6921   need_version=no
6922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6923   soname_spec='${libname}${release}${shared_ext}$major'
6924   shlibpath_var=LD_LIBRARY_PATH
6925   ;;
6926
6927 freebsd1*)
6928   dynamic_linker=no
6929   ;;
6930
6931 kfreebsd*-gnu)
6932   version_type=linux
6933   need_lib_prefix=no
6934   need_version=no
6935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6936   soname_spec='${libname}${release}${shared_ext}$major'
6937   shlibpath_var=LD_LIBRARY_PATH
6938   shlibpath_overrides_runpath=no
6939   hardcode_into_libs=yes
6940   dynamic_linker='GNU ld.so'
6941   ;;
6942
6943 freebsd*)
6944   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6945   version_type=freebsd-$objformat
6946   case $version_type in
6947     freebsd-elf*)
6948       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6949       need_version=no
6950       need_lib_prefix=no
6951       ;;
6952     freebsd-*)
6953       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6954       need_version=yes
6955       ;;
6956   esac
6957   shlibpath_var=LD_LIBRARY_PATH
6958   case $host_os in
6959   freebsd2*)
6960     shlibpath_overrides_runpath=yes
6961     ;;
6962   freebsd3.01* | freebsdelf3.01*)
6963     shlibpath_overrides_runpath=yes
6964     hardcode_into_libs=yes
6965     ;;
6966   *) # from 3.2 on
6967     shlibpath_overrides_runpath=no
6968     hardcode_into_libs=yes
6969     ;;
6970   esac
6971   ;;
6972
6973 gnu*)
6974   version_type=linux
6975   need_lib_prefix=no
6976   need_version=no
6977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6978   soname_spec='${libname}${release}${shared_ext}$major'
6979   shlibpath_var=LD_LIBRARY_PATH
6980   hardcode_into_libs=yes
6981   ;;
6982
6983 hpux9* | hpux10* | hpux11*)
6984   # Give a soname corresponding to the major version so that dld.sl refuses to
6985   # link against other versions.
6986   version_type=sunos
6987   need_lib_prefix=no
6988   need_version=no
6989   case "$host_cpu" in
6990   ia64*)
6991     shrext_cmds='.so'
6992     hardcode_into_libs=yes
6993     dynamic_linker="$host_os dld.so"
6994     shlibpath_var=LD_LIBRARY_PATH
6995     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6996     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6997     soname_spec='${libname}${release}${shared_ext}$major'
6998     if test "X$HPUX_IA64_MODE" = X32; then
6999       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7000     else
7001       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7002     fi
7003     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7004     ;;
7005    hppa*64*)
7006      shrext_cmds='.sl'
7007      hardcode_into_libs=yes
7008      dynamic_linker="$host_os dld.sl"
7009      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7010      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7011      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7012      soname_spec='${libname}${release}${shared_ext}$major'
7013      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7014      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7015      ;;
7016    *)
7017     shrext_cmds='.sl'
7018     dynamic_linker="$host_os dld.sl"
7019     shlibpath_var=SHLIB_PATH
7020     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7021     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7022     soname_spec='${libname}${release}${shared_ext}$major'
7023     ;;
7024   esac
7025   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7026   postinstall_cmds='chmod 555 $lib'
7027   ;;
7028
7029 irix5* | irix6* | nonstopux*)
7030   case $host_os in
7031     nonstopux*) version_type=nonstopux ;;
7032     *)
7033         if test "$lt_cv_prog_gnu_ld" = yes; then
7034                 version_type=linux
7035         else
7036                 version_type=irix
7037         fi ;;
7038   esac
7039   need_lib_prefix=no
7040   need_version=no
7041   soname_spec='${libname}${release}${shared_ext}$major'
7042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7043   case $host_os in
7044   irix5* | nonstopux*)
7045     libsuff= shlibsuff=
7046     ;;
7047   *)
7048     case $LD in # libtool.m4 will add one of these switches to LD
7049     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7050       libsuff= shlibsuff= libmagic=32-bit;;
7051     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7052       libsuff=32 shlibsuff=N32 libmagic=N32;;
7053     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7054       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7055     *) libsuff= shlibsuff= libmagic=never-match;;
7056     esac
7057     ;;
7058   esac
7059   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7060   shlibpath_overrides_runpath=no
7061   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7062   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7063   hardcode_into_libs=yes
7064   ;;
7065
7066 # No shared lib support for Linux oldld, aout, or coff.
7067 linux*oldld* | linux*aout* | linux*coff*)
7068   dynamic_linker=no
7069   ;;
7070
7071 # This must be Linux ELF.
7072 linux*)
7073   version_type=linux
7074   need_lib_prefix=no
7075   need_version=no
7076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7077   soname_spec='${libname}${release}${shared_ext}$major'
7078   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7079   shlibpath_var=LD_LIBRARY_PATH
7080   shlibpath_overrides_runpath=no
7081   # This implies no fast_install, which is unacceptable.
7082   # Some rework will be needed to allow for fast_install
7083   # before this can be enabled.
7084   hardcode_into_libs=yes
7085
7086   # Append ld.so.conf contents to the search path
7087   if test -f /etc/ld.so.conf; then
7088     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7089     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7090   fi
7091
7092   # We used to test for /lib/ld.so.1 and disable shared libraries on
7093   # powerpc, because MkLinux only supported shared libraries with the
7094   # GNU dynamic linker.  Since this was broken with cross compilers,
7095   # most powerpc-linux boxes support dynamic linking these days and
7096   # people can always --disable-shared, the test was removed, and we
7097   # assume the GNU/Linux dynamic linker is in use.
7098   dynamic_linker='GNU/Linux ld.so'
7099   ;;
7100
7101 knetbsd*-gnu)
7102   version_type=linux
7103   need_lib_prefix=no
7104   need_version=no
7105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7106   soname_spec='${libname}${release}${shared_ext}$major'
7107   shlibpath_var=LD_LIBRARY_PATH
7108   shlibpath_overrides_runpath=no
7109   hardcode_into_libs=yes
7110   dynamic_linker='GNU ld.so'
7111   ;;
7112
7113 netbsd*)
7114   version_type=sunos
7115   need_lib_prefix=no
7116   need_version=no
7117   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7118     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7119     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7120     dynamic_linker='NetBSD (a.out) ld.so'
7121   else
7122     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7123     soname_spec='${libname}${release}${shared_ext}$major'
7124     dynamic_linker='NetBSD ld.elf_so'
7125   fi
7126   shlibpath_var=LD_LIBRARY_PATH
7127   shlibpath_overrides_runpath=yes
7128   hardcode_into_libs=yes
7129   ;;
7130
7131 newsos6)
7132   version_type=linux
7133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7134   shlibpath_var=LD_LIBRARY_PATH
7135   shlibpath_overrides_runpath=yes
7136   ;;
7137
7138 nto-qnx*)
7139   version_type=linux
7140   need_lib_prefix=no
7141   need_version=no
7142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7143   soname_spec='${libname}${release}${shared_ext}$major'
7144   shlibpath_var=LD_LIBRARY_PATH
7145   shlibpath_overrides_runpath=yes
7146   ;;
7147
7148 openbsd*)
7149   version_type=sunos
7150   need_lib_prefix=no
7151   need_version=no
7152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7153   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7154   shlibpath_var=LD_LIBRARY_PATH
7155   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7156     case $host_os in
7157       openbsd2.[89] | openbsd2.[89].*)
7158         shlibpath_overrides_runpath=no
7159         ;;
7160       *)
7161         shlibpath_overrides_runpath=yes
7162         ;;
7163       esac
7164   else
7165     shlibpath_overrides_runpath=yes
7166   fi
7167   ;;
7168
7169 os2*)
7170   libname_spec='$name'
7171   shrext_cmds=".dll"
7172   need_lib_prefix=no
7173   library_names_spec='$libname${shared_ext} $libname.a'
7174   dynamic_linker='OS/2 ld.exe'
7175   shlibpath_var=LIBPATH
7176   ;;
7177
7178 osf3* | osf4* | osf5*)
7179   version_type=osf
7180   need_lib_prefix=no
7181   need_version=no
7182   soname_spec='${libname}${release}${shared_ext}$major'
7183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7184   shlibpath_var=LD_LIBRARY_PATH
7185   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7186   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7187   ;;
7188
7189 sco3.2v5*)
7190   version_type=osf
7191   soname_spec='${libname}${release}${shared_ext}$major'
7192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7193   shlibpath_var=LD_LIBRARY_PATH
7194   ;;
7195
7196 solaris*)
7197   version_type=linux
7198   need_lib_prefix=no
7199   need_version=no
7200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7201   soname_spec='${libname}${release}${shared_ext}$major'
7202   shlibpath_var=LD_LIBRARY_PATH
7203   shlibpath_overrides_runpath=yes
7204   hardcode_into_libs=yes
7205   # ldd complains unless libraries are executable
7206   postinstall_cmds='chmod +x $lib'
7207   ;;
7208
7209 sunos4*)
7210   version_type=sunos
7211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7212   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7213   shlibpath_var=LD_LIBRARY_PATH
7214   shlibpath_overrides_runpath=yes
7215   if test "$with_gnu_ld" = yes; then
7216     need_lib_prefix=no
7217   fi
7218   need_version=yes
7219   ;;
7220
7221 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7222   version_type=linux
7223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7224   soname_spec='${libname}${release}${shared_ext}$major'
7225   shlibpath_var=LD_LIBRARY_PATH
7226   case $host_vendor in
7227     sni)
7228       shlibpath_overrides_runpath=no
7229       need_lib_prefix=no
7230       export_dynamic_flag_spec='${wl}-Blargedynsym'
7231       runpath_var=LD_RUN_PATH
7232       ;;
7233     siemens)
7234       need_lib_prefix=no
7235       ;;
7236     motorola)
7237       need_lib_prefix=no
7238       need_version=no
7239       shlibpath_overrides_runpath=no
7240       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7241       ;;
7242   esac
7243   ;;
7244
7245 sysv4*MP*)
7246   if test -d /usr/nec ;then
7247     version_type=linux
7248     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7249     soname_spec='$libname${shared_ext}.$major'
7250     shlibpath_var=LD_LIBRARY_PATH
7251   fi
7252   ;;
7253
7254 uts4*)
7255   version_type=linux
7256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7257   soname_spec='${libname}${release}${shared_ext}$major'
7258   shlibpath_var=LD_LIBRARY_PATH
7259   ;;
7260
7261 *)
7262   dynamic_linker=no
7263   ;;
7264 esac
7265 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7266 echo "${ECHO_T}$dynamic_linker" >&6
7267 test "$dynamic_linker" = no && can_build_shared=no
7268
7269
7270 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7271 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7272 if test "${libltdl_cv_shlibext+set}" = set; then
7273   echo $ECHO_N "(cached) $ECHO_C" >&6
7274 else
7275
7276 module=yes
7277 eval libltdl_cv_shlibext=$shrext_cmds
7278
7279 fi
7280 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7281 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7282 if test -n "$libltdl_cv_shlibext"; then
7283
7284 cat >>confdefs.h <<_ACEOF
7285 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7286 _ACEOF
7287
7288 fi
7289
7290
7291 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7292 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7293 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7294   echo $ECHO_N "(cached) $ECHO_C" >&6
7295 else
7296   libltdl_cv_shlibpath_var="$shlibpath_var"
7297 fi
7298 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7299 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7300 if test -n "$libltdl_cv_shlibpath_var"; then
7301
7302 cat >>confdefs.h <<_ACEOF
7303 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7304 _ACEOF
7305
7306 fi
7307
7308
7309 echo "$as_me:$LINENO: checking for the default library search path" >&5
7310 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7311 if test "${libltdl_cv_sys_search_path+set}" = set; then
7312   echo $ECHO_N "(cached) $ECHO_C" >&6
7313 else
7314   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7315 fi
7316 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7317 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7318 if test -n "$libltdl_cv_sys_search_path"; then
7319   sys_search_path=
7320   for dir in $libltdl_cv_sys_search_path; do
7321     if test -z "$sys_search_path"; then
7322       sys_search_path="$dir"
7323     else
7324       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7325     fi
7326   done
7327
7328 cat >>confdefs.h <<_ACEOF
7329 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7330 _ACEOF
7331
7332 fi
7333
7334 echo "$as_me:$LINENO: checking for objdir" >&5
7335 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7336 if test "${libltdl_cv_objdir+set}" = set; then
7337   echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339   libltdl_cv_objdir="$objdir"
7340   if test -n "$objdir"; then
7341     :
7342   else
7343     rm -f .libs 2>/dev/null
7344     mkdir .libs 2>/dev/null
7345     if test -d .libs; then
7346       libltdl_cv_objdir=.libs
7347     else
7348       # MS-DOS does not allow filenames that begin with a dot.
7349       libltdl_cv_objdir=_libs
7350     fi
7351   rmdir .libs 2>/dev/null
7352   fi
7353
7354 fi
7355 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7356 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7357
7358 cat >>confdefs.h <<_ACEOF
7359 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7360 _ACEOF
7361
7362
7363 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7364 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7365 if test "${lt_cv_path_NM+set}" = set; then
7366   echo $ECHO_N "(cached) $ECHO_C" >&6
7367 else
7368   if test -n "$NM"; then
7369   # Let the user override the test.
7370   lt_cv_path_NM="$NM"
7371 else
7372   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7373   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7374     IFS="$lt_save_ifs"
7375     test -z "$ac_dir" && ac_dir=.
7376     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7377     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7378       # Check to see if the nm accepts a BSD-compat flag.
7379       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7380       #   nm: unknown option "B" ignored
7381       # Tru64's nm complains that /dev/null is an invalid object file
7382       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7383       */dev/null* | *'Invalid file or object type'*)
7384         lt_cv_path_NM="$tmp_nm -B"
7385         break
7386         ;;
7387       *)
7388         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7389         */dev/null*)
7390           lt_cv_path_NM="$tmp_nm -p"
7391           break
7392           ;;
7393         *)
7394           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7395           continue # so that we can try to find one that supports BSD flags
7396           ;;
7397         esac
7398       esac
7399     fi
7400   done
7401   IFS="$lt_save_ifs"
7402   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7403 fi
7404 fi
7405 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7406 echo "${ECHO_T}$lt_cv_path_NM" >&6
7407 NM="$lt_cv_path_NM"
7408
7409
7410
7411
7412
7413 # Check for command to grab the raw symbol name followed by C symbol from nm.
7414 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7415 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7416 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7417   echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419
7420 # These are sane defaults that work on at least a few old systems.
7421 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7422
7423 # Character class describing NM global symbol codes.
7424 symcode='[BCDEGRST]'
7425
7426 # Regexp to match symbols that can be accessed directly from C.
7427 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7428
7429 # Transform the above into a raw symbol and a C symbol.
7430 symxfrm='\1 \2\3 \3'
7431
7432 # Transform an extracted symbol line into a proper C declaration
7433 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7434
7435 # Transform an extracted symbol line into symbol name and symbol address
7436 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'"
7437
7438 # Define system-specific variables.
7439 case $host_os in
7440 aix*)
7441   symcode='[BCDT]'
7442   ;;
7443 cygwin* | mingw* | pw32*)
7444   symcode='[ABCDGISTW]'
7445   ;;
7446 hpux*) # Its linker distinguishes data from code symbols
7447   if test "$host_cpu" = ia64; then
7448     symcode='[ABCDEGRST]'
7449   fi
7450   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7451   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'"
7452   ;;
7453 linux*)
7454   if test "$host_cpu" = ia64; then
7455     symcode='[ABCDGIRSTW]'
7456     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7457     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'"
7458   fi
7459   ;;
7460 irix* | nonstopux*)
7461   symcode='[BCDEGRST]'
7462   ;;
7463 osf*)
7464   symcode='[BCDEGQRST]'
7465   ;;
7466 solaris* | sysv5*)
7467   symcode='[BDRT]'
7468   ;;
7469 sysv4)
7470   symcode='[DFNSTU]'
7471   ;;
7472 esac
7473
7474 # Handle CRLF in mingw tool chain
7475 opt_cr=
7476 case $build_os in
7477 mingw*)
7478   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7479   ;;
7480 esac
7481
7482 # If we're using GNU nm, then use its standard symbol codes.
7483 case `$NM -V 2>&1` in
7484 *GNU* | *'with BFD'*)
7485   symcode='[ABCDGIRSTW]' ;;
7486 esac
7487
7488 # Try without a prefix undercore, then with it.
7489 for ac_symprfx in "" "_"; do
7490
7491   # Write the raw and C identifiers.
7492   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7493
7494   # Check to see that the pipe works correctly.
7495   pipe_works=no
7496
7497   rm -f conftest*
7498   cat > conftest.$ac_ext <<EOF
7499 #ifdef __cplusplus
7500 extern "C" {
7501 #endif
7502 char nm_test_var;
7503 void nm_test_func(){}
7504 #ifdef __cplusplus
7505 }
7506 #endif
7507 int main(){nm_test_var='a';nm_test_func();return(0);}
7508 EOF
7509
7510   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7511   (eval $ac_compile) 2>&5
7512   ac_status=$?
7513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514   (exit $ac_status); }; then
7515     # Now try to grab the symbols.
7516     nlist=conftest.nm
7517     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7518   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7519   ac_status=$?
7520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521   (exit $ac_status); } && test -s "$nlist"; then
7522       # Try sorting and uniquifying the output.
7523       if sort "$nlist" | uniq > "$nlist"T; then
7524         mv -f "$nlist"T "$nlist"
7525       else
7526         rm -f "$nlist"T
7527       fi
7528
7529       # Make sure that we snagged all the symbols we need.
7530       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7531         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7532           cat <<EOF > conftest.$ac_ext
7533 #ifdef __cplusplus
7534 extern "C" {
7535 #endif
7536
7537 EOF
7538           # Now generate the symbol file.
7539           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7540
7541           cat <<EOF >> conftest.$ac_ext
7542 #if defined (__STDC__) && __STDC__
7543 # define lt_ptr_t void *
7544 #else
7545 # define lt_ptr_t char *
7546 # define const
7547 #endif
7548
7549 /* The mapping between symbol names and symbols. */
7550 const struct {
7551   const char *name;
7552   lt_ptr_t address;
7553 }
7554 lt_preloaded_symbols[] =
7555 {
7556 EOF
7557           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7558           cat <<\EOF >> conftest.$ac_ext
7559   {0, (lt_ptr_t) 0}
7560 };
7561
7562 #ifdef __cplusplus
7563 }
7564 #endif
7565 EOF
7566           # Now try linking the two files.
7567           mv conftest.$ac_objext conftstm.$ac_objext
7568           lt_save_LIBS="$LIBS"
7569           lt_save_CFLAGS="$CFLAGS"
7570           LIBS="conftstm.$ac_objext"
7571           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7572           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7573   (eval $ac_link) 2>&5
7574   ac_status=$?
7575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7577             pipe_works=yes
7578           fi
7579           LIBS="$lt_save_LIBS"
7580           CFLAGS="$lt_save_CFLAGS"
7581         else
7582           echo "cannot find nm_test_func in $nlist" >&5
7583         fi
7584       else
7585         echo "cannot find nm_test_var in $nlist" >&5
7586       fi
7587     else
7588       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7589     fi
7590   else
7591     echo "$progname: failed program was:" >&5
7592     cat conftest.$ac_ext >&5
7593   fi
7594   rm -f conftest* conftst*
7595
7596   # Do not use the global_symbol_pipe unless it works.
7597   if test "$pipe_works" = yes; then
7598     break
7599   else
7600     lt_cv_sys_global_symbol_pipe=
7601   fi
7602 done
7603
7604 fi
7605
7606 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7607   lt_cv_sys_global_symbol_to_cdecl=
7608 fi
7609 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7610   echo "$as_me:$LINENO: result: failed" >&5
7611 echo "${ECHO_T}failed" >&6
7612 else
7613   echo "$as_me:$LINENO: result: ok" >&5
7614 echo "${ECHO_T}ok" >&6
7615 fi
7616
7617
7618 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7619 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7620 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7621   echo $ECHO_N "(cached) $ECHO_C" >&6
7622 else
7623   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7624     libltdl_cv_preloaded_symbols=yes
7625   else
7626     libltdl_cv_preloaded_symbols=no
7627   fi
7628
7629 fi
7630 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7631 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7632 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7633
7634 cat >>confdefs.h <<\_ACEOF
7635 #define HAVE_PRELOADED_SYMBOLS 1
7636 _ACEOF
7637
7638 fi
7639
7640 LIBADD_DL=
7641
7642 ac_ext=c
7643 ac_cpp='$CPP $CPPFLAGS'
7644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7647
7648
7649 echo "$as_me:$LINENO: checking for shl_load" >&5
7650 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7651 if test "${ac_cv_func_shl_load+set}" = set; then
7652   echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654   cat >conftest.$ac_ext <<_ACEOF
7655 /* confdefs.h.  */
7656 _ACEOF
7657 cat confdefs.h >>conftest.$ac_ext
7658 cat >>conftest.$ac_ext <<_ACEOF
7659 /* end confdefs.h.  */
7660 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7662 #define shl_load innocuous_shl_load
7663
7664 /* System header to define __stub macros and hopefully few prototypes,
7665     which can conflict with char shl_load (); below.
7666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7667     <limits.h> exists even on freestanding compilers.  */
7668
7669 #ifdef __STDC__
7670 # include <limits.h>
7671 #else
7672 # include <assert.h>
7673 #endif
7674
7675 #undef shl_load
7676
7677 /* Override any gcc2 internal prototype to avoid an error.  */
7678 #ifdef __cplusplus
7679 extern "C"
7680 {
7681 #endif
7682 /* We use char because int might match the return type of a gcc2
7683    builtin and then its argument prototype would still apply.  */
7684 char shl_load ();
7685 /* The GNU C library defines this for functions which it implements
7686     to always fail with ENOSYS.  Some functions are actually named
7687     something starting with __ and the normal name is an alias.  */
7688 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7689 choke me
7690 #else
7691 char (*f) () = shl_load;
7692 #endif
7693 #ifdef __cplusplus
7694 }
7695 #endif
7696
7697 int
7698 main ()
7699 {
7700 return f != shl_load;
7701   ;
7702   return 0;
7703 }
7704 _ACEOF
7705 rm -f conftest.$ac_objext conftest$ac_exeext
7706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7707   (eval $ac_link) 2>conftest.er1
7708   ac_status=$?
7709   grep -v '^ *+' conftest.er1 >conftest.err
7710   rm -f conftest.er1
7711   cat conftest.err >&5
7712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713   (exit $ac_status); } &&
7714          { ac_try='test -z "$ac_c_werror_flag"
7715                          || test ! -s conftest.err'
7716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717   (eval $ac_try) 2>&5
7718   ac_status=$?
7719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720   (exit $ac_status); }; } &&
7721          { ac_try='test -s conftest$ac_exeext'
7722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723   (eval $ac_try) 2>&5
7724   ac_status=$?
7725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726   (exit $ac_status); }; }; then
7727   ac_cv_func_shl_load=yes
7728 else
7729   echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7731
7732 ac_cv_func_shl_load=no
7733 fi
7734 rm -f conftest.err conftest.$ac_objext \
7735       conftest$ac_exeext conftest.$ac_ext
7736 fi
7737 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7738 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7739 if test $ac_cv_func_shl_load = yes; then
7740
7741 cat >>confdefs.h <<\_ACEOF
7742 #define HAVE_SHL_LOAD 1
7743 _ACEOF
7744
7745 else
7746   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7747 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7748 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7749   echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751   ac_check_lib_save_LIBS=$LIBS
7752 LIBS="-ldld  $LIBS"
7753 cat >conftest.$ac_ext <<_ACEOF
7754 /* confdefs.h.  */
7755 _ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h.  */
7759
7760 /* Override any gcc2 internal prototype to avoid an error.  */
7761 #ifdef __cplusplus
7762 extern "C"
7763 #endif
7764 /* We use char because int might match the return type of a gcc2
7765    builtin and then its argument prototype would still apply.  */
7766 char shl_load ();
7767 int
7768 main ()
7769 {
7770 shl_load ();
7771   ;
7772   return 0;
7773 }
7774 _ACEOF
7775 rm -f conftest.$ac_objext conftest$ac_exeext
7776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7777   (eval $ac_link) 2>conftest.er1
7778   ac_status=$?
7779   grep -v '^ *+' conftest.er1 >conftest.err
7780   rm -f conftest.er1
7781   cat conftest.err >&5
7782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783   (exit $ac_status); } &&
7784          { ac_try='test -z "$ac_c_werror_flag"
7785                          || test ! -s conftest.err'
7786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787   (eval $ac_try) 2>&5
7788   ac_status=$?
7789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790   (exit $ac_status); }; } &&
7791          { ac_try='test -s conftest$ac_exeext'
7792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7793   (eval $ac_try) 2>&5
7794   ac_status=$?
7795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796   (exit $ac_status); }; }; then
7797   ac_cv_lib_dld_shl_load=yes
7798 else
7799   echo "$as_me: failed program was:" >&5
7800 sed 's/^/| /' conftest.$ac_ext >&5
7801
7802 ac_cv_lib_dld_shl_load=no
7803 fi
7804 rm -f conftest.err conftest.$ac_objext \
7805       conftest$ac_exeext conftest.$ac_ext
7806 LIBS=$ac_check_lib_save_LIBS
7807 fi
7808 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7809 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7810 if test $ac_cv_lib_dld_shl_load = yes; then
7811
7812 cat >>confdefs.h <<\_ACEOF
7813 #define HAVE_SHL_LOAD 1
7814 _ACEOF
7815
7816         LIBADD_DL="$LIBADD_DL -ldld"
7817 else
7818   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7819 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7820 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7821   echo $ECHO_N "(cached) $ECHO_C" >&6
7822 else
7823   ac_check_lib_save_LIBS=$LIBS
7824 LIBS="-ldl  $LIBS"
7825 cat >conftest.$ac_ext <<_ACEOF
7826 /* confdefs.h.  */
7827 _ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h.  */
7831
7832 /* Override any gcc2 internal prototype to avoid an error.  */
7833 #ifdef __cplusplus
7834 extern "C"
7835 #endif
7836 /* We use char because int might match the return type of a gcc2
7837    builtin and then its argument prototype would still apply.  */
7838 char dlopen ();
7839 int
7840 main ()
7841 {
7842 dlopen ();
7843   ;
7844   return 0;
7845 }
7846 _ACEOF
7847 rm -f conftest.$ac_objext conftest$ac_exeext
7848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7849   (eval $ac_link) 2>conftest.er1
7850   ac_status=$?
7851   grep -v '^ *+' conftest.er1 >conftest.err
7852   rm -f conftest.er1
7853   cat conftest.err >&5
7854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855   (exit $ac_status); } &&
7856          { ac_try='test -z "$ac_c_werror_flag"
7857                          || test ! -s conftest.err'
7858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859   (eval $ac_try) 2>&5
7860   ac_status=$?
7861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862   (exit $ac_status); }; } &&
7863          { ac_try='test -s conftest$ac_exeext'
7864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865   (eval $ac_try) 2>&5
7866   ac_status=$?
7867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868   (exit $ac_status); }; }; then
7869   ac_cv_lib_dl_dlopen=yes
7870 else
7871   echo "$as_me: failed program was:" >&5
7872 sed 's/^/| /' conftest.$ac_ext >&5
7873
7874 ac_cv_lib_dl_dlopen=no
7875 fi
7876 rm -f conftest.err conftest.$ac_objext \
7877       conftest$ac_exeext conftest.$ac_ext
7878 LIBS=$ac_check_lib_save_LIBS
7879 fi
7880 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7881 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7882 if test $ac_cv_lib_dl_dlopen = yes; then
7883
7884 cat >>confdefs.h <<\_ACEOF
7885 #define HAVE_LIBDL 1
7886 _ACEOF
7887
7888                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7889 else
7890   cat >conftest.$ac_ext <<_ACEOF
7891 /* confdefs.h.  */
7892 _ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h.  */
7896 #if HAVE_DLFCN_H
7897 #  include <dlfcn.h>
7898 #endif
7899
7900 int
7901 main ()
7902 {
7903 dlopen(0, 0);
7904   ;
7905   return 0;
7906 }
7907 _ACEOF
7908 rm -f conftest.$ac_objext conftest$ac_exeext
7909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7910   (eval $ac_link) 2>conftest.er1
7911   ac_status=$?
7912   grep -v '^ *+' conftest.er1 >conftest.err
7913   rm -f conftest.er1
7914   cat conftest.err >&5
7915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916   (exit $ac_status); } &&
7917          { ac_try='test -z "$ac_c_werror_flag"
7918                          || test ! -s conftest.err'
7919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920   (eval $ac_try) 2>&5
7921   ac_status=$?
7922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923   (exit $ac_status); }; } &&
7924          { ac_try='test -s conftest$ac_exeext'
7925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926   (eval $ac_try) 2>&5
7927   ac_status=$?
7928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929   (exit $ac_status); }; }; then
7930
7931 cat >>confdefs.h <<\_ACEOF
7932 #define HAVE_LIBDL 1
7933 _ACEOF
7934  libltdl_cv_func_dlopen="yes"
7935 else
7936   echo "$as_me: failed program was:" >&5
7937 sed 's/^/| /' conftest.$ac_ext >&5
7938
7939 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7940 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7941 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7942   echo $ECHO_N "(cached) $ECHO_C" >&6
7943 else
7944   ac_check_lib_save_LIBS=$LIBS
7945 LIBS="-lsvld  $LIBS"
7946 cat >conftest.$ac_ext <<_ACEOF
7947 /* confdefs.h.  */
7948 _ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h.  */
7952
7953 /* Override any gcc2 internal prototype to avoid an error.  */
7954 #ifdef __cplusplus
7955 extern "C"
7956 #endif
7957 /* We use char because int might match the return type of a gcc2
7958    builtin and then its argument prototype would still apply.  */
7959 char dlopen ();
7960 int
7961 main ()
7962 {
7963 dlopen ();
7964   ;
7965   return 0;
7966 }
7967 _ACEOF
7968 rm -f conftest.$ac_objext conftest$ac_exeext
7969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7970   (eval $ac_link) 2>conftest.er1
7971   ac_status=$?
7972   grep -v '^ *+' conftest.er1 >conftest.err
7973   rm -f conftest.er1
7974   cat conftest.err >&5
7975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976   (exit $ac_status); } &&
7977          { ac_try='test -z "$ac_c_werror_flag"
7978                          || test ! -s conftest.err'
7979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980   (eval $ac_try) 2>&5
7981   ac_status=$?
7982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983   (exit $ac_status); }; } &&
7984          { ac_try='test -s conftest$ac_exeext'
7985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986   (eval $ac_try) 2>&5
7987   ac_status=$?
7988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989   (exit $ac_status); }; }; then
7990   ac_cv_lib_svld_dlopen=yes
7991 else
7992   echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7994
7995 ac_cv_lib_svld_dlopen=no
7996 fi
7997 rm -f conftest.err conftest.$ac_objext \
7998       conftest$ac_exeext conftest.$ac_ext
7999 LIBS=$ac_check_lib_save_LIBS
8000 fi
8001 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8002 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8003 if test $ac_cv_lib_svld_dlopen = yes; then
8004
8005 cat >>confdefs.h <<\_ACEOF
8006 #define HAVE_LIBDL 1
8007 _ACEOF
8008
8009                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8010 else
8011   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8012 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8013 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8014   echo $ECHO_N "(cached) $ECHO_C" >&6
8015 else
8016   ac_check_lib_save_LIBS=$LIBS
8017 LIBS="-ldld  $LIBS"
8018 cat >conftest.$ac_ext <<_ACEOF
8019 /* confdefs.h.  */
8020 _ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h.  */
8024
8025 /* Override any gcc2 internal prototype to avoid an error.  */
8026 #ifdef __cplusplus
8027 extern "C"
8028 #endif
8029 /* We use char because int might match the return type of a gcc2
8030    builtin and then its argument prototype would still apply.  */
8031 char dld_link ();
8032 int
8033 main ()
8034 {
8035 dld_link ();
8036   ;
8037   return 0;
8038 }
8039 _ACEOF
8040 rm -f conftest.$ac_objext conftest$ac_exeext
8041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8042   (eval $ac_link) 2>conftest.er1
8043   ac_status=$?
8044   grep -v '^ *+' conftest.er1 >conftest.err
8045   rm -f conftest.er1
8046   cat conftest.err >&5
8047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048   (exit $ac_status); } &&
8049          { ac_try='test -z "$ac_c_werror_flag"
8050                          || test ! -s conftest.err'
8051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052   (eval $ac_try) 2>&5
8053   ac_status=$?
8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); }; } &&
8056          { ac_try='test -s conftest$ac_exeext'
8057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058   (eval $ac_try) 2>&5
8059   ac_status=$?
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); }; }; then
8062   ac_cv_lib_dld_dld_link=yes
8063 else
8064   echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8066
8067 ac_cv_lib_dld_dld_link=no
8068 fi
8069 rm -f conftest.err conftest.$ac_objext \
8070       conftest$ac_exeext conftest.$ac_ext
8071 LIBS=$ac_check_lib_save_LIBS
8072 fi
8073 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8074 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8075 if test $ac_cv_lib_dld_dld_link = yes; then
8076
8077 cat >>confdefs.h <<\_ACEOF
8078 #define HAVE_DLD 1
8079 _ACEOF
8080
8081                 LIBADD_DL="$LIBADD_DL -ldld"
8082 else
8083   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8084 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8085 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8086   echo $ECHO_N "(cached) $ECHO_C" >&6
8087 else
8088   cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h.  */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h.  */
8094 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8096 #define _dyld_func_lookup innocuous__dyld_func_lookup
8097
8098 /* System header to define __stub macros and hopefully few prototypes,
8099     which can conflict with char _dyld_func_lookup (); below.
8100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8101     <limits.h> exists even on freestanding compilers.  */
8102
8103 #ifdef __STDC__
8104 # include <limits.h>
8105 #else
8106 # include <assert.h>
8107 #endif
8108
8109 #undef _dyld_func_lookup
8110
8111 /* Override any gcc2 internal prototype to avoid an error.  */
8112 #ifdef __cplusplus
8113 extern "C"
8114 {
8115 #endif
8116 /* We use char because int might match the return type of a gcc2
8117    builtin and then its argument prototype would still apply.  */
8118 char _dyld_func_lookup ();
8119 /* The GNU C library defines this for functions which it implements
8120     to always fail with ENOSYS.  Some functions are actually named
8121     something starting with __ and the normal name is an alias.  */
8122 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8123 choke me
8124 #else
8125 char (*f) () = _dyld_func_lookup;
8126 #endif
8127 #ifdef __cplusplus
8128 }
8129 #endif
8130
8131 int
8132 main ()
8133 {
8134 return f != _dyld_func_lookup;
8135   ;
8136   return 0;
8137 }
8138 _ACEOF
8139 rm -f conftest.$ac_objext conftest$ac_exeext
8140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8141   (eval $ac_link) 2>conftest.er1
8142   ac_status=$?
8143   grep -v '^ *+' conftest.er1 >conftest.err
8144   rm -f conftest.er1
8145   cat conftest.err >&5
8146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147   (exit $ac_status); } &&
8148          { ac_try='test -z "$ac_c_werror_flag"
8149                          || test ! -s conftest.err'
8150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151   (eval $ac_try) 2>&5
8152   ac_status=$?
8153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154   (exit $ac_status); }; } &&
8155          { ac_try='test -s conftest$ac_exeext'
8156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157   (eval $ac_try) 2>&5
8158   ac_status=$?
8159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160   (exit $ac_status); }; }; then
8161   ac_cv_func__dyld_func_lookup=yes
8162 else
8163   echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8165
8166 ac_cv_func__dyld_func_lookup=no
8167 fi
8168 rm -f conftest.err conftest.$ac_objext \
8169       conftest$ac_exeext conftest.$ac_ext
8170 fi
8171 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8172 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8173 if test $ac_cv_func__dyld_func_lookup = yes; then
8174
8175 cat >>confdefs.h <<\_ACEOF
8176 #define HAVE_DYLD 1
8177 _ACEOF
8178
8179 fi
8180
8181
8182 fi
8183
8184
8185 fi
8186
8187
8188 fi
8189 rm -f conftest.err conftest.$ac_objext \
8190       conftest$ac_exeext conftest.$ac_ext
8191
8192 fi
8193
8194
8195 fi
8196
8197
8198 fi
8199
8200
8201 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8202 then
8203   lt_save_LIBS="$LIBS"
8204   LIBS="$LIBS $LIBADD_DL"
8205
8206 for ac_func in dlerror
8207 do
8208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8209 echo "$as_me:$LINENO: checking for $ac_func" >&5
8210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8211 if eval "test \"\${$as_ac_var+set}\" = set"; then
8212   echo $ECHO_N "(cached) $ECHO_C" >&6
8213 else
8214   cat >conftest.$ac_ext <<_ACEOF
8215 /* confdefs.h.  */
8216 _ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h.  */
8220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8221    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8222 #define $ac_func innocuous_$ac_func
8223
8224 /* System header to define __stub macros and hopefully few prototypes,
8225     which can conflict with char $ac_func (); below.
8226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8227     <limits.h> exists even on freestanding compilers.  */
8228
8229 #ifdef __STDC__
8230 # include <limits.h>
8231 #else
8232 # include <assert.h>
8233 #endif
8234
8235 #undef $ac_func
8236
8237 /* Override any gcc2 internal prototype to avoid an error.  */
8238 #ifdef __cplusplus
8239 extern "C"
8240 {
8241 #endif
8242 /* We use char because int might match the return type of a gcc2
8243    builtin and then its argument prototype would still apply.  */
8244 char $ac_func ();
8245 /* The GNU C library defines this for functions which it implements
8246     to always fail with ENOSYS.  Some functions are actually named
8247     something starting with __ and the normal name is an alias.  */
8248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8249 choke me
8250 #else
8251 char (*f) () = $ac_func;
8252 #endif
8253 #ifdef __cplusplus
8254 }
8255 #endif
8256
8257 int
8258 main ()
8259 {
8260 return f != $ac_func;
8261   ;
8262   return 0;
8263 }
8264 _ACEOF
8265 rm -f conftest.$ac_objext conftest$ac_exeext
8266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8267   (eval $ac_link) 2>conftest.er1
8268   ac_status=$?
8269   grep -v '^ *+' conftest.er1 >conftest.err
8270   rm -f conftest.er1
8271   cat conftest.err >&5
8272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273   (exit $ac_status); } &&
8274          { ac_try='test -z "$ac_c_werror_flag"
8275                          || test ! -s conftest.err'
8276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277   (eval $ac_try) 2>&5
8278   ac_status=$?
8279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280   (exit $ac_status); }; } &&
8281          { ac_try='test -s conftest$ac_exeext'
8282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283   (eval $ac_try) 2>&5
8284   ac_status=$?
8285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286   (exit $ac_status); }; }; then
8287   eval "$as_ac_var=yes"
8288 else
8289   echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8291
8292 eval "$as_ac_var=no"
8293 fi
8294 rm -f conftest.err conftest.$ac_objext \
8295       conftest$ac_exeext conftest.$ac_ext
8296 fi
8297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8298 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8299 if test `eval echo '${'$as_ac_var'}'` = yes; then
8300   cat >>confdefs.h <<_ACEOF
8301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8302 _ACEOF
8303
8304 fi
8305 done
8306
8307   LIBS="$lt_save_LIBS"
8308 fi
8309 ac_ext=c
8310 ac_cpp='$CPP $CPPFLAGS'
8311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8314
8315
8316
8317 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8318 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8319 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8320   echo $ECHO_N "(cached) $ECHO_C" >&6
8321 else
8322   ac_cv_sys_symbol_underscore=no
8323   cat > conftest.$ac_ext <<EOF
8324 void nm_test_func(){}
8325 int main(){nm_test_func;return 0;}
8326 EOF
8327   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8328   (eval $ac_compile) 2>&5
8329   ac_status=$?
8330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331   (exit $ac_status); }; then
8332     # Now try to grab the symbols.
8333     ac_nlist=conftest.nm
8334     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8335   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8336   ac_status=$?
8337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338   (exit $ac_status); } && test -s "$ac_nlist"; then
8339       # See whether the symbols have a leading underscore.
8340       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8341         ac_cv_sys_symbol_underscore=yes
8342       else
8343         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8344           :
8345         else
8346           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8347         fi
8348       fi
8349     else
8350       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8351     fi
8352   else
8353     echo "configure: failed program was:" >&5
8354     cat conftest.c >&5
8355   fi
8356   rm -rf conftest*
8357
8358 fi
8359 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8360 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8361
8362
8363 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8364   if test x"$libltdl_cv_func_dlopen" = xyes ||
8365      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8366         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8367 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8368 if test "${libltdl_cv_need_uscore+set}" = set; then
8369   echo $ECHO_N "(cached) $ECHO_C" >&6
8370 else
8371   libltdl_cv_need_uscore=unknown
8372           save_LIBS="$LIBS"
8373           LIBS="$LIBS $LIBADD_DL"
8374           if test "$cross_compiling" = yes; then :
8375   libltdl_cv_need_uscore=cross
8376 else
8377   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8378   lt_status=$lt_dlunknown
8379   cat > conftest.$ac_ext <<EOF
8380 #line 8380 "configure"
8381 #include "confdefs.h"
8382
8383 #if HAVE_DLFCN_H
8384 #include <dlfcn.h>
8385 #endif
8386
8387 #include <stdio.h>
8388
8389 #ifdef RTLD_GLOBAL
8390 #  define LT_DLGLOBAL           RTLD_GLOBAL
8391 #else
8392 #  ifdef DL_GLOBAL
8393 #    define LT_DLGLOBAL         DL_GLOBAL
8394 #  else
8395 #    define LT_DLGLOBAL         0
8396 #  endif
8397 #endif
8398
8399 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8400    find out it does not work in some platform. */
8401 #ifndef LT_DLLAZY_OR_NOW
8402 #  ifdef RTLD_LAZY
8403 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8404 #  else
8405 #    ifdef DL_LAZY
8406 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8407 #    else
8408 #      ifdef RTLD_NOW
8409 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8410 #      else
8411 #        ifdef DL_NOW
8412 #          define LT_DLLAZY_OR_NOW      DL_NOW
8413 #        else
8414 #          define LT_DLLAZY_OR_NOW      0
8415 #        endif
8416 #      endif
8417 #    endif
8418 #  endif
8419 #endif
8420
8421 #ifdef __cplusplus
8422 extern "C" void exit (int);
8423 #endif
8424
8425 void fnord() { int i=42;}
8426 int main ()
8427 {
8428   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8429   int status = $lt_dlunknown;
8430
8431   if (self)
8432     {
8433       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8434       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8435       /* dlclose (self); */
8436     }
8437
8438     exit (status);
8439 }
8440 EOF
8441   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8442   (eval $ac_link) 2>&5
8443   ac_status=$?
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8446     (./conftest; exit; ) 2>/dev/null
8447     lt_status=$?
8448     case x$lt_status in
8449       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8450       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8451       x$lt_unknown|x*)  ;;
8452     esac
8453   else :
8454     # compilation failed
8455
8456   fi
8457 fi
8458 rm -fr conftest*
8459
8460           LIBS="$save_LIBS"
8461
8462 fi
8463 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8464 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8465   fi
8466 fi
8467
8468 if test x"$libltdl_cv_need_uscore" = xyes; then
8469
8470 cat >>confdefs.h <<\_ACEOF
8471 #define NEED_USCORE 1
8472 _ACEOF
8473
8474 fi
8475
8476
8477 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8478 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8479 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8480   echo $ECHO_N "(cached) $ECHO_C" >&6
8481 else
8482   # PORTME does your system automatically load deplibs for dlopen?
8483   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8484   # For now, we just catch OSes we know something about -- in the
8485   # future, we'll try test this programmatically.
8486   libltdl_cv_sys_dlopen_deplibs=unknown
8487   case "$host_os" in
8488   aix3*|aix4.1.*|aix4.2.*)
8489     # Unknown whether this is true for these versions of AIX, but
8490     # we want this `case' here to explicitly catch those versions.
8491     libltdl_cv_sys_dlopen_deplibs=unknown
8492     ;;
8493   aix[45]*)
8494     libltdl_cv_sys_dlopen_deplibs=yes
8495     ;;
8496   darwin*)
8497     # Assuming the user has installed a libdl from somewhere, this is true
8498     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8499     libltdl_cv_sys_dlopen_deplibs=yes
8500     ;;
8501   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8502     # GNU and its variants, using gnu ld.so (Glibc)
8503     libltdl_cv_sys_dlopen_deplibs=yes
8504     ;;
8505   hpux10*|hpux11*)
8506     libltdl_cv_sys_dlopen_deplibs=yes
8507     ;;
8508   irix[12345]*|irix6.[01]*)
8509     # Catch all versions of IRIX before 6.2, and indicate that we don't
8510     # know how it worked for any of those versions.
8511     libltdl_cv_sys_dlopen_deplibs=unknown
8512     ;;
8513   irix*)
8514     # The case above catches anything before 6.2, and it's known that
8515     # at 6.2 and later dlopen does load deplibs.
8516     libltdl_cv_sys_dlopen_deplibs=yes
8517     ;;
8518   netbsd*)
8519     libltdl_cv_sys_dlopen_deplibs=yes
8520     ;;
8521   openbsd*)
8522     libltdl_cv_sys_dlopen_deplibs=yes
8523     ;;
8524   osf[1234]*)
8525     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8526     # it did *not* use an RPATH in a shared library to find objects the
8527     # library depends on, so we explictly say `no'.
8528     libltdl_cv_sys_dlopen_deplibs=no
8529     ;;
8530   osf5.0|osf5.0a|osf5.1)
8531     # dlopen *does* load deplibs and with the right loader patch applied
8532     # it even uses RPATH in a shared library to search for shared objects
8533     # that the library depends on, but there's no easy way to know if that
8534     # patch is installed.  Since this is the case, all we can really
8535     # say is unknown -- it depends on the patch being installed.  If
8536     # it is, this changes to `yes'.  Without it, it would be `no'.
8537     libltdl_cv_sys_dlopen_deplibs=unknown
8538     ;;
8539   osf*)
8540     # the two cases above should catch all versions of osf <= 5.1.  Read
8541     # the comments above for what we know about them.
8542     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8543     # is used to find them so we can finally say `yes'.
8544     libltdl_cv_sys_dlopen_deplibs=yes
8545     ;;
8546   solaris*)
8547     libltdl_cv_sys_dlopen_deplibs=yes
8548     ;;
8549   esac
8550
8551 fi
8552 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8553 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8554 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8555
8556 cat >>confdefs.h <<\_ACEOF
8557 #define LTDL_DLOPEN_DEPLIBS 1
8558 _ACEOF
8559
8560 fi
8561
8562
8563 for ac_header in argz.h
8564 do
8565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8567   echo "$as_me:$LINENO: checking for $ac_header" >&5
8568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8570   echo $ECHO_N "(cached) $ECHO_C" >&6
8571 fi
8572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8574 else
8575   # Is the header compilable?
8576 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8578 cat >conftest.$ac_ext <<_ACEOF
8579 /* confdefs.h.  */
8580 _ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h.  */
8584 $ac_includes_default
8585 #include <$ac_header>
8586 _ACEOF
8587 rm -f conftest.$ac_objext
8588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8589   (eval $ac_compile) 2>conftest.er1
8590   ac_status=$?
8591   grep -v '^ *+' conftest.er1 >conftest.err
8592   rm -f conftest.er1
8593   cat conftest.err >&5
8594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595   (exit $ac_status); } &&
8596          { ac_try='test -z "$ac_c_werror_flag"
8597                          || test ! -s conftest.err'
8598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8599   (eval $ac_try) 2>&5
8600   ac_status=$?
8601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602   (exit $ac_status); }; } &&
8603          { ac_try='test -s conftest.$ac_objext'
8604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605   (eval $ac_try) 2>&5
8606   ac_status=$?
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); }; }; then
8609   ac_header_compiler=yes
8610 else
8611   echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8613
8614 ac_header_compiler=no
8615 fi
8616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8618 echo "${ECHO_T}$ac_header_compiler" >&6
8619
8620 # Is the header present?
8621 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8623 cat >conftest.$ac_ext <<_ACEOF
8624 /* confdefs.h.  */
8625 _ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h.  */
8629 #include <$ac_header>
8630 _ACEOF
8631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8632   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8633   ac_status=$?
8634   grep -v '^ *+' conftest.er1 >conftest.err
8635   rm -f conftest.er1
8636   cat conftest.err >&5
8637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638   (exit $ac_status); } >/dev/null; then
8639   if test -s conftest.err; then
8640     ac_cpp_err=$ac_c_preproc_warn_flag
8641     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8642   else
8643     ac_cpp_err=
8644   fi
8645 else
8646   ac_cpp_err=yes
8647 fi
8648 if test -z "$ac_cpp_err"; then
8649   ac_header_preproc=yes
8650 else
8651   echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8653
8654   ac_header_preproc=no
8655 fi
8656 rm -f conftest.err conftest.$ac_ext
8657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8658 echo "${ECHO_T}$ac_header_preproc" >&6
8659
8660 # So?  What about this header?
8661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8662   yes:no: )
8663     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8667     ac_header_preproc=yes
8668     ;;
8669   no:yes:* )
8670     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8672     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8673 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8674     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8676     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8677 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8678     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8680     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8682     (
8683       cat <<\_ASBOX
8684 ## ----------------------------------- ##
8685 ## Report this to llvmbugs@cs.uiuc.edu ##
8686 ## ----------------------------------- ##
8687 _ASBOX
8688     ) |
8689       sed "s/^/$as_me: WARNING:     /" >&2
8690     ;;
8691 esac
8692 echo "$as_me:$LINENO: checking for $ac_header" >&5
8693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8695   echo $ECHO_N "(cached) $ECHO_C" >&6
8696 else
8697   eval "$as_ac_Header=\$ac_header_preproc"
8698 fi
8699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8701
8702 fi
8703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8704   cat >>confdefs.h <<_ACEOF
8705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8706 _ACEOF
8707
8708 fi
8709
8710 done
8711
8712
8713 echo "$as_me:$LINENO: checking for error_t" >&5
8714 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8715 if test "${ac_cv_type_error_t+set}" = set; then
8716   echo $ECHO_N "(cached) $ECHO_C" >&6
8717 else
8718   cat >conftest.$ac_ext <<_ACEOF
8719 /* confdefs.h.  */
8720 _ACEOF
8721 cat confdefs.h >>conftest.$ac_ext
8722 cat >>conftest.$ac_ext <<_ACEOF
8723 /* end confdefs.h.  */
8724 #if HAVE_ARGZ_H
8725 #  include <argz.h>
8726 #endif
8727
8728 int
8729 main ()
8730 {
8731 if ((error_t *) 0)
8732   return 0;
8733 if (sizeof (error_t))
8734   return 0;
8735   ;
8736   return 0;
8737 }
8738 _ACEOF
8739 rm -f conftest.$ac_objext
8740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8741   (eval $ac_compile) 2>conftest.er1
8742   ac_status=$?
8743   grep -v '^ *+' conftest.er1 >conftest.err
8744   rm -f conftest.er1
8745   cat conftest.err >&5
8746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747   (exit $ac_status); } &&
8748          { ac_try='test -z "$ac_c_werror_flag"
8749                          || test ! -s conftest.err'
8750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8751   (eval $ac_try) 2>&5
8752   ac_status=$?
8753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754   (exit $ac_status); }; } &&
8755          { ac_try='test -s conftest.$ac_objext'
8756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757   (eval $ac_try) 2>&5
8758   ac_status=$?
8759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760   (exit $ac_status); }; }; then
8761   ac_cv_type_error_t=yes
8762 else
8763   echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.$ac_ext >&5
8765
8766 ac_cv_type_error_t=no
8767 fi
8768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8769 fi
8770 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8771 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8772 if test $ac_cv_type_error_t = yes; then
8773
8774 cat >>confdefs.h <<_ACEOF
8775 #define HAVE_ERROR_T 1
8776 _ACEOF
8777
8778
8779 else
8780
8781 cat >>confdefs.h <<\_ACEOF
8782 #define error_t int
8783 _ACEOF
8784
8785 fi
8786
8787
8788
8789
8790
8791
8792
8793 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8794 do
8795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8796 echo "$as_me:$LINENO: checking for $ac_func" >&5
8797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8798 if eval "test \"\${$as_ac_var+set}\" = set"; then
8799   echo $ECHO_N "(cached) $ECHO_C" >&6
8800 else
8801   cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h.  */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h.  */
8807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8809 #define $ac_func innocuous_$ac_func
8810
8811 /* System header to define __stub macros and hopefully few prototypes,
8812     which can conflict with char $ac_func (); below.
8813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8814     <limits.h> exists even on freestanding compilers.  */
8815
8816 #ifdef __STDC__
8817 # include <limits.h>
8818 #else
8819 # include <assert.h>
8820 #endif
8821
8822 #undef $ac_func
8823
8824 /* Override any gcc2 internal prototype to avoid an error.  */
8825 #ifdef __cplusplus
8826 extern "C"
8827 {
8828 #endif
8829 /* We use char because int might match the return type of a gcc2
8830    builtin and then its argument prototype would still apply.  */
8831 char $ac_func ();
8832 /* The GNU C library defines this for functions which it implements
8833     to always fail with ENOSYS.  Some functions are actually named
8834     something starting with __ and the normal name is an alias.  */
8835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8836 choke me
8837 #else
8838 char (*f) () = $ac_func;
8839 #endif
8840 #ifdef __cplusplus
8841 }
8842 #endif
8843
8844 int
8845 main ()
8846 {
8847 return f != $ac_func;
8848   ;
8849   return 0;
8850 }
8851 _ACEOF
8852 rm -f conftest.$ac_objext conftest$ac_exeext
8853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8854   (eval $ac_link) 2>conftest.er1
8855   ac_status=$?
8856   grep -v '^ *+' conftest.er1 >conftest.err
8857   rm -f conftest.er1
8858   cat conftest.err >&5
8859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   (exit $ac_status); } &&
8861          { ac_try='test -z "$ac_c_werror_flag"
8862                          || test ! -s conftest.err'
8863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864   (eval $ac_try) 2>&5
8865   ac_status=$?
8866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867   (exit $ac_status); }; } &&
8868          { ac_try='test -s conftest$ac_exeext'
8869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8870   (eval $ac_try) 2>&5
8871   ac_status=$?
8872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873   (exit $ac_status); }; }; then
8874   eval "$as_ac_var=yes"
8875 else
8876   echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8878
8879 eval "$as_ac_var=no"
8880 fi
8881 rm -f conftest.err conftest.$ac_objext \
8882       conftest$ac_exeext conftest.$ac_ext
8883 fi
8884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8886 if test `eval echo '${'$as_ac_var'}'` = yes; then
8887   cat >>confdefs.h <<_ACEOF
8888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8889 _ACEOF
8890
8891 fi
8892 done
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8922                   stdio.h unistd.h
8923 do
8924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8926   echo "$as_me:$LINENO: checking for $ac_header" >&5
8927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8929   echo $ECHO_N "(cached) $ECHO_C" >&6
8930 fi
8931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8933 else
8934   # Is the header compilable?
8935 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8937 cat >conftest.$ac_ext <<_ACEOF
8938 /* confdefs.h.  */
8939 _ACEOF
8940 cat confdefs.h >>conftest.$ac_ext
8941 cat >>conftest.$ac_ext <<_ACEOF
8942 /* end confdefs.h.  */
8943 $ac_includes_default
8944 #include <$ac_header>
8945 _ACEOF
8946 rm -f conftest.$ac_objext
8947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8948   (eval $ac_compile) 2>conftest.er1
8949   ac_status=$?
8950   grep -v '^ *+' conftest.er1 >conftest.err
8951   rm -f conftest.er1
8952   cat conftest.err >&5
8953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954   (exit $ac_status); } &&
8955          { ac_try='test -z "$ac_c_werror_flag"
8956                          || test ! -s conftest.err'
8957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958   (eval $ac_try) 2>&5
8959   ac_status=$?
8960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961   (exit $ac_status); }; } &&
8962          { ac_try='test -s conftest.$ac_objext'
8963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964   (eval $ac_try) 2>&5
8965   ac_status=$?
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); }; }; then
8968   ac_header_compiler=yes
8969 else
8970   echo "$as_me: failed program was:" >&5
8971 sed 's/^/| /' conftest.$ac_ext >&5
8972
8973 ac_header_compiler=no
8974 fi
8975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8976 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8977 echo "${ECHO_T}$ac_header_compiler" >&6
8978
8979 # Is the header present?
8980 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8982 cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h.  */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h.  */
8988 #include <$ac_header>
8989 _ACEOF
8990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8991   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8992   ac_status=$?
8993   grep -v '^ *+' conftest.er1 >conftest.err
8994   rm -f conftest.er1
8995   cat conftest.err >&5
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); } >/dev/null; then
8998   if test -s conftest.err; then
8999     ac_cpp_err=$ac_c_preproc_warn_flag
9000     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9001   else
9002     ac_cpp_err=
9003   fi
9004 else
9005   ac_cpp_err=yes
9006 fi
9007 if test -z "$ac_cpp_err"; then
9008   ac_header_preproc=yes
9009 else
9010   echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9012
9013   ac_header_preproc=no
9014 fi
9015 rm -f conftest.err conftest.$ac_ext
9016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9017 echo "${ECHO_T}$ac_header_preproc" >&6
9018
9019 # So?  What about this header?
9020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9021   yes:no: )
9022     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9026     ac_header_preproc=yes
9027     ;;
9028   no:yes:* )
9029     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9031     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9032 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9033     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9035     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9036 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9039     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9041     (
9042       cat <<\_ASBOX
9043 ## ----------------------------------- ##
9044 ## Report this to llvmbugs@cs.uiuc.edu ##
9045 ## ----------------------------------- ##
9046 _ASBOX
9047     ) |
9048       sed "s/^/$as_me: WARNING:     /" >&2
9049     ;;
9050 esac
9051 echo "$as_me:$LINENO: checking for $ac_header" >&5
9052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9054   echo $ECHO_N "(cached) $ECHO_C" >&6
9055 else
9056   eval "$as_ac_Header=\$ac_header_preproc"
9057 fi
9058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9060
9061 fi
9062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9063   cat >>confdefs.h <<_ACEOF
9064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9065 _ACEOF
9066
9067 fi
9068
9069 done
9070
9071
9072
9073
9074
9075 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9076 do
9077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9079   echo "$as_me:$LINENO: checking for $ac_header" >&5
9080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9082   echo $ECHO_N "(cached) $ECHO_C" >&6
9083 fi
9084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9086 else
9087   # Is the header compilable?
9088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
9097 #include <$ac_header>
9098 _ACEOF
9099 rm -f conftest.$ac_objext
9100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9101   (eval $ac_compile) 2>conftest.er1
9102   ac_status=$?
9103   grep -v '^ *+' conftest.er1 >conftest.err
9104   rm -f conftest.er1
9105   cat conftest.err >&5
9106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107   (exit $ac_status); } &&
9108          { ac_try='test -z "$ac_c_werror_flag"
9109                          || test ! -s conftest.err'
9110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111   (eval $ac_try) 2>&5
9112   ac_status=$?
9113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114   (exit $ac_status); }; } &&
9115          { ac_try='test -s conftest.$ac_objext'
9116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117   (eval $ac_try) 2>&5
9118   ac_status=$?
9119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120   (exit $ac_status); }; }; then
9121   ac_header_compiler=yes
9122 else
9123   echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9125
9126 ac_header_compiler=no
9127 fi
9128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9130 echo "${ECHO_T}$ac_header_compiler" >&6
9131
9132 # Is the header present?
9133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9135 cat >conftest.$ac_ext <<_ACEOF
9136 /* confdefs.h.  */
9137 _ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h.  */
9141 #include <$ac_header>
9142 _ACEOF
9143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9144   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9145   ac_status=$?
9146   grep -v '^ *+' conftest.er1 >conftest.err
9147   rm -f conftest.er1
9148   cat conftest.err >&5
9149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150   (exit $ac_status); } >/dev/null; then
9151   if test -s conftest.err; then
9152     ac_cpp_err=$ac_c_preproc_warn_flag
9153     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9154   else
9155     ac_cpp_err=
9156   fi
9157 else
9158   ac_cpp_err=yes
9159 fi
9160 if test -z "$ac_cpp_err"; then
9161   ac_header_preproc=yes
9162 else
9163   echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9165
9166   ac_header_preproc=no
9167 fi
9168 rm -f conftest.err conftest.$ac_ext
9169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9170 echo "${ECHO_T}$ac_header_preproc" >&6
9171
9172 # So?  What about this header?
9173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9174   yes:no: )
9175     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9179     ac_header_preproc=yes
9180     ;;
9181   no:yes:* )
9182     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9184     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9185 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9186     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9188     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9189 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9192     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9194     (
9195       cat <<\_ASBOX
9196 ## ----------------------------------- ##
9197 ## Report this to llvmbugs@cs.uiuc.edu ##
9198 ## ----------------------------------- ##
9199 _ASBOX
9200     ) |
9201       sed "s/^/$as_me: WARNING:     /" >&2
9202     ;;
9203 esac
9204 echo "$as_me:$LINENO: checking for $ac_header" >&5
9205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9207   echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9209   eval "$as_ac_Header=\$ac_header_preproc"
9210 fi
9211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9213
9214 fi
9215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9216   cat >>confdefs.h <<_ACEOF
9217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9218 _ACEOF
9219
9220 fi
9221
9222 done
9223
9224
9225
9226 for ac_header in string.h strings.h
9227 do
9228 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9230   echo "$as_me:$LINENO: checking for $ac_header" >&5
9231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9233   echo $ECHO_N "(cached) $ECHO_C" >&6
9234 fi
9235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9237 else
9238   # Is the header compilable?
9239 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9240 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9241 cat >conftest.$ac_ext <<_ACEOF
9242 /* confdefs.h.  */
9243 _ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h.  */
9247 $ac_includes_default
9248 #include <$ac_header>
9249 _ACEOF
9250 rm -f conftest.$ac_objext
9251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9252   (eval $ac_compile) 2>conftest.er1
9253   ac_status=$?
9254   grep -v '^ *+' conftest.er1 >conftest.err
9255   rm -f conftest.er1
9256   cat conftest.err >&5
9257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258   (exit $ac_status); } &&
9259          { ac_try='test -z "$ac_c_werror_flag"
9260                          || test ! -s conftest.err'
9261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262   (eval $ac_try) 2>&5
9263   ac_status=$?
9264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265   (exit $ac_status); }; } &&
9266          { ac_try='test -s conftest.$ac_objext'
9267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268   (eval $ac_try) 2>&5
9269   ac_status=$?
9270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271   (exit $ac_status); }; }; then
9272   ac_header_compiler=yes
9273 else
9274   echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9276
9277 ac_header_compiler=no
9278 fi
9279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9280 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9281 echo "${ECHO_T}$ac_header_compiler" >&6
9282
9283 # Is the header present?
9284 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9286 cat >conftest.$ac_ext <<_ACEOF
9287 /* confdefs.h.  */
9288 _ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h.  */
9292 #include <$ac_header>
9293 _ACEOF
9294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9295   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9296   ac_status=$?
9297   grep -v '^ *+' conftest.er1 >conftest.err
9298   rm -f conftest.er1
9299   cat conftest.err >&5
9300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301   (exit $ac_status); } >/dev/null; then
9302   if test -s conftest.err; then
9303     ac_cpp_err=$ac_c_preproc_warn_flag
9304     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9305   else
9306     ac_cpp_err=
9307   fi
9308 else
9309   ac_cpp_err=yes
9310 fi
9311 if test -z "$ac_cpp_err"; then
9312   ac_header_preproc=yes
9313 else
9314   echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9316
9317   ac_header_preproc=no
9318 fi
9319 rm -f conftest.err conftest.$ac_ext
9320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9321 echo "${ECHO_T}$ac_header_preproc" >&6
9322
9323 # So?  What about this header?
9324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9325   yes:no: )
9326     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9328     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9330     ac_header_preproc=yes
9331     ;;
9332   no:yes:* )
9333     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9335     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9336 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9337     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9339     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9340 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9343     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9345     (
9346       cat <<\_ASBOX
9347 ## ----------------------------------- ##
9348 ## Report this to llvmbugs@cs.uiuc.edu ##
9349 ## ----------------------------------- ##
9350 _ASBOX
9351     ) |
9352       sed "s/^/$as_me: WARNING:     /" >&2
9353     ;;
9354 esac
9355 echo "$as_me:$LINENO: checking for $ac_header" >&5
9356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9358   echo $ECHO_N "(cached) $ECHO_C" >&6
9359 else
9360   eval "$as_ac_Header=\$ac_header_preproc"
9361 fi
9362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9363 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9364
9365 fi
9366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9367   cat >>confdefs.h <<_ACEOF
9368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9369 _ACEOF
9370  break
9371 fi
9372
9373 done
9374
9375
9376
9377
9378 for ac_func in strchr index
9379 do
9380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9381 echo "$as_me:$LINENO: checking for $ac_func" >&5
9382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9383 if eval "test \"\${$as_ac_var+set}\" = set"; then
9384   echo $ECHO_N "(cached) $ECHO_C" >&6
9385 else
9386   cat >conftest.$ac_ext <<_ACEOF
9387 /* confdefs.h.  */
9388 _ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h.  */
9392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9394 #define $ac_func innocuous_$ac_func
9395
9396 /* System header to define __stub macros and hopefully few prototypes,
9397     which can conflict with char $ac_func (); below.
9398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9399     <limits.h> exists even on freestanding compilers.  */
9400
9401 #ifdef __STDC__
9402 # include <limits.h>
9403 #else
9404 # include <assert.h>
9405 #endif
9406
9407 #undef $ac_func
9408
9409 /* Override any gcc2 internal prototype to avoid an error.  */
9410 #ifdef __cplusplus
9411 extern "C"
9412 {
9413 #endif
9414 /* We use char because int might match the return type of a gcc2
9415    builtin and then its argument prototype would still apply.  */
9416 char $ac_func ();
9417 /* The GNU C library defines this for functions which it implements
9418     to always fail with ENOSYS.  Some functions are actually named
9419     something starting with __ and the normal name is an alias.  */
9420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9421 choke me
9422 #else
9423 char (*f) () = $ac_func;
9424 #endif
9425 #ifdef __cplusplus
9426 }
9427 #endif
9428
9429 int
9430 main ()
9431 {
9432 return f != $ac_func;
9433   ;
9434   return 0;
9435 }
9436 _ACEOF
9437 rm -f conftest.$ac_objext conftest$ac_exeext
9438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9439   (eval $ac_link) 2>conftest.er1
9440   ac_status=$?
9441   grep -v '^ *+' conftest.er1 >conftest.err
9442   rm -f conftest.er1
9443   cat conftest.err >&5
9444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445   (exit $ac_status); } &&
9446          { ac_try='test -z "$ac_c_werror_flag"
9447                          || test ! -s conftest.err'
9448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449   (eval $ac_try) 2>&5
9450   ac_status=$?
9451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452   (exit $ac_status); }; } &&
9453          { ac_try='test -s conftest$ac_exeext'
9454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455   (eval $ac_try) 2>&5
9456   ac_status=$?
9457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458   (exit $ac_status); }; }; then
9459   eval "$as_ac_var=yes"
9460 else
9461   echo "$as_me: failed program was:" >&5
9462 sed 's/^/| /' conftest.$ac_ext >&5
9463
9464 eval "$as_ac_var=no"
9465 fi
9466 rm -f conftest.err conftest.$ac_objext \
9467       conftest$ac_exeext conftest.$ac_ext
9468 fi
9469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9471 if test `eval echo '${'$as_ac_var'}'` = yes; then
9472   cat >>confdefs.h <<_ACEOF
9473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9474 _ACEOF
9475  break
9476 fi
9477 done
9478
9479
9480
9481 for ac_func in strrchr rindex
9482 do
9483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9484 echo "$as_me:$LINENO: checking for $ac_func" >&5
9485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9486 if eval "test \"\${$as_ac_var+set}\" = set"; then
9487   echo $ECHO_N "(cached) $ECHO_C" >&6
9488 else
9489   cat >conftest.$ac_ext <<_ACEOF
9490 /* confdefs.h.  */
9491 _ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h.  */
9495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9497 #define $ac_func innocuous_$ac_func
9498
9499 /* System header to define __stub macros and hopefully few prototypes,
9500     which can conflict with char $ac_func (); below.
9501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9502     <limits.h> exists even on freestanding compilers.  */
9503
9504 #ifdef __STDC__
9505 # include <limits.h>
9506 #else
9507 # include <assert.h>
9508 #endif
9509
9510 #undef $ac_func
9511
9512 /* Override any gcc2 internal prototype to avoid an error.  */
9513 #ifdef __cplusplus
9514 extern "C"
9515 {
9516 #endif
9517 /* We use char because int might match the return type of a gcc2
9518    builtin and then its argument prototype would still apply.  */
9519 char $ac_func ();
9520 /* The GNU C library defines this for functions which it implements
9521     to always fail with ENOSYS.  Some functions are actually named
9522     something starting with __ and the normal name is an alias.  */
9523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9524 choke me
9525 #else
9526 char (*f) () = $ac_func;
9527 #endif
9528 #ifdef __cplusplus
9529 }
9530 #endif
9531
9532 int
9533 main ()
9534 {
9535 return f != $ac_func;
9536   ;
9537   return 0;
9538 }
9539 _ACEOF
9540 rm -f conftest.$ac_objext conftest$ac_exeext
9541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9542   (eval $ac_link) 2>conftest.er1
9543   ac_status=$?
9544   grep -v '^ *+' conftest.er1 >conftest.err
9545   rm -f conftest.er1
9546   cat conftest.err >&5
9547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548   (exit $ac_status); } &&
9549          { ac_try='test -z "$ac_c_werror_flag"
9550                          || test ! -s conftest.err'
9551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552   (eval $ac_try) 2>&5
9553   ac_status=$?
9554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555   (exit $ac_status); }; } &&
9556          { ac_try='test -s conftest$ac_exeext'
9557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558   (eval $ac_try) 2>&5
9559   ac_status=$?
9560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561   (exit $ac_status); }; }; then
9562   eval "$as_ac_var=yes"
9563 else
9564   echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9566
9567 eval "$as_ac_var=no"
9568 fi
9569 rm -f conftest.err conftest.$ac_objext \
9570       conftest$ac_exeext conftest.$ac_ext
9571 fi
9572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9574 if test `eval echo '${'$as_ac_var'}'` = yes; then
9575   cat >>confdefs.h <<_ACEOF
9576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9577 _ACEOF
9578  break
9579 fi
9580 done
9581
9582
9583
9584 for ac_func in memcpy bcopy
9585 do
9586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9587 echo "$as_me:$LINENO: checking for $ac_func" >&5
9588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9589 if eval "test \"\${$as_ac_var+set}\" = set"; then
9590   echo $ECHO_N "(cached) $ECHO_C" >&6
9591 else
9592   cat >conftest.$ac_ext <<_ACEOF
9593 /* confdefs.h.  */
9594 _ACEOF
9595 cat confdefs.h >>conftest.$ac_ext
9596 cat >>conftest.$ac_ext <<_ACEOF
9597 /* end confdefs.h.  */
9598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9600 #define $ac_func innocuous_$ac_func
9601
9602 /* System header to define __stub macros and hopefully few prototypes,
9603     which can conflict with char $ac_func (); below.
9604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9605     <limits.h> exists even on freestanding compilers.  */
9606
9607 #ifdef __STDC__
9608 # include <limits.h>
9609 #else
9610 # include <assert.h>
9611 #endif
9612
9613 #undef $ac_func
9614
9615 /* Override any gcc2 internal prototype to avoid an error.  */
9616 #ifdef __cplusplus
9617 extern "C"
9618 {
9619 #endif
9620 /* We use char because int might match the return type of a gcc2
9621    builtin and then its argument prototype would still apply.  */
9622 char $ac_func ();
9623 /* The GNU C library defines this for functions which it implements
9624     to always fail with ENOSYS.  Some functions are actually named
9625     something starting with __ and the normal name is an alias.  */
9626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9627 choke me
9628 #else
9629 char (*f) () = $ac_func;
9630 #endif
9631 #ifdef __cplusplus
9632 }
9633 #endif
9634
9635 int
9636 main ()
9637 {
9638 return f != $ac_func;
9639   ;
9640   return 0;
9641 }
9642 _ACEOF
9643 rm -f conftest.$ac_objext conftest$ac_exeext
9644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9645   (eval $ac_link) 2>conftest.er1
9646   ac_status=$?
9647   grep -v '^ *+' conftest.er1 >conftest.err
9648   rm -f conftest.er1
9649   cat conftest.err >&5
9650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651   (exit $ac_status); } &&
9652          { ac_try='test -z "$ac_c_werror_flag"
9653                          || test ! -s conftest.err'
9654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655   (eval $ac_try) 2>&5
9656   ac_status=$?
9657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658   (exit $ac_status); }; } &&
9659          { ac_try='test -s conftest$ac_exeext'
9660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9661   (eval $ac_try) 2>&5
9662   ac_status=$?
9663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664   (exit $ac_status); }; }; then
9665   eval "$as_ac_var=yes"
9666 else
9667   echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9669
9670 eval "$as_ac_var=no"
9671 fi
9672 rm -f conftest.err conftest.$ac_objext \
9673       conftest$ac_exeext conftest.$ac_ext
9674 fi
9675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9677 if test `eval echo '${'$as_ac_var'}'` = yes; then
9678   cat >>confdefs.h <<_ACEOF
9679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9680 _ACEOF
9681  break
9682 fi
9683 done
9684
9685
9686
9687 for ac_func in memmove strcmp
9688 do
9689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9690 echo "$as_me:$LINENO: checking for $ac_func" >&5
9691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9692 if eval "test \"\${$as_ac_var+set}\" = set"; then
9693   echo $ECHO_N "(cached) $ECHO_C" >&6
9694 else
9695   cat >conftest.$ac_ext <<_ACEOF
9696 /* confdefs.h.  */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h.  */
9701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9703 #define $ac_func innocuous_$ac_func
9704
9705 /* System header to define __stub macros and hopefully few prototypes,
9706     which can conflict with char $ac_func (); below.
9707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9708     <limits.h> exists even on freestanding compilers.  */
9709
9710 #ifdef __STDC__
9711 # include <limits.h>
9712 #else
9713 # include <assert.h>
9714 #endif
9715
9716 #undef $ac_func
9717
9718 /* Override any gcc2 internal prototype to avoid an error.  */
9719 #ifdef __cplusplus
9720 extern "C"
9721 {
9722 #endif
9723 /* We use char because int might match the return type of a gcc2
9724    builtin and then its argument prototype would still apply.  */
9725 char $ac_func ();
9726 /* The GNU C library defines this for functions which it implements
9727     to always fail with ENOSYS.  Some functions are actually named
9728     something starting with __ and the normal name is an alias.  */
9729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9730 choke me
9731 #else
9732 char (*f) () = $ac_func;
9733 #endif
9734 #ifdef __cplusplus
9735 }
9736 #endif
9737
9738 int
9739 main ()
9740 {
9741 return f != $ac_func;
9742   ;
9743   return 0;
9744 }
9745 _ACEOF
9746 rm -f conftest.$ac_objext conftest$ac_exeext
9747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9748   (eval $ac_link) 2>conftest.er1
9749   ac_status=$?
9750   grep -v '^ *+' conftest.er1 >conftest.err
9751   rm -f conftest.er1
9752   cat conftest.err >&5
9753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754   (exit $ac_status); } &&
9755          { ac_try='test -z "$ac_c_werror_flag"
9756                          || test ! -s conftest.err'
9757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758   (eval $ac_try) 2>&5
9759   ac_status=$?
9760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761   (exit $ac_status); }; } &&
9762          { ac_try='test -s conftest$ac_exeext'
9763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764   (eval $ac_try) 2>&5
9765   ac_status=$?
9766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767   (exit $ac_status); }; }; then
9768   eval "$as_ac_var=yes"
9769 else
9770   echo "$as_me: failed program was:" >&5
9771 sed 's/^/| /' conftest.$ac_ext >&5
9772
9773 eval "$as_ac_var=no"
9774 fi
9775 rm -f conftest.err conftest.$ac_objext \
9776       conftest$ac_exeext conftest.$ac_ext
9777 fi
9778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9780 if test `eval echo '${'$as_ac_var'}'` = yes; then
9781   cat >>confdefs.h <<_ACEOF
9782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9783 _ACEOF
9784
9785 fi
9786 done
9787
9788
9789
9790
9791 for ac_func in closedir opendir readdir
9792 do
9793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9794 echo "$as_me:$LINENO: checking for $ac_func" >&5
9795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9796 if eval "test \"\${$as_ac_var+set}\" = set"; then
9797   echo $ECHO_N "(cached) $ECHO_C" >&6
9798 else
9799   cat >conftest.$ac_ext <<_ACEOF
9800 /* confdefs.h.  */
9801 _ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h.  */
9805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9807 #define $ac_func innocuous_$ac_func
9808
9809 /* System header to define __stub macros and hopefully few prototypes,
9810     which can conflict with char $ac_func (); below.
9811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9812     <limits.h> exists even on freestanding compilers.  */
9813
9814 #ifdef __STDC__
9815 # include <limits.h>
9816 #else
9817 # include <assert.h>
9818 #endif
9819
9820 #undef $ac_func
9821
9822 /* Override any gcc2 internal prototype to avoid an error.  */
9823 #ifdef __cplusplus
9824 extern "C"
9825 {
9826 #endif
9827 /* We use char because int might match the return type of a gcc2
9828    builtin and then its argument prototype would still apply.  */
9829 char $ac_func ();
9830 /* The GNU C library defines this for functions which it implements
9831     to always fail with ENOSYS.  Some functions are actually named
9832     something starting with __ and the normal name is an alias.  */
9833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9834 choke me
9835 #else
9836 char (*f) () = $ac_func;
9837 #endif
9838 #ifdef __cplusplus
9839 }
9840 #endif
9841
9842 int
9843 main ()
9844 {
9845 return f != $ac_func;
9846   ;
9847   return 0;
9848 }
9849 _ACEOF
9850 rm -f conftest.$ac_objext conftest$ac_exeext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9852   (eval $ac_link) 2>conftest.er1
9853   ac_status=$?
9854   grep -v '^ *+' conftest.er1 >conftest.err
9855   rm -f conftest.er1
9856   cat conftest.err >&5
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); } &&
9859          { ac_try='test -z "$ac_c_werror_flag"
9860                          || test ! -s conftest.err'
9861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862   (eval $ac_try) 2>&5
9863   ac_status=$?
9864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865   (exit $ac_status); }; } &&
9866          { ac_try='test -s conftest$ac_exeext'
9867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868   (eval $ac_try) 2>&5
9869   ac_status=$?
9870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871   (exit $ac_status); }; }; then
9872   eval "$as_ac_var=yes"
9873 else
9874   echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9876
9877 eval "$as_ac_var=no"
9878 fi
9879 rm -f conftest.err conftest.$ac_objext \
9880       conftest$ac_exeext conftest.$ac_ext
9881 fi
9882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9884 if test `eval echo '${'$as_ac_var'}'` = yes; then
9885   cat >>confdefs.h <<_ACEOF
9886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9887 _ACEOF
9888
9889 fi
9890 done
9891
9892
9893 # Check whether --enable-shared or --disable-shared was given.
9894 if test "${enable_shared+set}" = set; then
9895   enableval="$enable_shared"
9896   p=${PACKAGE-default}
9897     case $enableval in
9898     yes) enable_shared=yes ;;
9899     no) enable_shared=no ;;
9900     *)
9901       enable_shared=no
9902       # Look at the argument we got.  We use all the common list separators.
9903       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9904       for pkg in $enableval; do
9905         IFS="$lt_save_ifs"
9906         if test "X$pkg" = "X$p"; then
9907           enable_shared=yes
9908         fi
9909       done
9910       IFS="$lt_save_ifs"
9911       ;;
9912     esac
9913 else
9914   enable_shared=yes
9915 fi;
9916
9917 # Check whether --enable-static or --disable-static was given.
9918 if test "${enable_static+set}" = set; then
9919   enableval="$enable_static"
9920   p=${PACKAGE-default}
9921     case $enableval in
9922     yes) enable_static=yes ;;
9923     no) enable_static=no ;;
9924     *)
9925      enable_static=no
9926       # Look at the argument we got.  We use all the common list separators.
9927       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9928       for pkg in $enableval; do
9929         IFS="$lt_save_ifs"
9930         if test "X$pkg" = "X$p"; then
9931           enable_static=yes
9932         fi
9933       done
9934       IFS="$lt_save_ifs"
9935       ;;
9936     esac
9937 else
9938   enable_static=yes
9939 fi;
9940
9941 # Check whether --enable-fast-install or --disable-fast-install was given.
9942 if test "${enable_fast_install+set}" = set; then
9943   enableval="$enable_fast_install"
9944   p=${PACKAGE-default}
9945     case $enableval in
9946     yes) enable_fast_install=yes ;;
9947     no) enable_fast_install=no ;;
9948     *)
9949       enable_fast_install=no
9950       # Look at the argument we got.  We use all the common list separators.
9951       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9952       for pkg in $enableval; do
9953         IFS="$lt_save_ifs"
9954         if test "X$pkg" = "X$p"; then
9955           enable_fast_install=yes
9956         fi
9957       done
9958       IFS="$lt_save_ifs"
9959       ;;
9960     esac
9961 else
9962   enable_fast_install=yes
9963 fi;
9964
9965 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9966 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9967 if test "${lt_cv_path_SED+set}" = set; then
9968   echo $ECHO_N "(cached) $ECHO_C" >&6
9969 else
9970   # Loop through the user's path and test for sed and gsed.
9971 # Then use that list of sed's as ones to test for truncation.
9972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9973 for as_dir in $PATH
9974 do
9975   IFS=$as_save_IFS
9976   test -z "$as_dir" && as_dir=.
9977   for lt_ac_prog in sed gsed; do
9978     for ac_exec_ext in '' $ac_executable_extensions; do
9979       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9980         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9981       fi
9982     done
9983   done
9984 done
9985 lt_ac_max=0
9986 lt_ac_count=0
9987 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9988 # along with /bin/sed that truncates output.
9989 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9990   test ! -f $lt_ac_sed && break
9991   cat /dev/null > conftest.in
9992   lt_ac_count=0
9993   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9994   # Check for GNU sed and select it if it is found.
9995   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9996     lt_cv_path_SED=$lt_ac_sed
9997     break
9998   fi
9999   while true; do
10000     cat conftest.in conftest.in >conftest.tmp
10001     mv conftest.tmp conftest.in
10002     cp conftest.in conftest.nl
10003     echo >>conftest.nl
10004     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10005     cmp -s conftest.out conftest.nl || break
10006     # 10000 chars as input seems more than enough
10007     test $lt_ac_count -gt 10 && break
10008     lt_ac_count=`expr $lt_ac_count + 1`
10009     if test $lt_ac_count -gt $lt_ac_max; then
10010       lt_ac_max=$lt_ac_count
10011       lt_cv_path_SED=$lt_ac_sed
10012     fi
10013   done
10014 done
10015
10016 fi
10017
10018 SED=$lt_cv_path_SED
10019 echo "$as_me:$LINENO: result: $SED" >&5
10020 echo "${ECHO_T}$SED" >&6
10021
10022
10023 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10024 if test "${with_gnu_ld+set}" = set; then
10025   withval="$with_gnu_ld"
10026   test "$withval" = no || with_gnu_ld=yes
10027 else
10028   with_gnu_ld=no
10029 fi;
10030 ac_prog=ld
10031 if test "$GCC" = yes; then
10032   # Check if gcc -print-prog-name=ld gives a path.
10033   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10034 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10035   case $host in
10036   *-*-mingw*)
10037     # gcc leaves a trailing carriage return which upsets mingw
10038     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10039   *)
10040     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10041   esac
10042   case $ac_prog in
10043     # Accept absolute paths.
10044     [\\/]* | ?:[\\/]*)
10045       re_direlt='/[^/][^/]*/\.\./'
10046       # Canonicalize the pathname of ld
10047       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10048       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10049         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10050       done
10051       test -z "$LD" && LD="$ac_prog"
10052       ;;
10053   "")
10054     # If it fails, then pretend we aren't using GCC.
10055     ac_prog=ld
10056     ;;
10057   *)
10058     # If it is relative, then search for the first ld in PATH.
10059     with_gnu_ld=unknown
10060     ;;
10061   esac
10062 elif test "$with_gnu_ld" = yes; then
10063   echo "$as_me:$LINENO: checking for GNU ld" >&5
10064 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10065 else
10066   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10067 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10068 fi
10069 if test "${lt_cv_path_LD+set}" = set; then
10070   echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072   if test -z "$LD"; then
10073   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10074   for ac_dir in $PATH; do
10075     IFS="$lt_save_ifs"
10076     test -z "$ac_dir" && ac_dir=.
10077     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10078       lt_cv_path_LD="$ac_dir/$ac_prog"
10079       # Check to see if the program is GNU ld.  I'd rather use --version,
10080       # but apparently some GNU ld's only accept -v.
10081       # Break only if it was the GNU/non-GNU ld that we prefer.
10082       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10083       *GNU* | *'with BFD'*)
10084         test "$with_gnu_ld" != no && break
10085         ;;
10086       *)
10087         test "$with_gnu_ld" != yes && break
10088         ;;
10089       esac
10090     fi
10091   done
10092   IFS="$lt_save_ifs"
10093 else
10094   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10095 fi
10096 fi
10097
10098 LD="$lt_cv_path_LD"
10099 if test -n "$LD"; then
10100   echo "$as_me:$LINENO: result: $LD" >&5
10101 echo "${ECHO_T}$LD" >&6
10102 else
10103   echo "$as_me:$LINENO: result: no" >&5
10104 echo "${ECHO_T}no" >&6
10105 fi
10106 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10107 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10108    { (exit 1); exit 1; }; }
10109 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10110 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10111 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10112   echo $ECHO_N "(cached) $ECHO_C" >&6
10113 else
10114   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10115 case `$LD -v 2>&1 </dev/null` in
10116 *GNU* | *'with BFD'*)
10117   lt_cv_prog_gnu_ld=yes
10118   ;;
10119 *)
10120   lt_cv_prog_gnu_ld=no
10121   ;;
10122 esac
10123 fi
10124 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10125 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10126 with_gnu_ld=$lt_cv_prog_gnu_ld
10127
10128
10129 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10130 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10131 if test "${lt_cv_ld_reload_flag+set}" = set; then
10132   echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134   lt_cv_ld_reload_flag='-r'
10135 fi
10136 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10137 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10138 reload_flag=$lt_cv_ld_reload_flag
10139 case $reload_flag in
10140 "" | " "*) ;;
10141 *) reload_flag=" $reload_flag" ;;
10142 esac
10143 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10144 case $host_os in
10145   darwin*)
10146     if test "$GCC" = yes; then
10147       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10148     else
10149       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10150     fi
10151     ;;
10152 esac
10153
10154 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10155 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10156 if test "${lt_cv_deplibs_check_method+set}" = set; then
10157   echo $ECHO_N "(cached) $ECHO_C" >&6
10158 else
10159   lt_cv_file_magic_cmd='$MAGIC_CMD'
10160 lt_cv_file_magic_test_file=
10161 lt_cv_deplibs_check_method='unknown'
10162 # Need to set the preceding variable on all platforms that support
10163 # interlibrary dependencies.
10164 # 'none' -- dependencies not supported.
10165 # `unknown' -- same as none, but documents that we really don't know.
10166 # 'pass_all' -- all dependencies passed with no checks.
10167 # 'test_compile' -- check by making test program.
10168 # 'file_magic [[regex]]' -- check by looking for files in library path
10169 # which responds to the $file_magic_cmd with a given extended regex.
10170 # If you have `file' or equivalent on your system and you're not sure
10171 # whether `pass_all' will *always* work, you probably want this one.
10172
10173 case $host_os in
10174 aix4* | aix5*)
10175   lt_cv_deplibs_check_method=pass_all
10176   ;;
10177
10178 beos*)
10179   lt_cv_deplibs_check_method=pass_all
10180   ;;
10181
10182 bsdi[45]*)
10183   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10184   lt_cv_file_magic_cmd='/usr/bin/file -L'
10185   lt_cv_file_magic_test_file=/shlib/libc.so
10186   ;;
10187
10188 cygwin*)
10189   # func_win32_libid is a shell function defined in ltmain.sh
10190   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10191   lt_cv_file_magic_cmd='func_win32_libid'
10192   ;;
10193
10194 mingw* | pw32*)
10195   # Base MSYS/MinGW do not provide the 'file' command needed by
10196   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10197   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10198   lt_cv_file_magic_cmd='$OBJDUMP -f'
10199   ;;
10200
10201 darwin* | rhapsody*)
10202   lt_cv_deplibs_check_method=pass_all
10203   ;;
10204
10205 freebsd* | kfreebsd*-gnu)
10206   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10207     case $host_cpu in
10208     i*86 )
10209       # Not sure whether the presence of OpenBSD here was a mistake.
10210       # Let's accept both of them until this is cleared up.
10211       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10212       lt_cv_file_magic_cmd=/usr/bin/file
10213       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10214       ;;
10215     esac
10216   else
10217     lt_cv_deplibs_check_method=pass_all
10218   fi
10219   ;;
10220
10221 gnu*)
10222   lt_cv_deplibs_check_method=pass_all
10223   ;;
10224
10225 hpux10.20* | hpux11*)
10226   lt_cv_file_magic_cmd=/usr/bin/file
10227   case "$host_cpu" in
10228   ia64*)
10229     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10230     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10231     ;;
10232   hppa*64*)
10233     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]'
10234     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10235     ;;
10236   *)
10237     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10238     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10239     ;;
10240   esac
10241   ;;
10242
10243 irix5* | irix6* | nonstopux*)
10244   case $LD in
10245   *-32|*"-32 ") libmagic=32-bit;;
10246   *-n32|*"-n32 ") libmagic=N32;;
10247   *-64|*"-64 ") libmagic=64-bit;;
10248   *) libmagic=never-match;;
10249   esac
10250   lt_cv_deplibs_check_method=pass_all
10251   ;;
10252
10253 # This must be Linux ELF.
10254 linux*)
10255   lt_cv_deplibs_check_method=pass_all
10256   ;;
10257
10258 netbsd*)
10259   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10260     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10261   else
10262     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10263   fi
10264   ;;
10265
10266 newos6*)
10267   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10268   lt_cv_file_magic_cmd=/usr/bin/file
10269   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10270   ;;
10271
10272 nto-qnx*)
10273   lt_cv_deplibs_check_method=unknown
10274   ;;
10275
10276 openbsd*)
10277   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10278     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10279   else
10280     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10281   fi
10282   ;;
10283
10284 osf3* | osf4* | osf5*)
10285   lt_cv_deplibs_check_method=pass_all
10286   ;;
10287
10288 sco3.2v5*)
10289   lt_cv_deplibs_check_method=pass_all
10290   ;;
10291
10292 solaris*)
10293   lt_cv_deplibs_check_method=pass_all
10294   ;;
10295
10296 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10297   case $host_vendor in
10298   motorola)
10299     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]'
10300     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10301     ;;
10302   ncr)
10303     lt_cv_deplibs_check_method=pass_all
10304     ;;
10305   sequent)
10306     lt_cv_file_magic_cmd='/bin/file'
10307     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10308     ;;
10309   sni)
10310     lt_cv_file_magic_cmd='/bin/file'
10311     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10312     lt_cv_file_magic_test_file=/lib/libc.so
10313     ;;
10314   siemens)
10315     lt_cv_deplibs_check_method=pass_all
10316     ;;
10317   esac
10318   ;;
10319
10320 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10321   lt_cv_deplibs_check_method=pass_all
10322   ;;
10323 esac
10324
10325 fi
10326 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10327 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10328 file_magic_cmd=$lt_cv_file_magic_cmd
10329 deplibs_check_method=$lt_cv_deplibs_check_method
10330 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10331
10332
10333
10334 # If no C compiler was specified, use CC.
10335 LTCC=${LTCC-"$CC"}
10336
10337 # Allow CC to be a program name with arguments.
10338 compiler=$CC
10339
10340 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10341 if test "${enable_libtool_lock+set}" = set; then
10342   enableval="$enable_libtool_lock"
10343
10344 fi;
10345 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10346
10347 # Some flags need to be propagated to the compiler or linker for good
10348 # libtool support.
10349 case $host in
10350 ia64-*-hpux*)
10351   # Find out which ABI we are using.
10352   echo 'int i;' > conftest.$ac_ext
10353   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354   (eval $ac_compile) 2>&5
10355   ac_status=$?
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); }; then
10358     case `/usr/bin/file conftest.$ac_objext` in
10359     *ELF-32*)
10360       HPUX_IA64_MODE="32"
10361       ;;
10362     *ELF-64*)
10363       HPUX_IA64_MODE="64"
10364       ;;
10365     esac
10366   fi
10367   rm -rf conftest*
10368   ;;
10369 *-*-irix6*)
10370   # Find out which ABI we are using.
10371   echo '#line 10371 "configure"' > conftest.$ac_ext
10372   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10373   (eval $ac_compile) 2>&5
10374   ac_status=$?
10375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376   (exit $ac_status); }; then
10377    if test "$lt_cv_prog_gnu_ld" = yes; then
10378     case `/usr/bin/file conftest.$ac_objext` in
10379     *32-bit*)
10380       LD="${LD-ld} -melf32bsmip"
10381       ;;
10382     *N32*)
10383       LD="${LD-ld} -melf32bmipn32"
10384       ;;
10385     *64-bit*)
10386       LD="${LD-ld} -melf64bmip"
10387       ;;
10388     esac
10389    else
10390     case `/usr/bin/file conftest.$ac_objext` in
10391     *32-bit*)
10392       LD="${LD-ld} -32"
10393       ;;
10394     *N32*)
10395       LD="${LD-ld} -n32"
10396       ;;
10397     *64-bit*)
10398       LD="${LD-ld} -64"
10399       ;;
10400     esac
10401    fi
10402   fi
10403   rm -rf conftest*
10404   ;;
10405
10406 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10407   # Find out which ABI we are using.
10408   echo 'int i;' > conftest.$ac_ext
10409   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10410   (eval $ac_compile) 2>&5
10411   ac_status=$?
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); }; then
10414     case "`/usr/bin/file conftest.o`" in
10415     *32-bit*)
10416       case $host in
10417         x86_64-*linux*)
10418           LD="${LD-ld} -m elf_i386"
10419           ;;
10420         ppc64-*linux*|powerpc64-*linux*)
10421           LD="${LD-ld} -m elf32ppclinux"
10422           ;;
10423         s390x-*linux*)
10424           LD="${LD-ld} -m elf_s390"
10425           ;;
10426         sparc64-*linux*)
10427           LD="${LD-ld} -m elf32_sparc"
10428           ;;
10429       esac
10430       ;;
10431     *64-bit*)
10432       case $host in
10433         x86_64-*linux*)
10434           LD="${LD-ld} -m elf_x86_64"
10435           ;;
10436         ppc*-*linux*|powerpc*-*linux*)
10437           LD="${LD-ld} -m elf64ppc"
10438           ;;
10439         s390*-*linux*)
10440           LD="${LD-ld} -m elf64_s390"
10441           ;;
10442         sparc*-*linux*)
10443           LD="${LD-ld} -m elf64_sparc"
10444           ;;
10445       esac
10446       ;;
10447     esac
10448   fi
10449   rm -rf conftest*
10450   ;;
10451
10452 *-*-sco3.2v5*)
10453   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10454   SAVE_CFLAGS="$CFLAGS"
10455   CFLAGS="$CFLAGS -belf"
10456   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10457 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10458 if test "${lt_cv_cc_needs_belf+set}" = set; then
10459   echo $ECHO_N "(cached) $ECHO_C" >&6
10460 else
10461   ac_ext=c
10462 ac_cpp='$CPP $CPPFLAGS'
10463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10466
10467      cat >conftest.$ac_ext <<_ACEOF
10468 /* confdefs.h.  */
10469 _ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h.  */
10473
10474 _ACEOF
10475 rm -f conftest.$ac_objext conftest$ac_exeext
10476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10477   (eval $ac_link) 2>conftest.er1
10478   ac_status=$?
10479   grep -v '^ *+' conftest.er1 >conftest.err
10480   rm -f conftest.er1
10481   cat conftest.err >&5
10482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483   (exit $ac_status); } &&
10484          { ac_try='test -z "$ac_c_werror_flag"
10485                          || test ! -s conftest.err'
10486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487   (eval $ac_try) 2>&5
10488   ac_status=$?
10489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490   (exit $ac_status); }; } &&
10491          { ac_try='test -s conftest$ac_exeext'
10492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493   (eval $ac_try) 2>&5
10494   ac_status=$?
10495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496   (exit $ac_status); }; }; then
10497   lt_cv_cc_needs_belf=yes
10498 else
10499   echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10501
10502 lt_cv_cc_needs_belf=no
10503 fi
10504 rm -f conftest.err conftest.$ac_objext \
10505       conftest$ac_exeext conftest.$ac_ext
10506      ac_ext=c
10507 ac_cpp='$CPP $CPPFLAGS'
10508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10511
10512 fi
10513 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10514 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10515   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10516     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10517     CFLAGS="$SAVE_CFLAGS"
10518   fi
10519   ;;
10520
10521 esac
10522
10523 need_locks="$enable_libtool_lock"
10524
10525
10526
10527
10528 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10529     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10530     (test "X$CXX" != "Xg++"))) ; then
10531   ac_ext=cc
10532 ac_cpp='$CXXCPP $CPPFLAGS'
10533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10536 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10537 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10538 if test -z "$CXXCPP"; then
10539   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10540   echo $ECHO_N "(cached) $ECHO_C" >&6
10541 else
10542       # Double quotes because CXXCPP needs to be expanded
10543     for CXXCPP in "$CXX -E" "/lib/cpp"
10544     do
10545       ac_preproc_ok=false
10546 for ac_cxx_preproc_warn_flag in '' yes
10547 do
10548   # Use a header file that comes with gcc, so configuring glibc
10549   # with a fresh cross-compiler works.
10550   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10551   # <limits.h> exists even on freestanding compilers.
10552   # On the NeXT, cc -E runs the code through the compiler's parser,
10553   # not just through cpp. "Syntax error" is here to catch this case.
10554   cat >conftest.$ac_ext <<_ACEOF
10555 /* confdefs.h.  */
10556 _ACEOF
10557 cat confdefs.h >>conftest.$ac_ext
10558 cat >>conftest.$ac_ext <<_ACEOF
10559 /* end confdefs.h.  */
10560 #ifdef __STDC__
10561 # include <limits.h>
10562 #else
10563 # include <assert.h>
10564 #endif
10565                      Syntax error
10566 _ACEOF
10567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10568   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10569   ac_status=$?
10570   grep -v '^ *+' conftest.er1 >conftest.err
10571   rm -f conftest.er1
10572   cat conftest.err >&5
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); } >/dev/null; then
10575   if test -s conftest.err; then
10576     ac_cpp_err=$ac_cxx_preproc_warn_flag
10577     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10578   else
10579     ac_cpp_err=
10580   fi
10581 else
10582   ac_cpp_err=yes
10583 fi
10584 if test -z "$ac_cpp_err"; then
10585   :
10586 else
10587   echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10589
10590   # Broken: fails on valid input.
10591 continue
10592 fi
10593 rm -f conftest.err conftest.$ac_ext
10594
10595   # OK, works on sane cases.  Now check whether non-existent headers
10596   # can be detected and how.
10597   cat >conftest.$ac_ext <<_ACEOF
10598 /* confdefs.h.  */
10599 _ACEOF
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h.  */
10603 #include <ac_nonexistent.h>
10604 _ACEOF
10605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10606   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10607   ac_status=$?
10608   grep -v '^ *+' conftest.er1 >conftest.err
10609   rm -f conftest.er1
10610   cat conftest.err >&5
10611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612   (exit $ac_status); } >/dev/null; then
10613   if test -s conftest.err; then
10614     ac_cpp_err=$ac_cxx_preproc_warn_flag
10615     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10616   else
10617     ac_cpp_err=
10618   fi
10619 else
10620   ac_cpp_err=yes
10621 fi
10622 if test -z "$ac_cpp_err"; then
10623   # Broken: success on invalid input.
10624 continue
10625 else
10626   echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10628
10629   # Passes both tests.
10630 ac_preproc_ok=:
10631 break
10632 fi
10633 rm -f conftest.err conftest.$ac_ext
10634
10635 done
10636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10637 rm -f conftest.err conftest.$ac_ext
10638 if $ac_preproc_ok; then
10639   break
10640 fi
10641
10642     done
10643     ac_cv_prog_CXXCPP=$CXXCPP
10644
10645 fi
10646   CXXCPP=$ac_cv_prog_CXXCPP
10647 else
10648   ac_cv_prog_CXXCPP=$CXXCPP
10649 fi
10650 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10651 echo "${ECHO_T}$CXXCPP" >&6
10652 ac_preproc_ok=false
10653 for ac_cxx_preproc_warn_flag in '' yes
10654 do
10655   # Use a header file that comes with gcc, so configuring glibc
10656   # with a fresh cross-compiler works.
10657   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10658   # <limits.h> exists even on freestanding compilers.
10659   # On the NeXT, cc -E runs the code through the compiler's parser,
10660   # not just through cpp. "Syntax error" is here to catch this case.
10661   cat >conftest.$ac_ext <<_ACEOF
10662 /* confdefs.h.  */
10663 _ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h.  */
10667 #ifdef __STDC__
10668 # include <limits.h>
10669 #else
10670 # include <assert.h>
10671 #endif
10672                      Syntax error
10673 _ACEOF
10674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10675   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10676   ac_status=$?
10677   grep -v '^ *+' conftest.er1 >conftest.err
10678   rm -f conftest.er1
10679   cat conftest.err >&5
10680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681   (exit $ac_status); } >/dev/null; then
10682   if test -s conftest.err; then
10683     ac_cpp_err=$ac_cxx_preproc_warn_flag
10684     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10685   else
10686     ac_cpp_err=
10687   fi
10688 else
10689   ac_cpp_err=yes
10690 fi
10691 if test -z "$ac_cpp_err"; then
10692   :
10693 else
10694   echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10696
10697   # Broken: fails on valid input.
10698 continue
10699 fi
10700 rm -f conftest.err conftest.$ac_ext
10701
10702   # OK, works on sane cases.  Now check whether non-existent headers
10703   # can be detected and how.
10704   cat >conftest.$ac_ext <<_ACEOF
10705 /* confdefs.h.  */
10706 _ACEOF
10707 cat confdefs.h >>conftest.$ac_ext
10708 cat >>conftest.$ac_ext <<_ACEOF
10709 /* end confdefs.h.  */
10710 #include <ac_nonexistent.h>
10711 _ACEOF
10712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10713   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10714   ac_status=$?
10715   grep -v '^ *+' conftest.er1 >conftest.err
10716   rm -f conftest.er1
10717   cat conftest.err >&5
10718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719   (exit $ac_status); } >/dev/null; then
10720   if test -s conftest.err; then
10721     ac_cpp_err=$ac_cxx_preproc_warn_flag
10722     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10723   else
10724     ac_cpp_err=
10725   fi
10726 else
10727   ac_cpp_err=yes
10728 fi
10729 if test -z "$ac_cpp_err"; then
10730   # Broken: success on invalid input.
10731 continue
10732 else
10733   echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10735
10736   # Passes both tests.
10737 ac_preproc_ok=:
10738 break
10739 fi
10740 rm -f conftest.err conftest.$ac_ext
10741
10742 done
10743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10744 rm -f conftest.err conftest.$ac_ext
10745 if $ac_preproc_ok; then
10746   :
10747 else
10748   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10749 See \`config.log' for more details." >&5
10750 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10751 See \`config.log' for more details." >&2;}
10752    { (exit 1); exit 1; }; }
10753 fi
10754
10755 ac_ext=cc
10756 ac_cpp='$CXXCPP $CPPFLAGS'
10757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10760
10761 fi
10762
10763
10764 ac_ext=f
10765 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10766 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10767 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10768 if test -n "$ac_tool_prefix"; then
10769   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10770   do
10771     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10772 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10773 echo "$as_me:$LINENO: checking for $ac_word" >&5
10774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10775 if test "${ac_cv_prog_F77+set}" = set; then
10776   echo $ECHO_N "(cached) $ECHO_C" >&6
10777 else
10778   if test -n "$F77"; then
10779   ac_cv_prog_F77="$F77" # Let the user override the test.
10780 else
10781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10782 for as_dir in $PATH
10783 do
10784   IFS=$as_save_IFS
10785   test -z "$as_dir" && as_dir=.
10786   for ac_exec_ext in '' $ac_executable_extensions; do
10787   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10788     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10790     break 2
10791   fi
10792 done
10793 done
10794
10795 fi
10796 fi
10797 F77=$ac_cv_prog_F77
10798 if test -n "$F77"; then
10799   echo "$as_me:$LINENO: result: $F77" >&5
10800 echo "${ECHO_T}$F77" >&6
10801 else
10802   echo "$as_me:$LINENO: result: no" >&5
10803 echo "${ECHO_T}no" >&6
10804 fi
10805
10806     test -n "$F77" && break
10807   done
10808 fi
10809 if test -z "$F77"; then
10810   ac_ct_F77=$F77
10811   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10812 do
10813   # Extract the first word of "$ac_prog", so it can be a program name with args.
10814 set dummy $ac_prog; ac_word=$2
10815 echo "$as_me:$LINENO: checking for $ac_word" >&5
10816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10817 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10818   echo $ECHO_N "(cached) $ECHO_C" >&6
10819 else
10820   if test -n "$ac_ct_F77"; then
10821   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10822 else
10823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10824 for as_dir in $PATH
10825 do
10826   IFS=$as_save_IFS
10827   test -z "$as_dir" && as_dir=.
10828   for ac_exec_ext in '' $ac_executable_extensions; do
10829   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10830     ac_cv_prog_ac_ct_F77="$ac_prog"
10831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10832     break 2
10833   fi
10834 done
10835 done
10836
10837 fi
10838 fi
10839 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10840 if test -n "$ac_ct_F77"; then
10841   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10842 echo "${ECHO_T}$ac_ct_F77" >&6
10843 else
10844   echo "$as_me:$LINENO: result: no" >&5
10845 echo "${ECHO_T}no" >&6
10846 fi
10847
10848   test -n "$ac_ct_F77" && break
10849 done
10850
10851   F77=$ac_ct_F77
10852 fi
10853
10854
10855 # Provide some information about the compiler.
10856 echo "$as_me:10856:" \
10857      "checking for Fortran 77 compiler version" >&5
10858 ac_compiler=`set X $ac_compile; echo $2`
10859 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10860   (eval $ac_compiler --version </dev/null >&5) 2>&5
10861   ac_status=$?
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); }
10864 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10865   (eval $ac_compiler -v </dev/null >&5) 2>&5
10866   ac_status=$?
10867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868   (exit $ac_status); }
10869 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10870   (eval $ac_compiler -V </dev/null >&5) 2>&5
10871   ac_status=$?
10872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873   (exit $ac_status); }
10874 rm -f a.out
10875
10876 # If we don't use `.F' as extension, the preprocessor is not run on the
10877 # input file.  (Note that this only needs to work for GNU compilers.)
10878 ac_save_ext=$ac_ext
10879 ac_ext=F
10880 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10881 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10882 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10883   echo $ECHO_N "(cached) $ECHO_C" >&6
10884 else
10885   cat >conftest.$ac_ext <<_ACEOF
10886       program main
10887 #ifndef __GNUC__
10888        choke me
10889 #endif
10890
10891       end
10892 _ACEOF
10893 rm -f conftest.$ac_objext
10894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10895   (eval $ac_compile) 2>conftest.er1
10896   ac_status=$?
10897   grep -v '^ *+' conftest.er1 >conftest.err
10898   rm -f conftest.er1
10899   cat conftest.err >&5
10900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); } &&
10902          { ac_try='test -z "$ac_f77_werror_flag"
10903                          || test ! -s conftest.err'
10904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905   (eval $ac_try) 2>&5
10906   ac_status=$?
10907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908   (exit $ac_status); }; } &&
10909          { ac_try='test -s conftest.$ac_objext'
10910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911   (eval $ac_try) 2>&5
10912   ac_status=$?
10913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914   (exit $ac_status); }; }; then
10915   ac_compiler_gnu=yes
10916 else
10917   echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10919
10920 ac_compiler_gnu=no
10921 fi
10922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10923 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10924
10925 fi
10926 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10927 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10928 ac_ext=$ac_save_ext
10929 ac_test_FFLAGS=${FFLAGS+set}
10930 ac_save_FFLAGS=$FFLAGS
10931 FFLAGS=
10932 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10933 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10934 if test "${ac_cv_prog_f77_g+set}" = set; then
10935   echo $ECHO_N "(cached) $ECHO_C" >&6
10936 else
10937   FFLAGS=-g
10938 cat >conftest.$ac_ext <<_ACEOF
10939       program main
10940
10941       end
10942 _ACEOF
10943 rm -f conftest.$ac_objext
10944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10945   (eval $ac_compile) 2>conftest.er1
10946   ac_status=$?
10947   grep -v '^ *+' conftest.er1 >conftest.err
10948   rm -f conftest.er1
10949   cat conftest.err >&5
10950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951   (exit $ac_status); } &&
10952          { ac_try='test -z "$ac_f77_werror_flag"
10953                          || test ! -s conftest.err'
10954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955   (eval $ac_try) 2>&5
10956   ac_status=$?
10957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958   (exit $ac_status); }; } &&
10959          { ac_try='test -s conftest.$ac_objext'
10960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10961   (eval $ac_try) 2>&5
10962   ac_status=$?
10963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964   (exit $ac_status); }; }; then
10965   ac_cv_prog_f77_g=yes
10966 else
10967   echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10969
10970 ac_cv_prog_f77_g=no
10971 fi
10972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10973
10974 fi
10975 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10976 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10977 if test "$ac_test_FFLAGS" = set; then
10978   FFLAGS=$ac_save_FFLAGS
10979 elif test $ac_cv_prog_f77_g = yes; then
10980   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10981     FFLAGS="-g -O2"
10982   else
10983     FFLAGS="-g"
10984   fi
10985 else
10986   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
10987     FFLAGS="-O2"
10988   else
10989     FFLAGS=
10990   fi
10991 fi
10992
10993 G77=`test $ac_compiler_gnu = yes && echo yes`
10994 ac_ext=c
10995 ac_cpp='$CPP $CPPFLAGS'
10996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10999
11000
11001
11002 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11003
11004 # find the maximum length of command line arguments
11005 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11006 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11007 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11008   echo $ECHO_N "(cached) $ECHO_C" >&6
11009 else
11010     i=0
11011   teststring="ABCD"
11012
11013   case $build_os in
11014   msdosdjgpp*)
11015     # On DJGPP, this test can blow up pretty badly due to problems in libc
11016     # (any single argument exceeding 2000 bytes causes a buffer overrun
11017     # during glob expansion).  Even if it were fixed, the result of this
11018     # check would be larger than it should be.
11019     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11020     ;;
11021
11022   gnu*)
11023     # Under GNU Hurd, this test is not required because there is
11024     # no limit to the length of command line arguments.
11025     # Libtool will interpret -1 as no limit whatsoever
11026     lt_cv_sys_max_cmd_len=-1;
11027     ;;
11028
11029   cygwin* | mingw*)
11030     # On Win9x/ME, this test blows up -- it succeeds, but takes
11031     # about 5 minutes as the teststring grows exponentially.
11032     # Worse, since 9x/ME are not pre-emptively multitasking,
11033     # you end up with a "frozen" computer, even though with patience
11034     # the test eventually succeeds (with a max line length of 256k).
11035     # Instead, let's just punt: use the minimum linelength reported by
11036     # all of the supported platforms: 8192 (on NT/2K/XP).
11037     lt_cv_sys_max_cmd_len=8192;
11038     ;;
11039
11040   amigaos*)
11041     # On AmigaOS with pdksh, this test takes hours, literally.
11042     # So we just punt and use a minimum line length of 8192.
11043     lt_cv_sys_max_cmd_len=8192;
11044     ;;
11045
11046   netbsd* | freebsd* | openbsd* | darwin* )
11047     # This has been around since 386BSD, at least.  Likely further.
11048     if test -x /sbin/sysctl; then
11049       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11050     elif test -x /usr/sbin/sysctl; then
11051       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11052     else
11053       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11054     fi
11055     # And add a safety zone
11056     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11057     ;;
11058
11059  *)
11060     # If test is not a shell built-in, we'll probably end up computing a
11061     # maximum length that is only half of the actual maximum length, but
11062     # we can't tell.
11063     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11064     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11065                = "XX$teststring") >/dev/null 2>&1 &&
11066             new_result=`expr "X$teststring" : ".*" 2>&1` &&
11067             lt_cv_sys_max_cmd_len=$new_result &&
11068             test $i != 17 # 1/2 MB should be enough
11069     do
11070       i=`expr $i + 1`
11071       teststring=$teststring$teststring
11072     done
11073     teststring=
11074     # Add a significant safety factor because C++ compilers can tack on massive
11075     # amounts of additional arguments before passing them to the linker.
11076     # It appears as though 1/2 is a usable value.
11077     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11078     ;;
11079   esac
11080
11081 fi
11082
11083 if test -n $lt_cv_sys_max_cmd_len ; then
11084   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11085 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11086 else
11087   echo "$as_me:$LINENO: result: none" >&5
11088 echo "${ECHO_T}none" >&6
11089 fi
11090
11091
11092
11093
11094 # Check for command to grab the raw symbol name followed by C symbol from nm.
11095 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11096 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11097 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11098   echo $ECHO_N "(cached) $ECHO_C" >&6
11099 else
11100
11101 # These are sane defaults that work on at least a few old systems.
11102 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11103
11104 # Character class describing NM global symbol codes.
11105 symcode='[BCDEGRST]'
11106
11107 # Regexp to match symbols that can be accessed directly from C.
11108 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11109
11110 # Transform the above into a raw symbol and a C symbol.
11111 symxfrm='\1 \2\3 \3'
11112
11113 # Transform an extracted symbol line into a proper C declaration
11114 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11115
11116 # Transform an extracted symbol line into symbol name and symbol address
11117 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'"
11118
11119 # Define system-specific variables.
11120 case $host_os in
11121 aix*)
11122   symcode='[BCDT]'
11123   ;;
11124 cygwin* | mingw* | pw32*)
11125   symcode='[ABCDGISTW]'
11126   ;;
11127 hpux*) # Its linker distinguishes data from code symbols
11128   if test "$host_cpu" = ia64; then
11129     symcode='[ABCDEGRST]'
11130   fi
11131   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11132   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'"
11133   ;;
11134 linux*)
11135   if test "$host_cpu" = ia64; then
11136     symcode='[ABCDGIRSTW]'
11137     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11138     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'"
11139   fi
11140   ;;
11141 irix* | nonstopux*)
11142   symcode='[BCDEGRST]'
11143   ;;
11144 osf*)
11145   symcode='[BCDEGQRST]'
11146   ;;
11147 solaris* | sysv5*)
11148   symcode='[BDRT]'
11149   ;;
11150 sysv4)
11151   symcode='[DFNSTU]'
11152   ;;
11153 esac
11154
11155 # Handle CRLF in mingw tool chain
11156 opt_cr=
11157 case $build_os in
11158 mingw*)
11159   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11160   ;;
11161 esac
11162
11163 # If we're using GNU nm, then use its standard symbol codes.
11164 case `$NM -V 2>&1` in
11165 *GNU* | *'with BFD'*)
11166   symcode='[ABCDGIRSTW]' ;;
11167 esac
11168
11169 # Try without a prefix undercore, then with it.
11170 for ac_symprfx in "" "_"; do
11171
11172   # Write the raw and C identifiers.
11173   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11174
11175   # Check to see that the pipe works correctly.
11176   pipe_works=no
11177
11178   rm -f conftest*
11179   cat > conftest.$ac_ext <<EOF
11180 #ifdef __cplusplus
11181 extern "C" {
11182 #endif
11183 char nm_test_var;
11184 void nm_test_func(){}
11185 #ifdef __cplusplus
11186 }
11187 #endif
11188 int main(){nm_test_var='a';nm_test_func();return(0);}
11189 EOF
11190
11191   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11192   (eval $ac_compile) 2>&5
11193   ac_status=$?
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); }; then
11196     # Now try to grab the symbols.
11197     nlist=conftest.nm
11198     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11199   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11200   ac_status=$?
11201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202   (exit $ac_status); } && test -s "$nlist"; then
11203       # Try sorting and uniquifying the output.
11204       if sort "$nlist" | uniq > "$nlist"T; then
11205         mv -f "$nlist"T "$nlist"
11206       else
11207         rm -f "$nlist"T
11208       fi
11209
11210       # Make sure that we snagged all the symbols we need.
11211       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11212         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11213           cat <<EOF > conftest.$ac_ext
11214 #ifdef __cplusplus
11215 extern "C" {
11216 #endif
11217
11218 EOF
11219           # Now generate the symbol file.
11220           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11221
11222           cat <<EOF >> conftest.$ac_ext
11223 #if defined (__STDC__) && __STDC__
11224 # define lt_ptr_t void *
11225 #else
11226 # define lt_ptr_t char *
11227 # define const
11228 #endif
11229
11230 /* The mapping between symbol names and symbols. */
11231 const struct {
11232   const char *name;
11233   lt_ptr_t address;
11234 }
11235 lt_preloaded_symbols[] =
11236 {
11237 EOF
11238           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11239           cat <<\EOF >> conftest.$ac_ext
11240   {0, (lt_ptr_t) 0}
11241 };
11242
11243 #ifdef __cplusplus
11244 }
11245 #endif
11246 EOF
11247           # Now try linking the two files.
11248           mv conftest.$ac_objext conftstm.$ac_objext
11249           lt_save_LIBS="$LIBS"
11250           lt_save_CFLAGS="$CFLAGS"
11251           LIBS="conftstm.$ac_objext"
11252           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11253           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11254   (eval $ac_link) 2>&5
11255   ac_status=$?
11256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11258             pipe_works=yes
11259           fi
11260           LIBS="$lt_save_LIBS"
11261           CFLAGS="$lt_save_CFLAGS"
11262         else
11263           echo "cannot find nm_test_func in $nlist" >&5
11264         fi
11265       else
11266         echo "cannot find nm_test_var in $nlist" >&5
11267       fi
11268     else
11269       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11270     fi
11271   else
11272     echo "$progname: failed program was:" >&5
11273     cat conftest.$ac_ext >&5
11274   fi
11275   rm -f conftest* conftst*
11276
11277   # Do not use the global_symbol_pipe unless it works.
11278   if test "$pipe_works" = yes; then
11279     break
11280   else
11281     lt_cv_sys_global_symbol_pipe=
11282   fi
11283 done
11284
11285 fi
11286
11287 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11288   lt_cv_sys_global_symbol_to_cdecl=
11289 fi
11290 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11291   echo "$as_me:$LINENO: result: failed" >&5
11292 echo "${ECHO_T}failed" >&6
11293 else
11294   echo "$as_me:$LINENO: result: ok" >&5
11295 echo "${ECHO_T}ok" >&6
11296 fi
11297
11298 echo "$as_me:$LINENO: checking for objdir" >&5
11299 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11300 if test "${lt_cv_objdir+set}" = set; then
11301   echo $ECHO_N "(cached) $ECHO_C" >&6
11302 else
11303   rm -f .libs 2>/dev/null
11304 mkdir .libs 2>/dev/null
11305 if test -d .libs; then
11306   lt_cv_objdir=.libs
11307 else
11308   # MS-DOS does not allow filenames that begin with a dot.
11309   lt_cv_objdir=_libs
11310 fi
11311 rmdir .libs 2>/dev/null
11312 fi
11313 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11314 echo "${ECHO_T}$lt_cv_objdir" >&6
11315 objdir=$lt_cv_objdir
11316
11317
11318
11319
11320
11321 case $host_os in
11322 aix3*)
11323   # AIX sometimes has problems with the GCC collect2 program.  For some
11324   # reason, if we set the COLLECT_NAMES environment variable, the problems
11325   # vanish in a puff of smoke.
11326   if test "X${COLLECT_NAMES+set}" != Xset; then
11327     COLLECT_NAMES=
11328     export COLLECT_NAMES
11329   fi
11330   ;;
11331 esac
11332
11333 # Sed substitution that helps us do robust quoting.  It backslashifies
11334 # metacharacters that are still active within double-quoted strings.
11335 Xsed='sed -e s/^X//'
11336 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11337
11338 # Same as above, but do not quote variable references.
11339 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11340
11341 # Sed substitution to delay expansion of an escaped shell variable in a
11342 # double_quote_subst'ed string.
11343 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11344
11345 # Sed substitution to avoid accidental globbing in evaled expressions
11346 no_glob_subst='s/\*/\\\*/g'
11347
11348 # Constants:
11349 rm="rm -f"
11350
11351 # Global variables:
11352 default_ofile=mklib
11353 can_build_shared=yes
11354
11355 # All known linkers require a `.a' archive for static linking (except M$VC,
11356 # which needs '.lib').
11357 libext=a
11358 ltmain="$ac_aux_dir/ltmain.sh"
11359 ofile="$default_ofile"
11360 with_gnu_ld="$lt_cv_prog_gnu_ld"
11361
11362 if test -n "$ac_tool_prefix"; then
11363   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11364 set dummy ${ac_tool_prefix}ar; ac_word=$2
11365 echo "$as_me:$LINENO: checking for $ac_word" >&5
11366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11367 if test "${ac_cv_prog_AR+set}" = set; then
11368   echo $ECHO_N "(cached) $ECHO_C" >&6
11369 else
11370   if test -n "$AR"; then
11371   ac_cv_prog_AR="$AR" # Let the user override the test.
11372 else
11373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374 for as_dir in $PATH
11375 do
11376   IFS=$as_save_IFS
11377   test -z "$as_dir" && as_dir=.
11378   for ac_exec_ext in '' $ac_executable_extensions; do
11379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11380     ac_cv_prog_AR="${ac_tool_prefix}ar"
11381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11382     break 2
11383   fi
11384 done
11385 done
11386
11387 fi
11388 fi
11389 AR=$ac_cv_prog_AR
11390 if test -n "$AR"; then
11391   echo "$as_me:$LINENO: result: $AR" >&5
11392 echo "${ECHO_T}$AR" >&6
11393 else
11394   echo "$as_me:$LINENO: result: no" >&5
11395 echo "${ECHO_T}no" >&6
11396 fi
11397
11398 fi
11399 if test -z "$ac_cv_prog_AR"; then
11400   ac_ct_AR=$AR
11401   # Extract the first word of "ar", so it can be a program name with args.
11402 set dummy ar; ac_word=$2
11403 echo "$as_me:$LINENO: checking for $ac_word" >&5
11404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11405 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11406   echo $ECHO_N "(cached) $ECHO_C" >&6
11407 else
11408   if test -n "$ac_ct_AR"; then
11409   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11410 else
11411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412 for as_dir in $PATH
11413 do
11414   IFS=$as_save_IFS
11415   test -z "$as_dir" && as_dir=.
11416   for ac_exec_ext in '' $ac_executable_extensions; do
11417   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11418     ac_cv_prog_ac_ct_AR="ar"
11419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11420     break 2
11421   fi
11422 done
11423 done
11424
11425   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11426 fi
11427 fi
11428 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11429 if test -n "$ac_ct_AR"; then
11430   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11431 echo "${ECHO_T}$ac_ct_AR" >&6
11432 else
11433   echo "$as_me:$LINENO: result: no" >&5
11434 echo "${ECHO_T}no" >&6
11435 fi
11436
11437   AR=$ac_ct_AR
11438 else
11439   AR="$ac_cv_prog_AR"
11440 fi
11441
11442 if test -n "$ac_tool_prefix"; then
11443   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11444 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11445 echo "$as_me:$LINENO: checking for $ac_word" >&5
11446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11447 if test "${ac_cv_prog_RANLIB+set}" = set; then
11448   echo $ECHO_N "(cached) $ECHO_C" >&6
11449 else
11450   if test -n "$RANLIB"; then
11451   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11452 else
11453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11454 for as_dir in $PATH
11455 do
11456   IFS=$as_save_IFS
11457   test -z "$as_dir" && as_dir=.
11458   for ac_exec_ext in '' $ac_executable_extensions; do
11459   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11460     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11462     break 2
11463   fi
11464 done
11465 done
11466
11467 fi
11468 fi
11469 RANLIB=$ac_cv_prog_RANLIB
11470 if test -n "$RANLIB"; then
11471   echo "$as_me:$LINENO: result: $RANLIB" >&5
11472 echo "${ECHO_T}$RANLIB" >&6
11473 else
11474   echo "$as_me:$LINENO: result: no" >&5
11475 echo "${ECHO_T}no" >&6
11476 fi
11477
11478 fi
11479 if test -z "$ac_cv_prog_RANLIB"; then
11480   ac_ct_RANLIB=$RANLIB
11481   # Extract the first word of "ranlib", so it can be a program name with args.
11482 set dummy ranlib; ac_word=$2
11483 echo "$as_me:$LINENO: checking for $ac_word" >&5
11484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11485 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11486   echo $ECHO_N "(cached) $ECHO_C" >&6
11487 else
11488   if test -n "$ac_ct_RANLIB"; then
11489   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11490 else
11491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11492 for as_dir in $PATH
11493 do
11494   IFS=$as_save_IFS
11495   test -z "$as_dir" && as_dir=.
11496   for ac_exec_ext in '' $ac_executable_extensions; do
11497   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11498     ac_cv_prog_ac_ct_RANLIB="ranlib"
11499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11500     break 2
11501   fi
11502 done
11503 done
11504
11505   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11506 fi
11507 fi
11508 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11509 if test -n "$ac_ct_RANLIB"; then
11510   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11511 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11512 else
11513   echo "$as_me:$LINENO: result: no" >&5
11514 echo "${ECHO_T}no" >&6
11515 fi
11516
11517   RANLIB=$ac_ct_RANLIB
11518 else
11519   RANLIB="$ac_cv_prog_RANLIB"
11520 fi
11521
11522 if test -n "$ac_tool_prefix"; then
11523   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11524 set dummy ${ac_tool_prefix}strip; ac_word=$2
11525 echo "$as_me:$LINENO: checking for $ac_word" >&5
11526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11527 if test "${ac_cv_prog_STRIP+set}" = set; then
11528   echo $ECHO_N "(cached) $ECHO_C" >&6
11529 else
11530   if test -n "$STRIP"; then
11531   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11532 else
11533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11534 for as_dir in $PATH
11535 do
11536   IFS=$as_save_IFS
11537   test -z "$as_dir" && as_dir=.
11538   for ac_exec_ext in '' $ac_executable_extensions; do
11539   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11540     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11542     break 2
11543   fi
11544 done
11545 done
11546
11547 fi
11548 fi
11549 STRIP=$ac_cv_prog_STRIP
11550 if test -n "$STRIP"; then
11551   echo "$as_me:$LINENO: result: $STRIP" >&5
11552 echo "${ECHO_T}$STRIP" >&6
11553 else
11554   echo "$as_me:$LINENO: result: no" >&5
11555 echo "${ECHO_T}no" >&6
11556 fi
11557
11558 fi
11559 if test -z "$ac_cv_prog_STRIP"; then
11560   ac_ct_STRIP=$STRIP
11561   # Extract the first word of "strip", so it can be a program name with args.
11562 set dummy strip; ac_word=$2
11563 echo "$as_me:$LINENO: checking for $ac_word" >&5
11564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11565 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11566   echo $ECHO_N "(cached) $ECHO_C" >&6
11567 else
11568   if test -n "$ac_ct_STRIP"; then
11569   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11570 else
11571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572 for as_dir in $PATH
11573 do
11574   IFS=$as_save_IFS
11575   test -z "$as_dir" && as_dir=.
11576   for ac_exec_ext in '' $ac_executable_extensions; do
11577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11578     ac_cv_prog_ac_ct_STRIP="strip"
11579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11580     break 2
11581   fi
11582 done
11583 done
11584
11585   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11586 fi
11587 fi
11588 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11589 if test -n "$ac_ct_STRIP"; then
11590   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11591 echo "${ECHO_T}$ac_ct_STRIP" >&6
11592 else
11593   echo "$as_me:$LINENO: result: no" >&5
11594 echo "${ECHO_T}no" >&6
11595 fi
11596
11597   STRIP=$ac_ct_STRIP
11598 else
11599   STRIP="$ac_cv_prog_STRIP"
11600 fi
11601
11602
11603 old_CC="$CC"
11604 old_CFLAGS="$CFLAGS"
11605
11606 # Set sane defaults for various variables
11607 test -z "$AR" && AR=ar
11608 test -z "$AR_FLAGS" && AR_FLAGS=cru
11609 test -z "$AS" && AS=as
11610 test -z "$CC" && CC=cc
11611 test -z "$LTCC" && LTCC=$CC
11612 test -z "$DLLTOOL" && DLLTOOL=dlltool
11613 test -z "$LD" && LD=ld
11614 test -z "$LN_S" && LN_S="ln -s"
11615 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11616 test -z "$NM" && NM=nm
11617 test -z "$SED" && SED=sed
11618 test -z "$OBJDUMP" && OBJDUMP=objdump
11619 test -z "$RANLIB" && RANLIB=:
11620 test -z "$STRIP" && STRIP=:
11621 test -z "$ac_objext" && ac_objext=o
11622
11623 # Determine commands to create old-style static archives.
11624 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11625 old_postinstall_cmds='chmod 644 $oldlib'
11626 old_postuninstall_cmds=
11627
11628 if test -n "$RANLIB"; then
11629   case $host_os in
11630   openbsd*)
11631     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11632     ;;
11633   *)
11634     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11635     ;;
11636   esac
11637   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11638 fi
11639
11640 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11641
11642 # Only perform the check for file, if the check method requires it
11643 case $deplibs_check_method in
11644 file_magic*)
11645   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11646     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11647 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11648 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11649   echo $ECHO_N "(cached) $ECHO_C" >&6
11650 else
11651   case $MAGIC_CMD in
11652 [\\/*] |  ?:[\\/]*)
11653   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11654   ;;
11655 *)
11656   lt_save_MAGIC_CMD="$MAGIC_CMD"
11657   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11658   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11659   for ac_dir in $ac_dummy; do
11660     IFS="$lt_save_ifs"
11661     test -z "$ac_dir" && ac_dir=.
11662     if test -f $ac_dir/${ac_tool_prefix}file; then
11663       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11664       if test -n "$file_magic_test_file"; then
11665         case $deplibs_check_method in
11666         "file_magic "*)
11667           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11668           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11669           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11670             $EGREP "$file_magic_regex" > /dev/null; then
11671             :
11672           else
11673             cat <<EOF 1>&2
11674
11675 *** Warning: the command libtool uses to detect shared libraries,
11676 *** $file_magic_cmd, produces output that libtool cannot recognize.
11677 *** The result is that libtool may fail to recognize shared libraries
11678 *** as such.  This will affect the creation of libtool libraries that
11679 *** depend on shared libraries, but programs linked with such libtool
11680 *** libraries will work regardless of this problem.  Nevertheless, you
11681 *** may want to report the problem to your system manager and/or to
11682 *** bug-libtool@gnu.org
11683
11684 EOF
11685           fi ;;
11686         esac
11687       fi
11688       break
11689     fi
11690   done
11691   IFS="$lt_save_ifs"
11692   MAGIC_CMD="$lt_save_MAGIC_CMD"
11693   ;;
11694 esac
11695 fi
11696
11697 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11698 if test -n "$MAGIC_CMD"; then
11699   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11700 echo "${ECHO_T}$MAGIC_CMD" >&6
11701 else
11702   echo "$as_me:$LINENO: result: no" >&5
11703 echo "${ECHO_T}no" >&6
11704 fi
11705
11706 if test -z "$lt_cv_path_MAGIC_CMD"; then
11707   if test -n "$ac_tool_prefix"; then
11708     echo "$as_me:$LINENO: checking for file" >&5
11709 echo $ECHO_N "checking for file... $ECHO_C" >&6
11710 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11711   echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713   case $MAGIC_CMD in
11714 [\\/*] |  ?:[\\/]*)
11715   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11716   ;;
11717 *)
11718   lt_save_MAGIC_CMD="$MAGIC_CMD"
11719   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11720   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11721   for ac_dir in $ac_dummy; do
11722     IFS="$lt_save_ifs"
11723     test -z "$ac_dir" && ac_dir=.
11724     if test -f $ac_dir/file; then
11725       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11726       if test -n "$file_magic_test_file"; then
11727         case $deplibs_check_method in
11728         "file_magic "*)
11729           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11730           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11731           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11732             $EGREP "$file_magic_regex" > /dev/null; then
11733             :
11734           else
11735             cat <<EOF 1>&2
11736
11737 *** Warning: the command libtool uses to detect shared libraries,
11738 *** $file_magic_cmd, produces output that libtool cannot recognize.
11739 *** The result is that libtool may fail to recognize shared libraries
11740 *** as such.  This will affect the creation of libtool libraries that
11741 *** depend on shared libraries, but programs linked with such libtool
11742 *** libraries will work regardless of this problem.  Nevertheless, you
11743 *** may want to report the problem to your system manager and/or to
11744 *** bug-libtool@gnu.org
11745
11746 EOF
11747           fi ;;
11748         esac
11749       fi
11750       break
11751     fi
11752   done
11753   IFS="$lt_save_ifs"
11754   MAGIC_CMD="$lt_save_MAGIC_CMD"
11755   ;;
11756 esac
11757 fi
11758
11759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11760 if test -n "$MAGIC_CMD"; then
11761   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11762 echo "${ECHO_T}$MAGIC_CMD" >&6
11763 else
11764   echo "$as_me:$LINENO: result: no" >&5
11765 echo "${ECHO_T}no" >&6
11766 fi
11767
11768   else
11769     MAGIC_CMD=:
11770   fi
11771 fi
11772
11773   fi
11774   ;;
11775 esac
11776
11777 enable_dlopen=yes
11778 enable_win32_dll=no
11779
11780 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11781 if test "${enable_libtool_lock+set}" = set; then
11782   enableval="$enable_libtool_lock"
11783
11784 fi;
11785 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11786
11787
11788 # Check whether --with-pic or --without-pic was given.
11789 if test "${with_pic+set}" = set; then
11790   withval="$with_pic"
11791   pic_mode="$withval"
11792 else
11793   pic_mode=default
11794 fi;
11795 test -z "$pic_mode" && pic_mode=default
11796
11797 # Use C for the default configuration in the libtool script
11798 tagname=
11799 lt_save_CC="$CC"
11800 ac_ext=c
11801 ac_cpp='$CPP $CPPFLAGS'
11802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11805
11806
11807 # Source file extension for C test sources.
11808 ac_ext=c
11809
11810 # Object file extension for compiled C test sources.
11811 objext=o
11812 objext=$objext
11813
11814 # Code to be used in simple compile tests
11815 lt_simple_compile_test_code="int some_variable = 0;\n"
11816
11817 # Code to be used in simple link tests
11818 lt_simple_link_test_code='int main(){return(0);}\n'
11819
11820
11821 # If no C compiler was specified, use CC.
11822 LTCC=${LTCC-"$CC"}
11823
11824 # Allow CC to be a program name with arguments.
11825 compiler=$CC
11826
11827
11828 #
11829 # Check for any special shared library compilation flags.
11830 #
11831 lt_prog_cc_shlib=
11832 if test "$GCC" = no; then
11833   case $host_os in
11834   sco3.2v5*)
11835     lt_prog_cc_shlib='-belf'
11836     ;;
11837   esac
11838 fi
11839 if test -n "$lt_prog_cc_shlib"; then
11840   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11841 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11842   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11843   else
11844     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11845 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11846     lt_cv_prog_cc_can_build_shared=no
11847   fi
11848 fi
11849
11850
11851 #
11852 # Check to make sure the static flag actually works.
11853 #
11854 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11855 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11856 if test "${lt_prog_compiler_static_works+set}" = set; then
11857   echo $ECHO_N "(cached) $ECHO_C" >&6
11858 else
11859   lt_prog_compiler_static_works=no
11860    save_LDFLAGS="$LDFLAGS"
11861    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11862    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11863    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11864      # The compiler can only warn and ignore the option if not recognized
11865      # So say no if there are warnings
11866      if test -s conftest.err; then
11867        # Append any errors to the config.log.
11868        cat conftest.err 1>&5
11869      else
11870        lt_prog_compiler_static_works=yes
11871      fi
11872    fi
11873    $rm conftest*
11874    LDFLAGS="$save_LDFLAGS"
11875
11876 fi
11877 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11878 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11879
11880 if test x"$lt_prog_compiler_static_works" = xyes; then
11881     :
11882 else
11883     lt_prog_compiler_static=
11884 fi
11885
11886
11887
11888
11889 lt_prog_compiler_no_builtin_flag=
11890
11891 if test "$GCC" = yes; then
11892   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11893
11894
11895 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11896 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11897 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11898   echo $ECHO_N "(cached) $ECHO_C" >&6
11899 else
11900   lt_cv_prog_compiler_rtti_exceptions=no
11901   ac_outfile=conftest.$ac_objext
11902    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11903    lt_compiler_flag="-fno-rtti -fno-exceptions"
11904    # Insert the option either (1) after the last *FLAGS variable, or
11905    # (2) before a word containing "conftest.", or (3) at the end.
11906    # Note that $ac_compile itself does not contain backslashes and begins
11907    # with a dollar sign (not a hyphen), so the echo should work correctly.
11908    # The option is referenced via a variable to avoid confusing sed.
11909    lt_compile=`echo "$ac_compile" | $SED \
11910    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11911    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11912    -e 's:$: $lt_compiler_flag:'`
11913    (eval echo "\"\$as_me:11913: $lt_compile\"" >&5)
11914    (eval "$lt_compile" 2>conftest.err)
11915    ac_status=$?
11916    cat conftest.err >&5
11917    echo "$as_me:11917: \$? = $ac_status" >&5
11918    if (exit $ac_status) && test -s "$ac_outfile"; then
11919      # The compiler can only warn and ignore the option if not recognized
11920      # So say no if there are warnings
11921      if test ! -s conftest.err; then
11922        lt_cv_prog_compiler_rtti_exceptions=yes
11923      fi
11924    fi
11925    $rm conftest*
11926
11927 fi
11928 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11929 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11930
11931 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11932     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11933 else
11934     :
11935 fi
11936
11937 fi
11938
11939 lt_prog_compiler_wl=
11940 lt_prog_compiler_pic=
11941 lt_prog_compiler_static=
11942
11943 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11944 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11945
11946   if test "$GCC" = yes; then
11947     lt_prog_compiler_wl='-Wl,'
11948     lt_prog_compiler_static='-static'
11949
11950     case $host_os in
11951       aix*)
11952       # All AIX code is PIC.
11953       if test "$host_cpu" = ia64; then
11954         # AIX 5 now supports IA64 processor
11955         lt_prog_compiler_static='-Bstatic'
11956       fi
11957       ;;
11958
11959     amigaos*)
11960       # FIXME: we need at least 68020 code to build shared libraries, but
11961       # adding the `-m68020' flag to GCC prevents building anything better,
11962       # like `-m68040'.
11963       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11964       ;;
11965
11966     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11967       # PIC is the default for these OSes.
11968       ;;
11969
11970     mingw* | pw32* | os2*)
11971       # This hack is so that the source file can tell whether it is being
11972       # built for inclusion in a dll (and should export symbols for example).
11973       lt_prog_compiler_pic='-DDLL_EXPORT'
11974       ;;
11975
11976     darwin* | rhapsody*)
11977       # PIC is the default on this platform
11978       # Common symbols not allowed in MH_DYLIB files
11979       lt_prog_compiler_pic='-fno-common'
11980       ;;
11981
11982     msdosdjgpp*)
11983       # Just because we use GCC doesn't mean we suddenly get shared libraries
11984       # on systems that don't support them.
11985       lt_prog_compiler_can_build_shared=no
11986       enable_shared=no
11987       ;;
11988
11989     sysv4*MP*)
11990       if test -d /usr/nec; then
11991         lt_prog_compiler_pic=-Kconform_pic
11992       fi
11993       ;;
11994
11995     hpux*)
11996       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11997       # not for PA HP-UX.
11998       case "$host_cpu" in
11999       hppa*64*|ia64*)
12000         # +Z the default
12001         ;;
12002       *)
12003         lt_prog_compiler_pic='-fPIC'
12004         ;;
12005       esac
12006       ;;
12007
12008     *)
12009       lt_prog_compiler_pic='-fPIC'
12010       ;;
12011     esac
12012   else
12013     # PORTME Check for flag to pass linker flags through the system compiler.
12014     case $host_os in
12015     aix*)
12016       lt_prog_compiler_wl='-Wl,'
12017       if test "$host_cpu" = ia64; then
12018         # AIX 5 now supports IA64 processor
12019         lt_prog_compiler_static='-Bstatic'
12020       else
12021         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12022       fi
12023       ;;
12024       darwin*)
12025         # PIC is the default on this platform
12026         # Common symbols not allowed in MH_DYLIB files
12027        case "$cc_basename" in
12028          xlc*)
12029          lt_prog_compiler_pic='-qnocommon'
12030          lt_prog_compiler_wl='-Wl,'
12031          ;;
12032        esac
12033        ;;
12034
12035     mingw* | pw32* | os2*)
12036       # This hack is so that the source file can tell whether it is being
12037       # built for inclusion in a dll (and should export symbols for example).
12038       lt_prog_compiler_pic='-DDLL_EXPORT'
12039       ;;
12040
12041     hpux9* | hpux10* | hpux11*)
12042       lt_prog_compiler_wl='-Wl,'
12043       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12044       # not for PA HP-UX.
12045       case "$host_cpu" in
12046       hppa*64*|ia64*)
12047         # +Z the default
12048         ;;
12049       *)
12050         lt_prog_compiler_pic='+Z'
12051         ;;
12052       esac
12053       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12054       lt_prog_compiler_static='${wl}-a ${wl}archive'
12055       ;;
12056
12057     irix5* | irix6* | nonstopux*)
12058       lt_prog_compiler_wl='-Wl,'
12059       # PIC (with -KPIC) is the default.
12060       lt_prog_compiler_static='-non_shared'
12061       ;;
12062
12063     newsos6)
12064       lt_prog_compiler_pic='-KPIC'
12065       lt_prog_compiler_static='-Bstatic'
12066       ;;
12067
12068     linux*)
12069       case $CC in
12070       icc* | ecc*)
12071         lt_prog_compiler_wl='-Wl,'
12072         lt_prog_compiler_pic='-KPIC'
12073         lt_prog_compiler_static='-static'
12074         ;;
12075       ccc*)
12076         lt_prog_compiler_wl='-Wl,'
12077         # All Alpha code is PIC.
12078         lt_prog_compiler_static='-non_shared'
12079         ;;
12080       esac
12081       ;;
12082
12083     osf3* | osf4* | osf5*)
12084       lt_prog_compiler_wl='-Wl,'
12085       # All OSF/1 code is PIC.
12086       lt_prog_compiler_static='-non_shared'
12087       ;;
12088
12089     sco3.2v5*)
12090       lt_prog_compiler_pic='-Kpic'
12091       lt_prog_compiler_static='-dn'
12092       ;;
12093
12094     solaris*)
12095       lt_prog_compiler_wl='-Wl,'
12096       lt_prog_compiler_pic='-KPIC'
12097       lt_prog_compiler_static='-Bstatic'
12098       ;;
12099
12100     sunos4*)
12101       lt_prog_compiler_wl='-Qoption ld '
12102       lt_prog_compiler_pic='-PIC'
12103       lt_prog_compiler_static='-Bstatic'
12104       ;;
12105
12106     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12107       lt_prog_compiler_wl='-Wl,'
12108       lt_prog_compiler_pic='-KPIC'
12109       lt_prog_compiler_static='-Bstatic'
12110       ;;
12111
12112     sysv4*MP*)
12113       if test -d /usr/nec ;then
12114         lt_prog_compiler_pic='-Kconform_pic'
12115         lt_prog_compiler_static='-Bstatic'
12116       fi
12117       ;;
12118
12119     uts4*)
12120       lt_prog_compiler_pic='-pic'
12121       lt_prog_compiler_static='-Bstatic'
12122       ;;
12123
12124     *)
12125       lt_prog_compiler_can_build_shared=no
12126       ;;
12127     esac
12128   fi
12129
12130 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12131 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12132
12133 #
12134 # Check to make sure the PIC flag actually works.
12135 #
12136 if test -n "$lt_prog_compiler_pic"; then
12137
12138 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12139 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12140 if test "${lt_prog_compiler_pic_works+set}" = set; then
12141   echo $ECHO_N "(cached) $ECHO_C" >&6
12142 else
12143   lt_prog_compiler_pic_works=no
12144   ac_outfile=conftest.$ac_objext
12145    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12146    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12147    # Insert the option either (1) after the last *FLAGS variable, or
12148    # (2) before a word containing "conftest.", or (3) at the end.
12149    # Note that $ac_compile itself does not contain backslashes and begins
12150    # with a dollar sign (not a hyphen), so the echo should work correctly.
12151    # The option is referenced via a variable to avoid confusing sed.
12152    lt_compile=`echo "$ac_compile" | $SED \
12153    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12154    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12155    -e 's:$: $lt_compiler_flag:'`
12156    (eval echo "\"\$as_me:12156: $lt_compile\"" >&5)
12157    (eval "$lt_compile" 2>conftest.err)
12158    ac_status=$?
12159    cat conftest.err >&5
12160    echo "$as_me:12160: \$? = $ac_status" >&5
12161    if (exit $ac_status) && test -s "$ac_outfile"; then
12162      # The compiler can only warn and ignore the option if not recognized
12163      # So say no if there are warnings
12164      if test ! -s conftest.err; then
12165        lt_prog_compiler_pic_works=yes
12166      fi
12167    fi
12168    $rm conftest*
12169
12170 fi
12171 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12172 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12173
12174 if test x"$lt_prog_compiler_pic_works" = xyes; then
12175     case $lt_prog_compiler_pic in
12176      "" | " "*) ;;
12177      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12178      esac
12179 else
12180     lt_prog_compiler_pic=
12181      lt_prog_compiler_can_build_shared=no
12182 fi
12183
12184 fi
12185 case "$host_os" in
12186   # For platforms which do not support PIC, -DPIC is meaningless:
12187   *djgpp*)
12188     lt_prog_compiler_pic=
12189     ;;
12190   *)
12191     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12192     ;;
12193 esac
12194
12195 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12196 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12197 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12198   echo $ECHO_N "(cached) $ECHO_C" >&6
12199 else
12200   lt_cv_prog_compiler_c_o=no
12201    $rm -r conftest 2>/dev/null
12202    mkdir conftest
12203    cd conftest
12204    mkdir out
12205    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12206
12207    lt_compiler_flag="-o out/conftest2.$ac_objext"
12208    # Insert the option either (1) after the last *FLAGS variable, or
12209    # (2) before a word containing "conftest.", or (3) at the end.
12210    # Note that $ac_compile itself does not contain backslashes and begins
12211    # with a dollar sign (not a hyphen), so the echo should work correctly.
12212    lt_compile=`echo "$ac_compile" | $SED \
12213    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12214    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12215    -e 's:$: $lt_compiler_flag:'`
12216    (eval echo "\"\$as_me:12216: $lt_compile\"" >&5)
12217    (eval "$lt_compile" 2>out/conftest.err)
12218    ac_status=$?
12219    cat out/conftest.err >&5
12220    echo "$as_me:12220: \$? = $ac_status" >&5
12221    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12222    then
12223      # The compiler can only warn and ignore the option if not recognized
12224      # So say no if there are warnings
12225      if test ! -s out/conftest.err; then
12226        lt_cv_prog_compiler_c_o=yes
12227      fi
12228    fi
12229    chmod u+w .
12230    $rm conftest*
12231    # SGI C++ compiler will create directory out/ii_files/ for
12232    # template instantiation
12233    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12234    $rm out/* && rmdir out
12235    cd ..
12236    rmdir conftest
12237    $rm conftest*
12238
12239 fi
12240 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12241 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12242
12243
12244 hard_links="nottested"
12245 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12246   # do not overwrite the value of need_locks provided by the user
12247   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12248 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12249   hard_links=yes
12250   $rm conftest*
12251   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12252   touch conftest.a
12253   ln conftest.a conftest.b 2>&5 || hard_links=no
12254   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12255   echo "$as_me:$LINENO: result: $hard_links" >&5
12256 echo "${ECHO_T}$hard_links" >&6
12257   if test "$hard_links" = no; then
12258     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12259 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12260     need_locks=warn
12261   fi
12262 else
12263   need_locks=no
12264 fi
12265
12266 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12267 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12268
12269   runpath_var=
12270   allow_undefined_flag=
12271   enable_shared_with_static_runtimes=no
12272   archive_cmds=
12273   archive_expsym_cmds=
12274   old_archive_From_new_cmds=
12275   old_archive_from_expsyms_cmds=
12276   export_dynamic_flag_spec=
12277   whole_archive_flag_spec=
12278   thread_safe_flag_spec=
12279   hardcode_libdir_flag_spec=
12280   hardcode_libdir_flag_spec_ld=
12281   hardcode_libdir_separator=
12282   hardcode_direct=no
12283   hardcode_minus_L=no
12284   hardcode_shlibpath_var=unsupported
12285   link_all_deplibs=unknown
12286   hardcode_automatic=no
12287   module_cmds=
12288   module_expsym_cmds=
12289   always_export_symbols=no
12290   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12291   # include_expsyms should be a list of space-separated symbols to be *always*
12292   # included in the symbol list
12293   include_expsyms=
12294   # exclude_expsyms can be an extended regexp of symbols to exclude
12295   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12296   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12297   # as well as any symbol that contains `d'.
12298   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12299   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12300   # platforms (ab)use it in PIC code, but their linkers get confused if
12301   # the symbol is explicitly referenced.  Since portable code cannot
12302   # rely on this symbol name, it's probably fine to never include it in
12303   # preloaded symbol tables.
12304   extract_expsyms_cmds=
12305
12306   case $host_os in
12307   cygwin* | mingw* | pw32*)
12308     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12309     # When not using gcc, we currently assume that we are using
12310     # Microsoft Visual C++.
12311     if test "$GCC" != yes; then
12312       with_gnu_ld=no
12313     fi
12314     ;;
12315   openbsd*)
12316     with_gnu_ld=no
12317     ;;
12318   esac
12319
12320   ld_shlibs=yes
12321   if test "$with_gnu_ld" = yes; then
12322     # If archive_cmds runs LD, not CC, wlarc should be empty
12323     wlarc='${wl}'
12324
12325     # See if GNU ld supports shared libraries.
12326     case $host_os in
12327     aix3* | aix4* | aix5*)
12328       # On AIX/PPC, the GNU linker is very broken
12329       if test "$host_cpu" != ia64; then
12330         ld_shlibs=no
12331         cat <<EOF 1>&2
12332
12333 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12334 *** to be unable to reliably create shared libraries on AIX.
12335 *** Therefore, libtool is disabling shared libraries support.  If you
12336 *** really care for shared libraries, you may want to modify your PATH
12337 *** so that a non-GNU linker is found, and then restart.
12338
12339 EOF
12340       fi
12341       ;;
12342
12343     amigaos*)
12344       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)'
12345       hardcode_libdir_flag_spec='-L$libdir'
12346       hardcode_minus_L=yes
12347
12348       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12349       # that the semantics of dynamic libraries on AmigaOS, at least up
12350       # to version 4, is to share data among multiple programs linked
12351       # with the same dynamic library.  Since this doesn't match the
12352       # behavior of shared libraries on other platforms, we can't use
12353       # them.
12354       ld_shlibs=no
12355       ;;
12356
12357     beos*)
12358       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12359         allow_undefined_flag=unsupported
12360         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12361         # support --undefined.  This deserves some investigation.  FIXME
12362         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12363       else
12364         ld_shlibs=no
12365       fi
12366       ;;
12367
12368     cygwin* | mingw* | pw32*)
12369       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12370       # as there is no search path for DLLs.
12371       hardcode_libdir_flag_spec='-L$libdir'
12372       allow_undefined_flag=unsupported
12373       always_export_symbols=no
12374       enable_shared_with_static_runtimes=yes
12375       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12376
12377       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12378         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12379         # If the export-symbols file already is a .def file (1st line
12380         # is EXPORTS), use it as is; otherwise, prepend...
12381         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12382           cp $export_symbols $output_objdir/$soname.def;
12383         else
12384           echo EXPORTS > $output_objdir/$soname.def;
12385           cat $export_symbols >> $output_objdir/$soname.def;
12386         fi~
12387         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12388       else
12389         ld_shlibs=no
12390       fi
12391       ;;
12392
12393     netbsd*)
12394       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12395         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12396         wlarc=
12397       else
12398         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12399         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12400       fi
12401       ;;
12402
12403     solaris* | sysv5*)
12404       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12405         ld_shlibs=no
12406         cat <<EOF 1>&2
12407
12408 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12409 *** create shared libraries on Solaris systems.  Therefore, libtool
12410 *** is disabling shared libraries support.  We urge you to upgrade GNU
12411 *** binutils to release 2.9.1 or newer.  Another option is to modify
12412 *** your PATH or compiler configuration so that the native linker is
12413 *** used, and then restart.
12414
12415 EOF
12416       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12417         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12418         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12419       else
12420         ld_shlibs=no
12421       fi
12422       ;;
12423
12424     sunos4*)
12425       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12426       wlarc=
12427       hardcode_direct=yes
12428       hardcode_shlibpath_var=no
12429       ;;
12430
12431   linux*)
12432     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12433         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12434         archive_cmds="$tmp_archive_cmds"
12435       supports_anon_versioning=no
12436       case `$LD -v 2>/dev/null` in
12437         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12438         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12439         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12440         *\ 2.11.*) ;; # other 2.11 versions
12441         *) supports_anon_versioning=yes ;;
12442       esac
12443       if test $supports_anon_versioning = yes; then
12444         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12445 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12446 $echo "local: *; };" >> $output_objdir/$libname.ver~
12447         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12448       else
12449         archive_expsym_cmds="$tmp_archive_cmds"
12450       fi
12451     else
12452       ld_shlibs=no
12453     fi
12454     ;;
12455
12456     *)
12457       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12458         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12459         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12460       else
12461         ld_shlibs=no
12462       fi
12463       ;;
12464     esac
12465
12466     if test "$ld_shlibs" = yes; then
12467       runpath_var=LD_RUN_PATH
12468       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12469       export_dynamic_flag_spec='${wl}--export-dynamic'
12470       # ancient GNU ld didn't support --whole-archive et. al.
12471       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12472         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12473       else
12474         whole_archive_flag_spec=
12475       fi
12476     fi
12477   else
12478     # PORTME fill in a description of your system's linker (not GNU ld)
12479     case $host_os in
12480     aix3*)
12481       allow_undefined_flag=unsupported
12482       always_export_symbols=yes
12483       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'
12484       # Note: this linker hardcodes the directories in LIBPATH if there
12485       # are no directories specified by -L.
12486       hardcode_minus_L=yes
12487       if test "$GCC" = yes && test -z "$link_static_flag"; then
12488         # Neither direct hardcoding nor static linking is supported with a
12489         # broken collect2.
12490         hardcode_direct=unsupported
12491       fi
12492       ;;
12493
12494     aix4* | aix5*)
12495       if test "$host_cpu" = ia64; then
12496         # On IA64, the linker does run time linking by default, so we don't
12497         # have to do anything special.
12498         aix_use_runtimelinking=no
12499         exp_sym_flag='-Bexport'
12500         no_entry_flag=""
12501       else
12502         # If we're using GNU nm, then we don't want the "-C" option.
12503         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12504         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12505           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'
12506         else
12507           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'
12508         fi
12509         aix_use_runtimelinking=no
12510
12511         # Test if we are trying to use run time linking or normal
12512         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12513         # need to do runtime linking.
12514         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12515           for ld_flag in $LDFLAGS; do
12516           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12517             aix_use_runtimelinking=yes
12518             break
12519           fi
12520           done
12521         esac
12522
12523         exp_sym_flag='-bexport'
12524         no_entry_flag='-bnoentry'
12525       fi
12526
12527       # When large executables or shared objects are built, AIX ld can
12528       # have problems creating the table of contents.  If linking a library
12529       # or program results in "error TOC overflow" add -mminimal-toc to
12530       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12531       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12532
12533       archive_cmds=''
12534       hardcode_direct=yes
12535       hardcode_libdir_separator=':'
12536       link_all_deplibs=yes
12537
12538       if test "$GCC" = yes; then
12539         case $host_os in aix4.012|aix4.012.*)
12540         # We only want to do this on AIX 4.2 and lower, the check
12541         # below for broken collect2 doesn't work under 4.3+
12542           collect2name=`${CC} -print-prog-name=collect2`
12543           if test -f "$collect2name" && \
12544            strings "$collect2name" | grep resolve_lib_name >/dev/null
12545           then
12546           # We have reworked collect2
12547           hardcode_direct=yes
12548           else
12549           # We have old collect2
12550           hardcode_direct=unsupported
12551           # It fails to find uninstalled libraries when the uninstalled
12552           # path is not listed in the libpath.  Setting hardcode_minus_L
12553           # to unsupported forces relinking
12554           hardcode_minus_L=yes
12555           hardcode_libdir_flag_spec='-L$libdir'
12556           hardcode_libdir_separator=
12557           fi
12558         esac
12559         shared_flag='-shared'
12560       else
12561         # not using gcc
12562         if test "$host_cpu" = ia64; then
12563         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12564         # chokes on -Wl,-G. The following line is correct:
12565           shared_flag='-G'
12566         else
12567         if test "$aix_use_runtimelinking" = yes; then
12568             shared_flag='${wl}-G'
12569           else
12570             shared_flag='${wl}-bM:SRE'
12571         fi
12572         fi
12573       fi
12574
12575       # It seems that -bexpall does not export symbols beginning with
12576       # underscore (_), so it is better to generate a list of symbols to export.
12577       always_export_symbols=yes
12578       if test "$aix_use_runtimelinking" = yes; then
12579         # Warning - without using the other runtime loading flags (-brtl),
12580         # -berok will link without error, but may produce a broken library.
12581         allow_undefined_flag='-berok'
12582        # Determine the default libpath from the value encoded in an empty executable.
12583        cat >conftest.$ac_ext <<_ACEOF
12584 /* confdefs.h.  */
12585 _ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h.  */
12589
12590 int
12591 main ()
12592 {
12593
12594   ;
12595   return 0;
12596 }
12597 _ACEOF
12598 rm -f conftest.$ac_objext conftest$ac_exeext
12599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12600   (eval $ac_link) 2>conftest.er1
12601   ac_status=$?
12602   grep -v '^ *+' conftest.er1 >conftest.err
12603   rm -f conftest.er1
12604   cat conftest.err >&5
12605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606   (exit $ac_status); } &&
12607          { ac_try='test -z "$ac_c_werror_flag"
12608                          || test ! -s conftest.err'
12609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610   (eval $ac_try) 2>&5
12611   ac_status=$?
12612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613   (exit $ac_status); }; } &&
12614          { ac_try='test -s conftest$ac_exeext'
12615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616   (eval $ac_try) 2>&5
12617   ac_status=$?
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); }; }; then
12620
12621 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12622 }'`
12623 # Check for a 64-bit object if we didn't find anything.
12624 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; }
12625 }'`; fi
12626 else
12627   echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12629
12630 fi
12631 rm -f conftest.err conftest.$ac_objext \
12632       conftest$ac_exeext conftest.$ac_ext
12633 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12634
12635        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12636         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"
12637        else
12638         if test "$host_cpu" = ia64; then
12639           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12640           allow_undefined_flag="-z nodefs"
12641           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"
12642         else
12643          # Determine the default libpath from the value encoded in an empty executable.
12644          cat >conftest.$ac_ext <<_ACEOF
12645 /* confdefs.h.  */
12646 _ACEOF
12647 cat confdefs.h >>conftest.$ac_ext
12648 cat >>conftest.$ac_ext <<_ACEOF
12649 /* end confdefs.h.  */
12650
12651 int
12652 main ()
12653 {
12654
12655   ;
12656   return 0;
12657 }
12658 _ACEOF
12659 rm -f conftest.$ac_objext conftest$ac_exeext
12660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12661   (eval $ac_link) 2>conftest.er1
12662   ac_status=$?
12663   grep -v '^ *+' conftest.er1 >conftest.err
12664   rm -f conftest.er1
12665   cat conftest.err >&5
12666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667   (exit $ac_status); } &&
12668          { ac_try='test -z "$ac_c_werror_flag"
12669                          || test ! -s conftest.err'
12670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671   (eval $ac_try) 2>&5
12672   ac_status=$?
12673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674   (exit $ac_status); }; } &&
12675          { ac_try='test -s conftest$ac_exeext'
12676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677   (eval $ac_try) 2>&5
12678   ac_status=$?
12679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680   (exit $ac_status); }; }; then
12681
12682 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12683 }'`
12684 # Check for a 64-bit object if we didn't find anything.
12685 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; }
12686 }'`; fi
12687 else
12688   echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12690
12691 fi
12692 rm -f conftest.err conftest.$ac_objext \
12693       conftest$ac_exeext conftest.$ac_ext
12694 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12695
12696          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12697           # Warning - without using the other run time loading flags,
12698           # -berok will link without error, but may produce a broken library.
12699           no_undefined_flag=' ${wl}-bernotok'
12700           allow_undefined_flag=' ${wl}-berok'
12701           # -bexpall does not export symbols beginning with underscore (_)
12702           always_export_symbols=yes
12703           # Exported symbols can be pulled into shared objects from archives
12704           whole_archive_flag_spec=' '
12705           archive_cmds_need_lc=yes
12706           # This is similar to how AIX traditionally builds it's shared libraries.
12707           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'
12708         fi
12709       fi
12710       ;;
12711
12712     amigaos*)
12713       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)'
12714       hardcode_libdir_flag_spec='-L$libdir'
12715       hardcode_minus_L=yes
12716       # see comment about different semantics on the GNU ld section
12717       ld_shlibs=no
12718       ;;
12719
12720     bsdi[45]*)
12721       export_dynamic_flag_spec=-rdynamic
12722       ;;
12723
12724     cygwin* | mingw* | pw32*)
12725       # When not using gcc, we currently assume that we are using
12726       # Microsoft Visual C++.
12727       # hardcode_libdir_flag_spec is actually meaningless, as there is
12728       # no search path for DLLs.
12729       hardcode_libdir_flag_spec=' '
12730       allow_undefined_flag=unsupported
12731       # Tell ltmain to make .lib files, not .a files.
12732       libext=lib
12733       # Tell ltmain to make .dll files, not .so files.
12734       shrext_cmds=".dll"
12735       # FIXME: Setting linknames here is a bad hack.
12736       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12737       # The linker will automatically build a .lib file if we build a DLL.
12738       old_archive_From_new_cmds='true'
12739       # FIXME: Should let the user specify the lib program.
12740       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12741       fix_srcfile_path='`cygpath -w "$srcfile"`'
12742       enable_shared_with_static_runtimes=yes
12743       ;;
12744
12745     darwin* | rhapsody*)
12746       case "$host_os" in
12747         rhapsody* | darwin1.[012])
12748          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12749          ;;
12750        *) # Darwin 1.3 on
12751          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12752            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12753          else
12754            case ${MACOSX_DEPLOYMENT_TARGET} in
12755              10.[012])
12756                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12757                ;;
12758              10.*)
12759                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12760                ;;
12761            esac
12762          fi
12763          ;;
12764       esac
12765       archive_cmds_need_lc=no
12766       hardcode_direct=no
12767       hardcode_automatic=yes
12768       hardcode_shlibpath_var=unsupported
12769       whole_archive_flag_spec=''
12770       link_all_deplibs=yes
12771     if test "$GCC" = yes ; then
12772         output_verbose_link_cmd='echo'
12773         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12774       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12775       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12776       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}'
12777       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}'
12778     else
12779       case "$cc_basename" in
12780         xlc*)
12781          output_verbose_link_cmd='echo'
12782          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12783          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12784           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12785          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}'
12786           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}'
12787           ;;
12788        *)
12789          ld_shlibs=no
12790           ;;
12791       esac
12792     fi
12793       ;;
12794
12795     dgux*)
12796       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12797       hardcode_libdir_flag_spec='-L$libdir'
12798       hardcode_shlibpath_var=no
12799       ;;
12800
12801     freebsd1*)
12802       ld_shlibs=no
12803       ;;
12804
12805     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12806     # support.  Future versions do this automatically, but an explicit c++rt0.o
12807     # does not break anything, and helps significantly (at the cost of a little
12808     # extra space).
12809     freebsd2.2*)
12810       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12811       hardcode_libdir_flag_spec='-R$libdir'
12812       hardcode_direct=yes
12813       hardcode_shlibpath_var=no
12814       ;;
12815
12816     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12817     freebsd2*)
12818       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12819       hardcode_direct=yes
12820       hardcode_minus_L=yes
12821       hardcode_shlibpath_var=no
12822       ;;
12823
12824     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12825     freebsd* | kfreebsd*-gnu)
12826       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12827       hardcode_libdir_flag_spec='-R$libdir'
12828       hardcode_direct=yes
12829       hardcode_shlibpath_var=no
12830       ;;
12831
12832     hpux9*)
12833       if test "$GCC" = yes; then
12834         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'
12835       else
12836         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'
12837       fi
12838       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12839       hardcode_libdir_separator=:
12840       hardcode_direct=yes
12841
12842       # hardcode_minus_L: Not really in the search PATH,
12843       # but as the default location of the library.
12844       hardcode_minus_L=yes
12845       export_dynamic_flag_spec='${wl}-E'
12846       ;;
12847
12848     hpux10* | hpux11*)
12849       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12850         case "$host_cpu" in
12851         hppa*64*|ia64*)
12852           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12853           ;;
12854         *)
12855           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12856           ;;
12857         esac
12858       else
12859         case "$host_cpu" in
12860         hppa*64*|ia64*)
12861           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12862           ;;
12863         *)
12864           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12865           ;;
12866         esac
12867       fi
12868       if test "$with_gnu_ld" = no; then
12869         case "$host_cpu" in
12870         hppa*64*)
12871           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12872           hardcode_libdir_flag_spec_ld='+b $libdir'
12873           hardcode_libdir_separator=:
12874           hardcode_direct=no
12875           hardcode_shlibpath_var=no
12876           ;;
12877         ia64*)
12878           hardcode_libdir_flag_spec='-L$libdir'
12879           hardcode_direct=no
12880           hardcode_shlibpath_var=no
12881
12882           # hardcode_minus_L: Not really in the search PATH,
12883           # but as the default location of the library.
12884           hardcode_minus_L=yes
12885           ;;
12886         *)
12887           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12888           hardcode_libdir_separator=:
12889           hardcode_direct=yes
12890           export_dynamic_flag_spec='${wl}-E'
12891
12892           # hardcode_minus_L: Not really in the search PATH,
12893           # but as the default location of the library.
12894           hardcode_minus_L=yes
12895           ;;
12896         esac
12897       fi
12898       ;;
12899
12900     irix5* | irix6* | nonstopux*)
12901       if test "$GCC" = yes; then
12902         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'
12903       else
12904         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'
12905         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12906       fi
12907       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12908       hardcode_libdir_separator=:
12909       link_all_deplibs=yes
12910       ;;
12911
12912     netbsd*)
12913       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12914         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12915       else
12916         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12917       fi
12918       hardcode_libdir_flag_spec='-R$libdir'
12919       hardcode_direct=yes
12920       hardcode_shlibpath_var=no
12921       ;;
12922
12923     newsos6)
12924       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12925       hardcode_direct=yes
12926       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12927       hardcode_libdir_separator=:
12928       hardcode_shlibpath_var=no
12929       ;;
12930
12931     openbsd*)
12932       hardcode_direct=yes
12933       hardcode_shlibpath_var=no
12934       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12935         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12936         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12937         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12938         export_dynamic_flag_spec='${wl}-E'
12939       else
12940        case $host_os in
12941          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12942            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12943            hardcode_libdir_flag_spec='-R$libdir'
12944            ;;
12945          *)
12946            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12947            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12948            ;;
12949        esac
12950       fi
12951       ;;
12952
12953     os2*)
12954       hardcode_libdir_flag_spec='-L$libdir'
12955       hardcode_minus_L=yes
12956       allow_undefined_flag=unsupported
12957       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'
12958       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12959       ;;
12960
12961     osf3*)
12962       if test "$GCC" = yes; then
12963         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12964         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'
12965       else
12966         allow_undefined_flag=' -expect_unresolved \*'
12967         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'
12968       fi
12969       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12970       hardcode_libdir_separator=:
12971       ;;
12972
12973     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12974       if test "$GCC" = yes; then
12975         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12976         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'
12977         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12978       else
12979         allow_undefined_flag=' -expect_unresolved \*'
12980         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'
12981         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12982         $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'
12983
12984         # Both c and cxx compiler support -rpath directly
12985         hardcode_libdir_flag_spec='-rpath $libdir'
12986       fi
12987       hardcode_libdir_separator=:
12988       ;;
12989
12990     sco3.2v5*)
12991       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12992       hardcode_shlibpath_var=no
12993       export_dynamic_flag_spec='${wl}-Bexport'
12994       runpath_var=LD_RUN_PATH
12995       hardcode_runpath_var=yes
12996       ;;
12997
12998     solaris*)
12999       no_undefined_flag=' -z text'
13000       if test "$GCC" = yes; then
13001         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13002         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13003           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13004       else
13005         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13006         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13007         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13008       fi
13009       hardcode_libdir_flag_spec='-R$libdir'
13010       hardcode_shlibpath_var=no
13011       case $host_os in
13012       solaris2.[0-5] | solaris2.[0-5].*) ;;
13013       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13014         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13015       esac
13016       link_all_deplibs=yes
13017       ;;
13018
13019     sunos4*)
13020       if test "x$host_vendor" = xsequent; then
13021         # Use $CC to link under sequent, because it throws in some extra .o
13022         # files that make .init and .fini sections work.
13023         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13024       else
13025         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13026       fi
13027       hardcode_libdir_flag_spec='-L$libdir'
13028       hardcode_direct=yes
13029       hardcode_minus_L=yes
13030       hardcode_shlibpath_var=no
13031       ;;
13032
13033     sysv4)
13034       case $host_vendor in
13035         sni)
13036           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13037           hardcode_direct=yes # is this really true???
13038         ;;
13039         siemens)
13040           ## LD is ld it makes a PLAMLIB
13041           ## CC just makes a GrossModule.
13042           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13043           reload_cmds='$CC -r -o $output$reload_objs'
13044           hardcode_direct=no
13045         ;;
13046         motorola)
13047           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13048           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13049         ;;
13050       esac
13051       runpath_var='LD_RUN_PATH'
13052       hardcode_shlibpath_var=no
13053       ;;
13054
13055     sysv4.3*)
13056       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13057       hardcode_shlibpath_var=no
13058       export_dynamic_flag_spec='-Bexport'
13059       ;;
13060
13061     sysv4*MP*)
13062       if test -d /usr/nec; then
13063         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13064         hardcode_shlibpath_var=no
13065         runpath_var=LD_RUN_PATH
13066         hardcode_runpath_var=yes
13067         ld_shlibs=yes
13068       fi
13069       ;;
13070
13071     sysv4.2uw2*)
13072       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13073       hardcode_direct=yes
13074       hardcode_minus_L=no
13075       hardcode_shlibpath_var=no
13076       hardcode_runpath_var=yes
13077       runpath_var=LD_RUN_PATH
13078       ;;
13079
13080    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13081       no_undefined_flag='${wl}-z ${wl}text'
13082       if test "$GCC" = yes; then
13083         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13084       else
13085         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13086       fi
13087       runpath_var='LD_RUN_PATH'
13088       hardcode_shlibpath_var=no
13089       ;;
13090
13091     sysv5*)
13092       no_undefined_flag=' -z text'
13093       # $CC -shared without GNU ld will not create a library from C++
13094       # object files and a static libstdc++, better avoid it by now
13095       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13096       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13097                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13098       hardcode_libdir_flag_spec=
13099       hardcode_shlibpath_var=no
13100       runpath_var='LD_RUN_PATH'
13101       ;;
13102
13103     uts4*)
13104       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13105       hardcode_libdir_flag_spec='-L$libdir'
13106       hardcode_shlibpath_var=no
13107       ;;
13108
13109     *)
13110       ld_shlibs=no
13111       ;;
13112     esac
13113   fi
13114
13115 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13116 echo "${ECHO_T}$ld_shlibs" >&6
13117 test "$ld_shlibs" = no && can_build_shared=no
13118
13119 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13120 if test "$GCC" = yes; then
13121   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13122 fi
13123
13124 #
13125 # Do we need to explicitly link libc?
13126 #
13127 case "x$archive_cmds_need_lc" in
13128 x|xyes)
13129   # Assume -lc should be added
13130   archive_cmds_need_lc=yes
13131
13132   if test "$enable_shared" = yes && test "$GCC" = yes; then
13133     case $archive_cmds in
13134     *'~'*)
13135       # FIXME: we may have to deal with multi-command sequences.
13136       ;;
13137     '$CC '*)
13138       # Test whether the compiler implicitly links with -lc since on some
13139       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13140       # to ld, don't add -lc before -lgcc.
13141       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13142 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13143       $rm conftest*
13144       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13145
13146       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13147   (eval $ac_compile) 2>&5
13148   ac_status=$?
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); } 2>conftest.err; then
13151         soname=conftest
13152         lib=conftest
13153         libobjs=conftest.$ac_objext
13154         deplibs=
13155         wl=$lt_prog_compiler_wl
13156         compiler_flags=-v
13157         linker_flags=-v
13158         verstring=
13159         output_objdir=.
13160         libname=conftest
13161         lt_save_allow_undefined_flag=$allow_undefined_flag
13162         allow_undefined_flag=
13163         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13164   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13165   ac_status=$?
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); }
13168         then
13169           archive_cmds_need_lc=no
13170         else
13171           archive_cmds_need_lc=yes
13172         fi
13173         allow_undefined_flag=$lt_save_allow_undefined_flag
13174       else
13175         cat conftest.err 1>&5
13176       fi
13177       $rm conftest*
13178       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13179 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13180       ;;
13181     esac
13182   fi
13183   ;;
13184 esac
13185
13186 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13187 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13188 library_names_spec=
13189 libname_spec='lib$name'
13190 soname_spec=
13191 shrext_cmds=".so"
13192 postinstall_cmds=
13193 postuninstall_cmds=
13194 finish_cmds=
13195 finish_eval=
13196 shlibpath_var=
13197 shlibpath_overrides_runpath=unknown
13198 version_type=none
13199 dynamic_linker="$host_os ld.so"
13200 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13201 if test "$GCC" = yes; then
13202   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13203   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13204     # if the path contains ";" then we assume it to be the separator
13205     # otherwise default to the standard path separator (i.e. ":") - it is
13206     # assumed that no part of a normal pathname contains ";" but that should
13207     # okay in the real world where ";" in dirpaths is itself problematic.
13208     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13209   else
13210     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13211   fi
13212 else
13213   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13214 fi
13215 need_lib_prefix=unknown
13216 hardcode_into_libs=no
13217
13218 # when you set need_version to no, make sure it does not cause -set_version
13219 # flags to be left without arguments
13220 need_version=unknown
13221
13222 case $host_os in
13223 aix3*)
13224   version_type=linux
13225   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13226   shlibpath_var=LIBPATH
13227
13228   # AIX 3 has no versioning support, so we append a major version to the name.
13229   soname_spec='${libname}${release}${shared_ext}$major'
13230   ;;
13231
13232 aix4* | aix5*)
13233   version_type=linux
13234   need_lib_prefix=no
13235   need_version=no
13236   hardcode_into_libs=yes
13237   if test "$host_cpu" = ia64; then
13238     # AIX 5 supports IA64
13239     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13240     shlibpath_var=LD_LIBRARY_PATH
13241   else
13242     # With GCC up to 2.95.x, collect2 would create an import file
13243     # for dependence libraries.  The import file would start with
13244     # the line `#! .'.  This would cause the generated library to
13245     # depend on `.', always an invalid library.  This was fixed in
13246     # development snapshots of GCC prior to 3.0.
13247     case $host_os in
13248       aix4 | aix4.[01] | aix4.[01].*)
13249       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13250            echo ' yes '
13251            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13252         :
13253       else
13254         can_build_shared=no
13255       fi
13256       ;;
13257     esac
13258     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13259     # soname into executable. Probably we can add versioning support to
13260     # collect2, so additional links can be useful in future.
13261     if test "$aix_use_runtimelinking" = yes; then
13262       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13263       # instead of lib<name>.a to let people know that these are not
13264       # typical AIX shared libraries.
13265       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13266     else
13267       # We preserve .a as extension for shared libraries through AIX4.2
13268       # and later when we are not doing run time linking.
13269       library_names_spec='${libname}${release}.a $libname.a'
13270       soname_spec='${libname}${release}${shared_ext}$major'
13271     fi
13272     shlibpath_var=LIBPATH
13273   fi
13274   ;;
13275
13276 amigaos*)
13277   library_names_spec='$libname.ixlibrary $libname.a'
13278   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13279   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'
13280   ;;
13281
13282 beos*)
13283   library_names_spec='${libname}${shared_ext}'
13284   dynamic_linker="$host_os ld.so"
13285   shlibpath_var=LIBRARY_PATH
13286   ;;
13287
13288 bsdi[45]*)
13289   version_type=linux
13290   need_version=no
13291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13292   soname_spec='${libname}${release}${shared_ext}$major'
13293   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13294   shlibpath_var=LD_LIBRARY_PATH
13295   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13296   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13297   # the default ld.so.conf also contains /usr/contrib/lib and
13298   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13299   # libtool to hard-code these into programs
13300   ;;
13301
13302 cygwin* | mingw* | pw32*)
13303   version_type=windows
13304   shrext_cmds=".dll"
13305   need_version=no
13306   need_lib_prefix=no
13307
13308   case $GCC,$host_os in
13309   yes,cygwin* | yes,mingw* | yes,pw32*)
13310     library_names_spec='$libname.dll.a'
13311     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13312     postinstall_cmds='base_file=`basename \${file}`~
13313       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13314       dldir=$destdir/`dirname \$dlpath`~
13315       test -d \$dldir || mkdir -p \$dldir~
13316       $install_prog $dir/$dlname \$dldir/$dlname'
13317     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13318       dlpath=$dir/\$dldll~
13319        $rm \$dlpath'
13320     shlibpath_overrides_runpath=yes
13321
13322     case $host_os in
13323     cygwin*)
13324       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13325       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13326       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13327       ;;
13328     mingw*)
13329       # MinGW DLLs use traditional 'lib' prefix
13330       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13331       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13332       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13333         # It is most probably a Windows format PATH printed by
13334         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13335         # path with ; separators, and with drive letters. We can handle the
13336         # drive letters (cygwin fileutils understands them), so leave them,
13337         # especially as we might pass files found there to a mingw objdump,
13338         # which wouldn't understand a cygwinified path. Ahh.
13339         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13340       else
13341         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13342       fi
13343       ;;
13344     pw32*)
13345       # pw32 DLLs use 'pw' prefix rather than 'lib'
13346       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13347       ;;
13348     esac
13349     ;;
13350
13351   *)
13352     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13353     ;;
13354   esac
13355   dynamic_linker='Win32 ld.exe'
13356   # FIXME: first we should search . and the directory the executable is in
13357   shlibpath_var=PATH
13358   ;;
13359
13360 darwin* | rhapsody*)
13361   dynamic_linker="$host_os dyld"
13362   version_type=darwin
13363   need_lib_prefix=no
13364   need_version=no
13365   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13366   soname_spec='${libname}${release}${major}$shared_ext'
13367   shlibpath_overrides_runpath=yes
13368   shlibpath_var=DYLD_LIBRARY_PATH
13369   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13370   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13371   if test "$GCC" = yes; then
13372     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"`
13373   else
13374     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13375   fi
13376   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13377   ;;
13378
13379 dgux*)
13380   version_type=linux
13381   need_lib_prefix=no
13382   need_version=no
13383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13384   soname_spec='${libname}${release}${shared_ext}$major'
13385   shlibpath_var=LD_LIBRARY_PATH
13386   ;;
13387
13388 freebsd1*)
13389   dynamic_linker=no
13390   ;;
13391
13392 kfreebsd*-gnu)
13393   version_type=linux
13394   need_lib_prefix=no
13395   need_version=no
13396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13397   soname_spec='${libname}${release}${shared_ext}$major'
13398   shlibpath_var=LD_LIBRARY_PATH
13399   shlibpath_overrides_runpath=no
13400   hardcode_into_libs=yes
13401   dynamic_linker='GNU ld.so'
13402   ;;
13403
13404 freebsd*)
13405   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13406   version_type=freebsd-$objformat
13407   case $version_type in
13408     freebsd-elf*)
13409       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13410       need_version=no
13411       need_lib_prefix=no
13412       ;;
13413     freebsd-*)
13414       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13415       need_version=yes
13416       ;;
13417   esac
13418   shlibpath_var=LD_LIBRARY_PATH
13419   case $host_os in
13420   freebsd2*)
13421     shlibpath_overrides_runpath=yes
13422     ;;
13423   freebsd3.01* | freebsdelf3.01*)
13424     shlibpath_overrides_runpath=yes
13425     hardcode_into_libs=yes
13426     ;;
13427   *) # from 3.2 on
13428     shlibpath_overrides_runpath=no
13429     hardcode_into_libs=yes
13430     ;;
13431   esac
13432   ;;
13433
13434 gnu*)
13435   version_type=linux
13436   need_lib_prefix=no
13437   need_version=no
13438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13439   soname_spec='${libname}${release}${shared_ext}$major'
13440   shlibpath_var=LD_LIBRARY_PATH
13441   hardcode_into_libs=yes
13442   ;;
13443
13444 hpux9* | hpux10* | hpux11*)
13445   # Give a soname corresponding to the major version so that dld.sl refuses to
13446   # link against other versions.
13447   version_type=sunos
13448   need_lib_prefix=no
13449   need_version=no
13450   case "$host_cpu" in
13451   ia64*)
13452     shrext_cmds='.so'
13453     hardcode_into_libs=yes
13454     dynamic_linker="$host_os dld.so"
13455     shlibpath_var=LD_LIBRARY_PATH
13456     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13457     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13458     soname_spec='${libname}${release}${shared_ext}$major'
13459     if test "X$HPUX_IA64_MODE" = X32; then
13460       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13461     else
13462       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13463     fi
13464     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13465     ;;
13466    hppa*64*)
13467      shrext_cmds='.sl'
13468      hardcode_into_libs=yes
13469      dynamic_linker="$host_os dld.sl"
13470      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13471      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13472      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13473      soname_spec='${libname}${release}${shared_ext}$major'
13474      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13475      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13476      ;;
13477    *)
13478     shrext_cmds='.sl'
13479     dynamic_linker="$host_os dld.sl"
13480     shlibpath_var=SHLIB_PATH
13481     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13482     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13483     soname_spec='${libname}${release}${shared_ext}$major'
13484     ;;
13485   esac
13486   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13487   postinstall_cmds='chmod 555 $lib'
13488   ;;
13489
13490 irix5* | irix6* | nonstopux*)
13491   case $host_os in
13492     nonstopux*) version_type=nonstopux ;;
13493     *)
13494         if test "$lt_cv_prog_gnu_ld" = yes; then
13495                 version_type=linux
13496         else
13497                 version_type=irix
13498         fi ;;
13499   esac
13500   need_lib_prefix=no
13501   need_version=no
13502   soname_spec='${libname}${release}${shared_ext}$major'
13503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13504   case $host_os in
13505   irix5* | nonstopux*)
13506     libsuff= shlibsuff=
13507     ;;
13508   *)
13509     case $LD in # libtool.m4 will add one of these switches to LD
13510     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13511       libsuff= shlibsuff= libmagic=32-bit;;
13512     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13513       libsuff=32 shlibsuff=N32 libmagic=N32;;
13514     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13515       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13516     *) libsuff= shlibsuff= libmagic=never-match;;
13517     esac
13518     ;;
13519   esac
13520   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13521   shlibpath_overrides_runpath=no
13522   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13523   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13524   hardcode_into_libs=yes
13525   ;;
13526
13527 # No shared lib support for Linux oldld, aout, or coff.
13528 linux*oldld* | linux*aout* | linux*coff*)
13529   dynamic_linker=no
13530   ;;
13531
13532 # This must be Linux ELF.
13533 linux*)
13534   version_type=linux
13535   need_lib_prefix=no
13536   need_version=no
13537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13538   soname_spec='${libname}${release}${shared_ext}$major'
13539   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13540   shlibpath_var=LD_LIBRARY_PATH
13541   shlibpath_overrides_runpath=no
13542   # This implies no fast_install, which is unacceptable.
13543   # Some rework will be needed to allow for fast_install
13544   # before this can be enabled.
13545   hardcode_into_libs=yes
13546
13547   # Append ld.so.conf contents to the search path
13548   if test -f /etc/ld.so.conf; then
13549     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13550     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13551   fi
13552
13553   # We used to test for /lib/ld.so.1 and disable shared libraries on
13554   # powerpc, because MkLinux only supported shared libraries with the
13555   # GNU dynamic linker.  Since this was broken with cross compilers,
13556   # most powerpc-linux boxes support dynamic linking these days and
13557   # people can always --disable-shared, the test was removed, and we
13558   # assume the GNU/Linux dynamic linker is in use.
13559   dynamic_linker='GNU/Linux ld.so'
13560   ;;
13561
13562 knetbsd*-gnu)
13563   version_type=linux
13564   need_lib_prefix=no
13565   need_version=no
13566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13567   soname_spec='${libname}${release}${shared_ext}$major'
13568   shlibpath_var=LD_LIBRARY_PATH
13569   shlibpath_overrides_runpath=no
13570   hardcode_into_libs=yes
13571   dynamic_linker='GNU ld.so'
13572   ;;
13573
13574 netbsd*)
13575   version_type=sunos
13576   need_lib_prefix=no
13577   need_version=no
13578   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13579     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13580     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13581     dynamic_linker='NetBSD (a.out) ld.so'
13582   else
13583     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13584     soname_spec='${libname}${release}${shared_ext}$major'
13585     dynamic_linker='NetBSD ld.elf_so'
13586   fi
13587   shlibpath_var=LD_LIBRARY_PATH
13588   shlibpath_overrides_runpath=yes
13589   hardcode_into_libs=yes
13590   ;;
13591
13592 newsos6)
13593   version_type=linux
13594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13595   shlibpath_var=LD_LIBRARY_PATH
13596   shlibpath_overrides_runpath=yes
13597   ;;
13598
13599 nto-qnx*)
13600   version_type=linux
13601   need_lib_prefix=no
13602   need_version=no
13603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13604   soname_spec='${libname}${release}${shared_ext}$major'
13605   shlibpath_var=LD_LIBRARY_PATH
13606   shlibpath_overrides_runpath=yes
13607   ;;
13608
13609 openbsd*)
13610   version_type=sunos
13611   need_lib_prefix=no
13612   need_version=no
13613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13614   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13615   shlibpath_var=LD_LIBRARY_PATH
13616   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13617     case $host_os in
13618       openbsd2.[89] | openbsd2.[89].*)
13619         shlibpath_overrides_runpath=no
13620         ;;
13621       *)
13622         shlibpath_overrides_runpath=yes
13623         ;;
13624       esac
13625   else
13626     shlibpath_overrides_runpath=yes
13627   fi
13628   ;;
13629
13630 os2*)
13631   libname_spec='$name'
13632   shrext_cmds=".dll"
13633   need_lib_prefix=no
13634   library_names_spec='$libname${shared_ext} $libname.a'
13635   dynamic_linker='OS/2 ld.exe'
13636   shlibpath_var=LIBPATH
13637   ;;
13638
13639 osf3* | osf4* | osf5*)
13640   version_type=osf
13641   need_lib_prefix=no
13642   need_version=no
13643   soname_spec='${libname}${release}${shared_ext}$major'
13644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13645   shlibpath_var=LD_LIBRARY_PATH
13646   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13647   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13648   ;;
13649
13650 sco3.2v5*)
13651   version_type=osf
13652   soname_spec='${libname}${release}${shared_ext}$major'
13653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13654   shlibpath_var=LD_LIBRARY_PATH
13655   ;;
13656
13657 solaris*)
13658   version_type=linux
13659   need_lib_prefix=no
13660   need_version=no
13661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13662   soname_spec='${libname}${release}${shared_ext}$major'
13663   shlibpath_var=LD_LIBRARY_PATH
13664   shlibpath_overrides_runpath=yes
13665   hardcode_into_libs=yes
13666   # ldd complains unless libraries are executable
13667   postinstall_cmds='chmod +x $lib'
13668   ;;
13669
13670 sunos4*)
13671   version_type=sunos
13672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13673   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13674   shlibpath_var=LD_LIBRARY_PATH
13675   shlibpath_overrides_runpath=yes
13676   if test "$with_gnu_ld" = yes; then
13677     need_lib_prefix=no
13678   fi
13679   need_version=yes
13680   ;;
13681
13682 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13683   version_type=linux
13684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13685   soname_spec='${libname}${release}${shared_ext}$major'
13686   shlibpath_var=LD_LIBRARY_PATH
13687   case $host_vendor in
13688     sni)
13689       shlibpath_overrides_runpath=no
13690       need_lib_prefix=no
13691       export_dynamic_flag_spec='${wl}-Blargedynsym'
13692       runpath_var=LD_RUN_PATH
13693       ;;
13694     siemens)
13695       need_lib_prefix=no
13696       ;;
13697     motorola)
13698       need_lib_prefix=no
13699       need_version=no
13700       shlibpath_overrides_runpath=no
13701       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13702       ;;
13703   esac
13704   ;;
13705
13706 sysv4*MP*)
13707   if test -d /usr/nec ;then
13708     version_type=linux
13709     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13710     soname_spec='$libname${shared_ext}.$major'
13711     shlibpath_var=LD_LIBRARY_PATH
13712   fi
13713   ;;
13714
13715 uts4*)
13716   version_type=linux
13717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13718   soname_spec='${libname}${release}${shared_ext}$major'
13719   shlibpath_var=LD_LIBRARY_PATH
13720   ;;
13721
13722 *)
13723   dynamic_linker=no
13724   ;;
13725 esac
13726 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13727 echo "${ECHO_T}$dynamic_linker" >&6
13728 test "$dynamic_linker" = no && can_build_shared=no
13729
13730 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13731 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13732 hardcode_action=
13733 if test -n "$hardcode_libdir_flag_spec" || \
13734    test -n "$runpath_var" || \
13735    test "X$hardcode_automatic" = "Xyes" ; then
13736
13737   # We can hardcode non-existant directories.
13738   if test "$hardcode_direct" != no &&
13739      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13740      # have to relink, otherwise we might link with an installed library
13741      # when we should be linking with a yet-to-be-installed one
13742      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13743      test "$hardcode_minus_L" != no; then
13744     # Linking always hardcodes the temporary library directory.
13745     hardcode_action=relink
13746   else
13747     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13748     hardcode_action=immediate
13749   fi
13750 else
13751   # We cannot hardcode anything, or else we can only hardcode existing
13752   # directories.
13753   hardcode_action=unsupported
13754 fi
13755 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13756 echo "${ECHO_T}$hardcode_action" >&6
13757
13758 if test "$hardcode_action" = relink; then
13759   # Fast installation is not supported
13760   enable_fast_install=no
13761 elif test "$shlibpath_overrides_runpath" = yes ||
13762      test "$enable_shared" = no; then
13763   # Fast installation is not necessary
13764   enable_fast_install=needless
13765 fi
13766
13767 striplib=
13768 old_striplib=
13769 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13770 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13771 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13772   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13773   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13774   echo "$as_me:$LINENO: result: yes" >&5
13775 echo "${ECHO_T}yes" >&6
13776 else
13777 # FIXME - insert some real tests, host_os isn't really good enough
13778   case $host_os in
13779    darwin*)
13780        if test -n "$STRIP" ; then
13781          striplib="$STRIP -x"
13782          echo "$as_me:$LINENO: result: yes" >&5
13783 echo "${ECHO_T}yes" >&6
13784        else
13785   echo "$as_me:$LINENO: result: no" >&5
13786 echo "${ECHO_T}no" >&6
13787 fi
13788        ;;
13789    *)
13790   echo "$as_me:$LINENO: result: no" >&5
13791 echo "${ECHO_T}no" >&6
13792     ;;
13793   esac
13794 fi
13795
13796 if test "x$enable_dlopen" != xyes; then
13797   enable_dlopen=unknown
13798   enable_dlopen_self=unknown
13799   enable_dlopen_self_static=unknown
13800 else
13801   lt_cv_dlopen=no
13802   lt_cv_dlopen_libs=
13803
13804   case $host_os in
13805   beos*)
13806     lt_cv_dlopen="load_add_on"
13807     lt_cv_dlopen_libs=
13808     lt_cv_dlopen_self=yes
13809     ;;
13810
13811   mingw* | pw32*)
13812     lt_cv_dlopen="LoadLibrary"
13813     lt_cv_dlopen_libs=
13814    ;;
13815
13816   cygwin*)
13817     lt_cv_dlopen="dlopen"
13818     lt_cv_dlopen_libs=
13819    ;;
13820
13821   darwin*)
13822   # if libdl is installed we need to link against it
13823     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13824 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13825 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13826   echo $ECHO_N "(cached) $ECHO_C" >&6
13827 else
13828   ac_check_lib_save_LIBS=$LIBS
13829 LIBS="-ldl  $LIBS"
13830 cat >conftest.$ac_ext <<_ACEOF
13831 /* confdefs.h.  */
13832 _ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h.  */
13836
13837 /* Override any gcc2 internal prototype to avoid an error.  */
13838 #ifdef __cplusplus
13839 extern "C"
13840 #endif
13841 /* We use char because int might match the return type of a gcc2
13842    builtin and then its argument prototype would still apply.  */
13843 char dlopen ();
13844 int
13845 main ()
13846 {
13847 dlopen ();
13848   ;
13849   return 0;
13850 }
13851 _ACEOF
13852 rm -f conftest.$ac_objext conftest$ac_exeext
13853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13854   (eval $ac_link) 2>conftest.er1
13855   ac_status=$?
13856   grep -v '^ *+' conftest.er1 >conftest.err
13857   rm -f conftest.er1
13858   cat conftest.err >&5
13859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860   (exit $ac_status); } &&
13861          { ac_try='test -z "$ac_c_werror_flag"
13862                          || test ! -s conftest.err'
13863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864   (eval $ac_try) 2>&5
13865   ac_status=$?
13866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867   (exit $ac_status); }; } &&
13868          { ac_try='test -s conftest$ac_exeext'
13869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870   (eval $ac_try) 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); }; }; then
13874   ac_cv_lib_dl_dlopen=yes
13875 else
13876   echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13878
13879 ac_cv_lib_dl_dlopen=no
13880 fi
13881 rm -f conftest.err conftest.$ac_objext \
13882       conftest$ac_exeext conftest.$ac_ext
13883 LIBS=$ac_check_lib_save_LIBS
13884 fi
13885 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13886 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13887 if test $ac_cv_lib_dl_dlopen = yes; then
13888   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13889 else
13890
13891     lt_cv_dlopen="dyld"
13892     lt_cv_dlopen_libs=
13893     lt_cv_dlopen_self=yes
13894
13895 fi
13896
13897    ;;
13898
13899   *)
13900     echo "$as_me:$LINENO: checking for shl_load" >&5
13901 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13902 if test "${ac_cv_func_shl_load+set}" = set; then
13903   echo $ECHO_N "(cached) $ECHO_C" >&6
13904 else
13905   cat >conftest.$ac_ext <<_ACEOF
13906 /* confdefs.h.  */
13907 _ACEOF
13908 cat confdefs.h >>conftest.$ac_ext
13909 cat >>conftest.$ac_ext <<_ACEOF
13910 /* end confdefs.h.  */
13911 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13913 #define shl_load innocuous_shl_load
13914
13915 /* System header to define __stub macros and hopefully few prototypes,
13916     which can conflict with char shl_load (); below.
13917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13918     <limits.h> exists even on freestanding compilers.  */
13919
13920 #ifdef __STDC__
13921 # include <limits.h>
13922 #else
13923 # include <assert.h>
13924 #endif
13925
13926 #undef shl_load
13927
13928 /* Override any gcc2 internal prototype to avoid an error.  */
13929 #ifdef __cplusplus
13930 extern "C"
13931 {
13932 #endif
13933 /* We use char because int might match the return type of a gcc2
13934    builtin and then its argument prototype would still apply.  */
13935 char shl_load ();
13936 /* The GNU C library defines this for functions which it implements
13937     to always fail with ENOSYS.  Some functions are actually named
13938     something starting with __ and the normal name is an alias.  */
13939 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13940 choke me
13941 #else
13942 char (*f) () = shl_load;
13943 #endif
13944 #ifdef __cplusplus
13945 }
13946 #endif
13947
13948 int
13949 main ()
13950 {
13951 return f != shl_load;
13952   ;
13953   return 0;
13954 }
13955 _ACEOF
13956 rm -f conftest.$ac_objext conftest$ac_exeext
13957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13958   (eval $ac_link) 2>conftest.er1
13959   ac_status=$?
13960   grep -v '^ *+' conftest.er1 >conftest.err
13961   rm -f conftest.er1
13962   cat conftest.err >&5
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); } &&
13965          { ac_try='test -z "$ac_c_werror_flag"
13966                          || test ! -s conftest.err'
13967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968   (eval $ac_try) 2>&5
13969   ac_status=$?
13970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971   (exit $ac_status); }; } &&
13972          { ac_try='test -s conftest$ac_exeext'
13973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974   (eval $ac_try) 2>&5
13975   ac_status=$?
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); }; }; then
13978   ac_cv_func_shl_load=yes
13979 else
13980   echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13982
13983 ac_cv_func_shl_load=no
13984 fi
13985 rm -f conftest.err conftest.$ac_objext \
13986       conftest$ac_exeext conftest.$ac_ext
13987 fi
13988 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13989 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13990 if test $ac_cv_func_shl_load = yes; then
13991   lt_cv_dlopen="shl_load"
13992 else
13993   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13994 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13995 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13996   echo $ECHO_N "(cached) $ECHO_C" >&6
13997 else
13998   ac_check_lib_save_LIBS=$LIBS
13999 LIBS="-ldld  $LIBS"
14000 cat >conftest.$ac_ext <<_ACEOF
14001 /* confdefs.h.  */
14002 _ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h.  */
14006
14007 /* Override any gcc2 internal prototype to avoid an error.  */
14008 #ifdef __cplusplus
14009 extern "C"
14010 #endif
14011 /* We use char because int might match the return type of a gcc2
14012    builtin and then its argument prototype would still apply.  */
14013 char shl_load ();
14014 int
14015 main ()
14016 {
14017 shl_load ();
14018   ;
14019   return 0;
14020 }
14021 _ACEOF
14022 rm -f conftest.$ac_objext conftest$ac_exeext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14024   (eval $ac_link) 2>conftest.er1
14025   ac_status=$?
14026   grep -v '^ *+' conftest.er1 >conftest.err
14027   rm -f conftest.er1
14028   cat conftest.err >&5
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); } &&
14031          { ac_try='test -z "$ac_c_werror_flag"
14032                          || test ! -s conftest.err'
14033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034   (eval $ac_try) 2>&5
14035   ac_status=$?
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); }; } &&
14038          { ac_try='test -s conftest$ac_exeext'
14039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040   (eval $ac_try) 2>&5
14041   ac_status=$?
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); }; }; then
14044   ac_cv_lib_dld_shl_load=yes
14045 else
14046   echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14048
14049 ac_cv_lib_dld_shl_load=no
14050 fi
14051 rm -f conftest.err conftest.$ac_objext \
14052       conftest$ac_exeext conftest.$ac_ext
14053 LIBS=$ac_check_lib_save_LIBS
14054 fi
14055 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14056 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14057 if test $ac_cv_lib_dld_shl_load = yes; then
14058   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14059 else
14060   echo "$as_me:$LINENO: checking for dlopen" >&5
14061 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14062 if test "${ac_cv_func_dlopen+set}" = set; then
14063   echo $ECHO_N "(cached) $ECHO_C" >&6
14064 else
14065   cat >conftest.$ac_ext <<_ACEOF
14066 /* confdefs.h.  */
14067 _ACEOF
14068 cat confdefs.h >>conftest.$ac_ext
14069 cat >>conftest.$ac_ext <<_ACEOF
14070 /* end confdefs.h.  */
14071 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14072    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14073 #define dlopen innocuous_dlopen
14074
14075 /* System header to define __stub macros and hopefully few prototypes,
14076     which can conflict with char dlopen (); below.
14077     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14078     <limits.h> exists even on freestanding compilers.  */
14079
14080 #ifdef __STDC__
14081 # include <limits.h>
14082 #else
14083 # include <assert.h>
14084 #endif
14085
14086 #undef dlopen
14087
14088 /* Override any gcc2 internal prototype to avoid an error.  */
14089 #ifdef __cplusplus
14090 extern "C"
14091 {
14092 #endif
14093 /* We use char because int might match the return type of a gcc2
14094    builtin and then its argument prototype would still apply.  */
14095 char dlopen ();
14096 /* The GNU C library defines this for functions which it implements
14097     to always fail with ENOSYS.  Some functions are actually named
14098     something starting with __ and the normal name is an alias.  */
14099 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14100 choke me
14101 #else
14102 char (*f) () = dlopen;
14103 #endif
14104 #ifdef __cplusplus
14105 }
14106 #endif
14107
14108 int
14109 main ()
14110 {
14111 return f != dlopen;
14112   ;
14113   return 0;
14114 }
14115 _ACEOF
14116 rm -f conftest.$ac_objext conftest$ac_exeext
14117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14118   (eval $ac_link) 2>conftest.er1
14119   ac_status=$?
14120   grep -v '^ *+' conftest.er1 >conftest.err
14121   rm -f conftest.er1
14122   cat conftest.err >&5
14123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124   (exit $ac_status); } &&
14125          { ac_try='test -z "$ac_c_werror_flag"
14126                          || test ! -s conftest.err'
14127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128   (eval $ac_try) 2>&5
14129   ac_status=$?
14130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131   (exit $ac_status); }; } &&
14132          { ac_try='test -s conftest$ac_exeext'
14133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134   (eval $ac_try) 2>&5
14135   ac_status=$?
14136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); }; }; then
14138   ac_cv_func_dlopen=yes
14139 else
14140   echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.$ac_ext >&5
14142
14143 ac_cv_func_dlopen=no
14144 fi
14145 rm -f conftest.err conftest.$ac_objext \
14146       conftest$ac_exeext conftest.$ac_ext
14147 fi
14148 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14149 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14150 if test $ac_cv_func_dlopen = yes; then
14151   lt_cv_dlopen="dlopen"
14152 else
14153   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14154 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14155 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14156   echo $ECHO_N "(cached) $ECHO_C" >&6
14157 else
14158   ac_check_lib_save_LIBS=$LIBS
14159 LIBS="-ldl  $LIBS"
14160 cat >conftest.$ac_ext <<_ACEOF
14161 /* confdefs.h.  */
14162 _ACEOF
14163 cat confdefs.h >>conftest.$ac_ext
14164 cat >>conftest.$ac_ext <<_ACEOF
14165 /* end confdefs.h.  */
14166
14167 /* Override any gcc2 internal prototype to avoid an error.  */
14168 #ifdef __cplusplus
14169 extern "C"
14170 #endif
14171 /* We use char because int might match the return type of a gcc2
14172    builtin and then its argument prototype would still apply.  */
14173 char dlopen ();
14174 int
14175 main ()
14176 {
14177 dlopen ();
14178   ;
14179   return 0;
14180 }
14181 _ACEOF
14182 rm -f conftest.$ac_objext conftest$ac_exeext
14183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14184   (eval $ac_link) 2>conftest.er1
14185   ac_status=$?
14186   grep -v '^ *+' conftest.er1 >conftest.err
14187   rm -f conftest.er1
14188   cat conftest.err >&5
14189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190   (exit $ac_status); } &&
14191          { ac_try='test -z "$ac_c_werror_flag"
14192                          || test ! -s conftest.err'
14193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194   (eval $ac_try) 2>&5
14195   ac_status=$?
14196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197   (exit $ac_status); }; } &&
14198          { ac_try='test -s conftest$ac_exeext'
14199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200   (eval $ac_try) 2>&5
14201   ac_status=$?
14202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203   (exit $ac_status); }; }; then
14204   ac_cv_lib_dl_dlopen=yes
14205 else
14206   echo "$as_me: failed program was:" >&5
14207 sed 's/^/| /' conftest.$ac_ext >&5
14208
14209 ac_cv_lib_dl_dlopen=no
14210 fi
14211 rm -f conftest.err conftest.$ac_objext \
14212       conftest$ac_exeext conftest.$ac_ext
14213 LIBS=$ac_check_lib_save_LIBS
14214 fi
14215 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14216 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14217 if test $ac_cv_lib_dl_dlopen = yes; then
14218   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14219 else
14220   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14221 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14222 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14223   echo $ECHO_N "(cached) $ECHO_C" >&6
14224 else
14225   ac_check_lib_save_LIBS=$LIBS
14226 LIBS="-lsvld  $LIBS"
14227 cat >conftest.$ac_ext <<_ACEOF
14228 /* confdefs.h.  */
14229 _ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h.  */
14233
14234 /* Override any gcc2 internal prototype to avoid an error.  */
14235 #ifdef __cplusplus
14236 extern "C"
14237 #endif
14238 /* We use char because int might match the return type of a gcc2
14239    builtin and then its argument prototype would still apply.  */
14240 char dlopen ();
14241 int
14242 main ()
14243 {
14244 dlopen ();
14245   ;
14246   return 0;
14247 }
14248 _ACEOF
14249 rm -f conftest.$ac_objext conftest$ac_exeext
14250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14251   (eval $ac_link) 2>conftest.er1
14252   ac_status=$?
14253   grep -v '^ *+' conftest.er1 >conftest.err
14254   rm -f conftest.er1
14255   cat conftest.err >&5
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); } &&
14258          { ac_try='test -z "$ac_c_werror_flag"
14259                          || test ! -s conftest.err'
14260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261   (eval $ac_try) 2>&5
14262   ac_status=$?
14263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264   (exit $ac_status); }; } &&
14265          { ac_try='test -s conftest$ac_exeext'
14266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267   (eval $ac_try) 2>&5
14268   ac_status=$?
14269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270   (exit $ac_status); }; }; then
14271   ac_cv_lib_svld_dlopen=yes
14272 else
14273   echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14275
14276 ac_cv_lib_svld_dlopen=no
14277 fi
14278 rm -f conftest.err conftest.$ac_objext \
14279       conftest$ac_exeext conftest.$ac_ext
14280 LIBS=$ac_check_lib_save_LIBS
14281 fi
14282 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14283 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14284 if test $ac_cv_lib_svld_dlopen = yes; then
14285   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14286 else
14287   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14288 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14289 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14290   echo $ECHO_N "(cached) $ECHO_C" >&6
14291 else
14292   ac_check_lib_save_LIBS=$LIBS
14293 LIBS="-ldld  $LIBS"
14294 cat >conftest.$ac_ext <<_ACEOF
14295 /* confdefs.h.  */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h.  */
14300
14301 /* Override any gcc2 internal prototype to avoid an error.  */
14302 #ifdef __cplusplus
14303 extern "C"
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 dld_link ();
14308 int
14309 main ()
14310 {
14311 dld_link ();
14312   ;
14313   return 0;
14314 }
14315 _ACEOF
14316 rm -f conftest.$ac_objext conftest$ac_exeext
14317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14318   (eval $ac_link) 2>conftest.er1
14319   ac_status=$?
14320   grep -v '^ *+' conftest.er1 >conftest.err
14321   rm -f conftest.er1
14322   cat conftest.err >&5
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); } &&
14325          { ac_try='test -z "$ac_c_werror_flag"
14326                          || test ! -s conftest.err'
14327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328   (eval $ac_try) 2>&5
14329   ac_status=$?
14330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331   (exit $ac_status); }; } &&
14332          { ac_try='test -s conftest$ac_exeext'
14333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334   (eval $ac_try) 2>&5
14335   ac_status=$?
14336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337   (exit $ac_status); }; }; then
14338   ac_cv_lib_dld_dld_link=yes
14339 else
14340   echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14342
14343 ac_cv_lib_dld_dld_link=no
14344 fi
14345 rm -f conftest.err conftest.$ac_objext \
14346       conftest$ac_exeext conftest.$ac_ext
14347 LIBS=$ac_check_lib_save_LIBS
14348 fi
14349 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14350 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14351 if test $ac_cv_lib_dld_dld_link = yes; then
14352   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14353 fi
14354
14355
14356 fi
14357
14358
14359 fi
14360
14361
14362 fi
14363
14364
14365 fi
14366
14367
14368 fi
14369
14370     ;;
14371   esac
14372
14373   if test "x$lt_cv_dlopen" != xno; then
14374     enable_dlopen=yes
14375   else
14376     enable_dlopen=no
14377   fi
14378
14379   case $lt_cv_dlopen in
14380   dlopen)
14381     save_CPPFLAGS="$CPPFLAGS"
14382     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14383
14384     save_LDFLAGS="$LDFLAGS"
14385     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14386
14387     save_LIBS="$LIBS"
14388     LIBS="$lt_cv_dlopen_libs $LIBS"
14389
14390     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14391 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14392 if test "${lt_cv_dlopen_self+set}" = set; then
14393   echo $ECHO_N "(cached) $ECHO_C" >&6
14394 else
14395           if test "$cross_compiling" = yes; then :
14396   lt_cv_dlopen_self=cross
14397 else
14398   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14399   lt_status=$lt_dlunknown
14400   cat > conftest.$ac_ext <<EOF
14401 #line 14401 "configure"
14402 #include "confdefs.h"
14403
14404 #if HAVE_DLFCN_H
14405 #include <dlfcn.h>
14406 #endif
14407
14408 #include <stdio.h>
14409
14410 #ifdef RTLD_GLOBAL
14411 #  define LT_DLGLOBAL           RTLD_GLOBAL
14412 #else
14413 #  ifdef DL_GLOBAL
14414 #    define LT_DLGLOBAL         DL_GLOBAL
14415 #  else
14416 #    define LT_DLGLOBAL         0
14417 #  endif
14418 #endif
14419
14420 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14421    find out it does not work in some platform. */
14422 #ifndef LT_DLLAZY_OR_NOW
14423 #  ifdef RTLD_LAZY
14424 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14425 #  else
14426 #    ifdef DL_LAZY
14427 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14428 #    else
14429 #      ifdef RTLD_NOW
14430 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14431 #      else
14432 #        ifdef DL_NOW
14433 #          define LT_DLLAZY_OR_NOW      DL_NOW
14434 #        else
14435 #          define LT_DLLAZY_OR_NOW      0
14436 #        endif
14437 #      endif
14438 #    endif
14439 #  endif
14440 #endif
14441
14442 #ifdef __cplusplus
14443 extern "C" void exit (int);
14444 #endif
14445
14446 void fnord() { int i=42;}
14447 int main ()
14448 {
14449   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14450   int status = $lt_dlunknown;
14451
14452   if (self)
14453     {
14454       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14455       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14456       /* dlclose (self); */
14457     }
14458
14459     exit (status);
14460 }
14461 EOF
14462   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14463   (eval $ac_link) 2>&5
14464   ac_status=$?
14465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14467     (./conftest; exit; ) 2>/dev/null
14468     lt_status=$?
14469     case x$lt_status in
14470       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14471       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14472       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14473     esac
14474   else :
14475     # compilation failed
14476     lt_cv_dlopen_self=no
14477   fi
14478 fi
14479 rm -fr conftest*
14480
14481
14482 fi
14483 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14484 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14485
14486     if test "x$lt_cv_dlopen_self" = xyes; then
14487       LDFLAGS="$LDFLAGS $link_static_flag"
14488       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14489 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14490 if test "${lt_cv_dlopen_self_static+set}" = set; then
14491   echo $ECHO_N "(cached) $ECHO_C" >&6
14492 else
14493           if test "$cross_compiling" = yes; then :
14494   lt_cv_dlopen_self_static=cross
14495 else
14496   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14497   lt_status=$lt_dlunknown
14498   cat > conftest.$ac_ext <<EOF
14499 #line 14499 "configure"
14500 #include "confdefs.h"
14501
14502 #if HAVE_DLFCN_H
14503 #include <dlfcn.h>
14504 #endif
14505
14506 #include <stdio.h>
14507
14508 #ifdef RTLD_GLOBAL
14509 #  define LT_DLGLOBAL           RTLD_GLOBAL
14510 #else
14511 #  ifdef DL_GLOBAL
14512 #    define LT_DLGLOBAL         DL_GLOBAL
14513 #  else
14514 #    define LT_DLGLOBAL         0
14515 #  endif
14516 #endif
14517
14518 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14519    find out it does not work in some platform. */
14520 #ifndef LT_DLLAZY_OR_NOW
14521 #  ifdef RTLD_LAZY
14522 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14523 #  else
14524 #    ifdef DL_LAZY
14525 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14526 #    else
14527 #      ifdef RTLD_NOW
14528 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14529 #      else
14530 #        ifdef DL_NOW
14531 #          define LT_DLLAZY_OR_NOW      DL_NOW
14532 #        else
14533 #          define LT_DLLAZY_OR_NOW      0
14534 #        endif
14535 #      endif
14536 #    endif
14537 #  endif
14538 #endif
14539
14540 #ifdef __cplusplus
14541 extern "C" void exit (int);
14542 #endif
14543
14544 void fnord() { int i=42;}
14545 int main ()
14546 {
14547   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14548   int status = $lt_dlunknown;
14549
14550   if (self)
14551     {
14552       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14553       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14554       /* dlclose (self); */
14555     }
14556
14557     exit (status);
14558 }
14559 EOF
14560   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14561   (eval $ac_link) 2>&5
14562   ac_status=$?
14563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14565     (./conftest; exit; ) 2>/dev/null
14566     lt_status=$?
14567     case x$lt_status in
14568       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14569       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14570       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14571     esac
14572   else :
14573     # compilation failed
14574     lt_cv_dlopen_self_static=no
14575   fi
14576 fi
14577 rm -fr conftest*
14578
14579
14580 fi
14581 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14582 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14583     fi
14584
14585     CPPFLAGS="$save_CPPFLAGS"
14586     LDFLAGS="$save_LDFLAGS"
14587     LIBS="$save_LIBS"
14588     ;;
14589   esac
14590
14591   case $lt_cv_dlopen_self in
14592   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14593   *) enable_dlopen_self=unknown ;;
14594   esac
14595
14596   case $lt_cv_dlopen_self_static in
14597   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14598   *) enable_dlopen_self_static=unknown ;;
14599   esac
14600 fi
14601
14602
14603 # Report which librarie types wil actually be built
14604 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14605 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14606 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14607 echo "${ECHO_T}$can_build_shared" >&6
14608
14609 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14610 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14611 test "$can_build_shared" = "no" && enable_shared=no
14612
14613 # On AIX, shared libraries and static libraries use the same namespace, and
14614 # are all built from PIC.
14615 case "$host_os" in
14616 aix3*)
14617   test "$enable_shared" = yes && enable_static=no
14618   if test -n "$RANLIB"; then
14619     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14620     postinstall_cmds='$RANLIB $lib'
14621   fi
14622   ;;
14623
14624 aix4* | aix5*)
14625   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14626     test "$enable_shared" = yes && enable_static=no
14627   fi
14628     ;;
14629 esac
14630 echo "$as_me:$LINENO: result: $enable_shared" >&5
14631 echo "${ECHO_T}$enable_shared" >&6
14632
14633 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14634 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14635 # Make sure either enable_shared or enable_static is yes.
14636 test "$enable_shared" = yes || enable_static=yes
14637 echo "$as_me:$LINENO: result: $enable_static" >&5
14638 echo "${ECHO_T}$enable_static" >&6
14639
14640 # The else clause should only fire when bootstrapping the
14641 # libtool distribution, otherwise you forgot to ship ltmain.sh
14642 # with your package, and you will get complaints that there are
14643 # no rules to generate ltmain.sh.
14644 if test -f "$ltmain"; then
14645   # See if we are running on zsh, and set the options which allow our commands through
14646   # without removal of \ escapes.
14647   if test -n "${ZSH_VERSION+set}" ; then
14648     setopt NO_GLOB_SUBST
14649   fi
14650   # Now quote all the things that may contain metacharacters while being
14651   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14652   # variables and quote the copies for generation of the libtool script.
14653   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14654     SED SHELL STRIP \
14655     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14656     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14657     deplibs_check_method reload_flag reload_cmds need_locks \
14658     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14659     lt_cv_sys_global_symbol_to_c_name_address \
14660     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14661     old_postinstall_cmds old_postuninstall_cmds \
14662     compiler \
14663     CC \
14664     LD \
14665     lt_prog_compiler_wl \
14666     lt_prog_compiler_pic \
14667     lt_prog_compiler_static \
14668     lt_prog_compiler_no_builtin_flag \
14669     export_dynamic_flag_spec \
14670     thread_safe_flag_spec \
14671     whole_archive_flag_spec \
14672     enable_shared_with_static_runtimes \
14673     old_archive_cmds \
14674     old_archive_from_new_cmds \
14675     predep_objects \
14676     postdep_objects \
14677     predeps \
14678     postdeps \
14679     compiler_lib_search_path \
14680     archive_cmds \
14681     archive_expsym_cmds \
14682     postinstall_cmds \
14683     postuninstall_cmds \
14684     old_archive_from_expsyms_cmds \
14685     allow_undefined_flag \
14686     no_undefined_flag \
14687     export_symbols_cmds \
14688     hardcode_libdir_flag_spec \
14689     hardcode_libdir_flag_spec_ld \
14690     hardcode_libdir_separator \
14691     hardcode_automatic \
14692     module_cmds \
14693     module_expsym_cmds \
14694     lt_cv_prog_compiler_c_o \
14695     exclude_expsyms \
14696     include_expsyms; do
14697
14698     case $var in
14699     old_archive_cmds | \
14700     old_archive_from_new_cmds | \
14701     archive_cmds | \
14702     archive_expsym_cmds | \
14703     module_cmds | \
14704     module_expsym_cmds | \
14705     old_archive_from_expsyms_cmds | \
14706     export_symbols_cmds | \
14707     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14708     postinstall_cmds | postuninstall_cmds | \
14709     old_postinstall_cmds | old_postuninstall_cmds | \
14710     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14711       # Double-quote double-evaled strings.
14712       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14713       ;;
14714     *)
14715       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14716       ;;
14717     esac
14718   done
14719
14720   case $lt_echo in
14721   *'\$0 --fallback-echo"')
14722     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14723     ;;
14724   esac
14725
14726 cfgfile="${ofile}T"
14727   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14728   $rm -f "$cfgfile"
14729   { echo "$as_me:$LINENO: creating $ofile" >&5
14730 echo "$as_me: creating $ofile" >&6;}
14731
14732   cat <<__EOF__ >> "$cfgfile"
14733 #! $SHELL
14734
14735 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14736 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14737 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14738 #
14739 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14740 # Free Software Foundation, Inc.
14741 #
14742 # This file is part of GNU Libtool:
14743 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14744 #
14745 # This program is free software; you can redistribute it and/or modify
14746 # it under the terms of the GNU General Public License as published by
14747 # the Free Software Foundation; either version 2 of the License, or
14748 # (at your option) any later version.
14749 #
14750 # This program is distributed in the hope that it will be useful, but
14751 # WITHOUT ANY WARRANTY; without even the implied warranty of
14752 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14753 # General Public License for more details.
14754 #
14755 # You should have received a copy of the GNU General Public License
14756 # along with this program; if not, write to the Free Software
14757 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14758 #
14759 # As a special exception to the GNU General Public License, if you
14760 # distribute this file as part of a program that contains a
14761 # configuration script generated by Autoconf, you may include it under
14762 # the same distribution terms that you use for the rest of that program.
14763
14764 # A sed program that does not truncate output.
14765 SED=$lt_SED
14766
14767 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14768 Xsed="$SED -e s/^X//"
14769
14770 # The HP-UX ksh and POSIX shell print the target directory to stdout
14771 # if CDPATH is set.
14772 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14773
14774 # The names of the tagged configurations supported by this script.
14775 available_tags=
14776
14777 # ### BEGIN LIBTOOL CONFIG
14778
14779 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14780
14781 # Shell to use when invoking shell scripts.
14782 SHELL=$lt_SHELL
14783
14784 # Whether or not to build shared libraries.
14785 build_libtool_libs=$enable_shared
14786
14787 # Whether or not to build static libraries.
14788 build_old_libs=$enable_static
14789
14790 # Whether or not to add -lc for building shared libraries.
14791 build_libtool_need_lc=$archive_cmds_need_lc
14792
14793 # Whether or not to disallow shared libs when runtime libs are static
14794 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14795
14796 # Whether or not to optimize for fast installation.
14797 fast_install=$enable_fast_install
14798
14799 # The host system.
14800 host_alias=$host_alias
14801 host=$host
14802
14803 # An echo program that does not interpret backslashes.
14804 echo=$lt_echo
14805
14806 # The archiver.
14807 AR=$lt_AR
14808 AR_FLAGS=$lt_AR_FLAGS
14809
14810 # A C compiler.
14811 LTCC=$lt_LTCC
14812
14813 # A language-specific compiler.
14814 CC=$lt_compiler
14815
14816 # Is the compiler the GNU C compiler?
14817 with_gcc=$GCC
14818
14819 # An ERE matcher.
14820 EGREP=$lt_EGREP
14821
14822 # The linker used to build libraries.
14823 LD=$lt_LD
14824
14825 # Whether we need hard or soft links.
14826 LN_S=$lt_LN_S
14827
14828 # A BSD-compatible nm program.
14829 NM=$lt_NM
14830
14831 # A symbol stripping program
14832 STRIP=$lt_STRIP
14833
14834 # Used to examine libraries when file_magic_cmd begins "file"
14835 MAGIC_CMD=$MAGIC_CMD
14836
14837 # Used on cygwin: DLL creation program.
14838 DLLTOOL="$DLLTOOL"
14839
14840 # Used on cygwin: object dumper.
14841 OBJDUMP="$OBJDUMP"
14842
14843 # Used on cygwin: assembler.
14844 AS="$AS"
14845
14846 # The name of the directory that contains temporary libtool files.
14847 objdir=$objdir
14848
14849 # How to create reloadable object files.
14850 reload_flag=$lt_reload_flag
14851 reload_cmds=$lt_reload_cmds
14852
14853 # How to pass a linker flag through the compiler.
14854 wl=$lt_lt_prog_compiler_wl
14855
14856 # Object file suffix (normally "o").
14857 objext="$ac_objext"
14858
14859 # Old archive suffix (normally "a").
14860 libext="$libext"
14861
14862 # Shared library suffix (normally ".so").
14863 shrext_cmds='$shrext_cmds'
14864
14865 # Executable file suffix (normally "").
14866 exeext="$exeext"
14867
14868 # Additional compiler flags for building library objects.
14869 pic_flag=$lt_lt_prog_compiler_pic
14870 pic_mode=$pic_mode
14871
14872 # What is the maximum length of a command?
14873 max_cmd_len=$lt_cv_sys_max_cmd_len
14874
14875 # Does compiler simultaneously support -c and -o options?
14876 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14877
14878 # Must we lock files when doing compilation ?
14879 need_locks=$lt_need_locks
14880
14881 # Do we need the lib prefix for modules?
14882 need_lib_prefix=$need_lib_prefix
14883
14884 # Do we need a version for libraries?
14885 need_version=$need_version
14886
14887 # Whether dlopen is supported.
14888 dlopen_support=$enable_dlopen
14889
14890 # Whether dlopen of programs is supported.
14891 dlopen_self=$enable_dlopen_self
14892
14893 # Whether dlopen of statically linked programs is supported.
14894 dlopen_self_static=$enable_dlopen_self_static
14895
14896 # Compiler flag to prevent dynamic linking.
14897 link_static_flag=$lt_lt_prog_compiler_static
14898
14899 # Compiler flag to turn off builtin functions.
14900 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14901
14902 # Compiler flag to allow reflexive dlopens.
14903 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14904
14905 # Compiler flag to generate shared objects directly from archives.
14906 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14907
14908 # Compiler flag to generate thread-safe objects.
14909 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14910
14911 # Library versioning type.
14912 version_type=$version_type
14913
14914 # Format of library name prefix.
14915 libname_spec=$lt_libname_spec
14916
14917 # List of archive names.  First name is the real one, the rest are links.
14918 # The last name is the one that the linker finds with -lNAME.
14919 library_names_spec=$lt_library_names_spec
14920
14921 # The coded name of the library, if different from the real name.
14922 soname_spec=$lt_soname_spec
14923
14924 # Commands used to build and install an old-style archive.
14925 RANLIB=$lt_RANLIB
14926 old_archive_cmds=$lt_old_archive_cmds
14927 old_postinstall_cmds=$lt_old_postinstall_cmds
14928 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14929
14930 # Create an old-style archive from a shared archive.
14931 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14932
14933 # Create a temporary old-style archive to link instead of a shared archive.
14934 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14935
14936 # Commands used to build and install a shared archive.
14937 archive_cmds=$lt_archive_cmds
14938 archive_expsym_cmds=$lt_archive_expsym_cmds
14939 postinstall_cmds=$lt_postinstall_cmds
14940 postuninstall_cmds=$lt_postuninstall_cmds
14941
14942 # Commands used to build a loadable module (assumed same as above if empty)
14943 module_cmds=$lt_module_cmds
14944 module_expsym_cmds=$lt_module_expsym_cmds
14945
14946 # Commands to strip libraries.
14947 old_striplib=$lt_old_striplib
14948 striplib=$lt_striplib
14949
14950 # Dependencies to place before the objects being linked to create a
14951 # shared library.
14952 predep_objects=$lt_predep_objects
14953
14954 # Dependencies to place after the objects being linked to create a
14955 # shared library.
14956 postdep_objects=$lt_postdep_objects
14957
14958 # Dependencies to place before the objects being linked to create a
14959 # shared library.
14960 predeps=$lt_predeps
14961
14962 # Dependencies to place after the objects being linked to create a
14963 # shared library.
14964 postdeps=$lt_postdeps
14965
14966 # The library search path used internally by the compiler when linking
14967 # a shared library.
14968 compiler_lib_search_path=$lt_compiler_lib_search_path
14969
14970 # Method to check whether dependent libraries are shared objects.
14971 deplibs_check_method=$lt_deplibs_check_method
14972
14973 # Command to use when deplibs_check_method == file_magic.
14974 file_magic_cmd=$lt_file_magic_cmd
14975
14976 # Flag that allows shared libraries with undefined symbols to be built.
14977 allow_undefined_flag=$lt_allow_undefined_flag
14978
14979 # Flag that forces no undefined symbols.
14980 no_undefined_flag=$lt_no_undefined_flag
14981
14982 # Commands used to finish a libtool library installation in a directory.
14983 finish_cmds=$lt_finish_cmds
14984
14985 # Same as above, but a single script fragment to be evaled but not shown.
14986 finish_eval=$lt_finish_eval
14987
14988 # Take the output of nm and produce a listing of raw symbols and C names.
14989 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14990
14991 # Transform the output of nm in a proper C declaration
14992 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14993
14994 # Transform the output of nm in a C name address pair
14995 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14996
14997 # This is the shared library runtime path variable.
14998 runpath_var=$runpath_var
14999
15000 # This is the shared library path variable.
15001 shlibpath_var=$shlibpath_var
15002
15003 # Is shlibpath searched before the hard-coded library search path?
15004 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15005
15006 # How to hardcode a shared library path into an executable.
15007 hardcode_action=$hardcode_action
15008
15009 # Whether we should hardcode library paths into libraries.
15010 hardcode_into_libs=$hardcode_into_libs
15011
15012 # Flag to hardcode \$libdir into a binary during linking.
15013 # This must work even if \$libdir does not exist.
15014 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15015
15016 # If ld is used when linking, flag to hardcode \$libdir into
15017 # a binary during linking. This must work even if \$libdir does
15018 # not exist.
15019 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15020
15021 # Whether we need a single -rpath flag with a separated argument.
15022 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15023
15024 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15025 # resulting binary.
15026 hardcode_direct=$hardcode_direct
15027
15028 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15029 # resulting binary.
15030 hardcode_minus_L=$hardcode_minus_L
15031
15032 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15033 # the resulting binary.
15034 hardcode_shlibpath_var=$hardcode_shlibpath_var
15035
15036 # Set to yes if building a shared library automatically hardcodes DIR into the library
15037 # and all subsequent libraries and executables linked against it.
15038 hardcode_automatic=$hardcode_automatic
15039
15040 # Variables whose values should be saved in libtool wrapper scripts and
15041 # restored at relink time.
15042 variables_saved_for_relink="$variables_saved_for_relink"
15043
15044 # Whether libtool must link a program against all its dependency libraries.
15045 link_all_deplibs=$link_all_deplibs
15046
15047 # Compile-time system search path for libraries
15048 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15049
15050 # Run-time system search path for libraries
15051 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15052
15053 # Fix the shell variable \$srcfile for the compiler.
15054 fix_srcfile_path="$fix_srcfile_path"
15055
15056 # Set to yes if exported symbols are required.
15057 always_export_symbols=$always_export_symbols
15058
15059 # The commands to list exported symbols.
15060 export_symbols_cmds=$lt_export_symbols_cmds
15061
15062 # The commands to extract the exported symbol list from a shared archive.
15063 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15064
15065 # Symbols that should not be listed in the preloaded symbols.
15066 exclude_expsyms=$lt_exclude_expsyms
15067
15068 # Symbols that must always be exported.
15069 include_expsyms=$lt_include_expsyms
15070
15071 # ### END LIBTOOL CONFIG
15072
15073 __EOF__
15074
15075
15076   case $host_os in
15077   aix3*)
15078     cat <<\EOF >> "$cfgfile"
15079
15080 # AIX sometimes has problems with the GCC collect2 program.  For some
15081 # reason, if we set the COLLECT_NAMES environment variable, the problems
15082 # vanish in a puff of smoke.
15083 if test "X${COLLECT_NAMES+set}" != Xset; then
15084   COLLECT_NAMES=
15085   export COLLECT_NAMES
15086 fi
15087 EOF
15088     ;;
15089   esac
15090
15091   # We use sed instead of cat because bash on DJGPP gets confused if
15092   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15093   # text mode, it properly converts lines to CR/LF.  This bash problem
15094   # is reportedly fixed, but why not run on old versions too?
15095   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15096
15097   mv -f "$cfgfile" "$ofile" || \
15098     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15099   chmod +x "$ofile"
15100
15101 else
15102   # If there is no Makefile yet, we rely on a make rule to execute
15103   # `config.status --recheck' to rerun these tests and create the
15104   # libtool script then.
15105   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15106   if test -f "$ltmain_in"; then
15107     test -f Makefile && make "$ltmain"
15108   fi
15109 fi
15110
15111
15112 ac_ext=c
15113 ac_cpp='$CPP $CPPFLAGS'
15114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15117
15118 CC="$lt_save_CC"
15119
15120
15121 # Check whether --with-tags or --without-tags was given.
15122 if test "${with_tags+set}" = set; then
15123   withval="$with_tags"
15124   tagnames="$withval"
15125 fi;
15126
15127 if test -f "$ltmain" && test -n "$tagnames"; then
15128   if test ! -f "${ofile}"; then
15129     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15130 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15131   fi
15132
15133   if test -z "$LTCC"; then
15134     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15135     if test -z "$LTCC"; then
15136       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15137 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15138     else
15139       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15140 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15141     fi
15142   fi
15143
15144   # Extract list of available tagged configurations in $ofile.
15145   # Note that this assumes the entire list is on one line.
15146   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15147
15148   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15149   for tagname in $tagnames; do
15150     IFS="$lt_save_ifs"
15151     # Check whether tagname contains only valid characters
15152     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15153     "") ;;
15154     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15155 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15156    { (exit 1); exit 1; }; }
15157         ;;
15158     esac
15159
15160     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15161     then
15162       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15163 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15164    { (exit 1); exit 1; }; }
15165     fi
15166
15167     # Update the list of available tags.
15168     if test -n "$tagname"; then
15169       echo appending configuration tag "$tagname" to $ofile
15170
15171       case $tagname in
15172       CXX)
15173         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15174             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15175             (test "X$CXX" != "Xg++"))) ; then
15176           ac_ext=cc
15177 ac_cpp='$CXXCPP $CPPFLAGS'
15178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15181
15182
15183
15184
15185 archive_cmds_need_lc_CXX=no
15186 allow_undefined_flag_CXX=
15187 always_export_symbols_CXX=no
15188 archive_expsym_cmds_CXX=
15189 export_dynamic_flag_spec_CXX=
15190 hardcode_direct_CXX=no
15191 hardcode_libdir_flag_spec_CXX=
15192 hardcode_libdir_flag_spec_ld_CXX=
15193 hardcode_libdir_separator_CXX=
15194 hardcode_minus_L_CXX=no
15195 hardcode_automatic_CXX=no
15196 module_cmds_CXX=
15197 module_expsym_cmds_CXX=
15198 link_all_deplibs_CXX=unknown
15199 old_archive_cmds_CXX=$old_archive_cmds
15200 no_undefined_flag_CXX=
15201 whole_archive_flag_spec_CXX=
15202 enable_shared_with_static_runtimes_CXX=no
15203
15204 # Dependencies to place before and after the object being linked:
15205 predep_objects_CXX=
15206 postdep_objects_CXX=
15207 predeps_CXX=
15208 postdeps_CXX=
15209 compiler_lib_search_path_CXX=
15210
15211 # Source file extension for C++ test sources.
15212 ac_ext=cc
15213
15214 # Object file extension for compiled C++ test sources.
15215 objext=o
15216 objext_CXX=$objext
15217
15218 # Code to be used in simple compile tests
15219 lt_simple_compile_test_code="int some_variable = 0;\n"
15220
15221 # Code to be used in simple link tests
15222 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15223
15224 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15225
15226 # If no C compiler was specified, use CC.
15227 LTCC=${LTCC-"$CC"}
15228
15229 # Allow CC to be a program name with arguments.
15230 compiler=$CC
15231
15232
15233 # Allow CC to be a program name with arguments.
15234 lt_save_CC=$CC
15235 lt_save_LD=$LD
15236 lt_save_GCC=$GCC
15237 GCC=$GXX
15238 lt_save_with_gnu_ld=$with_gnu_ld
15239 lt_save_path_LD=$lt_cv_path_LD
15240 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15241   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15242 else
15243   unset lt_cv_prog_gnu_ld
15244 fi
15245 if test -n "${lt_cv_path_LDCXX+set}"; then
15246   lt_cv_path_LD=$lt_cv_path_LDCXX
15247 else
15248   unset lt_cv_path_LD
15249 fi
15250 test -z "${LDCXX+set}" || LD=$LDCXX
15251 CC=${CXX-"c++"}
15252 compiler=$CC
15253 compiler_CXX=$CC
15254 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15255
15256 # We don't want -fno-exception wen compiling C++ code, so set the
15257 # no_builtin_flag separately
15258 if test "$GXX" = yes; then
15259   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15260 else
15261   lt_prog_compiler_no_builtin_flag_CXX=
15262 fi
15263
15264 if test "$GXX" = yes; then
15265   # Set up default GNU C++ configuration
15266
15267
15268 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15269 if test "${with_gnu_ld+set}" = set; then
15270   withval="$with_gnu_ld"
15271   test "$withval" = no || with_gnu_ld=yes
15272 else
15273   with_gnu_ld=no
15274 fi;
15275 ac_prog=ld
15276 if test "$GCC" = yes; then
15277   # Check if gcc -print-prog-name=ld gives a path.
15278   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15279 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15280   case $host in
15281   *-*-mingw*)
15282     # gcc leaves a trailing carriage return which upsets mingw
15283     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15284   *)
15285     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15286   esac
15287   case $ac_prog in
15288     # Accept absolute paths.
15289     [\\/]* | ?:[\\/]*)
15290       re_direlt='/[^/][^/]*/\.\./'
15291       # Canonicalize the pathname of ld
15292       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15293       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15294         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15295       done
15296       test -z "$LD" && LD="$ac_prog"
15297       ;;
15298   "")
15299     # If it fails, then pretend we aren't using GCC.
15300     ac_prog=ld
15301     ;;
15302   *)
15303     # If it is relative, then search for the first ld in PATH.
15304     with_gnu_ld=unknown
15305     ;;
15306   esac
15307 elif test "$with_gnu_ld" = yes; then
15308   echo "$as_me:$LINENO: checking for GNU ld" >&5
15309 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15310 else
15311   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15312 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15313 fi
15314 if test "${lt_cv_path_LD+set}" = set; then
15315   echo $ECHO_N "(cached) $ECHO_C" >&6
15316 else
15317   if test -z "$LD"; then
15318   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15319   for ac_dir in $PATH; do
15320     IFS="$lt_save_ifs"
15321     test -z "$ac_dir" && ac_dir=.
15322     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15323       lt_cv_path_LD="$ac_dir/$ac_prog"
15324       # Check to see if the program is GNU ld.  I'd rather use --version,
15325       # but apparently some GNU ld's only accept -v.
15326       # Break only if it was the GNU/non-GNU ld that we prefer.
15327       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15328       *GNU* | *'with BFD'*)
15329         test "$with_gnu_ld" != no && break
15330         ;;
15331       *)
15332         test "$with_gnu_ld" != yes && break
15333         ;;
15334       esac
15335     fi
15336   done
15337   IFS="$lt_save_ifs"
15338 else
15339   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15340 fi
15341 fi
15342
15343 LD="$lt_cv_path_LD"
15344 if test -n "$LD"; then
15345   echo "$as_me:$LINENO: result: $LD" >&5
15346 echo "${ECHO_T}$LD" >&6
15347 else
15348   echo "$as_me:$LINENO: result: no" >&5
15349 echo "${ECHO_T}no" >&6
15350 fi
15351 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15352 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15353    { (exit 1); exit 1; }; }
15354 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15355 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15356 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15357   echo $ECHO_N "(cached) $ECHO_C" >&6
15358 else
15359   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15360 case `$LD -v 2>&1 </dev/null` in
15361 *GNU* | *'with BFD'*)
15362   lt_cv_prog_gnu_ld=yes
15363   ;;
15364 *)
15365   lt_cv_prog_gnu_ld=no
15366   ;;
15367 esac
15368 fi
15369 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15370 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15371 with_gnu_ld=$lt_cv_prog_gnu_ld
15372
15373
15374
15375   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15376   # archiving commands below assume that GNU ld is being used.
15377   if test "$with_gnu_ld" = yes; then
15378     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15379     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'
15380
15381     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15382     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15383
15384     # If archive_cmds runs LD, not CC, wlarc should be empty
15385     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15386     #     investigate it a little bit more. (MM)
15387     wlarc='${wl}'
15388
15389     # ancient GNU ld didn't support --whole-archive et. al.
15390     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15391         grep 'no-whole-archive' > /dev/null; then
15392       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15393     else
15394       whole_archive_flag_spec_CXX=
15395     fi
15396   else
15397     with_gnu_ld=no
15398     wlarc=
15399
15400     # A generic and very simple default shared library creation
15401     # command for GNU C++ for the case where it uses the native
15402     # linker, instead of GNU ld.  If possible, this setting should
15403     # overridden to take advantage of the native linker features on
15404     # the platform it is being used on.
15405     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15406   fi
15407
15408   # Commands to make compiler produce verbose output that lists
15409   # what "hidden" libraries, object files and flags are used when
15410   # linking a shared library.
15411   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15412
15413 else
15414   GXX=no
15415   with_gnu_ld=no
15416   wlarc=
15417 fi
15418
15419 # PORTME: fill in a description of your system's C++ link characteristics
15420 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15421 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15422 ld_shlibs_CXX=yes
15423 case $host_os in
15424   aix3*)
15425     # FIXME: insert proper C++ library support
15426     ld_shlibs_CXX=no
15427     ;;
15428   aix4* | aix5*)
15429     if test "$host_cpu" = ia64; then
15430       # On IA64, the linker does run time linking by default, so we don't
15431       # have to do anything special.
15432       aix_use_runtimelinking=no
15433       exp_sym_flag='-Bexport'
15434       no_entry_flag=""
15435     else
15436       aix_use_runtimelinking=no
15437
15438       # Test if we are trying to use run time linking or normal
15439       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15440       # need to do runtime linking.
15441       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15442         for ld_flag in $LDFLAGS; do
15443           case $ld_flag in
15444           *-brtl*)
15445             aix_use_runtimelinking=yes
15446             break
15447             ;;
15448           esac
15449         done
15450       esac
15451
15452       exp_sym_flag='-bexport'
15453       no_entry_flag='-bnoentry'
15454     fi
15455
15456     # When large executables or shared objects are built, AIX ld can
15457     # have problems creating the table of contents.  If linking a library
15458     # or program results in "error TOC overflow" add -mminimal-toc to
15459     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15460     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15461
15462     archive_cmds_CXX=''
15463     hardcode_direct_CXX=yes
15464     hardcode_libdir_separator_CXX=':'
15465     link_all_deplibs_CXX=yes
15466
15467     if test "$GXX" = yes; then
15468       case $host_os in aix4.012|aix4.012.*)
15469       # We only want to do this on AIX 4.2 and lower, the check
15470       # below for broken collect2 doesn't work under 4.3+
15471         collect2name=`${CC} -print-prog-name=collect2`
15472         if test -f "$collect2name" && \
15473            strings "$collect2name" | grep resolve_lib_name >/dev/null
15474         then
15475           # We have reworked collect2
15476           hardcode_direct_CXX=yes
15477         else
15478           # We have old collect2
15479           hardcode_direct_CXX=unsupported
15480           # It fails to find uninstalled libraries when the uninstalled
15481           # path is not listed in the libpath.  Setting hardcode_minus_L
15482           # to unsupported forces relinking
15483           hardcode_minus_L_CXX=yes
15484           hardcode_libdir_flag_spec_CXX='-L$libdir'
15485           hardcode_libdir_separator_CXX=
15486         fi
15487       esac
15488       shared_flag='-shared'
15489     else
15490       # not using gcc
15491       if test "$host_cpu" = ia64; then
15492         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15493         # chokes on -Wl,-G. The following line is correct:
15494         shared_flag='-G'
15495       else
15496         if test "$aix_use_runtimelinking" = yes; then
15497           shared_flag='${wl}-G'
15498         else
15499           shared_flag='${wl}-bM:SRE'
15500         fi
15501       fi
15502     fi
15503
15504     # It seems that -bexpall does not export symbols beginning with
15505     # underscore (_), so it is better to generate a list of symbols to export.
15506     always_export_symbols_CXX=yes
15507     if test "$aix_use_runtimelinking" = yes; then
15508       # Warning - without using the other runtime loading flags (-brtl),
15509       # -berok will link without error, but may produce a broken library.
15510       allow_undefined_flag_CXX='-berok'
15511       # Determine the default libpath from the value encoded in an empty executable.
15512       cat >conftest.$ac_ext <<_ACEOF
15513 /* confdefs.h.  */
15514 _ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h.  */
15518
15519 int
15520 main ()
15521 {
15522
15523   ;
15524   return 0;
15525 }
15526 _ACEOF
15527 rm -f conftest.$ac_objext conftest$ac_exeext
15528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15529   (eval $ac_link) 2>conftest.er1
15530   ac_status=$?
15531   grep -v '^ *+' conftest.er1 >conftest.err
15532   rm -f conftest.er1
15533   cat conftest.err >&5
15534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535   (exit $ac_status); } &&
15536          { ac_try='test -z "$ac_cxx_werror_flag"
15537                          || test ! -s conftest.err'
15538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15539   (eval $ac_try) 2>&5
15540   ac_status=$?
15541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542   (exit $ac_status); }; } &&
15543          { ac_try='test -s conftest$ac_exeext'
15544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545   (eval $ac_try) 2>&5
15546   ac_status=$?
15547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548   (exit $ac_status); }; }; then
15549
15550 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15551 }'`
15552 # Check for a 64-bit object if we didn't find anything.
15553 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; }
15554 }'`; fi
15555 else
15556   echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15558
15559 fi
15560 rm -f conftest.err conftest.$ac_objext \
15561       conftest$ac_exeext conftest.$ac_ext
15562 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15563
15564       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15565
15566       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"
15567      else
15568       if test "$host_cpu" = ia64; then
15569         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15570         allow_undefined_flag_CXX="-z nodefs"
15571         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"
15572       else
15573         # Determine the default libpath from the value encoded in an empty executable.
15574         cat >conftest.$ac_ext <<_ACEOF
15575 /* confdefs.h.  */
15576 _ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h.  */
15580
15581 int
15582 main ()
15583 {
15584
15585   ;
15586   return 0;
15587 }
15588 _ACEOF
15589 rm -f conftest.$ac_objext conftest$ac_exeext
15590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15591   (eval $ac_link) 2>conftest.er1
15592   ac_status=$?
15593   grep -v '^ *+' conftest.er1 >conftest.err
15594   rm -f conftest.er1
15595   cat conftest.err >&5
15596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597   (exit $ac_status); } &&
15598          { ac_try='test -z "$ac_cxx_werror_flag"
15599                          || test ! -s conftest.err'
15600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601   (eval $ac_try) 2>&5
15602   ac_status=$?
15603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604   (exit $ac_status); }; } &&
15605          { ac_try='test -s conftest$ac_exeext'
15606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607   (eval $ac_try) 2>&5
15608   ac_status=$?
15609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610   (exit $ac_status); }; }; then
15611
15612 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15613 }'`
15614 # Check for a 64-bit object if we didn't find anything.
15615 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; }
15616 }'`; fi
15617 else
15618   echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15620
15621 fi
15622 rm -f conftest.err conftest.$ac_objext \
15623       conftest$ac_exeext conftest.$ac_ext
15624 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15625
15626         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15627         # Warning - without using the other run time loading flags,
15628         # -berok will link without error, but may produce a broken library.
15629         no_undefined_flag_CXX=' ${wl}-bernotok'
15630         allow_undefined_flag_CXX=' ${wl}-berok'
15631         # -bexpall does not export symbols beginning with underscore (_)
15632         always_export_symbols_CXX=yes
15633         # Exported symbols can be pulled into shared objects from archives
15634         whole_archive_flag_spec_CXX=' '
15635         archive_cmds_need_lc_CXX=yes
15636         # This is similar to how AIX traditionally builds it's shared libraries.
15637         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'
15638       fi
15639     fi
15640     ;;
15641   chorus*)
15642     case $cc_basename in
15643       *)
15644         # FIXME: insert proper C++ library support
15645         ld_shlibs_CXX=no
15646         ;;
15647     esac
15648     ;;
15649
15650
15651   cygwin* | mingw* | pw32*)
15652     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15653     # as there is no search path for DLLs.
15654     hardcode_libdir_flag_spec_CXX='-L$libdir'
15655     allow_undefined_flag_CXX=unsupported
15656     always_export_symbols_CXX=no
15657     enable_shared_with_static_runtimes_CXX=yes
15658
15659     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15660       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'
15661       # If the export-symbols file already is a .def file (1st line
15662       # is EXPORTS), use it as is; otherwise, prepend...
15663       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15664         cp $export_symbols $output_objdir/$soname.def;
15665       else
15666         echo EXPORTS > $output_objdir/$soname.def;
15667         cat $export_symbols >> $output_objdir/$soname.def;
15668       fi~
15669       $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'
15670     else
15671       ld_shlibs_CXX=no
15672     fi
15673   ;;
15674       darwin* | rhapsody*)
15675         case "$host_os" in
15676         rhapsody* | darwin1.[012])
15677          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15678          ;;
15679        *) # Darwin 1.3 on
15680          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15681            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15682          else
15683            case ${MACOSX_DEPLOYMENT_TARGET} in
15684              10.[012])
15685                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15686                ;;
15687              10.*)
15688                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15689                ;;
15690            esac
15691          fi
15692          ;;
15693         esac
15694       archive_cmds_need_lc_CXX=no
15695       hardcode_direct_CXX=no
15696       hardcode_automatic_CXX=yes
15697       hardcode_shlibpath_var_CXX=unsupported
15698       whole_archive_flag_spec_CXX=''
15699       link_all_deplibs_CXX=yes
15700
15701     if test "$GXX" = yes ; then
15702       lt_int_apple_cc_single_mod=no
15703       output_verbose_link_cmd='echo'
15704       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15705        lt_int_apple_cc_single_mod=yes
15706       fi
15707       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15708        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15709       else
15710           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'
15711         fi
15712         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15713         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15714           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15715             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}'
15716           else
15717             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}'
15718           fi
15719             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}'
15720       else
15721       case "$cc_basename" in
15722         xlc*)
15723          output_verbose_link_cmd='echo'
15724           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'
15725           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15726           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15727           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}'
15728           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}'
15729           ;;
15730        *)
15731          ld_shlibs_CXX=no
15732           ;;
15733       esac
15734       fi
15735         ;;
15736
15737   dgux*)
15738     case $cc_basename in
15739       ec++)
15740         # FIXME: insert proper C++ library support
15741         ld_shlibs_CXX=no
15742         ;;
15743       ghcx)
15744         # Green Hills C++ Compiler
15745         # FIXME: insert proper C++ library support
15746         ld_shlibs_CXX=no
15747         ;;
15748       *)
15749         # FIXME: insert proper C++ library support
15750         ld_shlibs_CXX=no
15751         ;;
15752     esac
15753     ;;
15754   freebsd12*)
15755     # C++ shared libraries reported to be fairly broken before switch to ELF
15756     ld_shlibs_CXX=no
15757     ;;
15758   freebsd-elf*)
15759     archive_cmds_need_lc_CXX=no
15760     ;;
15761   freebsd* | kfreebsd*-gnu)
15762     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15763     # conventions
15764     ld_shlibs_CXX=yes
15765     ;;
15766   gnu*)
15767     ;;
15768   hpux9*)
15769     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15770     hardcode_libdir_separator_CXX=:
15771     export_dynamic_flag_spec_CXX='${wl}-E'
15772     hardcode_direct_CXX=yes
15773     hardcode_minus_L_CXX=yes # Not in the search PATH,
15774                                 # but as the default
15775                                 # location of the library.
15776
15777     case $cc_basename in
15778     CC)
15779       # FIXME: insert proper C++ library support
15780       ld_shlibs_CXX=no
15781       ;;
15782     aCC)
15783       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'
15784       # Commands to make compiler produce verbose output that lists
15785       # what "hidden" libraries, object files and flags are used when
15786       # linking a shared library.
15787       #
15788       # There doesn't appear to be a way to prevent this compiler from
15789       # explicitly linking system object files so we need to strip them
15790       # from the output so that they don't get included in the library
15791       # dependencies.
15792       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'
15793       ;;
15794     *)
15795       if test "$GXX" = yes; then
15796         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'
15797       else
15798         # FIXME: insert proper C++ library support
15799         ld_shlibs_CXX=no
15800       fi
15801       ;;
15802     esac
15803     ;;
15804   hpux10*|hpux11*)
15805     if test $with_gnu_ld = no; then
15806       case "$host_cpu" in
15807       hppa*64*)
15808         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15809         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15810         hardcode_libdir_separator_CXX=:
15811         ;;
15812       ia64*)
15813         hardcode_libdir_flag_spec_CXX='-L$libdir'
15814         ;;
15815       *)
15816         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15817         hardcode_libdir_separator_CXX=:
15818         export_dynamic_flag_spec_CXX='${wl}-E'
15819         ;;
15820       esac
15821     fi
15822     case "$host_cpu" in
15823     hppa*64*)
15824       hardcode_direct_CXX=no
15825       hardcode_shlibpath_var_CXX=no
15826       ;;
15827     ia64*)
15828       hardcode_direct_CXX=no
15829       hardcode_shlibpath_var_CXX=no
15830       hardcode_minus_L_CXX=yes # Not in the search PATH,
15831                                               # but as the default
15832                                               # location of the library.
15833       ;;
15834     *)
15835       hardcode_direct_CXX=yes
15836       hardcode_minus_L_CXX=yes # Not in the search PATH,
15837                                               # but as the default
15838                                               # location of the library.
15839       ;;
15840     esac
15841
15842     case $cc_basename in
15843       CC)
15844         # FIXME: insert proper C++ library support
15845         ld_shlibs_CXX=no
15846         ;;
15847       aCC)
15848         case "$host_cpu" in
15849         hppa*64*|ia64*)
15850           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15851           ;;
15852         *)
15853           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15854           ;;
15855         esac
15856         # Commands to make compiler produce verbose output that lists
15857         # what "hidden" libraries, object files and flags are used when
15858         # linking a shared library.
15859         #
15860         # There doesn't appear to be a way to prevent this compiler from
15861         # explicitly linking system object files so we need to strip them
15862         # from the output so that they don't get included in the library
15863         # dependencies.
15864         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'
15865         ;;
15866       *)
15867         if test "$GXX" = yes; then
15868           if test $with_gnu_ld = no; then
15869             case "$host_cpu" in
15870             ia64*|hppa*64*)
15871               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15872               ;;
15873             *)
15874               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'
15875               ;;
15876             esac
15877           fi
15878         else
15879           # FIXME: insert proper C++ library support
15880           ld_shlibs_CXX=no
15881         fi
15882         ;;
15883     esac
15884     ;;
15885   irix5* | irix6*)
15886     case $cc_basename in
15887       CC)
15888         # SGI C++
15889         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'
15890
15891         # Archives containing C++ object files must be created using
15892         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15893         # necessary to make sure instantiated templates are included
15894         # in the archive.
15895         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15896         ;;
15897       *)
15898         if test "$GXX" = yes; then
15899           if test "$with_gnu_ld" = no; then
15900             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'
15901           else
15902             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'
15903           fi
15904         fi
15905         link_all_deplibs_CXX=yes
15906         ;;
15907     esac
15908     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15909     hardcode_libdir_separator_CXX=:
15910     ;;
15911   linux*)
15912     case $cc_basename in
15913       KCC)
15914         # Kuck and Associates, Inc. (KAI) C++ Compiler
15915
15916         # KCC will only create a shared library if the output file
15917         # ends with ".so" (or ".sl" for HP-UX), so rename the library
15918         # to its proper name (with version) after linking.
15919         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'
15920         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'
15921         # Commands to make compiler produce verbose output that lists
15922         # what "hidden" libraries, object files and flags are used when
15923         # linking a shared library.
15924         #
15925         # There doesn't appear to be a way to prevent this compiler from
15926         # explicitly linking system object files so we need to strip them
15927         # from the output so that they don't get included in the library
15928         # dependencies.
15929         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'
15930
15931         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15932         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15933
15934         # Archives containing C++ object files must be created using
15935         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15936         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15937         ;;
15938       icpc)
15939         # Intel C++
15940         with_gnu_ld=yes
15941         # version 8.0 and above of icpc choke on multiply defined symbols
15942         # if we add $predep_objects and $postdep_objects, however 7.1 and
15943         # earlier do not add the objects themselves.
15944         case `$CC -V 2>&1` in
15945         *"Version 7."*)
15946           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15947           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'
15948           ;;
15949         *)  # Version 8.0 or newer
15950           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15951         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15952           ;;
15953         esac
15954         archive_cmds_need_lc_CXX=no
15955         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15956         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15957         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15958         ;;
15959       cxx)
15960         # Compaq C++
15961         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15962         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'
15963
15964         runpath_var=LD_RUN_PATH
15965         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15966         hardcode_libdir_separator_CXX=:
15967
15968         # Commands to make compiler produce verbose output that lists
15969         # what "hidden" libraries, object files and flags are used when
15970         # linking a shared library.
15971         #
15972         # There doesn't appear to be a way to prevent this compiler from
15973         # explicitly linking system object files so we need to strip them
15974         # from the output so that they don't get included in the library
15975         # dependencies.
15976         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'
15977         ;;
15978     esac
15979     ;;
15980   lynxos*)
15981     # FIXME: insert proper C++ library support
15982     ld_shlibs_CXX=no
15983     ;;
15984   m88k*)
15985     # FIXME: insert proper C++ library support
15986     ld_shlibs_CXX=no
15987     ;;
15988   mvs*)
15989     case $cc_basename in
15990       cxx)
15991         # FIXME: insert proper C++ library support
15992         ld_shlibs_CXX=no
15993         ;;
15994       *)
15995         # FIXME: insert proper C++ library support
15996         ld_shlibs_CXX=no
15997         ;;
15998     esac
15999     ;;
16000   netbsd*)
16001     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16002       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16003       wlarc=
16004       hardcode_libdir_flag_spec_CXX='-R$libdir'
16005       hardcode_direct_CXX=yes
16006       hardcode_shlibpath_var_CXX=no
16007     fi
16008     # Workaround some broken pre-1.5 toolchains
16009     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16010     ;;
16011   openbsd2*)
16012     # C++ shared libraries are fairly broken
16013     ld_shlibs_CXX=no
16014     ;;
16015   openbsd*)
16016     hardcode_direct_CXX=yes
16017     hardcode_shlibpath_var_CXX=no
16018     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16019     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16020     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16021       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16022       export_dynamic_flag_spec_CXX='${wl}-E'
16023       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16024     fi
16025     output_verbose_link_cmd='echo'
16026     ;;
16027   osf3*)
16028     case $cc_basename in
16029       KCC)
16030         # Kuck and Associates, Inc. (KAI) C++ Compiler
16031
16032         # KCC will only create a shared library if the output file
16033         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16034         # to its proper name (with version) after linking.
16035         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'
16036
16037         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16038         hardcode_libdir_separator_CXX=:
16039
16040         # Archives containing C++ object files must be created using
16041         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16042         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16043
16044         ;;
16045       RCC)
16046         # Rational C++ 2.4.1
16047         # FIXME: insert proper C++ library support
16048         ld_shlibs_CXX=no
16049         ;;
16050       cxx)
16051         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16052         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'
16053
16054         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16055         hardcode_libdir_separator_CXX=:
16056
16057         # Commands to make compiler produce verbose output that lists
16058         # what "hidden" libraries, object files and flags are used when
16059         # linking a shared library.
16060         #
16061         # There doesn't appear to be a way to prevent this compiler from
16062         # explicitly linking system object files so we need to strip them
16063         # from the output so that they don't get included in the library
16064         # dependencies.
16065         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'
16066         ;;
16067       *)
16068         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16069           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16070           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'
16071
16072           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16073           hardcode_libdir_separator_CXX=:
16074
16075           # Commands to make compiler produce verbose output that lists
16076           # what "hidden" libraries, object files and flags are used when
16077           # linking a shared library.
16078           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16079
16080         else
16081           # FIXME: insert proper C++ library support
16082           ld_shlibs_CXX=no
16083         fi
16084         ;;
16085     esac
16086     ;;
16087   osf4* | osf5*)
16088     case $cc_basename in
16089       KCC)
16090         # Kuck and Associates, Inc. (KAI) C++ Compiler
16091
16092         # KCC will only create a shared library if the output file
16093         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16094         # to its proper name (with version) after linking.
16095         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'
16096
16097         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16098         hardcode_libdir_separator_CXX=:
16099
16100         # Archives containing C++ object files must be created using
16101         # the KAI C++ compiler.
16102         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16103         ;;
16104       RCC)
16105         # Rational C++ 2.4.1
16106         # FIXME: insert proper C++ library support
16107         ld_shlibs_CXX=no
16108         ;;
16109       cxx)
16110         allow_undefined_flag_CXX=' -expect_unresolved \*'
16111         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'
16112         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16113           echo "-hidden">> $lib.exp~
16114           $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~
16115           $rm $lib.exp'
16116
16117         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16118         hardcode_libdir_separator_CXX=:
16119
16120         # Commands to make compiler produce verbose output that lists
16121         # what "hidden" libraries, object files and flags are used when
16122         # linking a shared library.
16123         #
16124         # There doesn't appear to be a way to prevent this compiler from
16125         # explicitly linking system object files so we need to strip them
16126         # from the output so that they don't get included in the library
16127         # dependencies.
16128         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'
16129         ;;
16130       *)
16131         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16132           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16133          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'
16134
16135           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16136           hardcode_libdir_separator_CXX=:
16137
16138           # Commands to make compiler produce verbose output that lists
16139           # what "hidden" libraries, object files and flags are used when
16140           # linking a shared library.
16141           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16142
16143         else
16144           # FIXME: insert proper C++ library support
16145           ld_shlibs_CXX=no
16146         fi
16147         ;;
16148     esac
16149     ;;
16150   psos*)
16151     # FIXME: insert proper C++ library support
16152     ld_shlibs_CXX=no
16153     ;;
16154   sco*)
16155     archive_cmds_need_lc_CXX=no
16156     case $cc_basename in
16157       CC)
16158         # FIXME: insert proper C++ library support
16159         ld_shlibs_CXX=no
16160         ;;
16161       *)
16162         # FIXME: insert proper C++ library support
16163         ld_shlibs_CXX=no
16164         ;;
16165     esac
16166     ;;
16167   sunos4*)
16168     case $cc_basename in
16169       CC)
16170         # Sun C++ 4.x
16171         # FIXME: insert proper C++ library support
16172         ld_shlibs_CXX=no
16173         ;;
16174       lcc)
16175         # Lucid
16176         # FIXME: insert proper C++ library support
16177         ld_shlibs_CXX=no
16178         ;;
16179       *)
16180         # FIXME: insert proper C++ library support
16181         ld_shlibs_CXX=no
16182         ;;
16183     esac
16184     ;;
16185   solaris*)
16186     case $cc_basename in
16187       CC)
16188         # Sun C++ 4.2, 5.x and Centerline C++
16189         no_undefined_flag_CXX=' -zdefs'
16190         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16191         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16192         $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'
16193
16194         hardcode_libdir_flag_spec_CXX='-R$libdir'
16195         hardcode_shlibpath_var_CXX=no
16196         case $host_os in
16197           solaris2.0-5 | solaris2.0-5.*) ;;
16198           *)
16199             # The C++ compiler is used as linker so we must use $wl
16200             # flag to pass the commands to the underlying system
16201             # linker.
16202             # Supported since Solaris 2.6 (maybe 2.5.1?)
16203             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16204             ;;
16205         esac
16206         link_all_deplibs_CXX=yes
16207
16208         # Commands to make compiler produce verbose output that lists
16209         # what "hidden" libraries, object files and flags are used when
16210         # linking a shared library.
16211         #
16212         # There doesn't appear to be a way to prevent this compiler from
16213         # explicitly linking system object files so we need to strip them
16214         # from the output so that they don't get included in the library
16215         # dependencies.
16216         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'
16217
16218         # Archives containing C++ object files must be created using
16219         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16220         # necessary to make sure instantiated templates are included
16221         # in the archive.
16222         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16223         ;;
16224       gcx)
16225         # Green Hills C++ Compiler
16226         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16227
16228         # The C++ compiler must be used to create the archive.
16229         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16230         ;;
16231       *)
16232         # GNU C++ compiler with Solaris linker
16233         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16234           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16235           if $CC --version | grep -v '^2\.7' > /dev/null; then
16236             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16237             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16238                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16239
16240             # Commands to make compiler produce verbose output that lists
16241             # what "hidden" libraries, object files and flags are used when
16242             # linking a shared library.
16243             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16244           else
16245             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16246             # platform.
16247             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16248             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16249                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16250
16251             # Commands to make compiler produce verbose output that lists
16252             # what "hidden" libraries, object files and flags are used when
16253             # linking a shared library.
16254             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16255           fi
16256
16257           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16258         fi
16259         ;;
16260     esac
16261     ;;
16262   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16263     archive_cmds_need_lc_CXX=no
16264     ;;
16265   tandem*)
16266     case $cc_basename in
16267       NCC)
16268         # NonStop-UX NCC 3.20
16269         # FIXME: insert proper C++ library support
16270         ld_shlibs_CXX=no
16271         ;;
16272       *)
16273         # FIXME: insert proper C++ library support
16274         ld_shlibs_CXX=no
16275         ;;
16276     esac
16277     ;;
16278   vxworks*)
16279     # FIXME: insert proper C++ library support
16280     ld_shlibs_CXX=no
16281     ;;
16282   *)
16283     # FIXME: insert proper C++ library support
16284     ld_shlibs_CXX=no
16285     ;;
16286 esac
16287 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16288 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16289 test "$ld_shlibs_CXX" = no && can_build_shared=no
16290
16291 GCC_CXX="$GXX"
16292 LD_CXX="$LD"
16293
16294
16295 cat > conftest.$ac_ext <<EOF
16296 class Foo
16297 {
16298 public:
16299   Foo (void) { a = 0; }
16300 private:
16301   int a;
16302 };
16303 EOF
16304
16305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16306   (eval $ac_compile) 2>&5
16307   ac_status=$?
16308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309   (exit $ac_status); }; then
16310   # Parse the compiler output and extract the necessary
16311   # objects, libraries and library flags.
16312
16313   # Sentinel used to keep track of whether or not we are before
16314   # the conftest object file.
16315   pre_test_object_deps_done=no
16316
16317   # The `*' in the case matches for architectures that use `case' in
16318   # $output_verbose_cmd can trigger glob expansion during the loop
16319   # eval without this substitution.
16320   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16321
16322   for p in `eval $output_verbose_link_cmd`; do
16323     case $p in
16324
16325     -L* | -R* | -l*)
16326        # Some compilers place space between "-{L,R}" and the path.
16327        # Remove the space.
16328        if test $p = "-L" \
16329           || test $p = "-R"; then
16330          prev=$p
16331          continue
16332        else
16333          prev=
16334        fi
16335
16336        if test "$pre_test_object_deps_done" = no; then
16337          case $p in
16338          -L* | -R*)
16339            # Internal compiler library paths should come after those
16340            # provided the user.  The postdeps already come after the
16341            # user supplied libs so there is no need to process them.
16342            if test -z "$compiler_lib_search_path_CXX"; then
16343              compiler_lib_search_path_CXX="${prev}${p}"
16344            else
16345              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16346            fi
16347            ;;
16348          # The "-l" case would never come before the object being
16349          # linked, so don't bother handling this case.
16350          esac
16351        else
16352          if test -z "$postdeps_CXX"; then
16353            postdeps_CXX="${prev}${p}"
16354          else
16355            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16356          fi
16357        fi
16358        ;;
16359
16360     *.$objext)
16361        # This assumes that the test object file only shows up
16362        # once in the compiler output.
16363        if test "$p" = "conftest.$objext"; then
16364          pre_test_object_deps_done=yes
16365          continue
16366        fi
16367
16368        if test "$pre_test_object_deps_done" = no; then
16369          if test -z "$predep_objects_CXX"; then
16370            predep_objects_CXX="$p"
16371          else
16372            predep_objects_CXX="$predep_objects_CXX $p"
16373          fi
16374        else
16375          if test -z "$postdep_objects_CXX"; then
16376            postdep_objects_CXX="$p"
16377          else
16378            postdep_objects_CXX="$postdep_objects_CXX $p"
16379          fi
16380        fi
16381        ;;
16382
16383     *) ;; # Ignore the rest.
16384
16385     esac
16386   done
16387
16388   # Clean up.
16389   rm -f a.out a.exe
16390 else
16391   echo "libtool.m4: error: problem compiling CXX test program"
16392 fi
16393
16394 $rm -f confest.$objext
16395
16396 case " $postdeps_CXX " in
16397 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16398 esac
16399
16400 lt_prog_compiler_wl_CXX=
16401 lt_prog_compiler_pic_CXX=
16402 lt_prog_compiler_static_CXX=
16403
16404 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16405 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16406
16407   # C++ specific cases for pic, static, wl, etc.
16408   if test "$GXX" = yes; then
16409     lt_prog_compiler_wl_CXX='-Wl,'
16410     lt_prog_compiler_static_CXX='-static'
16411
16412     case $host_os in
16413     aix*)
16414       # All AIX code is PIC.
16415       if test "$host_cpu" = ia64; then
16416         # AIX 5 now supports IA64 processor
16417         lt_prog_compiler_static_CXX='-Bstatic'
16418       fi
16419       ;;
16420     amigaos*)
16421       # FIXME: we need at least 68020 code to build shared libraries, but
16422       # adding the `-m68020' flag to GCC prevents building anything better,
16423       # like `-m68040'.
16424       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16425       ;;
16426     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16427       # PIC is the default for these OSes.
16428       ;;
16429     mingw* | os2* | pw32*)
16430       # This hack is so that the source file can tell whether it is being
16431       # built for inclusion in a dll (and should export symbols for example).
16432       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16433       ;;
16434     darwin* | rhapsody*)
16435       # PIC is the default on this platform
16436       # Common symbols not allowed in MH_DYLIB files
16437       lt_prog_compiler_pic_CXX='-fno-common'
16438       ;;
16439     *djgpp*)
16440       # DJGPP does not support shared libraries at all
16441       lt_prog_compiler_pic_CXX=
16442       ;;
16443     sysv4*MP*)
16444       if test -d /usr/nec; then
16445         lt_prog_compiler_pic_CXX=-Kconform_pic
16446       fi
16447       ;;
16448     hpux*)
16449       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16450       # not for PA HP-UX.
16451       case "$host_cpu" in
16452       hppa*64*|ia64*)
16453         ;;
16454       *)
16455         lt_prog_compiler_pic_CXX='-fPIC'
16456         ;;
16457       esac
16458       ;;
16459     *)
16460       lt_prog_compiler_pic_CXX='-fPIC'
16461       ;;
16462     esac
16463   else
16464     case $host_os in
16465       aix4* | aix5*)
16466         # All AIX code is PIC.
16467         if test "$host_cpu" = ia64; then
16468           # AIX 5 now supports IA64 processor
16469           lt_prog_compiler_static_CXX='-Bstatic'
16470         else
16471           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16472         fi
16473         ;;
16474       chorus*)
16475         case $cc_basename in
16476         cxch68)
16477           # Green Hills C++ Compiler
16478           # _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"
16479           ;;
16480         esac
16481         ;;
16482        darwin*)
16483          # PIC is the default on this platform
16484          # Common symbols not allowed in MH_DYLIB files
16485          case "$cc_basename" in
16486            xlc*)
16487            lt_prog_compiler_pic_CXX='-qnocommon'
16488            lt_prog_compiler_wl_CXX='-Wl,'
16489            ;;
16490          esac
16491        ;;
16492       dgux*)
16493         case $cc_basename in
16494           ec++)
16495             lt_prog_compiler_pic_CXX='-KPIC'
16496             ;;
16497           ghcx)
16498             # Green Hills C++ Compiler
16499             lt_prog_compiler_pic_CXX='-pic'
16500             ;;
16501           *)
16502             ;;
16503         esac
16504         ;;
16505       freebsd* | kfreebsd*-gnu)
16506         # FreeBSD uses GNU C++
16507         ;;
16508       hpux9* | hpux10* | hpux11*)
16509         case $cc_basename in
16510           CC)
16511             lt_prog_compiler_wl_CXX='-Wl,'
16512             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16513             if test "$host_cpu" != ia64; then
16514               lt_prog_compiler_pic_CXX='+Z'
16515             fi
16516             ;;
16517           aCC)
16518             lt_prog_compiler_wl_CXX='-Wl,'
16519             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16520             case "$host_cpu" in
16521             hppa*64*|ia64*)
16522               # +Z the default
16523               ;;
16524             *)
16525               lt_prog_compiler_pic_CXX='+Z'
16526               ;;
16527             esac
16528             ;;
16529           *)
16530             ;;
16531         esac
16532         ;;
16533       irix5* | irix6* | nonstopux*)
16534         case $cc_basename in
16535           CC)
16536             lt_prog_compiler_wl_CXX='-Wl,'
16537             lt_prog_compiler_static_CXX='-non_shared'
16538             # CC pic flag -KPIC is the default.
16539             ;;
16540           *)
16541             ;;
16542         esac
16543         ;;
16544       linux*)
16545         case $cc_basename in
16546           KCC)
16547             # KAI C++ Compiler
16548             lt_prog_compiler_wl_CXX='--backend -Wl,'
16549             lt_prog_compiler_pic_CXX='-fPIC'
16550             ;;
16551           icpc)
16552             # Intel C++
16553             lt_prog_compiler_wl_CXX='-Wl,'
16554             lt_prog_compiler_pic_CXX='-KPIC'
16555             lt_prog_compiler_static_CXX='-static'
16556             ;;
16557           cxx)
16558             # Compaq C++
16559             # Make sure the PIC flag is empty.  It appears that all Alpha
16560             # Linux and Compaq Tru64 Unix objects are PIC.
16561             lt_prog_compiler_pic_CXX=
16562             lt_prog_compiler_static_CXX='-non_shared'
16563             ;;
16564           *)
16565             ;;
16566         esac
16567         ;;
16568       lynxos*)
16569         ;;
16570       m88k*)
16571         ;;
16572       mvs*)
16573         case $cc_basename in
16574           cxx)
16575             lt_prog_compiler_pic_CXX='-W c,exportall'
16576             ;;
16577           *)
16578             ;;
16579         esac
16580         ;;
16581       netbsd*)
16582         ;;
16583       osf3* | osf4* | osf5*)
16584         case $cc_basename in
16585           KCC)
16586             lt_prog_compiler_wl_CXX='--backend -Wl,'
16587             ;;
16588           RCC)
16589             # Rational C++ 2.4.1
16590             lt_prog_compiler_pic_CXX='-pic'
16591             ;;
16592           cxx)
16593             # Digital/Compaq C++
16594             lt_prog_compiler_wl_CXX='-Wl,'
16595             # Make sure the PIC flag is empty.  It appears that all Alpha
16596             # Linux and Compaq Tru64 Unix objects are PIC.
16597             lt_prog_compiler_pic_CXX=
16598             lt_prog_compiler_static_CXX='-non_shared'
16599             ;;
16600           *)
16601             ;;
16602         esac
16603         ;;
16604       psos*)
16605         ;;
16606       sco*)
16607         case $cc_basename in
16608           CC)
16609             lt_prog_compiler_pic_CXX='-fPIC'
16610             ;;
16611           *)
16612             ;;
16613         esac
16614         ;;
16615       solaris*)
16616         case $cc_basename in
16617           CC)
16618             # Sun C++ 4.2, 5.x and Centerline C++
16619             lt_prog_compiler_pic_CXX='-KPIC'
16620             lt_prog_compiler_static_CXX='-Bstatic'
16621             lt_prog_compiler_wl_CXX='-Qoption ld '
16622             ;;
16623           gcx)
16624             # Green Hills C++ Compiler
16625             lt_prog_compiler_pic_CXX='-PIC'
16626             ;;
16627           *)
16628             ;;
16629         esac
16630         ;;
16631       sunos4*)
16632         case $cc_basename in
16633           CC)
16634             # Sun C++ 4.x
16635             lt_prog_compiler_pic_CXX='-pic'
16636             lt_prog_compiler_static_CXX='-Bstatic'
16637             ;;
16638           lcc)
16639             # Lucid
16640             lt_prog_compiler_pic_CXX='-pic'
16641             ;;
16642           *)
16643             ;;
16644         esac
16645         ;;
16646       tandem*)
16647         case $cc_basename in
16648           NCC)
16649             # NonStop-UX NCC 3.20
16650             lt_prog_compiler_pic_CXX='-KPIC'
16651             ;;
16652           *)
16653             ;;
16654         esac
16655         ;;
16656       unixware*)
16657         ;;
16658       vxworks*)
16659         ;;
16660       *)
16661         lt_prog_compiler_can_build_shared_CXX=no
16662         ;;
16663     esac
16664   fi
16665
16666 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16667 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16668
16669 #
16670 # Check to make sure the PIC flag actually works.
16671 #
16672 if test -n "$lt_prog_compiler_pic_CXX"; then
16673
16674 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16675 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16676 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16677   echo $ECHO_N "(cached) $ECHO_C" >&6
16678 else
16679   lt_prog_compiler_pic_works_CXX=no
16680   ac_outfile=conftest.$ac_objext
16681    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16682    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16683    # Insert the option either (1) after the last *FLAGS variable, or
16684    # (2) before a word containing "conftest.", or (3) at the end.
16685    # Note that $ac_compile itself does not contain backslashes and begins
16686    # with a dollar sign (not a hyphen), so the echo should work correctly.
16687    # The option is referenced via a variable to avoid confusing sed.
16688    lt_compile=`echo "$ac_compile" | $SED \
16689    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16690    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16691    -e 's:$: $lt_compiler_flag:'`
16692    (eval echo "\"\$as_me:16692: $lt_compile\"" >&5)
16693    (eval "$lt_compile" 2>conftest.err)
16694    ac_status=$?
16695    cat conftest.err >&5
16696    echo "$as_me:16696: \$? = $ac_status" >&5
16697    if (exit $ac_status) && test -s "$ac_outfile"; then
16698      # The compiler can only warn and ignore the option if not recognized
16699      # So say no if there are warnings
16700      if test ! -s conftest.err; then
16701        lt_prog_compiler_pic_works_CXX=yes
16702      fi
16703    fi
16704    $rm conftest*
16705
16706 fi
16707 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16708 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16709
16710 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16711     case $lt_prog_compiler_pic_CXX in
16712      "" | " "*) ;;
16713      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16714      esac
16715 else
16716     lt_prog_compiler_pic_CXX=
16717      lt_prog_compiler_can_build_shared_CXX=no
16718 fi
16719
16720 fi
16721 case "$host_os" in
16722   # For platforms which do not support PIC, -DPIC is meaningless:
16723   *djgpp*)
16724     lt_prog_compiler_pic_CXX=
16725     ;;
16726   *)
16727     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16728     ;;
16729 esac
16730
16731 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16732 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16733 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16734   echo $ECHO_N "(cached) $ECHO_C" >&6
16735 else
16736   lt_cv_prog_compiler_c_o_CXX=no
16737    $rm -r conftest 2>/dev/null
16738    mkdir conftest
16739    cd conftest
16740    mkdir out
16741    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16742
16743    lt_compiler_flag="-o out/conftest2.$ac_objext"
16744    # Insert the option either (1) after the last *FLAGS variable, or
16745    # (2) before a word containing "conftest.", or (3) at the end.
16746    # Note that $ac_compile itself does not contain backslashes and begins
16747    # with a dollar sign (not a hyphen), so the echo should work correctly.
16748    lt_compile=`echo "$ac_compile" | $SED \
16749    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16750    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16751    -e 's:$: $lt_compiler_flag:'`
16752    (eval echo "\"\$as_me:16752: $lt_compile\"" >&5)
16753    (eval "$lt_compile" 2>out/conftest.err)
16754    ac_status=$?
16755    cat out/conftest.err >&5
16756    echo "$as_me:16756: \$? = $ac_status" >&5
16757    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16758    then
16759      # The compiler can only warn and ignore the option if not recognized
16760      # So say no if there are warnings
16761      if test ! -s out/conftest.err; then
16762        lt_cv_prog_compiler_c_o_CXX=yes
16763      fi
16764    fi
16765    chmod u+w .
16766    $rm conftest*
16767    # SGI C++ compiler will create directory out/ii_files/ for
16768    # template instantiation
16769    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16770    $rm out/* && rmdir out
16771    cd ..
16772    rmdir conftest
16773    $rm conftest*
16774
16775 fi
16776 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16777 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16778
16779
16780 hard_links="nottested"
16781 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16782   # do not overwrite the value of need_locks provided by the user
16783   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16784 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16785   hard_links=yes
16786   $rm conftest*
16787   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16788   touch conftest.a
16789   ln conftest.a conftest.b 2>&5 || hard_links=no
16790   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16791   echo "$as_me:$LINENO: result: $hard_links" >&5
16792 echo "${ECHO_T}$hard_links" >&6
16793   if test "$hard_links" = no; then
16794     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16795 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16796     need_locks=warn
16797   fi
16798 else
16799   need_locks=no
16800 fi
16801
16802 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16803 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16804
16805   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16806   case $host_os in
16807   aix4* | aix5*)
16808     # If we're using GNU nm, then we don't want the "-C" option.
16809     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16810     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16811       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'
16812     else
16813       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'
16814     fi
16815     ;;
16816   pw32*)
16817     export_symbols_cmds_CXX="$ltdll_cmds"
16818   ;;
16819   cygwin* | mingw*)
16820     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16821   ;;
16822   *)
16823     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16824   ;;
16825   esac
16826
16827 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16828 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16829 test "$ld_shlibs_CXX" = no && can_build_shared=no
16830
16831 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16832 if test "$GCC" = yes; then
16833   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16834 fi
16835
16836 #
16837 # Do we need to explicitly link libc?
16838 #
16839 case "x$archive_cmds_need_lc_CXX" in
16840 x|xyes)
16841   # Assume -lc should be added
16842   archive_cmds_need_lc_CXX=yes
16843
16844   if test "$enable_shared" = yes && test "$GCC" = yes; then
16845     case $archive_cmds_CXX in
16846     *'~'*)
16847       # FIXME: we may have to deal with multi-command sequences.
16848       ;;
16849     '$CC '*)
16850       # Test whether the compiler implicitly links with -lc since on some
16851       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16852       # to ld, don't add -lc before -lgcc.
16853       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16854 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16855       $rm conftest*
16856       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16857
16858       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16859   (eval $ac_compile) 2>&5
16860   ac_status=$?
16861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862   (exit $ac_status); } 2>conftest.err; then
16863         soname=conftest
16864         lib=conftest
16865         libobjs=conftest.$ac_objext
16866         deplibs=
16867         wl=$lt_prog_compiler_wl_CXX
16868         compiler_flags=-v
16869         linker_flags=-v
16870         verstring=
16871         output_objdir=.
16872         libname=conftest
16873         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16874         allow_undefined_flag_CXX=
16875         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16876   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16877   ac_status=$?
16878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879   (exit $ac_status); }
16880         then
16881           archive_cmds_need_lc_CXX=no
16882         else
16883           archive_cmds_need_lc_CXX=yes
16884         fi
16885         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16886       else
16887         cat conftest.err 1>&5
16888       fi
16889       $rm conftest*
16890       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16891 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16892       ;;
16893     esac
16894   fi
16895   ;;
16896 esac
16897
16898 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16899 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16900 library_names_spec=
16901 libname_spec='lib$name'
16902 soname_spec=
16903 shrext_cmds=".so"
16904 postinstall_cmds=
16905 postuninstall_cmds=
16906 finish_cmds=
16907 finish_eval=
16908 shlibpath_var=
16909 shlibpath_overrides_runpath=unknown
16910 version_type=none
16911 dynamic_linker="$host_os ld.so"
16912 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16913 if test "$GCC" = yes; then
16914   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16915   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16916     # if the path contains ";" then we assume it to be the separator
16917     # otherwise default to the standard path separator (i.e. ":") - it is
16918     # assumed that no part of a normal pathname contains ";" but that should
16919     # okay in the real world where ";" in dirpaths is itself problematic.
16920     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16921   else
16922     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16923   fi
16924 else
16925   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16926 fi
16927 need_lib_prefix=unknown
16928 hardcode_into_libs=no
16929
16930 # when you set need_version to no, make sure it does not cause -set_version
16931 # flags to be left without arguments
16932 need_version=unknown
16933
16934 case $host_os in
16935 aix3*)
16936   version_type=linux
16937   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16938   shlibpath_var=LIBPATH
16939
16940   # AIX 3 has no versioning support, so we append a major version to the name.
16941   soname_spec='${libname}${release}${shared_ext}$major'
16942   ;;
16943
16944 aix4* | aix5*)
16945   version_type=linux
16946   need_lib_prefix=no
16947   need_version=no
16948   hardcode_into_libs=yes
16949   if test "$host_cpu" = ia64; then
16950     # AIX 5 supports IA64
16951     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16952     shlibpath_var=LD_LIBRARY_PATH
16953   else
16954     # With GCC up to 2.95.x, collect2 would create an import file
16955     # for dependence libraries.  The import file would start with
16956     # the line `#! .'.  This would cause the generated library to
16957     # depend on `.', always an invalid library.  This was fixed in
16958     # development snapshots of GCC prior to 3.0.
16959     case $host_os in
16960       aix4 | aix4.[01] | aix4.[01].*)
16961       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16962            echo ' yes '
16963            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16964         :
16965       else
16966         can_build_shared=no
16967       fi
16968       ;;
16969     esac
16970     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16971     # soname into executable. Probably we can add versioning support to
16972     # collect2, so additional links can be useful in future.
16973     if test "$aix_use_runtimelinking" = yes; then
16974       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16975       # instead of lib<name>.a to let people know that these are not
16976       # typical AIX shared libraries.
16977       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16978     else
16979       # We preserve .a as extension for shared libraries through AIX4.2
16980       # and later when we are not doing run time linking.
16981       library_names_spec='${libname}${release}.a $libname.a'
16982       soname_spec='${libname}${release}${shared_ext}$major'
16983     fi
16984     shlibpath_var=LIBPATH
16985   fi
16986   ;;
16987
16988 amigaos*)
16989   library_names_spec='$libname.ixlibrary $libname.a'
16990   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16991   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'
16992   ;;
16993
16994 beos*)
16995   library_names_spec='${libname}${shared_ext}'
16996   dynamic_linker="$host_os ld.so"
16997   shlibpath_var=LIBRARY_PATH
16998   ;;
16999
17000 bsdi[45]*)
17001   version_type=linux
17002   need_version=no
17003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004   soname_spec='${libname}${release}${shared_ext}$major'
17005   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17006   shlibpath_var=LD_LIBRARY_PATH
17007   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17008   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17009   # the default ld.so.conf also contains /usr/contrib/lib and
17010   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17011   # libtool to hard-code these into programs
17012   ;;
17013
17014 cygwin* | mingw* | pw32*)
17015   version_type=windows
17016   shrext_cmds=".dll"
17017   need_version=no
17018   need_lib_prefix=no
17019
17020   case $GCC,$host_os in
17021   yes,cygwin* | yes,mingw* | yes,pw32*)
17022     library_names_spec='$libname.dll.a'
17023     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17024     postinstall_cmds='base_file=`basename \${file}`~
17025       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17026       dldir=$destdir/`dirname \$dlpath`~
17027       test -d \$dldir || mkdir -p \$dldir~
17028       $install_prog $dir/$dlname \$dldir/$dlname'
17029     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17030       dlpath=$dir/\$dldll~
17031        $rm \$dlpath'
17032     shlibpath_overrides_runpath=yes
17033
17034     case $host_os in
17035     cygwin*)
17036       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17037       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17038       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17039       ;;
17040     mingw*)
17041       # MinGW DLLs use traditional 'lib' prefix
17042       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17043       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17044       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17045         # It is most probably a Windows format PATH printed by
17046         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17047         # path with ; separators, and with drive letters. We can handle the
17048         # drive letters (cygwin fileutils understands them), so leave them,
17049         # especially as we might pass files found there to a mingw objdump,
17050         # which wouldn't understand a cygwinified path. Ahh.
17051         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17052       else
17053         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17054       fi
17055       ;;
17056     pw32*)
17057       # pw32 DLLs use 'pw' prefix rather than 'lib'
17058       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17059       ;;
17060     esac
17061     ;;
17062
17063   *)
17064     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17065     ;;
17066   esac
17067   dynamic_linker='Win32 ld.exe'
17068   # FIXME: first we should search . and the directory the executable is in
17069   shlibpath_var=PATH
17070   ;;
17071
17072 darwin* | rhapsody*)
17073   dynamic_linker="$host_os dyld"
17074   version_type=darwin
17075   need_lib_prefix=no
17076   need_version=no
17077   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17078   soname_spec='${libname}${release}${major}$shared_ext'
17079   shlibpath_overrides_runpath=yes
17080   shlibpath_var=DYLD_LIBRARY_PATH
17081   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17082   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17083   if test "$GCC" = yes; then
17084     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"`
17085   else
17086     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17087   fi
17088   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17089   ;;
17090
17091 dgux*)
17092   version_type=linux
17093   need_lib_prefix=no
17094   need_version=no
17095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17096   soname_spec='${libname}${release}${shared_ext}$major'
17097   shlibpath_var=LD_LIBRARY_PATH
17098   ;;
17099
17100 freebsd1*)
17101   dynamic_linker=no
17102   ;;
17103
17104 kfreebsd*-gnu)
17105   version_type=linux
17106   need_lib_prefix=no
17107   need_version=no
17108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17109   soname_spec='${libname}${release}${shared_ext}$major'
17110   shlibpath_var=LD_LIBRARY_PATH
17111   shlibpath_overrides_runpath=no
17112   hardcode_into_libs=yes
17113   dynamic_linker='GNU ld.so'
17114   ;;
17115
17116 freebsd*)
17117   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17118   version_type=freebsd-$objformat
17119   case $version_type in
17120     freebsd-elf*)
17121       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17122       need_version=no
17123       need_lib_prefix=no
17124       ;;
17125     freebsd-*)
17126       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17127       need_version=yes
17128       ;;
17129   esac
17130   shlibpath_var=LD_LIBRARY_PATH
17131   case $host_os in
17132   freebsd2*)
17133     shlibpath_overrides_runpath=yes
17134     ;;
17135   freebsd3.01* | freebsdelf3.01*)
17136     shlibpath_overrides_runpath=yes
17137     hardcode_into_libs=yes
17138     ;;
17139   *) # from 3.2 on
17140     shlibpath_overrides_runpath=no
17141     hardcode_into_libs=yes
17142     ;;
17143   esac
17144   ;;
17145
17146 gnu*)
17147   version_type=linux
17148   need_lib_prefix=no
17149   need_version=no
17150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17151   soname_spec='${libname}${release}${shared_ext}$major'
17152   shlibpath_var=LD_LIBRARY_PATH
17153   hardcode_into_libs=yes
17154   ;;
17155
17156 hpux9* | hpux10* | hpux11*)
17157   # Give a soname corresponding to the major version so that dld.sl refuses to
17158   # link against other versions.
17159   version_type=sunos
17160   need_lib_prefix=no
17161   need_version=no
17162   case "$host_cpu" in
17163   ia64*)
17164     shrext_cmds='.so'
17165     hardcode_into_libs=yes
17166     dynamic_linker="$host_os dld.so"
17167     shlibpath_var=LD_LIBRARY_PATH
17168     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17169     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17170     soname_spec='${libname}${release}${shared_ext}$major'
17171     if test "X$HPUX_IA64_MODE" = X32; then
17172       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17173     else
17174       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17175     fi
17176     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17177     ;;
17178    hppa*64*)
17179      shrext_cmds='.sl'
17180      hardcode_into_libs=yes
17181      dynamic_linker="$host_os dld.sl"
17182      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17183      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17184      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17185      soname_spec='${libname}${release}${shared_ext}$major'
17186      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17187      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17188      ;;
17189    *)
17190     shrext_cmds='.sl'
17191     dynamic_linker="$host_os dld.sl"
17192     shlibpath_var=SHLIB_PATH
17193     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17194     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17195     soname_spec='${libname}${release}${shared_ext}$major'
17196     ;;
17197   esac
17198   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17199   postinstall_cmds='chmod 555 $lib'
17200   ;;
17201
17202 irix5* | irix6* | nonstopux*)
17203   case $host_os in
17204     nonstopux*) version_type=nonstopux ;;
17205     *)
17206         if test "$lt_cv_prog_gnu_ld" = yes; then
17207                 version_type=linux
17208         else
17209                 version_type=irix
17210         fi ;;
17211   esac
17212   need_lib_prefix=no
17213   need_version=no
17214   soname_spec='${libname}${release}${shared_ext}$major'
17215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17216   case $host_os in
17217   irix5* | nonstopux*)
17218     libsuff= shlibsuff=
17219     ;;
17220   *)
17221     case $LD in # libtool.m4 will add one of these switches to LD
17222     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17223       libsuff= shlibsuff= libmagic=32-bit;;
17224     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17225       libsuff=32 shlibsuff=N32 libmagic=N32;;
17226     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17227       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17228     *) libsuff= shlibsuff= libmagic=never-match;;
17229     esac
17230     ;;
17231   esac
17232   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17233   shlibpath_overrides_runpath=no
17234   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17235   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17236   hardcode_into_libs=yes
17237   ;;
17238
17239 # No shared lib support for Linux oldld, aout, or coff.
17240 linux*oldld* | linux*aout* | linux*coff*)
17241   dynamic_linker=no
17242   ;;
17243
17244 # This must be Linux ELF.
17245 linux*)
17246   version_type=linux
17247   need_lib_prefix=no
17248   need_version=no
17249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17250   soname_spec='${libname}${release}${shared_ext}$major'
17251   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17252   shlibpath_var=LD_LIBRARY_PATH
17253   shlibpath_overrides_runpath=no
17254   # This implies no fast_install, which is unacceptable.
17255   # Some rework will be needed to allow for fast_install
17256   # before this can be enabled.
17257   hardcode_into_libs=yes
17258
17259   # Append ld.so.conf contents to the search path
17260   if test -f /etc/ld.so.conf; then
17261     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17262     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17263   fi
17264
17265   # We used to test for /lib/ld.so.1 and disable shared libraries on
17266   # powerpc, because MkLinux only supported shared libraries with the
17267   # GNU dynamic linker.  Since this was broken with cross compilers,
17268   # most powerpc-linux boxes support dynamic linking these days and
17269   # people can always --disable-shared, the test was removed, and we
17270   # assume the GNU/Linux dynamic linker is in use.
17271   dynamic_linker='GNU/Linux ld.so'
17272   ;;
17273
17274 knetbsd*-gnu)
17275   version_type=linux
17276   need_lib_prefix=no
17277   need_version=no
17278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17279   soname_spec='${libname}${release}${shared_ext}$major'
17280   shlibpath_var=LD_LIBRARY_PATH
17281   shlibpath_overrides_runpath=no
17282   hardcode_into_libs=yes
17283   dynamic_linker='GNU ld.so'
17284   ;;
17285
17286 netbsd*)
17287   version_type=sunos
17288   need_lib_prefix=no
17289   need_version=no
17290   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17291     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17292     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17293     dynamic_linker='NetBSD (a.out) ld.so'
17294   else
17295     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17296     soname_spec='${libname}${release}${shared_ext}$major'
17297     dynamic_linker='NetBSD ld.elf_so'
17298   fi
17299   shlibpath_var=LD_LIBRARY_PATH
17300   shlibpath_overrides_runpath=yes
17301   hardcode_into_libs=yes
17302   ;;
17303
17304 newsos6)
17305   version_type=linux
17306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17307   shlibpath_var=LD_LIBRARY_PATH
17308   shlibpath_overrides_runpath=yes
17309   ;;
17310
17311 nto-qnx*)
17312   version_type=linux
17313   need_lib_prefix=no
17314   need_version=no
17315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17316   soname_spec='${libname}${release}${shared_ext}$major'
17317   shlibpath_var=LD_LIBRARY_PATH
17318   shlibpath_overrides_runpath=yes
17319   ;;
17320
17321 openbsd*)
17322   version_type=sunos
17323   need_lib_prefix=no
17324   need_version=no
17325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17326   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17327   shlibpath_var=LD_LIBRARY_PATH
17328   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17329     case $host_os in
17330       openbsd2.[89] | openbsd2.[89].*)
17331         shlibpath_overrides_runpath=no
17332         ;;
17333       *)
17334         shlibpath_overrides_runpath=yes
17335         ;;
17336       esac
17337   else
17338     shlibpath_overrides_runpath=yes
17339   fi
17340   ;;
17341
17342 os2*)
17343   libname_spec='$name'
17344   shrext_cmds=".dll"
17345   need_lib_prefix=no
17346   library_names_spec='$libname${shared_ext} $libname.a'
17347   dynamic_linker='OS/2 ld.exe'
17348   shlibpath_var=LIBPATH
17349   ;;
17350
17351 osf3* | osf4* | osf5*)
17352   version_type=osf
17353   need_lib_prefix=no
17354   need_version=no
17355   soname_spec='${libname}${release}${shared_ext}$major'
17356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17357   shlibpath_var=LD_LIBRARY_PATH
17358   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17359   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17360   ;;
17361
17362 sco3.2v5*)
17363   version_type=osf
17364   soname_spec='${libname}${release}${shared_ext}$major'
17365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17366   shlibpath_var=LD_LIBRARY_PATH
17367   ;;
17368
17369 solaris*)
17370   version_type=linux
17371   need_lib_prefix=no
17372   need_version=no
17373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17374   soname_spec='${libname}${release}${shared_ext}$major'
17375   shlibpath_var=LD_LIBRARY_PATH
17376   shlibpath_overrides_runpath=yes
17377   hardcode_into_libs=yes
17378   # ldd complains unless libraries are executable
17379   postinstall_cmds='chmod +x $lib'
17380   ;;
17381
17382 sunos4*)
17383   version_type=sunos
17384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17385   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17386   shlibpath_var=LD_LIBRARY_PATH
17387   shlibpath_overrides_runpath=yes
17388   if test "$with_gnu_ld" = yes; then
17389     need_lib_prefix=no
17390   fi
17391   need_version=yes
17392   ;;
17393
17394 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17395   version_type=linux
17396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17397   soname_spec='${libname}${release}${shared_ext}$major'
17398   shlibpath_var=LD_LIBRARY_PATH
17399   case $host_vendor in
17400     sni)
17401       shlibpath_overrides_runpath=no
17402       need_lib_prefix=no
17403       export_dynamic_flag_spec='${wl}-Blargedynsym'
17404       runpath_var=LD_RUN_PATH
17405       ;;
17406     siemens)
17407       need_lib_prefix=no
17408       ;;
17409     motorola)
17410       need_lib_prefix=no
17411       need_version=no
17412       shlibpath_overrides_runpath=no
17413       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17414       ;;
17415   esac
17416   ;;
17417
17418 sysv4*MP*)
17419   if test -d /usr/nec ;then
17420     version_type=linux
17421     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17422     soname_spec='$libname${shared_ext}.$major'
17423     shlibpath_var=LD_LIBRARY_PATH
17424   fi
17425   ;;
17426
17427 uts4*)
17428   version_type=linux
17429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17430   soname_spec='${libname}${release}${shared_ext}$major'
17431   shlibpath_var=LD_LIBRARY_PATH
17432   ;;
17433
17434 *)
17435   dynamic_linker=no
17436   ;;
17437 esac
17438 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17439 echo "${ECHO_T}$dynamic_linker" >&6
17440 test "$dynamic_linker" = no && can_build_shared=no
17441
17442 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17443 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17444 hardcode_action_CXX=
17445 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17446    test -n "$runpath_var_CXX" || \
17447    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17448
17449   # We can hardcode non-existant directories.
17450   if test "$hardcode_direct_CXX" != no &&
17451      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17452      # have to relink, otherwise we might link with an installed library
17453      # when we should be linking with a yet-to-be-installed one
17454      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17455      test "$hardcode_minus_L_CXX" != no; then
17456     # Linking always hardcodes the temporary library directory.
17457     hardcode_action_CXX=relink
17458   else
17459     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17460     hardcode_action_CXX=immediate
17461   fi
17462 else
17463   # We cannot hardcode anything, or else we can only hardcode existing
17464   # directories.
17465   hardcode_action_CXX=unsupported
17466 fi
17467 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17468 echo "${ECHO_T}$hardcode_action_CXX" >&6
17469
17470 if test "$hardcode_action_CXX" = relink; then
17471   # Fast installation is not supported
17472   enable_fast_install=no
17473 elif test "$shlibpath_overrides_runpath" = yes ||
17474      test "$enable_shared" = no; then
17475   # Fast installation is not necessary
17476   enable_fast_install=needless
17477 fi
17478
17479 striplib=
17480 old_striplib=
17481 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17482 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17483 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17484   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17485   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17486   echo "$as_me:$LINENO: result: yes" >&5
17487 echo "${ECHO_T}yes" >&6
17488 else
17489 # FIXME - insert some real tests, host_os isn't really good enough
17490   case $host_os in
17491    darwin*)
17492        if test -n "$STRIP" ; then
17493          striplib="$STRIP -x"
17494          echo "$as_me:$LINENO: result: yes" >&5
17495 echo "${ECHO_T}yes" >&6
17496        else
17497   echo "$as_me:$LINENO: result: no" >&5
17498 echo "${ECHO_T}no" >&6
17499 fi
17500        ;;
17501    *)
17502   echo "$as_me:$LINENO: result: no" >&5
17503 echo "${ECHO_T}no" >&6
17504     ;;
17505   esac
17506 fi
17507
17508 if test "x$enable_dlopen" != xyes; then
17509   enable_dlopen=unknown
17510   enable_dlopen_self=unknown
17511   enable_dlopen_self_static=unknown
17512 else
17513   lt_cv_dlopen=no
17514   lt_cv_dlopen_libs=
17515
17516   case $host_os in
17517   beos*)
17518     lt_cv_dlopen="load_add_on"
17519     lt_cv_dlopen_libs=
17520     lt_cv_dlopen_self=yes
17521     ;;
17522
17523   mingw* | pw32*)
17524     lt_cv_dlopen="LoadLibrary"
17525     lt_cv_dlopen_libs=
17526    ;;
17527
17528   cygwin*)
17529     lt_cv_dlopen="dlopen"
17530     lt_cv_dlopen_libs=
17531    ;;
17532
17533   darwin*)
17534   # if libdl is installed we need to link against it
17535     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17536 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17537 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17538   echo $ECHO_N "(cached) $ECHO_C" >&6
17539 else
17540   ac_check_lib_save_LIBS=$LIBS
17541 LIBS="-ldl  $LIBS"
17542 cat >conftest.$ac_ext <<_ACEOF
17543 /* confdefs.h.  */
17544 _ACEOF
17545 cat confdefs.h >>conftest.$ac_ext
17546 cat >>conftest.$ac_ext <<_ACEOF
17547 /* end confdefs.h.  */
17548
17549 /* Override any gcc2 internal prototype to avoid an error.  */
17550 #ifdef __cplusplus
17551 extern "C"
17552 #endif
17553 /* We use char because int might match the return type of a gcc2
17554    builtin and then its argument prototype would still apply.  */
17555 char dlopen ();
17556 int
17557 main ()
17558 {
17559 dlopen ();
17560   ;
17561   return 0;
17562 }
17563 _ACEOF
17564 rm -f conftest.$ac_objext conftest$ac_exeext
17565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17566   (eval $ac_link) 2>conftest.er1
17567   ac_status=$?
17568   grep -v '^ *+' conftest.er1 >conftest.err
17569   rm -f conftest.er1
17570   cat conftest.err >&5
17571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572   (exit $ac_status); } &&
17573          { ac_try='test -z "$ac_cxx_werror_flag"
17574                          || test ! -s conftest.err'
17575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576   (eval $ac_try) 2>&5
17577   ac_status=$?
17578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579   (exit $ac_status); }; } &&
17580          { ac_try='test -s conftest$ac_exeext'
17581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582   (eval $ac_try) 2>&5
17583   ac_status=$?
17584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585   (exit $ac_status); }; }; then
17586   ac_cv_lib_dl_dlopen=yes
17587 else
17588   echo "$as_me: failed program was:" >&5
17589 sed 's/^/| /' conftest.$ac_ext >&5
17590
17591 ac_cv_lib_dl_dlopen=no
17592 fi
17593 rm -f conftest.err conftest.$ac_objext \
17594       conftest$ac_exeext conftest.$ac_ext
17595 LIBS=$ac_check_lib_save_LIBS
17596 fi
17597 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17598 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17599 if test $ac_cv_lib_dl_dlopen = yes; then
17600   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17601 else
17602
17603     lt_cv_dlopen="dyld"
17604     lt_cv_dlopen_libs=
17605     lt_cv_dlopen_self=yes
17606
17607 fi
17608
17609    ;;
17610
17611   *)
17612     echo "$as_me:$LINENO: checking for shl_load" >&5
17613 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17614 if test "${ac_cv_func_shl_load+set}" = set; then
17615   echo $ECHO_N "(cached) $ECHO_C" >&6
17616 else
17617   cat >conftest.$ac_ext <<_ACEOF
17618 /* confdefs.h.  */
17619 _ACEOF
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h.  */
17623 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17624    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17625 #define shl_load innocuous_shl_load
17626
17627 /* System header to define __stub macros and hopefully few prototypes,
17628     which can conflict with char shl_load (); below.
17629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17630     <limits.h> exists even on freestanding compilers.  */
17631
17632 #ifdef __STDC__
17633 # include <limits.h>
17634 #else
17635 # include <assert.h>
17636 #endif
17637
17638 #undef shl_load
17639
17640 /* Override any gcc2 internal prototype to avoid an error.  */
17641 #ifdef __cplusplus
17642 extern "C"
17643 {
17644 #endif
17645 /* We use char because int might match the return type of a gcc2
17646    builtin and then its argument prototype would still apply.  */
17647 char shl_load ();
17648 /* The GNU C library defines this for functions which it implements
17649     to always fail with ENOSYS.  Some functions are actually named
17650     something starting with __ and the normal name is an alias.  */
17651 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17652 choke me
17653 #else
17654 char (*f) () = shl_load;
17655 #endif
17656 #ifdef __cplusplus
17657 }
17658 #endif
17659
17660 int
17661 main ()
17662 {
17663 return f != shl_load;
17664   ;
17665   return 0;
17666 }
17667 _ACEOF
17668 rm -f conftest.$ac_objext conftest$ac_exeext
17669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17670   (eval $ac_link) 2>conftest.er1
17671   ac_status=$?
17672   grep -v '^ *+' conftest.er1 >conftest.err
17673   rm -f conftest.er1
17674   cat conftest.err >&5
17675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676   (exit $ac_status); } &&
17677          { ac_try='test -z "$ac_cxx_werror_flag"
17678                          || test ! -s conftest.err'
17679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680   (eval $ac_try) 2>&5
17681   ac_status=$?
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); }; } &&
17684          { ac_try='test -s conftest$ac_exeext'
17685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686   (eval $ac_try) 2>&5
17687   ac_status=$?
17688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689   (exit $ac_status); }; }; then
17690   ac_cv_func_shl_load=yes
17691 else
17692   echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17694
17695 ac_cv_func_shl_load=no
17696 fi
17697 rm -f conftest.err conftest.$ac_objext \
17698       conftest$ac_exeext conftest.$ac_ext
17699 fi
17700 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17701 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17702 if test $ac_cv_func_shl_load = yes; then
17703   lt_cv_dlopen="shl_load"
17704 else
17705   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17706 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17707 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17708   echo $ECHO_N "(cached) $ECHO_C" >&6
17709 else
17710   ac_check_lib_save_LIBS=$LIBS
17711 LIBS="-ldld  $LIBS"
17712 cat >conftest.$ac_ext <<_ACEOF
17713 /* confdefs.h.  */
17714 _ACEOF
17715 cat confdefs.h >>conftest.$ac_ext
17716 cat >>conftest.$ac_ext <<_ACEOF
17717 /* end confdefs.h.  */
17718
17719 /* Override any gcc2 internal prototype to avoid an error.  */
17720 #ifdef __cplusplus
17721 extern "C"
17722 #endif
17723 /* We use char because int might match the return type of a gcc2
17724    builtin and then its argument prototype would still apply.  */
17725 char shl_load ();
17726 int
17727 main ()
17728 {
17729 shl_load ();
17730   ;
17731   return 0;
17732 }
17733 _ACEOF
17734 rm -f conftest.$ac_objext conftest$ac_exeext
17735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17736   (eval $ac_link) 2>conftest.er1
17737   ac_status=$?
17738   grep -v '^ *+' conftest.er1 >conftest.err
17739   rm -f conftest.er1
17740   cat conftest.err >&5
17741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742   (exit $ac_status); } &&
17743          { ac_try='test -z "$ac_cxx_werror_flag"
17744                          || test ! -s conftest.err'
17745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746   (eval $ac_try) 2>&5
17747   ac_status=$?
17748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749   (exit $ac_status); }; } &&
17750          { ac_try='test -s conftest$ac_exeext'
17751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752   (eval $ac_try) 2>&5
17753   ac_status=$?
17754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755   (exit $ac_status); }; }; then
17756   ac_cv_lib_dld_shl_load=yes
17757 else
17758   echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17760
17761 ac_cv_lib_dld_shl_load=no
17762 fi
17763 rm -f conftest.err conftest.$ac_objext \
17764       conftest$ac_exeext conftest.$ac_ext
17765 LIBS=$ac_check_lib_save_LIBS
17766 fi
17767 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17768 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17769 if test $ac_cv_lib_dld_shl_load = yes; then
17770   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17771 else
17772   echo "$as_me:$LINENO: checking for dlopen" >&5
17773 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17774 if test "${ac_cv_func_dlopen+set}" = set; then
17775   echo $ECHO_N "(cached) $ECHO_C" >&6
17776 else
17777   cat >conftest.$ac_ext <<_ACEOF
17778 /* confdefs.h.  */
17779 _ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h.  */
17783 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17785 #define dlopen innocuous_dlopen
17786
17787 /* System header to define __stub macros and hopefully few prototypes,
17788     which can conflict with char dlopen (); below.
17789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17790     <limits.h> exists even on freestanding compilers.  */
17791
17792 #ifdef __STDC__
17793 # include <limits.h>
17794 #else
17795 # include <assert.h>
17796 #endif
17797
17798 #undef dlopen
17799
17800 /* Override any gcc2 internal prototype to avoid an error.  */
17801 #ifdef __cplusplus
17802 extern "C"
17803 {
17804 #endif
17805 /* We use char because int might match the return type of a gcc2
17806    builtin and then its argument prototype would still apply.  */
17807 char dlopen ();
17808 /* The GNU C library defines this for functions which it implements
17809     to always fail with ENOSYS.  Some functions are actually named
17810     something starting with __ and the normal name is an alias.  */
17811 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17812 choke me
17813 #else
17814 char (*f) () = dlopen;
17815 #endif
17816 #ifdef __cplusplus
17817 }
17818 #endif
17819
17820 int
17821 main ()
17822 {
17823 return f != dlopen;
17824   ;
17825   return 0;
17826 }
17827 _ACEOF
17828 rm -f conftest.$ac_objext conftest$ac_exeext
17829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17830   (eval $ac_link) 2>conftest.er1
17831   ac_status=$?
17832   grep -v '^ *+' conftest.er1 >conftest.err
17833   rm -f conftest.er1
17834   cat conftest.err >&5
17835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836   (exit $ac_status); } &&
17837          { ac_try='test -z "$ac_cxx_werror_flag"
17838                          || test ! -s conftest.err'
17839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17840   (eval $ac_try) 2>&5
17841   ac_status=$?
17842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843   (exit $ac_status); }; } &&
17844          { ac_try='test -s conftest$ac_exeext'
17845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846   (eval $ac_try) 2>&5
17847   ac_status=$?
17848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849   (exit $ac_status); }; }; then
17850   ac_cv_func_dlopen=yes
17851 else
17852   echo "$as_me: failed program was:" >&5
17853 sed 's/^/| /' conftest.$ac_ext >&5
17854
17855 ac_cv_func_dlopen=no
17856 fi
17857 rm -f conftest.err conftest.$ac_objext \
17858       conftest$ac_exeext conftest.$ac_ext
17859 fi
17860 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17861 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17862 if test $ac_cv_func_dlopen = yes; then
17863   lt_cv_dlopen="dlopen"
17864 else
17865   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17866 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17867 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17868   echo $ECHO_N "(cached) $ECHO_C" >&6
17869 else
17870   ac_check_lib_save_LIBS=$LIBS
17871 LIBS="-ldl  $LIBS"
17872 cat >conftest.$ac_ext <<_ACEOF
17873 /* confdefs.h.  */
17874 _ACEOF
17875 cat confdefs.h >>conftest.$ac_ext
17876 cat >>conftest.$ac_ext <<_ACEOF
17877 /* end confdefs.h.  */
17878
17879 /* Override any gcc2 internal prototype to avoid an error.  */
17880 #ifdef __cplusplus
17881 extern "C"
17882 #endif
17883 /* We use char because int might match the return type of a gcc2
17884    builtin and then its argument prototype would still apply.  */
17885 char dlopen ();
17886 int
17887 main ()
17888 {
17889 dlopen ();
17890   ;
17891   return 0;
17892 }
17893 _ACEOF
17894 rm -f conftest.$ac_objext conftest$ac_exeext
17895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17896   (eval $ac_link) 2>conftest.er1
17897   ac_status=$?
17898   grep -v '^ *+' conftest.er1 >conftest.err
17899   rm -f conftest.er1
17900   cat conftest.err >&5
17901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902   (exit $ac_status); } &&
17903          { ac_try='test -z "$ac_cxx_werror_flag"
17904                          || test ! -s conftest.err'
17905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17906   (eval $ac_try) 2>&5
17907   ac_status=$?
17908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909   (exit $ac_status); }; } &&
17910          { ac_try='test -s conftest$ac_exeext'
17911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912   (eval $ac_try) 2>&5
17913   ac_status=$?
17914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915   (exit $ac_status); }; }; then
17916   ac_cv_lib_dl_dlopen=yes
17917 else
17918   echo "$as_me: failed program was:" >&5
17919 sed 's/^/| /' conftest.$ac_ext >&5
17920
17921 ac_cv_lib_dl_dlopen=no
17922 fi
17923 rm -f conftest.err conftest.$ac_objext \
17924       conftest$ac_exeext conftest.$ac_ext
17925 LIBS=$ac_check_lib_save_LIBS
17926 fi
17927 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17928 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17929 if test $ac_cv_lib_dl_dlopen = yes; then
17930   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17931 else
17932   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17933 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17934 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17935   echo $ECHO_N "(cached) $ECHO_C" >&6
17936 else
17937   ac_check_lib_save_LIBS=$LIBS
17938 LIBS="-lsvld  $LIBS"
17939 cat >conftest.$ac_ext <<_ACEOF
17940 /* confdefs.h.  */
17941 _ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h.  */
17945
17946 /* Override any gcc2 internal prototype to avoid an error.  */
17947 #ifdef __cplusplus
17948 extern "C"
17949 #endif
17950 /* We use char because int might match the return type of a gcc2
17951    builtin and then its argument prototype would still apply.  */
17952 char dlopen ();
17953 int
17954 main ()
17955 {
17956 dlopen ();
17957   ;
17958   return 0;
17959 }
17960 _ACEOF
17961 rm -f conftest.$ac_objext conftest$ac_exeext
17962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17963   (eval $ac_link) 2>conftest.er1
17964   ac_status=$?
17965   grep -v '^ *+' conftest.er1 >conftest.err
17966   rm -f conftest.er1
17967   cat conftest.err >&5
17968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969   (exit $ac_status); } &&
17970          { ac_try='test -z "$ac_cxx_werror_flag"
17971                          || test ! -s conftest.err'
17972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973   (eval $ac_try) 2>&5
17974   ac_status=$?
17975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976   (exit $ac_status); }; } &&
17977          { ac_try='test -s conftest$ac_exeext'
17978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979   (eval $ac_try) 2>&5
17980   ac_status=$?
17981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982   (exit $ac_status); }; }; then
17983   ac_cv_lib_svld_dlopen=yes
17984 else
17985   echo "$as_me: failed program was:" >&5
17986 sed 's/^/| /' conftest.$ac_ext >&5
17987
17988 ac_cv_lib_svld_dlopen=no
17989 fi
17990 rm -f conftest.err conftest.$ac_objext \
17991       conftest$ac_exeext conftest.$ac_ext
17992 LIBS=$ac_check_lib_save_LIBS
17993 fi
17994 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17995 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17996 if test $ac_cv_lib_svld_dlopen = yes; then
17997   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17998 else
17999   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18000 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18001 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18002   echo $ECHO_N "(cached) $ECHO_C" >&6
18003 else
18004   ac_check_lib_save_LIBS=$LIBS
18005 LIBS="-ldld  $LIBS"
18006 cat >conftest.$ac_ext <<_ACEOF
18007 /* confdefs.h.  */
18008 _ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h.  */
18012
18013 /* Override any gcc2 internal prototype to avoid an error.  */
18014 #ifdef __cplusplus
18015 extern "C"
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 dld_link ();
18020 int
18021 main ()
18022 {
18023 dld_link ();
18024   ;
18025   return 0;
18026 }
18027 _ACEOF
18028 rm -f conftest.$ac_objext conftest$ac_exeext
18029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18030   (eval $ac_link) 2>conftest.er1
18031   ac_status=$?
18032   grep -v '^ *+' conftest.er1 >conftest.err
18033   rm -f conftest.er1
18034   cat conftest.err >&5
18035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036   (exit $ac_status); } &&
18037          { ac_try='test -z "$ac_cxx_werror_flag"
18038                          || test ! -s conftest.err'
18039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18040   (eval $ac_try) 2>&5
18041   ac_status=$?
18042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043   (exit $ac_status); }; } &&
18044          { ac_try='test -s conftest$ac_exeext'
18045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046   (eval $ac_try) 2>&5
18047   ac_status=$?
18048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049   (exit $ac_status); }; }; then
18050   ac_cv_lib_dld_dld_link=yes
18051 else
18052   echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18054
18055 ac_cv_lib_dld_dld_link=no
18056 fi
18057 rm -f conftest.err conftest.$ac_objext \
18058       conftest$ac_exeext conftest.$ac_ext
18059 LIBS=$ac_check_lib_save_LIBS
18060 fi
18061 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18062 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18063 if test $ac_cv_lib_dld_dld_link = yes; then
18064   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18065 fi
18066
18067
18068 fi
18069
18070
18071 fi
18072
18073
18074 fi
18075
18076
18077 fi
18078
18079
18080 fi
18081
18082     ;;
18083   esac
18084
18085   if test "x$lt_cv_dlopen" != xno; then
18086     enable_dlopen=yes
18087   else
18088     enable_dlopen=no
18089   fi
18090
18091   case $lt_cv_dlopen in
18092   dlopen)
18093     save_CPPFLAGS="$CPPFLAGS"
18094     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18095
18096     save_LDFLAGS="$LDFLAGS"
18097     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18098
18099     save_LIBS="$LIBS"
18100     LIBS="$lt_cv_dlopen_libs $LIBS"
18101
18102     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18103 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18104 if test "${lt_cv_dlopen_self+set}" = set; then
18105   echo $ECHO_N "(cached) $ECHO_C" >&6
18106 else
18107           if test "$cross_compiling" = yes; then :
18108   lt_cv_dlopen_self=cross
18109 else
18110   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18111   lt_status=$lt_dlunknown
18112   cat > conftest.$ac_ext <<EOF
18113 #line 18113 "configure"
18114 #include "confdefs.h"
18115
18116 #if HAVE_DLFCN_H
18117 #include <dlfcn.h>
18118 #endif
18119
18120 #include <stdio.h>
18121
18122 #ifdef RTLD_GLOBAL
18123 #  define LT_DLGLOBAL           RTLD_GLOBAL
18124 #else
18125 #  ifdef DL_GLOBAL
18126 #    define LT_DLGLOBAL         DL_GLOBAL
18127 #  else
18128 #    define LT_DLGLOBAL         0
18129 #  endif
18130 #endif
18131
18132 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18133    find out it does not work in some platform. */
18134 #ifndef LT_DLLAZY_OR_NOW
18135 #  ifdef RTLD_LAZY
18136 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18137 #  else
18138 #    ifdef DL_LAZY
18139 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18140 #    else
18141 #      ifdef RTLD_NOW
18142 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18143 #      else
18144 #        ifdef DL_NOW
18145 #          define LT_DLLAZY_OR_NOW      DL_NOW
18146 #        else
18147 #          define LT_DLLAZY_OR_NOW      0
18148 #        endif
18149 #      endif
18150 #    endif
18151 #  endif
18152 #endif
18153
18154 #ifdef __cplusplus
18155 extern "C" void exit (int);
18156 #endif
18157
18158 void fnord() { int i=42;}
18159 int main ()
18160 {
18161   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18162   int status = $lt_dlunknown;
18163
18164   if (self)
18165     {
18166       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18167       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18168       /* dlclose (self); */
18169     }
18170
18171     exit (status);
18172 }
18173 EOF
18174   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18175   (eval $ac_link) 2>&5
18176   ac_status=$?
18177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18179     (./conftest; exit; ) 2>/dev/null
18180     lt_status=$?
18181     case x$lt_status in
18182       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18183       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18184       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18185     esac
18186   else :
18187     # compilation failed
18188     lt_cv_dlopen_self=no
18189   fi
18190 fi
18191 rm -fr conftest*
18192
18193
18194 fi
18195 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18196 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18197
18198     if test "x$lt_cv_dlopen_self" = xyes; then
18199       LDFLAGS="$LDFLAGS $link_static_flag"
18200       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18201 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18202 if test "${lt_cv_dlopen_self_static+set}" = set; then
18203   echo $ECHO_N "(cached) $ECHO_C" >&6
18204 else
18205           if test "$cross_compiling" = yes; then :
18206   lt_cv_dlopen_self_static=cross
18207 else
18208   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18209   lt_status=$lt_dlunknown
18210   cat > conftest.$ac_ext <<EOF
18211 #line 18211 "configure"
18212 #include "confdefs.h"
18213
18214 #if HAVE_DLFCN_H
18215 #include <dlfcn.h>
18216 #endif
18217
18218 #include <stdio.h>
18219
18220 #ifdef RTLD_GLOBAL
18221 #  define LT_DLGLOBAL           RTLD_GLOBAL
18222 #else
18223 #  ifdef DL_GLOBAL
18224 #    define LT_DLGLOBAL         DL_GLOBAL
18225 #  else
18226 #    define LT_DLGLOBAL         0
18227 #  endif
18228 #endif
18229
18230 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18231    find out it does not work in some platform. */
18232 #ifndef LT_DLLAZY_OR_NOW
18233 #  ifdef RTLD_LAZY
18234 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18235 #  else
18236 #    ifdef DL_LAZY
18237 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18238 #    else
18239 #      ifdef RTLD_NOW
18240 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18241 #      else
18242 #        ifdef DL_NOW
18243 #          define LT_DLLAZY_OR_NOW      DL_NOW
18244 #        else
18245 #          define LT_DLLAZY_OR_NOW      0
18246 #        endif
18247 #      endif
18248 #    endif
18249 #  endif
18250 #endif
18251
18252 #ifdef __cplusplus
18253 extern "C" void exit (int);
18254 #endif
18255
18256 void fnord() { int i=42;}
18257 int main ()
18258 {
18259   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18260   int status = $lt_dlunknown;
18261
18262   if (self)
18263     {
18264       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18265       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18266       /* dlclose (self); */
18267     }
18268
18269     exit (status);
18270 }
18271 EOF
18272   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18273   (eval $ac_link) 2>&5
18274   ac_status=$?
18275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18277     (./conftest; exit; ) 2>/dev/null
18278     lt_status=$?
18279     case x$lt_status in
18280       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18281       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18282       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18283     esac
18284   else :
18285     # compilation failed
18286     lt_cv_dlopen_self_static=no
18287   fi
18288 fi
18289 rm -fr conftest*
18290
18291
18292 fi
18293 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18294 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18295     fi
18296
18297     CPPFLAGS="$save_CPPFLAGS"
18298     LDFLAGS="$save_LDFLAGS"
18299     LIBS="$save_LIBS"
18300     ;;
18301   esac
18302
18303   case $lt_cv_dlopen_self in
18304   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18305   *) enable_dlopen_self=unknown ;;
18306   esac
18307
18308   case $lt_cv_dlopen_self_static in
18309   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18310   *) enable_dlopen_self_static=unknown ;;
18311   esac
18312 fi
18313
18314
18315 # The else clause should only fire when bootstrapping the
18316 # libtool distribution, otherwise you forgot to ship ltmain.sh
18317 # with your package, and you will get complaints that there are
18318 # no rules to generate ltmain.sh.
18319 if test -f "$ltmain"; then
18320   # See if we are running on zsh, and set the options which allow our commands through
18321   # without removal of \ escapes.
18322   if test -n "${ZSH_VERSION+set}" ; then
18323     setopt NO_GLOB_SUBST
18324   fi
18325   # Now quote all the things that may contain metacharacters while being
18326   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18327   # variables and quote the copies for generation of the libtool script.
18328   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18329     SED SHELL STRIP \
18330     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18331     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18332     deplibs_check_method reload_flag reload_cmds need_locks \
18333     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18334     lt_cv_sys_global_symbol_to_c_name_address \
18335     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18336     old_postinstall_cmds old_postuninstall_cmds \
18337     compiler_CXX \
18338     CC_CXX \
18339     LD_CXX \
18340     lt_prog_compiler_wl_CXX \
18341     lt_prog_compiler_pic_CXX \
18342     lt_prog_compiler_static_CXX \
18343     lt_prog_compiler_no_builtin_flag_CXX \
18344     export_dynamic_flag_spec_CXX \
18345     thread_safe_flag_spec_CXX \
18346     whole_archive_flag_spec_CXX \
18347     enable_shared_with_static_runtimes_CXX \
18348     old_archive_cmds_CXX \
18349     old_archive_from_new_cmds_CXX \
18350     predep_objects_CXX \
18351     postdep_objects_CXX \
18352     predeps_CXX \
18353     postdeps_CXX \
18354     compiler_lib_search_path_CXX \
18355     archive_cmds_CXX \
18356     archive_expsym_cmds_CXX \
18357     postinstall_cmds_CXX \
18358     postuninstall_cmds_CXX \
18359     old_archive_from_expsyms_cmds_CXX \
18360     allow_undefined_flag_CXX \
18361     no_undefined_flag_CXX \
18362     export_symbols_cmds_CXX \
18363     hardcode_libdir_flag_spec_CXX \
18364     hardcode_libdir_flag_spec_ld_CXX \
18365     hardcode_libdir_separator_CXX \
18366     hardcode_automatic_CXX \
18367     module_cmds_CXX \
18368     module_expsym_cmds_CXX \
18369     lt_cv_prog_compiler_c_o_CXX \
18370     exclude_expsyms_CXX \
18371     include_expsyms_CXX; do
18372
18373     case $var in
18374     old_archive_cmds_CXX | \
18375     old_archive_from_new_cmds_CXX | \
18376     archive_cmds_CXX | \
18377     archive_expsym_cmds_CXX | \
18378     module_cmds_CXX | \
18379     module_expsym_cmds_CXX | \
18380     old_archive_from_expsyms_cmds_CXX | \
18381     export_symbols_cmds_CXX | \
18382     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18383     postinstall_cmds | postuninstall_cmds | \
18384     old_postinstall_cmds | old_postuninstall_cmds | \
18385     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18386       # Double-quote double-evaled strings.
18387       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18388       ;;
18389     *)
18390       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18391       ;;
18392     esac
18393   done
18394
18395   case $lt_echo in
18396   *'\$0 --fallback-echo"')
18397     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18398     ;;
18399   esac
18400
18401 cfgfile="$ofile"
18402
18403   cat <<__EOF__ >> "$cfgfile"
18404 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18405
18406 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18407
18408 # Shell to use when invoking shell scripts.
18409 SHELL=$lt_SHELL
18410
18411 # Whether or not to build shared libraries.
18412 build_libtool_libs=$enable_shared
18413
18414 # Whether or not to build static libraries.
18415 build_old_libs=$enable_static
18416
18417 # Whether or not to add -lc for building shared libraries.
18418 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18419
18420 # Whether or not to disallow shared libs when runtime libs are static
18421 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18422
18423 # Whether or not to optimize for fast installation.
18424 fast_install=$enable_fast_install
18425
18426 # The host system.
18427 host_alias=$host_alias
18428 host=$host
18429
18430 # An echo program that does not interpret backslashes.
18431 echo=$lt_echo
18432
18433 # The archiver.
18434 AR=$lt_AR
18435 AR_FLAGS=$lt_AR_FLAGS
18436
18437 # A C compiler.
18438 LTCC=$lt_LTCC
18439
18440 # A language-specific compiler.
18441 CC=$lt_compiler_CXX
18442
18443 # Is the compiler the GNU C compiler?
18444 with_gcc=$GCC_CXX
18445
18446 # An ERE matcher.
18447 EGREP=$lt_EGREP
18448
18449 # The linker used to build libraries.
18450 LD=$lt_LD_CXX
18451
18452 # Whether we need hard or soft links.
18453 LN_S=$lt_LN_S
18454
18455 # A BSD-compatible nm program.
18456 NM=$lt_NM
18457
18458 # A symbol stripping program
18459 STRIP=$lt_STRIP
18460
18461 # Used to examine libraries when file_magic_cmd begins "file"
18462 MAGIC_CMD=$MAGIC_CMD
18463
18464 # Used on cygwin: DLL creation program.
18465 DLLTOOL="$DLLTOOL"
18466
18467 # Used on cygwin: object dumper.
18468 OBJDUMP="$OBJDUMP"
18469
18470 # Used on cygwin: assembler.
18471 AS="$AS"
18472
18473 # The name of the directory that contains temporary libtool files.
18474 objdir=$objdir
18475
18476 # How to create reloadable object files.
18477 reload_flag=$lt_reload_flag
18478 reload_cmds=$lt_reload_cmds
18479
18480 # How to pass a linker flag through the compiler.
18481 wl=$lt_lt_prog_compiler_wl_CXX
18482
18483 # Object file suffix (normally "o").
18484 objext="$ac_objext"
18485
18486 # Old archive suffix (normally "a").
18487 libext="$libext"
18488
18489 # Shared library suffix (normally ".so").
18490 shrext_cmds='$shrext_cmds'
18491
18492 # Executable file suffix (normally "").
18493 exeext="$exeext"
18494
18495 # Additional compiler flags for building library objects.
18496 pic_flag=$lt_lt_prog_compiler_pic_CXX
18497 pic_mode=$pic_mode
18498
18499 # What is the maximum length of a command?
18500 max_cmd_len=$lt_cv_sys_max_cmd_len
18501
18502 # Does compiler simultaneously support -c and -o options?
18503 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18504
18505 # Must we lock files when doing compilation ?
18506 need_locks=$lt_need_locks
18507
18508 # Do we need the lib prefix for modules?
18509 need_lib_prefix=$need_lib_prefix
18510
18511 # Do we need a version for libraries?
18512 need_version=$need_version
18513
18514 # Whether dlopen is supported.
18515 dlopen_support=$enable_dlopen
18516
18517 # Whether dlopen of programs is supported.
18518 dlopen_self=$enable_dlopen_self
18519
18520 # Whether dlopen of statically linked programs is supported.
18521 dlopen_self_static=$enable_dlopen_self_static
18522
18523 # Compiler flag to prevent dynamic linking.
18524 link_static_flag=$lt_lt_prog_compiler_static_CXX
18525
18526 # Compiler flag to turn off builtin functions.
18527 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18528
18529 # Compiler flag to allow reflexive dlopens.
18530 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18531
18532 # Compiler flag to generate shared objects directly from archives.
18533 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18534
18535 # Compiler flag to generate thread-safe objects.
18536 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18537
18538 # Library versioning type.
18539 version_type=$version_type
18540
18541 # Format of library name prefix.
18542 libname_spec=$lt_libname_spec
18543
18544 # List of archive names.  First name is the real one, the rest are links.
18545 # The last name is the one that the linker finds with -lNAME.
18546 library_names_spec=$lt_library_names_spec
18547
18548 # The coded name of the library, if different from the real name.
18549 soname_spec=$lt_soname_spec
18550
18551 # Commands used to build and install an old-style archive.
18552 RANLIB=$lt_RANLIB
18553 old_archive_cmds=$lt_old_archive_cmds_CXX
18554 old_postinstall_cmds=$lt_old_postinstall_cmds
18555 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18556
18557 # Create an old-style archive from a shared archive.
18558 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18559
18560 # Create a temporary old-style archive to link instead of a shared archive.
18561 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18562
18563 # Commands used to build and install a shared archive.
18564 archive_cmds=$lt_archive_cmds_CXX
18565 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18566 postinstall_cmds=$lt_postinstall_cmds
18567 postuninstall_cmds=$lt_postuninstall_cmds
18568
18569 # Commands used to build a loadable module (assumed same as above if empty)
18570 module_cmds=$lt_module_cmds_CXX
18571 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18572
18573 # Commands to strip libraries.
18574 old_striplib=$lt_old_striplib
18575 striplib=$lt_striplib
18576
18577 # Dependencies to place before the objects being linked to create a
18578 # shared library.
18579 predep_objects=$lt_predep_objects_CXX
18580
18581 # Dependencies to place after the objects being linked to create a
18582 # shared library.
18583 postdep_objects=$lt_postdep_objects_CXX
18584
18585 # Dependencies to place before the objects being linked to create a
18586 # shared library.
18587 predeps=$lt_predeps_CXX
18588
18589 # Dependencies to place after the objects being linked to create a
18590 # shared library.
18591 postdeps=$lt_postdeps_CXX
18592
18593 # The library search path used internally by the compiler when linking
18594 # a shared library.
18595 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18596
18597 # Method to check whether dependent libraries are shared objects.
18598 deplibs_check_method=$lt_deplibs_check_method
18599
18600 # Command to use when deplibs_check_method == file_magic.
18601 file_magic_cmd=$lt_file_magic_cmd
18602
18603 # Flag that allows shared libraries with undefined symbols to be built.
18604 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18605
18606 # Flag that forces no undefined symbols.
18607 no_undefined_flag=$lt_no_undefined_flag_CXX
18608
18609 # Commands used to finish a libtool library installation in a directory.
18610 finish_cmds=$lt_finish_cmds
18611
18612 # Same as above, but a single script fragment to be evaled but not shown.
18613 finish_eval=$lt_finish_eval
18614
18615 # Take the output of nm and produce a listing of raw symbols and C names.
18616 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18617
18618 # Transform the output of nm in a proper C declaration
18619 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18620
18621 # Transform the output of nm in a C name address pair
18622 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18623
18624 # This is the shared library runtime path variable.
18625 runpath_var=$runpath_var
18626
18627 # This is the shared library path variable.
18628 shlibpath_var=$shlibpath_var
18629
18630 # Is shlibpath searched before the hard-coded library search path?
18631 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18632
18633 # How to hardcode a shared library path into an executable.
18634 hardcode_action=$hardcode_action_CXX
18635
18636 # Whether we should hardcode library paths into libraries.
18637 hardcode_into_libs=$hardcode_into_libs
18638
18639 # Flag to hardcode \$libdir into a binary during linking.
18640 # This must work even if \$libdir does not exist.
18641 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18642
18643 # If ld is used when linking, flag to hardcode \$libdir into
18644 # a binary during linking. This must work even if \$libdir does
18645 # not exist.
18646 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18647
18648 # Whether we need a single -rpath flag with a separated argument.
18649 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18650
18651 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18652 # resulting binary.
18653 hardcode_direct=$hardcode_direct_CXX
18654
18655 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18656 # resulting binary.
18657 hardcode_minus_L=$hardcode_minus_L_CXX
18658
18659 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18660 # the resulting binary.
18661 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18662
18663 # Set to yes if building a shared library automatically hardcodes DIR into the library
18664 # and all subsequent libraries and executables linked against it.
18665 hardcode_automatic=$hardcode_automatic_CXX
18666
18667 # Variables whose values should be saved in libtool wrapper scripts and
18668 # restored at relink time.
18669 variables_saved_for_relink="$variables_saved_for_relink"
18670
18671 # Whether libtool must link a program against all its dependency libraries.
18672 link_all_deplibs=$link_all_deplibs_CXX
18673
18674 # Compile-time system search path for libraries
18675 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18676
18677 # Run-time system search path for libraries
18678 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18679
18680 # Fix the shell variable \$srcfile for the compiler.
18681 fix_srcfile_path="$fix_srcfile_path_CXX"
18682
18683 # Set to yes if exported symbols are required.
18684 always_export_symbols=$always_export_symbols_CXX
18685
18686 # The commands to list exported symbols.
18687 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18688
18689 # The commands to extract the exported symbol list from a shared archive.
18690 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18691
18692 # Symbols that should not be listed in the preloaded symbols.
18693 exclude_expsyms=$lt_exclude_expsyms_CXX
18694
18695 # Symbols that must always be exported.
18696 include_expsyms=$lt_include_expsyms_CXX
18697
18698 # ### END LIBTOOL TAG CONFIG: $tagname
18699
18700 __EOF__
18701
18702
18703 else
18704   # If there is no Makefile yet, we rely on a make rule to execute
18705   # `config.status --recheck' to rerun these tests and create the
18706   # libtool script then.
18707   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18708   if test -f "$ltmain_in"; then
18709     test -f Makefile && make "$ltmain"
18710   fi
18711 fi
18712
18713
18714 ac_ext=c
18715 ac_cpp='$CPP $CPPFLAGS'
18716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18719
18720 CC=$lt_save_CC
18721 LDCXX=$LD
18722 LD=$lt_save_LD
18723 GCC=$lt_save_GCC
18724 with_gnu_ldcxx=$with_gnu_ld
18725 with_gnu_ld=$lt_save_with_gnu_ld
18726 lt_cv_path_LDCXX=$lt_cv_path_LD
18727 lt_cv_path_LD=$lt_save_path_LD
18728 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18729 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18730
18731         else
18732           tagname=""
18733         fi
18734         ;;
18735
18736       F77)
18737         if test -n "$F77" && test "X$F77" != "Xno"; then
18738
18739 ac_ext=f
18740 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18741 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18742 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18743
18744
18745 archive_cmds_need_lc_F77=no
18746 allow_undefined_flag_F77=
18747 always_export_symbols_F77=no
18748 archive_expsym_cmds_F77=
18749 export_dynamic_flag_spec_F77=
18750 hardcode_direct_F77=no
18751 hardcode_libdir_flag_spec_F77=
18752 hardcode_libdir_flag_spec_ld_F77=
18753 hardcode_libdir_separator_F77=
18754 hardcode_minus_L_F77=no
18755 hardcode_automatic_F77=no
18756 module_cmds_F77=
18757 module_expsym_cmds_F77=
18758 link_all_deplibs_F77=unknown
18759 old_archive_cmds_F77=$old_archive_cmds
18760 no_undefined_flag_F77=
18761 whole_archive_flag_spec_F77=
18762 enable_shared_with_static_runtimes_F77=no
18763
18764 # Source file extension for f77 test sources.
18765 ac_ext=f
18766
18767 # Object file extension for compiled f77 test sources.
18768 objext=o
18769 objext_F77=$objext
18770
18771 # Code to be used in simple compile tests
18772 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18773
18774 # Code to be used in simple link tests
18775 lt_simple_link_test_code="      program t\n      end\n"
18776
18777 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18778
18779 # If no C compiler was specified, use CC.
18780 LTCC=${LTCC-"$CC"}
18781
18782 # Allow CC to be a program name with arguments.
18783 compiler=$CC
18784
18785
18786 # Allow CC to be a program name with arguments.
18787 lt_save_CC="$CC"
18788 CC=${F77-"f77"}
18789 compiler=$CC
18790 compiler_F77=$CC
18791 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18792
18793 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18794 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18795 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18796 echo "${ECHO_T}$can_build_shared" >&6
18797
18798 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18799 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18800 test "$can_build_shared" = "no" && enable_shared=no
18801
18802 # On AIX, shared libraries and static libraries use the same namespace, and
18803 # are all built from PIC.
18804 case "$host_os" in
18805 aix3*)
18806   test "$enable_shared" = yes && enable_static=no
18807   if test -n "$RANLIB"; then
18808     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18809     postinstall_cmds='$RANLIB $lib'
18810   fi
18811   ;;
18812 aix4* | aix5*)
18813   test "$enable_shared" = yes && enable_static=no
18814   ;;
18815 esac
18816 echo "$as_me:$LINENO: result: $enable_shared" >&5
18817 echo "${ECHO_T}$enable_shared" >&6
18818
18819 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18820 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18821 # Make sure either enable_shared or enable_static is yes.
18822 test "$enable_shared" = yes || enable_static=yes
18823 echo "$as_me:$LINENO: result: $enable_static" >&5
18824 echo "${ECHO_T}$enable_static" >&6
18825
18826 test "$ld_shlibs_F77" = no && can_build_shared=no
18827
18828 GCC_F77="$G77"
18829 LD_F77="$LD"
18830
18831 lt_prog_compiler_wl_F77=
18832 lt_prog_compiler_pic_F77=
18833 lt_prog_compiler_static_F77=
18834
18835 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18836 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18837
18838   if test "$GCC" = yes; then
18839     lt_prog_compiler_wl_F77='-Wl,'
18840     lt_prog_compiler_static_F77='-static'
18841
18842     case $host_os in
18843       aix*)
18844       # All AIX code is PIC.
18845       if test "$host_cpu" = ia64; then
18846         # AIX 5 now supports IA64 processor
18847         lt_prog_compiler_static_F77='-Bstatic'
18848       fi
18849       ;;
18850
18851     amigaos*)
18852       # FIXME: we need at least 68020 code to build shared libraries, but
18853       # adding the `-m68020' flag to GCC prevents building anything better,
18854       # like `-m68040'.
18855       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18856       ;;
18857
18858     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18859       # PIC is the default for these OSes.
18860       ;;
18861
18862     mingw* | pw32* | os2*)
18863       # This hack is so that the source file can tell whether it is being
18864       # built for inclusion in a dll (and should export symbols for example).
18865       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18866       ;;
18867
18868     darwin* | rhapsody*)
18869       # PIC is the default on this platform
18870       # Common symbols not allowed in MH_DYLIB files
18871       lt_prog_compiler_pic_F77='-fno-common'
18872       ;;
18873
18874     msdosdjgpp*)
18875       # Just because we use GCC doesn't mean we suddenly get shared libraries
18876       # on systems that don't support them.
18877       lt_prog_compiler_can_build_shared_F77=no
18878       enable_shared=no
18879       ;;
18880
18881     sysv4*MP*)
18882       if test -d /usr/nec; then
18883         lt_prog_compiler_pic_F77=-Kconform_pic
18884       fi
18885       ;;
18886
18887     hpux*)
18888       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18889       # not for PA HP-UX.
18890       case "$host_cpu" in
18891       hppa*64*|ia64*)
18892         # +Z the default
18893         ;;
18894       *)
18895         lt_prog_compiler_pic_F77='-fPIC'
18896         ;;
18897       esac
18898       ;;
18899
18900     *)
18901       lt_prog_compiler_pic_F77='-fPIC'
18902       ;;
18903     esac
18904   else
18905     # PORTME Check for flag to pass linker flags through the system compiler.
18906     case $host_os in
18907     aix*)
18908       lt_prog_compiler_wl_F77='-Wl,'
18909       if test "$host_cpu" = ia64; then
18910         # AIX 5 now supports IA64 processor
18911         lt_prog_compiler_static_F77='-Bstatic'
18912       else
18913         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18914       fi
18915       ;;
18916       darwin*)
18917         # PIC is the default on this platform
18918         # Common symbols not allowed in MH_DYLIB files
18919        case "$cc_basename" in
18920          xlc*)
18921          lt_prog_compiler_pic_F77='-qnocommon'
18922          lt_prog_compiler_wl_F77='-Wl,'
18923          ;;
18924        esac
18925        ;;
18926
18927     mingw* | pw32* | os2*)
18928       # This hack is so that the source file can tell whether it is being
18929       # built for inclusion in a dll (and should export symbols for example).
18930       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18931       ;;
18932
18933     hpux9* | hpux10* | hpux11*)
18934       lt_prog_compiler_wl_F77='-Wl,'
18935       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18936       # not for PA HP-UX.
18937       case "$host_cpu" in
18938       hppa*64*|ia64*)
18939         # +Z the default
18940         ;;
18941       *)
18942         lt_prog_compiler_pic_F77='+Z'
18943         ;;
18944       esac
18945       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18946       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18947       ;;
18948
18949     irix5* | irix6* | nonstopux*)
18950       lt_prog_compiler_wl_F77='-Wl,'
18951       # PIC (with -KPIC) is the default.
18952       lt_prog_compiler_static_F77='-non_shared'
18953       ;;
18954
18955     newsos6)
18956       lt_prog_compiler_pic_F77='-KPIC'
18957       lt_prog_compiler_static_F77='-Bstatic'
18958       ;;
18959
18960     linux*)
18961       case $CC in
18962       icc* | ecc*)
18963         lt_prog_compiler_wl_F77='-Wl,'
18964         lt_prog_compiler_pic_F77='-KPIC'
18965         lt_prog_compiler_static_F77='-static'
18966         ;;
18967       ccc*)
18968         lt_prog_compiler_wl_F77='-Wl,'
18969         # All Alpha code is PIC.
18970         lt_prog_compiler_static_F77='-non_shared'
18971         ;;
18972       esac
18973       ;;
18974
18975     osf3* | osf4* | osf5*)
18976       lt_prog_compiler_wl_F77='-Wl,'
18977       # All OSF/1 code is PIC.
18978       lt_prog_compiler_static_F77='-non_shared'
18979       ;;
18980
18981     sco3.2v5*)
18982       lt_prog_compiler_pic_F77='-Kpic'
18983       lt_prog_compiler_static_F77='-dn'
18984       ;;
18985
18986     solaris*)
18987       lt_prog_compiler_wl_F77='-Wl,'
18988       lt_prog_compiler_pic_F77='-KPIC'
18989       lt_prog_compiler_static_F77='-Bstatic'
18990       ;;
18991
18992     sunos4*)
18993       lt_prog_compiler_wl_F77='-Qoption ld '
18994       lt_prog_compiler_pic_F77='-PIC'
18995       lt_prog_compiler_static_F77='-Bstatic'
18996       ;;
18997
18998     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18999       lt_prog_compiler_wl_F77='-Wl,'
19000       lt_prog_compiler_pic_F77='-KPIC'
19001       lt_prog_compiler_static_F77='-Bstatic'
19002       ;;
19003
19004     sysv4*MP*)
19005       if test -d /usr/nec ;then
19006         lt_prog_compiler_pic_F77='-Kconform_pic'
19007         lt_prog_compiler_static_F77='-Bstatic'
19008       fi
19009       ;;
19010
19011     uts4*)
19012       lt_prog_compiler_pic_F77='-pic'
19013       lt_prog_compiler_static_F77='-Bstatic'
19014       ;;
19015
19016     *)
19017       lt_prog_compiler_can_build_shared_F77=no
19018       ;;
19019     esac
19020   fi
19021
19022 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19023 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19024
19025 #
19026 # Check to make sure the PIC flag actually works.
19027 #
19028 if test -n "$lt_prog_compiler_pic_F77"; then
19029
19030 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19031 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19032 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19033   echo $ECHO_N "(cached) $ECHO_C" >&6
19034 else
19035   lt_prog_compiler_pic_works_F77=no
19036   ac_outfile=conftest.$ac_objext
19037    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19038    lt_compiler_flag="$lt_prog_compiler_pic_F77"
19039    # Insert the option either (1) after the last *FLAGS variable, or
19040    # (2) before a word containing "conftest.", or (3) at the end.
19041    # Note that $ac_compile itself does not contain backslashes and begins
19042    # with a dollar sign (not a hyphen), so the echo should work correctly.
19043    # The option is referenced via a variable to avoid confusing sed.
19044    lt_compile=`echo "$ac_compile" | $SED \
19045    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19046    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19047    -e 's:$: $lt_compiler_flag:'`
19048    (eval echo "\"\$as_me:19048: $lt_compile\"" >&5)
19049    (eval "$lt_compile" 2>conftest.err)
19050    ac_status=$?
19051    cat conftest.err >&5
19052    echo "$as_me:19052: \$? = $ac_status" >&5
19053    if (exit $ac_status) && test -s "$ac_outfile"; then
19054      # The compiler can only warn and ignore the option if not recognized
19055      # So say no if there are warnings
19056      if test ! -s conftest.err; then
19057        lt_prog_compiler_pic_works_F77=yes
19058      fi
19059    fi
19060    $rm conftest*
19061
19062 fi
19063 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19064 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19065
19066 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19067     case $lt_prog_compiler_pic_F77 in
19068      "" | " "*) ;;
19069      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19070      esac
19071 else
19072     lt_prog_compiler_pic_F77=
19073      lt_prog_compiler_can_build_shared_F77=no
19074 fi
19075
19076 fi
19077 case "$host_os" in
19078   # For platforms which do not support PIC, -DPIC is meaningless:
19079   *djgpp*)
19080     lt_prog_compiler_pic_F77=
19081     ;;
19082   *)
19083     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19084     ;;
19085 esac
19086
19087 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19088 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19089 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19090   echo $ECHO_N "(cached) $ECHO_C" >&6
19091 else
19092   lt_cv_prog_compiler_c_o_F77=no
19093    $rm -r conftest 2>/dev/null
19094    mkdir conftest
19095    cd conftest
19096    mkdir out
19097    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19098
19099    lt_compiler_flag="-o out/conftest2.$ac_objext"
19100    # Insert the option either (1) after the last *FLAGS variable, or
19101    # (2) before a word containing "conftest.", or (3) at the end.
19102    # Note that $ac_compile itself does not contain backslashes and begins
19103    # with a dollar sign (not a hyphen), so the echo should work correctly.
19104    lt_compile=`echo "$ac_compile" | $SED \
19105    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19106    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19107    -e 's:$: $lt_compiler_flag:'`
19108    (eval echo "\"\$as_me:19108: $lt_compile\"" >&5)
19109    (eval "$lt_compile" 2>out/conftest.err)
19110    ac_status=$?
19111    cat out/conftest.err >&5
19112    echo "$as_me:19112: \$? = $ac_status" >&5
19113    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19114    then
19115      # The compiler can only warn and ignore the option if not recognized
19116      # So say no if there are warnings
19117      if test ! -s out/conftest.err; then
19118        lt_cv_prog_compiler_c_o_F77=yes
19119      fi
19120    fi
19121    chmod u+w .
19122    $rm conftest*
19123    # SGI C++ compiler will create directory out/ii_files/ for
19124    # template instantiation
19125    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19126    $rm out/* && rmdir out
19127    cd ..
19128    rmdir conftest
19129    $rm conftest*
19130
19131 fi
19132 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19133 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19134
19135
19136 hard_links="nottested"
19137 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19138   # do not overwrite the value of need_locks provided by the user
19139   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19140 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19141   hard_links=yes
19142   $rm conftest*
19143   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19144   touch conftest.a
19145   ln conftest.a conftest.b 2>&5 || hard_links=no
19146   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19147   echo "$as_me:$LINENO: result: $hard_links" >&5
19148 echo "${ECHO_T}$hard_links" >&6
19149   if test "$hard_links" = no; then
19150     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19151 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19152     need_locks=warn
19153   fi
19154 else
19155   need_locks=no
19156 fi
19157
19158 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19159 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19160
19161   runpath_var=
19162   allow_undefined_flag_F77=
19163   enable_shared_with_static_runtimes_F77=no
19164   archive_cmds_F77=
19165   archive_expsym_cmds_F77=
19166   old_archive_From_new_cmds_F77=
19167   old_archive_from_expsyms_cmds_F77=
19168   export_dynamic_flag_spec_F77=
19169   whole_archive_flag_spec_F77=
19170   thread_safe_flag_spec_F77=
19171   hardcode_libdir_flag_spec_F77=
19172   hardcode_libdir_flag_spec_ld_F77=
19173   hardcode_libdir_separator_F77=
19174   hardcode_direct_F77=no
19175   hardcode_minus_L_F77=no
19176   hardcode_shlibpath_var_F77=unsupported
19177   link_all_deplibs_F77=unknown
19178   hardcode_automatic_F77=no
19179   module_cmds_F77=
19180   module_expsym_cmds_F77=
19181   always_export_symbols_F77=no
19182   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19183   # include_expsyms should be a list of space-separated symbols to be *always*
19184   # included in the symbol list
19185   include_expsyms_F77=
19186   # exclude_expsyms can be an extended regexp of symbols to exclude
19187   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19188   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19189   # as well as any symbol that contains `d'.
19190   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19191   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19192   # platforms (ab)use it in PIC code, but their linkers get confused if
19193   # the symbol is explicitly referenced.  Since portable code cannot
19194   # rely on this symbol name, it's probably fine to never include it in
19195   # preloaded symbol tables.
19196   extract_expsyms_cmds=
19197
19198   case $host_os in
19199   cygwin* | mingw* | pw32*)
19200     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19201     # When not using gcc, we currently assume that we are using
19202     # Microsoft Visual C++.
19203     if test "$GCC" != yes; then
19204       with_gnu_ld=no
19205     fi
19206     ;;
19207   openbsd*)
19208     with_gnu_ld=no
19209     ;;
19210   esac
19211
19212   ld_shlibs_F77=yes
19213   if test "$with_gnu_ld" = yes; then
19214     # If archive_cmds runs LD, not CC, wlarc should be empty
19215     wlarc='${wl}'
19216
19217     # See if GNU ld supports shared libraries.
19218     case $host_os in
19219     aix3* | aix4* | aix5*)
19220       # On AIX/PPC, the GNU linker is very broken
19221       if test "$host_cpu" != ia64; then
19222         ld_shlibs_F77=no
19223         cat <<EOF 1>&2
19224
19225 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19226 *** to be unable to reliably create shared libraries on AIX.
19227 *** Therefore, libtool is disabling shared libraries support.  If you
19228 *** really care for shared libraries, you may want to modify your PATH
19229 *** so that a non-GNU linker is found, and then restart.
19230
19231 EOF
19232       fi
19233       ;;
19234
19235     amigaos*)
19236       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)'
19237       hardcode_libdir_flag_spec_F77='-L$libdir'
19238       hardcode_minus_L_F77=yes
19239
19240       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19241       # that the semantics of dynamic libraries on AmigaOS, at least up
19242       # to version 4, is to share data among multiple programs linked
19243       # with the same dynamic library.  Since this doesn't match the
19244       # behavior of shared libraries on other platforms, we can't use
19245       # them.
19246       ld_shlibs_F77=no
19247       ;;
19248
19249     beos*)
19250       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19251         allow_undefined_flag_F77=unsupported
19252         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19253         # support --undefined.  This deserves some investigation.  FIXME
19254         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19255       else
19256         ld_shlibs_F77=no
19257       fi
19258       ;;
19259
19260     cygwin* | mingw* | pw32*)
19261       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19262       # as there is no search path for DLLs.
19263       hardcode_libdir_flag_spec_F77='-L$libdir'
19264       allow_undefined_flag_F77=unsupported
19265       always_export_symbols_F77=no
19266       enable_shared_with_static_runtimes_F77=yes
19267       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19268
19269       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19270         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19271         # If the export-symbols file already is a .def file (1st line
19272         # is EXPORTS), use it as is; otherwise, prepend...
19273         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19274           cp $export_symbols $output_objdir/$soname.def;
19275         else
19276           echo EXPORTS > $output_objdir/$soname.def;
19277           cat $export_symbols >> $output_objdir/$soname.def;
19278         fi~
19279         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19280       else
19281         ld_shlibs=no
19282       fi
19283       ;;
19284
19285     netbsd*)
19286       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19287         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19288         wlarc=
19289       else
19290         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19291         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19292       fi
19293       ;;
19294
19295     solaris* | sysv5*)
19296       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19297         ld_shlibs_F77=no
19298         cat <<EOF 1>&2
19299
19300 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19301 *** create shared libraries on Solaris systems.  Therefore, libtool
19302 *** is disabling shared libraries support.  We urge you to upgrade GNU
19303 *** binutils to release 2.9.1 or newer.  Another option is to modify
19304 *** your PATH or compiler configuration so that the native linker is
19305 *** used, and then restart.
19306
19307 EOF
19308       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19309         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19310         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19311       else
19312         ld_shlibs_F77=no
19313       fi
19314       ;;
19315
19316     sunos4*)
19317       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19318       wlarc=
19319       hardcode_direct_F77=yes
19320       hardcode_shlibpath_var_F77=no
19321       ;;
19322
19323   linux*)
19324     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19325         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19326         archive_cmds_F77="$tmp_archive_cmds"
19327       supports_anon_versioning=no
19328       case `$LD -v 2>/dev/null` in
19329         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19330         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19331         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19332         *\ 2.11.*) ;; # other 2.11 versions
19333         *) supports_anon_versioning=yes ;;
19334       esac
19335       if test $supports_anon_versioning = yes; then
19336         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19337 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19338 $echo "local: *; };" >> $output_objdir/$libname.ver~
19339         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19340       else
19341         archive_expsym_cmds_F77="$tmp_archive_cmds"
19342       fi
19343     else
19344       ld_shlibs_F77=no
19345     fi
19346     ;;
19347
19348     *)
19349       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19350         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19351         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19352       else
19353         ld_shlibs_F77=no
19354       fi
19355       ;;
19356     esac
19357
19358     if test "$ld_shlibs_F77" = yes; then
19359       runpath_var=LD_RUN_PATH
19360       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19361       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19362       # ancient GNU ld didn't support --whole-archive et. al.
19363       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19364         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19365       else
19366         whole_archive_flag_spec_F77=
19367       fi
19368     fi
19369   else
19370     # PORTME fill in a description of your system's linker (not GNU ld)
19371     case $host_os in
19372     aix3*)
19373       allow_undefined_flag_F77=unsupported
19374       always_export_symbols_F77=yes
19375       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'
19376       # Note: this linker hardcodes the directories in LIBPATH if there
19377       # are no directories specified by -L.
19378       hardcode_minus_L_F77=yes
19379       if test "$GCC" = yes && test -z "$link_static_flag"; then
19380         # Neither direct hardcoding nor static linking is supported with a
19381         # broken collect2.
19382         hardcode_direct_F77=unsupported
19383       fi
19384       ;;
19385
19386     aix4* | aix5*)
19387       if test "$host_cpu" = ia64; then
19388         # On IA64, the linker does run time linking by default, so we don't
19389         # have to do anything special.
19390         aix_use_runtimelinking=no
19391         exp_sym_flag='-Bexport'
19392         no_entry_flag=""
19393       else
19394         # If we're using GNU nm, then we don't want the "-C" option.
19395         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19396         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19397           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'
19398         else
19399           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'
19400         fi
19401         aix_use_runtimelinking=no
19402
19403         # Test if we are trying to use run time linking or normal
19404         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19405         # need to do runtime linking.
19406         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19407           for ld_flag in $LDFLAGS; do
19408           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19409             aix_use_runtimelinking=yes
19410             break
19411           fi
19412           done
19413         esac
19414
19415         exp_sym_flag='-bexport'
19416         no_entry_flag='-bnoentry'
19417       fi
19418
19419       # When large executables or shared objects are built, AIX ld can
19420       # have problems creating the table of contents.  If linking a library
19421       # or program results in "error TOC overflow" add -mminimal-toc to
19422       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19423       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19424
19425       archive_cmds_F77=''
19426       hardcode_direct_F77=yes
19427       hardcode_libdir_separator_F77=':'
19428       link_all_deplibs_F77=yes
19429
19430       if test "$GCC" = yes; then
19431         case $host_os in aix4.012|aix4.012.*)
19432         # We only want to do this on AIX 4.2 and lower, the check
19433         # below for broken collect2 doesn't work under 4.3+
19434           collect2name=`${CC} -print-prog-name=collect2`
19435           if test -f "$collect2name" && \
19436            strings "$collect2name" | grep resolve_lib_name >/dev/null
19437           then
19438           # We have reworked collect2
19439           hardcode_direct_F77=yes
19440           else
19441           # We have old collect2
19442           hardcode_direct_F77=unsupported
19443           # It fails to find uninstalled libraries when the uninstalled
19444           # path is not listed in the libpath.  Setting hardcode_minus_L
19445           # to unsupported forces relinking
19446           hardcode_minus_L_F77=yes
19447           hardcode_libdir_flag_spec_F77='-L$libdir'
19448           hardcode_libdir_separator_F77=
19449           fi
19450         esac
19451         shared_flag='-shared'
19452       else
19453         # not using gcc
19454         if test "$host_cpu" = ia64; then
19455         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19456         # chokes on -Wl,-G. The following line is correct:
19457           shared_flag='-G'
19458         else
19459         if test "$aix_use_runtimelinking" = yes; then
19460             shared_flag='${wl}-G'
19461           else
19462             shared_flag='${wl}-bM:SRE'
19463         fi
19464         fi
19465       fi
19466
19467       # It seems that -bexpall does not export symbols beginning with
19468       # underscore (_), so it is better to generate a list of symbols to export.
19469       always_export_symbols_F77=yes
19470       if test "$aix_use_runtimelinking" = yes; then
19471         # Warning - without using the other runtime loading flags (-brtl),
19472         # -berok will link without error, but may produce a broken library.
19473         allow_undefined_flag_F77='-berok'
19474        # Determine the default libpath from the value encoded in an empty executable.
19475        cat >conftest.$ac_ext <<_ACEOF
19476       program main
19477
19478       end
19479 _ACEOF
19480 rm -f conftest.$ac_objext conftest$ac_exeext
19481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19482   (eval $ac_link) 2>conftest.er1
19483   ac_status=$?
19484   grep -v '^ *+' conftest.er1 >conftest.err
19485   rm -f conftest.er1
19486   cat conftest.err >&5
19487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488   (exit $ac_status); } &&
19489          { ac_try='test -z "$ac_f77_werror_flag"
19490                          || test ! -s conftest.err'
19491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492   (eval $ac_try) 2>&5
19493   ac_status=$?
19494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495   (exit $ac_status); }; } &&
19496          { ac_try='test -s conftest$ac_exeext'
19497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498   (eval $ac_try) 2>&5
19499   ac_status=$?
19500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501   (exit $ac_status); }; }; then
19502
19503 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19504 }'`
19505 # Check for a 64-bit object if we didn't find anything.
19506 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; }
19507 }'`; fi
19508 else
19509   echo "$as_me: failed program was:" >&5
19510 sed 's/^/| /' conftest.$ac_ext >&5
19511
19512 fi
19513 rm -f conftest.err conftest.$ac_objext \
19514       conftest$ac_exeext conftest.$ac_ext
19515 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19516
19517        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19518         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"
19519        else
19520         if test "$host_cpu" = ia64; then
19521           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19522           allow_undefined_flag_F77="-z nodefs"
19523           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"
19524         else
19525          # Determine the default libpath from the value encoded in an empty executable.
19526          cat >conftest.$ac_ext <<_ACEOF
19527       program main
19528
19529       end
19530 _ACEOF
19531 rm -f conftest.$ac_objext conftest$ac_exeext
19532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19533   (eval $ac_link) 2>conftest.er1
19534   ac_status=$?
19535   grep -v '^ *+' conftest.er1 >conftest.err
19536   rm -f conftest.er1
19537   cat conftest.err >&5
19538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539   (exit $ac_status); } &&
19540          { ac_try='test -z "$ac_f77_werror_flag"
19541                          || test ! -s conftest.err'
19542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19543   (eval $ac_try) 2>&5
19544   ac_status=$?
19545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546   (exit $ac_status); }; } &&
19547          { ac_try='test -s conftest$ac_exeext'
19548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549   (eval $ac_try) 2>&5
19550   ac_status=$?
19551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552   (exit $ac_status); }; }; then
19553
19554 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19555 }'`
19556 # Check for a 64-bit object if we didn't find anything.
19557 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; }
19558 }'`; fi
19559 else
19560   echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19562
19563 fi
19564 rm -f conftest.err conftest.$ac_objext \
19565       conftest$ac_exeext conftest.$ac_ext
19566 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19567
19568          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19569           # Warning - without using the other run time loading flags,
19570           # -berok will link without error, but may produce a broken library.
19571           no_undefined_flag_F77=' ${wl}-bernotok'
19572           allow_undefined_flag_F77=' ${wl}-berok'
19573           # -bexpall does not export symbols beginning with underscore (_)
19574           always_export_symbols_F77=yes
19575           # Exported symbols can be pulled into shared objects from archives
19576           whole_archive_flag_spec_F77=' '
19577           archive_cmds_need_lc_F77=yes
19578           # This is similar to how AIX traditionally builds it's shared libraries.
19579           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'
19580         fi
19581       fi
19582       ;;
19583
19584     amigaos*)
19585       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)'
19586       hardcode_libdir_flag_spec_F77='-L$libdir'
19587       hardcode_minus_L_F77=yes
19588       # see comment about different semantics on the GNU ld section
19589       ld_shlibs_F77=no
19590       ;;
19591
19592     bsdi[45]*)
19593       export_dynamic_flag_spec_F77=-rdynamic
19594       ;;
19595
19596     cygwin* | mingw* | pw32*)
19597       # When not using gcc, we currently assume that we are using
19598       # Microsoft Visual C++.
19599       # hardcode_libdir_flag_spec is actually meaningless, as there is
19600       # no search path for DLLs.
19601       hardcode_libdir_flag_spec_F77=' '
19602       allow_undefined_flag_F77=unsupported
19603       # Tell ltmain to make .lib files, not .a files.
19604       libext=lib
19605       # Tell ltmain to make .dll files, not .so files.
19606       shrext_cmds=".dll"
19607       # FIXME: Setting linknames here is a bad hack.
19608       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19609       # The linker will automatically build a .lib file if we build a DLL.
19610       old_archive_From_new_cmds_F77='true'
19611       # FIXME: Should let the user specify the lib program.
19612       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19613       fix_srcfile_path='`cygpath -w "$srcfile"`'
19614       enable_shared_with_static_runtimes_F77=yes
19615       ;;
19616
19617     darwin* | rhapsody*)
19618       case "$host_os" in
19619         rhapsody* | darwin1.[012])
19620          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19621          ;;
19622        *) # Darwin 1.3 on
19623          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19624            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19625          else
19626            case ${MACOSX_DEPLOYMENT_TARGET} in
19627              10.[012])
19628                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19629                ;;
19630              10.*)
19631                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19632                ;;
19633            esac
19634          fi
19635          ;;
19636       esac
19637       archive_cmds_need_lc_F77=no
19638       hardcode_direct_F77=no
19639       hardcode_automatic_F77=yes
19640       hardcode_shlibpath_var_F77=unsupported
19641       whole_archive_flag_spec_F77=''
19642       link_all_deplibs_F77=yes
19643     if test "$GCC" = yes ; then
19644         output_verbose_link_cmd='echo'
19645         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19646       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19647       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19648       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}'
19649       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}'
19650     else
19651       case "$cc_basename" in
19652         xlc*)
19653          output_verbose_link_cmd='echo'
19654          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19655          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19656           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19657          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}'
19658           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}'
19659           ;;
19660        *)
19661          ld_shlibs_F77=no
19662           ;;
19663       esac
19664     fi
19665       ;;
19666
19667     dgux*)
19668       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19669       hardcode_libdir_flag_spec_F77='-L$libdir'
19670       hardcode_shlibpath_var_F77=no
19671       ;;
19672
19673     freebsd1*)
19674       ld_shlibs_F77=no
19675       ;;
19676
19677     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19678     # support.  Future versions do this automatically, but an explicit c++rt0.o
19679     # does not break anything, and helps significantly (at the cost of a little
19680     # extra space).
19681     freebsd2.2*)
19682       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19683       hardcode_libdir_flag_spec_F77='-R$libdir'
19684       hardcode_direct_F77=yes
19685       hardcode_shlibpath_var_F77=no
19686       ;;
19687
19688     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19689     freebsd2*)
19690       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19691       hardcode_direct_F77=yes
19692       hardcode_minus_L_F77=yes
19693       hardcode_shlibpath_var_F77=no
19694       ;;
19695
19696     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19697     freebsd* | kfreebsd*-gnu)
19698       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19699       hardcode_libdir_flag_spec_F77='-R$libdir'
19700       hardcode_direct_F77=yes
19701       hardcode_shlibpath_var_F77=no
19702       ;;
19703
19704     hpux9*)
19705       if test "$GCC" = yes; then
19706         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'
19707       else
19708         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'
19709       fi
19710       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19711       hardcode_libdir_separator_F77=:
19712       hardcode_direct_F77=yes
19713
19714       # hardcode_minus_L: Not really in the search PATH,
19715       # but as the default location of the library.
19716       hardcode_minus_L_F77=yes
19717       export_dynamic_flag_spec_F77='${wl}-E'
19718       ;;
19719
19720     hpux10* | hpux11*)
19721       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19722         case "$host_cpu" in
19723         hppa*64*|ia64*)
19724           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19725           ;;
19726         *)
19727           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19728           ;;
19729         esac
19730       else
19731         case "$host_cpu" in
19732         hppa*64*|ia64*)
19733           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19734           ;;
19735         *)
19736           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19737           ;;
19738         esac
19739       fi
19740       if test "$with_gnu_ld" = no; then
19741         case "$host_cpu" in
19742         hppa*64*)
19743           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19744           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19745           hardcode_libdir_separator_F77=:
19746           hardcode_direct_F77=no
19747           hardcode_shlibpath_var_F77=no
19748           ;;
19749         ia64*)
19750           hardcode_libdir_flag_spec_F77='-L$libdir'
19751           hardcode_direct_F77=no
19752           hardcode_shlibpath_var_F77=no
19753
19754           # hardcode_minus_L: Not really in the search PATH,
19755           # but as the default location of the library.
19756           hardcode_minus_L_F77=yes
19757           ;;
19758         *)
19759           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19760           hardcode_libdir_separator_F77=:
19761           hardcode_direct_F77=yes
19762           export_dynamic_flag_spec_F77='${wl}-E'
19763
19764           # hardcode_minus_L: Not really in the search PATH,
19765           # but as the default location of the library.
19766           hardcode_minus_L_F77=yes
19767           ;;
19768         esac
19769       fi
19770       ;;
19771
19772     irix5* | irix6* | nonstopux*)
19773       if test "$GCC" = yes; then
19774         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'
19775       else
19776         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'
19777         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19778       fi
19779       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19780       hardcode_libdir_separator_F77=:
19781       link_all_deplibs_F77=yes
19782       ;;
19783
19784     netbsd*)
19785       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19786         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19787       else
19788         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19789       fi
19790       hardcode_libdir_flag_spec_F77='-R$libdir'
19791       hardcode_direct_F77=yes
19792       hardcode_shlibpath_var_F77=no
19793       ;;
19794
19795     newsos6)
19796       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19797       hardcode_direct_F77=yes
19798       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19799       hardcode_libdir_separator_F77=:
19800       hardcode_shlibpath_var_F77=no
19801       ;;
19802
19803     openbsd*)
19804       hardcode_direct_F77=yes
19805       hardcode_shlibpath_var_F77=no
19806       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19807         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19808         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19809         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19810         export_dynamic_flag_spec_F77='${wl}-E'
19811       else
19812        case $host_os in
19813          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19814            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19815            hardcode_libdir_flag_spec_F77='-R$libdir'
19816            ;;
19817          *)
19818            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19819            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19820            ;;
19821        esac
19822       fi
19823       ;;
19824
19825     os2*)
19826       hardcode_libdir_flag_spec_F77='-L$libdir'
19827       hardcode_minus_L_F77=yes
19828       allow_undefined_flag_F77=unsupported
19829       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'
19830       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19831       ;;
19832
19833     osf3*)
19834       if test "$GCC" = yes; then
19835         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19836         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'
19837       else
19838         allow_undefined_flag_F77=' -expect_unresolved \*'
19839         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'
19840       fi
19841       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19842       hardcode_libdir_separator_F77=:
19843       ;;
19844
19845     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19846       if test "$GCC" = yes; then
19847         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19848         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'
19849         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19850       else
19851         allow_undefined_flag_F77=' -expect_unresolved \*'
19852         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'
19853         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~
19854         $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'
19855
19856         # Both c and cxx compiler support -rpath directly
19857         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19858       fi
19859       hardcode_libdir_separator_F77=:
19860       ;;
19861
19862     sco3.2v5*)
19863       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19864       hardcode_shlibpath_var_F77=no
19865       export_dynamic_flag_spec_F77='${wl}-Bexport'
19866       runpath_var=LD_RUN_PATH
19867       hardcode_runpath_var=yes
19868       ;;
19869
19870     solaris*)
19871       no_undefined_flag_F77=' -z text'
19872       if test "$GCC" = yes; then
19873         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19874         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19875           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19876       else
19877         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19878         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19879         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19880       fi
19881       hardcode_libdir_flag_spec_F77='-R$libdir'
19882       hardcode_shlibpath_var_F77=no
19883       case $host_os in
19884       solaris2.[0-5] | solaris2.[0-5].*) ;;
19885       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19886         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19887       esac
19888       link_all_deplibs_F77=yes
19889       ;;
19890
19891     sunos4*)
19892       if test "x$host_vendor" = xsequent; then
19893         # Use $CC to link under sequent, because it throws in some extra .o
19894         # files that make .init and .fini sections work.
19895         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19896       else
19897         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19898       fi
19899       hardcode_libdir_flag_spec_F77='-L$libdir'
19900       hardcode_direct_F77=yes
19901       hardcode_minus_L_F77=yes
19902       hardcode_shlibpath_var_F77=no
19903       ;;
19904
19905     sysv4)
19906       case $host_vendor in
19907         sni)
19908           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19909           hardcode_direct_F77=yes # is this really true???
19910         ;;
19911         siemens)
19912           ## LD is ld it makes a PLAMLIB
19913           ## CC just makes a GrossModule.
19914           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19915           reload_cmds_F77='$CC -r -o $output$reload_objs'
19916           hardcode_direct_F77=no
19917         ;;
19918         motorola)
19919           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19920           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19921         ;;
19922       esac
19923       runpath_var='LD_RUN_PATH'
19924       hardcode_shlibpath_var_F77=no
19925       ;;
19926
19927     sysv4.3*)
19928       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19929       hardcode_shlibpath_var_F77=no
19930       export_dynamic_flag_spec_F77='-Bexport'
19931       ;;
19932
19933     sysv4*MP*)
19934       if test -d /usr/nec; then
19935         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19936         hardcode_shlibpath_var_F77=no
19937         runpath_var=LD_RUN_PATH
19938         hardcode_runpath_var=yes
19939         ld_shlibs_F77=yes
19940       fi
19941       ;;
19942
19943     sysv4.2uw2*)
19944       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19945       hardcode_direct_F77=yes
19946       hardcode_minus_L_F77=no
19947       hardcode_shlibpath_var_F77=no
19948       hardcode_runpath_var=yes
19949       runpath_var=LD_RUN_PATH
19950       ;;
19951
19952    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19953       no_undefined_flag_F77='${wl}-z ${wl}text'
19954       if test "$GCC" = yes; then
19955         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19956       else
19957         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19958       fi
19959       runpath_var='LD_RUN_PATH'
19960       hardcode_shlibpath_var_F77=no
19961       ;;
19962
19963     sysv5*)
19964       no_undefined_flag_F77=' -z text'
19965       # $CC -shared without GNU ld will not create a library from C++
19966       # object files and a static libstdc++, better avoid it by now
19967       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19968       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19969                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19970       hardcode_libdir_flag_spec_F77=
19971       hardcode_shlibpath_var_F77=no
19972       runpath_var='LD_RUN_PATH'
19973       ;;
19974
19975     uts4*)
19976       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19977       hardcode_libdir_flag_spec_F77='-L$libdir'
19978       hardcode_shlibpath_var_F77=no
19979       ;;
19980
19981     *)
19982       ld_shlibs_F77=no
19983       ;;
19984     esac
19985   fi
19986
19987 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19988 echo "${ECHO_T}$ld_shlibs_F77" >&6
19989 test "$ld_shlibs_F77" = no && can_build_shared=no
19990
19991 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19992 if test "$GCC" = yes; then
19993   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19994 fi
19995
19996 #
19997 # Do we need to explicitly link libc?
19998 #
19999 case "x$archive_cmds_need_lc_F77" in
20000 x|xyes)
20001   # Assume -lc should be added
20002   archive_cmds_need_lc_F77=yes
20003
20004   if test "$enable_shared" = yes && test "$GCC" = yes; then
20005     case $archive_cmds_F77 in
20006     *'~'*)
20007       # FIXME: we may have to deal with multi-command sequences.
20008       ;;
20009     '$CC '*)
20010       # Test whether the compiler implicitly links with -lc since on some
20011       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20012       # to ld, don't add -lc before -lgcc.
20013       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20014 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20015       $rm conftest*
20016       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20017
20018       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20019   (eval $ac_compile) 2>&5
20020   ac_status=$?
20021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022   (exit $ac_status); } 2>conftest.err; then
20023         soname=conftest
20024         lib=conftest
20025         libobjs=conftest.$ac_objext
20026         deplibs=
20027         wl=$lt_prog_compiler_wl_F77
20028         compiler_flags=-v
20029         linker_flags=-v
20030         verstring=
20031         output_objdir=.
20032         libname=conftest
20033         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20034         allow_undefined_flag_F77=
20035         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20036   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20037   ac_status=$?
20038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039   (exit $ac_status); }
20040         then
20041           archive_cmds_need_lc_F77=no
20042         else
20043           archive_cmds_need_lc_F77=yes
20044         fi
20045         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20046       else
20047         cat conftest.err 1>&5
20048       fi
20049       $rm conftest*
20050       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20051 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20052       ;;
20053     esac
20054   fi
20055   ;;
20056 esac
20057
20058 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20059 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20060 library_names_spec=
20061 libname_spec='lib$name'
20062 soname_spec=
20063 shrext_cmds=".so"
20064 postinstall_cmds=
20065 postuninstall_cmds=
20066 finish_cmds=
20067 finish_eval=
20068 shlibpath_var=
20069 shlibpath_overrides_runpath=unknown
20070 version_type=none
20071 dynamic_linker="$host_os ld.so"
20072 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20073 if test "$GCC" = yes; then
20074   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20075   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20076     # if the path contains ";" then we assume it to be the separator
20077     # otherwise default to the standard path separator (i.e. ":") - it is
20078     # assumed that no part of a normal pathname contains ";" but that should
20079     # okay in the real world where ";" in dirpaths is itself problematic.
20080     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20081   else
20082     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20083   fi
20084 else
20085   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20086 fi
20087 need_lib_prefix=unknown
20088 hardcode_into_libs=no
20089
20090 # when you set need_version to no, make sure it does not cause -set_version
20091 # flags to be left without arguments
20092 need_version=unknown
20093
20094 case $host_os in
20095 aix3*)
20096   version_type=linux
20097   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20098   shlibpath_var=LIBPATH
20099
20100   # AIX 3 has no versioning support, so we append a major version to the name.
20101   soname_spec='${libname}${release}${shared_ext}$major'
20102   ;;
20103
20104 aix4* | aix5*)
20105   version_type=linux
20106   need_lib_prefix=no
20107   need_version=no
20108   hardcode_into_libs=yes
20109   if test "$host_cpu" = ia64; then
20110     # AIX 5 supports IA64
20111     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20112     shlibpath_var=LD_LIBRARY_PATH
20113   else
20114     # With GCC up to 2.95.x, collect2 would create an import file
20115     # for dependence libraries.  The import file would start with
20116     # the line `#! .'.  This would cause the generated library to
20117     # depend on `.', always an invalid library.  This was fixed in
20118     # development snapshots of GCC prior to 3.0.
20119     case $host_os in
20120       aix4 | aix4.[01] | aix4.[01].*)
20121       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20122            echo ' yes '
20123            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20124         :
20125       else
20126         can_build_shared=no
20127       fi
20128       ;;
20129     esac
20130     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20131     # soname into executable. Probably we can add versioning support to
20132     # collect2, so additional links can be useful in future.
20133     if test "$aix_use_runtimelinking" = yes; then
20134       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20135       # instead of lib<name>.a to let people know that these are not
20136       # typical AIX shared libraries.
20137       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20138     else
20139       # We preserve .a as extension for shared libraries through AIX4.2
20140       # and later when we are not doing run time linking.
20141       library_names_spec='${libname}${release}.a $libname.a'
20142       soname_spec='${libname}${release}${shared_ext}$major'
20143     fi
20144     shlibpath_var=LIBPATH
20145   fi
20146   ;;
20147
20148 amigaos*)
20149   library_names_spec='$libname.ixlibrary $libname.a'
20150   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20151   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'
20152   ;;
20153
20154 beos*)
20155   library_names_spec='${libname}${shared_ext}'
20156   dynamic_linker="$host_os ld.so"
20157   shlibpath_var=LIBRARY_PATH
20158   ;;
20159
20160 bsdi[45]*)
20161   version_type=linux
20162   need_version=no
20163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20164   soname_spec='${libname}${release}${shared_ext}$major'
20165   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20166   shlibpath_var=LD_LIBRARY_PATH
20167   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20168   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20169   # the default ld.so.conf also contains /usr/contrib/lib and
20170   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20171   # libtool to hard-code these into programs
20172   ;;
20173
20174 cygwin* | mingw* | pw32*)
20175   version_type=windows
20176   shrext_cmds=".dll"
20177   need_version=no
20178   need_lib_prefix=no
20179
20180   case $GCC,$host_os in
20181   yes,cygwin* | yes,mingw* | yes,pw32*)
20182     library_names_spec='$libname.dll.a'
20183     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20184     postinstall_cmds='base_file=`basename \${file}`~
20185       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20186       dldir=$destdir/`dirname \$dlpath`~
20187       test -d \$dldir || mkdir -p \$dldir~
20188       $install_prog $dir/$dlname \$dldir/$dlname'
20189     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20190       dlpath=$dir/\$dldll~
20191        $rm \$dlpath'
20192     shlibpath_overrides_runpath=yes
20193
20194     case $host_os in
20195     cygwin*)
20196       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20197       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20198       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20199       ;;
20200     mingw*)
20201       # MinGW DLLs use traditional 'lib' prefix
20202       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20203       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20204       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20205         # It is most probably a Windows format PATH printed by
20206         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20207         # path with ; separators, and with drive letters. We can handle the
20208         # drive letters (cygwin fileutils understands them), so leave them,
20209         # especially as we might pass files found there to a mingw objdump,
20210         # which wouldn't understand a cygwinified path. Ahh.
20211         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20212       else
20213         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20214       fi
20215       ;;
20216     pw32*)
20217       # pw32 DLLs use 'pw' prefix rather than 'lib'
20218       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20219       ;;
20220     esac
20221     ;;
20222
20223   *)
20224     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20225     ;;
20226   esac
20227   dynamic_linker='Win32 ld.exe'
20228   # FIXME: first we should search . and the directory the executable is in
20229   shlibpath_var=PATH
20230   ;;
20231
20232 darwin* | rhapsody*)
20233   dynamic_linker="$host_os dyld"
20234   version_type=darwin
20235   need_lib_prefix=no
20236   need_version=no
20237   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20238   soname_spec='${libname}${release}${major}$shared_ext'
20239   shlibpath_overrides_runpath=yes
20240   shlibpath_var=DYLD_LIBRARY_PATH
20241   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20242   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20243   if test "$GCC" = yes; then
20244     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"`
20245   else
20246     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20247   fi
20248   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20249   ;;
20250
20251 dgux*)
20252   version_type=linux
20253   need_lib_prefix=no
20254   need_version=no
20255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20256   soname_spec='${libname}${release}${shared_ext}$major'
20257   shlibpath_var=LD_LIBRARY_PATH
20258   ;;
20259
20260 freebsd1*)
20261   dynamic_linker=no
20262   ;;
20263
20264 kfreebsd*-gnu)
20265   version_type=linux
20266   need_lib_prefix=no
20267   need_version=no
20268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20269   soname_spec='${libname}${release}${shared_ext}$major'
20270   shlibpath_var=LD_LIBRARY_PATH
20271   shlibpath_overrides_runpath=no
20272   hardcode_into_libs=yes
20273   dynamic_linker='GNU ld.so'
20274   ;;
20275
20276 freebsd*)
20277   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20278   version_type=freebsd-$objformat
20279   case $version_type in
20280     freebsd-elf*)
20281       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20282       need_version=no
20283       need_lib_prefix=no
20284       ;;
20285     freebsd-*)
20286       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20287       need_version=yes
20288       ;;
20289   esac
20290   shlibpath_var=LD_LIBRARY_PATH
20291   case $host_os in
20292   freebsd2*)
20293     shlibpath_overrides_runpath=yes
20294     ;;
20295   freebsd3.01* | freebsdelf3.01*)
20296     shlibpath_overrides_runpath=yes
20297     hardcode_into_libs=yes
20298     ;;
20299   *) # from 3.2 on
20300     shlibpath_overrides_runpath=no
20301     hardcode_into_libs=yes
20302     ;;
20303   esac
20304   ;;
20305
20306 gnu*)
20307   version_type=linux
20308   need_lib_prefix=no
20309   need_version=no
20310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20311   soname_spec='${libname}${release}${shared_ext}$major'
20312   shlibpath_var=LD_LIBRARY_PATH
20313   hardcode_into_libs=yes
20314   ;;
20315
20316 hpux9* | hpux10* | hpux11*)
20317   # Give a soname corresponding to the major version so that dld.sl refuses to
20318   # link against other versions.
20319   version_type=sunos
20320   need_lib_prefix=no
20321   need_version=no
20322   case "$host_cpu" in
20323   ia64*)
20324     shrext_cmds='.so'
20325     hardcode_into_libs=yes
20326     dynamic_linker="$host_os dld.so"
20327     shlibpath_var=LD_LIBRARY_PATH
20328     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20329     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20330     soname_spec='${libname}${release}${shared_ext}$major'
20331     if test "X$HPUX_IA64_MODE" = X32; then
20332       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20333     else
20334       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20335     fi
20336     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20337     ;;
20338    hppa*64*)
20339      shrext_cmds='.sl'
20340      hardcode_into_libs=yes
20341      dynamic_linker="$host_os dld.sl"
20342      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20343      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20344      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20345      soname_spec='${libname}${release}${shared_ext}$major'
20346      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20347      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20348      ;;
20349    *)
20350     shrext_cmds='.sl'
20351     dynamic_linker="$host_os dld.sl"
20352     shlibpath_var=SHLIB_PATH
20353     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20354     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20355     soname_spec='${libname}${release}${shared_ext}$major'
20356     ;;
20357   esac
20358   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20359   postinstall_cmds='chmod 555 $lib'
20360   ;;
20361
20362 irix5* | irix6* | nonstopux*)
20363   case $host_os in
20364     nonstopux*) version_type=nonstopux ;;
20365     *)
20366         if test "$lt_cv_prog_gnu_ld" = yes; then
20367                 version_type=linux
20368         else
20369                 version_type=irix
20370         fi ;;
20371   esac
20372   need_lib_prefix=no
20373   need_version=no
20374   soname_spec='${libname}${release}${shared_ext}$major'
20375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20376   case $host_os in
20377   irix5* | nonstopux*)
20378     libsuff= shlibsuff=
20379     ;;
20380   *)
20381     case $LD in # libtool.m4 will add one of these switches to LD
20382     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20383       libsuff= shlibsuff= libmagic=32-bit;;
20384     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20385       libsuff=32 shlibsuff=N32 libmagic=N32;;
20386     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20387       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20388     *) libsuff= shlibsuff= libmagic=never-match;;
20389     esac
20390     ;;
20391   esac
20392   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20393   shlibpath_overrides_runpath=no
20394   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20395   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20396   hardcode_into_libs=yes
20397   ;;
20398
20399 # No shared lib support for Linux oldld, aout, or coff.
20400 linux*oldld* | linux*aout* | linux*coff*)
20401   dynamic_linker=no
20402   ;;
20403
20404 # This must be Linux ELF.
20405 linux*)
20406   version_type=linux
20407   need_lib_prefix=no
20408   need_version=no
20409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20410   soname_spec='${libname}${release}${shared_ext}$major'
20411   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20412   shlibpath_var=LD_LIBRARY_PATH
20413   shlibpath_overrides_runpath=no
20414   # This implies no fast_install, which is unacceptable.
20415   # Some rework will be needed to allow for fast_install
20416   # before this can be enabled.
20417   hardcode_into_libs=yes
20418
20419   # Append ld.so.conf contents to the search path
20420   if test -f /etc/ld.so.conf; then
20421     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20422     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20423   fi
20424
20425   # We used to test for /lib/ld.so.1 and disable shared libraries on
20426   # powerpc, because MkLinux only supported shared libraries with the
20427   # GNU dynamic linker.  Since this was broken with cross compilers,
20428   # most powerpc-linux boxes support dynamic linking these days and
20429   # people can always --disable-shared, the test was removed, and we
20430   # assume the GNU/Linux dynamic linker is in use.
20431   dynamic_linker='GNU/Linux ld.so'
20432   ;;
20433
20434 knetbsd*-gnu)
20435   version_type=linux
20436   need_lib_prefix=no
20437   need_version=no
20438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20439   soname_spec='${libname}${release}${shared_ext}$major'
20440   shlibpath_var=LD_LIBRARY_PATH
20441   shlibpath_overrides_runpath=no
20442   hardcode_into_libs=yes
20443   dynamic_linker='GNU ld.so'
20444   ;;
20445
20446 netbsd*)
20447   version_type=sunos
20448   need_lib_prefix=no
20449   need_version=no
20450   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20451     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20452     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20453     dynamic_linker='NetBSD (a.out) ld.so'
20454   else
20455     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20456     soname_spec='${libname}${release}${shared_ext}$major'
20457     dynamic_linker='NetBSD ld.elf_so'
20458   fi
20459   shlibpath_var=LD_LIBRARY_PATH
20460   shlibpath_overrides_runpath=yes
20461   hardcode_into_libs=yes
20462   ;;
20463
20464 newsos6)
20465   version_type=linux
20466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20467   shlibpath_var=LD_LIBRARY_PATH
20468   shlibpath_overrides_runpath=yes
20469   ;;
20470
20471 nto-qnx*)
20472   version_type=linux
20473   need_lib_prefix=no
20474   need_version=no
20475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20476   soname_spec='${libname}${release}${shared_ext}$major'
20477   shlibpath_var=LD_LIBRARY_PATH
20478   shlibpath_overrides_runpath=yes
20479   ;;
20480
20481 openbsd*)
20482   version_type=sunos
20483   need_lib_prefix=no
20484   need_version=no
20485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20486   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20487   shlibpath_var=LD_LIBRARY_PATH
20488   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20489     case $host_os in
20490       openbsd2.[89] | openbsd2.[89].*)
20491         shlibpath_overrides_runpath=no
20492         ;;
20493       *)
20494         shlibpath_overrides_runpath=yes
20495         ;;
20496       esac
20497   else
20498     shlibpath_overrides_runpath=yes
20499   fi
20500   ;;
20501
20502 os2*)
20503   libname_spec='$name'
20504   shrext_cmds=".dll"
20505   need_lib_prefix=no
20506   library_names_spec='$libname${shared_ext} $libname.a'
20507   dynamic_linker='OS/2 ld.exe'
20508   shlibpath_var=LIBPATH
20509   ;;
20510
20511 osf3* | osf4* | osf5*)
20512   version_type=osf
20513   need_lib_prefix=no
20514   need_version=no
20515   soname_spec='${libname}${release}${shared_ext}$major'
20516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20517   shlibpath_var=LD_LIBRARY_PATH
20518   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20519   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20520   ;;
20521
20522 sco3.2v5*)
20523   version_type=osf
20524   soname_spec='${libname}${release}${shared_ext}$major'
20525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20526   shlibpath_var=LD_LIBRARY_PATH
20527   ;;
20528
20529 solaris*)
20530   version_type=linux
20531   need_lib_prefix=no
20532   need_version=no
20533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20534   soname_spec='${libname}${release}${shared_ext}$major'
20535   shlibpath_var=LD_LIBRARY_PATH
20536   shlibpath_overrides_runpath=yes
20537   hardcode_into_libs=yes
20538   # ldd complains unless libraries are executable
20539   postinstall_cmds='chmod +x $lib'
20540   ;;
20541
20542 sunos4*)
20543   version_type=sunos
20544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20545   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20546   shlibpath_var=LD_LIBRARY_PATH
20547   shlibpath_overrides_runpath=yes
20548   if test "$with_gnu_ld" = yes; then
20549     need_lib_prefix=no
20550   fi
20551   need_version=yes
20552   ;;
20553
20554 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20555   version_type=linux
20556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20557   soname_spec='${libname}${release}${shared_ext}$major'
20558   shlibpath_var=LD_LIBRARY_PATH
20559   case $host_vendor in
20560     sni)
20561       shlibpath_overrides_runpath=no
20562       need_lib_prefix=no
20563       export_dynamic_flag_spec='${wl}-Blargedynsym'
20564       runpath_var=LD_RUN_PATH
20565       ;;
20566     siemens)
20567       need_lib_prefix=no
20568       ;;
20569     motorola)
20570       need_lib_prefix=no
20571       need_version=no
20572       shlibpath_overrides_runpath=no
20573       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20574       ;;
20575   esac
20576   ;;
20577
20578 sysv4*MP*)
20579   if test -d /usr/nec ;then
20580     version_type=linux
20581     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20582     soname_spec='$libname${shared_ext}.$major'
20583     shlibpath_var=LD_LIBRARY_PATH
20584   fi
20585   ;;
20586
20587 uts4*)
20588   version_type=linux
20589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20590   soname_spec='${libname}${release}${shared_ext}$major'
20591   shlibpath_var=LD_LIBRARY_PATH
20592   ;;
20593
20594 *)
20595   dynamic_linker=no
20596   ;;
20597 esac
20598 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20599 echo "${ECHO_T}$dynamic_linker" >&6
20600 test "$dynamic_linker" = no && can_build_shared=no
20601
20602 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20603 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20604 hardcode_action_F77=
20605 if test -n "$hardcode_libdir_flag_spec_F77" || \
20606    test -n "$runpath_var_F77" || \
20607    test "X$hardcode_automatic_F77" = "Xyes" ; then
20608
20609   # We can hardcode non-existant directories.
20610   if test "$hardcode_direct_F77" != no &&
20611      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20612      # have to relink, otherwise we might link with an installed library
20613      # when we should be linking with a yet-to-be-installed one
20614      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20615      test "$hardcode_minus_L_F77" != no; then
20616     # Linking always hardcodes the temporary library directory.
20617     hardcode_action_F77=relink
20618   else
20619     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20620     hardcode_action_F77=immediate
20621   fi
20622 else
20623   # We cannot hardcode anything, or else we can only hardcode existing
20624   # directories.
20625   hardcode_action_F77=unsupported
20626 fi
20627 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20628 echo "${ECHO_T}$hardcode_action_F77" >&6
20629
20630 if test "$hardcode_action_F77" = relink; then
20631   # Fast installation is not supported
20632   enable_fast_install=no
20633 elif test "$shlibpath_overrides_runpath" = yes ||
20634      test "$enable_shared" = no; then
20635   # Fast installation is not necessary
20636   enable_fast_install=needless
20637 fi
20638
20639 striplib=
20640 old_striplib=
20641 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20642 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20643 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20644   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20645   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20646   echo "$as_me:$LINENO: result: yes" >&5
20647 echo "${ECHO_T}yes" >&6
20648 else
20649 # FIXME - insert some real tests, host_os isn't really good enough
20650   case $host_os in
20651    darwin*)
20652        if test -n "$STRIP" ; then
20653          striplib="$STRIP -x"
20654          echo "$as_me:$LINENO: result: yes" >&5
20655 echo "${ECHO_T}yes" >&6
20656        else
20657   echo "$as_me:$LINENO: result: no" >&5
20658 echo "${ECHO_T}no" >&6
20659 fi
20660        ;;
20661    *)
20662   echo "$as_me:$LINENO: result: no" >&5
20663 echo "${ECHO_T}no" >&6
20664     ;;
20665   esac
20666 fi
20667
20668
20669
20670 # The else clause should only fire when bootstrapping the
20671 # libtool distribution, otherwise you forgot to ship ltmain.sh
20672 # with your package, and you will get complaints that there are
20673 # no rules to generate ltmain.sh.
20674 if test -f "$ltmain"; then
20675   # See if we are running on zsh, and set the options which allow our commands through
20676   # without removal of \ escapes.
20677   if test -n "${ZSH_VERSION+set}" ; then
20678     setopt NO_GLOB_SUBST
20679   fi
20680   # Now quote all the things that may contain metacharacters while being
20681   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20682   # variables and quote the copies for generation of the libtool script.
20683   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20684     SED SHELL STRIP \
20685     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20686     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20687     deplibs_check_method reload_flag reload_cmds need_locks \
20688     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20689     lt_cv_sys_global_symbol_to_c_name_address \
20690     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20691     old_postinstall_cmds old_postuninstall_cmds \
20692     compiler_F77 \
20693     CC_F77 \
20694     LD_F77 \
20695     lt_prog_compiler_wl_F77 \
20696     lt_prog_compiler_pic_F77 \
20697     lt_prog_compiler_static_F77 \
20698     lt_prog_compiler_no_builtin_flag_F77 \
20699     export_dynamic_flag_spec_F77 \
20700     thread_safe_flag_spec_F77 \
20701     whole_archive_flag_spec_F77 \
20702     enable_shared_with_static_runtimes_F77 \
20703     old_archive_cmds_F77 \
20704     old_archive_from_new_cmds_F77 \
20705     predep_objects_F77 \
20706     postdep_objects_F77 \
20707     predeps_F77 \
20708     postdeps_F77 \
20709     compiler_lib_search_path_F77 \
20710     archive_cmds_F77 \
20711     archive_expsym_cmds_F77 \
20712     postinstall_cmds_F77 \
20713     postuninstall_cmds_F77 \
20714     old_archive_from_expsyms_cmds_F77 \
20715     allow_undefined_flag_F77 \
20716     no_undefined_flag_F77 \
20717     export_symbols_cmds_F77 \
20718     hardcode_libdir_flag_spec_F77 \
20719     hardcode_libdir_flag_spec_ld_F77 \
20720     hardcode_libdir_separator_F77 \
20721     hardcode_automatic_F77 \
20722     module_cmds_F77 \
20723     module_expsym_cmds_F77 \
20724     lt_cv_prog_compiler_c_o_F77 \
20725     exclude_expsyms_F77 \
20726     include_expsyms_F77; do
20727
20728     case $var in
20729     old_archive_cmds_F77 | \
20730     old_archive_from_new_cmds_F77 | \
20731     archive_cmds_F77 | \
20732     archive_expsym_cmds_F77 | \
20733     module_cmds_F77 | \
20734     module_expsym_cmds_F77 | \
20735     old_archive_from_expsyms_cmds_F77 | \
20736     export_symbols_cmds_F77 | \
20737     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20738     postinstall_cmds | postuninstall_cmds | \
20739     old_postinstall_cmds | old_postuninstall_cmds | \
20740     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20741       # Double-quote double-evaled strings.
20742       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20743       ;;
20744     *)
20745       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20746       ;;
20747     esac
20748   done
20749
20750   case $lt_echo in
20751   *'\$0 --fallback-echo"')
20752     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20753     ;;
20754   esac
20755
20756 cfgfile="$ofile"
20757
20758   cat <<__EOF__ >> "$cfgfile"
20759 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20760
20761 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20762
20763 # Shell to use when invoking shell scripts.
20764 SHELL=$lt_SHELL
20765
20766 # Whether or not to build shared libraries.
20767 build_libtool_libs=$enable_shared
20768
20769 # Whether or not to build static libraries.
20770 build_old_libs=$enable_static
20771
20772 # Whether or not to add -lc for building shared libraries.
20773 build_libtool_need_lc=$archive_cmds_need_lc_F77
20774
20775 # Whether or not to disallow shared libs when runtime libs are static
20776 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20777
20778 # Whether or not to optimize for fast installation.
20779 fast_install=$enable_fast_install
20780
20781 # The host system.
20782 host_alias=$host_alias
20783 host=$host
20784
20785 # An echo program that does not interpret backslashes.
20786 echo=$lt_echo
20787
20788 # The archiver.
20789 AR=$lt_AR
20790 AR_FLAGS=$lt_AR_FLAGS
20791
20792 # A C compiler.
20793 LTCC=$lt_LTCC
20794
20795 # A language-specific compiler.
20796 CC=$lt_compiler_F77
20797
20798 # Is the compiler the GNU C compiler?
20799 with_gcc=$GCC_F77
20800
20801 # An ERE matcher.
20802 EGREP=$lt_EGREP
20803
20804 # The linker used to build libraries.
20805 LD=$lt_LD_F77
20806
20807 # Whether we need hard or soft links.
20808 LN_S=$lt_LN_S
20809
20810 # A BSD-compatible nm program.
20811 NM=$lt_NM
20812
20813 # A symbol stripping program
20814 STRIP=$lt_STRIP
20815
20816 # Used to examine libraries when file_magic_cmd begins "file"
20817 MAGIC_CMD=$MAGIC_CMD
20818
20819 # Used on cygwin: DLL creation program.
20820 DLLTOOL="$DLLTOOL"
20821
20822 # Used on cygwin: object dumper.
20823 OBJDUMP="$OBJDUMP"
20824
20825 # Used on cygwin: assembler.
20826 AS="$AS"
20827
20828 # The name of the directory that contains temporary libtool files.
20829 objdir=$objdir
20830
20831 # How to create reloadable object files.
20832 reload_flag=$lt_reload_flag
20833 reload_cmds=$lt_reload_cmds
20834
20835 # How to pass a linker flag through the compiler.
20836 wl=$lt_lt_prog_compiler_wl_F77
20837
20838 # Object file suffix (normally "o").
20839 objext="$ac_objext"
20840
20841 # Old archive suffix (normally "a").
20842 libext="$libext"
20843
20844 # Shared library suffix (normally ".so").
20845 shrext_cmds='$shrext_cmds'
20846
20847 # Executable file suffix (normally "").
20848 exeext="$exeext"
20849
20850 # Additional compiler flags for building library objects.
20851 pic_flag=$lt_lt_prog_compiler_pic_F77
20852 pic_mode=$pic_mode
20853
20854 # What is the maximum length of a command?
20855 max_cmd_len=$lt_cv_sys_max_cmd_len
20856
20857 # Does compiler simultaneously support -c and -o options?
20858 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20859
20860 # Must we lock files when doing compilation ?
20861 need_locks=$lt_need_locks
20862
20863 # Do we need the lib prefix for modules?
20864 need_lib_prefix=$need_lib_prefix
20865
20866 # Do we need a version for libraries?
20867 need_version=$need_version
20868
20869 # Whether dlopen is supported.
20870 dlopen_support=$enable_dlopen
20871
20872 # Whether dlopen of programs is supported.
20873 dlopen_self=$enable_dlopen_self
20874
20875 # Whether dlopen of statically linked programs is supported.
20876 dlopen_self_static=$enable_dlopen_self_static
20877
20878 # Compiler flag to prevent dynamic linking.
20879 link_static_flag=$lt_lt_prog_compiler_static_F77
20880
20881 # Compiler flag to turn off builtin functions.
20882 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20883
20884 # Compiler flag to allow reflexive dlopens.
20885 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20886
20887 # Compiler flag to generate shared objects directly from archives.
20888 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20889
20890 # Compiler flag to generate thread-safe objects.
20891 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20892
20893 # Library versioning type.
20894 version_type=$version_type
20895
20896 # Format of library name prefix.
20897 libname_spec=$lt_libname_spec
20898
20899 # List of archive names.  First name is the real one, the rest are links.
20900 # The last name is the one that the linker finds with -lNAME.
20901 library_names_spec=$lt_library_names_spec
20902
20903 # The coded name of the library, if different from the real name.
20904 soname_spec=$lt_soname_spec
20905
20906 # Commands used to build and install an old-style archive.
20907 RANLIB=$lt_RANLIB
20908 old_archive_cmds=$lt_old_archive_cmds_F77
20909 old_postinstall_cmds=$lt_old_postinstall_cmds
20910 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20911
20912 # Create an old-style archive from a shared archive.
20913 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20914
20915 # Create a temporary old-style archive to link instead of a shared archive.
20916 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20917
20918 # Commands used to build and install a shared archive.
20919 archive_cmds=$lt_archive_cmds_F77
20920 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20921 postinstall_cmds=$lt_postinstall_cmds
20922 postuninstall_cmds=$lt_postuninstall_cmds
20923
20924 # Commands used to build a loadable module (assumed same as above if empty)
20925 module_cmds=$lt_module_cmds_F77
20926 module_expsym_cmds=$lt_module_expsym_cmds_F77
20927
20928 # Commands to strip libraries.
20929 old_striplib=$lt_old_striplib
20930 striplib=$lt_striplib
20931
20932 # Dependencies to place before the objects being linked to create a
20933 # shared library.
20934 predep_objects=$lt_predep_objects_F77
20935
20936 # Dependencies to place after the objects being linked to create a
20937 # shared library.
20938 postdep_objects=$lt_postdep_objects_F77
20939
20940 # Dependencies to place before the objects being linked to create a
20941 # shared library.
20942 predeps=$lt_predeps_F77
20943
20944 # Dependencies to place after the objects being linked to create a
20945 # shared library.
20946 postdeps=$lt_postdeps_F77
20947
20948 # The library search path used internally by the compiler when linking
20949 # a shared library.
20950 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20951
20952 # Method to check whether dependent libraries are shared objects.
20953 deplibs_check_method=$lt_deplibs_check_method
20954
20955 # Command to use when deplibs_check_method == file_magic.
20956 file_magic_cmd=$lt_file_magic_cmd
20957
20958 # Flag that allows shared libraries with undefined symbols to be built.
20959 allow_undefined_flag=$lt_allow_undefined_flag_F77
20960
20961 # Flag that forces no undefined symbols.
20962 no_undefined_flag=$lt_no_undefined_flag_F77
20963
20964 # Commands used to finish a libtool library installation in a directory.
20965 finish_cmds=$lt_finish_cmds
20966
20967 # Same as above, but a single script fragment to be evaled but not shown.
20968 finish_eval=$lt_finish_eval
20969
20970 # Take the output of nm and produce a listing of raw symbols and C names.
20971 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20972
20973 # Transform the output of nm in a proper C declaration
20974 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20975
20976 # Transform the output of nm in a C name address pair
20977 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20978
20979 # This is the shared library runtime path variable.
20980 runpath_var=$runpath_var
20981
20982 # This is the shared library path variable.
20983 shlibpath_var=$shlibpath_var
20984
20985 # Is shlibpath searched before the hard-coded library search path?
20986 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20987
20988 # How to hardcode a shared library path into an executable.
20989 hardcode_action=$hardcode_action_F77
20990
20991 # Whether we should hardcode library paths into libraries.
20992 hardcode_into_libs=$hardcode_into_libs
20993
20994 # Flag to hardcode \$libdir into a binary during linking.
20995 # This must work even if \$libdir does not exist.
20996 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20997
20998 # If ld is used when linking, flag to hardcode \$libdir into
20999 # a binary during linking. This must work even if \$libdir does
21000 # not exist.
21001 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21002
21003 # Whether we need a single -rpath flag with a separated argument.
21004 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21005
21006 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21007 # resulting binary.
21008 hardcode_direct=$hardcode_direct_F77
21009
21010 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21011 # resulting binary.
21012 hardcode_minus_L=$hardcode_minus_L_F77
21013
21014 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21015 # the resulting binary.
21016 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21017
21018 # Set to yes if building a shared library automatically hardcodes DIR into the library
21019 # and all subsequent libraries and executables linked against it.
21020 hardcode_automatic=$hardcode_automatic_F77
21021
21022 # Variables whose values should be saved in libtool wrapper scripts and
21023 # restored at relink time.
21024 variables_saved_for_relink="$variables_saved_for_relink"
21025
21026 # Whether libtool must link a program against all its dependency libraries.
21027 link_all_deplibs=$link_all_deplibs_F77
21028
21029 # Compile-time system search path for libraries
21030 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21031
21032 # Run-time system search path for libraries
21033 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21034
21035 # Fix the shell variable \$srcfile for the compiler.
21036 fix_srcfile_path="$fix_srcfile_path_F77"
21037
21038 # Set to yes if exported symbols are required.
21039 always_export_symbols=$always_export_symbols_F77
21040
21041 # The commands to list exported symbols.
21042 export_symbols_cmds=$lt_export_symbols_cmds_F77
21043
21044 # The commands to extract the exported symbol list from a shared archive.
21045 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21046
21047 # Symbols that should not be listed in the preloaded symbols.
21048 exclude_expsyms=$lt_exclude_expsyms_F77
21049
21050 # Symbols that must always be exported.
21051 include_expsyms=$lt_include_expsyms_F77
21052
21053 # ### END LIBTOOL TAG CONFIG: $tagname
21054
21055 __EOF__
21056
21057
21058 else
21059   # If there is no Makefile yet, we rely on a make rule to execute
21060   # `config.status --recheck' to rerun these tests and create the
21061   # libtool script then.
21062   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21063   if test -f "$ltmain_in"; then
21064     test -f Makefile && make "$ltmain"
21065   fi
21066 fi
21067
21068
21069 ac_ext=c
21070 ac_cpp='$CPP $CPPFLAGS'
21071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21074
21075 CC="$lt_save_CC"
21076
21077         else
21078           tagname=""
21079         fi
21080         ;;
21081
21082       GCJ)
21083         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21084           ac_ext=c
21085 ac_cpp='$CPP $CPPFLAGS'
21086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21089
21090
21091 # Source file extension for Java test sources.
21092 ac_ext=java
21093
21094 # Object file extension for compiled Java test sources.
21095 objext=o
21096 objext_GCJ=$objext
21097
21098 # Code to be used in simple compile tests
21099 lt_simple_compile_test_code="class foo {}\n"
21100
21101 # Code to be used in simple link tests
21102 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21103
21104 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21105
21106 # If no C compiler was specified, use CC.
21107 LTCC=${LTCC-"$CC"}
21108
21109 # Allow CC to be a program name with arguments.
21110 compiler=$CC
21111
21112
21113 # Allow CC to be a program name with arguments.
21114 lt_save_CC="$CC"
21115 CC=${GCJ-"gcj"}
21116 compiler=$CC
21117 compiler_GCJ=$CC
21118
21119 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21120 archive_cmds_need_lc_GCJ=no
21121
21122
21123 lt_prog_compiler_no_builtin_flag_GCJ=
21124
21125 if test "$GCC" = yes; then
21126   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21127
21128
21129 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21130 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21131 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21132   echo $ECHO_N "(cached) $ECHO_C" >&6
21133 else
21134   lt_cv_prog_compiler_rtti_exceptions=no
21135   ac_outfile=conftest.$ac_objext
21136    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21137    lt_compiler_flag="-fno-rtti -fno-exceptions"
21138    # Insert the option either (1) after the last *FLAGS variable, or
21139    # (2) before a word containing "conftest.", or (3) at the end.
21140    # Note that $ac_compile itself does not contain backslashes and begins
21141    # with a dollar sign (not a hyphen), so the echo should work correctly.
21142    # The option is referenced via a variable to avoid confusing sed.
21143    lt_compile=`echo "$ac_compile" | $SED \
21144    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21145    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21146    -e 's:$: $lt_compiler_flag:'`
21147    (eval echo "\"\$as_me:21147: $lt_compile\"" >&5)
21148    (eval "$lt_compile" 2>conftest.err)
21149    ac_status=$?
21150    cat conftest.err >&5
21151    echo "$as_me:21151: \$? = $ac_status" >&5
21152    if (exit $ac_status) && test -s "$ac_outfile"; then
21153      # The compiler can only warn and ignore the option if not recognized
21154      # So say no if there are warnings
21155      if test ! -s conftest.err; then
21156        lt_cv_prog_compiler_rtti_exceptions=yes
21157      fi
21158    fi
21159    $rm conftest*
21160
21161 fi
21162 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21163 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21164
21165 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21166     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21167 else
21168     :
21169 fi
21170
21171 fi
21172
21173 lt_prog_compiler_wl_GCJ=
21174 lt_prog_compiler_pic_GCJ=
21175 lt_prog_compiler_static_GCJ=
21176
21177 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21178 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21179
21180   if test "$GCC" = yes; then
21181     lt_prog_compiler_wl_GCJ='-Wl,'
21182     lt_prog_compiler_static_GCJ='-static'
21183
21184     case $host_os in
21185       aix*)
21186       # All AIX code is PIC.
21187       if test "$host_cpu" = ia64; then
21188         # AIX 5 now supports IA64 processor
21189         lt_prog_compiler_static_GCJ='-Bstatic'
21190       fi
21191       ;;
21192
21193     amigaos*)
21194       # FIXME: we need at least 68020 code to build shared libraries, but
21195       # adding the `-m68020' flag to GCC prevents building anything better,
21196       # like `-m68040'.
21197       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21198       ;;
21199
21200     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21201       # PIC is the default for these OSes.
21202       ;;
21203
21204     mingw* | pw32* | os2*)
21205       # This hack is so that the source file can tell whether it is being
21206       # built for inclusion in a dll (and should export symbols for example).
21207       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21208       ;;
21209
21210     darwin* | rhapsody*)
21211       # PIC is the default on this platform
21212       # Common symbols not allowed in MH_DYLIB files
21213       lt_prog_compiler_pic_GCJ='-fno-common'
21214       ;;
21215
21216     msdosdjgpp*)
21217       # Just because we use GCC doesn't mean we suddenly get shared libraries
21218       # on systems that don't support them.
21219       lt_prog_compiler_can_build_shared_GCJ=no
21220       enable_shared=no
21221       ;;
21222
21223     sysv4*MP*)
21224       if test -d /usr/nec; then
21225         lt_prog_compiler_pic_GCJ=-Kconform_pic
21226       fi
21227       ;;
21228
21229     hpux*)
21230       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21231       # not for PA HP-UX.
21232       case "$host_cpu" in
21233       hppa*64*|ia64*)
21234         # +Z the default
21235         ;;
21236       *)
21237         lt_prog_compiler_pic_GCJ='-fPIC'
21238         ;;
21239       esac
21240       ;;
21241
21242     *)
21243       lt_prog_compiler_pic_GCJ='-fPIC'
21244       ;;
21245     esac
21246   else
21247     # PORTME Check for flag to pass linker flags through the system compiler.
21248     case $host_os in
21249     aix*)
21250       lt_prog_compiler_wl_GCJ='-Wl,'
21251       if test "$host_cpu" = ia64; then
21252         # AIX 5 now supports IA64 processor
21253         lt_prog_compiler_static_GCJ='-Bstatic'
21254       else
21255         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21256       fi
21257       ;;
21258       darwin*)
21259         # PIC is the default on this platform
21260         # Common symbols not allowed in MH_DYLIB files
21261        case "$cc_basename" in
21262          xlc*)
21263          lt_prog_compiler_pic_GCJ='-qnocommon'
21264          lt_prog_compiler_wl_GCJ='-Wl,'
21265          ;;
21266        esac
21267        ;;
21268
21269     mingw* | pw32* | os2*)
21270       # This hack is so that the source file can tell whether it is being
21271       # built for inclusion in a dll (and should export symbols for example).
21272       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21273       ;;
21274
21275     hpux9* | hpux10* | hpux11*)
21276       lt_prog_compiler_wl_GCJ='-Wl,'
21277       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21278       # not for PA HP-UX.
21279       case "$host_cpu" in
21280       hppa*64*|ia64*)
21281         # +Z the default
21282         ;;
21283       *)
21284         lt_prog_compiler_pic_GCJ='+Z'
21285         ;;
21286       esac
21287       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21288       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21289       ;;
21290
21291     irix5* | irix6* | nonstopux*)
21292       lt_prog_compiler_wl_GCJ='-Wl,'
21293       # PIC (with -KPIC) is the default.
21294       lt_prog_compiler_static_GCJ='-non_shared'
21295       ;;
21296
21297     newsos6)
21298       lt_prog_compiler_pic_GCJ='-KPIC'
21299       lt_prog_compiler_static_GCJ='-Bstatic'
21300       ;;
21301
21302     linux*)
21303       case $CC in
21304       icc* | ecc*)
21305         lt_prog_compiler_wl_GCJ='-Wl,'
21306         lt_prog_compiler_pic_GCJ='-KPIC'
21307         lt_prog_compiler_static_GCJ='-static'
21308         ;;
21309       ccc*)
21310         lt_prog_compiler_wl_GCJ='-Wl,'
21311         # All Alpha code is PIC.
21312         lt_prog_compiler_static_GCJ='-non_shared'
21313         ;;
21314       esac
21315       ;;
21316
21317     osf3* | osf4* | osf5*)
21318       lt_prog_compiler_wl_GCJ='-Wl,'
21319       # All OSF/1 code is PIC.
21320       lt_prog_compiler_static_GCJ='-non_shared'
21321       ;;
21322
21323     sco3.2v5*)
21324       lt_prog_compiler_pic_GCJ='-Kpic'
21325       lt_prog_compiler_static_GCJ='-dn'
21326       ;;
21327
21328     solaris*)
21329       lt_prog_compiler_wl_GCJ='-Wl,'
21330       lt_prog_compiler_pic_GCJ='-KPIC'
21331       lt_prog_compiler_static_GCJ='-Bstatic'
21332       ;;
21333
21334     sunos4*)
21335       lt_prog_compiler_wl_GCJ='-Qoption ld '
21336       lt_prog_compiler_pic_GCJ='-PIC'
21337       lt_prog_compiler_static_GCJ='-Bstatic'
21338       ;;
21339
21340     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21341       lt_prog_compiler_wl_GCJ='-Wl,'
21342       lt_prog_compiler_pic_GCJ='-KPIC'
21343       lt_prog_compiler_static_GCJ='-Bstatic'
21344       ;;
21345
21346     sysv4*MP*)
21347       if test -d /usr/nec ;then
21348         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21349         lt_prog_compiler_static_GCJ='-Bstatic'
21350       fi
21351       ;;
21352
21353     uts4*)
21354       lt_prog_compiler_pic_GCJ='-pic'
21355       lt_prog_compiler_static_GCJ='-Bstatic'
21356       ;;
21357
21358     *)
21359       lt_prog_compiler_can_build_shared_GCJ=no
21360       ;;
21361     esac
21362   fi
21363
21364 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21365 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21366
21367 #
21368 # Check to make sure the PIC flag actually works.
21369 #
21370 if test -n "$lt_prog_compiler_pic_GCJ"; then
21371
21372 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21373 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21374 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21375   echo $ECHO_N "(cached) $ECHO_C" >&6
21376 else
21377   lt_prog_compiler_pic_works_GCJ=no
21378   ac_outfile=conftest.$ac_objext
21379    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21380    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21381    # Insert the option either (1) after the last *FLAGS variable, or
21382    # (2) before a word containing "conftest.", or (3) at the end.
21383    # Note that $ac_compile itself does not contain backslashes and begins
21384    # with a dollar sign (not a hyphen), so the echo should work correctly.
21385    # The option is referenced via a variable to avoid confusing sed.
21386    lt_compile=`echo "$ac_compile" | $SED \
21387    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21388    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21389    -e 's:$: $lt_compiler_flag:'`
21390    (eval echo "\"\$as_me:21390: $lt_compile\"" >&5)
21391    (eval "$lt_compile" 2>conftest.err)
21392    ac_status=$?
21393    cat conftest.err >&5
21394    echo "$as_me:21394: \$? = $ac_status" >&5
21395    if (exit $ac_status) && test -s "$ac_outfile"; then
21396      # The compiler can only warn and ignore the option if not recognized
21397      # So say no if there are warnings
21398      if test ! -s conftest.err; then
21399        lt_prog_compiler_pic_works_GCJ=yes
21400      fi
21401    fi
21402    $rm conftest*
21403
21404 fi
21405 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21406 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21407
21408 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21409     case $lt_prog_compiler_pic_GCJ in
21410      "" | " "*) ;;
21411      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21412      esac
21413 else
21414     lt_prog_compiler_pic_GCJ=
21415      lt_prog_compiler_can_build_shared_GCJ=no
21416 fi
21417
21418 fi
21419 case "$host_os" in
21420   # For platforms which do not support PIC, -DPIC is meaningless:
21421   *djgpp*)
21422     lt_prog_compiler_pic_GCJ=
21423     ;;
21424   *)
21425     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21426     ;;
21427 esac
21428
21429 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21430 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21431 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21432   echo $ECHO_N "(cached) $ECHO_C" >&6
21433 else
21434   lt_cv_prog_compiler_c_o_GCJ=no
21435    $rm -r conftest 2>/dev/null
21436    mkdir conftest
21437    cd conftest
21438    mkdir out
21439    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21440
21441    lt_compiler_flag="-o out/conftest2.$ac_objext"
21442    # Insert the option either (1) after the last *FLAGS variable, or
21443    # (2) before a word containing "conftest.", or (3) at the end.
21444    # Note that $ac_compile itself does not contain backslashes and begins
21445    # with a dollar sign (not a hyphen), so the echo should work correctly.
21446    lt_compile=`echo "$ac_compile" | $SED \
21447    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21448    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21449    -e 's:$: $lt_compiler_flag:'`
21450    (eval echo "\"\$as_me:21450: $lt_compile\"" >&5)
21451    (eval "$lt_compile" 2>out/conftest.err)
21452    ac_status=$?
21453    cat out/conftest.err >&5
21454    echo "$as_me:21454: \$? = $ac_status" >&5
21455    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21456    then
21457      # The compiler can only warn and ignore the option if not recognized
21458      # So say no if there are warnings
21459      if test ! -s out/conftest.err; then
21460        lt_cv_prog_compiler_c_o_GCJ=yes
21461      fi
21462    fi
21463    chmod u+w .
21464    $rm conftest*
21465    # SGI C++ compiler will create directory out/ii_files/ for
21466    # template instantiation
21467    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21468    $rm out/* && rmdir out
21469    cd ..
21470    rmdir conftest
21471    $rm conftest*
21472
21473 fi
21474 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21475 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21476
21477
21478 hard_links="nottested"
21479 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21480   # do not overwrite the value of need_locks provided by the user
21481   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21482 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21483   hard_links=yes
21484   $rm conftest*
21485   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21486   touch conftest.a
21487   ln conftest.a conftest.b 2>&5 || hard_links=no
21488   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21489   echo "$as_me:$LINENO: result: $hard_links" >&5
21490 echo "${ECHO_T}$hard_links" >&6
21491   if test "$hard_links" = no; then
21492     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21493 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21494     need_locks=warn
21495   fi
21496 else
21497   need_locks=no
21498 fi
21499
21500 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21501 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21502
21503   runpath_var=
21504   allow_undefined_flag_GCJ=
21505   enable_shared_with_static_runtimes_GCJ=no
21506   archive_cmds_GCJ=
21507   archive_expsym_cmds_GCJ=
21508   old_archive_From_new_cmds_GCJ=
21509   old_archive_from_expsyms_cmds_GCJ=
21510   export_dynamic_flag_spec_GCJ=
21511   whole_archive_flag_spec_GCJ=
21512   thread_safe_flag_spec_GCJ=
21513   hardcode_libdir_flag_spec_GCJ=
21514   hardcode_libdir_flag_spec_ld_GCJ=
21515   hardcode_libdir_separator_GCJ=
21516   hardcode_direct_GCJ=no
21517   hardcode_minus_L_GCJ=no
21518   hardcode_shlibpath_var_GCJ=unsupported
21519   link_all_deplibs_GCJ=unknown
21520   hardcode_automatic_GCJ=no
21521   module_cmds_GCJ=
21522   module_expsym_cmds_GCJ=
21523   always_export_symbols_GCJ=no
21524   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21525   # include_expsyms should be a list of space-separated symbols to be *always*
21526   # included in the symbol list
21527   include_expsyms_GCJ=
21528   # exclude_expsyms can be an extended regexp of symbols to exclude
21529   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21530   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21531   # as well as any symbol that contains `d'.
21532   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21533   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21534   # platforms (ab)use it in PIC code, but their linkers get confused if
21535   # the symbol is explicitly referenced.  Since portable code cannot
21536   # rely on this symbol name, it's probably fine to never include it in
21537   # preloaded symbol tables.
21538   extract_expsyms_cmds=
21539
21540   case $host_os in
21541   cygwin* | mingw* | pw32*)
21542     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21543     # When not using gcc, we currently assume that we are using
21544     # Microsoft Visual C++.
21545     if test "$GCC" != yes; then
21546       with_gnu_ld=no
21547     fi
21548     ;;
21549   openbsd*)
21550     with_gnu_ld=no
21551     ;;
21552   esac
21553
21554   ld_shlibs_GCJ=yes
21555   if test "$with_gnu_ld" = yes; then
21556     # If archive_cmds runs LD, not CC, wlarc should be empty
21557     wlarc='${wl}'
21558
21559     # See if GNU ld supports shared libraries.
21560     case $host_os in
21561     aix3* | aix4* | aix5*)
21562       # On AIX/PPC, the GNU linker is very broken
21563       if test "$host_cpu" != ia64; then
21564         ld_shlibs_GCJ=no
21565         cat <<EOF 1>&2
21566
21567 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21568 *** to be unable to reliably create shared libraries on AIX.
21569 *** Therefore, libtool is disabling shared libraries support.  If you
21570 *** really care for shared libraries, you may want to modify your PATH
21571 *** so that a non-GNU linker is found, and then restart.
21572
21573 EOF
21574       fi
21575       ;;
21576
21577     amigaos*)
21578       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)'
21579       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21580       hardcode_minus_L_GCJ=yes
21581
21582       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21583       # that the semantics of dynamic libraries on AmigaOS, at least up
21584       # to version 4, is to share data among multiple programs linked
21585       # with the same dynamic library.  Since this doesn't match the
21586       # behavior of shared libraries on other platforms, we can't use
21587       # them.
21588       ld_shlibs_GCJ=no
21589       ;;
21590
21591     beos*)
21592       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21593         allow_undefined_flag_GCJ=unsupported
21594         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21595         # support --undefined.  This deserves some investigation.  FIXME
21596         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21597       else
21598         ld_shlibs_GCJ=no
21599       fi
21600       ;;
21601
21602     cygwin* | mingw* | pw32*)
21603       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21604       # as there is no search path for DLLs.
21605       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21606       allow_undefined_flag_GCJ=unsupported
21607       always_export_symbols_GCJ=no
21608       enable_shared_with_static_runtimes_GCJ=yes
21609       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21610
21611       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21612         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21613         # If the export-symbols file already is a .def file (1st line
21614         # is EXPORTS), use it as is; otherwise, prepend...
21615         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21616           cp $export_symbols $output_objdir/$soname.def;
21617         else
21618           echo EXPORTS > $output_objdir/$soname.def;
21619           cat $export_symbols >> $output_objdir/$soname.def;
21620         fi~
21621         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21622       else
21623         ld_shlibs=no
21624       fi
21625       ;;
21626
21627     netbsd*)
21628       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21629         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21630         wlarc=
21631       else
21632         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21633         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21634       fi
21635       ;;
21636
21637     solaris* | sysv5*)
21638       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21639         ld_shlibs_GCJ=no
21640         cat <<EOF 1>&2
21641
21642 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21643 *** create shared libraries on Solaris systems.  Therefore, libtool
21644 *** is disabling shared libraries support.  We urge you to upgrade GNU
21645 *** binutils to release 2.9.1 or newer.  Another option is to modify
21646 *** your PATH or compiler configuration so that the native linker is
21647 *** used, and then restart.
21648
21649 EOF
21650       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21651         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21652         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21653       else
21654         ld_shlibs_GCJ=no
21655       fi
21656       ;;
21657
21658     sunos4*)
21659       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21660       wlarc=
21661       hardcode_direct_GCJ=yes
21662       hardcode_shlibpath_var_GCJ=no
21663       ;;
21664
21665   linux*)
21666     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21667         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21668         archive_cmds_GCJ="$tmp_archive_cmds"
21669       supports_anon_versioning=no
21670       case `$LD -v 2>/dev/null` in
21671         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21672         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21673         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21674         *\ 2.11.*) ;; # other 2.11 versions
21675         *) supports_anon_versioning=yes ;;
21676       esac
21677       if test $supports_anon_versioning = yes; then
21678         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21679 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21680 $echo "local: *; };" >> $output_objdir/$libname.ver~
21681         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21682       else
21683         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21684       fi
21685     else
21686       ld_shlibs_GCJ=no
21687     fi
21688     ;;
21689
21690     *)
21691       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21692         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21693         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21694       else
21695         ld_shlibs_GCJ=no
21696       fi
21697       ;;
21698     esac
21699
21700     if test "$ld_shlibs_GCJ" = yes; then
21701       runpath_var=LD_RUN_PATH
21702       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21703       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21704       # ancient GNU ld didn't support --whole-archive et. al.
21705       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21706         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21707       else
21708         whole_archive_flag_spec_GCJ=
21709       fi
21710     fi
21711   else
21712     # PORTME fill in a description of your system's linker (not GNU ld)
21713     case $host_os in
21714     aix3*)
21715       allow_undefined_flag_GCJ=unsupported
21716       always_export_symbols_GCJ=yes
21717       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'
21718       # Note: this linker hardcodes the directories in LIBPATH if there
21719       # are no directories specified by -L.
21720       hardcode_minus_L_GCJ=yes
21721       if test "$GCC" = yes && test -z "$link_static_flag"; then
21722         # Neither direct hardcoding nor static linking is supported with a
21723         # broken collect2.
21724         hardcode_direct_GCJ=unsupported
21725       fi
21726       ;;
21727
21728     aix4* | aix5*)
21729       if test "$host_cpu" = ia64; then
21730         # On IA64, the linker does run time linking by default, so we don't
21731         # have to do anything special.
21732         aix_use_runtimelinking=no
21733         exp_sym_flag='-Bexport'
21734         no_entry_flag=""
21735       else
21736         # If we're using GNU nm, then we don't want the "-C" option.
21737         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21738         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21739           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'
21740         else
21741           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'
21742         fi
21743         aix_use_runtimelinking=no
21744
21745         # Test if we are trying to use run time linking or normal
21746         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21747         # need to do runtime linking.
21748         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21749           for ld_flag in $LDFLAGS; do
21750           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21751             aix_use_runtimelinking=yes
21752             break
21753           fi
21754           done
21755         esac
21756
21757         exp_sym_flag='-bexport'
21758         no_entry_flag='-bnoentry'
21759       fi
21760
21761       # When large executables or shared objects are built, AIX ld can
21762       # have problems creating the table of contents.  If linking a library
21763       # or program results in "error TOC overflow" add -mminimal-toc to
21764       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21765       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21766
21767       archive_cmds_GCJ=''
21768       hardcode_direct_GCJ=yes
21769       hardcode_libdir_separator_GCJ=':'
21770       link_all_deplibs_GCJ=yes
21771
21772       if test "$GCC" = yes; then
21773         case $host_os in aix4.012|aix4.012.*)
21774         # We only want to do this on AIX 4.2 and lower, the check
21775         # below for broken collect2 doesn't work under 4.3+
21776           collect2name=`${CC} -print-prog-name=collect2`
21777           if test -f "$collect2name" && \
21778            strings "$collect2name" | grep resolve_lib_name >/dev/null
21779           then
21780           # We have reworked collect2
21781           hardcode_direct_GCJ=yes
21782           else
21783           # We have old collect2
21784           hardcode_direct_GCJ=unsupported
21785           # It fails to find uninstalled libraries when the uninstalled
21786           # path is not listed in the libpath.  Setting hardcode_minus_L
21787           # to unsupported forces relinking
21788           hardcode_minus_L_GCJ=yes
21789           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21790           hardcode_libdir_separator_GCJ=
21791           fi
21792         esac
21793         shared_flag='-shared'
21794       else
21795         # not using gcc
21796         if test "$host_cpu" = ia64; then
21797         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21798         # chokes on -Wl,-G. The following line is correct:
21799           shared_flag='-G'
21800         else
21801         if test "$aix_use_runtimelinking" = yes; then
21802             shared_flag='${wl}-G'
21803           else
21804             shared_flag='${wl}-bM:SRE'
21805         fi
21806         fi
21807       fi
21808
21809       # It seems that -bexpall does not export symbols beginning with
21810       # underscore (_), so it is better to generate a list of symbols to export.
21811       always_export_symbols_GCJ=yes
21812       if test "$aix_use_runtimelinking" = yes; then
21813         # Warning - without using the other runtime loading flags (-brtl),
21814         # -berok will link without error, but may produce a broken library.
21815         allow_undefined_flag_GCJ='-berok'
21816        # Determine the default libpath from the value encoded in an empty executable.
21817        cat >conftest.$ac_ext <<_ACEOF
21818 /* confdefs.h.  */
21819 _ACEOF
21820 cat confdefs.h >>conftest.$ac_ext
21821 cat >>conftest.$ac_ext <<_ACEOF
21822 /* end confdefs.h.  */
21823
21824 int
21825 main ()
21826 {
21827
21828   ;
21829   return 0;
21830 }
21831 _ACEOF
21832 rm -f conftest.$ac_objext conftest$ac_exeext
21833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21834   (eval $ac_link) 2>conftest.er1
21835   ac_status=$?
21836   grep -v '^ *+' conftest.er1 >conftest.err
21837   rm -f conftest.er1
21838   cat conftest.err >&5
21839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840   (exit $ac_status); } &&
21841          { ac_try='test -z "$ac_c_werror_flag"
21842                          || test ! -s conftest.err'
21843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21844   (eval $ac_try) 2>&5
21845   ac_status=$?
21846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847   (exit $ac_status); }; } &&
21848          { ac_try='test -s conftest$ac_exeext'
21849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21850   (eval $ac_try) 2>&5
21851   ac_status=$?
21852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853   (exit $ac_status); }; }; then
21854
21855 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21856 }'`
21857 # Check for a 64-bit object if we didn't find anything.
21858 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; }
21859 }'`; fi
21860 else
21861   echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21863
21864 fi
21865 rm -f conftest.err conftest.$ac_objext \
21866       conftest$ac_exeext conftest.$ac_ext
21867 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21868
21869        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21870         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"
21871        else
21872         if test "$host_cpu" = ia64; then
21873           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21874           allow_undefined_flag_GCJ="-z nodefs"
21875           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"
21876         else
21877          # Determine the default libpath from the value encoded in an empty executable.
21878          cat >conftest.$ac_ext <<_ACEOF
21879 /* confdefs.h.  */
21880 _ACEOF
21881 cat confdefs.h >>conftest.$ac_ext
21882 cat >>conftest.$ac_ext <<_ACEOF
21883 /* end confdefs.h.  */
21884
21885 int
21886 main ()
21887 {
21888
21889   ;
21890   return 0;
21891 }
21892 _ACEOF
21893 rm -f conftest.$ac_objext conftest$ac_exeext
21894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21895   (eval $ac_link) 2>conftest.er1
21896   ac_status=$?
21897   grep -v '^ *+' conftest.er1 >conftest.err
21898   rm -f conftest.er1
21899   cat conftest.err >&5
21900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901   (exit $ac_status); } &&
21902          { ac_try='test -z "$ac_c_werror_flag"
21903                          || test ! -s conftest.err'
21904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21905   (eval $ac_try) 2>&5
21906   ac_status=$?
21907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908   (exit $ac_status); }; } &&
21909          { ac_try='test -s conftest$ac_exeext'
21910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21911   (eval $ac_try) 2>&5
21912   ac_status=$?
21913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914   (exit $ac_status); }; }; then
21915
21916 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21917 }'`
21918 # Check for a 64-bit object if we didn't find anything.
21919 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; }
21920 }'`; fi
21921 else
21922   echo "$as_me: failed program was:" >&5
21923 sed 's/^/| /' conftest.$ac_ext >&5
21924
21925 fi
21926 rm -f conftest.err conftest.$ac_objext \
21927       conftest$ac_exeext conftest.$ac_ext
21928 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21929
21930          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21931           # Warning - without using the other run time loading flags,
21932           # -berok will link without error, but may produce a broken library.
21933           no_undefined_flag_GCJ=' ${wl}-bernotok'
21934           allow_undefined_flag_GCJ=' ${wl}-berok'
21935           # -bexpall does not export symbols beginning with underscore (_)
21936           always_export_symbols_GCJ=yes
21937           # Exported symbols can be pulled into shared objects from archives
21938           whole_archive_flag_spec_GCJ=' '
21939           archive_cmds_need_lc_GCJ=yes
21940           # This is similar to how AIX traditionally builds it's shared libraries.
21941           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'
21942         fi
21943       fi
21944       ;;
21945
21946     amigaos*)
21947       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)'
21948       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21949       hardcode_minus_L_GCJ=yes
21950       # see comment about different semantics on the GNU ld section
21951       ld_shlibs_GCJ=no
21952       ;;
21953
21954     bsdi[45]*)
21955       export_dynamic_flag_spec_GCJ=-rdynamic
21956       ;;
21957
21958     cygwin* | mingw* | pw32*)
21959       # When not using gcc, we currently assume that we are using
21960       # Microsoft Visual C++.
21961       # hardcode_libdir_flag_spec is actually meaningless, as there is
21962       # no search path for DLLs.
21963       hardcode_libdir_flag_spec_GCJ=' '
21964       allow_undefined_flag_GCJ=unsupported
21965       # Tell ltmain to make .lib files, not .a files.
21966       libext=lib
21967       # Tell ltmain to make .dll files, not .so files.
21968       shrext_cmds=".dll"
21969       # FIXME: Setting linknames here is a bad hack.
21970       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21971       # The linker will automatically build a .lib file if we build a DLL.
21972       old_archive_From_new_cmds_GCJ='true'
21973       # FIXME: Should let the user specify the lib program.
21974       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21975       fix_srcfile_path='`cygpath -w "$srcfile"`'
21976       enable_shared_with_static_runtimes_GCJ=yes
21977       ;;
21978
21979     darwin* | rhapsody*)
21980       case "$host_os" in
21981         rhapsody* | darwin1.[012])
21982          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21983          ;;
21984        *) # Darwin 1.3 on
21985          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21986            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21987          else
21988            case ${MACOSX_DEPLOYMENT_TARGET} in
21989              10.[012])
21990                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21991                ;;
21992              10.*)
21993                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21994                ;;
21995            esac
21996          fi
21997          ;;
21998       esac
21999       archive_cmds_need_lc_GCJ=no
22000       hardcode_direct_GCJ=no
22001       hardcode_automatic_GCJ=yes
22002       hardcode_shlibpath_var_GCJ=unsupported
22003       whole_archive_flag_spec_GCJ=''
22004       link_all_deplibs_GCJ=yes
22005     if test "$GCC" = yes ; then
22006         output_verbose_link_cmd='echo'
22007         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22008       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22009       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22010       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}'
22011       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}'
22012     else
22013       case "$cc_basename" in
22014         xlc*)
22015          output_verbose_link_cmd='echo'
22016          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22017          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22018           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22019          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}'
22020           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}'
22021           ;;
22022        *)
22023          ld_shlibs_GCJ=no
22024           ;;
22025       esac
22026     fi
22027       ;;
22028
22029     dgux*)
22030       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22031       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22032       hardcode_shlibpath_var_GCJ=no
22033       ;;
22034
22035     freebsd1*)
22036       ld_shlibs_GCJ=no
22037       ;;
22038
22039     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22040     # support.  Future versions do this automatically, but an explicit c++rt0.o
22041     # does not break anything, and helps significantly (at the cost of a little
22042     # extra space).
22043     freebsd2.2*)
22044       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22045       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22046       hardcode_direct_GCJ=yes
22047       hardcode_shlibpath_var_GCJ=no
22048       ;;
22049
22050     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22051     freebsd2*)
22052       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22053       hardcode_direct_GCJ=yes
22054       hardcode_minus_L_GCJ=yes
22055       hardcode_shlibpath_var_GCJ=no
22056       ;;
22057
22058     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22059     freebsd* | kfreebsd*-gnu)
22060       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22061       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22062       hardcode_direct_GCJ=yes
22063       hardcode_shlibpath_var_GCJ=no
22064       ;;
22065
22066     hpux9*)
22067       if test "$GCC" = yes; then
22068         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'
22069       else
22070         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'
22071       fi
22072       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22073       hardcode_libdir_separator_GCJ=:
22074       hardcode_direct_GCJ=yes
22075
22076       # hardcode_minus_L: Not really in the search PATH,
22077       # but as the default location of the library.
22078       hardcode_minus_L_GCJ=yes
22079       export_dynamic_flag_spec_GCJ='${wl}-E'
22080       ;;
22081
22082     hpux10* | hpux11*)
22083       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22084         case "$host_cpu" in
22085         hppa*64*|ia64*)
22086           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22087           ;;
22088         *)
22089           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22090           ;;
22091         esac
22092       else
22093         case "$host_cpu" in
22094         hppa*64*|ia64*)
22095           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22096           ;;
22097         *)
22098           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22099           ;;
22100         esac
22101       fi
22102       if test "$with_gnu_ld" = no; then
22103         case "$host_cpu" in
22104         hppa*64*)
22105           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22106           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22107           hardcode_libdir_separator_GCJ=:
22108           hardcode_direct_GCJ=no
22109           hardcode_shlibpath_var_GCJ=no
22110           ;;
22111         ia64*)
22112           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22113           hardcode_direct_GCJ=no
22114           hardcode_shlibpath_var_GCJ=no
22115
22116           # hardcode_minus_L: Not really in the search PATH,
22117           # but as the default location of the library.
22118           hardcode_minus_L_GCJ=yes
22119           ;;
22120         *)
22121           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22122           hardcode_libdir_separator_GCJ=:
22123           hardcode_direct_GCJ=yes
22124           export_dynamic_flag_spec_GCJ='${wl}-E'
22125
22126           # hardcode_minus_L: Not really in the search PATH,
22127           # but as the default location of the library.
22128           hardcode_minus_L_GCJ=yes
22129           ;;
22130         esac
22131       fi
22132       ;;
22133
22134     irix5* | irix6* | nonstopux*)
22135       if test "$GCC" = yes; then
22136         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'
22137       else
22138         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'
22139         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22140       fi
22141       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22142       hardcode_libdir_separator_GCJ=:
22143       link_all_deplibs_GCJ=yes
22144       ;;
22145
22146     netbsd*)
22147       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22148         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22149       else
22150         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22151       fi
22152       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22153       hardcode_direct_GCJ=yes
22154       hardcode_shlibpath_var_GCJ=no
22155       ;;
22156
22157     newsos6)
22158       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22159       hardcode_direct_GCJ=yes
22160       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22161       hardcode_libdir_separator_GCJ=:
22162       hardcode_shlibpath_var_GCJ=no
22163       ;;
22164
22165     openbsd*)
22166       hardcode_direct_GCJ=yes
22167       hardcode_shlibpath_var_GCJ=no
22168       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22169         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22170         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22171         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22172         export_dynamic_flag_spec_GCJ='${wl}-E'
22173       else
22174        case $host_os in
22175          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22176            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22177            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22178            ;;
22179          *)
22180            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22181            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22182            ;;
22183        esac
22184       fi
22185       ;;
22186
22187     os2*)
22188       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22189       hardcode_minus_L_GCJ=yes
22190       allow_undefined_flag_GCJ=unsupported
22191       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'
22192       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22193       ;;
22194
22195     osf3*)
22196       if test "$GCC" = yes; then
22197         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22198         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'
22199       else
22200         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22201         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'
22202       fi
22203       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22204       hardcode_libdir_separator_GCJ=:
22205       ;;
22206
22207     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22208       if test "$GCC" = yes; then
22209         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22210         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'
22211         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22212       else
22213         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22214         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'
22215         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~
22216         $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'
22217
22218         # Both c and cxx compiler support -rpath directly
22219         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22220       fi
22221       hardcode_libdir_separator_GCJ=:
22222       ;;
22223
22224     sco3.2v5*)
22225       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22226       hardcode_shlibpath_var_GCJ=no
22227       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22228       runpath_var=LD_RUN_PATH
22229       hardcode_runpath_var=yes
22230       ;;
22231
22232     solaris*)
22233       no_undefined_flag_GCJ=' -z text'
22234       if test "$GCC" = yes; then
22235         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22236         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22237           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22238       else
22239         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22240         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22241         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22242       fi
22243       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22244       hardcode_shlibpath_var_GCJ=no
22245       case $host_os in
22246       solaris2.[0-5] | solaris2.[0-5].*) ;;
22247       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22248         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22249       esac
22250       link_all_deplibs_GCJ=yes
22251       ;;
22252
22253     sunos4*)
22254       if test "x$host_vendor" = xsequent; then
22255         # Use $CC to link under sequent, because it throws in some extra .o
22256         # files that make .init and .fini sections work.
22257         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22258       else
22259         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22260       fi
22261       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22262       hardcode_direct_GCJ=yes
22263       hardcode_minus_L_GCJ=yes
22264       hardcode_shlibpath_var_GCJ=no
22265       ;;
22266
22267     sysv4)
22268       case $host_vendor in
22269         sni)
22270           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22271           hardcode_direct_GCJ=yes # is this really true???
22272         ;;
22273         siemens)
22274           ## LD is ld it makes a PLAMLIB
22275           ## CC just makes a GrossModule.
22276           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22277           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22278           hardcode_direct_GCJ=no
22279         ;;
22280         motorola)
22281           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22282           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22283         ;;
22284       esac
22285       runpath_var='LD_RUN_PATH'
22286       hardcode_shlibpath_var_GCJ=no
22287       ;;
22288
22289     sysv4.3*)
22290       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22291       hardcode_shlibpath_var_GCJ=no
22292       export_dynamic_flag_spec_GCJ='-Bexport'
22293       ;;
22294
22295     sysv4*MP*)
22296       if test -d /usr/nec; then
22297         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22298         hardcode_shlibpath_var_GCJ=no
22299         runpath_var=LD_RUN_PATH
22300         hardcode_runpath_var=yes
22301         ld_shlibs_GCJ=yes
22302       fi
22303       ;;
22304
22305     sysv4.2uw2*)
22306       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22307       hardcode_direct_GCJ=yes
22308       hardcode_minus_L_GCJ=no
22309       hardcode_shlibpath_var_GCJ=no
22310       hardcode_runpath_var=yes
22311       runpath_var=LD_RUN_PATH
22312       ;;
22313
22314    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22315       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22316       if test "$GCC" = yes; then
22317         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22318       else
22319         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22320       fi
22321       runpath_var='LD_RUN_PATH'
22322       hardcode_shlibpath_var_GCJ=no
22323       ;;
22324
22325     sysv5*)
22326       no_undefined_flag_GCJ=' -z text'
22327       # $CC -shared without GNU ld will not create a library from C++
22328       # object files and a static libstdc++, better avoid it by now
22329       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22330       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22331                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22332       hardcode_libdir_flag_spec_GCJ=
22333       hardcode_shlibpath_var_GCJ=no
22334       runpath_var='LD_RUN_PATH'
22335       ;;
22336
22337     uts4*)
22338       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22339       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22340       hardcode_shlibpath_var_GCJ=no
22341       ;;
22342
22343     *)
22344       ld_shlibs_GCJ=no
22345       ;;
22346     esac
22347   fi
22348
22349 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22350 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22351 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22352
22353 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22354 if test "$GCC" = yes; then
22355   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22356 fi
22357
22358 #
22359 # Do we need to explicitly link libc?
22360 #
22361 case "x$archive_cmds_need_lc_GCJ" in
22362 x|xyes)
22363   # Assume -lc should be added
22364   archive_cmds_need_lc_GCJ=yes
22365
22366   if test "$enable_shared" = yes && test "$GCC" = yes; then
22367     case $archive_cmds_GCJ in
22368     *'~'*)
22369       # FIXME: we may have to deal with multi-command sequences.
22370       ;;
22371     '$CC '*)
22372       # Test whether the compiler implicitly links with -lc since on some
22373       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22374       # to ld, don't add -lc before -lgcc.
22375       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22376 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22377       $rm conftest*
22378       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22379
22380       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22381   (eval $ac_compile) 2>&5
22382   ac_status=$?
22383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384   (exit $ac_status); } 2>conftest.err; then
22385         soname=conftest
22386         lib=conftest
22387         libobjs=conftest.$ac_objext
22388         deplibs=
22389         wl=$lt_prog_compiler_wl_GCJ
22390         compiler_flags=-v
22391         linker_flags=-v
22392         verstring=
22393         output_objdir=.
22394         libname=conftest
22395         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22396         allow_undefined_flag_GCJ=
22397         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22398   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22399   ac_status=$?
22400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401   (exit $ac_status); }
22402         then
22403           archive_cmds_need_lc_GCJ=no
22404         else
22405           archive_cmds_need_lc_GCJ=yes
22406         fi
22407         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22408       else
22409         cat conftest.err 1>&5
22410       fi
22411       $rm conftest*
22412       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22413 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22414       ;;
22415     esac
22416   fi
22417   ;;
22418 esac
22419
22420 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22421 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22422 library_names_spec=
22423 libname_spec='lib$name'
22424 soname_spec=
22425 shrext_cmds=".so"
22426 postinstall_cmds=
22427 postuninstall_cmds=
22428 finish_cmds=
22429 finish_eval=
22430 shlibpath_var=
22431 shlibpath_overrides_runpath=unknown
22432 version_type=none
22433 dynamic_linker="$host_os ld.so"
22434 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22435 if test "$GCC" = yes; then
22436   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22437   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22438     # if the path contains ";" then we assume it to be the separator
22439     # otherwise default to the standard path separator (i.e. ":") - it is
22440     # assumed that no part of a normal pathname contains ";" but that should
22441     # okay in the real world where ";" in dirpaths is itself problematic.
22442     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22443   else
22444     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22445   fi
22446 else
22447   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22448 fi
22449 need_lib_prefix=unknown
22450 hardcode_into_libs=no
22451
22452 # when you set need_version to no, make sure it does not cause -set_version
22453 # flags to be left without arguments
22454 need_version=unknown
22455
22456 case $host_os in
22457 aix3*)
22458   version_type=linux
22459   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22460   shlibpath_var=LIBPATH
22461
22462   # AIX 3 has no versioning support, so we append a major version to the name.
22463   soname_spec='${libname}${release}${shared_ext}$major'
22464   ;;
22465
22466 aix4* | aix5*)
22467   version_type=linux
22468   need_lib_prefix=no
22469   need_version=no
22470   hardcode_into_libs=yes
22471   if test "$host_cpu" = ia64; then
22472     # AIX 5 supports IA64
22473     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22474     shlibpath_var=LD_LIBRARY_PATH
22475   else
22476     # With GCC up to 2.95.x, collect2 would create an import file
22477     # for dependence libraries.  The import file would start with
22478     # the line `#! .'.  This would cause the generated library to
22479     # depend on `.', always an invalid library.  This was fixed in
22480     # development snapshots of GCC prior to 3.0.
22481     case $host_os in
22482       aix4 | aix4.[01] | aix4.[01].*)
22483       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22484            echo ' yes '
22485            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22486         :
22487       else
22488         can_build_shared=no
22489       fi
22490       ;;
22491     esac
22492     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22493     # soname into executable. Probably we can add versioning support to
22494     # collect2, so additional links can be useful in future.
22495     if test "$aix_use_runtimelinking" = yes; then
22496       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22497       # instead of lib<name>.a to let people know that these are not
22498       # typical AIX shared libraries.
22499       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22500     else
22501       # We preserve .a as extension for shared libraries through AIX4.2
22502       # and later when we are not doing run time linking.
22503       library_names_spec='${libname}${release}.a $libname.a'
22504       soname_spec='${libname}${release}${shared_ext}$major'
22505     fi
22506     shlibpath_var=LIBPATH
22507   fi
22508   ;;
22509
22510 amigaos*)
22511   library_names_spec='$libname.ixlibrary $libname.a'
22512   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22513   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'
22514   ;;
22515
22516 beos*)
22517   library_names_spec='${libname}${shared_ext}'
22518   dynamic_linker="$host_os ld.so"
22519   shlibpath_var=LIBRARY_PATH
22520   ;;
22521
22522 bsdi[45]*)
22523   version_type=linux
22524   need_version=no
22525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22526   soname_spec='${libname}${release}${shared_ext}$major'
22527   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22528   shlibpath_var=LD_LIBRARY_PATH
22529   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22530   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22531   # the default ld.so.conf also contains /usr/contrib/lib and
22532   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22533   # libtool to hard-code these into programs
22534   ;;
22535
22536 cygwin* | mingw* | pw32*)
22537   version_type=windows
22538   shrext_cmds=".dll"
22539   need_version=no
22540   need_lib_prefix=no
22541
22542   case $GCC,$host_os in
22543   yes,cygwin* | yes,mingw* | yes,pw32*)
22544     library_names_spec='$libname.dll.a'
22545     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22546     postinstall_cmds='base_file=`basename \${file}`~
22547       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22548       dldir=$destdir/`dirname \$dlpath`~
22549       test -d \$dldir || mkdir -p \$dldir~
22550       $install_prog $dir/$dlname \$dldir/$dlname'
22551     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22552       dlpath=$dir/\$dldll~
22553        $rm \$dlpath'
22554     shlibpath_overrides_runpath=yes
22555
22556     case $host_os in
22557     cygwin*)
22558       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22559       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22560       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22561       ;;
22562     mingw*)
22563       # MinGW DLLs use traditional 'lib' prefix
22564       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22565       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22566       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22567         # It is most probably a Windows format PATH printed by
22568         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22569         # path with ; separators, and with drive letters. We can handle the
22570         # drive letters (cygwin fileutils understands them), so leave them,
22571         # especially as we might pass files found there to a mingw objdump,
22572         # which wouldn't understand a cygwinified path. Ahh.
22573         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22574       else
22575         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22576       fi
22577       ;;
22578     pw32*)
22579       # pw32 DLLs use 'pw' prefix rather than 'lib'
22580       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22581       ;;
22582     esac
22583     ;;
22584
22585   *)
22586     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22587     ;;
22588   esac
22589   dynamic_linker='Win32 ld.exe'
22590   # FIXME: first we should search . and the directory the executable is in
22591   shlibpath_var=PATH
22592   ;;
22593
22594 darwin* | rhapsody*)
22595   dynamic_linker="$host_os dyld"
22596   version_type=darwin
22597   need_lib_prefix=no
22598   need_version=no
22599   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22600   soname_spec='${libname}${release}${major}$shared_ext'
22601   shlibpath_overrides_runpath=yes
22602   shlibpath_var=DYLD_LIBRARY_PATH
22603   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22604   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22605   if test "$GCC" = yes; then
22606     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"`
22607   else
22608     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22609   fi
22610   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22611   ;;
22612
22613 dgux*)
22614   version_type=linux
22615   need_lib_prefix=no
22616   need_version=no
22617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22618   soname_spec='${libname}${release}${shared_ext}$major'
22619   shlibpath_var=LD_LIBRARY_PATH
22620   ;;
22621
22622 freebsd1*)
22623   dynamic_linker=no
22624   ;;
22625
22626 kfreebsd*-gnu)
22627   version_type=linux
22628   need_lib_prefix=no
22629   need_version=no
22630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22631   soname_spec='${libname}${release}${shared_ext}$major'
22632   shlibpath_var=LD_LIBRARY_PATH
22633   shlibpath_overrides_runpath=no
22634   hardcode_into_libs=yes
22635   dynamic_linker='GNU ld.so'
22636   ;;
22637
22638 freebsd*)
22639   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22640   version_type=freebsd-$objformat
22641   case $version_type in
22642     freebsd-elf*)
22643       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22644       need_version=no
22645       need_lib_prefix=no
22646       ;;
22647     freebsd-*)
22648       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22649       need_version=yes
22650       ;;
22651   esac
22652   shlibpath_var=LD_LIBRARY_PATH
22653   case $host_os in
22654   freebsd2*)
22655     shlibpath_overrides_runpath=yes
22656     ;;
22657   freebsd3.01* | freebsdelf3.01*)
22658     shlibpath_overrides_runpath=yes
22659     hardcode_into_libs=yes
22660     ;;
22661   *) # from 3.2 on
22662     shlibpath_overrides_runpath=no
22663     hardcode_into_libs=yes
22664     ;;
22665   esac
22666   ;;
22667
22668 gnu*)
22669   version_type=linux
22670   need_lib_prefix=no
22671   need_version=no
22672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22673   soname_spec='${libname}${release}${shared_ext}$major'
22674   shlibpath_var=LD_LIBRARY_PATH
22675   hardcode_into_libs=yes
22676   ;;
22677
22678 hpux9* | hpux10* | hpux11*)
22679   # Give a soname corresponding to the major version so that dld.sl refuses to
22680   # link against other versions.
22681   version_type=sunos
22682   need_lib_prefix=no
22683   need_version=no
22684   case "$host_cpu" in
22685   ia64*)
22686     shrext_cmds='.so'
22687     hardcode_into_libs=yes
22688     dynamic_linker="$host_os dld.so"
22689     shlibpath_var=LD_LIBRARY_PATH
22690     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22691     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22692     soname_spec='${libname}${release}${shared_ext}$major'
22693     if test "X$HPUX_IA64_MODE" = X32; then
22694       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22695     else
22696       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22697     fi
22698     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22699     ;;
22700    hppa*64*)
22701      shrext_cmds='.sl'
22702      hardcode_into_libs=yes
22703      dynamic_linker="$host_os dld.sl"
22704      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22705      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22706      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22707      soname_spec='${libname}${release}${shared_ext}$major'
22708      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22709      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22710      ;;
22711    *)
22712     shrext_cmds='.sl'
22713     dynamic_linker="$host_os dld.sl"
22714     shlibpath_var=SHLIB_PATH
22715     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22716     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22717     soname_spec='${libname}${release}${shared_ext}$major'
22718     ;;
22719   esac
22720   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22721   postinstall_cmds='chmod 555 $lib'
22722   ;;
22723
22724 irix5* | irix6* | nonstopux*)
22725   case $host_os in
22726     nonstopux*) version_type=nonstopux ;;
22727     *)
22728         if test "$lt_cv_prog_gnu_ld" = yes; then
22729                 version_type=linux
22730         else
22731                 version_type=irix
22732         fi ;;
22733   esac
22734   need_lib_prefix=no
22735   need_version=no
22736   soname_spec='${libname}${release}${shared_ext}$major'
22737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22738   case $host_os in
22739   irix5* | nonstopux*)
22740     libsuff= shlibsuff=
22741     ;;
22742   *)
22743     case $LD in # libtool.m4 will add one of these switches to LD
22744     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22745       libsuff= shlibsuff= libmagic=32-bit;;
22746     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22747       libsuff=32 shlibsuff=N32 libmagic=N32;;
22748     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22749       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22750     *) libsuff= shlibsuff= libmagic=never-match;;
22751     esac
22752     ;;
22753   esac
22754   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22755   shlibpath_overrides_runpath=no
22756   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22757   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22758   hardcode_into_libs=yes
22759   ;;
22760
22761 # No shared lib support for Linux oldld, aout, or coff.
22762 linux*oldld* | linux*aout* | linux*coff*)
22763   dynamic_linker=no
22764   ;;
22765
22766 # This must be Linux ELF.
22767 linux*)
22768   version_type=linux
22769   need_lib_prefix=no
22770   need_version=no
22771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22772   soname_spec='${libname}${release}${shared_ext}$major'
22773   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22774   shlibpath_var=LD_LIBRARY_PATH
22775   shlibpath_overrides_runpath=no
22776   # This implies no fast_install, which is unacceptable.
22777   # Some rework will be needed to allow for fast_install
22778   # before this can be enabled.
22779   hardcode_into_libs=yes
22780
22781   # Append ld.so.conf contents to the search path
22782   if test -f /etc/ld.so.conf; then
22783     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22784     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22785   fi
22786
22787   # We used to test for /lib/ld.so.1 and disable shared libraries on
22788   # powerpc, because MkLinux only supported shared libraries with the
22789   # GNU dynamic linker.  Since this was broken with cross compilers,
22790   # most powerpc-linux boxes support dynamic linking these days and
22791   # people can always --disable-shared, the test was removed, and we
22792   # assume the GNU/Linux dynamic linker is in use.
22793   dynamic_linker='GNU/Linux ld.so'
22794   ;;
22795
22796 knetbsd*-gnu)
22797   version_type=linux
22798   need_lib_prefix=no
22799   need_version=no
22800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22801   soname_spec='${libname}${release}${shared_ext}$major'
22802   shlibpath_var=LD_LIBRARY_PATH
22803   shlibpath_overrides_runpath=no
22804   hardcode_into_libs=yes
22805   dynamic_linker='GNU ld.so'
22806   ;;
22807
22808 netbsd*)
22809   version_type=sunos
22810   need_lib_prefix=no
22811   need_version=no
22812   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22813     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22814     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22815     dynamic_linker='NetBSD (a.out) ld.so'
22816   else
22817     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22818     soname_spec='${libname}${release}${shared_ext}$major'
22819     dynamic_linker='NetBSD ld.elf_so'
22820   fi
22821   shlibpath_var=LD_LIBRARY_PATH
22822   shlibpath_overrides_runpath=yes
22823   hardcode_into_libs=yes
22824   ;;
22825
22826 newsos6)
22827   version_type=linux
22828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22829   shlibpath_var=LD_LIBRARY_PATH
22830   shlibpath_overrides_runpath=yes
22831   ;;
22832
22833 nto-qnx*)
22834   version_type=linux
22835   need_lib_prefix=no
22836   need_version=no
22837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22838   soname_spec='${libname}${release}${shared_ext}$major'
22839   shlibpath_var=LD_LIBRARY_PATH
22840   shlibpath_overrides_runpath=yes
22841   ;;
22842
22843 openbsd*)
22844   version_type=sunos
22845   need_lib_prefix=no
22846   need_version=no
22847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22848   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22849   shlibpath_var=LD_LIBRARY_PATH
22850   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22851     case $host_os in
22852       openbsd2.[89] | openbsd2.[89].*)
22853         shlibpath_overrides_runpath=no
22854         ;;
22855       *)
22856         shlibpath_overrides_runpath=yes
22857         ;;
22858       esac
22859   else
22860     shlibpath_overrides_runpath=yes
22861   fi
22862   ;;
22863
22864 os2*)
22865   libname_spec='$name'
22866   shrext_cmds=".dll"
22867   need_lib_prefix=no
22868   library_names_spec='$libname${shared_ext} $libname.a'
22869   dynamic_linker='OS/2 ld.exe'
22870   shlibpath_var=LIBPATH
22871   ;;
22872
22873 osf3* | osf4* | osf5*)
22874   version_type=osf
22875   need_lib_prefix=no
22876   need_version=no
22877   soname_spec='${libname}${release}${shared_ext}$major'
22878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22879   shlibpath_var=LD_LIBRARY_PATH
22880   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22881   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22882   ;;
22883
22884 sco3.2v5*)
22885   version_type=osf
22886   soname_spec='${libname}${release}${shared_ext}$major'
22887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22888   shlibpath_var=LD_LIBRARY_PATH
22889   ;;
22890
22891 solaris*)
22892   version_type=linux
22893   need_lib_prefix=no
22894   need_version=no
22895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22896   soname_spec='${libname}${release}${shared_ext}$major'
22897   shlibpath_var=LD_LIBRARY_PATH
22898   shlibpath_overrides_runpath=yes
22899   hardcode_into_libs=yes
22900   # ldd complains unless libraries are executable
22901   postinstall_cmds='chmod +x $lib'
22902   ;;
22903
22904 sunos4*)
22905   version_type=sunos
22906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22907   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22908   shlibpath_var=LD_LIBRARY_PATH
22909   shlibpath_overrides_runpath=yes
22910   if test "$with_gnu_ld" = yes; then
22911     need_lib_prefix=no
22912   fi
22913   need_version=yes
22914   ;;
22915
22916 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22917   version_type=linux
22918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22919   soname_spec='${libname}${release}${shared_ext}$major'
22920   shlibpath_var=LD_LIBRARY_PATH
22921   case $host_vendor in
22922     sni)
22923       shlibpath_overrides_runpath=no
22924       need_lib_prefix=no
22925       export_dynamic_flag_spec='${wl}-Blargedynsym'
22926       runpath_var=LD_RUN_PATH
22927       ;;
22928     siemens)
22929       need_lib_prefix=no
22930       ;;
22931     motorola)
22932       need_lib_prefix=no
22933       need_version=no
22934       shlibpath_overrides_runpath=no
22935       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22936       ;;
22937   esac
22938   ;;
22939
22940 sysv4*MP*)
22941   if test -d /usr/nec ;then
22942     version_type=linux
22943     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22944     soname_spec='$libname${shared_ext}.$major'
22945     shlibpath_var=LD_LIBRARY_PATH
22946   fi
22947   ;;
22948
22949 uts4*)
22950   version_type=linux
22951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22952   soname_spec='${libname}${release}${shared_ext}$major'
22953   shlibpath_var=LD_LIBRARY_PATH
22954   ;;
22955
22956 *)
22957   dynamic_linker=no
22958   ;;
22959 esac
22960 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22961 echo "${ECHO_T}$dynamic_linker" >&6
22962 test "$dynamic_linker" = no && can_build_shared=no
22963
22964 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22965 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22966 hardcode_action_GCJ=
22967 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22968    test -n "$runpath_var_GCJ" || \
22969    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22970
22971   # We can hardcode non-existant directories.
22972   if test "$hardcode_direct_GCJ" != no &&
22973      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22974      # have to relink, otherwise we might link with an installed library
22975      # when we should be linking with a yet-to-be-installed one
22976      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22977      test "$hardcode_minus_L_GCJ" != no; then
22978     # Linking always hardcodes the temporary library directory.
22979     hardcode_action_GCJ=relink
22980   else
22981     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22982     hardcode_action_GCJ=immediate
22983   fi
22984 else
22985   # We cannot hardcode anything, or else we can only hardcode existing
22986   # directories.
22987   hardcode_action_GCJ=unsupported
22988 fi
22989 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22990 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22991
22992 if test "$hardcode_action_GCJ" = relink; then
22993   # Fast installation is not supported
22994   enable_fast_install=no
22995 elif test "$shlibpath_overrides_runpath" = yes ||
22996      test "$enable_shared" = no; then
22997   # Fast installation is not necessary
22998   enable_fast_install=needless
22999 fi
23000
23001 striplib=
23002 old_striplib=
23003 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23004 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23005 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23006   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23007   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23008   echo "$as_me:$LINENO: result: yes" >&5
23009 echo "${ECHO_T}yes" >&6
23010 else
23011 # FIXME - insert some real tests, host_os isn't really good enough
23012   case $host_os in
23013    darwin*)
23014        if test -n "$STRIP" ; then
23015          striplib="$STRIP -x"
23016          echo "$as_me:$LINENO: result: yes" >&5
23017 echo "${ECHO_T}yes" >&6
23018        else
23019   echo "$as_me:$LINENO: result: no" >&5
23020 echo "${ECHO_T}no" >&6
23021 fi
23022        ;;
23023    *)
23024   echo "$as_me:$LINENO: result: no" >&5
23025 echo "${ECHO_T}no" >&6
23026     ;;
23027   esac
23028 fi
23029
23030 if test "x$enable_dlopen" != xyes; then
23031   enable_dlopen=unknown
23032   enable_dlopen_self=unknown
23033   enable_dlopen_self_static=unknown
23034 else
23035   lt_cv_dlopen=no
23036   lt_cv_dlopen_libs=
23037
23038   case $host_os in
23039   beos*)
23040     lt_cv_dlopen="load_add_on"
23041     lt_cv_dlopen_libs=
23042     lt_cv_dlopen_self=yes
23043     ;;
23044
23045   mingw* | pw32*)
23046     lt_cv_dlopen="LoadLibrary"
23047     lt_cv_dlopen_libs=
23048    ;;
23049
23050   cygwin*)
23051     lt_cv_dlopen="dlopen"
23052     lt_cv_dlopen_libs=
23053    ;;
23054
23055   darwin*)
23056   # if libdl is installed we need to link against it
23057     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23058 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23059 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23060   echo $ECHO_N "(cached) $ECHO_C" >&6
23061 else
23062   ac_check_lib_save_LIBS=$LIBS
23063 LIBS="-ldl  $LIBS"
23064 cat >conftest.$ac_ext <<_ACEOF
23065 /* confdefs.h.  */
23066 _ACEOF
23067 cat confdefs.h >>conftest.$ac_ext
23068 cat >>conftest.$ac_ext <<_ACEOF
23069 /* end confdefs.h.  */
23070
23071 /* Override any gcc2 internal prototype to avoid an error.  */
23072 #ifdef __cplusplus
23073 extern "C"
23074 #endif
23075 /* We use char because int might match the return type of a gcc2
23076    builtin and then its argument prototype would still apply.  */
23077 char dlopen ();
23078 int
23079 main ()
23080 {
23081 dlopen ();
23082   ;
23083   return 0;
23084 }
23085 _ACEOF
23086 rm -f conftest.$ac_objext conftest$ac_exeext
23087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23088   (eval $ac_link) 2>conftest.er1
23089   ac_status=$?
23090   grep -v '^ *+' conftest.er1 >conftest.err
23091   rm -f conftest.er1
23092   cat conftest.err >&5
23093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094   (exit $ac_status); } &&
23095          { ac_try='test -z "$ac_c_werror_flag"
23096                          || test ! -s conftest.err'
23097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23098   (eval $ac_try) 2>&5
23099   ac_status=$?
23100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101   (exit $ac_status); }; } &&
23102          { ac_try='test -s conftest$ac_exeext'
23103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23104   (eval $ac_try) 2>&5
23105   ac_status=$?
23106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107   (exit $ac_status); }; }; then
23108   ac_cv_lib_dl_dlopen=yes
23109 else
23110   echo "$as_me: failed program was:" >&5
23111 sed 's/^/| /' conftest.$ac_ext >&5
23112
23113 ac_cv_lib_dl_dlopen=no
23114 fi
23115 rm -f conftest.err conftest.$ac_objext \
23116       conftest$ac_exeext conftest.$ac_ext
23117 LIBS=$ac_check_lib_save_LIBS
23118 fi
23119 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23120 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23121 if test $ac_cv_lib_dl_dlopen = yes; then
23122   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23123 else
23124
23125     lt_cv_dlopen="dyld"
23126     lt_cv_dlopen_libs=
23127     lt_cv_dlopen_self=yes
23128
23129 fi
23130
23131    ;;
23132
23133   *)
23134     echo "$as_me:$LINENO: checking for shl_load" >&5
23135 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23136 if test "${ac_cv_func_shl_load+set}" = set; then
23137   echo $ECHO_N "(cached) $ECHO_C" >&6
23138 else
23139   cat >conftest.$ac_ext <<_ACEOF
23140 /* confdefs.h.  */
23141 _ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h.  */
23145 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23146    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23147 #define shl_load innocuous_shl_load
23148
23149 /* System header to define __stub macros and hopefully few prototypes,
23150     which can conflict with char shl_load (); below.
23151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23152     <limits.h> exists even on freestanding compilers.  */
23153
23154 #ifdef __STDC__
23155 # include <limits.h>
23156 #else
23157 # include <assert.h>
23158 #endif
23159
23160 #undef shl_load
23161
23162 /* Override any gcc2 internal prototype to avoid an error.  */
23163 #ifdef __cplusplus
23164 extern "C"
23165 {
23166 #endif
23167 /* We use char because int might match the return type of a gcc2
23168    builtin and then its argument prototype would still apply.  */
23169 char shl_load ();
23170 /* The GNU C library defines this for functions which it implements
23171     to always fail with ENOSYS.  Some functions are actually named
23172     something starting with __ and the normal name is an alias.  */
23173 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23174 choke me
23175 #else
23176 char (*f) () = shl_load;
23177 #endif
23178 #ifdef __cplusplus
23179 }
23180 #endif
23181
23182 int
23183 main ()
23184 {
23185 return f != shl_load;
23186   ;
23187   return 0;
23188 }
23189 _ACEOF
23190 rm -f conftest.$ac_objext conftest$ac_exeext
23191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23192   (eval $ac_link) 2>conftest.er1
23193   ac_status=$?
23194   grep -v '^ *+' conftest.er1 >conftest.err
23195   rm -f conftest.er1
23196   cat conftest.err >&5
23197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198   (exit $ac_status); } &&
23199          { ac_try='test -z "$ac_c_werror_flag"
23200                          || test ! -s conftest.err'
23201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23202   (eval $ac_try) 2>&5
23203   ac_status=$?
23204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205   (exit $ac_status); }; } &&
23206          { ac_try='test -s conftest$ac_exeext'
23207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23208   (eval $ac_try) 2>&5
23209   ac_status=$?
23210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211   (exit $ac_status); }; }; then
23212   ac_cv_func_shl_load=yes
23213 else
23214   echo "$as_me: failed program was:" >&5
23215 sed 's/^/| /' conftest.$ac_ext >&5
23216
23217 ac_cv_func_shl_load=no
23218 fi
23219 rm -f conftest.err conftest.$ac_objext \
23220       conftest$ac_exeext conftest.$ac_ext
23221 fi
23222 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23223 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23224 if test $ac_cv_func_shl_load = yes; then
23225   lt_cv_dlopen="shl_load"
23226 else
23227   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23228 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23229 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23230   echo $ECHO_N "(cached) $ECHO_C" >&6
23231 else
23232   ac_check_lib_save_LIBS=$LIBS
23233 LIBS="-ldld  $LIBS"
23234 cat >conftest.$ac_ext <<_ACEOF
23235 /* confdefs.h.  */
23236 _ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h.  */
23240
23241 /* Override any gcc2 internal prototype to avoid an error.  */
23242 #ifdef __cplusplus
23243 extern "C"
23244 #endif
23245 /* We use char because int might match the return type of a gcc2
23246    builtin and then its argument prototype would still apply.  */
23247 char shl_load ();
23248 int
23249 main ()
23250 {
23251 shl_load ();
23252   ;
23253   return 0;
23254 }
23255 _ACEOF
23256 rm -f conftest.$ac_objext conftest$ac_exeext
23257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23258   (eval $ac_link) 2>conftest.er1
23259   ac_status=$?
23260   grep -v '^ *+' conftest.er1 >conftest.err
23261   rm -f conftest.er1
23262   cat conftest.err >&5
23263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264   (exit $ac_status); } &&
23265          { ac_try='test -z "$ac_c_werror_flag"
23266                          || test ! -s conftest.err'
23267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23268   (eval $ac_try) 2>&5
23269   ac_status=$?
23270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23271   (exit $ac_status); }; } &&
23272          { ac_try='test -s conftest$ac_exeext'
23273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23274   (eval $ac_try) 2>&5
23275   ac_status=$?
23276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277   (exit $ac_status); }; }; then
23278   ac_cv_lib_dld_shl_load=yes
23279 else
23280   echo "$as_me: failed program was:" >&5
23281 sed 's/^/| /' conftest.$ac_ext >&5
23282
23283 ac_cv_lib_dld_shl_load=no
23284 fi
23285 rm -f conftest.err conftest.$ac_objext \
23286       conftest$ac_exeext conftest.$ac_ext
23287 LIBS=$ac_check_lib_save_LIBS
23288 fi
23289 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23290 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23291 if test $ac_cv_lib_dld_shl_load = yes; then
23292   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23293 else
23294   echo "$as_me:$LINENO: checking for dlopen" >&5
23295 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23296 if test "${ac_cv_func_dlopen+set}" = set; then
23297   echo $ECHO_N "(cached) $ECHO_C" >&6
23298 else
23299   cat >conftest.$ac_ext <<_ACEOF
23300 /* confdefs.h.  */
23301 _ACEOF
23302 cat confdefs.h >>conftest.$ac_ext
23303 cat >>conftest.$ac_ext <<_ACEOF
23304 /* end confdefs.h.  */
23305 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23306    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23307 #define dlopen innocuous_dlopen
23308
23309 /* System header to define __stub macros and hopefully few prototypes,
23310     which can conflict with char dlopen (); below.
23311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23312     <limits.h> exists even on freestanding compilers.  */
23313
23314 #ifdef __STDC__
23315 # include <limits.h>
23316 #else
23317 # include <assert.h>
23318 #endif
23319
23320 #undef dlopen
23321
23322 /* Override any gcc2 internal prototype to avoid an error.  */
23323 #ifdef __cplusplus
23324 extern "C"
23325 {
23326 #endif
23327 /* We use char because int might match the return type of a gcc2
23328    builtin and then its argument prototype would still apply.  */
23329 char dlopen ();
23330 /* The GNU C library defines this for functions which it implements
23331     to always fail with ENOSYS.  Some functions are actually named
23332     something starting with __ and the normal name is an alias.  */
23333 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23334 choke me
23335 #else
23336 char (*f) () = dlopen;
23337 #endif
23338 #ifdef __cplusplus
23339 }
23340 #endif
23341
23342 int
23343 main ()
23344 {
23345 return f != dlopen;
23346   ;
23347   return 0;
23348 }
23349 _ACEOF
23350 rm -f conftest.$ac_objext conftest$ac_exeext
23351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23352   (eval $ac_link) 2>conftest.er1
23353   ac_status=$?
23354   grep -v '^ *+' conftest.er1 >conftest.err
23355   rm -f conftest.er1
23356   cat conftest.err >&5
23357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358   (exit $ac_status); } &&
23359          { ac_try='test -z "$ac_c_werror_flag"
23360                          || test ! -s conftest.err'
23361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23362   (eval $ac_try) 2>&5
23363   ac_status=$?
23364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365   (exit $ac_status); }; } &&
23366          { ac_try='test -s conftest$ac_exeext'
23367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23368   (eval $ac_try) 2>&5
23369   ac_status=$?
23370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371   (exit $ac_status); }; }; then
23372   ac_cv_func_dlopen=yes
23373 else
23374   echo "$as_me: failed program was:" >&5
23375 sed 's/^/| /' conftest.$ac_ext >&5
23376
23377 ac_cv_func_dlopen=no
23378 fi
23379 rm -f conftest.err conftest.$ac_objext \
23380       conftest$ac_exeext conftest.$ac_ext
23381 fi
23382 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23383 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23384 if test $ac_cv_func_dlopen = yes; then
23385   lt_cv_dlopen="dlopen"
23386 else
23387   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23388 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23389 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23390   echo $ECHO_N "(cached) $ECHO_C" >&6
23391 else
23392   ac_check_lib_save_LIBS=$LIBS
23393 LIBS="-ldl  $LIBS"
23394 cat >conftest.$ac_ext <<_ACEOF
23395 /* confdefs.h.  */
23396 _ACEOF
23397 cat confdefs.h >>conftest.$ac_ext
23398 cat >>conftest.$ac_ext <<_ACEOF
23399 /* end confdefs.h.  */
23400
23401 /* Override any gcc2 internal prototype to avoid an error.  */
23402 #ifdef __cplusplus
23403 extern "C"
23404 #endif
23405 /* We use char because int might match the return type of a gcc2
23406    builtin and then its argument prototype would still apply.  */
23407 char dlopen ();
23408 int
23409 main ()
23410 {
23411 dlopen ();
23412   ;
23413   return 0;
23414 }
23415 _ACEOF
23416 rm -f conftest.$ac_objext conftest$ac_exeext
23417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23418   (eval $ac_link) 2>conftest.er1
23419   ac_status=$?
23420   grep -v '^ *+' conftest.er1 >conftest.err
23421   rm -f conftest.er1
23422   cat conftest.err >&5
23423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424   (exit $ac_status); } &&
23425          { ac_try='test -z "$ac_c_werror_flag"
23426                          || test ! -s conftest.err'
23427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23428   (eval $ac_try) 2>&5
23429   ac_status=$?
23430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431   (exit $ac_status); }; } &&
23432          { ac_try='test -s conftest$ac_exeext'
23433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23434   (eval $ac_try) 2>&5
23435   ac_status=$?
23436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437   (exit $ac_status); }; }; then
23438   ac_cv_lib_dl_dlopen=yes
23439 else
23440   echo "$as_me: failed program was:" >&5
23441 sed 's/^/| /' conftest.$ac_ext >&5
23442
23443 ac_cv_lib_dl_dlopen=no
23444 fi
23445 rm -f conftest.err conftest.$ac_objext \
23446       conftest$ac_exeext conftest.$ac_ext
23447 LIBS=$ac_check_lib_save_LIBS
23448 fi
23449 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23450 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23451 if test $ac_cv_lib_dl_dlopen = yes; then
23452   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23453 else
23454   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23455 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23456 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23457   echo $ECHO_N "(cached) $ECHO_C" >&6
23458 else
23459   ac_check_lib_save_LIBS=$LIBS
23460 LIBS="-lsvld  $LIBS"
23461 cat >conftest.$ac_ext <<_ACEOF
23462 /* confdefs.h.  */
23463 _ACEOF
23464 cat confdefs.h >>conftest.$ac_ext
23465 cat >>conftest.$ac_ext <<_ACEOF
23466 /* end confdefs.h.  */
23467
23468 /* Override any gcc2 internal prototype to avoid an error.  */
23469 #ifdef __cplusplus
23470 extern "C"
23471 #endif
23472 /* We use char because int might match the return type of a gcc2
23473    builtin and then its argument prototype would still apply.  */
23474 char dlopen ();
23475 int
23476 main ()
23477 {
23478 dlopen ();
23479   ;
23480   return 0;
23481 }
23482 _ACEOF
23483 rm -f conftest.$ac_objext conftest$ac_exeext
23484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23485   (eval $ac_link) 2>conftest.er1
23486   ac_status=$?
23487   grep -v '^ *+' conftest.er1 >conftest.err
23488   rm -f conftest.er1
23489   cat conftest.err >&5
23490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491   (exit $ac_status); } &&
23492          { ac_try='test -z "$ac_c_werror_flag"
23493                          || test ! -s conftest.err'
23494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23495   (eval $ac_try) 2>&5
23496   ac_status=$?
23497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498   (exit $ac_status); }; } &&
23499          { ac_try='test -s conftest$ac_exeext'
23500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23501   (eval $ac_try) 2>&5
23502   ac_status=$?
23503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504   (exit $ac_status); }; }; then
23505   ac_cv_lib_svld_dlopen=yes
23506 else
23507   echo "$as_me: failed program was:" >&5
23508 sed 's/^/| /' conftest.$ac_ext >&5
23509
23510 ac_cv_lib_svld_dlopen=no
23511 fi
23512 rm -f conftest.err conftest.$ac_objext \
23513       conftest$ac_exeext conftest.$ac_ext
23514 LIBS=$ac_check_lib_save_LIBS
23515 fi
23516 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23517 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23518 if test $ac_cv_lib_svld_dlopen = yes; then
23519   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23520 else
23521   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23522 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23523 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23524   echo $ECHO_N "(cached) $ECHO_C" >&6
23525 else
23526   ac_check_lib_save_LIBS=$LIBS
23527 LIBS="-ldld  $LIBS"
23528 cat >conftest.$ac_ext <<_ACEOF
23529 /* confdefs.h.  */
23530 _ACEOF
23531 cat confdefs.h >>conftest.$ac_ext
23532 cat >>conftest.$ac_ext <<_ACEOF
23533 /* end confdefs.h.  */
23534
23535 /* Override any gcc2 internal prototype to avoid an error.  */
23536 #ifdef __cplusplus
23537 extern "C"
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 dld_link ();
23542 int
23543 main ()
23544 {
23545 dld_link ();
23546   ;
23547   return 0;
23548 }
23549 _ACEOF
23550 rm -f conftest.$ac_objext conftest$ac_exeext
23551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23552   (eval $ac_link) 2>conftest.er1
23553   ac_status=$?
23554   grep -v '^ *+' conftest.er1 >conftest.err
23555   rm -f conftest.er1
23556   cat conftest.err >&5
23557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558   (exit $ac_status); } &&
23559          { ac_try='test -z "$ac_c_werror_flag"
23560                          || test ! -s conftest.err'
23561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23562   (eval $ac_try) 2>&5
23563   ac_status=$?
23564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565   (exit $ac_status); }; } &&
23566          { ac_try='test -s conftest$ac_exeext'
23567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23568   (eval $ac_try) 2>&5
23569   ac_status=$?
23570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571   (exit $ac_status); }; }; then
23572   ac_cv_lib_dld_dld_link=yes
23573 else
23574   echo "$as_me: failed program was:" >&5
23575 sed 's/^/| /' conftest.$ac_ext >&5
23576
23577 ac_cv_lib_dld_dld_link=no
23578 fi
23579 rm -f conftest.err conftest.$ac_objext \
23580       conftest$ac_exeext conftest.$ac_ext
23581 LIBS=$ac_check_lib_save_LIBS
23582 fi
23583 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23584 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23585 if test $ac_cv_lib_dld_dld_link = yes; then
23586   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23587 fi
23588
23589
23590 fi
23591
23592
23593 fi
23594
23595
23596 fi
23597
23598
23599 fi
23600
23601
23602 fi
23603
23604     ;;
23605   esac
23606
23607   if test "x$lt_cv_dlopen" != xno; then
23608     enable_dlopen=yes
23609   else
23610     enable_dlopen=no
23611   fi
23612
23613   case $lt_cv_dlopen in
23614   dlopen)
23615     save_CPPFLAGS="$CPPFLAGS"
23616     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23617
23618     save_LDFLAGS="$LDFLAGS"
23619     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23620
23621     save_LIBS="$LIBS"
23622     LIBS="$lt_cv_dlopen_libs $LIBS"
23623
23624     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23625 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23626 if test "${lt_cv_dlopen_self+set}" = set; then
23627   echo $ECHO_N "(cached) $ECHO_C" >&6
23628 else
23629           if test "$cross_compiling" = yes; then :
23630   lt_cv_dlopen_self=cross
23631 else
23632   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23633   lt_status=$lt_dlunknown
23634   cat > conftest.$ac_ext <<EOF
23635 #line 23635 "configure"
23636 #include "confdefs.h"
23637
23638 #if HAVE_DLFCN_H
23639 #include <dlfcn.h>
23640 #endif
23641
23642 #include <stdio.h>
23643
23644 #ifdef RTLD_GLOBAL
23645 #  define LT_DLGLOBAL           RTLD_GLOBAL
23646 #else
23647 #  ifdef DL_GLOBAL
23648 #    define LT_DLGLOBAL         DL_GLOBAL
23649 #  else
23650 #    define LT_DLGLOBAL         0
23651 #  endif
23652 #endif
23653
23654 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23655    find out it does not work in some platform. */
23656 #ifndef LT_DLLAZY_OR_NOW
23657 #  ifdef RTLD_LAZY
23658 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23659 #  else
23660 #    ifdef DL_LAZY
23661 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23662 #    else
23663 #      ifdef RTLD_NOW
23664 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23665 #      else
23666 #        ifdef DL_NOW
23667 #          define LT_DLLAZY_OR_NOW      DL_NOW
23668 #        else
23669 #          define LT_DLLAZY_OR_NOW      0
23670 #        endif
23671 #      endif
23672 #    endif
23673 #  endif
23674 #endif
23675
23676 #ifdef __cplusplus
23677 extern "C" void exit (int);
23678 #endif
23679
23680 void fnord() { int i=42;}
23681 int main ()
23682 {
23683   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23684   int status = $lt_dlunknown;
23685
23686   if (self)
23687     {
23688       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23689       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23690       /* dlclose (self); */
23691     }
23692
23693     exit (status);
23694 }
23695 EOF
23696   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23697   (eval $ac_link) 2>&5
23698   ac_status=$?
23699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23701     (./conftest; exit; ) 2>/dev/null
23702     lt_status=$?
23703     case x$lt_status in
23704       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23705       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23706       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23707     esac
23708   else :
23709     # compilation failed
23710     lt_cv_dlopen_self=no
23711   fi
23712 fi
23713 rm -fr conftest*
23714
23715
23716 fi
23717 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23718 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23719
23720     if test "x$lt_cv_dlopen_self" = xyes; then
23721       LDFLAGS="$LDFLAGS $link_static_flag"
23722       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23723 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23724 if test "${lt_cv_dlopen_self_static+set}" = set; then
23725   echo $ECHO_N "(cached) $ECHO_C" >&6
23726 else
23727           if test "$cross_compiling" = yes; then :
23728   lt_cv_dlopen_self_static=cross
23729 else
23730   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23731   lt_status=$lt_dlunknown
23732   cat > conftest.$ac_ext <<EOF
23733 #line 23733 "configure"
23734 #include "confdefs.h"
23735
23736 #if HAVE_DLFCN_H
23737 #include <dlfcn.h>
23738 #endif
23739
23740 #include <stdio.h>
23741
23742 #ifdef RTLD_GLOBAL
23743 #  define LT_DLGLOBAL           RTLD_GLOBAL
23744 #else
23745 #  ifdef DL_GLOBAL
23746 #    define LT_DLGLOBAL         DL_GLOBAL
23747 #  else
23748 #    define LT_DLGLOBAL         0
23749 #  endif
23750 #endif
23751
23752 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23753    find out it does not work in some platform. */
23754 #ifndef LT_DLLAZY_OR_NOW
23755 #  ifdef RTLD_LAZY
23756 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23757 #  else
23758 #    ifdef DL_LAZY
23759 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23760 #    else
23761 #      ifdef RTLD_NOW
23762 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23763 #      else
23764 #        ifdef DL_NOW
23765 #          define LT_DLLAZY_OR_NOW      DL_NOW
23766 #        else
23767 #          define LT_DLLAZY_OR_NOW      0
23768 #        endif
23769 #      endif
23770 #    endif
23771 #  endif
23772 #endif
23773
23774 #ifdef __cplusplus
23775 extern "C" void exit (int);
23776 #endif
23777
23778 void fnord() { int i=42;}
23779 int main ()
23780 {
23781   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23782   int status = $lt_dlunknown;
23783
23784   if (self)
23785     {
23786       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23787       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23788       /* dlclose (self); */
23789     }
23790
23791     exit (status);
23792 }
23793 EOF
23794   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23795   (eval $ac_link) 2>&5
23796   ac_status=$?
23797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23799     (./conftest; exit; ) 2>/dev/null
23800     lt_status=$?
23801     case x$lt_status in
23802       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23803       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23804       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23805     esac
23806   else :
23807     # compilation failed
23808     lt_cv_dlopen_self_static=no
23809   fi
23810 fi
23811 rm -fr conftest*
23812
23813
23814 fi
23815 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23816 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23817     fi
23818
23819     CPPFLAGS="$save_CPPFLAGS"
23820     LDFLAGS="$save_LDFLAGS"
23821     LIBS="$save_LIBS"
23822     ;;
23823   esac
23824
23825   case $lt_cv_dlopen_self in
23826   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23827   *) enable_dlopen_self=unknown ;;
23828   esac
23829
23830   case $lt_cv_dlopen_self_static in
23831   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23832   *) enable_dlopen_self_static=unknown ;;
23833   esac
23834 fi
23835
23836
23837 # The else clause should only fire when bootstrapping the
23838 # libtool distribution, otherwise you forgot to ship ltmain.sh
23839 # with your package, and you will get complaints that there are
23840 # no rules to generate ltmain.sh.
23841 if test -f "$ltmain"; then
23842   # See if we are running on zsh, and set the options which allow our commands through
23843   # without removal of \ escapes.
23844   if test -n "${ZSH_VERSION+set}" ; then
23845     setopt NO_GLOB_SUBST
23846   fi
23847   # Now quote all the things that may contain metacharacters while being
23848   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23849   # variables and quote the copies for generation of the libtool script.
23850   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23851     SED SHELL STRIP \
23852     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23853     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23854     deplibs_check_method reload_flag reload_cmds need_locks \
23855     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23856     lt_cv_sys_global_symbol_to_c_name_address \
23857     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23858     old_postinstall_cmds old_postuninstall_cmds \
23859     compiler_GCJ \
23860     CC_GCJ \
23861     LD_GCJ \
23862     lt_prog_compiler_wl_GCJ \
23863     lt_prog_compiler_pic_GCJ \
23864     lt_prog_compiler_static_GCJ \
23865     lt_prog_compiler_no_builtin_flag_GCJ \
23866     export_dynamic_flag_spec_GCJ \
23867     thread_safe_flag_spec_GCJ \
23868     whole_archive_flag_spec_GCJ \
23869     enable_shared_with_static_runtimes_GCJ \
23870     old_archive_cmds_GCJ \
23871     old_archive_from_new_cmds_GCJ \
23872     predep_objects_GCJ \
23873     postdep_objects_GCJ \
23874     predeps_GCJ \
23875     postdeps_GCJ \
23876     compiler_lib_search_path_GCJ \
23877     archive_cmds_GCJ \
23878     archive_expsym_cmds_GCJ \
23879     postinstall_cmds_GCJ \
23880     postuninstall_cmds_GCJ \
23881     old_archive_from_expsyms_cmds_GCJ \
23882     allow_undefined_flag_GCJ \
23883     no_undefined_flag_GCJ \
23884     export_symbols_cmds_GCJ \
23885     hardcode_libdir_flag_spec_GCJ \
23886     hardcode_libdir_flag_spec_ld_GCJ \
23887     hardcode_libdir_separator_GCJ \
23888     hardcode_automatic_GCJ \
23889     module_cmds_GCJ \
23890     module_expsym_cmds_GCJ \
23891     lt_cv_prog_compiler_c_o_GCJ \
23892     exclude_expsyms_GCJ \
23893     include_expsyms_GCJ; do
23894
23895     case $var in
23896     old_archive_cmds_GCJ | \
23897     old_archive_from_new_cmds_GCJ | \
23898     archive_cmds_GCJ | \
23899     archive_expsym_cmds_GCJ | \
23900     module_cmds_GCJ | \
23901     module_expsym_cmds_GCJ | \
23902     old_archive_from_expsyms_cmds_GCJ | \
23903     export_symbols_cmds_GCJ | \
23904     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23905     postinstall_cmds | postuninstall_cmds | \
23906     old_postinstall_cmds | old_postuninstall_cmds | \
23907     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23908       # Double-quote double-evaled strings.
23909       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23910       ;;
23911     *)
23912       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23913       ;;
23914     esac
23915   done
23916
23917   case $lt_echo in
23918   *'\$0 --fallback-echo"')
23919     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23920     ;;
23921   esac
23922
23923 cfgfile="$ofile"
23924
23925   cat <<__EOF__ >> "$cfgfile"
23926 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23927
23928 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23929
23930 # Shell to use when invoking shell scripts.
23931 SHELL=$lt_SHELL
23932
23933 # Whether or not to build shared libraries.
23934 build_libtool_libs=$enable_shared
23935
23936 # Whether or not to build static libraries.
23937 build_old_libs=$enable_static
23938
23939 # Whether or not to add -lc for building shared libraries.
23940 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23941
23942 # Whether or not to disallow shared libs when runtime libs are static
23943 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23944
23945 # Whether or not to optimize for fast installation.
23946 fast_install=$enable_fast_install
23947
23948 # The host system.
23949 host_alias=$host_alias
23950 host=$host
23951
23952 # An echo program that does not interpret backslashes.
23953 echo=$lt_echo
23954
23955 # The archiver.
23956 AR=$lt_AR
23957 AR_FLAGS=$lt_AR_FLAGS
23958
23959 # A C compiler.
23960 LTCC=$lt_LTCC
23961
23962 # A language-specific compiler.
23963 CC=$lt_compiler_GCJ
23964
23965 # Is the compiler the GNU C compiler?
23966 with_gcc=$GCC_GCJ
23967
23968 # An ERE matcher.
23969 EGREP=$lt_EGREP
23970
23971 # The linker used to build libraries.
23972 LD=$lt_LD_GCJ
23973
23974 # Whether we need hard or soft links.
23975 LN_S=$lt_LN_S
23976
23977 # A BSD-compatible nm program.
23978 NM=$lt_NM
23979
23980 # A symbol stripping program
23981 STRIP=$lt_STRIP
23982
23983 # Used to examine libraries when file_magic_cmd begins "file"
23984 MAGIC_CMD=$MAGIC_CMD
23985
23986 # Used on cygwin: DLL creation program.
23987 DLLTOOL="$DLLTOOL"
23988
23989 # Used on cygwin: object dumper.
23990 OBJDUMP="$OBJDUMP"
23991
23992 # Used on cygwin: assembler.
23993 AS="$AS"
23994
23995 # The name of the directory that contains temporary libtool files.
23996 objdir=$objdir
23997
23998 # How to create reloadable object files.
23999 reload_flag=$lt_reload_flag
24000 reload_cmds=$lt_reload_cmds
24001
24002 # How to pass a linker flag through the compiler.
24003 wl=$lt_lt_prog_compiler_wl_GCJ
24004
24005 # Object file suffix (normally "o").
24006 objext="$ac_objext"
24007
24008 # Old archive suffix (normally "a").
24009 libext="$libext"
24010
24011 # Shared library suffix (normally ".so").
24012 shrext_cmds='$shrext_cmds'
24013
24014 # Executable file suffix (normally "").
24015 exeext="$exeext"
24016
24017 # Additional compiler flags for building library objects.
24018 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24019 pic_mode=$pic_mode
24020
24021 # What is the maximum length of a command?
24022 max_cmd_len=$lt_cv_sys_max_cmd_len
24023
24024 # Does compiler simultaneously support -c and -o options?
24025 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24026
24027 # Must we lock files when doing compilation ?
24028 need_locks=$lt_need_locks
24029
24030 # Do we need the lib prefix for modules?
24031 need_lib_prefix=$need_lib_prefix
24032
24033 # Do we need a version for libraries?
24034 need_version=$need_version
24035
24036 # Whether dlopen is supported.
24037 dlopen_support=$enable_dlopen
24038
24039 # Whether dlopen of programs is supported.
24040 dlopen_self=$enable_dlopen_self
24041
24042 # Whether dlopen of statically linked programs is supported.
24043 dlopen_self_static=$enable_dlopen_self_static
24044
24045 # Compiler flag to prevent dynamic linking.
24046 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24047
24048 # Compiler flag to turn off builtin functions.
24049 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24050
24051 # Compiler flag to allow reflexive dlopens.
24052 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24053
24054 # Compiler flag to generate shared objects directly from archives.
24055 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24056
24057 # Compiler flag to generate thread-safe objects.
24058 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24059
24060 # Library versioning type.
24061 version_type=$version_type
24062
24063 # Format of library name prefix.
24064 libname_spec=$lt_libname_spec
24065
24066 # List of archive names.  First name is the real one, the rest are links.
24067 # The last name is the one that the linker finds with -lNAME.
24068 library_names_spec=$lt_library_names_spec
24069
24070 # The coded name of the library, if different from the real name.
24071 soname_spec=$lt_soname_spec
24072
24073 # Commands used to build and install an old-style archive.
24074 RANLIB=$lt_RANLIB
24075 old_archive_cmds=$lt_old_archive_cmds_GCJ
24076 old_postinstall_cmds=$lt_old_postinstall_cmds
24077 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24078
24079 # Create an old-style archive from a shared archive.
24080 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24081
24082 # Create a temporary old-style archive to link instead of a shared archive.
24083 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24084
24085 # Commands used to build and install a shared archive.
24086 archive_cmds=$lt_archive_cmds_GCJ
24087 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24088 postinstall_cmds=$lt_postinstall_cmds
24089 postuninstall_cmds=$lt_postuninstall_cmds
24090
24091 # Commands used to build a loadable module (assumed same as above if empty)
24092 module_cmds=$lt_module_cmds_GCJ
24093 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24094
24095 # Commands to strip libraries.
24096 old_striplib=$lt_old_striplib
24097 striplib=$lt_striplib
24098
24099 # Dependencies to place before the objects being linked to create a
24100 # shared library.
24101 predep_objects=$lt_predep_objects_GCJ
24102
24103 # Dependencies to place after the objects being linked to create a
24104 # shared library.
24105 postdep_objects=$lt_postdep_objects_GCJ
24106
24107 # Dependencies to place before the objects being linked to create a
24108 # shared library.
24109 predeps=$lt_predeps_GCJ
24110
24111 # Dependencies to place after the objects being linked to create a
24112 # shared library.
24113 postdeps=$lt_postdeps_GCJ
24114
24115 # The library search path used internally by the compiler when linking
24116 # a shared library.
24117 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24118
24119 # Method to check whether dependent libraries are shared objects.
24120 deplibs_check_method=$lt_deplibs_check_method
24121
24122 # Command to use when deplibs_check_method == file_magic.
24123 file_magic_cmd=$lt_file_magic_cmd
24124
24125 # Flag that allows shared libraries with undefined symbols to be built.
24126 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24127
24128 # Flag that forces no undefined symbols.
24129 no_undefined_flag=$lt_no_undefined_flag_GCJ
24130
24131 # Commands used to finish a libtool library installation in a directory.
24132 finish_cmds=$lt_finish_cmds
24133
24134 # Same as above, but a single script fragment to be evaled but not shown.
24135 finish_eval=$lt_finish_eval
24136
24137 # Take the output of nm and produce a listing of raw symbols and C names.
24138 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24139
24140 # Transform the output of nm in a proper C declaration
24141 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24142
24143 # Transform the output of nm in a C name address pair
24144 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24145
24146 # This is the shared library runtime path variable.
24147 runpath_var=$runpath_var
24148
24149 # This is the shared library path variable.
24150 shlibpath_var=$shlibpath_var
24151
24152 # Is shlibpath searched before the hard-coded library search path?
24153 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24154
24155 # How to hardcode a shared library path into an executable.
24156 hardcode_action=$hardcode_action_GCJ
24157
24158 # Whether we should hardcode library paths into libraries.
24159 hardcode_into_libs=$hardcode_into_libs
24160
24161 # Flag to hardcode \$libdir into a binary during linking.
24162 # This must work even if \$libdir does not exist.
24163 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24164
24165 # If ld is used when linking, flag to hardcode \$libdir into
24166 # a binary during linking. This must work even if \$libdir does
24167 # not exist.
24168 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24169
24170 # Whether we need a single -rpath flag with a separated argument.
24171 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24172
24173 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24174 # resulting binary.
24175 hardcode_direct=$hardcode_direct_GCJ
24176
24177 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24178 # resulting binary.
24179 hardcode_minus_L=$hardcode_minus_L_GCJ
24180
24181 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24182 # the resulting binary.
24183 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24184
24185 # Set to yes if building a shared library automatically hardcodes DIR into the library
24186 # and all subsequent libraries and executables linked against it.
24187 hardcode_automatic=$hardcode_automatic_GCJ
24188
24189 # Variables whose values should be saved in libtool wrapper scripts and
24190 # restored at relink time.
24191 variables_saved_for_relink="$variables_saved_for_relink"
24192
24193 # Whether libtool must link a program against all its dependency libraries.
24194 link_all_deplibs=$link_all_deplibs_GCJ
24195
24196 # Compile-time system search path for libraries
24197 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24198
24199 # Run-time system search path for libraries
24200 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24201
24202 # Fix the shell variable \$srcfile for the compiler.
24203 fix_srcfile_path="$fix_srcfile_path_GCJ"
24204
24205 # Set to yes if exported symbols are required.
24206 always_export_symbols=$always_export_symbols_GCJ
24207
24208 # The commands to list exported symbols.
24209 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24210
24211 # The commands to extract the exported symbol list from a shared archive.
24212 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24213
24214 # Symbols that should not be listed in the preloaded symbols.
24215 exclude_expsyms=$lt_exclude_expsyms_GCJ
24216
24217 # Symbols that must always be exported.
24218 include_expsyms=$lt_include_expsyms_GCJ
24219
24220 # ### END LIBTOOL TAG CONFIG: $tagname
24221
24222 __EOF__
24223
24224
24225 else
24226   # If there is no Makefile yet, we rely on a make rule to execute
24227   # `config.status --recheck' to rerun these tests and create the
24228   # libtool script then.
24229   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24230   if test -f "$ltmain_in"; then
24231     test -f Makefile && make "$ltmain"
24232   fi
24233 fi
24234
24235
24236 ac_ext=c
24237 ac_cpp='$CPP $CPPFLAGS'
24238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24241
24242 CC="$lt_save_CC"
24243
24244         else
24245           tagname=""
24246         fi
24247         ;;
24248
24249       RC)
24250         ac_ext=c
24251 ac_cpp='$CPP $CPPFLAGS'
24252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24255
24256
24257 # Source file extension for RC test sources.
24258 ac_ext=rc
24259
24260 # Object file extension for compiled RC test sources.
24261 objext=o
24262 objext_RC=$objext
24263
24264 # Code to be used in simple compile tests
24265 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24266
24267 # Code to be used in simple link tests
24268 lt_simple_link_test_code="$lt_simple_compile_test_code"
24269
24270 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24271
24272 # If no C compiler was specified, use CC.
24273 LTCC=${LTCC-"$CC"}
24274
24275 # Allow CC to be a program name with arguments.
24276 compiler=$CC
24277
24278
24279 # Allow CC to be a program name with arguments.
24280 lt_save_CC="$CC"
24281 CC=${RC-"windres"}
24282 compiler=$CC
24283 compiler_RC=$CC
24284 lt_cv_prog_compiler_c_o_RC=yes
24285
24286 # The else clause should only fire when bootstrapping the
24287 # libtool distribution, otherwise you forgot to ship ltmain.sh
24288 # with your package, and you will get complaints that there are
24289 # no rules to generate ltmain.sh.
24290 if test -f "$ltmain"; then
24291   # See if we are running on zsh, and set the options which allow our commands through
24292   # without removal of \ escapes.
24293   if test -n "${ZSH_VERSION+set}" ; then
24294     setopt NO_GLOB_SUBST
24295   fi
24296   # Now quote all the things that may contain metacharacters while being
24297   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24298   # variables and quote the copies for generation of the libtool script.
24299   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24300     SED SHELL STRIP \
24301     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24302     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24303     deplibs_check_method reload_flag reload_cmds need_locks \
24304     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24305     lt_cv_sys_global_symbol_to_c_name_address \
24306     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24307     old_postinstall_cmds old_postuninstall_cmds \
24308     compiler_RC \
24309     CC_RC \
24310     LD_RC \
24311     lt_prog_compiler_wl_RC \
24312     lt_prog_compiler_pic_RC \
24313     lt_prog_compiler_static_RC \
24314     lt_prog_compiler_no_builtin_flag_RC \
24315     export_dynamic_flag_spec_RC \
24316     thread_safe_flag_spec_RC \
24317     whole_archive_flag_spec_RC \
24318     enable_shared_with_static_runtimes_RC \
24319     old_archive_cmds_RC \
24320     old_archive_from_new_cmds_RC \
24321     predep_objects_RC \
24322     postdep_objects_RC \
24323     predeps_RC \
24324     postdeps_RC \
24325     compiler_lib_search_path_RC \
24326     archive_cmds_RC \
24327     archive_expsym_cmds_RC \
24328     postinstall_cmds_RC \
24329     postuninstall_cmds_RC \
24330     old_archive_from_expsyms_cmds_RC \
24331     allow_undefined_flag_RC \
24332     no_undefined_flag_RC \
24333     export_symbols_cmds_RC \
24334     hardcode_libdir_flag_spec_RC \
24335     hardcode_libdir_flag_spec_ld_RC \
24336     hardcode_libdir_separator_RC \
24337     hardcode_automatic_RC \
24338     module_cmds_RC \
24339     module_expsym_cmds_RC \
24340     lt_cv_prog_compiler_c_o_RC \
24341     exclude_expsyms_RC \
24342     include_expsyms_RC; do
24343
24344     case $var in
24345     old_archive_cmds_RC | \
24346     old_archive_from_new_cmds_RC | \
24347     archive_cmds_RC | \
24348     archive_expsym_cmds_RC | \
24349     module_cmds_RC | \
24350     module_expsym_cmds_RC | \
24351     old_archive_from_expsyms_cmds_RC | \
24352     export_symbols_cmds_RC | \
24353     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24354     postinstall_cmds | postuninstall_cmds | \
24355     old_postinstall_cmds | old_postuninstall_cmds | \
24356     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24357       # Double-quote double-evaled strings.
24358       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24359       ;;
24360     *)
24361       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24362       ;;
24363     esac
24364   done
24365
24366   case $lt_echo in
24367   *'\$0 --fallback-echo"')
24368     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24369     ;;
24370   esac
24371
24372 cfgfile="$ofile"
24373
24374   cat <<__EOF__ >> "$cfgfile"
24375 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24376
24377 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24378
24379 # Shell to use when invoking shell scripts.
24380 SHELL=$lt_SHELL
24381
24382 # Whether or not to build shared libraries.
24383 build_libtool_libs=$enable_shared
24384
24385 # Whether or not to build static libraries.
24386 build_old_libs=$enable_static
24387
24388 # Whether or not to add -lc for building shared libraries.
24389 build_libtool_need_lc=$archive_cmds_need_lc_RC
24390
24391 # Whether or not to disallow shared libs when runtime libs are static
24392 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24393
24394 # Whether or not to optimize for fast installation.
24395 fast_install=$enable_fast_install
24396
24397 # The host system.
24398 host_alias=$host_alias
24399 host=$host
24400
24401 # An echo program that does not interpret backslashes.
24402 echo=$lt_echo
24403
24404 # The archiver.
24405 AR=$lt_AR
24406 AR_FLAGS=$lt_AR_FLAGS
24407
24408 # A C compiler.
24409 LTCC=$lt_LTCC
24410
24411 # A language-specific compiler.
24412 CC=$lt_compiler_RC
24413
24414 # Is the compiler the GNU C compiler?
24415 with_gcc=$GCC_RC
24416
24417 # An ERE matcher.
24418 EGREP=$lt_EGREP
24419
24420 # The linker used to build libraries.
24421 LD=$lt_LD_RC
24422
24423 # Whether we need hard or soft links.
24424 LN_S=$lt_LN_S
24425
24426 # A BSD-compatible nm program.
24427 NM=$lt_NM
24428
24429 # A symbol stripping program
24430 STRIP=$lt_STRIP
24431
24432 # Used to examine libraries when file_magic_cmd begins "file"
24433 MAGIC_CMD=$MAGIC_CMD
24434
24435 # Used on cygwin: DLL creation program.
24436 DLLTOOL="$DLLTOOL"
24437
24438 # Used on cygwin: object dumper.
24439 OBJDUMP="$OBJDUMP"
24440
24441 # Used on cygwin: assembler.
24442 AS="$AS"
24443
24444 # The name of the directory that contains temporary libtool files.
24445 objdir=$objdir
24446
24447 # How to create reloadable object files.
24448 reload_flag=$lt_reload_flag
24449 reload_cmds=$lt_reload_cmds
24450
24451 # How to pass a linker flag through the compiler.
24452 wl=$lt_lt_prog_compiler_wl_RC
24453
24454 # Object file suffix (normally "o").
24455 objext="$ac_objext"
24456
24457 # Old archive suffix (normally "a").
24458 libext="$libext"
24459
24460 # Shared library suffix (normally ".so").
24461 shrext_cmds='$shrext_cmds'
24462
24463 # Executable file suffix (normally "").
24464 exeext="$exeext"
24465
24466 # Additional compiler flags for building library objects.
24467 pic_flag=$lt_lt_prog_compiler_pic_RC
24468 pic_mode=$pic_mode
24469
24470 # What is the maximum length of a command?
24471 max_cmd_len=$lt_cv_sys_max_cmd_len
24472
24473 # Does compiler simultaneously support -c and -o options?
24474 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24475
24476 # Must we lock files when doing compilation ?
24477 need_locks=$lt_need_locks
24478
24479 # Do we need the lib prefix for modules?
24480 need_lib_prefix=$need_lib_prefix
24481
24482 # Do we need a version for libraries?
24483 need_version=$need_version
24484
24485 # Whether dlopen is supported.
24486 dlopen_support=$enable_dlopen
24487
24488 # Whether dlopen of programs is supported.
24489 dlopen_self=$enable_dlopen_self
24490
24491 # Whether dlopen of statically linked programs is supported.
24492 dlopen_self_static=$enable_dlopen_self_static
24493
24494 # Compiler flag to prevent dynamic linking.
24495 link_static_flag=$lt_lt_prog_compiler_static_RC
24496
24497 # Compiler flag to turn off builtin functions.
24498 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24499
24500 # Compiler flag to allow reflexive dlopens.
24501 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24502
24503 # Compiler flag to generate shared objects directly from archives.
24504 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24505
24506 # Compiler flag to generate thread-safe objects.
24507 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24508
24509 # Library versioning type.
24510 version_type=$version_type
24511
24512 # Format of library name prefix.
24513 libname_spec=$lt_libname_spec
24514
24515 # List of archive names.  First name is the real one, the rest are links.
24516 # The last name is the one that the linker finds with -lNAME.
24517 library_names_spec=$lt_library_names_spec
24518
24519 # The coded name of the library, if different from the real name.
24520 soname_spec=$lt_soname_spec
24521
24522 # Commands used to build and install an old-style archive.
24523 RANLIB=$lt_RANLIB
24524 old_archive_cmds=$lt_old_archive_cmds_RC
24525 old_postinstall_cmds=$lt_old_postinstall_cmds
24526 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24527
24528 # Create an old-style archive from a shared archive.
24529 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24530
24531 # Create a temporary old-style archive to link instead of a shared archive.
24532 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24533
24534 # Commands used to build and install a shared archive.
24535 archive_cmds=$lt_archive_cmds_RC
24536 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24537 postinstall_cmds=$lt_postinstall_cmds
24538 postuninstall_cmds=$lt_postuninstall_cmds
24539
24540 # Commands used to build a loadable module (assumed same as above if empty)
24541 module_cmds=$lt_module_cmds_RC
24542 module_expsym_cmds=$lt_module_expsym_cmds_RC
24543
24544 # Commands to strip libraries.
24545 old_striplib=$lt_old_striplib
24546 striplib=$lt_striplib
24547
24548 # Dependencies to place before the objects being linked to create a
24549 # shared library.
24550 predep_objects=$lt_predep_objects_RC
24551
24552 # Dependencies to place after the objects being linked to create a
24553 # shared library.
24554 postdep_objects=$lt_postdep_objects_RC
24555
24556 # Dependencies to place before the objects being linked to create a
24557 # shared library.
24558 predeps=$lt_predeps_RC
24559
24560 # Dependencies to place after the objects being linked to create a
24561 # shared library.
24562 postdeps=$lt_postdeps_RC
24563
24564 # The library search path used internally by the compiler when linking
24565 # a shared library.
24566 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24567
24568 # Method to check whether dependent libraries are shared objects.
24569 deplibs_check_method=$lt_deplibs_check_method
24570
24571 # Command to use when deplibs_check_method == file_magic.
24572 file_magic_cmd=$lt_file_magic_cmd
24573
24574 # Flag that allows shared libraries with undefined symbols to be built.
24575 allow_undefined_flag=$lt_allow_undefined_flag_RC
24576
24577 # Flag that forces no undefined symbols.
24578 no_undefined_flag=$lt_no_undefined_flag_RC
24579
24580 # Commands used to finish a libtool library installation in a directory.
24581 finish_cmds=$lt_finish_cmds
24582
24583 # Same as above, but a single script fragment to be evaled but not shown.
24584 finish_eval=$lt_finish_eval
24585
24586 # Take the output of nm and produce a listing of raw symbols and C names.
24587 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24588
24589 # Transform the output of nm in a proper C declaration
24590 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24591
24592 # Transform the output of nm in a C name address pair
24593 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24594
24595 # This is the shared library runtime path variable.
24596 runpath_var=$runpath_var
24597
24598 # This is the shared library path variable.
24599 shlibpath_var=$shlibpath_var
24600
24601 # Is shlibpath searched before the hard-coded library search path?
24602 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24603
24604 # How to hardcode a shared library path into an executable.
24605 hardcode_action=$hardcode_action_RC
24606
24607 # Whether we should hardcode library paths into libraries.
24608 hardcode_into_libs=$hardcode_into_libs
24609
24610 # Flag to hardcode \$libdir into a binary during linking.
24611 # This must work even if \$libdir does not exist.
24612 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24613
24614 # If ld is used when linking, flag to hardcode \$libdir into
24615 # a binary during linking. This must work even if \$libdir does
24616 # not exist.
24617 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24618
24619 # Whether we need a single -rpath flag with a separated argument.
24620 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24621
24622 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24623 # resulting binary.
24624 hardcode_direct=$hardcode_direct_RC
24625
24626 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24627 # resulting binary.
24628 hardcode_minus_L=$hardcode_minus_L_RC
24629
24630 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24631 # the resulting binary.
24632 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24633
24634 # Set to yes if building a shared library automatically hardcodes DIR into the library
24635 # and all subsequent libraries and executables linked against it.
24636 hardcode_automatic=$hardcode_automatic_RC
24637
24638 # Variables whose values should be saved in libtool wrapper scripts and
24639 # restored at relink time.
24640 variables_saved_for_relink="$variables_saved_for_relink"
24641
24642 # Whether libtool must link a program against all its dependency libraries.
24643 link_all_deplibs=$link_all_deplibs_RC
24644
24645 # Compile-time system search path for libraries
24646 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24647
24648 # Run-time system search path for libraries
24649 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24650
24651 # Fix the shell variable \$srcfile for the compiler.
24652 fix_srcfile_path="$fix_srcfile_path_RC"
24653
24654 # Set to yes if exported symbols are required.
24655 always_export_symbols=$always_export_symbols_RC
24656
24657 # The commands to list exported symbols.
24658 export_symbols_cmds=$lt_export_symbols_cmds_RC
24659
24660 # The commands to extract the exported symbol list from a shared archive.
24661 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24662
24663 # Symbols that should not be listed in the preloaded symbols.
24664 exclude_expsyms=$lt_exclude_expsyms_RC
24665
24666 # Symbols that must always be exported.
24667 include_expsyms=$lt_include_expsyms_RC
24668
24669 # ### END LIBTOOL TAG CONFIG: $tagname
24670
24671 __EOF__
24672
24673
24674 else
24675   # If there is no Makefile yet, we rely on a make rule to execute
24676   # `config.status --recheck' to rerun these tests and create the
24677   # libtool script then.
24678   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24679   if test -f "$ltmain_in"; then
24680     test -f Makefile && make "$ltmain"
24681   fi
24682 fi
24683
24684
24685 ac_ext=c
24686 ac_cpp='$CPP $CPPFLAGS'
24687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24690
24691 CC="$lt_save_CC"
24692
24693         ;;
24694
24695       *)
24696         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24697 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24698    { (exit 1); exit 1; }; }
24699         ;;
24700       esac
24701
24702       # Append the new tag name to the list of available tags.
24703       if test -n "$tagname" ; then
24704       available_tags="$available_tags $tagname"
24705     fi
24706     fi
24707   done
24708   IFS="$lt_save_ifs"
24709
24710   # Now substitute the updated list of available tags.
24711   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24712     mv "${ofile}T" "$ofile"
24713     chmod +x "$ofile"
24714   else
24715     rm -f "${ofile}T"
24716     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24717 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24718    { (exit 1); exit 1; }; }
24719   fi
24720 fi
24721
24722
24723
24724 # This can be used to rebuild libtool when needed
24725 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24726
24727 # Always use our own libtool.
24728 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24729
24730 # Prevent multiple expansion
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750
24751
24752 if test "$lt_cv_dlopen_self" = "yes" ; then
24753
24754 cat >>confdefs.h <<\_ACEOF
24755 #define CAN_DLOPEN_SELF 1
24756 _ACEOF
24757
24758 fi
24759
24760 etags_version=`$ETAGS --version 2>&1`
24761 case "$etags_version" in
24762         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24763         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24764         *) ETAGSFLAGS="" ;;
24765 esac
24766 ETAGSFLAGS=$ETAGSFLAGS
24767
24768
24769 if test "$WITH_LLVMGCCDIR" = "default" ; then
24770   LLVMGCC="llvm-gcc${EXEEXT}"
24771   LLVMGXX="llvm-g++${EXEEXT}"
24772   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24773 set dummy $LLVMGCC; ac_word=$2
24774 echo "$as_me:$LINENO: checking for $ac_word" >&5
24775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24776 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24777   echo $ECHO_N "(cached) $ECHO_C" >&6
24778 else
24779   case $LLVMGCC in
24780   [\\/]* | ?:[\\/]*)
24781   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24782   ;;
24783   *)
24784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24785 for as_dir in $PATH
24786 do
24787   IFS=$as_save_IFS
24788   test -z "$as_dir" && as_dir=.
24789   for ac_exec_ext in '' $ac_executable_extensions; do
24790   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24791     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24793     break 2
24794   fi
24795 done
24796 done
24797
24798   ;;
24799 esac
24800 fi
24801 LLVMGCC=$ac_cv_path_LLVMGCC
24802
24803 if test -n "$LLVMGCC"; then
24804   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24805 echo "${ECHO_T}$LLVMGCC" >&6
24806 else
24807   echo "$as_me:$LINENO: result: no" >&5
24808 echo "${ECHO_T}no" >&6
24809 fi
24810
24811   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24812 set dummy $LLVMGXX; ac_word=$2
24813 echo "$as_me:$LINENO: checking for $ac_word" >&5
24814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24815 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24816   echo $ECHO_N "(cached) $ECHO_C" >&6
24817 else
24818   case $LLVMGXX in
24819   [\\/]* | ?:[\\/]*)
24820   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24821   ;;
24822   *)
24823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24824 for as_dir in $PATH
24825 do
24826   IFS=$as_save_IFS
24827   test -z "$as_dir" && as_dir=.
24828   for ac_exec_ext in '' $ac_executable_extensions; do
24829   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24830     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24832     break 2
24833   fi
24834 done
24835 done
24836
24837   ;;
24838 esac
24839 fi
24840 LLVMGXX=$ac_cv_path_LLVMGXX
24841
24842 if test -n "$LLVMGXX"; then
24843   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24844 echo "${ECHO_T}$LLVMGXX" >&6
24845 else
24846   echo "$as_me:$LINENO: result: no" >&5
24847 echo "${ECHO_T}no" >&6
24848 fi
24849
24850 else
24851   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24852   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24853   LLVMGCC=$LLVMGCC
24854
24855   LLVMGXX=$LLVMGXX
24856
24857 fi
24858
24859 echo "$as_me:$LINENO: checking tool compatibility" >&5
24860 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24861
24862 ICC=no
24863 IXX=no
24864 case $CC in
24865   icc*|icpc*)
24866     ICC=yes
24867     IXX=yes
24868     ;;
24869    *)
24870     ;;
24871 esac
24872
24873 if test "$GCC" = "yes"
24874 then
24875   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
24876   if test "$gccmajor" -lt "3"
24877   then
24878     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24879 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24880    { (exit 1); exit 1; }; }
24881   fi
24882 fi
24883
24884 if test -z "$llvm_cv_gnu_make_command"
24885 then
24886   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24887 echo "$as_me: error: GNU Make required but not found" >&2;}
24888    { (exit 1); exit 1; }; }
24889 fi
24890
24891 echo "$as_me:$LINENO: result: ok" >&5
24892 echo "${ECHO_T}ok" >&6
24893
24894
24895
24896 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24897 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24898 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24899   echo $ECHO_N "(cached) $ECHO_C" >&6
24900 else
24901   ac_check_lib_save_LIBS=$LIBS
24902 LIBS="-lelf  $LIBS"
24903 cat >conftest.$ac_ext <<_ACEOF
24904 /* confdefs.h.  */
24905 _ACEOF
24906 cat confdefs.h >>conftest.$ac_ext
24907 cat >>conftest.$ac_ext <<_ACEOF
24908 /* end confdefs.h.  */
24909
24910 /* Override any gcc2 internal prototype to avoid an error.  */
24911 #ifdef __cplusplus
24912 extern "C"
24913 #endif
24914 /* We use char because int might match the return type of a gcc2
24915    builtin and then its argument prototype would still apply.  */
24916 char elf_begin ();
24917 int
24918 main ()
24919 {
24920 elf_begin ();
24921   ;
24922   return 0;
24923 }
24924 _ACEOF
24925 rm -f conftest.$ac_objext conftest$ac_exeext
24926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24927   (eval $ac_link) 2>conftest.er1
24928   ac_status=$?
24929   grep -v '^ *+' conftest.er1 >conftest.err
24930   rm -f conftest.er1
24931   cat conftest.err >&5
24932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933   (exit $ac_status); } &&
24934          { ac_try='test -z "$ac_c_werror_flag"
24935                          || test ! -s conftest.err'
24936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24937   (eval $ac_try) 2>&5
24938   ac_status=$?
24939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940   (exit $ac_status); }; } &&
24941          { ac_try='test -s conftest$ac_exeext'
24942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24943   (eval $ac_try) 2>&5
24944   ac_status=$?
24945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946   (exit $ac_status); }; }; then
24947   ac_cv_lib_elf_elf_begin=yes
24948 else
24949   echo "$as_me: failed program was:" >&5
24950 sed 's/^/| /' conftest.$ac_ext >&5
24951
24952 ac_cv_lib_elf_elf_begin=no
24953 fi
24954 rm -f conftest.err conftest.$ac_objext \
24955       conftest$ac_exeext conftest.$ac_ext
24956 LIBS=$ac_check_lib_save_LIBS
24957 fi
24958 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24959 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24960 if test $ac_cv_lib_elf_elf_begin = yes; then
24961   cat >>confdefs.h <<_ACEOF
24962 #define HAVE_LIBELF 1
24963 _ACEOF
24964
24965   LIBS="-lelf $LIBS"
24966
24967 fi
24968
24969
24970 echo "$as_me:$LINENO: checking for sin in -lm" >&5
24971 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
24972 if test "${ac_cv_lib_m_sin+set}" = set; then
24973   echo $ECHO_N "(cached) $ECHO_C" >&6
24974 else
24975   ac_check_lib_save_LIBS=$LIBS
24976 LIBS="-lm  $LIBS"
24977 cat >conftest.$ac_ext <<_ACEOF
24978 /* confdefs.h.  */
24979 _ACEOF
24980 cat confdefs.h >>conftest.$ac_ext
24981 cat >>conftest.$ac_ext <<_ACEOF
24982 /* end confdefs.h.  */
24983
24984 /* Override any gcc2 internal prototype to avoid an error.  */
24985 #ifdef __cplusplus
24986 extern "C"
24987 #endif
24988 /* We use char because int might match the return type of a gcc2
24989    builtin and then its argument prototype would still apply.  */
24990 char sin ();
24991 int
24992 main ()
24993 {
24994 sin ();
24995   ;
24996   return 0;
24997 }
24998 _ACEOF
24999 rm -f conftest.$ac_objext conftest$ac_exeext
25000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25001   (eval $ac_link) 2>conftest.er1
25002   ac_status=$?
25003   grep -v '^ *+' conftest.er1 >conftest.err
25004   rm -f conftest.er1
25005   cat conftest.err >&5
25006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007   (exit $ac_status); } &&
25008          { ac_try='test -z "$ac_c_werror_flag"
25009                          || test ! -s conftest.err'
25010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25011   (eval $ac_try) 2>&5
25012   ac_status=$?
25013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014   (exit $ac_status); }; } &&
25015          { ac_try='test -s conftest$ac_exeext'
25016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25017   (eval $ac_try) 2>&5
25018   ac_status=$?
25019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020   (exit $ac_status); }; }; then
25021   ac_cv_lib_m_sin=yes
25022 else
25023   echo "$as_me: failed program was:" >&5
25024 sed 's/^/| /' conftest.$ac_ext >&5
25025
25026 ac_cv_lib_m_sin=no
25027 fi
25028 rm -f conftest.err conftest.$ac_objext \
25029       conftest$ac_exeext conftest.$ac_ext
25030 LIBS=$ac_check_lib_save_LIBS
25031 fi
25032 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25033 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25034 if test $ac_cv_lib_m_sin = yes; then
25035   cat >>confdefs.h <<_ACEOF
25036 #define HAVE_LIBM 1
25037 _ACEOF
25038
25039   LIBS="-lm $LIBS"
25040
25041 fi
25042
25043
25044 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25045 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25046 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25047   echo $ECHO_N "(cached) $ECHO_C" >&6
25048 else
25049   ac_func_search_save_LIBS=$LIBS
25050 ac_cv_search_lt_dlopen=no
25051 cat >conftest.$ac_ext <<_ACEOF
25052 /* confdefs.h.  */
25053 _ACEOF
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h.  */
25057
25058 /* Override any gcc2 internal prototype to avoid an error.  */
25059 #ifdef __cplusplus
25060 extern "C"
25061 #endif
25062 /* We use char because int might match the return type of a gcc2
25063    builtin and then its argument prototype would still apply.  */
25064 char lt_dlopen ();
25065 int
25066 main ()
25067 {
25068 lt_dlopen ();
25069   ;
25070   return 0;
25071 }
25072 _ACEOF
25073 rm -f conftest.$ac_objext conftest$ac_exeext
25074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25075   (eval $ac_link) 2>conftest.er1
25076   ac_status=$?
25077   grep -v '^ *+' conftest.er1 >conftest.err
25078   rm -f conftest.er1
25079   cat conftest.err >&5
25080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081   (exit $ac_status); } &&
25082          { ac_try='test -z "$ac_c_werror_flag"
25083                          || test ! -s conftest.err'
25084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25085   (eval $ac_try) 2>&5
25086   ac_status=$?
25087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088   (exit $ac_status); }; } &&
25089          { ac_try='test -s conftest$ac_exeext'
25090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25091   (eval $ac_try) 2>&5
25092   ac_status=$?
25093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094   (exit $ac_status); }; }; then
25095   ac_cv_search_lt_dlopen="none required"
25096 else
25097   echo "$as_me: failed program was:" >&5
25098 sed 's/^/| /' conftest.$ac_ext >&5
25099
25100 fi
25101 rm -f conftest.err conftest.$ac_objext \
25102       conftest$ac_exeext conftest.$ac_ext
25103 if test "$ac_cv_search_lt_dlopen" = no; then
25104   for ac_lib in ltdl; do
25105     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25106     cat >conftest.$ac_ext <<_ACEOF
25107 /* confdefs.h.  */
25108 _ACEOF
25109 cat confdefs.h >>conftest.$ac_ext
25110 cat >>conftest.$ac_ext <<_ACEOF
25111 /* end confdefs.h.  */
25112
25113 /* Override any gcc2 internal prototype to avoid an error.  */
25114 #ifdef __cplusplus
25115 extern "C"
25116 #endif
25117 /* We use char because int might match the return type of a gcc2
25118    builtin and then its argument prototype would still apply.  */
25119 char lt_dlopen ();
25120 int
25121 main ()
25122 {
25123 lt_dlopen ();
25124   ;
25125   return 0;
25126 }
25127 _ACEOF
25128 rm -f conftest.$ac_objext conftest$ac_exeext
25129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25130   (eval $ac_link) 2>conftest.er1
25131   ac_status=$?
25132   grep -v '^ *+' conftest.er1 >conftest.err
25133   rm -f conftest.er1
25134   cat conftest.err >&5
25135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136   (exit $ac_status); } &&
25137          { ac_try='test -z "$ac_c_werror_flag"
25138                          || test ! -s conftest.err'
25139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25140   (eval $ac_try) 2>&5
25141   ac_status=$?
25142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25143   (exit $ac_status); }; } &&
25144          { ac_try='test -s conftest$ac_exeext'
25145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25146   (eval $ac_try) 2>&5
25147   ac_status=$?
25148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149   (exit $ac_status); }; }; then
25150   ac_cv_search_lt_dlopen="-l$ac_lib"
25151 break
25152 else
25153   echo "$as_me: failed program was:" >&5
25154 sed 's/^/| /' conftest.$ac_ext >&5
25155
25156 fi
25157 rm -f conftest.err conftest.$ac_objext \
25158       conftest$ac_exeext conftest.$ac_ext
25159   done
25160 fi
25161 LIBS=$ac_func_search_save_LIBS
25162 fi
25163 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25164 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25165 if test "$ac_cv_search_lt_dlopen" != no; then
25166   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25167
25168 cat >>confdefs.h <<\_ACEOF
25169 #define HAVE_LT_DLOPEN 1
25170 _ACEOF
25171
25172 else
25173   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25174                            not be available" >&5
25175 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25176                            not be available" >&2;}
25177 fi
25178
25179
25180 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25181 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25182 if test "${ac_cv_search_dlopen+set}" = set; then
25183   echo $ECHO_N "(cached) $ECHO_C" >&6
25184 else
25185   ac_func_search_save_LIBS=$LIBS
25186 ac_cv_search_dlopen=no
25187 cat >conftest.$ac_ext <<_ACEOF
25188 /* confdefs.h.  */
25189 _ACEOF
25190 cat confdefs.h >>conftest.$ac_ext
25191 cat >>conftest.$ac_ext <<_ACEOF
25192 /* end confdefs.h.  */
25193
25194 /* Override any gcc2 internal prototype to avoid an error.  */
25195 #ifdef __cplusplus
25196 extern "C"
25197 #endif
25198 /* We use char because int might match the return type of a gcc2
25199    builtin and then its argument prototype would still apply.  */
25200 char dlopen ();
25201 int
25202 main ()
25203 {
25204 dlopen ();
25205   ;
25206   return 0;
25207 }
25208 _ACEOF
25209 rm -f conftest.$ac_objext conftest$ac_exeext
25210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25211   (eval $ac_link) 2>conftest.er1
25212   ac_status=$?
25213   grep -v '^ *+' conftest.er1 >conftest.err
25214   rm -f conftest.er1
25215   cat conftest.err >&5
25216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217   (exit $ac_status); } &&
25218          { ac_try='test -z "$ac_c_werror_flag"
25219                          || test ! -s conftest.err'
25220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25221   (eval $ac_try) 2>&5
25222   ac_status=$?
25223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25224   (exit $ac_status); }; } &&
25225          { ac_try='test -s conftest$ac_exeext'
25226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25227   (eval $ac_try) 2>&5
25228   ac_status=$?
25229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230   (exit $ac_status); }; }; then
25231   ac_cv_search_dlopen="none required"
25232 else
25233   echo "$as_me: failed program was:" >&5
25234 sed 's/^/| /' conftest.$ac_ext >&5
25235
25236 fi
25237 rm -f conftest.err conftest.$ac_objext \
25238       conftest$ac_exeext conftest.$ac_ext
25239 if test "$ac_cv_search_dlopen" = no; then
25240   for ac_lib in dl; do
25241     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25242     cat >conftest.$ac_ext <<_ACEOF
25243 /* confdefs.h.  */
25244 _ACEOF
25245 cat confdefs.h >>conftest.$ac_ext
25246 cat >>conftest.$ac_ext <<_ACEOF
25247 /* end confdefs.h.  */
25248
25249 /* Override any gcc2 internal prototype to avoid an error.  */
25250 #ifdef __cplusplus
25251 extern "C"
25252 #endif
25253 /* We use char because int might match the return type of a gcc2
25254    builtin and then its argument prototype would still apply.  */
25255 char dlopen ();
25256 int
25257 main ()
25258 {
25259 dlopen ();
25260   ;
25261   return 0;
25262 }
25263 _ACEOF
25264 rm -f conftest.$ac_objext conftest$ac_exeext
25265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25266   (eval $ac_link) 2>conftest.er1
25267   ac_status=$?
25268   grep -v '^ *+' conftest.er1 >conftest.err
25269   rm -f conftest.er1
25270   cat conftest.err >&5
25271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272   (exit $ac_status); } &&
25273          { ac_try='test -z "$ac_c_werror_flag"
25274                          || test ! -s conftest.err'
25275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25276   (eval $ac_try) 2>&5
25277   ac_status=$?
25278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279   (exit $ac_status); }; } &&
25280          { ac_try='test -s conftest$ac_exeext'
25281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282   (eval $ac_try) 2>&5
25283   ac_status=$?
25284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285   (exit $ac_status); }; }; then
25286   ac_cv_search_dlopen="-l$ac_lib"
25287 break
25288 else
25289   echo "$as_me: failed program was:" >&5
25290 sed 's/^/| /' conftest.$ac_ext >&5
25291
25292 fi
25293 rm -f conftest.err conftest.$ac_objext \
25294       conftest$ac_exeext conftest.$ac_ext
25295   done
25296 fi
25297 LIBS=$ac_func_search_save_LIBS
25298 fi
25299 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25300 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25301 if test "$ac_cv_search_dlopen" != no; then
25302   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25303
25304 cat >>confdefs.h <<\_ACEOF
25305 #define HAVE_DLOPEN 1
25306 _ACEOF
25307
25308 else
25309   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25310 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25311 fi
25312
25313
25314 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25315 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25316 if test "${ac_cv_search_mallinfo+set}" = set; then
25317   echo $ECHO_N "(cached) $ECHO_C" >&6
25318 else
25319   ac_func_search_save_LIBS=$LIBS
25320 ac_cv_search_mallinfo=no
25321 cat >conftest.$ac_ext <<_ACEOF
25322 /* confdefs.h.  */
25323 _ACEOF
25324 cat confdefs.h >>conftest.$ac_ext
25325 cat >>conftest.$ac_ext <<_ACEOF
25326 /* end confdefs.h.  */
25327
25328 /* Override any gcc2 internal prototype to avoid an error.  */
25329 #ifdef __cplusplus
25330 extern "C"
25331 #endif
25332 /* We use char because int might match the return type of a gcc2
25333    builtin and then its argument prototype would still apply.  */
25334 char mallinfo ();
25335 int
25336 main ()
25337 {
25338 mallinfo ();
25339   ;
25340   return 0;
25341 }
25342 _ACEOF
25343 rm -f conftest.$ac_objext conftest$ac_exeext
25344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25345   (eval $ac_link) 2>conftest.er1
25346   ac_status=$?
25347   grep -v '^ *+' conftest.er1 >conftest.err
25348   rm -f conftest.er1
25349   cat conftest.err >&5
25350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351   (exit $ac_status); } &&
25352          { ac_try='test -z "$ac_c_werror_flag"
25353                          || test ! -s conftest.err'
25354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25355   (eval $ac_try) 2>&5
25356   ac_status=$?
25357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358   (exit $ac_status); }; } &&
25359          { ac_try='test -s conftest$ac_exeext'
25360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25361   (eval $ac_try) 2>&5
25362   ac_status=$?
25363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364   (exit $ac_status); }; }; then
25365   ac_cv_search_mallinfo="none required"
25366 else
25367   echo "$as_me: failed program was:" >&5
25368 sed 's/^/| /' conftest.$ac_ext >&5
25369
25370 fi
25371 rm -f conftest.err conftest.$ac_objext \
25372       conftest$ac_exeext conftest.$ac_ext
25373 if test "$ac_cv_search_mallinfo" = no; then
25374   for ac_lib in malloc; do
25375     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25376     cat >conftest.$ac_ext <<_ACEOF
25377 /* confdefs.h.  */
25378 _ACEOF
25379 cat confdefs.h >>conftest.$ac_ext
25380 cat >>conftest.$ac_ext <<_ACEOF
25381 /* end confdefs.h.  */
25382
25383 /* Override any gcc2 internal prototype to avoid an error.  */
25384 #ifdef __cplusplus
25385 extern "C"
25386 #endif
25387 /* We use char because int might match the return type of a gcc2
25388    builtin and then its argument prototype would still apply.  */
25389 char mallinfo ();
25390 int
25391 main ()
25392 {
25393 mallinfo ();
25394   ;
25395   return 0;
25396 }
25397 _ACEOF
25398 rm -f conftest.$ac_objext conftest$ac_exeext
25399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25400   (eval $ac_link) 2>conftest.er1
25401   ac_status=$?
25402   grep -v '^ *+' conftest.er1 >conftest.err
25403   rm -f conftest.er1
25404   cat conftest.err >&5
25405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406   (exit $ac_status); } &&
25407          { ac_try='test -z "$ac_c_werror_flag"
25408                          || test ! -s conftest.err'
25409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25410   (eval $ac_try) 2>&5
25411   ac_status=$?
25412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413   (exit $ac_status); }; } &&
25414          { ac_try='test -s conftest$ac_exeext'
25415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25416   (eval $ac_try) 2>&5
25417   ac_status=$?
25418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419   (exit $ac_status); }; }; then
25420   ac_cv_search_mallinfo="-l$ac_lib"
25421 break
25422 else
25423   echo "$as_me: failed program was:" >&5
25424 sed 's/^/| /' conftest.$ac_ext >&5
25425
25426 fi
25427 rm -f conftest.err conftest.$ac_objext \
25428       conftest$ac_exeext conftest.$ac_ext
25429   done
25430 fi
25431 LIBS=$ac_func_search_save_LIBS
25432 fi
25433 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25434 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25435 if test "$ac_cv_search_mallinfo" != no; then
25436   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25437
25438 cat >>confdefs.h <<\_ACEOF
25439 #define HAVE_MALLINFO 1
25440 _ACEOF
25441
25442 fi
25443
25444
25445 if test "$ENABLE_THREADS" -eq 1 ; then
25446
25447 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25448 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25449 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25450   echo $ECHO_N "(cached) $ECHO_C" >&6
25451 else
25452   ac_check_lib_save_LIBS=$LIBS
25453 LIBS="-lpthread  $LIBS"
25454 cat >conftest.$ac_ext <<_ACEOF
25455 /* confdefs.h.  */
25456 _ACEOF
25457 cat confdefs.h >>conftest.$ac_ext
25458 cat >>conftest.$ac_ext <<_ACEOF
25459 /* end confdefs.h.  */
25460
25461 /* Override any gcc2 internal prototype to avoid an error.  */
25462 #ifdef __cplusplus
25463 extern "C"
25464 #endif
25465 /* We use char because int might match the return type of a gcc2
25466    builtin and then its argument prototype would still apply.  */
25467 char pthread_mutex_init ();
25468 int
25469 main ()
25470 {
25471 pthread_mutex_init ();
25472   ;
25473   return 0;
25474 }
25475 _ACEOF
25476 rm -f conftest.$ac_objext conftest$ac_exeext
25477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25478   (eval $ac_link) 2>conftest.er1
25479   ac_status=$?
25480   grep -v '^ *+' conftest.er1 >conftest.err
25481   rm -f conftest.er1
25482   cat conftest.err >&5
25483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484   (exit $ac_status); } &&
25485          { ac_try='test -z "$ac_c_werror_flag"
25486                          || test ! -s conftest.err'
25487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25488   (eval $ac_try) 2>&5
25489   ac_status=$?
25490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25491   (exit $ac_status); }; } &&
25492          { ac_try='test -s conftest$ac_exeext'
25493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25494   (eval $ac_try) 2>&5
25495   ac_status=$?
25496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497   (exit $ac_status); }; }; then
25498   ac_cv_lib_pthread_pthread_mutex_init=yes
25499 else
25500   echo "$as_me: failed program was:" >&5
25501 sed 's/^/| /' conftest.$ac_ext >&5
25502
25503 ac_cv_lib_pthread_pthread_mutex_init=no
25504 fi
25505 rm -f conftest.err conftest.$ac_objext \
25506       conftest$ac_exeext conftest.$ac_ext
25507 LIBS=$ac_check_lib_save_LIBS
25508 fi
25509 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25510 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25511 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25512   cat >>confdefs.h <<_ACEOF
25513 #define HAVE_LIBPTHREAD 1
25514 _ACEOF
25515
25516   LIBS="-lpthread $LIBS"
25517
25518 fi
25519
25520   echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25521 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25522 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25523   echo $ECHO_N "(cached) $ECHO_C" >&6
25524 else
25525   ac_func_search_save_LIBS=$LIBS
25526 ac_cv_search_pthread_mutex_lock=no
25527 cat >conftest.$ac_ext <<_ACEOF
25528 /* confdefs.h.  */
25529 _ACEOF
25530 cat confdefs.h >>conftest.$ac_ext
25531 cat >>conftest.$ac_ext <<_ACEOF
25532 /* end confdefs.h.  */
25533
25534 /* Override any gcc2 internal prototype to avoid an error.  */
25535 #ifdef __cplusplus
25536 extern "C"
25537 #endif
25538 /* We use char because int might match the return type of a gcc2
25539    builtin and then its argument prototype would still apply.  */
25540 char pthread_mutex_lock ();
25541 int
25542 main ()
25543 {
25544 pthread_mutex_lock ();
25545   ;
25546   return 0;
25547 }
25548 _ACEOF
25549 rm -f conftest.$ac_objext conftest$ac_exeext
25550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25551   (eval $ac_link) 2>conftest.er1
25552   ac_status=$?
25553   grep -v '^ *+' conftest.er1 >conftest.err
25554   rm -f conftest.er1
25555   cat conftest.err >&5
25556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557   (exit $ac_status); } &&
25558          { ac_try='test -z "$ac_c_werror_flag"
25559                          || test ! -s conftest.err'
25560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25561   (eval $ac_try) 2>&5
25562   ac_status=$?
25563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25564   (exit $ac_status); }; } &&
25565          { ac_try='test -s conftest$ac_exeext'
25566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25567   (eval $ac_try) 2>&5
25568   ac_status=$?
25569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25570   (exit $ac_status); }; }; then
25571   ac_cv_search_pthread_mutex_lock="none required"
25572 else
25573   echo "$as_me: failed program was:" >&5
25574 sed 's/^/| /' conftest.$ac_ext >&5
25575
25576 fi
25577 rm -f conftest.err conftest.$ac_objext \
25578       conftest$ac_exeext conftest.$ac_ext
25579 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25580   for ac_lib in pthread; do
25581     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25582     cat >conftest.$ac_ext <<_ACEOF
25583 /* confdefs.h.  */
25584 _ACEOF
25585 cat confdefs.h >>conftest.$ac_ext
25586 cat >>conftest.$ac_ext <<_ACEOF
25587 /* end confdefs.h.  */
25588
25589 /* Override any gcc2 internal prototype to avoid an error.  */
25590 #ifdef __cplusplus
25591 extern "C"
25592 #endif
25593 /* We use char because int might match the return type of a gcc2
25594    builtin and then its argument prototype would still apply.  */
25595 char pthread_mutex_lock ();
25596 int
25597 main ()
25598 {
25599 pthread_mutex_lock ();
25600   ;
25601   return 0;
25602 }
25603 _ACEOF
25604 rm -f conftest.$ac_objext conftest$ac_exeext
25605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25606   (eval $ac_link) 2>conftest.er1
25607   ac_status=$?
25608   grep -v '^ *+' conftest.er1 >conftest.err
25609   rm -f conftest.er1
25610   cat conftest.err >&5
25611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612   (exit $ac_status); } &&
25613          { ac_try='test -z "$ac_c_werror_flag"
25614                          || test ! -s conftest.err'
25615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25616   (eval $ac_try) 2>&5
25617   ac_status=$?
25618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25619   (exit $ac_status); }; } &&
25620          { ac_try='test -s conftest$ac_exeext'
25621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25622   (eval $ac_try) 2>&5
25623   ac_status=$?
25624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625   (exit $ac_status); }; }; then
25626   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25627 break
25628 else
25629   echo "$as_me: failed program was:" >&5
25630 sed 's/^/| /' conftest.$ac_ext >&5
25631
25632 fi
25633 rm -f conftest.err conftest.$ac_objext \
25634       conftest$ac_exeext conftest.$ac_ext
25635   done
25636 fi
25637 LIBS=$ac_func_search_save_LIBS
25638 fi
25639 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25640 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25641 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25642   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25643
25644 cat >>confdefs.h <<\_ACEOF
25645 #define HAVE_PTHREAD_MUTEX_LOCK 1
25646 _ACEOF
25647
25648 fi
25649
25650 fi
25651
25652
25653
25654
25655
25656
25657
25658 ac_header_dirent=no
25659 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25660   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25661 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25662 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25664   echo $ECHO_N "(cached) $ECHO_C" >&6
25665 else
25666   cat >conftest.$ac_ext <<_ACEOF
25667 /* confdefs.h.  */
25668 _ACEOF
25669 cat confdefs.h >>conftest.$ac_ext
25670 cat >>conftest.$ac_ext <<_ACEOF
25671 /* end confdefs.h.  */
25672 #include <sys/types.h>
25673 #include <$ac_hdr>
25674
25675 int
25676 main ()
25677 {
25678 if ((DIR *) 0)
25679 return 0;
25680   ;
25681   return 0;
25682 }
25683 _ACEOF
25684 rm -f conftest.$ac_objext
25685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25686   (eval $ac_compile) 2>conftest.er1
25687   ac_status=$?
25688   grep -v '^ *+' conftest.er1 >conftest.err
25689   rm -f conftest.er1
25690   cat conftest.err >&5
25691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25692   (exit $ac_status); } &&
25693          { ac_try='test -z "$ac_c_werror_flag"
25694                          || test ! -s conftest.err'
25695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25696   (eval $ac_try) 2>&5
25697   ac_status=$?
25698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699   (exit $ac_status); }; } &&
25700          { ac_try='test -s conftest.$ac_objext'
25701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25702   (eval $ac_try) 2>&5
25703   ac_status=$?
25704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705   (exit $ac_status); }; }; then
25706   eval "$as_ac_Header=yes"
25707 else
25708   echo "$as_me: failed program was:" >&5
25709 sed 's/^/| /' conftest.$ac_ext >&5
25710
25711 eval "$as_ac_Header=no"
25712 fi
25713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25714 fi
25715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25718   cat >>confdefs.h <<_ACEOF
25719 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25720 _ACEOF
25721
25722 ac_header_dirent=$ac_hdr; break
25723 fi
25724
25725 done
25726 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25727 if test $ac_header_dirent = dirent.h; then
25728   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25729 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25730 if test "${ac_cv_search_opendir+set}" = set; then
25731   echo $ECHO_N "(cached) $ECHO_C" >&6
25732 else
25733   ac_func_search_save_LIBS=$LIBS
25734 ac_cv_search_opendir=no
25735 cat >conftest.$ac_ext <<_ACEOF
25736 /* confdefs.h.  */
25737 _ACEOF
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h.  */
25741
25742 /* Override any gcc2 internal prototype to avoid an error.  */
25743 #ifdef __cplusplus
25744 extern "C"
25745 #endif
25746 /* We use char because int might match the return type of a gcc2
25747    builtin and then its argument prototype would still apply.  */
25748 char opendir ();
25749 int
25750 main ()
25751 {
25752 opendir ();
25753   ;
25754   return 0;
25755 }
25756 _ACEOF
25757 rm -f conftest.$ac_objext conftest$ac_exeext
25758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25759   (eval $ac_link) 2>conftest.er1
25760   ac_status=$?
25761   grep -v '^ *+' conftest.er1 >conftest.err
25762   rm -f conftest.er1
25763   cat conftest.err >&5
25764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765   (exit $ac_status); } &&
25766          { ac_try='test -z "$ac_c_werror_flag"
25767                          || test ! -s conftest.err'
25768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25769   (eval $ac_try) 2>&5
25770   ac_status=$?
25771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25772   (exit $ac_status); }; } &&
25773          { ac_try='test -s conftest$ac_exeext'
25774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25775   (eval $ac_try) 2>&5
25776   ac_status=$?
25777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25778   (exit $ac_status); }; }; then
25779   ac_cv_search_opendir="none required"
25780 else
25781   echo "$as_me: failed program was:" >&5
25782 sed 's/^/| /' conftest.$ac_ext >&5
25783
25784 fi
25785 rm -f conftest.err conftest.$ac_objext \
25786       conftest$ac_exeext conftest.$ac_ext
25787 if test "$ac_cv_search_opendir" = no; then
25788   for ac_lib in dir; do
25789     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25790     cat >conftest.$ac_ext <<_ACEOF
25791 /* confdefs.h.  */
25792 _ACEOF
25793 cat confdefs.h >>conftest.$ac_ext
25794 cat >>conftest.$ac_ext <<_ACEOF
25795 /* end confdefs.h.  */
25796
25797 /* Override any gcc2 internal prototype to avoid an error.  */
25798 #ifdef __cplusplus
25799 extern "C"
25800 #endif
25801 /* We use char because int might match the return type of a gcc2
25802    builtin and then its argument prototype would still apply.  */
25803 char opendir ();
25804 int
25805 main ()
25806 {
25807 opendir ();
25808   ;
25809   return 0;
25810 }
25811 _ACEOF
25812 rm -f conftest.$ac_objext conftest$ac_exeext
25813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25814   (eval $ac_link) 2>conftest.er1
25815   ac_status=$?
25816   grep -v '^ *+' conftest.er1 >conftest.err
25817   rm -f conftest.er1
25818   cat conftest.err >&5
25819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25820   (exit $ac_status); } &&
25821          { ac_try='test -z "$ac_c_werror_flag"
25822                          || test ! -s conftest.err'
25823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25824   (eval $ac_try) 2>&5
25825   ac_status=$?
25826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25827   (exit $ac_status); }; } &&
25828          { ac_try='test -s conftest$ac_exeext'
25829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25830   (eval $ac_try) 2>&5
25831   ac_status=$?
25832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833   (exit $ac_status); }; }; then
25834   ac_cv_search_opendir="-l$ac_lib"
25835 break
25836 else
25837   echo "$as_me: failed program was:" >&5
25838 sed 's/^/| /' conftest.$ac_ext >&5
25839
25840 fi
25841 rm -f conftest.err conftest.$ac_objext \
25842       conftest$ac_exeext conftest.$ac_ext
25843   done
25844 fi
25845 LIBS=$ac_func_search_save_LIBS
25846 fi
25847 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25848 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25849 if test "$ac_cv_search_opendir" != no; then
25850   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25851
25852 fi
25853
25854 else
25855   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25856 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25857 if test "${ac_cv_search_opendir+set}" = set; then
25858   echo $ECHO_N "(cached) $ECHO_C" >&6
25859 else
25860   ac_func_search_save_LIBS=$LIBS
25861 ac_cv_search_opendir=no
25862 cat >conftest.$ac_ext <<_ACEOF
25863 /* confdefs.h.  */
25864 _ACEOF
25865 cat confdefs.h >>conftest.$ac_ext
25866 cat >>conftest.$ac_ext <<_ACEOF
25867 /* end confdefs.h.  */
25868
25869 /* Override any gcc2 internal prototype to avoid an error.  */
25870 #ifdef __cplusplus
25871 extern "C"
25872 #endif
25873 /* We use char because int might match the return type of a gcc2
25874    builtin and then its argument prototype would still apply.  */
25875 char opendir ();
25876 int
25877 main ()
25878 {
25879 opendir ();
25880   ;
25881   return 0;
25882 }
25883 _ACEOF
25884 rm -f conftest.$ac_objext conftest$ac_exeext
25885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25886   (eval $ac_link) 2>conftest.er1
25887   ac_status=$?
25888   grep -v '^ *+' conftest.er1 >conftest.err
25889   rm -f conftest.er1
25890   cat conftest.err >&5
25891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25892   (exit $ac_status); } &&
25893          { ac_try='test -z "$ac_c_werror_flag"
25894                          || test ! -s conftest.err'
25895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25896   (eval $ac_try) 2>&5
25897   ac_status=$?
25898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899   (exit $ac_status); }; } &&
25900          { ac_try='test -s conftest$ac_exeext'
25901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25902   (eval $ac_try) 2>&5
25903   ac_status=$?
25904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905   (exit $ac_status); }; }; then
25906   ac_cv_search_opendir="none required"
25907 else
25908   echo "$as_me: failed program was:" >&5
25909 sed 's/^/| /' conftest.$ac_ext >&5
25910
25911 fi
25912 rm -f conftest.err conftest.$ac_objext \
25913       conftest$ac_exeext conftest.$ac_ext
25914 if test "$ac_cv_search_opendir" = no; then
25915   for ac_lib in x; do
25916     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25917     cat >conftest.$ac_ext <<_ACEOF
25918 /* confdefs.h.  */
25919 _ACEOF
25920 cat confdefs.h >>conftest.$ac_ext
25921 cat >>conftest.$ac_ext <<_ACEOF
25922 /* end confdefs.h.  */
25923
25924 /* Override any gcc2 internal prototype to avoid an error.  */
25925 #ifdef __cplusplus
25926 extern "C"
25927 #endif
25928 /* We use char because int might match the return type of a gcc2
25929    builtin and then its argument prototype would still apply.  */
25930 char opendir ();
25931 int
25932 main ()
25933 {
25934 opendir ();
25935   ;
25936   return 0;
25937 }
25938 _ACEOF
25939 rm -f conftest.$ac_objext conftest$ac_exeext
25940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25941   (eval $ac_link) 2>conftest.er1
25942   ac_status=$?
25943   grep -v '^ *+' conftest.er1 >conftest.err
25944   rm -f conftest.er1
25945   cat conftest.err >&5
25946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947   (exit $ac_status); } &&
25948          { ac_try='test -z "$ac_c_werror_flag"
25949                          || test ! -s conftest.err'
25950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25951   (eval $ac_try) 2>&5
25952   ac_status=$?
25953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954   (exit $ac_status); }; } &&
25955          { ac_try='test -s conftest$ac_exeext'
25956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25957   (eval $ac_try) 2>&5
25958   ac_status=$?
25959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960   (exit $ac_status); }; }; then
25961   ac_cv_search_opendir="-l$ac_lib"
25962 break
25963 else
25964   echo "$as_me: failed program was:" >&5
25965 sed 's/^/| /' conftest.$ac_ext >&5
25966
25967 fi
25968 rm -f conftest.err conftest.$ac_objext \
25969       conftest$ac_exeext conftest.$ac_ext
25970   done
25971 fi
25972 LIBS=$ac_func_search_save_LIBS
25973 fi
25974 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25975 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25976 if test "$ac_cv_search_opendir" != no; then
25977   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25978
25979 fi
25980
25981 fi
25982
25983 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25984 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25985 if test "${ac_cv_header_mmap_anon+set}" = set; then
25986   echo $ECHO_N "(cached) $ECHO_C" >&6
25987 else
25988    ac_ext=c
25989 ac_cpp='$CPP $CPPFLAGS'
25990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25993
25994   cat >conftest.$ac_ext <<_ACEOF
25995 /* confdefs.h.  */
25996 _ACEOF
25997 cat confdefs.h >>conftest.$ac_ext
25998 cat >>conftest.$ac_ext <<_ACEOF
25999 /* end confdefs.h.  */
26000 #include <sys/mman.h>
26001 #include <unistd.h>
26002 #include <fcntl.h>
26003 int
26004 main ()
26005 {
26006 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26007   ;
26008   return 0;
26009 }
26010 _ACEOF
26011 rm -f conftest.$ac_objext
26012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26013   (eval $ac_compile) 2>conftest.er1
26014   ac_status=$?
26015   grep -v '^ *+' conftest.er1 >conftest.err
26016   rm -f conftest.er1
26017   cat conftest.err >&5
26018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019   (exit $ac_status); } &&
26020          { ac_try='test -z "$ac_c_werror_flag"
26021                          || test ! -s conftest.err'
26022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26023   (eval $ac_try) 2>&5
26024   ac_status=$?
26025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026   (exit $ac_status); }; } &&
26027          { ac_try='test -s conftest.$ac_objext'
26028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26029   (eval $ac_try) 2>&5
26030   ac_status=$?
26031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032   (exit $ac_status); }; }; then
26033   ac_cv_header_mmap_anon=yes
26034 else
26035   echo "$as_me: failed program was:" >&5
26036 sed 's/^/| /' conftest.$ac_ext >&5
26037
26038 ac_cv_header_mmap_anon=no
26039 fi
26040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26041   ac_ext=c
26042 ac_cpp='$CPP $CPPFLAGS'
26043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26046
26047
26048 fi
26049 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26050 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26051 if test "$ac_cv_header_mmap_anon" = yes; then
26052
26053 cat >>confdefs.h <<\_ACEOF
26054 #define HAVE_MMAP_ANONYMOUS 1
26055 _ACEOF
26056
26057 fi
26058
26059 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26060 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26061 if test "${ac_cv_header_stat_broken+set}" = set; then
26062   echo $ECHO_N "(cached) $ECHO_C" >&6
26063 else
26064   cat >conftest.$ac_ext <<_ACEOF
26065 /* confdefs.h.  */
26066 _ACEOF
26067 cat confdefs.h >>conftest.$ac_ext
26068 cat >>conftest.$ac_ext <<_ACEOF
26069 /* end confdefs.h.  */
26070 #include <sys/types.h>
26071 #include <sys/stat.h>
26072
26073 #if defined(S_ISBLK) && defined(S_IFDIR)
26074 # if S_ISBLK (S_IFDIR)
26075 You lose.
26076 # endif
26077 #endif
26078
26079 #if defined(S_ISBLK) && defined(S_IFCHR)
26080 # if S_ISBLK (S_IFCHR)
26081 You lose.
26082 # endif
26083 #endif
26084
26085 #if defined(S_ISLNK) && defined(S_IFREG)
26086 # if S_ISLNK (S_IFREG)
26087 You lose.
26088 # endif
26089 #endif
26090
26091 #if defined(S_ISSOCK) && defined(S_IFREG)
26092 # if S_ISSOCK (S_IFREG)
26093 You lose.
26094 # endif
26095 #endif
26096
26097 _ACEOF
26098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26099   $EGREP "You lose" >/dev/null 2>&1; then
26100   ac_cv_header_stat_broken=yes
26101 else
26102   ac_cv_header_stat_broken=no
26103 fi
26104 rm -f conftest*
26105
26106 fi
26107 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26108 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26109 if test $ac_cv_header_stat_broken = yes; then
26110
26111 cat >>confdefs.h <<\_ACEOF
26112 #define STAT_MACROS_BROKEN 1
26113 _ACEOF
26114
26115 fi
26116
26117 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26118 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26119 if test "${ac_cv_header_stdc+set}" = set; then
26120   echo $ECHO_N "(cached) $ECHO_C" >&6
26121 else
26122   cat >conftest.$ac_ext <<_ACEOF
26123 /* confdefs.h.  */
26124 _ACEOF
26125 cat confdefs.h >>conftest.$ac_ext
26126 cat >>conftest.$ac_ext <<_ACEOF
26127 /* end confdefs.h.  */
26128 #include <stdlib.h>
26129 #include <stdarg.h>
26130 #include <string.h>
26131 #include <float.h>
26132
26133 int
26134 main ()
26135 {
26136
26137   ;
26138   return 0;
26139 }
26140 _ACEOF
26141 rm -f conftest.$ac_objext
26142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26143   (eval $ac_compile) 2>conftest.er1
26144   ac_status=$?
26145   grep -v '^ *+' conftest.er1 >conftest.err
26146   rm -f conftest.er1
26147   cat conftest.err >&5
26148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149   (exit $ac_status); } &&
26150          { ac_try='test -z "$ac_c_werror_flag"
26151                          || test ! -s conftest.err'
26152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26153   (eval $ac_try) 2>&5
26154   ac_status=$?
26155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26156   (exit $ac_status); }; } &&
26157          { ac_try='test -s conftest.$ac_objext'
26158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26159   (eval $ac_try) 2>&5
26160   ac_status=$?
26161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162   (exit $ac_status); }; }; then
26163   ac_cv_header_stdc=yes
26164 else
26165   echo "$as_me: failed program was:" >&5
26166 sed 's/^/| /' conftest.$ac_ext >&5
26167
26168 ac_cv_header_stdc=no
26169 fi
26170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26171
26172 if test $ac_cv_header_stdc = yes; then
26173   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26174   cat >conftest.$ac_ext <<_ACEOF
26175 /* confdefs.h.  */
26176 _ACEOF
26177 cat confdefs.h >>conftest.$ac_ext
26178 cat >>conftest.$ac_ext <<_ACEOF
26179 /* end confdefs.h.  */
26180 #include <string.h>
26181
26182 _ACEOF
26183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26184   $EGREP "memchr" >/dev/null 2>&1; then
26185   :
26186 else
26187   ac_cv_header_stdc=no
26188 fi
26189 rm -f conftest*
26190
26191 fi
26192
26193 if test $ac_cv_header_stdc = yes; then
26194   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26195   cat >conftest.$ac_ext <<_ACEOF
26196 /* confdefs.h.  */
26197 _ACEOF
26198 cat confdefs.h >>conftest.$ac_ext
26199 cat >>conftest.$ac_ext <<_ACEOF
26200 /* end confdefs.h.  */
26201 #include <stdlib.h>
26202
26203 _ACEOF
26204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26205   $EGREP "free" >/dev/null 2>&1; then
26206   :
26207 else
26208   ac_cv_header_stdc=no
26209 fi
26210 rm -f conftest*
26211
26212 fi
26213
26214 if test $ac_cv_header_stdc = yes; then
26215   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26216   if test "$cross_compiling" = yes; then
26217   :
26218 else
26219   cat >conftest.$ac_ext <<_ACEOF
26220 /* confdefs.h.  */
26221 _ACEOF
26222 cat confdefs.h >>conftest.$ac_ext
26223 cat >>conftest.$ac_ext <<_ACEOF
26224 /* end confdefs.h.  */
26225 #include <ctype.h>
26226 #if ((' ' & 0x0FF) == 0x020)
26227 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26228 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26229 #else
26230 # define ISLOWER(c) \
26231                    (('a' <= (c) && (c) <= 'i') \
26232                      || ('j' <= (c) && (c) <= 'r') \
26233                      || ('s' <= (c) && (c) <= 'z'))
26234 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26235 #endif
26236
26237 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26238 int
26239 main ()
26240 {
26241   int i;
26242   for (i = 0; i < 256; i++)
26243     if (XOR (islower (i), ISLOWER (i))
26244         || toupper (i) != TOUPPER (i))
26245       exit(2);
26246   exit (0);
26247 }
26248 _ACEOF
26249 rm -f conftest$ac_exeext
26250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26251   (eval $ac_link) 2>&5
26252   ac_status=$?
26253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26256   (eval $ac_try) 2>&5
26257   ac_status=$?
26258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259   (exit $ac_status); }; }; then
26260   :
26261 else
26262   echo "$as_me: program exited with status $ac_status" >&5
26263 echo "$as_me: failed program was:" >&5
26264 sed 's/^/| /' conftest.$ac_ext >&5
26265
26266 ( exit $ac_status )
26267 ac_cv_header_stdc=no
26268 fi
26269 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26270 fi
26271 fi
26272 fi
26273 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26274 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26275 if test $ac_cv_header_stdc = yes; then
26276
26277 cat >>confdefs.h <<\_ACEOF
26278 #define STDC_HEADERS 1
26279 _ACEOF
26280
26281 fi
26282
26283 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26284 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26285 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26286   echo $ECHO_N "(cached) $ECHO_C" >&6
26287 else
26288   cat >conftest.$ac_ext <<_ACEOF
26289 /* confdefs.h.  */
26290 _ACEOF
26291 cat confdefs.h >>conftest.$ac_ext
26292 cat >>conftest.$ac_ext <<_ACEOF
26293 /* end confdefs.h.  */
26294 #include <sys/types.h>
26295 #include <sys/wait.h>
26296 #ifndef WEXITSTATUS
26297 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26298 #endif
26299 #ifndef WIFEXITED
26300 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26301 #endif
26302
26303 int
26304 main ()
26305 {
26306   int s;
26307   wait (&s);
26308   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26309   ;
26310   return 0;
26311 }
26312 _ACEOF
26313 rm -f conftest.$ac_objext
26314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26315   (eval $ac_compile) 2>conftest.er1
26316   ac_status=$?
26317   grep -v '^ *+' conftest.er1 >conftest.err
26318   rm -f conftest.er1
26319   cat conftest.err >&5
26320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321   (exit $ac_status); } &&
26322          { ac_try='test -z "$ac_c_werror_flag"
26323                          || test ! -s conftest.err'
26324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325   (eval $ac_try) 2>&5
26326   ac_status=$?
26327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328   (exit $ac_status); }; } &&
26329          { ac_try='test -s conftest.$ac_objext'
26330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26331   (eval $ac_try) 2>&5
26332   ac_status=$?
26333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334   (exit $ac_status); }; }; then
26335   ac_cv_header_sys_wait_h=yes
26336 else
26337   echo "$as_me: failed program was:" >&5
26338 sed 's/^/| /' conftest.$ac_ext >&5
26339
26340 ac_cv_header_sys_wait_h=no
26341 fi
26342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26343 fi
26344 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26345 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26346 if test $ac_cv_header_sys_wait_h = yes; then
26347
26348 cat >>confdefs.h <<\_ACEOF
26349 #define HAVE_SYS_WAIT_H 1
26350 _ACEOF
26351
26352 fi
26353
26354 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26355 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26356 if test "${ac_cv_header_time+set}" = set; then
26357   echo $ECHO_N "(cached) $ECHO_C" >&6
26358 else
26359   cat >conftest.$ac_ext <<_ACEOF
26360 /* confdefs.h.  */
26361 _ACEOF
26362 cat confdefs.h >>conftest.$ac_ext
26363 cat >>conftest.$ac_ext <<_ACEOF
26364 /* end confdefs.h.  */
26365 #include <sys/types.h>
26366 #include <sys/time.h>
26367 #include <time.h>
26368
26369 int
26370 main ()
26371 {
26372 if ((struct tm *) 0)
26373 return 0;
26374   ;
26375   return 0;
26376 }
26377 _ACEOF
26378 rm -f conftest.$ac_objext
26379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26380   (eval $ac_compile) 2>conftest.er1
26381   ac_status=$?
26382   grep -v '^ *+' conftest.er1 >conftest.err
26383   rm -f conftest.er1
26384   cat conftest.err >&5
26385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26386   (exit $ac_status); } &&
26387          { ac_try='test -z "$ac_c_werror_flag"
26388                          || test ! -s conftest.err'
26389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26390   (eval $ac_try) 2>&5
26391   ac_status=$?
26392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393   (exit $ac_status); }; } &&
26394          { ac_try='test -s conftest.$ac_objext'
26395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26396   (eval $ac_try) 2>&5
26397   ac_status=$?
26398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399   (exit $ac_status); }; }; then
26400   ac_cv_header_time=yes
26401 else
26402   echo "$as_me: failed program was:" >&5
26403 sed 's/^/| /' conftest.$ac_ext >&5
26404
26405 ac_cv_header_time=no
26406 fi
26407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26408 fi
26409 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26410 echo "${ECHO_T}$ac_cv_header_time" >&6
26411 if test $ac_cv_header_time = yes; then
26412
26413 cat >>confdefs.h <<\_ACEOF
26414 #define TIME_WITH_SYS_TIME 1
26415 _ACEOF
26416
26417 fi
26418
26419
26420
26421
26422
26423
26424
26425
26426 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26427 do
26428 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26430   echo "$as_me:$LINENO: checking for $ac_header" >&5
26431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26433   echo $ECHO_N "(cached) $ECHO_C" >&6
26434 fi
26435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26437 else
26438   # Is the header compilable?
26439 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
26448 #include <$ac_header>
26449 _ACEOF
26450 rm -f conftest.$ac_objext
26451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26452   (eval $ac_compile) 2>conftest.er1
26453   ac_status=$?
26454   grep -v '^ *+' conftest.er1 >conftest.err
26455   rm -f conftest.er1
26456   cat conftest.err >&5
26457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458   (exit $ac_status); } &&
26459          { ac_try='test -z "$ac_c_werror_flag"
26460                          || test ! -s conftest.err'
26461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26462   (eval $ac_try) 2>&5
26463   ac_status=$?
26464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465   (exit $ac_status); }; } &&
26466          { ac_try='test -s conftest.$ac_objext'
26467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26468   (eval $ac_try) 2>&5
26469   ac_status=$?
26470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471   (exit $ac_status); }; }; then
26472   ac_header_compiler=yes
26473 else
26474   echo "$as_me: failed program was:" >&5
26475 sed 's/^/| /' conftest.$ac_ext >&5
26476
26477 ac_header_compiler=no
26478 fi
26479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26480 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26481 echo "${ECHO_T}$ac_header_compiler" >&6
26482
26483 # Is the header present?
26484 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26486 cat >conftest.$ac_ext <<_ACEOF
26487 /* confdefs.h.  */
26488 _ACEOF
26489 cat confdefs.h >>conftest.$ac_ext
26490 cat >>conftest.$ac_ext <<_ACEOF
26491 /* end confdefs.h.  */
26492 #include <$ac_header>
26493 _ACEOF
26494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26495   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26496   ac_status=$?
26497   grep -v '^ *+' conftest.er1 >conftest.err
26498   rm -f conftest.er1
26499   cat conftest.err >&5
26500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501   (exit $ac_status); } >/dev/null; then
26502   if test -s conftest.err; then
26503     ac_cpp_err=$ac_c_preproc_warn_flag
26504     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26505   else
26506     ac_cpp_err=
26507   fi
26508 else
26509   ac_cpp_err=yes
26510 fi
26511 if test -z "$ac_cpp_err"; then
26512   ac_header_preproc=yes
26513 else
26514   echo "$as_me: failed program was:" >&5
26515 sed 's/^/| /' conftest.$ac_ext >&5
26516
26517   ac_header_preproc=no
26518 fi
26519 rm -f conftest.err conftest.$ac_ext
26520 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26521 echo "${ECHO_T}$ac_header_preproc" >&6
26522
26523 # So?  What about this header?
26524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26525   yes:no: )
26526     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26527 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26528     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26529 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26530     ac_header_preproc=yes
26531     ;;
26532   no:yes:* )
26533     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26535     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26536 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26537     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26538 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26539     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26540 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26543     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26544 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26545     (
26546       cat <<\_ASBOX
26547 ## ----------------------------------- ##
26548 ## Report this to llvmbugs@cs.uiuc.edu ##
26549 ## ----------------------------------- ##
26550 _ASBOX
26551     ) |
26552       sed "s/^/$as_me: WARNING:     /" >&2
26553     ;;
26554 esac
26555 echo "$as_me:$LINENO: checking for $ac_header" >&5
26556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26558   echo $ECHO_N "(cached) $ECHO_C" >&6
26559 else
26560   eval "$as_ac_Header=\$ac_header_preproc"
26561 fi
26562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26564
26565 fi
26566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26567   cat >>confdefs.h <<_ACEOF
26568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26569 _ACEOF
26570
26571 fi
26572
26573 done
26574
26575
26576
26577
26578
26579
26580
26581 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26582 do
26583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26585   echo "$as_me:$LINENO: checking for $ac_header" >&5
26586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26588   echo $ECHO_N "(cached) $ECHO_C" >&6
26589 fi
26590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26592 else
26593   # Is the header compilable?
26594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26596 cat >conftest.$ac_ext <<_ACEOF
26597 /* confdefs.h.  */
26598 _ACEOF
26599 cat confdefs.h >>conftest.$ac_ext
26600 cat >>conftest.$ac_ext <<_ACEOF
26601 /* end confdefs.h.  */
26602 $ac_includes_default
26603 #include <$ac_header>
26604 _ACEOF
26605 rm -f conftest.$ac_objext
26606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26607   (eval $ac_compile) 2>conftest.er1
26608   ac_status=$?
26609   grep -v '^ *+' conftest.er1 >conftest.err
26610   rm -f conftest.er1
26611   cat conftest.err >&5
26612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613   (exit $ac_status); } &&
26614          { ac_try='test -z "$ac_c_werror_flag"
26615                          || test ! -s conftest.err'
26616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26617   (eval $ac_try) 2>&5
26618   ac_status=$?
26619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620   (exit $ac_status); }; } &&
26621          { ac_try='test -s conftest.$ac_objext'
26622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26623   (eval $ac_try) 2>&5
26624   ac_status=$?
26625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626   (exit $ac_status); }; }; then
26627   ac_header_compiler=yes
26628 else
26629   echo "$as_me: failed program was:" >&5
26630 sed 's/^/| /' conftest.$ac_ext >&5
26631
26632 ac_header_compiler=no
26633 fi
26634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26635 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26636 echo "${ECHO_T}$ac_header_compiler" >&6
26637
26638 # Is the header present?
26639 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26641 cat >conftest.$ac_ext <<_ACEOF
26642 /* confdefs.h.  */
26643 _ACEOF
26644 cat confdefs.h >>conftest.$ac_ext
26645 cat >>conftest.$ac_ext <<_ACEOF
26646 /* end confdefs.h.  */
26647 #include <$ac_header>
26648 _ACEOF
26649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26650   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26651   ac_status=$?
26652   grep -v '^ *+' conftest.er1 >conftest.err
26653   rm -f conftest.er1
26654   cat conftest.err >&5
26655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656   (exit $ac_status); } >/dev/null; then
26657   if test -s conftest.err; then
26658     ac_cpp_err=$ac_c_preproc_warn_flag
26659     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26660   else
26661     ac_cpp_err=
26662   fi
26663 else
26664   ac_cpp_err=yes
26665 fi
26666 if test -z "$ac_cpp_err"; then
26667   ac_header_preproc=yes
26668 else
26669   echo "$as_me: failed program was:" >&5
26670 sed 's/^/| /' conftest.$ac_ext >&5
26671
26672   ac_header_preproc=no
26673 fi
26674 rm -f conftest.err conftest.$ac_ext
26675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26676 echo "${ECHO_T}$ac_header_preproc" >&6
26677
26678 # So?  What about this header?
26679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26680   yes:no: )
26681     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26683     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26685     ac_header_preproc=yes
26686     ;;
26687   no:yes:* )
26688     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26690     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26691 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26692     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26694     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26695 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26696     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26698     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26700     (
26701       cat <<\_ASBOX
26702 ## ----------------------------------- ##
26703 ## Report this to llvmbugs@cs.uiuc.edu ##
26704 ## ----------------------------------- ##
26705 _ASBOX
26706     ) |
26707       sed "s/^/$as_me: WARNING:     /" >&2
26708     ;;
26709 esac
26710 echo "$as_me:$LINENO: checking for $ac_header" >&5
26711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26713   echo $ECHO_N "(cached) $ECHO_C" >&6
26714 else
26715   eval "$as_ac_Header=\$ac_header_preproc"
26716 fi
26717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26719
26720 fi
26721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26722   cat >>confdefs.h <<_ACEOF
26723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26724 _ACEOF
26725
26726 fi
26727
26728 done
26729
26730
26731
26732
26733
26734
26735 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26736 do
26737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26739   echo "$as_me:$LINENO: checking for $ac_header" >&5
26740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26742   echo $ECHO_N "(cached) $ECHO_C" >&6
26743 fi
26744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26746 else
26747   # Is the header compilable?
26748 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26750 cat >conftest.$ac_ext <<_ACEOF
26751 /* confdefs.h.  */
26752 _ACEOF
26753 cat confdefs.h >>conftest.$ac_ext
26754 cat >>conftest.$ac_ext <<_ACEOF
26755 /* end confdefs.h.  */
26756 $ac_includes_default
26757 #include <$ac_header>
26758 _ACEOF
26759 rm -f conftest.$ac_objext
26760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26761   (eval $ac_compile) 2>conftest.er1
26762   ac_status=$?
26763   grep -v '^ *+' conftest.er1 >conftest.err
26764   rm -f conftest.er1
26765   cat conftest.err >&5
26766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767   (exit $ac_status); } &&
26768          { ac_try='test -z "$ac_c_werror_flag"
26769                          || test ! -s conftest.err'
26770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26771   (eval $ac_try) 2>&5
26772   ac_status=$?
26773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26774   (exit $ac_status); }; } &&
26775          { ac_try='test -s conftest.$ac_objext'
26776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26777   (eval $ac_try) 2>&5
26778   ac_status=$?
26779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780   (exit $ac_status); }; }; then
26781   ac_header_compiler=yes
26782 else
26783   echo "$as_me: failed program was:" >&5
26784 sed 's/^/| /' conftest.$ac_ext >&5
26785
26786 ac_header_compiler=no
26787 fi
26788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26790 echo "${ECHO_T}$ac_header_compiler" >&6
26791
26792 # Is the header present?
26793 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26795 cat >conftest.$ac_ext <<_ACEOF
26796 /* confdefs.h.  */
26797 _ACEOF
26798 cat confdefs.h >>conftest.$ac_ext
26799 cat >>conftest.$ac_ext <<_ACEOF
26800 /* end confdefs.h.  */
26801 #include <$ac_header>
26802 _ACEOF
26803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26804   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26805   ac_status=$?
26806   grep -v '^ *+' conftest.er1 >conftest.err
26807   rm -f conftest.er1
26808   cat conftest.err >&5
26809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810   (exit $ac_status); } >/dev/null; then
26811   if test -s conftest.err; then
26812     ac_cpp_err=$ac_c_preproc_warn_flag
26813     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26814   else
26815     ac_cpp_err=
26816   fi
26817 else
26818   ac_cpp_err=yes
26819 fi
26820 if test -z "$ac_cpp_err"; then
26821   ac_header_preproc=yes
26822 else
26823   echo "$as_me: failed program was:" >&5
26824 sed 's/^/| /' conftest.$ac_ext >&5
26825
26826   ac_header_preproc=no
26827 fi
26828 rm -f conftest.err conftest.$ac_ext
26829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26830 echo "${ECHO_T}$ac_header_preproc" >&6
26831
26832 # So?  What about this header?
26833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26834   yes:no: )
26835     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26839     ac_header_preproc=yes
26840     ;;
26841   no:yes:* )
26842     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26844     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26845 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26846     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26848     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26849 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26852     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26854     (
26855       cat <<\_ASBOX
26856 ## ----------------------------------- ##
26857 ## Report this to llvmbugs@cs.uiuc.edu ##
26858 ## ----------------------------------- ##
26859 _ASBOX
26860     ) |
26861       sed "s/^/$as_me: WARNING:     /" >&2
26862     ;;
26863 esac
26864 echo "$as_me:$LINENO: checking for $ac_header" >&5
26865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26867   echo $ECHO_N "(cached) $ECHO_C" >&6
26868 else
26869   eval "$as_ac_Header=\$ac_header_preproc"
26870 fi
26871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26873
26874 fi
26875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26876   cat >>confdefs.h <<_ACEOF
26877 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26878 _ACEOF
26879
26880 fi
26881
26882 done
26883
26884
26885 for ac_header in malloc/malloc.h
26886 do
26887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26889   echo "$as_me:$LINENO: checking for $ac_header" >&5
26890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26892   echo $ECHO_N "(cached) $ECHO_C" >&6
26893 fi
26894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26896 else
26897   # Is the header compilable?
26898 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26900 cat >conftest.$ac_ext <<_ACEOF
26901 /* confdefs.h.  */
26902 _ACEOF
26903 cat confdefs.h >>conftest.$ac_ext
26904 cat >>conftest.$ac_ext <<_ACEOF
26905 /* end confdefs.h.  */
26906 $ac_includes_default
26907 #include <$ac_header>
26908 _ACEOF
26909 rm -f conftest.$ac_objext
26910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26911   (eval $ac_compile) 2>conftest.er1
26912   ac_status=$?
26913   grep -v '^ *+' conftest.er1 >conftest.err
26914   rm -f conftest.er1
26915   cat conftest.err >&5
26916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917   (exit $ac_status); } &&
26918          { ac_try='test -z "$ac_c_werror_flag"
26919                          || test ! -s conftest.err'
26920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26921   (eval $ac_try) 2>&5
26922   ac_status=$?
26923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924   (exit $ac_status); }; } &&
26925          { ac_try='test -s conftest.$ac_objext'
26926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26927   (eval $ac_try) 2>&5
26928   ac_status=$?
26929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26930   (exit $ac_status); }; }; then
26931   ac_header_compiler=yes
26932 else
26933   echo "$as_me: failed program was:" >&5
26934 sed 's/^/| /' conftest.$ac_ext >&5
26935
26936 ac_header_compiler=no
26937 fi
26938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26940 echo "${ECHO_T}$ac_header_compiler" >&6
26941
26942 # Is the header present?
26943 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26945 cat >conftest.$ac_ext <<_ACEOF
26946 /* confdefs.h.  */
26947 _ACEOF
26948 cat confdefs.h >>conftest.$ac_ext
26949 cat >>conftest.$ac_ext <<_ACEOF
26950 /* end confdefs.h.  */
26951 #include <$ac_header>
26952 _ACEOF
26953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26954   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26955   ac_status=$?
26956   grep -v '^ *+' conftest.er1 >conftest.err
26957   rm -f conftest.er1
26958   cat conftest.err >&5
26959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960   (exit $ac_status); } >/dev/null; then
26961   if test -s conftest.err; then
26962     ac_cpp_err=$ac_c_preproc_warn_flag
26963     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26964   else
26965     ac_cpp_err=
26966   fi
26967 else
26968   ac_cpp_err=yes
26969 fi
26970 if test -z "$ac_cpp_err"; then
26971   ac_header_preproc=yes
26972 else
26973   echo "$as_me: failed program was:" >&5
26974 sed 's/^/| /' conftest.$ac_ext >&5
26975
26976   ac_header_preproc=no
26977 fi
26978 rm -f conftest.err conftest.$ac_ext
26979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26980 echo "${ECHO_T}$ac_header_preproc" >&6
26981
26982 # So?  What about this header?
26983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26984   yes:no: )
26985     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26987     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26989     ac_header_preproc=yes
26990     ;;
26991   no:yes:* )
26992     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26994     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26995 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26996     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26998     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26999 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27002     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27004     (
27005       cat <<\_ASBOX
27006 ## ----------------------------------- ##
27007 ## Report this to llvmbugs@cs.uiuc.edu ##
27008 ## ----------------------------------- ##
27009 _ASBOX
27010     ) |
27011       sed "s/^/$as_me: WARNING:     /" >&2
27012     ;;
27013 esac
27014 echo "$as_me:$LINENO: checking for $ac_header" >&5
27015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27017   echo $ECHO_N "(cached) $ECHO_C" >&6
27018 else
27019   eval "$as_ac_Header=\$ac_header_preproc"
27020 fi
27021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27023
27024 fi
27025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27026   cat >>confdefs.h <<_ACEOF
27027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27028 _ACEOF
27029
27030 fi
27031
27032 done
27033
27034 if test "$ENABLE_THREADS" -eq 1 ; then
27035
27036 for ac_header in pthread.h
27037 do
27038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27040   echo "$as_me:$LINENO: checking for $ac_header" >&5
27041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27043   echo $ECHO_N "(cached) $ECHO_C" >&6
27044 fi
27045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27047 else
27048   # Is the header compilable?
27049 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27051 cat >conftest.$ac_ext <<_ACEOF
27052 /* confdefs.h.  */
27053 _ACEOF
27054 cat confdefs.h >>conftest.$ac_ext
27055 cat >>conftest.$ac_ext <<_ACEOF
27056 /* end confdefs.h.  */
27057 $ac_includes_default
27058 #include <$ac_header>
27059 _ACEOF
27060 rm -f conftest.$ac_objext
27061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27062   (eval $ac_compile) 2>conftest.er1
27063   ac_status=$?
27064   grep -v '^ *+' conftest.er1 >conftest.err
27065   rm -f conftest.er1
27066   cat conftest.err >&5
27067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068   (exit $ac_status); } &&
27069          { ac_try='test -z "$ac_c_werror_flag"
27070                          || test ! -s conftest.err'
27071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27072   (eval $ac_try) 2>&5
27073   ac_status=$?
27074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075   (exit $ac_status); }; } &&
27076          { ac_try='test -s conftest.$ac_objext'
27077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27078   (eval $ac_try) 2>&5
27079   ac_status=$?
27080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081   (exit $ac_status); }; }; then
27082   ac_header_compiler=yes
27083 else
27084   echo "$as_me: failed program was:" >&5
27085 sed 's/^/| /' conftest.$ac_ext >&5
27086
27087 ac_header_compiler=no
27088 fi
27089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27091 echo "${ECHO_T}$ac_header_compiler" >&6
27092
27093 # Is the header present?
27094 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27096 cat >conftest.$ac_ext <<_ACEOF
27097 /* confdefs.h.  */
27098 _ACEOF
27099 cat confdefs.h >>conftest.$ac_ext
27100 cat >>conftest.$ac_ext <<_ACEOF
27101 /* end confdefs.h.  */
27102 #include <$ac_header>
27103 _ACEOF
27104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27105   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27106   ac_status=$?
27107   grep -v '^ *+' conftest.er1 >conftest.err
27108   rm -f conftest.er1
27109   cat conftest.err >&5
27110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27111   (exit $ac_status); } >/dev/null; then
27112   if test -s conftest.err; then
27113     ac_cpp_err=$ac_c_preproc_warn_flag
27114     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27115   else
27116     ac_cpp_err=
27117   fi
27118 else
27119   ac_cpp_err=yes
27120 fi
27121 if test -z "$ac_cpp_err"; then
27122   ac_header_preproc=yes
27123 else
27124   echo "$as_me: failed program was:" >&5
27125 sed 's/^/| /' conftest.$ac_ext >&5
27126
27127   ac_header_preproc=no
27128 fi
27129 rm -f conftest.err conftest.$ac_ext
27130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27131 echo "${ECHO_T}$ac_header_preproc" >&6
27132
27133 # So?  What about this header?
27134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27135   yes:no: )
27136     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27138     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27140     ac_header_preproc=yes
27141     ;;
27142   no:yes:* )
27143     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27145     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27146 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27147     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27149     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27150 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27151     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27153     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27155     (
27156       cat <<\_ASBOX
27157 ## ----------------------------------- ##
27158 ## Report this to llvmbugs@cs.uiuc.edu ##
27159 ## ----------------------------------- ##
27160 _ASBOX
27161     ) |
27162       sed "s/^/$as_me: WARNING:     /" >&2
27163     ;;
27164 esac
27165 echo "$as_me:$LINENO: checking for $ac_header" >&5
27166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27168   echo $ECHO_N "(cached) $ECHO_C" >&6
27169 else
27170   eval "$as_ac_Header=\$ac_header_preproc"
27171 fi
27172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27174
27175 fi
27176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27177   cat >>confdefs.h <<_ACEOF
27178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27179 _ACEOF
27180
27181 fi
27182
27183 done
27184
27185 fi
27186
27187
27188 echo "$as_me:$LINENO: checking for pid_t" >&5
27189 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27190 if test "${ac_cv_type_pid_t+set}" = set; then
27191   echo $ECHO_N "(cached) $ECHO_C" >&6
27192 else
27193   cat >conftest.$ac_ext <<_ACEOF
27194 /* confdefs.h.  */
27195 _ACEOF
27196 cat confdefs.h >>conftest.$ac_ext
27197 cat >>conftest.$ac_ext <<_ACEOF
27198 /* end confdefs.h.  */
27199 $ac_includes_default
27200 int
27201 main ()
27202 {
27203 if ((pid_t *) 0)
27204   return 0;
27205 if (sizeof (pid_t))
27206   return 0;
27207   ;
27208   return 0;
27209 }
27210 _ACEOF
27211 rm -f conftest.$ac_objext
27212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27213   (eval $ac_compile) 2>conftest.er1
27214   ac_status=$?
27215   grep -v '^ *+' conftest.er1 >conftest.err
27216   rm -f conftest.er1
27217   cat conftest.err >&5
27218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219   (exit $ac_status); } &&
27220          { ac_try='test -z "$ac_c_werror_flag"
27221                          || test ! -s conftest.err'
27222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27223   (eval $ac_try) 2>&5
27224   ac_status=$?
27225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226   (exit $ac_status); }; } &&
27227          { ac_try='test -s conftest.$ac_objext'
27228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27229   (eval $ac_try) 2>&5
27230   ac_status=$?
27231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232   (exit $ac_status); }; }; then
27233   ac_cv_type_pid_t=yes
27234 else
27235   echo "$as_me: failed program was:" >&5
27236 sed 's/^/| /' conftest.$ac_ext >&5
27237
27238 ac_cv_type_pid_t=no
27239 fi
27240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27241 fi
27242 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27243 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27244 if test $ac_cv_type_pid_t = yes; then
27245   :
27246 else
27247
27248 cat >>confdefs.h <<_ACEOF
27249 #define pid_t int
27250 _ACEOF
27251
27252 fi
27253
27254 echo "$as_me:$LINENO: checking for size_t" >&5
27255 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27256 if test "${ac_cv_type_size_t+set}" = set; then
27257   echo $ECHO_N "(cached) $ECHO_C" >&6
27258 else
27259   cat >conftest.$ac_ext <<_ACEOF
27260 /* confdefs.h.  */
27261 _ACEOF
27262 cat confdefs.h >>conftest.$ac_ext
27263 cat >>conftest.$ac_ext <<_ACEOF
27264 /* end confdefs.h.  */
27265 $ac_includes_default
27266 int
27267 main ()
27268 {
27269 if ((size_t *) 0)
27270   return 0;
27271 if (sizeof (size_t))
27272   return 0;
27273   ;
27274   return 0;
27275 }
27276 _ACEOF
27277 rm -f conftest.$ac_objext
27278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27279   (eval $ac_compile) 2>conftest.er1
27280   ac_status=$?
27281   grep -v '^ *+' conftest.er1 >conftest.err
27282   rm -f conftest.er1
27283   cat conftest.err >&5
27284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27285   (exit $ac_status); } &&
27286          { ac_try='test -z "$ac_c_werror_flag"
27287                          || test ! -s conftest.err'
27288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27289   (eval $ac_try) 2>&5
27290   ac_status=$?
27291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27292   (exit $ac_status); }; } &&
27293          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27299   ac_cv_type_size_t=yes
27300 else
27301   echo "$as_me: failed program was:" >&5
27302 sed 's/^/| /' conftest.$ac_ext >&5
27303
27304 ac_cv_type_size_t=no
27305 fi
27306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27307 fi
27308 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27309 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27310 if test $ac_cv_type_size_t = yes; then
27311   :
27312 else
27313
27314 cat >>confdefs.h <<_ACEOF
27315 #define size_t unsigned
27316 _ACEOF
27317
27318 fi
27319
27320 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27321 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27322 if test "${ac_cv_type_signal+set}" = set; then
27323   echo $ECHO_N "(cached) $ECHO_C" >&6
27324 else
27325   cat >conftest.$ac_ext <<_ACEOF
27326 /* confdefs.h.  */
27327 _ACEOF
27328 cat confdefs.h >>conftest.$ac_ext
27329 cat >>conftest.$ac_ext <<_ACEOF
27330 /* end confdefs.h.  */
27331 #include <sys/types.h>
27332 #include <signal.h>
27333 #ifdef signal
27334 # undef signal
27335 #endif
27336 #ifdef __cplusplus
27337 extern "C" void (*signal (int, void (*)(int)))(int);
27338 #else
27339 void (*signal ()) ();
27340 #endif
27341
27342 int
27343 main ()
27344 {
27345 int i;
27346   ;
27347   return 0;
27348 }
27349 _ACEOF
27350 rm -f conftest.$ac_objext
27351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27352   (eval $ac_compile) 2>conftest.er1
27353   ac_status=$?
27354   grep -v '^ *+' conftest.er1 >conftest.err
27355   rm -f conftest.er1
27356   cat conftest.err >&5
27357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358   (exit $ac_status); } &&
27359          { ac_try='test -z "$ac_c_werror_flag"
27360                          || test ! -s conftest.err'
27361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27362   (eval $ac_try) 2>&5
27363   ac_status=$?
27364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365   (exit $ac_status); }; } &&
27366          { ac_try='test -s conftest.$ac_objext'
27367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27368   (eval $ac_try) 2>&5
27369   ac_status=$?
27370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371   (exit $ac_status); }; }; then
27372   ac_cv_type_signal=void
27373 else
27374   echo "$as_me: failed program was:" >&5
27375 sed 's/^/| /' conftest.$ac_ext >&5
27376
27377 ac_cv_type_signal=int
27378 fi
27379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27380 fi
27381 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27382 echo "${ECHO_T}$ac_cv_type_signal" >&6
27383
27384 cat >>confdefs.h <<_ACEOF
27385 #define RETSIGTYPE $ac_cv_type_signal
27386 _ACEOF
27387
27388
27389 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27390 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27391 if test "${ac_cv_struct_tm+set}" = set; then
27392   echo $ECHO_N "(cached) $ECHO_C" >&6
27393 else
27394   cat >conftest.$ac_ext <<_ACEOF
27395 /* confdefs.h.  */
27396 _ACEOF
27397 cat confdefs.h >>conftest.$ac_ext
27398 cat >>conftest.$ac_ext <<_ACEOF
27399 /* end confdefs.h.  */
27400 #include <sys/types.h>
27401 #include <time.h>
27402
27403 int
27404 main ()
27405 {
27406 struct tm *tp; tp->tm_sec;
27407   ;
27408   return 0;
27409 }
27410 _ACEOF
27411 rm -f conftest.$ac_objext
27412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27413   (eval $ac_compile) 2>conftest.er1
27414   ac_status=$?
27415   grep -v '^ *+' conftest.er1 >conftest.err
27416   rm -f conftest.er1
27417   cat conftest.err >&5
27418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27419   (exit $ac_status); } &&
27420          { ac_try='test -z "$ac_c_werror_flag"
27421                          || test ! -s conftest.err'
27422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27423   (eval $ac_try) 2>&5
27424   ac_status=$?
27425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426   (exit $ac_status); }; } &&
27427          { ac_try='test -s conftest.$ac_objext'
27428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27429   (eval $ac_try) 2>&5
27430   ac_status=$?
27431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432   (exit $ac_status); }; }; then
27433   ac_cv_struct_tm=time.h
27434 else
27435   echo "$as_me: failed program was:" >&5
27436 sed 's/^/| /' conftest.$ac_ext >&5
27437
27438 ac_cv_struct_tm=sys/time.h
27439 fi
27440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27441 fi
27442 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27443 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27444 if test $ac_cv_struct_tm = sys/time.h; then
27445
27446 cat >>confdefs.h <<\_ACEOF
27447 #define TM_IN_SYS_TIME 1
27448 _ACEOF
27449
27450 fi
27451
27452 echo "$as_me:$LINENO: checking for int64_t" >&5
27453 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27454 if test "${ac_cv_type_int64_t+set}" = set; then
27455   echo $ECHO_N "(cached) $ECHO_C" >&6
27456 else
27457   cat >conftest.$ac_ext <<_ACEOF
27458 /* confdefs.h.  */
27459 _ACEOF
27460 cat confdefs.h >>conftest.$ac_ext
27461 cat >>conftest.$ac_ext <<_ACEOF
27462 /* end confdefs.h.  */
27463 $ac_includes_default
27464 int
27465 main ()
27466 {
27467 if ((int64_t *) 0)
27468   return 0;
27469 if (sizeof (int64_t))
27470   return 0;
27471   ;
27472   return 0;
27473 }
27474 _ACEOF
27475 rm -f conftest.$ac_objext
27476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27477   (eval $ac_compile) 2>conftest.er1
27478   ac_status=$?
27479   grep -v '^ *+' conftest.er1 >conftest.err
27480   rm -f conftest.er1
27481   cat conftest.err >&5
27482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483   (exit $ac_status); } &&
27484          { ac_try='test -z "$ac_c_werror_flag"
27485                          || test ! -s conftest.err'
27486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27487   (eval $ac_try) 2>&5
27488   ac_status=$?
27489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490   (exit $ac_status); }; } &&
27491          { ac_try='test -s conftest.$ac_objext'
27492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27493   (eval $ac_try) 2>&5
27494   ac_status=$?
27495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27496   (exit $ac_status); }; }; then
27497   ac_cv_type_int64_t=yes
27498 else
27499   echo "$as_me: failed program was:" >&5
27500 sed 's/^/| /' conftest.$ac_ext >&5
27501
27502 ac_cv_type_int64_t=no
27503 fi
27504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27505 fi
27506 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27507 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27508 if test $ac_cv_type_int64_t = yes; then
27509
27510 cat >>confdefs.h <<_ACEOF
27511 #define HAVE_INT64_T 1
27512 _ACEOF
27513
27514
27515 else
27516   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27517 echo "$as_me: error: Type int64_t required but not found" >&2;}
27518    { (exit 1); exit 1; }; }
27519 fi
27520
27521 echo "$as_me:$LINENO: checking for uint64_t" >&5
27522 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27523 if test "${ac_cv_type_uint64_t+set}" = set; then
27524   echo $ECHO_N "(cached) $ECHO_C" >&6
27525 else
27526   cat >conftest.$ac_ext <<_ACEOF
27527 /* confdefs.h.  */
27528 _ACEOF
27529 cat confdefs.h >>conftest.$ac_ext
27530 cat >>conftest.$ac_ext <<_ACEOF
27531 /* end confdefs.h.  */
27532 $ac_includes_default
27533 int
27534 main ()
27535 {
27536 if ((uint64_t *) 0)
27537   return 0;
27538 if (sizeof (uint64_t))
27539   return 0;
27540   ;
27541   return 0;
27542 }
27543 _ACEOF
27544 rm -f conftest.$ac_objext
27545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27546   (eval $ac_compile) 2>conftest.er1
27547   ac_status=$?
27548   grep -v '^ *+' conftest.er1 >conftest.err
27549   rm -f conftest.er1
27550   cat conftest.err >&5
27551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552   (exit $ac_status); } &&
27553          { ac_try='test -z "$ac_c_werror_flag"
27554                          || test ! -s conftest.err'
27555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27556   (eval $ac_try) 2>&5
27557   ac_status=$?
27558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559   (exit $ac_status); }; } &&
27560          { ac_try='test -s conftest.$ac_objext'
27561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27562   (eval $ac_try) 2>&5
27563   ac_status=$?
27564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565   (exit $ac_status); }; }; then
27566   ac_cv_type_uint64_t=yes
27567 else
27568   echo "$as_me: failed program was:" >&5
27569 sed 's/^/| /' conftest.$ac_ext >&5
27570
27571 ac_cv_type_uint64_t=no
27572 fi
27573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27574 fi
27575 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27576 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27577 if test $ac_cv_type_uint64_t = yes; then
27578
27579 cat >>confdefs.h <<_ACEOF
27580 #define HAVE_UINT64_T 1
27581 _ACEOF
27582
27583
27584 else
27585   echo "$as_me:$LINENO: checking for u_int64_t" >&5
27586 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27587 if test "${ac_cv_type_u_int64_t+set}" = set; then
27588   echo $ECHO_N "(cached) $ECHO_C" >&6
27589 else
27590   cat >conftest.$ac_ext <<_ACEOF
27591 /* confdefs.h.  */
27592 _ACEOF
27593 cat confdefs.h >>conftest.$ac_ext
27594 cat >>conftest.$ac_ext <<_ACEOF
27595 /* end confdefs.h.  */
27596 $ac_includes_default
27597 int
27598 main ()
27599 {
27600 if ((u_int64_t *) 0)
27601   return 0;
27602 if (sizeof (u_int64_t))
27603   return 0;
27604   ;
27605   return 0;
27606 }
27607 _ACEOF
27608 rm -f conftest.$ac_objext
27609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27610   (eval $ac_compile) 2>conftest.er1
27611   ac_status=$?
27612   grep -v '^ *+' conftest.er1 >conftest.err
27613   rm -f conftest.er1
27614   cat conftest.err >&5
27615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616   (exit $ac_status); } &&
27617          { ac_try='test -z "$ac_c_werror_flag"
27618                          || test ! -s conftest.err'
27619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27620   (eval $ac_try) 2>&5
27621   ac_status=$?
27622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623   (exit $ac_status); }; } &&
27624          { ac_try='test -s conftest.$ac_objext'
27625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27626   (eval $ac_try) 2>&5
27627   ac_status=$?
27628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27629   (exit $ac_status); }; }; then
27630   ac_cv_type_u_int64_t=yes
27631 else
27632   echo "$as_me: failed program was:" >&5
27633 sed 's/^/| /' conftest.$ac_ext >&5
27634
27635 ac_cv_type_u_int64_t=no
27636 fi
27637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27638 fi
27639 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27640 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27641 if test $ac_cv_type_u_int64_t = yes; then
27642
27643 cat >>confdefs.h <<_ACEOF
27644 #define HAVE_U_INT64_T 1
27645 _ACEOF
27646
27647
27648 else
27649   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27650 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27651    { (exit 1); exit 1; }; }
27652 fi
27653
27654 fi
27655
27656
27657
27658
27659
27660
27661
27662
27663
27664
27665 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
27666 do
27667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27668 echo "$as_me:$LINENO: checking for $ac_func" >&5
27669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27670 if eval "test \"\${$as_ac_var+set}\" = set"; then
27671   echo $ECHO_N "(cached) $ECHO_C" >&6
27672 else
27673   cat >conftest.$ac_ext <<_ACEOF
27674 /* confdefs.h.  */
27675 _ACEOF
27676 cat confdefs.h >>conftest.$ac_ext
27677 cat >>conftest.$ac_ext <<_ACEOF
27678 /* end confdefs.h.  */
27679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27681 #define $ac_func innocuous_$ac_func
27682
27683 /* System header to define __stub macros and hopefully few prototypes,
27684     which can conflict with char $ac_func (); below.
27685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27686     <limits.h> exists even on freestanding compilers.  */
27687
27688 #ifdef __STDC__
27689 # include <limits.h>
27690 #else
27691 # include <assert.h>
27692 #endif
27693
27694 #undef $ac_func
27695
27696 /* Override any gcc2 internal prototype to avoid an error.  */
27697 #ifdef __cplusplus
27698 extern "C"
27699 {
27700 #endif
27701 /* We use char because int might match the return type of a gcc2
27702    builtin and then its argument prototype would still apply.  */
27703 char $ac_func ();
27704 /* The GNU C library defines this for functions which it implements
27705     to always fail with ENOSYS.  Some functions are actually named
27706     something starting with __ and the normal name is an alias.  */
27707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27708 choke me
27709 #else
27710 char (*f) () = $ac_func;
27711 #endif
27712 #ifdef __cplusplus
27713 }
27714 #endif
27715
27716 int
27717 main ()
27718 {
27719 return f != $ac_func;
27720   ;
27721   return 0;
27722 }
27723 _ACEOF
27724 rm -f conftest.$ac_objext conftest$ac_exeext
27725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27726   (eval $ac_link) 2>conftest.er1
27727   ac_status=$?
27728   grep -v '^ *+' conftest.er1 >conftest.err
27729   rm -f conftest.er1
27730   cat conftest.err >&5
27731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732   (exit $ac_status); } &&
27733          { ac_try='test -z "$ac_c_werror_flag"
27734                          || test ! -s conftest.err'
27735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27736   (eval $ac_try) 2>&5
27737   ac_status=$?
27738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27739   (exit $ac_status); }; } &&
27740          { ac_try='test -s conftest$ac_exeext'
27741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27742   (eval $ac_try) 2>&5
27743   ac_status=$?
27744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745   (exit $ac_status); }; }; then
27746   eval "$as_ac_var=yes"
27747 else
27748   echo "$as_me: failed program was:" >&5
27749 sed 's/^/| /' conftest.$ac_ext >&5
27750
27751 eval "$as_ac_var=no"
27752 fi
27753 rm -f conftest.err conftest.$ac_objext \
27754       conftest$ac_exeext conftest.$ac_ext
27755 fi
27756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27758 if test `eval echo '${'$as_ac_var'}'` = yes; then
27759   cat >>confdefs.h <<_ACEOF
27760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27761 _ACEOF
27762
27763 fi
27764 done
27765
27766
27767
27768
27769
27770
27771
27772 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
27773 do
27774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27775 echo "$as_me:$LINENO: checking for $ac_func" >&5
27776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27777 if eval "test \"\${$as_ac_var+set}\" = set"; then
27778   echo $ECHO_N "(cached) $ECHO_C" >&6
27779 else
27780   cat >conftest.$ac_ext <<_ACEOF
27781 /* confdefs.h.  */
27782 _ACEOF
27783 cat confdefs.h >>conftest.$ac_ext
27784 cat >>conftest.$ac_ext <<_ACEOF
27785 /* end confdefs.h.  */
27786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27788 #define $ac_func innocuous_$ac_func
27789
27790 /* System header to define __stub macros and hopefully few prototypes,
27791     which can conflict with char $ac_func (); below.
27792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27793     <limits.h> exists even on freestanding compilers.  */
27794
27795 #ifdef __STDC__
27796 # include <limits.h>
27797 #else
27798 # include <assert.h>
27799 #endif
27800
27801 #undef $ac_func
27802
27803 /* Override any gcc2 internal prototype to avoid an error.  */
27804 #ifdef __cplusplus
27805 extern "C"
27806 {
27807 #endif
27808 /* We use char because int might match the return type of a gcc2
27809    builtin and then its argument prototype would still apply.  */
27810 char $ac_func ();
27811 /* The GNU C library defines this for functions which it implements
27812     to always fail with ENOSYS.  Some functions are actually named
27813     something starting with __ and the normal name is an alias.  */
27814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27815 choke me
27816 #else
27817 char (*f) () = $ac_func;
27818 #endif
27819 #ifdef __cplusplus
27820 }
27821 #endif
27822
27823 int
27824 main ()
27825 {
27826 return f != $ac_func;
27827   ;
27828   return 0;
27829 }
27830 _ACEOF
27831 rm -f conftest.$ac_objext conftest$ac_exeext
27832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27833   (eval $ac_link) 2>conftest.er1
27834   ac_status=$?
27835   grep -v '^ *+' conftest.er1 >conftest.err
27836   rm -f conftest.er1
27837   cat conftest.err >&5
27838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27839   (exit $ac_status); } &&
27840          { ac_try='test -z "$ac_c_werror_flag"
27841                          || test ! -s conftest.err'
27842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27843   (eval $ac_try) 2>&5
27844   ac_status=$?
27845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27846   (exit $ac_status); }; } &&
27847          { ac_try='test -s conftest$ac_exeext'
27848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27849   (eval $ac_try) 2>&5
27850   ac_status=$?
27851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852   (exit $ac_status); }; }; then
27853   eval "$as_ac_var=yes"
27854 else
27855   echo "$as_me: failed program was:" >&5
27856 sed 's/^/| /' conftest.$ac_ext >&5
27857
27858 eval "$as_ac_var=no"
27859 fi
27860 rm -f conftest.err conftest.$ac_objext \
27861       conftest$ac_exeext conftest.$ac_ext
27862 fi
27863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27865 if test `eval echo '${'$as_ac_var'}'` = yes; then
27866   cat >>confdefs.h <<_ACEOF
27867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27868 _ACEOF
27869
27870 fi
27871 done
27872
27873
27874
27875
27876
27877
27878
27879
27880 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
27881 do
27882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27883 echo "$as_me:$LINENO: checking for $ac_func" >&5
27884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27885 if eval "test \"\${$as_ac_var+set}\" = set"; then
27886   echo $ECHO_N "(cached) $ECHO_C" >&6
27887 else
27888   cat >conftest.$ac_ext <<_ACEOF
27889 /* confdefs.h.  */
27890 _ACEOF
27891 cat confdefs.h >>conftest.$ac_ext
27892 cat >>conftest.$ac_ext <<_ACEOF
27893 /* end confdefs.h.  */
27894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27896 #define $ac_func innocuous_$ac_func
27897
27898 /* System header to define __stub macros and hopefully few prototypes,
27899     which can conflict with char $ac_func (); below.
27900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27901     <limits.h> exists even on freestanding compilers.  */
27902
27903 #ifdef __STDC__
27904 # include <limits.h>
27905 #else
27906 # include <assert.h>
27907 #endif
27908
27909 #undef $ac_func
27910
27911 /* Override any gcc2 internal prototype to avoid an error.  */
27912 #ifdef __cplusplus
27913 extern "C"
27914 {
27915 #endif
27916 /* We use char because int might match the return type of a gcc2
27917    builtin and then its argument prototype would still apply.  */
27918 char $ac_func ();
27919 /* The GNU C library defines this for functions which it implements
27920     to always fail with ENOSYS.  Some functions are actually named
27921     something starting with __ and the normal name is an alias.  */
27922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27923 choke me
27924 #else
27925 char (*f) () = $ac_func;
27926 #endif
27927 #ifdef __cplusplus
27928 }
27929 #endif
27930
27931 int
27932 main ()
27933 {
27934 return f != $ac_func;
27935   ;
27936   return 0;
27937 }
27938 _ACEOF
27939 rm -f conftest.$ac_objext conftest$ac_exeext
27940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27941   (eval $ac_link) 2>conftest.er1
27942   ac_status=$?
27943   grep -v '^ *+' conftest.er1 >conftest.err
27944   rm -f conftest.er1
27945   cat conftest.err >&5
27946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947   (exit $ac_status); } &&
27948          { ac_try='test -z "$ac_c_werror_flag"
27949                          || test ! -s conftest.err'
27950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27951   (eval $ac_try) 2>&5
27952   ac_status=$?
27953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954   (exit $ac_status); }; } &&
27955          { ac_try='test -s conftest$ac_exeext'
27956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27957   (eval $ac_try) 2>&5
27958   ac_status=$?
27959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960   (exit $ac_status); }; }; then
27961   eval "$as_ac_var=yes"
27962 else
27963   echo "$as_me: failed program was:" >&5
27964 sed 's/^/| /' conftest.$ac_ext >&5
27965
27966 eval "$as_ac_var=no"
27967 fi
27968 rm -f conftest.err conftest.$ac_objext \
27969       conftest$ac_exeext conftest.$ac_ext
27970 fi
27971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27973 if test `eval echo '${'$as_ac_var'}'` = yes; then
27974   cat >>confdefs.h <<_ACEOF
27975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27976 _ACEOF
27977
27978 fi
27979 done
27980
27981
27982
27983
27984
27985 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
27986 do
27987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27988 echo "$as_me:$LINENO: checking for $ac_func" >&5
27989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27990 if eval "test \"\${$as_ac_var+set}\" = set"; then
27991   echo $ECHO_N "(cached) $ECHO_C" >&6
27992 else
27993   cat >conftest.$ac_ext <<_ACEOF
27994 /* confdefs.h.  */
27995 _ACEOF
27996 cat confdefs.h >>conftest.$ac_ext
27997 cat >>conftest.$ac_ext <<_ACEOF
27998 /* end confdefs.h.  */
27999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28000    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28001 #define $ac_func innocuous_$ac_func
28002
28003 /* System header to define __stub macros and hopefully few prototypes,
28004     which can conflict with char $ac_func (); below.
28005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28006     <limits.h> exists even on freestanding compilers.  */
28007
28008 #ifdef __STDC__
28009 # include <limits.h>
28010 #else
28011 # include <assert.h>
28012 #endif
28013
28014 #undef $ac_func
28015
28016 /* Override any gcc2 internal prototype to avoid an error.  */
28017 #ifdef __cplusplus
28018 extern "C"
28019 {
28020 #endif
28021 /* We use char because int might match the return type of a gcc2
28022    builtin and then its argument prototype would still apply.  */
28023 char $ac_func ();
28024 /* The GNU C library defines this for functions which it implements
28025     to always fail with ENOSYS.  Some functions are actually named
28026     something starting with __ and the normal name is an alias.  */
28027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28028 choke me
28029 #else
28030 char (*f) () = $ac_func;
28031 #endif
28032 #ifdef __cplusplus
28033 }
28034 #endif
28035
28036 int
28037 main ()
28038 {
28039 return f != $ac_func;
28040   ;
28041   return 0;
28042 }
28043 _ACEOF
28044 rm -f conftest.$ac_objext conftest$ac_exeext
28045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28046   (eval $ac_link) 2>conftest.er1
28047   ac_status=$?
28048   grep -v '^ *+' conftest.er1 >conftest.err
28049   rm -f conftest.er1
28050   cat conftest.err >&5
28051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28052   (exit $ac_status); } &&
28053          { ac_try='test -z "$ac_c_werror_flag"
28054                          || test ! -s conftest.err'
28055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28056   (eval $ac_try) 2>&5
28057   ac_status=$?
28058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059   (exit $ac_status); }; } &&
28060          { ac_try='test -s conftest$ac_exeext'
28061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28062   (eval $ac_try) 2>&5
28063   ac_status=$?
28064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065   (exit $ac_status); }; }; then
28066   eval "$as_ac_var=yes"
28067 else
28068   echo "$as_me: failed program was:" >&5
28069 sed 's/^/| /' conftest.$ac_ext >&5
28070
28071 eval "$as_ac_var=no"
28072 fi
28073 rm -f conftest.err conftest.$ac_objext \
28074       conftest$ac_exeext conftest.$ac_ext
28075 fi
28076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28077 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28078 if test `eval echo '${'$as_ac_var'}'` = yes; then
28079   cat >>confdefs.h <<_ACEOF
28080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28081 _ACEOF
28082
28083 fi
28084 done
28085
28086 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28087 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28088 if test "${llvm_cv_c_printf_a+set}" = set; then
28089   echo $ECHO_N "(cached) $ECHO_C" >&6
28090 else
28091   ac_ext=c
28092 ac_cpp='$CPP $CPPFLAGS'
28093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28096
28097  if test "$cross_compiling" = yes; then
28098   llvmac_cv_c_printf_a=no
28099 else
28100   cat >conftest.$ac_ext <<_ACEOF
28101
28102   /* confdefs.h.  */
28103 _ACEOF
28104 cat confdefs.h >>conftest.$ac_ext
28105 cat >>conftest.$ac_ext <<_ACEOF
28106 /* end confdefs.h.  */
28107
28108 #include <stdio.h>
28109 #include <stdlib.h>
28110
28111 int
28112 main ()
28113 {
28114
28115 volatile double A, B;
28116 char Buffer[100];
28117 A = 1;
28118 A /= 10.0;
28119 sprintf(Buffer, "%a", A);
28120 B = atof(Buffer);
28121 if (A != B)
28122   return (1);
28123 if (A != 0x1.999999999999ap-4)
28124   return (1);
28125 return (0);
28126   ;
28127   return 0;
28128 }
28129 _ACEOF
28130 rm -f conftest$ac_exeext
28131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28132   (eval $ac_link) 2>&5
28133   ac_status=$?
28134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28137   (eval $ac_try) 2>&5
28138   ac_status=$?
28139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28140   (exit $ac_status); }; }; then
28141   llvm_cv_c_printf_a=yes
28142 else
28143   echo "$as_me: program exited with status $ac_status" >&5
28144 echo "$as_me: failed program was:" >&5
28145 sed 's/^/| /' conftest.$ac_ext >&5
28146
28147 ( exit $ac_status )
28148 llvmac_cv_c_printf_a=no
28149 fi
28150 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28151 fi
28152  ac_ext=c
28153 ac_cpp='$CPP $CPPFLAGS'
28154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28157
28158 fi
28159 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28160 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28161  if test "$llvm_cv_c_printf_a" = "yes"; then
28162
28163 cat >>confdefs.h <<\_ACEOF
28164 #define HAVE_PRINTF_A 1
28165 _ACEOF
28166
28167  fi
28168
28169 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28170 # for constant arguments.  Useless!
28171 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28172 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28173 if test "${ac_cv_working_alloca_h+set}" = set; then
28174   echo $ECHO_N "(cached) $ECHO_C" >&6
28175 else
28176   cat >conftest.$ac_ext <<_ACEOF
28177 /* confdefs.h.  */
28178 _ACEOF
28179 cat confdefs.h >>conftest.$ac_ext
28180 cat >>conftest.$ac_ext <<_ACEOF
28181 /* end confdefs.h.  */
28182 #include <alloca.h>
28183 int
28184 main ()
28185 {
28186 char *p = (char *) alloca (2 * sizeof (int));
28187   ;
28188   return 0;
28189 }
28190 _ACEOF
28191 rm -f conftest.$ac_objext conftest$ac_exeext
28192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28193   (eval $ac_link) 2>conftest.er1
28194   ac_status=$?
28195   grep -v '^ *+' conftest.er1 >conftest.err
28196   rm -f conftest.er1
28197   cat conftest.err >&5
28198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199   (exit $ac_status); } &&
28200          { ac_try='test -z "$ac_c_werror_flag"
28201                          || test ! -s conftest.err'
28202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28203   (eval $ac_try) 2>&5
28204   ac_status=$?
28205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206   (exit $ac_status); }; } &&
28207          { ac_try='test -s conftest$ac_exeext'
28208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28209   (eval $ac_try) 2>&5
28210   ac_status=$?
28211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212   (exit $ac_status); }; }; then
28213   ac_cv_working_alloca_h=yes
28214 else
28215   echo "$as_me: failed program was:" >&5
28216 sed 's/^/| /' conftest.$ac_ext >&5
28217
28218 ac_cv_working_alloca_h=no
28219 fi
28220 rm -f conftest.err conftest.$ac_objext \
28221       conftest$ac_exeext conftest.$ac_ext
28222 fi
28223 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28224 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28225 if test $ac_cv_working_alloca_h = yes; then
28226
28227 cat >>confdefs.h <<\_ACEOF
28228 #define HAVE_ALLOCA_H 1
28229 _ACEOF
28230
28231 fi
28232
28233 echo "$as_me:$LINENO: checking for alloca" >&5
28234 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28235 if test "${ac_cv_func_alloca_works+set}" = set; then
28236   echo $ECHO_N "(cached) $ECHO_C" >&6
28237 else
28238   cat >conftest.$ac_ext <<_ACEOF
28239 /* confdefs.h.  */
28240 _ACEOF
28241 cat confdefs.h >>conftest.$ac_ext
28242 cat >>conftest.$ac_ext <<_ACEOF
28243 /* end confdefs.h.  */
28244 #ifdef __GNUC__
28245 # define alloca __builtin_alloca
28246 #else
28247 # ifdef _MSC_VER
28248 #  include <malloc.h>
28249 #  define alloca _alloca
28250 # else
28251 #  if HAVE_ALLOCA_H
28252 #   include <alloca.h>
28253 #  else
28254 #   ifdef _AIX
28255  #pragma alloca
28256 #   else
28257 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28258 char *alloca ();
28259 #    endif
28260 #   endif
28261 #  endif
28262 # endif
28263 #endif
28264
28265 int
28266 main ()
28267 {
28268 char *p = (char *) alloca (1);
28269   ;
28270   return 0;
28271 }
28272 _ACEOF
28273 rm -f conftest.$ac_objext conftest$ac_exeext
28274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28275   (eval $ac_link) 2>conftest.er1
28276   ac_status=$?
28277   grep -v '^ *+' conftest.er1 >conftest.err
28278   rm -f conftest.er1
28279   cat conftest.err >&5
28280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281   (exit $ac_status); } &&
28282          { ac_try='test -z "$ac_c_werror_flag"
28283                          || test ! -s conftest.err'
28284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28285   (eval $ac_try) 2>&5
28286   ac_status=$?
28287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28288   (exit $ac_status); }; } &&
28289          { ac_try='test -s conftest$ac_exeext'
28290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28291   (eval $ac_try) 2>&5
28292   ac_status=$?
28293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294   (exit $ac_status); }; }; then
28295   ac_cv_func_alloca_works=yes
28296 else
28297   echo "$as_me: failed program was:" >&5
28298 sed 's/^/| /' conftest.$ac_ext >&5
28299
28300 ac_cv_func_alloca_works=no
28301 fi
28302 rm -f conftest.err conftest.$ac_objext \
28303       conftest$ac_exeext conftest.$ac_ext
28304 fi
28305 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28306 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28307
28308 if test $ac_cv_func_alloca_works = yes; then
28309
28310 cat >>confdefs.h <<\_ACEOF
28311 #define HAVE_ALLOCA 1
28312 _ACEOF
28313
28314 else
28315   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28316 # that cause trouble.  Some versions do not even contain alloca or
28317 # contain a buggy version.  If you still want to use their alloca,
28318 # use ar to extract alloca.o from them instead of compiling alloca.c.
28319
28320 ALLOCA=alloca.$ac_objext
28321
28322 cat >>confdefs.h <<\_ACEOF
28323 #define C_ALLOCA 1
28324 _ACEOF
28325
28326
28327 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28328 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28329 if test "${ac_cv_os_cray+set}" = set; then
28330   echo $ECHO_N "(cached) $ECHO_C" >&6
28331 else
28332   cat >conftest.$ac_ext <<_ACEOF
28333 /* confdefs.h.  */
28334 _ACEOF
28335 cat confdefs.h >>conftest.$ac_ext
28336 cat >>conftest.$ac_ext <<_ACEOF
28337 /* end confdefs.h.  */
28338 #if defined(CRAY) && ! defined(CRAY2)
28339 webecray
28340 #else
28341 wenotbecray
28342 #endif
28343
28344 _ACEOF
28345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28346   $EGREP "webecray" >/dev/null 2>&1; then
28347   ac_cv_os_cray=yes
28348 else
28349   ac_cv_os_cray=no
28350 fi
28351 rm -f conftest*
28352
28353 fi
28354 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28355 echo "${ECHO_T}$ac_cv_os_cray" >&6
28356 if test $ac_cv_os_cray = yes; then
28357   for ac_func in _getb67 GETB67 getb67; do
28358     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28359 echo "$as_me:$LINENO: checking for $ac_func" >&5
28360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28361 if eval "test \"\${$as_ac_var+set}\" = set"; then
28362   echo $ECHO_N "(cached) $ECHO_C" >&6
28363 else
28364   cat >conftest.$ac_ext <<_ACEOF
28365 /* confdefs.h.  */
28366 _ACEOF
28367 cat confdefs.h >>conftest.$ac_ext
28368 cat >>conftest.$ac_ext <<_ACEOF
28369 /* end confdefs.h.  */
28370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28372 #define $ac_func innocuous_$ac_func
28373
28374 /* System header to define __stub macros and hopefully few prototypes,
28375     which can conflict with char $ac_func (); below.
28376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28377     <limits.h> exists even on freestanding compilers.  */
28378
28379 #ifdef __STDC__
28380 # include <limits.h>
28381 #else
28382 # include <assert.h>
28383 #endif
28384
28385 #undef $ac_func
28386
28387 /* Override any gcc2 internal prototype to avoid an error.  */
28388 #ifdef __cplusplus
28389 extern "C"
28390 {
28391 #endif
28392 /* We use char because int might match the return type of a gcc2
28393    builtin and then its argument prototype would still apply.  */
28394 char $ac_func ();
28395 /* The GNU C library defines this for functions which it implements
28396     to always fail with ENOSYS.  Some functions are actually named
28397     something starting with __ and the normal name is an alias.  */
28398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28399 choke me
28400 #else
28401 char (*f) () = $ac_func;
28402 #endif
28403 #ifdef __cplusplus
28404 }
28405 #endif
28406
28407 int
28408 main ()
28409 {
28410 return f != $ac_func;
28411   ;
28412   return 0;
28413 }
28414 _ACEOF
28415 rm -f conftest.$ac_objext conftest$ac_exeext
28416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28417   (eval $ac_link) 2>conftest.er1
28418   ac_status=$?
28419   grep -v '^ *+' conftest.er1 >conftest.err
28420   rm -f conftest.er1
28421   cat conftest.err >&5
28422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423   (exit $ac_status); } &&
28424          { ac_try='test -z "$ac_c_werror_flag"
28425                          || test ! -s conftest.err'
28426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28427   (eval $ac_try) 2>&5
28428   ac_status=$?
28429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430   (exit $ac_status); }; } &&
28431          { ac_try='test -s conftest$ac_exeext'
28432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28433   (eval $ac_try) 2>&5
28434   ac_status=$?
28435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436   (exit $ac_status); }; }; then
28437   eval "$as_ac_var=yes"
28438 else
28439   echo "$as_me: failed program was:" >&5
28440 sed 's/^/| /' conftest.$ac_ext >&5
28441
28442 eval "$as_ac_var=no"
28443 fi
28444 rm -f conftest.err conftest.$ac_objext \
28445       conftest$ac_exeext conftest.$ac_ext
28446 fi
28447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28449 if test `eval echo '${'$as_ac_var'}'` = yes; then
28450
28451 cat >>confdefs.h <<_ACEOF
28452 #define CRAY_STACKSEG_END $ac_func
28453 _ACEOF
28454
28455     break
28456 fi
28457
28458   done
28459 fi
28460
28461 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28462 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28463 if test "${ac_cv_c_stack_direction+set}" = set; then
28464   echo $ECHO_N "(cached) $ECHO_C" >&6
28465 else
28466   if test "$cross_compiling" = yes; then
28467   ac_cv_c_stack_direction=0
28468 else
28469   cat >conftest.$ac_ext <<_ACEOF
28470 /* confdefs.h.  */
28471 _ACEOF
28472 cat confdefs.h >>conftest.$ac_ext
28473 cat >>conftest.$ac_ext <<_ACEOF
28474 /* end confdefs.h.  */
28475 int
28476 find_stack_direction ()
28477 {
28478   static char *addr = 0;
28479   auto char dummy;
28480   if (addr == 0)
28481     {
28482       addr = &dummy;
28483       return find_stack_direction ();
28484     }
28485   else
28486     return (&dummy > addr) ? 1 : -1;
28487 }
28488
28489 int
28490 main ()
28491 {
28492   exit (find_stack_direction () < 0);
28493 }
28494 _ACEOF
28495 rm -f conftest$ac_exeext
28496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28497   (eval $ac_link) 2>&5
28498   ac_status=$?
28499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28502   (eval $ac_try) 2>&5
28503   ac_status=$?
28504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28505   (exit $ac_status); }; }; then
28506   ac_cv_c_stack_direction=1
28507 else
28508   echo "$as_me: program exited with status $ac_status" >&5
28509 echo "$as_me: failed program was:" >&5
28510 sed 's/^/| /' conftest.$ac_ext >&5
28511
28512 ( exit $ac_status )
28513 ac_cv_c_stack_direction=-1
28514 fi
28515 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28516 fi
28517 fi
28518 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28519 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28520
28521 cat >>confdefs.h <<_ACEOF
28522 #define STACK_DIRECTION $ac_cv_c_stack_direction
28523 _ACEOF
28524
28525
28526 fi
28527
28528
28529 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28530 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28531 if test "${ac_cv_func_rand48+set}" = set; then
28532   echo $ECHO_N "(cached) $ECHO_C" >&6
28533 else
28534   ac_ext=cc
28535 ac_cpp='$CXXCPP $CPPFLAGS'
28536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28539
28540    cat >conftest.$ac_ext <<_ACEOF
28541 /* confdefs.h.  */
28542 _ACEOF
28543 cat confdefs.h >>conftest.$ac_ext
28544 cat >>conftest.$ac_ext <<_ACEOF
28545 /* end confdefs.h.  */
28546 #include <stdlib.h>
28547 int
28548 main ()
28549 {
28550 srand48(0);lrand48();drand48();
28551   ;
28552   return 0;
28553 }
28554 _ACEOF
28555 rm -f conftest.$ac_objext
28556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28557   (eval $ac_compile) 2>conftest.er1
28558   ac_status=$?
28559   grep -v '^ *+' conftest.er1 >conftest.err
28560   rm -f conftest.er1
28561   cat conftest.err >&5
28562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563   (exit $ac_status); } &&
28564          { ac_try='test -z "$ac_cxx_werror_flag"
28565                          || test ! -s conftest.err'
28566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28567   (eval $ac_try) 2>&5
28568   ac_status=$?
28569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28570   (exit $ac_status); }; } &&
28571          { ac_try='test -s conftest.$ac_objext'
28572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28573   (eval $ac_try) 2>&5
28574   ac_status=$?
28575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576   (exit $ac_status); }; }; then
28577   ac_cv_func_rand48=yes
28578 else
28579   echo "$as_me: failed program was:" >&5
28580 sed 's/^/| /' conftest.$ac_ext >&5
28581
28582 ac_cv_func_rand48=no
28583 fi
28584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28585   ac_ext=c
28586 ac_cpp='$CPP $CPPFLAGS'
28587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28590
28591 fi
28592 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28593 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28594
28595 if test "$ac_cv_func_rand48" = "yes" ; then
28596
28597 cat >>confdefs.h <<\_ACEOF
28598 #define HAVE_RAND48 1
28599 _ACEOF
28600
28601 fi
28602
28603
28604 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28605 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28606 if test "${ac_cv_cxx_namespaces+set}" = set; then
28607   echo $ECHO_N "(cached) $ECHO_C" >&6
28608 else
28609   ac_ext=cc
28610 ac_cpp='$CXXCPP $CPPFLAGS'
28611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28614
28615  cat >conftest.$ac_ext <<_ACEOF
28616 /* confdefs.h.  */
28617 _ACEOF
28618 cat confdefs.h >>conftest.$ac_ext
28619 cat >>conftest.$ac_ext <<_ACEOF
28620 /* end confdefs.h.  */
28621 namespace Outer { namespace Inner { int i = 0; }}
28622 int
28623 main ()
28624 {
28625 using namespace Outer::Inner; return i;
28626   ;
28627   return 0;
28628 }
28629 _ACEOF
28630 rm -f conftest.$ac_objext
28631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28632   (eval $ac_compile) 2>conftest.er1
28633   ac_status=$?
28634   grep -v '^ *+' conftest.er1 >conftest.err
28635   rm -f conftest.er1
28636   cat conftest.err >&5
28637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638   (exit $ac_status); } &&
28639          { ac_try='test -z "$ac_cxx_werror_flag"
28640                          || test ! -s conftest.err'
28641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28642   (eval $ac_try) 2>&5
28643   ac_status=$?
28644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645   (exit $ac_status); }; } &&
28646          { ac_try='test -s conftest.$ac_objext'
28647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28648   (eval $ac_try) 2>&5
28649   ac_status=$?
28650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651   (exit $ac_status); }; }; then
28652   ac_cv_cxx_namespaces=yes
28653 else
28654   echo "$as_me: failed program was:" >&5
28655 sed 's/^/| /' conftest.$ac_ext >&5
28656
28657 ac_cv_cxx_namespaces=no
28658 fi
28659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28660  ac_ext=c
28661 ac_cpp='$CPP $CPPFLAGS'
28662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28665
28666
28667 fi
28668 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28669 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28670 if test "$ac_cv_cxx_namespaces" = yes; then
28671
28672 cat >>confdefs.h <<\_ACEOF
28673 #define HAVE_NAMESPACES
28674 _ACEOF
28675
28676 fi
28677
28678 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28679 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28680 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28681   echo $ECHO_N "(cached) $ECHO_C" >&6
28682 else
28683
28684   ac_ext=cc
28685 ac_cpp='$CXXCPP $CPPFLAGS'
28686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28689
28690   cat >conftest.$ac_ext <<_ACEOF
28691 /* confdefs.h.  */
28692 _ACEOF
28693 cat confdefs.h >>conftest.$ac_ext
28694 cat >>conftest.$ac_ext <<_ACEOF
28695 /* end confdefs.h.  */
28696 #include <ext/hash_map>
28697 #ifdef HAVE_NAMESPACES
28698 using namespace std;
28699 #endif
28700 int
28701 main ()
28702 {
28703 hash_map<int, int> t;
28704   ;
28705   return 0;
28706 }
28707 _ACEOF
28708 rm -f conftest.$ac_objext
28709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28710   (eval $ac_compile) 2>conftest.er1
28711   ac_status=$?
28712   grep -v '^ *+' conftest.er1 >conftest.err
28713   rm -f conftest.er1
28714   cat conftest.err >&5
28715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716   (exit $ac_status); } &&
28717          { ac_try='test -z "$ac_cxx_werror_flag"
28718                          || test ! -s conftest.err'
28719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28720   (eval $ac_try) 2>&5
28721   ac_status=$?
28722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723   (exit $ac_status); }; } &&
28724          { ac_try='test -s conftest.$ac_objext'
28725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28726   (eval $ac_try) 2>&5
28727   ac_status=$?
28728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729   (exit $ac_status); }; }; then
28730   ac_cv_cxx_have_std_ext_hash_map=yes
28731 else
28732   echo "$as_me: failed program was:" >&5
28733 sed 's/^/| /' conftest.$ac_ext >&5
28734
28735 ac_cv_cxx_have_std_ext_hash_map=no
28736 fi
28737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28738   ac_ext=c
28739 ac_cpp='$CPP $CPPFLAGS'
28740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28743
28744 fi
28745 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28746 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28747  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28748  then
28749
28750 cat >>confdefs.h <<\_ACEOF
28751 #define HAVE_STD_EXT_HASH_MAP 1
28752 _ACEOF
28753
28754  else
28755
28756 cat >>confdefs.h <<\_ACEOF
28757 #define HAVE_STD_EXT_HASH_MAP 0
28758 _ACEOF
28759
28760  fi
28761
28762  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28763 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28764 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28765   echo $ECHO_N "(cached) $ECHO_C" >&6
28766 else
28767
28768   ac_ext=cc
28769 ac_cpp='$CXXCPP $CPPFLAGS'
28770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28773
28774   cat >conftest.$ac_ext <<_ACEOF
28775 /* confdefs.h.  */
28776 _ACEOF
28777 cat confdefs.h >>conftest.$ac_ext
28778 cat >>conftest.$ac_ext <<_ACEOF
28779 /* end confdefs.h.  */
28780 #include <ext/hash_map>
28781 #ifdef HAVE_NAMESPACES
28782 using namespace __gnu_cxx;
28783 #endif
28784 int
28785 main ()
28786 {
28787 hash_map<int,int> t;
28788   ;
28789   return 0;
28790 }
28791 _ACEOF
28792 rm -f conftest.$ac_objext
28793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28794   (eval $ac_compile) 2>conftest.er1
28795   ac_status=$?
28796   grep -v '^ *+' conftest.er1 >conftest.err
28797   rm -f conftest.er1
28798   cat conftest.err >&5
28799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800   (exit $ac_status); } &&
28801          { ac_try='test -z "$ac_cxx_werror_flag"
28802                          || test ! -s conftest.err'
28803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28804   (eval $ac_try) 2>&5
28805   ac_status=$?
28806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807   (exit $ac_status); }; } &&
28808          { ac_try='test -s conftest.$ac_objext'
28809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28810   (eval $ac_try) 2>&5
28811   ac_status=$?
28812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28813   (exit $ac_status); }; }; then
28814   ac_cv_cxx_have_gnu_ext_hash_map=yes
28815 else
28816   echo "$as_me: failed program was:" >&5
28817 sed 's/^/| /' conftest.$ac_ext >&5
28818
28819 ac_cv_cxx_have_gnu_ext_hash_map=no
28820 fi
28821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28822   ac_ext=c
28823 ac_cpp='$CPP $CPPFLAGS'
28824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28827
28828 fi
28829 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28830 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28831  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28832  then
28833
28834 cat >>confdefs.h <<\_ACEOF
28835 #define HAVE_GNU_EXT_HASH_MAP 1
28836 _ACEOF
28837
28838  else
28839
28840 cat >>confdefs.h <<\_ACEOF
28841 #define HAVE_GNU_EXT_HASH_MAP 0
28842 _ACEOF
28843
28844  fi
28845
28846  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28847 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28848 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28849   echo $ECHO_N "(cached) $ECHO_C" >&6
28850 else
28851
28852   ac_ext=cc
28853 ac_cpp='$CXXCPP $CPPFLAGS'
28854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28857
28858   cat >conftest.$ac_ext <<_ACEOF
28859 /* confdefs.h.  */
28860 _ACEOF
28861 cat confdefs.h >>conftest.$ac_ext
28862 cat >>conftest.$ac_ext <<_ACEOF
28863 /* end confdefs.h.  */
28864 #include <hash_map>
28865 int
28866 main ()
28867 {
28868 hash_map<int,int> t;
28869   ;
28870   return 0;
28871 }
28872 _ACEOF
28873 rm -f conftest.$ac_objext
28874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28875   (eval $ac_compile) 2>conftest.er1
28876   ac_status=$?
28877   grep -v '^ *+' conftest.er1 >conftest.err
28878   rm -f conftest.er1
28879   cat conftest.err >&5
28880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881   (exit $ac_status); } &&
28882          { ac_try='test -z "$ac_cxx_werror_flag"
28883                          || test ! -s conftest.err'
28884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28885   (eval $ac_try) 2>&5
28886   ac_status=$?
28887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28888   (exit $ac_status); }; } &&
28889          { ac_try='test -s conftest.$ac_objext'
28890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28891   (eval $ac_try) 2>&5
28892   ac_status=$?
28893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894   (exit $ac_status); }; }; then
28895   ac_cv_cxx_have_global_hash_map=yes
28896 else
28897   echo "$as_me: failed program was:" >&5
28898 sed 's/^/| /' conftest.$ac_ext >&5
28899
28900 ac_cv_cxx_have_global_hash_map=no
28901 fi
28902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28903   ac_ext=c
28904 ac_cpp='$CPP $CPPFLAGS'
28905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28908
28909 fi
28910 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28911 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
28912  if test "$ac_cv_cxx_have_global_hash_map" = yes
28913  then
28914
28915 cat >>confdefs.h <<\_ACEOF
28916 #define HAVE_GLOBAL_HASH_MAP 1
28917 _ACEOF
28918
28919  else
28920
28921 cat >>confdefs.h <<\_ACEOF
28922 #define HAVE_GLOBAL_HASH_MAP 0
28923 _ACEOF
28924
28925  fi
28926
28927 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28928 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28929 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
28930   echo $ECHO_N "(cached) $ECHO_C" >&6
28931 else
28932
28933   ac_ext=cc
28934 ac_cpp='$CXXCPP $CPPFLAGS'
28935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28938
28939   cat >conftest.$ac_ext <<_ACEOF
28940 /* confdefs.h.  */
28941 _ACEOF
28942 cat confdefs.h >>conftest.$ac_ext
28943 cat >>conftest.$ac_ext <<_ACEOF
28944 /* end confdefs.h.  */
28945 #include <ext/hash_set>
28946 #ifdef HAVE_NAMESPACES
28947 using namespace std;
28948 #endif
28949 int
28950 main ()
28951 {
28952 hash_set<int> t;
28953   ;
28954   return 0;
28955 }
28956 _ACEOF
28957 rm -f conftest.$ac_objext
28958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28959   (eval $ac_compile) 2>conftest.er1
28960   ac_status=$?
28961   grep -v '^ *+' conftest.er1 >conftest.err
28962   rm -f conftest.er1
28963   cat conftest.err >&5
28964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965   (exit $ac_status); } &&
28966          { ac_try='test -z "$ac_cxx_werror_flag"
28967                          || test ! -s conftest.err'
28968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28969   (eval $ac_try) 2>&5
28970   ac_status=$?
28971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972   (exit $ac_status); }; } &&
28973          { ac_try='test -s conftest.$ac_objext'
28974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28975   (eval $ac_try) 2>&5
28976   ac_status=$?
28977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978   (exit $ac_status); }; }; then
28979   ac_cv_cxx_have_std_ext_hash_set=yes
28980 else
28981   echo "$as_me: failed program was:" >&5
28982 sed 's/^/| /' conftest.$ac_ext >&5
28983
28984 ac_cv_cxx_have_std_ext_hash_set=no
28985 fi
28986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28987   ac_ext=c
28988 ac_cpp='$CPP $CPPFLAGS'
28989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28992
28993 fi
28994 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28995 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
28996  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28997  then
28998
28999 cat >>confdefs.h <<\_ACEOF
29000 #define HAVE_STD_EXT_HASH_SET 1
29001 _ACEOF
29002
29003  else
29004
29005 cat >>confdefs.h <<\_ACEOF
29006 #define HAVE_STD_EXT_HASH_SET 0
29007 _ACEOF
29008
29009  fi
29010
29011  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29012 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29013 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29014   echo $ECHO_N "(cached) $ECHO_C" >&6
29015 else
29016
29017   ac_ext=cc
29018 ac_cpp='$CXXCPP $CPPFLAGS'
29019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29022
29023   cat >conftest.$ac_ext <<_ACEOF
29024 /* confdefs.h.  */
29025 _ACEOF
29026 cat confdefs.h >>conftest.$ac_ext
29027 cat >>conftest.$ac_ext <<_ACEOF
29028 /* end confdefs.h.  */
29029 #include <ext/hash_set>
29030 #ifdef HAVE_NAMESPACES
29031 using namespace __gnu_cxx;
29032 #endif
29033 int
29034 main ()
29035 {
29036 hash_set<int> t;
29037   ;
29038   return 0;
29039 }
29040 _ACEOF
29041 rm -f conftest.$ac_objext
29042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29043   (eval $ac_compile) 2>conftest.er1
29044   ac_status=$?
29045   grep -v '^ *+' conftest.er1 >conftest.err
29046   rm -f conftest.er1
29047   cat conftest.err >&5
29048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29049   (exit $ac_status); } &&
29050          { ac_try='test -z "$ac_cxx_werror_flag"
29051                          || test ! -s conftest.err'
29052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29053   (eval $ac_try) 2>&5
29054   ac_status=$?
29055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056   (exit $ac_status); }; } &&
29057          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
29063   ac_cv_cxx_have_gnu_ext_hash_set=yes
29064 else
29065   echo "$as_me: failed program was:" >&5
29066 sed 's/^/| /' conftest.$ac_ext >&5
29067
29068 ac_cv_cxx_have_gnu_ext_hash_set=no
29069 fi
29070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29071   ac_ext=c
29072 ac_cpp='$CPP $CPPFLAGS'
29073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29076
29077 fi
29078 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29079 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29080  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29081  then
29082
29083 cat >>confdefs.h <<\_ACEOF
29084 #define HAVE_GNU_EXT_HASH_SET 1
29085 _ACEOF
29086
29087  else
29088
29089 cat >>confdefs.h <<\_ACEOF
29090 #define HAVE_GNU_EXT_HASH_SET 0
29091 _ACEOF
29092
29093  fi
29094
29095  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29096 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29097 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29098   echo $ECHO_N "(cached) $ECHO_C" >&6
29099 else
29100
29101   ac_ext=cc
29102 ac_cpp='$CXXCPP $CPPFLAGS'
29103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29106
29107   cat >conftest.$ac_ext <<_ACEOF
29108 /* confdefs.h.  */
29109 _ACEOF
29110 cat confdefs.h >>conftest.$ac_ext
29111 cat >>conftest.$ac_ext <<_ACEOF
29112 /* end confdefs.h.  */
29113 #include <hash_set>
29114 int
29115 main ()
29116 {
29117 hash_set<int> t; return 0;
29118   ;
29119   return 0;
29120 }
29121 _ACEOF
29122 rm -f conftest.$ac_objext
29123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29124   (eval $ac_compile) 2>conftest.er1
29125   ac_status=$?
29126   grep -v '^ *+' conftest.er1 >conftest.err
29127   rm -f conftest.er1
29128   cat conftest.err >&5
29129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130   (exit $ac_status); } &&
29131          { ac_try='test -z "$ac_cxx_werror_flag"
29132                          || test ! -s conftest.err'
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); }; } &&
29138          { ac_try='test -s conftest.$ac_objext'
29139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29140   (eval $ac_try) 2>&5
29141   ac_status=$?
29142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143   (exit $ac_status); }; }; then
29144   ac_cv_cxx_have_global_hash_set=yes
29145 else
29146   echo "$as_me: failed program was:" >&5
29147 sed 's/^/| /' conftest.$ac_ext >&5
29148
29149 ac_cv_cxx_have_global_hash_set=no
29150 fi
29151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29152   ac_ext=c
29153 ac_cpp='$CPP $CPPFLAGS'
29154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29157
29158 fi
29159 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29160 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29161  if test "$ac_cv_cxx_have_global_hash_set" = yes
29162  then
29163
29164 cat >>confdefs.h <<\_ACEOF
29165 #define HAVE_GLOBAL_HASH_SET 1
29166 _ACEOF
29167
29168  else
29169
29170 cat >>confdefs.h <<\_ACEOF
29171 #define HAVE_GLOBAL_HASH_SET 0
29172 _ACEOF
29173
29174  fi
29175
29176 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29177 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29178 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29179   echo $ECHO_N "(cached) $ECHO_C" >&6
29180 else
29181
29182   ac_ext=cc
29183 ac_cpp='$CXXCPP $CPPFLAGS'
29184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29187
29188   cat >conftest.$ac_ext <<_ACEOF
29189 /* confdefs.h.  */
29190 _ACEOF
29191 cat confdefs.h >>conftest.$ac_ext
29192 cat >>conftest.$ac_ext <<_ACEOF
29193 /* end confdefs.h.  */
29194 #include <iterator>
29195 #ifdef HAVE_NAMESPACES
29196 using namespace std;
29197 #endif
29198 int
29199 main ()
29200 {
29201 iterator<int,int,int> t; return 0;
29202   ;
29203   return 0;
29204 }
29205 _ACEOF
29206 rm -f conftest.$ac_objext
29207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29208   (eval $ac_compile) 2>conftest.er1
29209   ac_status=$?
29210   grep -v '^ *+' conftest.er1 >conftest.err
29211   rm -f conftest.er1
29212   cat conftest.err >&5
29213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214   (exit $ac_status); } &&
29215          { ac_try='test -z "$ac_cxx_werror_flag"
29216                          || test ! -s conftest.err'
29217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29218   (eval $ac_try) 2>&5
29219   ac_status=$?
29220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221   (exit $ac_status); }; } &&
29222          { ac_try='test -s conftest.$ac_objext'
29223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29224   (eval $ac_try) 2>&5
29225   ac_status=$?
29226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227   (exit $ac_status); }; }; then
29228   ac_cv_cxx_have_std_iterator=yes
29229 else
29230   echo "$as_me: failed program was:" >&5
29231 sed 's/^/| /' conftest.$ac_ext >&5
29232
29233 ac_cv_cxx_have_std_iterator=no
29234 fi
29235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29236   ac_ext=c
29237 ac_cpp='$CPP $CPPFLAGS'
29238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29241
29242
29243 fi
29244 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29245 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29246 if test "$ac_cv_cxx_have_std_iterator" = yes
29247 then
29248
29249 cat >>confdefs.h <<\_ACEOF
29250 #define HAVE_STD_ITERATOR 1
29251 _ACEOF
29252
29253 else
29254
29255 cat >>confdefs.h <<\_ACEOF
29256 #define HAVE_STD_ITERATOR 0
29257 _ACEOF
29258
29259 fi
29260
29261 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29262 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29263 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29264   echo $ECHO_N "(cached) $ECHO_C" >&6
29265 else
29266
29267   ac_ext=cc
29268 ac_cpp='$CXXCPP $CPPFLAGS'
29269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29272
29273   cat >conftest.$ac_ext <<_ACEOF
29274 /* confdefs.h.  */
29275 _ACEOF
29276 cat confdefs.h >>conftest.$ac_ext
29277 cat >>conftest.$ac_ext <<_ACEOF
29278 /* end confdefs.h.  */
29279 #include <iterator>
29280 #ifdef HAVE_NAMESPACES
29281 using namespace std;
29282 #endif
29283 int
29284 main ()
29285 {
29286 bidirectional_iterator<int,int> t; return 0;
29287   ;
29288   return 0;
29289 }
29290 _ACEOF
29291 rm -f conftest.$ac_objext
29292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29293   (eval $ac_compile) 2>conftest.er1
29294   ac_status=$?
29295   grep -v '^ *+' conftest.er1 >conftest.err
29296   rm -f conftest.er1
29297   cat conftest.err >&5
29298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299   (exit $ac_status); } &&
29300          { ac_try='test -z "$ac_cxx_werror_flag"
29301                          || test ! -s conftest.err'
29302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29303   (eval $ac_try) 2>&5
29304   ac_status=$?
29305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306   (exit $ac_status); }; } &&
29307          { ac_try='test -s conftest.$ac_objext'
29308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29309   (eval $ac_try) 2>&5
29310   ac_status=$?
29311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312   (exit $ac_status); }; }; then
29313   ac_cv_cxx_have_bi_iterator=yes
29314 else
29315   echo "$as_me: failed program was:" >&5
29316 sed 's/^/| /' conftest.$ac_ext >&5
29317
29318 ac_cv_cxx_have_bi_iterator=no
29319 fi
29320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29321   ac_ext=c
29322 ac_cpp='$CPP $CPPFLAGS'
29323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29326
29327
29328 fi
29329 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29330 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29331 if test "$ac_cv_cxx_have_bi_iterator" = yes
29332 then
29333
29334 cat >>confdefs.h <<\_ACEOF
29335 #define HAVE_BI_ITERATOR 1
29336 _ACEOF
29337
29338 else
29339
29340 cat >>confdefs.h <<\_ACEOF
29341 #define HAVE_BI_ITERATOR 0
29342 _ACEOF
29343
29344 fi
29345
29346 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29347 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29348 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29349   echo $ECHO_N "(cached) $ECHO_C" >&6
29350 else
29351
29352   ac_ext=cc
29353 ac_cpp='$CXXCPP $CPPFLAGS'
29354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29357
29358   cat >conftest.$ac_ext <<_ACEOF
29359 /* confdefs.h.  */
29360 _ACEOF
29361 cat confdefs.h >>conftest.$ac_ext
29362 cat >>conftest.$ac_ext <<_ACEOF
29363 /* end confdefs.h.  */
29364 #include <iterator>
29365 #ifdef HAVE_NAMESPACES
29366 using namespace std;
29367 #endif
29368 int
29369 main ()
29370 {
29371 forward_iterator<int,int> t; return 0;
29372   ;
29373   return 0;
29374 }
29375 _ACEOF
29376 rm -f conftest.$ac_objext
29377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29378   (eval $ac_compile) 2>conftest.er1
29379   ac_status=$?
29380   grep -v '^ *+' conftest.er1 >conftest.err
29381   rm -f conftest.er1
29382   cat conftest.err >&5
29383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384   (exit $ac_status); } &&
29385          { ac_try='test -z "$ac_cxx_werror_flag"
29386                          || test ! -s conftest.err'
29387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29388   (eval $ac_try) 2>&5
29389   ac_status=$?
29390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391   (exit $ac_status); }; } &&
29392          { ac_try='test -s conftest.$ac_objext'
29393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29394   (eval $ac_try) 2>&5
29395   ac_status=$?
29396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397   (exit $ac_status); }; }; then
29398   ac_cv_cxx_have_fwd_iterator=yes
29399 else
29400   echo "$as_me: failed program was:" >&5
29401 sed 's/^/| /' conftest.$ac_ext >&5
29402
29403 ac_cv_cxx_have_fwd_iterator=no
29404 fi
29405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29406   ac_ext=c
29407 ac_cpp='$CPP $CPPFLAGS'
29408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29411
29412
29413 fi
29414 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29415 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29416 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29417 then
29418
29419 cat >>confdefs.h <<\_ACEOF
29420 #define HAVE_FWD_ITERATOR 1
29421 _ACEOF
29422
29423 else
29424
29425 cat >>confdefs.h <<\_ACEOF
29426 #define HAVE_FWD_ITERATOR 0
29427 _ACEOF
29428
29429 fi
29430
29431
29432 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29433 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29434 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29435   echo $ECHO_N "(cached) $ECHO_C" >&6
29436 else
29437   ac_ext=cc
29438 ac_cpp='$CXXCPP $CPPFLAGS'
29439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29442
29443    cat >conftest.$ac_ext <<_ACEOF
29444 /* confdefs.h.  */
29445 _ACEOF
29446 cat confdefs.h >>conftest.$ac_ext
29447 cat >>conftest.$ac_ext <<_ACEOF
29448 /* end confdefs.h.  */
29449 #include <math.h>
29450 int
29451 main ()
29452 {
29453 float f; isnan(f);
29454   ;
29455   return 0;
29456 }
29457 _ACEOF
29458 rm -f conftest.$ac_objext
29459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29460   (eval $ac_compile) 2>conftest.er1
29461   ac_status=$?
29462   grep -v '^ *+' conftest.er1 >conftest.err
29463   rm -f conftest.er1
29464   cat conftest.err >&5
29465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29466   (exit $ac_status); } &&
29467          { ac_try='test -z "$ac_cxx_werror_flag"
29468                          || test ! -s conftest.err'
29469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29470   (eval $ac_try) 2>&5
29471   ac_status=$?
29472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473   (exit $ac_status); }; } &&
29474          { ac_try='test -s conftest.$ac_objext'
29475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29476   (eval $ac_try) 2>&5
29477   ac_status=$?
29478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479   (exit $ac_status); }; }; then
29480   ac_cv_func_isnan_in_math_h=yes
29481 else
29482   echo "$as_me: failed program was:" >&5
29483 sed 's/^/| /' conftest.$ac_ext >&5
29484
29485 ac_cv_func_isnan_in_math_h=no
29486 fi
29487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29488   ac_ext=c
29489 ac_cpp='$CPP $CPPFLAGS'
29490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29493
29494 fi
29495 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29496 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29497
29498
29499 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29500
29501 cat >>confdefs.h <<\_ACEOF
29502 #define HAVE_ISNAN_IN_MATH_H 1
29503 _ACEOF
29504
29505 fi
29506
29507 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29508 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29509 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29510   echo $ECHO_N "(cached) $ECHO_C" >&6
29511 else
29512   ac_ext=cc
29513 ac_cpp='$CXXCPP $CPPFLAGS'
29514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29517
29518    cat >conftest.$ac_ext <<_ACEOF
29519 /* confdefs.h.  */
29520 _ACEOF
29521 cat confdefs.h >>conftest.$ac_ext
29522 cat >>conftest.$ac_ext <<_ACEOF
29523 /* end confdefs.h.  */
29524 #include <cmath>
29525 int
29526 main ()
29527 {
29528 float f; isnan(f);
29529   ;
29530   return 0;
29531 }
29532 _ACEOF
29533 rm -f conftest.$ac_objext
29534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29535   (eval $ac_compile) 2>conftest.er1
29536   ac_status=$?
29537   grep -v '^ *+' conftest.er1 >conftest.err
29538   rm -f conftest.er1
29539   cat conftest.err >&5
29540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541   (exit $ac_status); } &&
29542          { ac_try='test -z "$ac_cxx_werror_flag"
29543                          || test ! -s conftest.err'
29544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29545   (eval $ac_try) 2>&5
29546   ac_status=$?
29547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548   (exit $ac_status); }; } &&
29549          { ac_try='test -s conftest.$ac_objext'
29550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29551   (eval $ac_try) 2>&5
29552   ac_status=$?
29553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554   (exit $ac_status); }; }; then
29555   ac_cv_func_isnan_in_cmath=yes
29556 else
29557   echo "$as_me: failed program was:" >&5
29558 sed 's/^/| /' conftest.$ac_ext >&5
29559
29560 ac_cv_func_isnan_in_cmath=no
29561 fi
29562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29563   ac_ext=c
29564 ac_cpp='$CPP $CPPFLAGS'
29565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29568
29569 fi
29570 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29571 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29572
29573 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29574
29575 cat >>confdefs.h <<\_ACEOF
29576 #define HAVE_ISNAN_IN_CMATH 1
29577 _ACEOF
29578
29579 fi
29580
29581 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29582 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29583 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29584   echo $ECHO_N "(cached) $ECHO_C" >&6
29585 else
29586   ac_ext=cc
29587 ac_cpp='$CXXCPP $CPPFLAGS'
29588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29591
29592    cat >conftest.$ac_ext <<_ACEOF
29593 /* confdefs.h.  */
29594 _ACEOF
29595 cat confdefs.h >>conftest.$ac_ext
29596 cat >>conftest.$ac_ext <<_ACEOF
29597 /* end confdefs.h.  */
29598 #include <cmath>
29599 int
29600 main ()
29601 {
29602 float f; std::isnan(f);
29603   ;
29604   return 0;
29605 }
29606 _ACEOF
29607 rm -f conftest.$ac_objext
29608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29609   (eval $ac_compile) 2>conftest.er1
29610   ac_status=$?
29611   grep -v '^ *+' conftest.er1 >conftest.err
29612   rm -f conftest.er1
29613   cat conftest.err >&5
29614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615   (exit $ac_status); } &&
29616          { ac_try='test -z "$ac_cxx_werror_flag"
29617                          || test ! -s conftest.err'
29618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29619   (eval $ac_try) 2>&5
29620   ac_status=$?
29621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29622   (exit $ac_status); }; } &&
29623          { ac_try='test -s conftest.$ac_objext'
29624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29625   (eval $ac_try) 2>&5
29626   ac_status=$?
29627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29628   (exit $ac_status); }; }; then
29629   ac_cv_func_std_isnan_in_cmath=yes
29630 else
29631   echo "$as_me: failed program was:" >&5
29632 sed 's/^/| /' conftest.$ac_ext >&5
29633
29634 ac_cv_func_std_isnan_in_cmath=no
29635 fi
29636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29637   ac_ext=c
29638 ac_cpp='$CPP $CPPFLAGS'
29639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29642
29643 fi
29644 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29645 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29646
29647 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29648
29649 cat >>confdefs.h <<\_ACEOF
29650 #define HAVE_STD_ISNAN_IN_CMATH 1
29651 _ACEOF
29652
29653 fi
29654
29655
29656 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29657 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29658 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29659   echo $ECHO_N "(cached) $ECHO_C" >&6
29660 else
29661   ac_ext=cc
29662 ac_cpp='$CXXCPP $CPPFLAGS'
29663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29666
29667    cat >conftest.$ac_ext <<_ACEOF
29668 /* confdefs.h.  */
29669 _ACEOF
29670 cat confdefs.h >>conftest.$ac_ext
29671 cat >>conftest.$ac_ext <<_ACEOF
29672 /* end confdefs.h.  */
29673 #include <math.h>
29674 int
29675 main ()
29676 {
29677 float f; isinf(f);
29678   ;
29679   return 0;
29680 }
29681 _ACEOF
29682 rm -f conftest.$ac_objext
29683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29684   (eval $ac_compile) 2>conftest.er1
29685   ac_status=$?
29686   grep -v '^ *+' conftest.er1 >conftest.err
29687   rm -f conftest.er1
29688   cat conftest.err >&5
29689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29690   (exit $ac_status); } &&
29691          { ac_try='test -z "$ac_cxx_werror_flag"
29692                          || test ! -s conftest.err'
29693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29694   (eval $ac_try) 2>&5
29695   ac_status=$?
29696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29697   (exit $ac_status); }; } &&
29698          { ac_try='test -s conftest.$ac_objext'
29699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29700   (eval $ac_try) 2>&5
29701   ac_status=$?
29702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703   (exit $ac_status); }; }; then
29704   ac_cv_func_isinf_in_math_h=yes
29705 else
29706   echo "$as_me: failed program was:" >&5
29707 sed 's/^/| /' conftest.$ac_ext >&5
29708
29709 ac_cv_func_isinf_in_math_h=no
29710 fi
29711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29712   ac_ext=c
29713 ac_cpp='$CPP $CPPFLAGS'
29714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29717
29718 fi
29719 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29720 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29721
29722 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29723
29724 cat >>confdefs.h <<\_ACEOF
29725 #define HAVE_ISINF_IN_MATH_H 1
29726 _ACEOF
29727
29728 fi
29729
29730 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29731 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29732 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29733   echo $ECHO_N "(cached) $ECHO_C" >&6
29734 else
29735   ac_ext=cc
29736 ac_cpp='$CXXCPP $CPPFLAGS'
29737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29740
29741    cat >conftest.$ac_ext <<_ACEOF
29742 /* confdefs.h.  */
29743 _ACEOF
29744 cat confdefs.h >>conftest.$ac_ext
29745 cat >>conftest.$ac_ext <<_ACEOF
29746 /* end confdefs.h.  */
29747 #include <cmath>
29748 int
29749 main ()
29750 {
29751 float f; isinf(f);
29752   ;
29753   return 0;
29754 }
29755 _ACEOF
29756 rm -f conftest.$ac_objext
29757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29758   (eval $ac_compile) 2>conftest.er1
29759   ac_status=$?
29760   grep -v '^ *+' conftest.er1 >conftest.err
29761   rm -f conftest.er1
29762   cat conftest.err >&5
29763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764   (exit $ac_status); } &&
29765          { ac_try='test -z "$ac_cxx_werror_flag"
29766                          || test ! -s conftest.err'
29767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29768   (eval $ac_try) 2>&5
29769   ac_status=$?
29770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29771   (exit $ac_status); }; } &&
29772          { ac_try='test -s conftest.$ac_objext'
29773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29774   (eval $ac_try) 2>&5
29775   ac_status=$?
29776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777   (exit $ac_status); }; }; then
29778   ac_cv_func_isinf_in_cmath=yes
29779 else
29780   echo "$as_me: failed program was:" >&5
29781 sed 's/^/| /' conftest.$ac_ext >&5
29782
29783 ac_cv_func_isinf_in_cmath=no
29784 fi
29785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29786   ac_ext=c
29787 ac_cpp='$CPP $CPPFLAGS'
29788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29791
29792 fi
29793 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29794 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29795
29796 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29797
29798 cat >>confdefs.h <<\_ACEOF
29799 #define HAVE_ISINF_IN_CMATH 1
29800 _ACEOF
29801
29802 fi
29803
29804 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29805 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29806 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29807   echo $ECHO_N "(cached) $ECHO_C" >&6
29808 else
29809   ac_ext=cc
29810 ac_cpp='$CXXCPP $CPPFLAGS'
29811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29814
29815    cat >conftest.$ac_ext <<_ACEOF
29816 /* confdefs.h.  */
29817 _ACEOF
29818 cat confdefs.h >>conftest.$ac_ext
29819 cat >>conftest.$ac_ext <<_ACEOF
29820 /* end confdefs.h.  */
29821 #include <cmath>
29822 int
29823 main ()
29824 {
29825 float f; std::isinf(f)}
29826   ;
29827   return 0;
29828 }
29829 _ACEOF
29830 rm -f conftest.$ac_objext
29831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29832   (eval $ac_compile) 2>conftest.er1
29833   ac_status=$?
29834   grep -v '^ *+' conftest.er1 >conftest.err
29835   rm -f conftest.er1
29836   cat conftest.err >&5
29837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838   (exit $ac_status); } &&
29839          { ac_try='test -z "$ac_cxx_werror_flag"
29840                          || test ! -s conftest.err'
29841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29842   (eval $ac_try) 2>&5
29843   ac_status=$?
29844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845   (exit $ac_status); }; } &&
29846          { ac_try='test -s conftest.$ac_objext'
29847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29848   (eval $ac_try) 2>&5
29849   ac_status=$?
29850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851   (exit $ac_status); }; }; then
29852   ac_cv_func_std_isinf_in_cmath=yes
29853 else
29854   echo "$as_me: failed program was:" >&5
29855 sed 's/^/| /' conftest.$ac_ext >&5
29856
29857 ac_cv_func_std_isinf_in_cmath=no
29858 fi
29859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29860   ac_ext=c
29861 ac_cpp='$CPP $CPPFLAGS'
29862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29865
29866 fi
29867 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29868 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29869
29870 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29871
29872 cat >>confdefs.h <<\_ACEOF
29873 #define HAVE_STD_ISINF_IN_CMATH 1
29874 _ACEOF
29875
29876 fi
29877
29878 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29879 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29880 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29881   echo $ECHO_N "(cached) $ECHO_C" >&6
29882 else
29883   ac_ext=cc
29884 ac_cpp='$CXXCPP $CPPFLAGS'
29885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29888
29889    cat >conftest.$ac_ext <<_ACEOF
29890 /* confdefs.h.  */
29891 _ACEOF
29892 cat confdefs.h >>conftest.$ac_ext
29893 cat >>conftest.$ac_ext <<_ACEOF
29894 /* end confdefs.h.  */
29895 #include <ieeefp.h>
29896 int
29897 main ()
29898 {
29899 float f; finite(f);
29900   ;
29901   return 0;
29902 }
29903 _ACEOF
29904 rm -f conftest.$ac_objext
29905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29906   (eval $ac_compile) 2>conftest.er1
29907   ac_status=$?
29908   grep -v '^ *+' conftest.er1 >conftest.err
29909   rm -f conftest.er1
29910   cat conftest.err >&5
29911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29912   (exit $ac_status); } &&
29913          { ac_try='test -z "$ac_cxx_werror_flag"
29914                          || test ! -s conftest.err'
29915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29916   (eval $ac_try) 2>&5
29917   ac_status=$?
29918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29919   (exit $ac_status); }; } &&
29920          { ac_try='test -s conftest.$ac_objext'
29921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29922   (eval $ac_try) 2>&5
29923   ac_status=$?
29924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925   (exit $ac_status); }; }; then
29926   ac_cv_func_finite_in_ieeefp_h=yes
29927 else
29928   echo "$as_me: failed program was:" >&5
29929 sed 's/^/| /' conftest.$ac_ext >&5
29930
29931 ac_cv_func_finite_in_ieeefp_h=no
29932 fi
29933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29934   ac_ext=c
29935 ac_cpp='$CPP $CPPFLAGS'
29936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29939
29940 fi
29941 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29942 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
29943
29944 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
29945
29946 cat >>confdefs.h <<\_ACEOF
29947 #define HAVE_FINITE_IN_IEEEFP_H 1
29948 _ACEOF
29949
29950 fi
29951
29952
29953
29954
29955
29956 for ac_header in stdlib.h unistd.h
29957 do
29958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29960   echo "$as_me:$LINENO: checking for $ac_header" >&5
29961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29963   echo $ECHO_N "(cached) $ECHO_C" >&6
29964 fi
29965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29967 else
29968   # Is the header compilable?
29969 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29971 cat >conftest.$ac_ext <<_ACEOF
29972 /* confdefs.h.  */
29973 _ACEOF
29974 cat confdefs.h >>conftest.$ac_ext
29975 cat >>conftest.$ac_ext <<_ACEOF
29976 /* end confdefs.h.  */
29977 $ac_includes_default
29978 #include <$ac_header>
29979 _ACEOF
29980 rm -f conftest.$ac_objext
29981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29982   (eval $ac_compile) 2>conftest.er1
29983   ac_status=$?
29984   grep -v '^ *+' conftest.er1 >conftest.err
29985   rm -f conftest.er1
29986   cat conftest.err >&5
29987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29988   (exit $ac_status); } &&
29989          { ac_try='test -z "$ac_c_werror_flag"
29990                          || test ! -s conftest.err'
29991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29992   (eval $ac_try) 2>&5
29993   ac_status=$?
29994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29995   (exit $ac_status); }; } &&
29996          { ac_try='test -s conftest.$ac_objext'
29997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29998   (eval $ac_try) 2>&5
29999   ac_status=$?
30000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001   (exit $ac_status); }; }; then
30002   ac_header_compiler=yes
30003 else
30004   echo "$as_me: failed program was:" >&5
30005 sed 's/^/| /' conftest.$ac_ext >&5
30006
30007 ac_header_compiler=no
30008 fi
30009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30010 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30011 echo "${ECHO_T}$ac_header_compiler" >&6
30012
30013 # Is the header present?
30014 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30015 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30016 cat >conftest.$ac_ext <<_ACEOF
30017 /* confdefs.h.  */
30018 _ACEOF
30019 cat confdefs.h >>conftest.$ac_ext
30020 cat >>conftest.$ac_ext <<_ACEOF
30021 /* end confdefs.h.  */
30022 #include <$ac_header>
30023 _ACEOF
30024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30025   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30026   ac_status=$?
30027   grep -v '^ *+' conftest.er1 >conftest.err
30028   rm -f conftest.er1
30029   cat conftest.err >&5
30030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30031   (exit $ac_status); } >/dev/null; then
30032   if test -s conftest.err; then
30033     ac_cpp_err=$ac_c_preproc_warn_flag
30034     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30035   else
30036     ac_cpp_err=
30037   fi
30038 else
30039   ac_cpp_err=yes
30040 fi
30041 if test -z "$ac_cpp_err"; then
30042   ac_header_preproc=yes
30043 else
30044   echo "$as_me: failed program was:" >&5
30045 sed 's/^/| /' conftest.$ac_ext >&5
30046
30047   ac_header_preproc=no
30048 fi
30049 rm -f conftest.err conftest.$ac_ext
30050 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30051 echo "${ECHO_T}$ac_header_preproc" >&6
30052
30053 # So?  What about this header?
30054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30055   yes:no: )
30056     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30060     ac_header_preproc=yes
30061     ;;
30062   no:yes:* )
30063     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30065     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30066 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30067     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30069     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30070 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30073     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30075     (
30076       cat <<\_ASBOX
30077 ## ----------------------------------- ##
30078 ## Report this to llvmbugs@cs.uiuc.edu ##
30079 ## ----------------------------------- ##
30080 _ASBOX
30081     ) |
30082       sed "s/^/$as_me: WARNING:     /" >&2
30083     ;;
30084 esac
30085 echo "$as_me:$LINENO: checking for $ac_header" >&5
30086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30088   echo $ECHO_N "(cached) $ECHO_C" >&6
30089 else
30090   eval "$as_ac_Header=\$ac_header_preproc"
30091 fi
30092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30094
30095 fi
30096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30097   cat >>confdefs.h <<_ACEOF
30098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30099 _ACEOF
30100
30101 fi
30102
30103 done
30104
30105
30106 for ac_func in getpagesize
30107 do
30108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30109 echo "$as_me:$LINENO: checking for $ac_func" >&5
30110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30111 if eval "test \"\${$as_ac_var+set}\" = set"; then
30112   echo $ECHO_N "(cached) $ECHO_C" >&6
30113 else
30114   cat >conftest.$ac_ext <<_ACEOF
30115 /* confdefs.h.  */
30116 _ACEOF
30117 cat confdefs.h >>conftest.$ac_ext
30118 cat >>conftest.$ac_ext <<_ACEOF
30119 /* end confdefs.h.  */
30120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30121    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30122 #define $ac_func innocuous_$ac_func
30123
30124 /* System header to define __stub macros and hopefully few prototypes,
30125     which can conflict with char $ac_func (); below.
30126     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30127     <limits.h> exists even on freestanding compilers.  */
30128
30129 #ifdef __STDC__
30130 # include <limits.h>
30131 #else
30132 # include <assert.h>
30133 #endif
30134
30135 #undef $ac_func
30136
30137 /* Override any gcc2 internal prototype to avoid an error.  */
30138 #ifdef __cplusplus
30139 extern "C"
30140 {
30141 #endif
30142 /* We use char because int might match the return type of a gcc2
30143    builtin and then its argument prototype would still apply.  */
30144 char $ac_func ();
30145 /* The GNU C library defines this for functions which it implements
30146     to always fail with ENOSYS.  Some functions are actually named
30147     something starting with __ and the normal name is an alias.  */
30148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30149 choke me
30150 #else
30151 char (*f) () = $ac_func;
30152 #endif
30153 #ifdef __cplusplus
30154 }
30155 #endif
30156
30157 int
30158 main ()
30159 {
30160 return f != $ac_func;
30161   ;
30162   return 0;
30163 }
30164 _ACEOF
30165 rm -f conftest.$ac_objext conftest$ac_exeext
30166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30167   (eval $ac_link) 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_c_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_exeext'
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   eval "$as_ac_var=yes"
30188 else
30189   echo "$as_me: failed program was:" >&5
30190 sed 's/^/| /' conftest.$ac_ext >&5
30191
30192 eval "$as_ac_var=no"
30193 fi
30194 rm -f conftest.err conftest.$ac_objext \
30195       conftest$ac_exeext conftest.$ac_ext
30196 fi
30197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30199 if test `eval echo '${'$as_ac_var'}'` = yes; then
30200   cat >>confdefs.h <<_ACEOF
30201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30202 _ACEOF
30203
30204 fi
30205 done
30206
30207 echo "$as_me:$LINENO: checking for working mmap" >&5
30208 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30209 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30210   echo $ECHO_N "(cached) $ECHO_C" >&6
30211 else
30212   if test "$cross_compiling" = yes; then
30213   ac_cv_func_mmap_fixed_mapped=no
30214 else
30215   cat >conftest.$ac_ext <<_ACEOF
30216 /* confdefs.h.  */
30217 _ACEOF
30218 cat confdefs.h >>conftest.$ac_ext
30219 cat >>conftest.$ac_ext <<_ACEOF
30220 /* end confdefs.h.  */
30221 $ac_includes_default
30222 /* malloc might have been renamed as rpl_malloc. */
30223 #undef malloc
30224
30225 /* Thanks to Mike Haertel and Jim Avera for this test.
30226    Here is a matrix of mmap possibilities:
30227         mmap private not fixed
30228         mmap private fixed at somewhere currently unmapped
30229         mmap private fixed at somewhere already mapped
30230         mmap shared not fixed
30231         mmap shared fixed at somewhere currently unmapped
30232         mmap shared fixed at somewhere already mapped
30233    For private mappings, we should verify that changes cannot be read()
30234    back from the file, nor mmap's back from the file at a different
30235    address.  (There have been systems where private was not correctly
30236    implemented like the infamous i386 svr4.0, and systems where the
30237    VM page cache was not coherent with the file system buffer cache
30238    like early versions of FreeBSD and possibly contemporary NetBSD.)
30239    For shared mappings, we should conversely verify that changes get
30240    propagated back to all the places they're supposed to be.
30241
30242    Grep wants private fixed already mapped.
30243    The main things grep needs to know about mmap are:
30244    * does it exist and is it safe to write into the mmap'd area
30245    * how to use it (BSD variants)  */
30246
30247 #include <fcntl.h>
30248 #include <sys/mman.h>
30249
30250 #if !STDC_HEADERS && !HAVE_STDLIB_H
30251 char *malloc ();
30252 #endif
30253
30254 /* This mess was copied from the GNU getpagesize.h.  */
30255 #if !HAVE_GETPAGESIZE
30256 /* Assume that all systems that can run configure have sys/param.h.  */
30257 # if !HAVE_SYS_PARAM_H
30258 #  define HAVE_SYS_PARAM_H 1
30259 # endif
30260
30261 # ifdef _SC_PAGESIZE
30262 #  define getpagesize() sysconf(_SC_PAGESIZE)
30263 # else /* no _SC_PAGESIZE */
30264 #  if HAVE_SYS_PARAM_H
30265 #   include <sys/param.h>
30266 #   ifdef EXEC_PAGESIZE
30267 #    define getpagesize() EXEC_PAGESIZE
30268 #   else /* no EXEC_PAGESIZE */
30269 #    ifdef NBPG
30270 #     define getpagesize() NBPG * CLSIZE
30271 #     ifndef CLSIZE
30272 #      define CLSIZE 1
30273 #     endif /* no CLSIZE */
30274 #    else /* no NBPG */
30275 #     ifdef NBPC
30276 #      define getpagesize() NBPC
30277 #     else /* no NBPC */
30278 #      ifdef PAGESIZE
30279 #       define getpagesize() PAGESIZE
30280 #      endif /* PAGESIZE */
30281 #     endif /* no NBPC */
30282 #    endif /* no NBPG */
30283 #   endif /* no EXEC_PAGESIZE */
30284 #  else /* no HAVE_SYS_PARAM_H */
30285 #   define getpagesize() 8192   /* punt totally */
30286 #  endif /* no HAVE_SYS_PARAM_H */
30287 # endif /* no _SC_PAGESIZE */
30288
30289 #endif /* no HAVE_GETPAGESIZE */
30290
30291 int
30292 main ()
30293 {
30294   char *data, *data2, *data3;
30295   int i, pagesize;
30296   int fd;
30297
30298   pagesize = getpagesize ();
30299
30300   /* First, make a file with some known garbage in it. */
30301   data = (char *) malloc (pagesize);
30302   if (!data)
30303     exit (1);
30304   for (i = 0; i < pagesize; ++i)
30305     *(data + i) = rand ();
30306   umask (0);
30307   fd = creat ("conftest.mmap", 0600);
30308   if (fd < 0)
30309     exit (1);
30310   if (write (fd, data, pagesize) != pagesize)
30311     exit (1);
30312   close (fd);
30313
30314   /* Next, try to mmap the file at a fixed address which already has
30315      something else allocated at it.  If we can, also make sure that
30316      we see the same garbage.  */
30317   fd = open ("conftest.mmap", O_RDWR);
30318   if (fd < 0)
30319     exit (1);
30320   data2 = (char *) malloc (2 * pagesize);
30321   if (!data2)
30322     exit (1);
30323   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30324   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30325                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
30326     exit (1);
30327   for (i = 0; i < pagesize; ++i)
30328     if (*(data + i) != *(data2 + i))
30329       exit (1);
30330
30331   /* Finally, make sure that changes to the mapped area do not
30332      percolate back to the file as seen by read().  (This is a bug on
30333      some variants of i386 svr4.0.)  */
30334   for (i = 0; i < pagesize; ++i)
30335     *(data2 + i) = *(data2 + i) + 1;
30336   data3 = (char *) malloc (pagesize);
30337   if (!data3)
30338     exit (1);
30339   if (read (fd, data3, pagesize) != pagesize)
30340     exit (1);
30341   for (i = 0; i < pagesize; ++i)
30342     if (*(data + i) != *(data3 + i))
30343       exit (1);
30344   close (fd);
30345   exit (0);
30346 }
30347 _ACEOF
30348 rm -f conftest$ac_exeext
30349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30350   (eval $ac_link) 2>&5
30351   ac_status=$?
30352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30353   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30355   (eval $ac_try) 2>&5
30356   ac_status=$?
30357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358   (exit $ac_status); }; }; then
30359   ac_cv_func_mmap_fixed_mapped=yes
30360 else
30361   echo "$as_me: program exited with status $ac_status" >&5
30362 echo "$as_me: failed program was:" >&5
30363 sed 's/^/| /' conftest.$ac_ext >&5
30364
30365 ( exit $ac_status )
30366 ac_cv_func_mmap_fixed_mapped=no
30367 fi
30368 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30369 fi
30370 fi
30371 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30372 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30373 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30374
30375 cat >>confdefs.h <<\_ACEOF
30376 #define HAVE_MMAP 1
30377 _ACEOF
30378
30379 fi
30380 rm -f conftest.mmap
30381
30382 echo "$as_me:$LINENO: checking for mmap of files" >&5
30383 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30384 if test "${ac_cv_func_mmap_file+set}" = set; then
30385   echo $ECHO_N "(cached) $ECHO_C" >&6
30386 else
30387    ac_ext=c
30388 ac_cpp='$CPP $CPPFLAGS'
30389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30392
30393   if test "$cross_compiling" = yes; then
30394   ac_cv_func_mmap_file=no
30395 else
30396   cat >conftest.$ac_ext <<_ACEOF
30397
30398     /* confdefs.h.  */
30399 _ACEOF
30400 cat confdefs.h >>conftest.$ac_ext
30401 cat >>conftest.$ac_ext <<_ACEOF
30402 /* end confdefs.h.  */
30403
30404 #include <sys/types.h>
30405 #include <sys/mman.h>
30406 #include <fcntl.h>
30407
30408 int
30409 main ()
30410 {
30411
30412   int fd;
30413   fd = creat ("foo",0777);
30414   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30415   unlink ("foo");
30416   return (fd != (int) MAP_FAILED);
30417   ;
30418   return 0;
30419 }
30420 _ACEOF
30421 rm -f conftest$ac_exeext
30422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30423   (eval $ac_link) 2>&5
30424   ac_status=$?
30425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30426   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30428   (eval $ac_try) 2>&5
30429   ac_status=$?
30430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30431   (exit $ac_status); }; }; then
30432   ac_cv_func_mmap_file=yes
30433 else
30434   echo "$as_me: program exited with status $ac_status" >&5
30435 echo "$as_me: failed program was:" >&5
30436 sed 's/^/| /' conftest.$ac_ext >&5
30437
30438 ( exit $ac_status )
30439 ac_cv_func_mmap_file=no
30440 fi
30441 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30442 fi
30443   ac_ext=c
30444 ac_cpp='$CPP $CPPFLAGS'
30445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30448
30449
30450 fi
30451 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30452 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30453 if test "$ac_cv_func_mmap_file" = yes; then
30454
30455 cat >>confdefs.h <<\_ACEOF
30456 #define HAVE_MMAP_FILE
30457 _ACEOF
30458
30459    MMAP_FILE=yes
30460
30461 fi
30462
30463 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30464 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30465 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30466   echo $ECHO_N "(cached) $ECHO_C" >&6
30467 else
30468   if test "$llvm_cv_os_type" = "Interix" ; then
30469    ac_cv_need_dev_zero_for_mmap=yes
30470  else
30471    ac_cv_need_dev_zero_for_mmap=no
30472  fi
30473
30474 fi
30475 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30476 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30477 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30478
30479 cat >>confdefs.h <<\_ACEOF
30480 #define NEED_DEV_ZERO_FOR_MMAP 1
30481 _ACEOF
30482
30483 fi
30484 echo "$as_me:$LINENO: checking for mprotect" >&5
30485 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30486 if test "${ac_cv_func_mprotect+set}" = set; then
30487   echo $ECHO_N "(cached) $ECHO_C" >&6
30488 else
30489   cat >conftest.$ac_ext <<_ACEOF
30490 /* confdefs.h.  */
30491 _ACEOF
30492 cat confdefs.h >>conftest.$ac_ext
30493 cat >>conftest.$ac_ext <<_ACEOF
30494 /* end confdefs.h.  */
30495 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30497 #define mprotect innocuous_mprotect
30498
30499 /* System header to define __stub macros and hopefully few prototypes,
30500     which can conflict with char mprotect (); below.
30501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30502     <limits.h> exists even on freestanding compilers.  */
30503
30504 #ifdef __STDC__
30505 # include <limits.h>
30506 #else
30507 # include <assert.h>
30508 #endif
30509
30510 #undef mprotect
30511
30512 /* Override any gcc2 internal prototype to avoid an error.  */
30513 #ifdef __cplusplus
30514 extern "C"
30515 {
30516 #endif
30517 /* We use char because int might match the return type of a gcc2
30518    builtin and then its argument prototype would still apply.  */
30519 char mprotect ();
30520 /* The GNU C library defines this for functions which it implements
30521     to always fail with ENOSYS.  Some functions are actually named
30522     something starting with __ and the normal name is an alias.  */
30523 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30524 choke me
30525 #else
30526 char (*f) () = mprotect;
30527 #endif
30528 #ifdef __cplusplus
30529 }
30530 #endif
30531
30532 int
30533 main ()
30534 {
30535 return f != mprotect;
30536   ;
30537   return 0;
30538 }
30539 _ACEOF
30540 rm -f conftest.$ac_objext conftest$ac_exeext
30541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30542   (eval $ac_link) 2>conftest.er1
30543   ac_status=$?
30544   grep -v '^ *+' conftest.er1 >conftest.err
30545   rm -f conftest.er1
30546   cat conftest.err >&5
30547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548   (exit $ac_status); } &&
30549          { ac_try='test -z "$ac_c_werror_flag"
30550                          || test ! -s conftest.err'
30551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30552   (eval $ac_try) 2>&5
30553   ac_status=$?
30554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30555   (exit $ac_status); }; } &&
30556          { ac_try='test -s conftest$ac_exeext'
30557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30558   (eval $ac_try) 2>&5
30559   ac_status=$?
30560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561   (exit $ac_status); }; }; then
30562   ac_cv_func_mprotect=yes
30563 else
30564   echo "$as_me: failed program was:" >&5
30565 sed 's/^/| /' conftest.$ac_ext >&5
30566
30567 ac_cv_func_mprotect=no
30568 fi
30569 rm -f conftest.err conftest.$ac_objext \
30570       conftest$ac_exeext conftest.$ac_ext
30571 fi
30572 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30573 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30574 if test $ac_cv_func_mprotect = yes; then
30575   :
30576 else
30577   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30578 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30579    { (exit 1); exit 1; }; }
30580 fi
30581
30582
30583 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30584 then
30585   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30586 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30587 fi
30588 if test "$ac_cv_func_mmap_file" = "no"
30589 then
30590   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30591 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30592 fi
30593
30594
30595 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30596 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30597 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30598   echo $ECHO_N "(cached) $ECHO_C" >&6
30599 else
30600   llvm_cv_llvmgcc_sanity="no"
30601 if test -x "$LLVMGCC" ; then
30602   cp /dev/null conftest.c
30603   "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
30604   if test $? -eq 0 ; then
30605     llvm_cv_llvmgcc_sanity="yes"
30606   fi
30607   rm conftest.c
30608 fi
30609 fi
30610 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30611 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30612
30613 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30614   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30615   LLVMCC1=$llvmcc1path
30616
30617   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30618   LLVMCC1PLUS=$llvmcc1pluspath
30619
30620   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30621   LLVMGCCDIR=$llvmgccdir
30622
30623 fi
30624
30625 SHLIBEXT=$libltdl_cv_shlibext
30626
30627
30628 # Translate the various configuration directories and other basic
30629 # information into substitutions that will end up in Makefile.config.in
30630 # that these configured values can be used by the makefiles
30631 eval LLVM_PREFIX="${prefix}";
30632 eval LLVM_BINDIR="${prefix}/bin";
30633 eval LLVM_LIBDIR="${prefix}/lib";
30634 eval LLVM_DATADIR="${prefix}/share/llvm";
30635 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30636 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30637 eval LLVM_INCLUDEDIR="${prefix}/include";
30638 eval LLVM_INFODIR="${prefix}/info";
30639 eval LLVM_MANDIR="${prefix}/man";
30640 LLVM_CONFIGTIME=`date`
30641
30642
30643
30644
30645
30646
30647
30648
30649
30650
30651
30652 # Place the various directores into the config.h file as #defines so that we
30653 # can know about the installation paths within LLVM.
30654
30655 cat >>confdefs.h <<_ACEOF
30656 #define LLVM_PREFIX "$LLVM_PREFIX"
30657 _ACEOF
30658
30659
30660 cat >>confdefs.h <<_ACEOF
30661 #define LLVM_BINDIR "$LLVM_BINDIR"
30662 _ACEOF
30663
30664
30665 cat >>confdefs.h <<_ACEOF
30666 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30667 _ACEOF
30668
30669
30670 cat >>confdefs.h <<_ACEOF
30671 #define LLVM_DATADIR "$LLVM_DATADIR"
30672 _ACEOF
30673
30674
30675 cat >>confdefs.h <<_ACEOF
30676 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30677 _ACEOF
30678
30679
30680 cat >>confdefs.h <<_ACEOF
30681 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30682 _ACEOF
30683
30684
30685 cat >>confdefs.h <<_ACEOF
30686 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30687 _ACEOF
30688
30689
30690 cat >>confdefs.h <<_ACEOF
30691 #define LLVM_INFODIR "$LLVM_INFODIR"
30692 _ACEOF
30693
30694
30695 cat >>confdefs.h <<_ACEOF
30696 #define LLVM_MANDIR "$LLVM_MANDIR"
30697 _ACEOF
30698
30699
30700 cat >>confdefs.h <<_ACEOF
30701 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30702 _ACEOF
30703
30704
30705
30706           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30707
30708           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30709
30710           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30711
30712           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30713
30714           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30715
30716
30717           ac_config_files="$ac_config_files Makefile.config"
30718
30719
30720           ac_config_files="$ac_config_files docs/doxygen.cfg"
30721
30722
30723           ac_config_commands="$ac_config_commands setup"
30724
30725           ac_config_commands="$ac_config_commands Makefile"
30726
30727
30728           ac_config_commands="$ac_config_commands Makefile.common"
30729
30730
30731           ac_config_commands="$ac_config_commands examples/Makefile"
30732
30733
30734           ac_config_commands="$ac_config_commands lib/Makefile"
30735
30736
30737           ac_config_commands="$ac_config_commands runtime/Makefile"
30738
30739
30740           ac_config_commands="$ac_config_commands test/Makefile"
30741
30742
30743           ac_config_commands="$ac_config_commands test/Makefile.tests"
30744
30745
30746           ac_config_commands="$ac_config_commands tools/Makefile"
30747
30748
30749           ac_config_commands="$ac_config_commands utils/Makefile"
30750
30751
30752           ac_config_commands="$ac_config_commands projects/Makefile"
30753
30754
30755
30756 cat >confcache <<\_ACEOF
30757 # This file is a shell script that caches the results of configure
30758 # tests run on this system so they can be shared between configure
30759 # scripts and configure runs, see configure's option --config-cache.
30760 # It is not useful on other systems.  If it contains results you don't
30761 # want to keep, you may remove or edit it.
30762 #
30763 # config.status only pays attention to the cache file if you give it
30764 # the --recheck option to rerun configure.
30765 #
30766 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30767 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30768 # following values.
30769
30770 _ACEOF
30771
30772 # The following way of writing the cache mishandles newlines in values,
30773 # but we know of no workaround that is simple, portable, and efficient.
30774 # So, don't put newlines in cache variables' values.
30775 # Ultrix sh set writes to stderr and can't be redirected directly,
30776 # and sets the high bit in the cache file unless we assign to the vars.
30777 {
30778   (set) 2>&1 |
30779     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30780     *ac_space=\ *)
30781       # `set' does not quote correctly, so add quotes (double-quote
30782       # substitution turns \\\\ into \\, and sed turns \\ into \).
30783       sed -n \
30784         "s/'/'\\\\''/g;
30785           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30786       ;;
30787     *)
30788       # `set' quotes correctly as required by POSIX, so do not add quotes.
30789       sed -n \
30790         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30791       ;;
30792     esac;
30793 } |
30794   sed '
30795      t clear
30796      : clear
30797      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30798      t end
30799      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30800      : end' >>confcache
30801 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30802   if test -w $cache_file; then
30803     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30804     cat confcache >$cache_file
30805   else
30806     echo "not updating unwritable cache $cache_file"
30807   fi
30808 fi
30809 rm -f confcache
30810
30811 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30812 # Let make expand exec_prefix.
30813 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30814
30815 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30816 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30817 # trailing colons and then remove the whole line if VPATH becomes empty
30818 # (actually we leave an empty line to preserve line numbers).
30819 if test "x$srcdir" = x.; then
30820   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30821 s/:*\$(srcdir):*/:/;
30822 s/:*\${srcdir}:*/:/;
30823 s/:*@srcdir@:*/:/;
30824 s/^\([^=]*=[     ]*\):*/\1/;
30825 s/:*$//;
30826 s/^[^=]*=[       ]*$//;
30827 }'
30828 fi
30829
30830 DEFS=-DHAVE_CONFIG_H
30831
30832 ac_libobjs=
30833 ac_ltlibobjs=
30834 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30835   # 1. Remove the extension, and $U if already installed.
30836   ac_i=`echo "$ac_i" |
30837          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30838   # 2. Add them.
30839   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30840   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30841 done
30842 LIBOBJS=$ac_libobjs
30843
30844 LTLIBOBJS=$ac_ltlibobjs
30845
30846
30847 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30848   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30849 Usually this means the macro was only invoked conditionally." >&5
30850 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30851 Usually this means the macro was only invoked conditionally." >&2;}
30852    { (exit 1); exit 1; }; }
30853 fi
30854 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30855   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30856 Usually this means the macro was only invoked conditionally." >&5
30857 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30858 Usually this means the macro was only invoked conditionally." >&2;}
30859    { (exit 1); exit 1; }; }
30860 fi
30861
30862 : ${CONFIG_STATUS=./config.status}
30863 ac_clean_files_save=$ac_clean_files
30864 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30865 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30866 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30867 cat >$CONFIG_STATUS <<_ACEOF
30868 #! $SHELL
30869 # Generated by $as_me.
30870 # Run this file to recreate the current configuration.
30871 # Compiler output produced by configure, useful for debugging
30872 # configure, is in config.log if it exists.
30873
30874 debug=false
30875 ac_cs_recheck=false
30876 ac_cs_silent=false
30877 SHELL=\${CONFIG_SHELL-$SHELL}
30878 _ACEOF
30879
30880 cat >>$CONFIG_STATUS <<\_ACEOF
30881 ## --------------------- ##
30882 ## M4sh Initialization.  ##
30883 ## --------------------- ##
30884
30885 # Be Bourne compatible
30886 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30887   emulate sh
30888   NULLCMD=:
30889   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30890   # is contrary to our usage.  Disable this feature.
30891   alias -g '${1+"$@"}'='"$@"'
30892 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30893   set -o posix
30894 fi
30895 DUALCASE=1; export DUALCASE # for MKS sh
30896
30897 # Support unset when possible.
30898 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30899   as_unset=unset
30900 else
30901   as_unset=false
30902 fi
30903
30904
30905 # Work around bugs in pre-3.0 UWIN ksh.
30906 $as_unset ENV MAIL MAILPATH
30907 PS1='$ '
30908 PS2='> '
30909 PS4='+ '
30910
30911 # NLS nuisances.
30912 for as_var in \
30913   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30914   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30915   LC_TELEPHONE LC_TIME
30916 do
30917   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30918     eval $as_var=C; export $as_var
30919   else
30920     $as_unset $as_var
30921   fi
30922 done
30923
30924 # Required to use basename.
30925 if expr a : '\(a\)' >/dev/null 2>&1; then
30926   as_expr=expr
30927 else
30928   as_expr=false
30929 fi
30930
30931 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30932   as_basename=basename
30933 else
30934   as_basename=false
30935 fi
30936
30937
30938 # Name of the executable.
30939 as_me=`$as_basename "$0" ||
30940 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30941          X"$0" : 'X\(//\)$' \| \
30942          X"$0" : 'X\(/\)$' \| \
30943          .     : '\(.\)' 2>/dev/null ||
30944 echo X/"$0" |
30945     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30946           /^X\/\(\/\/\)$/{ s//\1/; q; }
30947           /^X\/\(\/\).*/{ s//\1/; q; }
30948           s/.*/./; q'`
30949
30950
30951 # PATH needs CR, and LINENO needs CR and PATH.
30952 # Avoid depending upon Character Ranges.
30953 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30954 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30955 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30956 as_cr_digits='0123456789'
30957 as_cr_alnum=$as_cr_Letters$as_cr_digits
30958
30959 # The user is always right.
30960 if test "${PATH_SEPARATOR+set}" != set; then
30961   echo "#! /bin/sh" >conf$$.sh
30962   echo  "exit 0"   >>conf$$.sh
30963   chmod +x conf$$.sh
30964   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30965     PATH_SEPARATOR=';'
30966   else
30967     PATH_SEPARATOR=:
30968   fi
30969   rm -f conf$$.sh
30970 fi
30971
30972
30973   as_lineno_1=$LINENO
30974   as_lineno_2=$LINENO
30975   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30976   test "x$as_lineno_1" != "x$as_lineno_2" &&
30977   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30978   # Find who we are.  Look in the path if we contain no path at all
30979   # relative or not.
30980   case $0 in
30981     *[\\/]* ) as_myself=$0 ;;
30982     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30983 for as_dir in $PATH
30984 do
30985   IFS=$as_save_IFS
30986   test -z "$as_dir" && as_dir=.
30987   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30988 done
30989
30990        ;;
30991   esac
30992   # We did not find ourselves, most probably we were run as `sh COMMAND'
30993   # in which case we are not to be found in the path.
30994   if test "x$as_myself" = x; then
30995     as_myself=$0
30996   fi
30997   if test ! -f "$as_myself"; then
30998     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30999 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31000    { (exit 1); exit 1; }; }
31001   fi
31002   case $CONFIG_SHELL in
31003   '')
31004     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31005 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31006 do
31007   IFS=$as_save_IFS
31008   test -z "$as_dir" && as_dir=.
31009   for as_base in sh bash ksh sh5; do
31010          case $as_dir in
31011          /*)
31012            if ("$as_dir/$as_base" -c '
31013   as_lineno_1=$LINENO
31014   as_lineno_2=$LINENO
31015   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31016   test "x$as_lineno_1" != "x$as_lineno_2" &&
31017   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
31018              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31019              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31020              CONFIG_SHELL=$as_dir/$as_base
31021              export CONFIG_SHELL
31022              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31023            fi;;
31024          esac
31025        done
31026 done
31027 ;;
31028   esac
31029
31030   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31031   # uniformly replaced by the line number.  The first 'sed' inserts a
31032   # line-number line before each line; the second 'sed' does the real
31033   # work.  The second script uses 'N' to pair each line-number line
31034   # with the numbered line, and appends trailing '-' during
31035   # substitution so that $LINENO is not a special case at line end.
31036   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31037   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
31038   sed '=' <$as_myself |
31039     sed '
31040       N
31041       s,$,-,
31042       : loop
31043       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31044       t loop
31045       s,-$,,
31046       s,^['$as_cr_digits']*\n,,
31047     ' >$as_me.lineno &&
31048   chmod +x $as_me.lineno ||
31049     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31050 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31051    { (exit 1); exit 1; }; }
31052
31053   # Don't try to exec as it changes $[0], causing all sort of problems
31054   # (the dirname of $[0] is not the place where we might find the
31055   # original and so on.  Autoconf is especially sensible to this).
31056   . ./$as_me.lineno
31057   # Exit status is that of the last command.
31058   exit
31059 }
31060
31061
31062 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31063   *c*,-n*) ECHO_N= ECHO_C='
31064 ' ECHO_T='      ' ;;
31065   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31066   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
31067 esac
31068
31069 if expr a : '\(a\)' >/dev/null 2>&1; then
31070   as_expr=expr
31071 else
31072   as_expr=false
31073 fi
31074
31075 rm -f conf$$ conf$$.exe conf$$.file
31076 echo >conf$$.file
31077 if ln -s conf$$.file conf$$ 2>/dev/null; then
31078   # We could just check for DJGPP; but this test a) works b) is more generic
31079   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31080   if test -f conf$$.exe; then
31081     # Don't use ln at all; we don't have any links
31082     as_ln_s='cp -p'
31083   else
31084     as_ln_s='ln -s'
31085   fi
31086 elif ln conf$$.file conf$$ 2>/dev/null; then
31087   as_ln_s=ln
31088 else
31089   as_ln_s='cp -p'
31090 fi
31091 rm -f conf$$ conf$$.exe conf$$.file
31092
31093 if mkdir -p . 2>/dev/null; then
31094   as_mkdir_p=:
31095 else
31096   test -d ./-p && rmdir ./-p
31097   as_mkdir_p=false
31098 fi
31099
31100 as_executable_p="test -f"
31101
31102 # Sed expression to map a string onto a valid CPP name.
31103 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31104
31105 # Sed expression to map a string onto a valid variable name.
31106 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31107
31108
31109 # IFS
31110 # We need space, tab and new line, in precisely that order.
31111 as_nl='
31112 '
31113 IFS="   $as_nl"
31114
31115 # CDPATH.
31116 $as_unset CDPATH
31117
31118 exec 6>&1
31119
31120 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31121 # report actual input values of CONFIG_FILES etc. instead of their
31122 # values after options handling.  Logging --version etc. is OK.
31123 exec 5>>config.log
31124 {
31125   echo
31126   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31127 ## Running $as_me. ##
31128 _ASBOX
31129 } >&5
31130 cat >&5 <<_CSEOF
31131
31132 This file was extended by llvm $as_me 1.7cvs, which was
31133 generated by GNU Autoconf 2.59.  Invocation command line was
31134
31135   CONFIG_FILES    = $CONFIG_FILES
31136   CONFIG_HEADERS  = $CONFIG_HEADERS
31137   CONFIG_LINKS    = $CONFIG_LINKS
31138   CONFIG_COMMANDS = $CONFIG_COMMANDS
31139   $ $0 $@
31140
31141 _CSEOF
31142 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31143 echo >&5
31144 _ACEOF
31145
31146 # Files that config.status was made for.
31147 if test -n "$ac_config_files"; then
31148   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31149 fi
31150
31151 if test -n "$ac_config_headers"; then
31152   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31153 fi
31154
31155 if test -n "$ac_config_links"; then
31156   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31157 fi
31158
31159 if test -n "$ac_config_commands"; then
31160   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31161 fi
31162
31163 cat >>$CONFIG_STATUS <<\_ACEOF
31164
31165 ac_cs_usage="\
31166 \`$as_me' instantiates files from templates according to the
31167 current configuration.
31168
31169 Usage: $0 [OPTIONS] [FILE]...
31170
31171   -h, --help       print this help, then exit
31172   -V, --version    print version number, then exit
31173   -q, --quiet      do not print progress messages
31174   -d, --debug      don't remove temporary files
31175       --recheck    update $as_me by reconfiguring in the same conditions
31176   --file=FILE[:TEMPLATE]
31177                    instantiate the configuration file FILE
31178   --header=FILE[:TEMPLATE]
31179                    instantiate the configuration header FILE
31180
31181 Configuration files:
31182 $config_files
31183
31184 Configuration headers:
31185 $config_headers
31186
31187 Configuration commands:
31188 $config_commands
31189
31190 Report bugs to <bug-autoconf@gnu.org>."
31191 _ACEOF
31192
31193 cat >>$CONFIG_STATUS <<_ACEOF
31194 ac_cs_version="\\
31195 llvm config.status 1.7cvs
31196 configured by $0, generated by GNU Autoconf 2.59,
31197   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31198
31199 Copyright (C) 2003 Free Software Foundation, Inc.
31200 This config.status script is free software; the Free Software Foundation
31201 gives unlimited permission to copy, distribute and modify it."
31202 srcdir=$srcdir
31203 INSTALL="$INSTALL"
31204 _ACEOF
31205
31206 cat >>$CONFIG_STATUS <<\_ACEOF
31207 # If no file are specified by the user, then we need to provide default
31208 # value.  By we need to know if files were specified by the user.
31209 ac_need_defaults=:
31210 while test $# != 0
31211 do
31212   case $1 in
31213   --*=*)
31214     ac_option=`expr "x$1" : 'x\([^=]*\)='`
31215     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31216     ac_shift=:
31217     ;;
31218   -*)
31219     ac_option=$1
31220     ac_optarg=$2
31221     ac_shift=shift
31222     ;;
31223   *) # This is not an option, so the user has probably given explicit
31224      # arguments.
31225      ac_option=$1
31226      ac_need_defaults=false;;
31227   esac
31228
31229   case $ac_option in
31230   # Handling of the options.
31231 _ACEOF
31232 cat >>$CONFIG_STATUS <<\_ACEOF
31233   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31234     ac_cs_recheck=: ;;
31235   --version | --vers* | -V )
31236     echo "$ac_cs_version"; exit 0 ;;
31237   --he | --h)
31238     # Conflict between --help and --header
31239     { { echo "$as_me:$LINENO: error: ambiguous option: $1
31240 Try \`$0 --help' for more information." >&5
31241 echo "$as_me: error: ambiguous option: $1
31242 Try \`$0 --help' for more information." >&2;}
31243    { (exit 1); exit 1; }; };;
31244   --help | --hel | -h )
31245     echo "$ac_cs_usage"; exit 0 ;;
31246   --debug | --d* | -d )
31247     debug=: ;;
31248   --file | --fil | --fi | --f )
31249     $ac_shift
31250     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31251     ac_need_defaults=false;;
31252   --header | --heade | --head | --hea )
31253     $ac_shift
31254     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31255     ac_need_defaults=false;;
31256   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31257   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31258     ac_cs_silent=: ;;
31259
31260   # This is an error.
31261   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31262 Try \`$0 --help' for more information." >&5
31263 echo "$as_me: error: unrecognized option: $1
31264 Try \`$0 --help' for more information." >&2;}
31265    { (exit 1); exit 1; }; } ;;
31266
31267   *) ac_config_targets="$ac_config_targets $1" ;;
31268
31269   esac
31270   shift
31271 done
31272
31273 ac_configure_extra_args=
31274
31275 if $ac_cs_silent; then
31276   exec 6>/dev/null
31277   ac_configure_extra_args="$ac_configure_extra_args --silent"
31278 fi
31279
31280 _ACEOF
31281 cat >>$CONFIG_STATUS <<_ACEOF
31282 if \$ac_cs_recheck; then
31283   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31284   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31285 fi
31286
31287 _ACEOF
31288
31289 cat >>$CONFIG_STATUS <<_ACEOF
31290 #
31291 # INIT-COMMANDS section.
31292 #
31293
31294 llvm_src="${srcdir}"
31295
31296 _ACEOF
31297
31298
31299
31300 cat >>$CONFIG_STATUS <<\_ACEOF
31301 for ac_config_target in $ac_config_targets
31302 do
31303   case "$ac_config_target" in
31304   # Handling of arguments.
31305   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31306   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31307   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31308   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31309   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31310   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31311   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31312   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31313   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31314   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31315   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31316   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31317   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31318   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31319   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31320   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31321   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31322   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31323   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31324 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31325    { (exit 1); exit 1; }; };;
31326   esac
31327 done
31328
31329 # If the user did not use the arguments to specify the items to instantiate,
31330 # then the envvar interface is used.  Set only those that are not.
31331 # We use the long form for the default assignment because of an extremely
31332 # bizarre bug on SunOS 4.1.3.
31333 if $ac_need_defaults; then
31334   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31335   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31336   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31337 fi
31338
31339 # Have a temporary directory for convenience.  Make it in the build tree
31340 # simply because there is no reason to put it here, and in addition,
31341 # creating and moving files from /tmp can sometimes cause problems.
31342 # Create a temporary directory, and hook for its removal unless debugging.
31343 $debug ||
31344 {
31345   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31346   trap '{ (exit 1); exit 1; }' 1 2 13 15
31347 }
31348
31349 # Create a (secure) tmp directory for tmp files.
31350
31351 {
31352   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31353   test -n "$tmp" && test -d "$tmp"
31354 }  ||
31355 {
31356   tmp=./confstat$$-$RANDOM
31357   (umask 077 && mkdir $tmp)
31358 } ||
31359 {
31360    echo "$me: cannot create a temporary directory in ." >&2
31361    { (exit 1); exit 1; }
31362 }
31363
31364 _ACEOF
31365
31366 cat >>$CONFIG_STATUS <<_ACEOF
31367
31368 #
31369 # CONFIG_FILES section.
31370 #
31371
31372 # No need to generate the scripts if there are no CONFIG_FILES.
31373 # This happens for instance when ./config.status config.h
31374 if test -n "\$CONFIG_FILES"; then
31375   # Protect against being on the right side of a sed subst in config.status.
31376   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31377    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31378 s,@SHELL@,$SHELL,;t t
31379 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31380 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31381 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31382 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31383 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31384 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31385 s,@exec_prefix@,$exec_prefix,;t t
31386 s,@prefix@,$prefix,;t t
31387 s,@program_transform_name@,$program_transform_name,;t t
31388 s,@bindir@,$bindir,;t t
31389 s,@sbindir@,$sbindir,;t t
31390 s,@libexecdir@,$libexecdir,;t t
31391 s,@datadir@,$datadir,;t t
31392 s,@sysconfdir@,$sysconfdir,;t t
31393 s,@sharedstatedir@,$sharedstatedir,;t t
31394 s,@localstatedir@,$localstatedir,;t t
31395 s,@libdir@,$libdir,;t t
31396 s,@includedir@,$includedir,;t t
31397 s,@oldincludedir@,$oldincludedir,;t t
31398 s,@infodir@,$infodir,;t t
31399 s,@mandir@,$mandir,;t t
31400 s,@build_alias@,$build_alias,;t t
31401 s,@host_alias@,$host_alias,;t t
31402 s,@target_alias@,$target_alias,;t t
31403 s,@DEFS@,$DEFS,;t t
31404 s,@ECHO_C@,$ECHO_C,;t t
31405 s,@ECHO_N@,$ECHO_N,;t t
31406 s,@ECHO_T@,$ECHO_T,;t t
31407 s,@LIBS@,$LIBS,;t t
31408 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31409 s,@subdirs@,$subdirs,;t t
31410 s,@build@,$build,;t t
31411 s,@build_cpu@,$build_cpu,;t t
31412 s,@build_vendor@,$build_vendor,;t t
31413 s,@build_os@,$build_os,;t t
31414 s,@host@,$host,;t t
31415 s,@host_cpu@,$host_cpu,;t t
31416 s,@host_vendor@,$host_vendor,;t t
31417 s,@host_os@,$host_os,;t t
31418 s,@target@,$target,;t t
31419 s,@target_cpu@,$target_cpu,;t t
31420 s,@target_vendor@,$target_vendor,;t t
31421 s,@target_os@,$target_os,;t t
31422 s,@OS@,$OS,;t t
31423 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31424 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31425 s,@ARCH@,$ARCH,;t t
31426 s,@ENDIAN@,$ENDIAN,;t t
31427 s,@CC@,$CC,;t t
31428 s,@CFLAGS@,$CFLAGS,;t t
31429 s,@LDFLAGS@,$LDFLAGS,;t t
31430 s,@CPPFLAGS@,$CPPFLAGS,;t t
31431 s,@ac_ct_CC@,$ac_ct_CC,;t t
31432 s,@EXEEXT@,$EXEEXT,;t t
31433 s,@OBJEXT@,$OBJEXT,;t t
31434 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31435 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
31436 s,@JIT@,$JIT,;t t
31437 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31438 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31439 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31440 s,@CPP@,$CPP,;t t
31441 s,@CXX@,$CXX,;t t
31442 s,@CXXFLAGS@,$CXXFLAGS,;t t
31443 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31444 s,@LEX@,$LEX,;t t
31445 s,@LEXLIB@,$LEXLIB,;t t
31446 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31447 s,@FLEX@,$FLEX,;t t
31448 s,@YACC@,$YACC,;t t
31449 s,@BISON@,$BISON,;t t
31450 s,@ifGNUmake@,$ifGNUmake,;t t
31451 s,@LN_S@,$LN_S,;t t
31452 s,@CMP@,$CMP,;t t
31453 s,@CP@,$CP,;t t
31454 s,@DATE@,$DATE,;t t
31455 s,@FIND@,$FIND,;t t
31456 s,@GREP@,$GREP,;t t
31457 s,@MKDIR@,$MKDIR,;t t
31458 s,@MV@,$MV,;t t
31459 s,@RANLIB@,$RANLIB,;t t
31460 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31461 s,@RM@,$RM,;t t
31462 s,@SED@,$SED,;t t
31463 s,@TAR@,$TAR,;t t
31464 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31465 s,@GV@,$GV,;t t
31466 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31467 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31468 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31469 s,@BZIP2@,$BZIP2,;t t
31470 s,@DOT@,$DOT,;t t
31471 s,@DOXYGEN@,$DOXYGEN,;t t
31472 s,@ETAGS@,$ETAGS,;t t
31473 s,@GROFF@,$GROFF,;t t
31474 s,@GZIP@,$GZIP,;t t
31475 s,@POD2HTML@,$POD2HTML,;t t
31476 s,@POD2MAN@,$POD2MAN,;t t
31477 s,@RUNTEST@,$RUNTEST,;t t
31478 s,@TCLSH@,$TCLSH,;t t
31479 s,@ZIP@,$ZIP,;t t
31480 s,@EGREP@,$EGREP,;t t
31481 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31482 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31483 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31484 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31485 s,@LIBADD_DL@,$LIBADD_DL,;t t
31486 s,@ECHO@,$ECHO,;t t
31487 s,@AR@,$AR,;t t
31488 s,@ac_ct_AR@,$ac_ct_AR,;t t
31489 s,@STRIP@,$STRIP,;t t
31490 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31491 s,@CXXCPP@,$CXXCPP,;t t
31492 s,@F77@,$F77,;t t
31493 s,@FFLAGS@,$FFLAGS,;t t
31494 s,@ac_ct_F77@,$ac_ct_F77,;t t
31495 s,@LIBTOOL@,$LIBTOOL,;t t
31496 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31497 s,@LLVMGCC@,$LLVMGCC,;t t
31498 s,@LLVMGXX@,$LLVMGXX,;t t
31499 s,@ALLOCA@,$ALLOCA,;t t
31500 s,@MMAP_FILE@,$MMAP_FILE,;t t
31501 s,@LLVMCC1@,$LLVMCC1,;t t
31502 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31503 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31504 s,@SHLIBEXT@,$SHLIBEXT,;t t
31505 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31506 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31507 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31508 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31509 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31510 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31511 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31512 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31513 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31514 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31515 s,@LIBOBJS@,$LIBOBJS,;t t
31516 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31517 CEOF
31518
31519 _ACEOF
31520
31521   cat >>$CONFIG_STATUS <<\_ACEOF
31522   # Split the substitutions into bite-sized pieces for seds with
31523   # small command number limits, like on Digital OSF/1 and HP-UX.
31524   ac_max_sed_lines=48
31525   ac_sed_frag=1 # Number of current file.
31526   ac_beg=1 # First line for current file.
31527   ac_end=$ac_max_sed_lines # Line after last line for current file.
31528   ac_more_lines=:
31529   ac_sed_cmds=
31530   while $ac_more_lines; do
31531     if test $ac_beg -gt 1; then
31532       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31533     else
31534       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31535     fi
31536     if test ! -s $tmp/subs.frag; then
31537       ac_more_lines=false
31538     else
31539       # The purpose of the label and of the branching condition is to
31540       # speed up the sed processing (if there are no `@' at all, there
31541       # is no need to browse any of the substitutions).
31542       # These are the two extra sed commands mentioned above.
31543       (echo ':t
31544   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31545       if test -z "$ac_sed_cmds"; then
31546         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31547       else
31548         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31549       fi
31550       ac_sed_frag=`expr $ac_sed_frag + 1`
31551       ac_beg=$ac_end
31552       ac_end=`expr $ac_end + $ac_max_sed_lines`
31553     fi
31554   done
31555   if test -z "$ac_sed_cmds"; then
31556     ac_sed_cmds=cat
31557   fi
31558 fi # test -n "$CONFIG_FILES"
31559
31560 _ACEOF
31561 cat >>$CONFIG_STATUS <<\_ACEOF
31562 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31563   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31564   case $ac_file in
31565   - | *:- | *:-:* ) # input from stdin
31566         cat >$tmp/stdin
31567         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31568         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31569   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31570         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31571   * )   ac_file_in=$ac_file.in ;;
31572   esac
31573
31574   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31575   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31576 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31577          X"$ac_file" : 'X\(//\)[^/]' \| \
31578          X"$ac_file" : 'X\(//\)$' \| \
31579          X"$ac_file" : 'X\(/\)' \| \
31580          .     : '\(.\)' 2>/dev/null ||
31581 echo X"$ac_file" |
31582     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31583           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31584           /^X\(\/\/\)$/{ s//\1/; q; }
31585           /^X\(\/\).*/{ s//\1/; q; }
31586           s/.*/./; q'`
31587   { if $as_mkdir_p; then
31588     mkdir -p "$ac_dir"
31589   else
31590     as_dir="$ac_dir"
31591     as_dirs=
31592     while test ! -d "$as_dir"; do
31593       as_dirs="$as_dir $as_dirs"
31594       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31595 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31596          X"$as_dir" : 'X\(//\)[^/]' \| \
31597          X"$as_dir" : 'X\(//\)$' \| \
31598          X"$as_dir" : 'X\(/\)' \| \
31599          .     : '\(.\)' 2>/dev/null ||
31600 echo X"$as_dir" |
31601     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31602           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31603           /^X\(\/\/\)$/{ s//\1/; q; }
31604           /^X\(\/\).*/{ s//\1/; q; }
31605           s/.*/./; q'`
31606     done
31607     test ! -n "$as_dirs" || mkdir $as_dirs
31608   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31609 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31610    { (exit 1); exit 1; }; }; }
31611
31612   ac_builddir=.
31613
31614 if test "$ac_dir" != .; then
31615   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31616   # A "../" for each directory in $ac_dir_suffix.
31617   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31618 else
31619   ac_dir_suffix= ac_top_builddir=
31620 fi
31621
31622 case $srcdir in
31623   .)  # No --srcdir option.  We are building in place.
31624     ac_srcdir=.
31625     if test -z "$ac_top_builddir"; then
31626        ac_top_srcdir=.
31627     else
31628        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31629     fi ;;
31630   [\\/]* | ?:[\\/]* )  # Absolute path.
31631     ac_srcdir=$srcdir$ac_dir_suffix;
31632     ac_top_srcdir=$srcdir ;;
31633   *) # Relative path.
31634     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31635     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31636 esac
31637
31638 # Do not use `cd foo && pwd` to compute absolute paths, because
31639 # the directories may not exist.
31640 case `pwd` in
31641 .) ac_abs_builddir="$ac_dir";;
31642 *)
31643   case "$ac_dir" in
31644   .) ac_abs_builddir=`pwd`;;
31645   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31646   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31647   esac;;
31648 esac
31649 case $ac_abs_builddir in
31650 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31651 *)
31652   case ${ac_top_builddir}. in
31653   .) ac_abs_top_builddir=$ac_abs_builddir;;
31654   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31655   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31656   esac;;
31657 esac
31658 case $ac_abs_builddir in
31659 .) ac_abs_srcdir=$ac_srcdir;;
31660 *)
31661   case $ac_srcdir in
31662   .) ac_abs_srcdir=$ac_abs_builddir;;
31663   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31664   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31665   esac;;
31666 esac
31667 case $ac_abs_builddir in
31668 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31669 *)
31670   case $ac_top_srcdir in
31671   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31672   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31673   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31674   esac;;
31675 esac
31676
31677
31678   case $INSTALL in
31679   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31680   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31681   esac
31682
31683   if test x"$ac_file" != x-; then
31684     { echo "$as_me:$LINENO: creating $ac_file" >&5
31685 echo "$as_me: creating $ac_file" >&6;}
31686     rm -f "$ac_file"
31687   fi
31688   # Let's still pretend it is `configure' which instantiates (i.e., don't
31689   # use $as_me), people would be surprised to read:
31690   #    /* config.h.  Generated by config.status.  */
31691   if test x"$ac_file" = x-; then
31692     configure_input=
31693   else
31694     configure_input="$ac_file.  "
31695   fi
31696   configure_input=$configure_input"Generated from `echo $ac_file_in |
31697                                      sed 's,.*/,,'` by configure."
31698
31699   # First look for the input files in the build tree, otherwise in the
31700   # src tree.
31701   ac_file_inputs=`IFS=:
31702     for f in $ac_file_in; do
31703       case $f in
31704       -) echo $tmp/stdin ;;
31705       [\\/$]*)
31706          # Absolute (can't be DOS-style, as IFS=:)
31707          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31708 echo "$as_me: error: cannot find input file: $f" >&2;}
31709    { (exit 1); exit 1; }; }
31710          echo "$f";;
31711       *) # Relative
31712          if test -f "$f"; then
31713            # Build tree
31714            echo "$f"
31715          elif test -f "$srcdir/$f"; then
31716            # Source tree
31717            echo "$srcdir/$f"
31718          else
31719            # /dev/null tree
31720            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31721 echo "$as_me: error: cannot find input file: $f" >&2;}
31722    { (exit 1); exit 1; }; }
31723          fi;;
31724       esac
31725     done` || { (exit 1); exit 1; }
31726 _ACEOF
31727 cat >>$CONFIG_STATUS <<_ACEOF
31728   sed "$ac_vpsub
31729 $extrasub
31730 _ACEOF
31731 cat >>$CONFIG_STATUS <<\_ACEOF
31732 :t
31733 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31734 s,@configure_input@,$configure_input,;t t
31735 s,@srcdir@,$ac_srcdir,;t t
31736 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31737 s,@top_srcdir@,$ac_top_srcdir,;t t
31738 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31739 s,@builddir@,$ac_builddir,;t t
31740 s,@abs_builddir@,$ac_abs_builddir,;t t
31741 s,@top_builddir@,$ac_top_builddir,;t t
31742 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31743 s,@INSTALL@,$ac_INSTALL,;t t
31744 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31745   rm -f $tmp/stdin
31746   if test x"$ac_file" != x-; then
31747     mv $tmp/out $ac_file
31748   else
31749     cat $tmp/out
31750     rm -f $tmp/out
31751   fi
31752
31753 done
31754 _ACEOF
31755 cat >>$CONFIG_STATUS <<\_ACEOF
31756
31757 #
31758 # CONFIG_HEADER section.
31759 #
31760
31761 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31762 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31763 #
31764 # ac_d sets the value in "#define NAME VALUE" lines.
31765 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31766 ac_dB='[         ].*$,\1#\2'
31767 ac_dC=' '
31768 ac_dD=',;t'
31769 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31770 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31771 ac_uB='$,\1#\2define\3'
31772 ac_uC=' '
31773 ac_uD=',;t'
31774
31775 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31776   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31777   case $ac_file in
31778   - | *:- | *:-:* ) # input from stdin
31779         cat >$tmp/stdin
31780         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31781         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31782   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31783         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31784   * )   ac_file_in=$ac_file.in ;;
31785   esac
31786
31787   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31788 echo "$as_me: creating $ac_file" >&6;}
31789
31790   # First look for the input files in the build tree, otherwise in the
31791   # src tree.
31792   ac_file_inputs=`IFS=:
31793     for f in $ac_file_in; do
31794       case $f in
31795       -) echo $tmp/stdin ;;
31796       [\\/$]*)
31797          # Absolute (can't be DOS-style, as IFS=:)
31798          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31799 echo "$as_me: error: cannot find input file: $f" >&2;}
31800    { (exit 1); exit 1; }; }
31801          # Do quote $f, to prevent DOS paths from being IFS'd.
31802          echo "$f";;
31803       *) # Relative
31804          if test -f "$f"; then
31805            # Build tree
31806            echo "$f"
31807          elif test -f "$srcdir/$f"; then
31808            # Source tree
31809            echo "$srcdir/$f"
31810          else
31811            # /dev/null tree
31812            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31813 echo "$as_me: error: cannot find input file: $f" >&2;}
31814    { (exit 1); exit 1; }; }
31815          fi;;
31816       esac
31817     done` || { (exit 1); exit 1; }
31818   # Remove the trailing spaces.
31819   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31820
31821 _ACEOF
31822
31823 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31824 # `conftest.undefs', that substitutes the proper values into
31825 # config.h.in to produce config.h.  The first handles `#define'
31826 # templates, and the second `#undef' templates.
31827 # And first: Protect against being on the right side of a sed subst in
31828 # config.status.  Protect against being in an unquoted here document
31829 # in config.status.
31830 rm -f conftest.defines conftest.undefs
31831 # Using a here document instead of a string reduces the quoting nightmare.
31832 # Putting comments in sed scripts is not portable.
31833 #
31834 # `end' is used to avoid that the second main sed command (meant for
31835 # 0-ary CPP macros) applies to n-ary macro definitions.
31836 # See the Autoconf documentation for `clear'.
31837 cat >confdef2sed.sed <<\_ACEOF
31838 s/[\\&,]/\\&/g
31839 s,[\\$`],\\&,g
31840 t clear
31841 : clear
31842 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31843 t end
31844 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31845 : end
31846 _ACEOF
31847 # If some macros were called several times there might be several times
31848 # the same #defines, which is useless.  Nevertheless, we may not want to
31849 # sort them, since we want the *last* AC-DEFINE to be honored.
31850 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31851 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31852 rm -f confdef2sed.sed
31853
31854 # This sed command replaces #undef with comments.  This is necessary, for
31855 # example, in the case of _POSIX_SOURCE, which is predefined and required
31856 # on some systems where configure will not decide to define it.
31857 cat >>conftest.undefs <<\_ACEOF
31858 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31859 _ACEOF
31860
31861 # Break up conftest.defines because some shells have a limit on the size
31862 # of here documents, and old seds have small limits too (100 cmds).
31863 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31864 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31865 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31866 echo '  :' >>$CONFIG_STATUS
31867 rm -f conftest.tail
31868 while grep . conftest.defines >/dev/null
31869 do
31870   # Write a limited-size here document to $tmp/defines.sed.
31871   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31872   # Speed up: don't consider the non `#define' lines.
31873   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31874   # Work around the forget-to-reset-the-flag bug.
31875   echo 't clr' >>$CONFIG_STATUS
31876   echo ': clr' >>$CONFIG_STATUS
31877   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31878   echo 'CEOF
31879   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31880   rm -f $tmp/in
31881   mv $tmp/out $tmp/in
31882 ' >>$CONFIG_STATUS
31883   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31884   rm -f conftest.defines
31885   mv conftest.tail conftest.defines
31886 done
31887 rm -f conftest.defines
31888 echo '  fi # grep' >>$CONFIG_STATUS
31889 echo >>$CONFIG_STATUS
31890
31891 # Break up conftest.undefs because some shells have a limit on the size
31892 # of here documents, and old seds have small limits too (100 cmds).
31893 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31894 rm -f conftest.tail
31895 while grep . conftest.undefs >/dev/null
31896 do
31897   # Write a limited-size here document to $tmp/undefs.sed.
31898   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31899   # Speed up: don't consider the non `#undef'
31900   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31901   # Work around the forget-to-reset-the-flag bug.
31902   echo 't clr' >>$CONFIG_STATUS
31903   echo ': clr' >>$CONFIG_STATUS
31904   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31905   echo 'CEOF
31906   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31907   rm -f $tmp/in
31908   mv $tmp/out $tmp/in
31909 ' >>$CONFIG_STATUS
31910   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31911   rm -f conftest.undefs
31912   mv conftest.tail conftest.undefs
31913 done
31914 rm -f conftest.undefs
31915
31916 cat >>$CONFIG_STATUS <<\_ACEOF
31917   # Let's still pretend it is `configure' which instantiates (i.e., don't
31918   # use $as_me), people would be surprised to read:
31919   #    /* config.h.  Generated by config.status.  */
31920   if test x"$ac_file" = x-; then
31921     echo "/* Generated by configure.  */" >$tmp/config.h
31922   else
31923     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31924   fi
31925   cat $tmp/in >>$tmp/config.h
31926   rm -f $tmp/in
31927   if test x"$ac_file" != x-; then
31928     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31929       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31930 echo "$as_me: $ac_file is unchanged" >&6;}
31931     else
31932       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31933 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31934          X"$ac_file" : 'X\(//\)[^/]' \| \
31935          X"$ac_file" : 'X\(//\)$' \| \
31936          X"$ac_file" : 'X\(/\)' \| \
31937          .     : '\(.\)' 2>/dev/null ||
31938 echo X"$ac_file" |
31939     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31940           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31941           /^X\(\/\/\)$/{ s//\1/; q; }
31942           /^X\(\/\).*/{ s//\1/; q; }
31943           s/.*/./; q'`
31944       { if $as_mkdir_p; then
31945     mkdir -p "$ac_dir"
31946   else
31947     as_dir="$ac_dir"
31948     as_dirs=
31949     while test ! -d "$as_dir"; do
31950       as_dirs="$as_dir $as_dirs"
31951       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31952 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31953          X"$as_dir" : 'X\(//\)[^/]' \| \
31954          X"$as_dir" : 'X\(//\)$' \| \
31955          X"$as_dir" : 'X\(/\)' \| \
31956          .     : '\(.\)' 2>/dev/null ||
31957 echo X"$as_dir" |
31958     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31959           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31960           /^X\(\/\/\)$/{ s//\1/; q; }
31961           /^X\(\/\).*/{ s//\1/; q; }
31962           s/.*/./; q'`
31963     done
31964     test ! -n "$as_dirs" || mkdir $as_dirs
31965   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31966 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31967    { (exit 1); exit 1; }; }; }
31968
31969       rm -f $ac_file
31970       mv $tmp/config.h $ac_file
31971     fi
31972   else
31973     cat $tmp/config.h
31974     rm -f $tmp/config.h
31975   fi
31976 done
31977 _ACEOF
31978 cat >>$CONFIG_STATUS <<\_ACEOF
31979
31980 #
31981 # CONFIG_COMMANDS section.
31982 #
31983 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31984   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31985   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31986   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31987 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31988          X"$ac_dest" : 'X\(//\)[^/]' \| \
31989          X"$ac_dest" : 'X\(//\)$' \| \
31990          X"$ac_dest" : 'X\(/\)' \| \
31991          .     : '\(.\)' 2>/dev/null ||
31992 echo X"$ac_dest" |
31993     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31994           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31995           /^X\(\/\/\)$/{ s//\1/; q; }
31996           /^X\(\/\).*/{ s//\1/; q; }
31997           s/.*/./; q'`
31998   { if $as_mkdir_p; then
31999     mkdir -p "$ac_dir"
32000   else
32001     as_dir="$ac_dir"
32002     as_dirs=
32003     while test ! -d "$as_dir"; do
32004       as_dirs="$as_dir $as_dirs"
32005       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32007          X"$as_dir" : 'X\(//\)[^/]' \| \
32008          X"$as_dir" : 'X\(//\)$' \| \
32009          X"$as_dir" : 'X\(/\)' \| \
32010          .     : '\(.\)' 2>/dev/null ||
32011 echo X"$as_dir" |
32012     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32013           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32014           /^X\(\/\/\)$/{ s//\1/; q; }
32015           /^X\(\/\).*/{ s//\1/; q; }
32016           s/.*/./; q'`
32017     done
32018     test ! -n "$as_dirs" || mkdir $as_dirs
32019   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32020 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32021    { (exit 1); exit 1; }; }; }
32022
32023   ac_builddir=.
32024
32025 if test "$ac_dir" != .; then
32026   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32027   # A "../" for each directory in $ac_dir_suffix.
32028   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32029 else
32030   ac_dir_suffix= ac_top_builddir=
32031 fi
32032
32033 case $srcdir in
32034   .)  # No --srcdir option.  We are building in place.
32035     ac_srcdir=.
32036     if test -z "$ac_top_builddir"; then
32037        ac_top_srcdir=.
32038     else
32039        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32040     fi ;;
32041   [\\/]* | ?:[\\/]* )  # Absolute path.
32042     ac_srcdir=$srcdir$ac_dir_suffix;
32043     ac_top_srcdir=$srcdir ;;
32044   *) # Relative path.
32045     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32046     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32047 esac
32048
32049 # Do not use `cd foo && pwd` to compute absolute paths, because
32050 # the directories may not exist.
32051 case `pwd` in
32052 .) ac_abs_builddir="$ac_dir";;
32053 *)
32054   case "$ac_dir" in
32055   .) ac_abs_builddir=`pwd`;;
32056   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32057   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32058   esac;;
32059 esac
32060 case $ac_abs_builddir in
32061 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32062 *)
32063   case ${ac_top_builddir}. in
32064   .) ac_abs_top_builddir=$ac_abs_builddir;;
32065   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32066   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32067   esac;;
32068 esac
32069 case $ac_abs_builddir in
32070 .) ac_abs_srcdir=$ac_srcdir;;
32071 *)
32072   case $ac_srcdir in
32073   .) ac_abs_srcdir=$ac_abs_builddir;;
32074   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32075   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32076   esac;;
32077 esac
32078 case $ac_abs_builddir in
32079 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32080 *)
32081   case $ac_top_srcdir in
32082   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32083   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32084   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32085   esac;;
32086 esac
32087
32088
32089   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32090 echo "$as_me: executing $ac_dest commands" >&6;}
32091   case $ac_dest in
32092     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32093    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32094     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32095    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32096     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32097    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32098     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32099    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32100     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32101    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32102     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32103    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32104     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32105    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32106     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32107    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32108     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32109    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32110     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32111    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32112   esac
32113 done
32114 _ACEOF
32115
32116 cat >>$CONFIG_STATUS <<\_ACEOF
32117
32118 { (exit 0); exit 0; }
32119 _ACEOF
32120 chmod +x $CONFIG_STATUS
32121 ac_clean_files=$ac_clean_files_save
32122
32123
32124 # configure is writing to config.log, and then calls config.status.
32125 # config.status does its own redirection, appending to config.log.
32126 # Unfortunately, on DOS this fails, as config.log is still kept open
32127 # by configure, so config.status won't be able to write to it; its
32128 # output is simply discarded.  So we exec the FD to /dev/null,
32129 # effectively closing config.log, so it can be properly (re)opened and
32130 # appended to by config.status.  When coming back to configure, we
32131 # need to make the FD available again.
32132 if test "$no_create" != yes; then
32133   ac_cs_success=:
32134   ac_config_status_args=
32135   test "$silent" = yes &&
32136     ac_config_status_args="$ac_config_status_args --quiet"
32137   exec 5>/dev/null
32138   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32139   exec 5>>config.log
32140   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32141   # would make configure fail if this is the last instruction.
32142   $ac_cs_success || { (exit 1); exit 1; }
32143 fi
32144
32145 #
32146 # CONFIG_SUBDIRS section.
32147 #
32148 if test "$no_recursion" != yes; then
32149
32150   # Remove --cache-file and --srcdir arguments so they do not pile up.
32151   ac_sub_configure_args=
32152   ac_prev=
32153   for ac_arg in $ac_configure_args; do
32154     if test -n "$ac_prev"; then
32155       ac_prev=
32156       continue
32157     fi
32158     case $ac_arg in
32159     -cache-file | --cache-file | --cache-fil | --cache-fi \
32160     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32161       ac_prev=cache_file ;;
32162     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32163     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32164     | --c=*)
32165       ;;
32166     --config-cache | -C)
32167       ;;
32168     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32169       ac_prev=srcdir ;;
32170     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32171       ;;
32172     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32173       ac_prev=prefix ;;
32174     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32175       ;;
32176     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32177     esac
32178   done
32179
32180   # Always prepend --prefix to ensure using the same prefix
32181   # in subdir configurations.
32182   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32183
32184   ac_popdir=`pwd`
32185   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32186
32187     # Do not complain, so a configure script can configure whichever
32188     # parts of a large source tree are present.
32189     test -d $srcdir/$ac_dir || continue
32190
32191     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32192 echo "$as_me: configuring in $ac_dir" >&6;}
32193     { if $as_mkdir_p; then
32194     mkdir -p "$ac_dir"
32195   else
32196     as_dir="$ac_dir"
32197     as_dirs=
32198     while test ! -d "$as_dir"; do
32199       as_dirs="$as_dir $as_dirs"
32200       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32201 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32202          X"$as_dir" : 'X\(//\)[^/]' \| \
32203          X"$as_dir" : 'X\(//\)$' \| \
32204          X"$as_dir" : 'X\(/\)' \| \
32205          .     : '\(.\)' 2>/dev/null ||
32206 echo X"$as_dir" |
32207     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32208           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32209           /^X\(\/\/\)$/{ s//\1/; q; }
32210           /^X\(\/\).*/{ s//\1/; q; }
32211           s/.*/./; q'`
32212     done
32213     test ! -n "$as_dirs" || mkdir $as_dirs
32214   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32215 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32216    { (exit 1); exit 1; }; }; }
32217
32218     ac_builddir=.
32219
32220 if test "$ac_dir" != .; then
32221   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32222   # A "../" for each directory in $ac_dir_suffix.
32223   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32224 else
32225   ac_dir_suffix= ac_top_builddir=
32226 fi
32227
32228 case $srcdir in
32229   .)  # No --srcdir option.  We are building in place.
32230     ac_srcdir=.
32231     if test -z "$ac_top_builddir"; then
32232        ac_top_srcdir=.
32233     else
32234        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32235     fi ;;
32236   [\\/]* | ?:[\\/]* )  # Absolute path.
32237     ac_srcdir=$srcdir$ac_dir_suffix;
32238     ac_top_srcdir=$srcdir ;;
32239   *) # Relative path.
32240     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32241     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32242 esac
32243
32244 # Do not use `cd foo && pwd` to compute absolute paths, because
32245 # the directories may not exist.
32246 case `pwd` in
32247 .) ac_abs_builddir="$ac_dir";;
32248 *)
32249   case "$ac_dir" in
32250   .) ac_abs_builddir=`pwd`;;
32251   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32252   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32253   esac;;
32254 esac
32255 case $ac_abs_builddir in
32256 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32257 *)
32258   case ${ac_top_builddir}. in
32259   .) ac_abs_top_builddir=$ac_abs_builddir;;
32260   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32261   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32262   esac;;
32263 esac
32264 case $ac_abs_builddir in
32265 .) ac_abs_srcdir=$ac_srcdir;;
32266 *)
32267   case $ac_srcdir in
32268   .) ac_abs_srcdir=$ac_abs_builddir;;
32269   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32270   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32271   esac;;
32272 esac
32273 case $ac_abs_builddir in
32274 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32275 *)
32276   case $ac_top_srcdir in
32277   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32278   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32279   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32280   esac;;
32281 esac
32282
32283
32284     cd $ac_dir
32285
32286     # Check for guested configure; otherwise get Cygnus style configure.
32287     if test -f $ac_srcdir/configure.gnu; then
32288       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32289     elif test -f $ac_srcdir/configure; then
32290       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32291     elif test -f $ac_srcdir/configure.in; then
32292       ac_sub_configure=$ac_configure
32293     else
32294       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32295 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32296       ac_sub_configure=
32297     fi
32298
32299     # The recursion is here.
32300     if test -n "$ac_sub_configure"; then
32301       # Make the cache file name correct relative to the subdirectory.
32302       case $cache_file in
32303       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32304       *) # Relative path.
32305         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32306       esac
32307
32308       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32309 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32310       # The eval makes quoting arguments work.
32311       eval $ac_sub_configure $ac_sub_configure_args \
32312            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32313         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32314 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32315    { (exit 1); exit 1; }; }
32316     fi
32317
32318     cd $ac_popdir
32319   done
32320 fi
32321
32322
32323 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32324  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32325 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32326  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32327 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32328  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32329 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32330  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32331 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32332  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32333 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
32334 fi