Ahem. HEAD -> 1.8cvs not 1.7 (I'm an idiot).
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for llvm 1.8cvs.
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 #
11 # Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293        echo_test_string="`eval $cmd`" &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 tagnames=${tagnames+${tagnames},}CXX
399
400 tagnames=${tagnames+${tagnames},}F77
401
402 # Name of the host.
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407 exec 6>&1
408
409 #
410 # Initializations.
411 #
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
414 cross_compiling=no
415 subdirs=
416 MFLAGS=
417 MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete.  It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
424
425 # Identity of this package.
426 PACKAGE_NAME='llvm'
427 PACKAGE_TARNAME='-llvm-'
428 PACKAGE_VERSION='1.8cvs'
429 PACKAGE_STRING='llvm 1.8cvs'
430 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
432 ac_unique_file="lib/VMCore/Module.cpp"
433 ac_subdirs_all="$ac_subdirs_all projects/sample"
434 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
439 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440 ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
441 ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
442 # Factoring default headers for most tests.
443 ac_includes_default="\
444 #include <stdio.h>
445 #if HAVE_SYS_TYPES_H
446 # include <sys/types.h>
447 #endif
448 #if HAVE_SYS_STAT_H
449 # include <sys/stat.h>
450 #endif
451 #if STDC_HEADERS
452 # include <stdlib.h>
453 # include <stddef.h>
454 #else
455 # if HAVE_STDLIB_H
456 #  include <stdlib.h>
457 # endif
458 #endif
459 #if HAVE_STRING_H
460 # if !STDC_HEADERS && HAVE_MEMORY_H
461 #  include <memory.h>
462 # endif
463 # include <string.h>
464 #endif
465 #if HAVE_STRINGS_H
466 # include <strings.h>
467 #endif
468 #if HAVE_INTTYPES_H
469 # include <inttypes.h>
470 #else
471 # if HAVE_STDINT_H
472 #  include <stdint.h>
473 # endif
474 #endif
475 #if HAVE_UNISTD_H
476 # include <unistd.h>
477 #endif"
478
479 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CVSBUILD ENABLE_OPTIMIZED DISABLE_ASSERTIONS DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR LLVMGCC_VERSION LLVMGCC_MAJVERS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
480 ac_subst_files=''
481
482 # Initialize some variables set by options.
483 ac_init_help=
484 ac_init_version=false
485 # The variables have the same names as the options, with
486 # dashes changed to underlines.
487 cache_file=/dev/null
488 exec_prefix=NONE
489 no_create=
490 no_recursion=
491 prefix=NONE
492 program_prefix=NONE
493 program_suffix=NONE
494 program_transform_name=s,x,x,
495 silent=
496 site=
497 srcdir=
498 verbose=
499 x_includes=NONE
500 x_libraries=NONE
501
502 # Installation directory options.
503 # These are left unexpanded so users can "make install exec_prefix=/foo"
504 # and all the variables that are supposed to be based on exec_prefix
505 # by default will actually change.
506 # Use braces instead of parens because sh, perl, etc. also accept them.
507 bindir='${exec_prefix}/bin'
508 sbindir='${exec_prefix}/sbin'
509 libexecdir='${exec_prefix}/libexec'
510 datadir='${prefix}/share'
511 sysconfdir='${prefix}/etc'
512 sharedstatedir='${prefix}/com'
513 localstatedir='${prefix}/var'
514 libdir='${exec_prefix}/lib'
515 includedir='${prefix}/include'
516 oldincludedir='/usr/include'
517 infodir='${prefix}/info'
518 mandir='${prefix}/man'
519
520 ac_prev=
521 for ac_option
522 do
523   # If the previous option needs an argument, assign it.
524   if test -n "$ac_prev"; then
525     eval "$ac_prev=\$ac_option"
526     ac_prev=
527     continue
528   fi
529
530   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532   # Accept the important Cygnus configure options, so we can diagnose typos.
533
534   case $ac_option in
535
536   -bindir | --bindir | --bindi | --bind | --bin | --bi)
537     ac_prev=bindir ;;
538   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539     bindir=$ac_optarg ;;
540
541   -build | --build | --buil | --bui | --bu)
542     ac_prev=build_alias ;;
543   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544     build_alias=$ac_optarg ;;
545
546   -cache-file | --cache-file | --cache-fil | --cache-fi \
547   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548     ac_prev=cache_file ;;
549   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551     cache_file=$ac_optarg ;;
552
553   --config-cache | -C)
554     cache_file=config.cache ;;
555
556   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557     ac_prev=datadir ;;
558   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559   | --da=*)
560     datadir=$ac_optarg ;;
561
562   -disable-* | --disable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     eval "enable_$ac_feature=no" ;;
570
571   -enable-* | --enable-*)
572     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573     # Reject names that are not valid shell variable names.
574     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576    { (exit 1); exit 1; }; }
577     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578     case $ac_option in
579       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580       *) ac_optarg=yes ;;
581     esac
582     eval "enable_$ac_feature='$ac_optarg'" ;;
583
584   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586   | --exec | --exe | --ex)
587     ac_prev=exec_prefix ;;
588   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590   | --exec=* | --exe=* | --ex=*)
591     exec_prefix=$ac_optarg ;;
592
593   -gas | --gas | --ga | --g)
594     # Obsolete; use --with-gas.
595     with_gas=yes ;;
596
597   -help | --help | --hel | --he | -h)
598     ac_init_help=long ;;
599   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600     ac_init_help=recursive ;;
601   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602     ac_init_help=short ;;
603
604   -host | --host | --hos | --ho)
605     ac_prev=host_alias ;;
606   -host=* | --host=* | --hos=* | --ho=*)
607     host_alias=$ac_optarg ;;
608
609   -includedir | --includedir | --includedi | --included | --include \
610   | --includ | --inclu | --incl | --inc)
611     ac_prev=includedir ;;
612   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613   | --includ=* | --inclu=* | --incl=* | --inc=*)
614     includedir=$ac_optarg ;;
615
616   -infodir | --infodir | --infodi | --infod | --info | --inf)
617     ac_prev=infodir ;;
618   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619     infodir=$ac_optarg ;;
620
621   -libdir | --libdir | --libdi | --libd)
622     ac_prev=libdir ;;
623   -libdir=* | --libdir=* | --libdi=* | --libd=*)
624     libdir=$ac_optarg ;;
625
626   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627   | --libexe | --libex | --libe)
628     ac_prev=libexecdir ;;
629   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630   | --libexe=* | --libex=* | --libe=*)
631     libexecdir=$ac_optarg ;;
632
633   -localstatedir | --localstatedir | --localstatedi | --localstated \
634   | --localstate | --localstat | --localsta | --localst \
635   | --locals | --local | --loca | --loc | --lo)
636     ac_prev=localstatedir ;;
637   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640     localstatedir=$ac_optarg ;;
641
642   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643     ac_prev=mandir ;;
644   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645     mandir=$ac_optarg ;;
646
647   -nfp | --nfp | --nf)
648     # Obsolete; use --without-fp.
649     with_fp=no ;;
650
651   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652   | --no-cr | --no-c | -n)
653     no_create=yes ;;
654
655   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657     no_recursion=yes ;;
658
659   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661   | --oldin | --oldi | --old | --ol | --o)
662     ac_prev=oldincludedir ;;
663   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666     oldincludedir=$ac_optarg ;;
667
668   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669     ac_prev=prefix ;;
670   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671     prefix=$ac_optarg ;;
672
673   -program-prefix | --program-prefix | --program-prefi | --program-pref \
674   | --program-pre | --program-pr | --program-p)
675     ac_prev=program_prefix ;;
676   -program-prefix=* | --program-prefix=* | --program-prefi=* \
677   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678     program_prefix=$ac_optarg ;;
679
680   -program-suffix | --program-suffix | --program-suffi | --program-suff \
681   | --program-suf | --program-su | --program-s)
682     ac_prev=program_suffix ;;
683   -program-suffix=* | --program-suffix=* | --program-suffi=* \
684   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685     program_suffix=$ac_optarg ;;
686
687   -program-transform-name | --program-transform-name \
688   | --program-transform-nam | --program-transform-na \
689   | --program-transform-n | --program-transform- \
690   | --program-transform | --program-transfor \
691   | --program-transfo | --program-transf \
692   | --program-trans | --program-tran \
693   | --progr-tra | --program-tr | --program-t)
694     ac_prev=program_transform_name ;;
695   -program-transform-name=* | --program-transform-name=* \
696   | --program-transform-nam=* | --program-transform-na=* \
697   | --program-transform-n=* | --program-transform-=* \
698   | --program-transform=* | --program-transfor=* \
699   | --program-transfo=* | --program-transf=* \
700   | --program-trans=* | --program-tran=* \
701   | --progr-tra=* | --program-tr=* | --program-t=*)
702     program_transform_name=$ac_optarg ;;
703
704   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705   | -silent | --silent | --silen | --sile | --sil)
706     silent=yes ;;
707
708   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709     ac_prev=sbindir ;;
710   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711   | --sbi=* | --sb=*)
712     sbindir=$ac_optarg ;;
713
714   -sharedstatedir | --sharedstatedir | --sharedstatedi \
715   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716   | --sharedst | --shareds | --shared | --share | --shar \
717   | --sha | --sh)
718     ac_prev=sharedstatedir ;;
719   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722   | --sha=* | --sh=*)
723     sharedstatedir=$ac_optarg ;;
724
725   -site | --site | --sit)
726     ac_prev=site ;;
727   -site=* | --site=* | --sit=*)
728     site=$ac_optarg ;;
729
730   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731     ac_prev=srcdir ;;
732   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733     srcdir=$ac_optarg ;;
734
735   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736   | --syscon | --sysco | --sysc | --sys | --sy)
737     ac_prev=sysconfdir ;;
738   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740     sysconfdir=$ac_optarg ;;
741
742   -target | --target | --targe | --targ | --tar | --ta | --t)
743     ac_prev=target_alias ;;
744   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745     target_alias=$ac_optarg ;;
746
747   -v | -verbose | --verbose | --verbos | --verbo | --verb)
748     verbose=yes ;;
749
750   -version | --version | --versio | --versi | --vers | -V)
751     ac_init_version=: ;;
752
753   -with-* | --with-*)
754     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package| sed 's/-/_/g'`
760     case $ac_option in
761       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762       *) ac_optarg=yes ;;
763     esac
764     eval "with_$ac_package='$ac_optarg'" ;;
765
766   -without-* | --without-*)
767     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768     # Reject names that are not valid shell variable names.
769     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770       { echo "$as_me: error: invalid package name: $ac_package" >&2
771    { (exit 1); exit 1; }; }
772     ac_package=`echo $ac_package | sed 's/-/_/g'`
773     eval "with_$ac_package=no" ;;
774
775   --x)
776     # Obsolete; use --with-x.
777     with_x=yes ;;
778
779   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780   | --x-incl | --x-inc | --x-in | --x-i)
781     ac_prev=x_includes ;;
782   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784     x_includes=$ac_optarg ;;
785
786   -x-libraries | --x-libraries | --x-librarie | --x-librari \
787   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788     ac_prev=x_libraries ;;
789   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791     x_libraries=$ac_optarg ;;
792
793   -*) { echo "$as_me: error: unrecognized option: $ac_option
794 Try \`$0 --help' for more information." >&2
795    { (exit 1); exit 1; }; }
796     ;;
797
798   *=*)
799     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800     # Reject names that are not valid shell variable names.
801     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803    { (exit 1); exit 1; }; }
804     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805     eval "$ac_envvar='$ac_optarg'"
806     export $ac_envvar ;;
807
808   *)
809     # FIXME: should be removed in autoconf 3.0.
810     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814     ;;
815
816   esac
817 done
818
819 if test -n "$ac_prev"; then
820   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821   { echo "$as_me: error: missing argument to $ac_option" >&2
822    { (exit 1); exit 1; }; }
823 fi
824
825 # Be sure to have absolute paths.
826 for ac_var in exec_prefix prefix
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # Be sure to have absolute paths.
837 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
838               localstatedir libdir includedir oldincludedir infodir mandir
839 do
840   eval ac_val=$`echo $ac_var`
841   case $ac_val in
842     [\\/$]* | ?:[\\/]* ) ;;
843     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844    { (exit 1); exit 1; }; };;
845   esac
846 done
847
848 # There might be people who depend on the old broken behavior: `$host'
849 # used to hold the argument of --host etc.
850 # FIXME: To remove some day.
851 build=$build_alias
852 host=$host_alias
853 target=$target_alias
854
855 # FIXME: To remove some day.
856 if test "x$host_alias" != x; then
857   if test "x$build_alias" = x; then
858     cross_compiling=maybe
859     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860     If a cross compiler is detected then cross compile mode will be used." >&2
861   elif test "x$build_alias" != "x$host_alias"; then
862     cross_compiling=yes
863   fi
864 fi
865
866 ac_tool_prefix=
867 test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869 test "$silent" = yes && exec 6>/dev/null
870
871
872 # Find the source files, if location was not specified.
873 if test -z "$srcdir"; then
874   ac_srcdir_defaulted=yes
875   # Try the directory containing this script, then its parent.
876   ac_confdir=`(dirname "$0") 2>/dev/null ||
877 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
878          X"$0" : 'X\(//\)[^/]' \| \
879          X"$0" : 'X\(//\)$' \| \
880          X"$0" : 'X\(/\)' \| \
881          .     : '\(.\)' 2>/dev/null ||
882 echo X"$0" |
883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885           /^X\(\/\/\)$/{ s//\1/; q; }
886           /^X\(\/\).*/{ s//\1/; q; }
887           s/.*/./; q'`
888   srcdir=$ac_confdir
889   if test ! -r $srcdir/$ac_unique_file; then
890     srcdir=..
891   fi
892 else
893   ac_srcdir_defaulted=no
894 fi
895 if test ! -r $srcdir/$ac_unique_file; then
896   if test "$ac_srcdir_defaulted" = yes; then
897     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898    { (exit 1); exit 1; }; }
899   else
900     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901    { (exit 1); exit 1; }; }
902   fi
903 fi
904 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906    { (exit 1); exit 1; }; }
907 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908 ac_env_build_alias_set=${build_alias+set}
909 ac_env_build_alias_value=$build_alias
910 ac_cv_env_build_alias_set=${build_alias+set}
911 ac_cv_env_build_alias_value=$build_alias
912 ac_env_host_alias_set=${host_alias+set}
913 ac_env_host_alias_value=$host_alias
914 ac_cv_env_host_alias_set=${host_alias+set}
915 ac_cv_env_host_alias_value=$host_alias
916 ac_env_target_alias_set=${target_alias+set}
917 ac_env_target_alias_value=$target_alias
918 ac_cv_env_target_alias_set=${target_alias+set}
919 ac_cv_env_target_alias_value=$target_alias
920 ac_env_CC_set=${CC+set}
921 ac_env_CC_value=$CC
922 ac_cv_env_CC_set=${CC+set}
923 ac_cv_env_CC_value=$CC
924 ac_env_CFLAGS_set=${CFLAGS+set}
925 ac_env_CFLAGS_value=$CFLAGS
926 ac_cv_env_CFLAGS_set=${CFLAGS+set}
927 ac_cv_env_CFLAGS_value=$CFLAGS
928 ac_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_env_LDFLAGS_value=$LDFLAGS
930 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931 ac_cv_env_LDFLAGS_value=$LDFLAGS
932 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_env_CPPFLAGS_value=$CPPFLAGS
934 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXX_set=${CXX+set}
941 ac_env_CXX_value=$CXX
942 ac_cv_env_CXX_set=${CXX+set}
943 ac_cv_env_CXX_value=$CXX
944 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945 ac_env_CXXFLAGS_value=$CXXFLAGS
946 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948 ac_env_CXXCPP_set=${CXXCPP+set}
949 ac_env_CXXCPP_value=$CXXCPP
950 ac_cv_env_CXXCPP_set=${CXXCPP+set}
951 ac_cv_env_CXXCPP_value=$CXXCPP
952 ac_env_F77_set=${F77+set}
953 ac_env_F77_value=$F77
954 ac_cv_env_F77_set=${F77+set}
955 ac_cv_env_F77_value=$F77
956 ac_env_FFLAGS_set=${FFLAGS+set}
957 ac_env_FFLAGS_value=$FFLAGS
958 ac_cv_env_FFLAGS_set=${FFLAGS+set}
959 ac_cv_env_FFLAGS_value=$FFLAGS
960
961 #
962 # Report the --help message.
963 #
964 if test "$ac_init_help" = "long"; then
965   # Omit some internal or obsolete options to make the list less imposing.
966   # This message is too long to be a string in the A/UX 3.1 sh.
967   cat <<_ACEOF
968 \`configure' configures llvm 1.8cvs to adapt to many kinds of systems.
969
970 Usage: $0 [OPTION]... [VAR=VALUE]...
971
972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
973 VAR=VALUE.  See below for descriptions of some of the useful variables.
974
975 Defaults for the options are specified in brackets.
976
977 Configuration:
978   -h, --help              display this help and exit
979       --help=short        display options specific to this package
980       --help=recursive    display the short help of all the included packages
981   -V, --version           display version information and exit
982   -q, --quiet, --silent   do not print \`checking...' messages
983       --cache-file=FILE   cache test results in FILE [disabled]
984   -C, --config-cache      alias for \`--cache-file=config.cache'
985   -n, --no-create         do not create output files
986       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
987
988 _ACEOF
989
990   cat <<_ACEOF
991 Installation directories:
992   --prefix=PREFIX         install architecture-independent files in PREFIX
993                           [$ac_default_prefix]
994   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
995                           [PREFIX]
996
997 By default, \`make install' will install all the files in
998 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
999 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000 for instance \`--prefix=\$HOME'.
1001
1002 For better control, use the options below.
1003
1004 Fine tuning of the installation directories:
1005   --bindir=DIR           user executables [EPREFIX/bin]
1006   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1007   --libexecdir=DIR       program executables [EPREFIX/libexec]
1008   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1009   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1010   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1011   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1012   --libdir=DIR           object code libraries [EPREFIX/lib]
1013   --includedir=DIR       C header files [PREFIX/include]
1014   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1015   --infodir=DIR          info documentation [PREFIX/info]
1016   --mandir=DIR           man documentation [PREFIX/man]
1017 _ACEOF
1018
1019   cat <<\_ACEOF
1020
1021 System types:
1022   --build=BUILD     configure for building on BUILD [guessed]
1023   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1024   --target=TARGET   configure for building compilers for TARGET [HOST]
1025 _ACEOF
1026 fi
1027
1028 if test -n "$ac_init_help"; then
1029   case $ac_init_help in
1030      short | recursive ) echo "Configuration of llvm 1.8cvs:";;
1031    esac
1032   cat <<\_ACEOF
1033
1034 Optional Features:
1035   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1036   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1037   --enable-optimized
1038   --enable-assertions
1039   --enable-debug-runtime
1040   --enable-jit            Enable Just In Time Compiling (default is YES)
1041   --enable-doxygen        Build doxygen documentation (default is NO)
1042   --enable-threads        Use threads if available (default is YES)
1043   --enable-target         Build specific host targets:
1044                           all,host-only,{target-name} (default=all)
1045   --enable-ltdl-install   install libltdl
1046   --enable-shared[=PKGS]
1047                           build shared libraries [default=yes]
1048   --enable-static[=PKGS]
1049                           build static libraries [default=yes]
1050   --enable-fast-install[=PKGS]
1051                           optimize for fast installation [default=yes]
1052   --disable-libtool-lock  avoid locking (might break parallel builds)
1053
1054 Optional Packages:
1055   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1056   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1057   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1058                           searches PATH)
1059   --with-tclinclude       directory where tcl headers are
1060   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1061   --with-pic              try to use only PIC/non-PIC objects [default=use
1062                           both]
1063   --with-tags[=TAGS]
1064                           include additional configurations [automatic]
1065
1066 Some influential environment variables:
1067   CC          C compiler command
1068   CFLAGS      C compiler flags
1069   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1070               nonstandard directory <lib dir>
1071   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072               headers in a nonstandard directory <include dir>
1073   CPP         C preprocessor
1074   CXX         C++ compiler command
1075   CXXFLAGS    C++ compiler flags
1076   CXXCPP      C++ preprocessor
1077   F77         Fortran 77 compiler command
1078   FFLAGS      Fortran 77 compiler flags
1079
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1082
1083 Report bugs to <llvmbugs@cs.uiuc.edu>.
1084 _ACEOF
1085 fi
1086
1087 if test "$ac_init_help" = "recursive"; then
1088   # If there are subdirs, report their specific --help.
1089   ac_popdir=`pwd`
1090   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091     test -d $ac_dir || continue
1092     ac_builddir=.
1093
1094 if test "$ac_dir" != .; then
1095   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096   # A "../" for each directory in $ac_dir_suffix.
1097   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1098 else
1099   ac_dir_suffix= ac_top_builddir=
1100 fi
1101
1102 case $srcdir in
1103   .)  # No --srcdir option.  We are building in place.
1104     ac_srcdir=.
1105     if test -z "$ac_top_builddir"; then
1106        ac_top_srcdir=.
1107     else
1108        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1109     fi ;;
1110   [\\/]* | ?:[\\/]* )  # Absolute path.
1111     ac_srcdir=$srcdir$ac_dir_suffix;
1112     ac_top_srcdir=$srcdir ;;
1113   *) # Relative path.
1114     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1116 esac
1117
1118 # Do not use `cd foo && pwd` to compute absolute paths, because
1119 # the directories may not exist.
1120 case `pwd` in
1121 .) ac_abs_builddir="$ac_dir";;
1122 *)
1123   case "$ac_dir" in
1124   .) ac_abs_builddir=`pwd`;;
1125   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1127   esac;;
1128 esac
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1131 *)
1132   case ${ac_top_builddir}. in
1133   .) ac_abs_top_builddir=$ac_abs_builddir;;
1134   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1136   esac;;
1137 esac
1138 case $ac_abs_builddir in
1139 .) ac_abs_srcdir=$ac_srcdir;;
1140 *)
1141   case $ac_srcdir in
1142   .) ac_abs_srcdir=$ac_abs_builddir;;
1143   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1145   esac;;
1146 esac
1147 case $ac_abs_builddir in
1148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1149 *)
1150   case $ac_top_srcdir in
1151   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1154   esac;;
1155 esac
1156
1157     cd $ac_dir
1158     # Check for guested configure; otherwise get Cygnus style configure.
1159     if test -f $ac_srcdir/configure.gnu; then
1160       echo
1161       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1162     elif test -f $ac_srcdir/configure; then
1163       echo
1164       $SHELL $ac_srcdir/configure  --help=recursive
1165     elif test -f $ac_srcdir/configure.ac ||
1166            test -f $ac_srcdir/configure.in; then
1167       echo
1168       $ac_configure --help
1169     else
1170       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1171     fi
1172     cd $ac_popdir
1173   done
1174 fi
1175
1176 test -n "$ac_init_help" && exit 0
1177 if $ac_init_version; then
1178   cat <<\_ACEOF
1179 llvm configure 1.8cvs
1180 generated by GNU Autoconf 2.59
1181
1182 Copyright (C) 2003 Free Software Foundation, Inc.
1183 This configure script is free software; the Free Software Foundation
1184 gives unlimited permission to copy, distribute and modify it.
1185
1186 Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
1187 _ACEOF
1188   exit 0
1189 fi
1190 exec 5>config.log
1191 cat >&5 <<_ACEOF
1192 This file contains any messages produced by compilers while
1193 running configure, to aid debugging if configure makes a mistake.
1194
1195 It was created by llvm $as_me 1.8cvs, which was
1196 generated by GNU Autoconf 2.59.  Invocation command line was
1197
1198   $ $0 $@
1199
1200 _ACEOF
1201 {
1202 cat <<_ASUNAME
1203 ## --------- ##
1204 ## Platform. ##
1205 ## --------- ##
1206
1207 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1208 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1209 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1210 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1211 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1212
1213 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1214 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1215
1216 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1217 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1218 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1219 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1220 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1221 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1222 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1223
1224 _ASUNAME
1225
1226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1227 for as_dir in $PATH
1228 do
1229   IFS=$as_save_IFS
1230   test -z "$as_dir" && as_dir=.
1231   echo "PATH: $as_dir"
1232 done
1233
1234 } >&5
1235
1236 cat >&5 <<_ACEOF
1237
1238
1239 ## ----------- ##
1240 ## Core tests. ##
1241 ## ----------- ##
1242
1243 _ACEOF
1244
1245
1246 # Keep a trace of the command line.
1247 # Strip out --no-create and --no-recursion so they do not pile up.
1248 # Strip out --silent because we don't want to record it for future runs.
1249 # Also quote any args containing shell meta-characters.
1250 # Make two passes to allow for proper duplicate-argument suppression.
1251 ac_configure_args=
1252 ac_configure_args0=
1253 ac_configure_args1=
1254 ac_sep=
1255 ac_must_keep_next=false
1256 for ac_pass in 1 2
1257 do
1258   for ac_arg
1259   do
1260     case $ac_arg in
1261     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1262     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263     | -silent | --silent | --silen | --sile | --sil)
1264       continue ;;
1265     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1267     esac
1268     case $ac_pass in
1269     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1270     2)
1271       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1272       if test $ac_must_keep_next = true; then
1273         ac_must_keep_next=false # Got value, back to normal.
1274       else
1275         case $ac_arg in
1276           *=* | --config-cache | -C | -disable-* | --disable-* \
1277           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1278           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1279           | -with-* | --with-* | -without-* | --without-* | --x)
1280             case "$ac_configure_args0 " in
1281               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1282             esac
1283             ;;
1284           -* ) ac_must_keep_next=true ;;
1285         esac
1286       fi
1287       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1288       # Get rid of the leading space.
1289       ac_sep=" "
1290       ;;
1291     esac
1292   done
1293 done
1294 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1295 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1296
1297 # When interrupted or exit'd, cleanup temporary files, and complete
1298 # config.log.  We remove comments because anyway the quotes in there
1299 # would cause problems or look ugly.
1300 # WARNING: Be sure not to use single quotes in there, as some shells,
1301 # such as our DU 5.0 friend, will then `close' the trap.
1302 trap 'exit_status=$?
1303   # Save into config.log some information that might help in debugging.
1304   {
1305     echo
1306
1307     cat <<\_ASBOX
1308 ## ---------------- ##
1309 ## Cache variables. ##
1310 ## ---------------- ##
1311 _ASBOX
1312     echo
1313     # The following way of writing the cache mishandles newlines in values,
1314 {
1315   (set) 2>&1 |
1316     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1317     *ac_space=\ *)
1318       sed -n \
1319         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1320           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1321       ;;
1322     *)
1323       sed -n \
1324         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1325       ;;
1326     esac;
1327 }
1328     echo
1329
1330     cat <<\_ASBOX
1331 ## ----------------- ##
1332 ## Output variables. ##
1333 ## ----------------- ##
1334 _ASBOX
1335     echo
1336     for ac_var in $ac_subst_vars
1337     do
1338       eval ac_val=$`echo $ac_var`
1339       echo "$ac_var='"'"'$ac_val'"'"'"
1340     done | sort
1341     echo
1342
1343     if test -n "$ac_subst_files"; then
1344       cat <<\_ASBOX
1345 ## ------------- ##
1346 ## Output files. ##
1347 ## ------------- ##
1348 _ASBOX
1349       echo
1350       for ac_var in $ac_subst_files
1351       do
1352         eval ac_val=$`echo $ac_var`
1353         echo "$ac_var='"'"'$ac_val'"'"'"
1354       done | sort
1355       echo
1356     fi
1357
1358     if test -s confdefs.h; then
1359       cat <<\_ASBOX
1360 ## ----------- ##
1361 ## confdefs.h. ##
1362 ## ----------- ##
1363 _ASBOX
1364       echo
1365       sed "/^$/d" confdefs.h | sort
1366       echo
1367     fi
1368     test "$ac_signal" != 0 &&
1369       echo "$as_me: caught signal $ac_signal"
1370     echo "$as_me: exit $exit_status"
1371   } >&5
1372   rm -f core *.core &&
1373   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1374     exit $exit_status
1375      ' 0
1376 for ac_signal in 1 2 13 15; do
1377   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1378 done
1379 ac_signal=0
1380
1381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1382 rm -rf conftest* confdefs.h
1383 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1384 echo >confdefs.h
1385
1386 # Predefined preprocessor variables.
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_NAME "$PACKAGE_NAME"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1395 _ACEOF
1396
1397
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1400 _ACEOF
1401
1402
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_STRING "$PACKAGE_STRING"
1405 _ACEOF
1406
1407
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1410 _ACEOF
1411
1412
1413 # Let the site file select an alternate cache file if it wants to.
1414 # Prefer explicitly selected file to automatically selected ones.
1415 if test -z "$CONFIG_SITE"; then
1416   if test "x$prefix" != xNONE; then
1417     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1418   else
1419     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1420   fi
1421 fi
1422 for ac_site_file in $CONFIG_SITE; do
1423   if test -r "$ac_site_file"; then
1424     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1425 echo "$as_me: loading site script $ac_site_file" >&6;}
1426     sed 's/^/| /' "$ac_site_file" >&5
1427     . "$ac_site_file"
1428   fi
1429 done
1430
1431 if test -r "$cache_file"; then
1432   # Some versions of bash will fail to source /dev/null (special
1433   # files actually), so we avoid doing that.
1434   if test -f "$cache_file"; then
1435     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1436 echo "$as_me: loading cache $cache_file" >&6;}
1437     case $cache_file in
1438       [\\/]* | ?:[\\/]* ) . $cache_file;;
1439       *)                      . ./$cache_file;;
1440     esac
1441   fi
1442 else
1443   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1444 echo "$as_me: creating cache $cache_file" >&6;}
1445   >$cache_file
1446 fi
1447
1448 # Check that the precious variables saved in the cache have kept the same
1449 # value.
1450 ac_cache_corrupted=false
1451 for ac_var in `(set) 2>&1 |
1452                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1453   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1454   eval ac_new_set=\$ac_env_${ac_var}_set
1455   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1456   eval ac_new_val="\$ac_env_${ac_var}_value"
1457   case $ac_old_set,$ac_new_set in
1458     set,)
1459       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1461       ac_cache_corrupted=: ;;
1462     ,set)
1463       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1464 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1465       ac_cache_corrupted=: ;;
1466     ,);;
1467     *)
1468       if test "x$ac_old_val" != "x$ac_new_val"; then
1469         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1470 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1471         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1472 echo "$as_me:   former value:  $ac_old_val" >&2;}
1473         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1474 echo "$as_me:   current value: $ac_new_val" >&2;}
1475         ac_cache_corrupted=:
1476       fi;;
1477   esac
1478   # Pass precious variables to config.status.
1479   if test "$ac_new_set" = set; then
1480     case $ac_new_val in
1481     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1482       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1483     *) ac_arg=$ac_var=$ac_new_val ;;
1484     esac
1485     case " $ac_configure_args " in
1486       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1487       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1488     esac
1489   fi
1490 done
1491 if $ac_cache_corrupted; then
1492   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1493 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1494   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1495 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1496    { (exit 1); exit 1; }; }
1497 fi
1498
1499 ac_ext=c
1500 ac_cpp='$CPP $CPPFLAGS'
1501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532 LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
1533
1534
1535
1536
1537
1538
1539
1540 ac_aux_dir=
1541 for ac_dir in autoconf $srcdir/autoconf; do
1542   if test -f $ac_dir/install-sh; then
1543     ac_aux_dir=$ac_dir
1544     ac_install_sh="$ac_aux_dir/install-sh -c"
1545     break
1546   elif test -f $ac_dir/install.sh; then
1547     ac_aux_dir=$ac_dir
1548     ac_install_sh="$ac_aux_dir/install.sh -c"
1549     break
1550   elif test -f $ac_dir/shtool; then
1551     ac_aux_dir=$ac_dir
1552     ac_install_sh="$ac_aux_dir/shtool install -c"
1553     break
1554   fi
1555 done
1556 if test -z "$ac_aux_dir"; then
1557   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1558 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1559    { (exit 1); exit 1; }; }
1560 fi
1561 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1564
1565
1566 if test ${srcdir} != "." ; then
1567   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1568     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1569 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1570    { (exit 1); exit 1; }; }
1571   fi
1572 fi
1573
1574 for i in `ls ${srcdir}/projects`
1575 do
1576   if test -d ${srcdir}/projects/${i} ; then
1577     case ${i} in
1578       "CVS") ;;
1579       "sample")
1580
1581 subdirs="$subdirs projects/sample"
1582     ;;
1583       "Stacker")
1584
1585 subdirs="$subdirs projects/Stacker"
1586    ;;
1587       "llvm-test")
1588
1589 subdirs="$subdirs projects/llvm-test"
1590  ;;
1591       "llvm-reopt")
1592
1593 subdirs="$subdirs projects/llvm-reopt"
1594 ;;
1595       "llvm-gcc")
1596
1597 subdirs="$subdirs projects/llvm-gcc"
1598   ;;
1599       "llvm-java")
1600
1601 subdirs="$subdirs projects/llvm-java"
1602  ;;
1603       "llvm-tv")
1604
1605 subdirs="$subdirs projects/llvm-tv"
1606    ;;
1607       "llvm-poolalloc")
1608
1609 subdirs="$subdirs projects/llvm-poolalloc"
1610  ;;
1611       "llvm-kernel")
1612
1613 subdirs="$subdirs projects/llvm-kernel"
1614  ;;
1615       *)
1616         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1617 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1618         ;;
1619     esac
1620   fi
1621 done
1622
1623
1624 # Make sure we can run config.sub.
1625 $ac_config_sub sun4 >/dev/null 2>&1 ||
1626   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1627 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1628    { (exit 1); exit 1; }; }
1629
1630 echo "$as_me:$LINENO: checking build system type" >&5
1631 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1632 if test "${ac_cv_build+set}" = set; then
1633   echo $ECHO_N "(cached) $ECHO_C" >&6
1634 else
1635   ac_cv_build_alias=$build_alias
1636 test -z "$ac_cv_build_alias" &&
1637   ac_cv_build_alias=`$ac_config_guess`
1638 test -z "$ac_cv_build_alias" &&
1639   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1640 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1641    { (exit 1); exit 1; }; }
1642 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1643   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1644 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1645    { (exit 1); exit 1; }; }
1646
1647 fi
1648 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1649 echo "${ECHO_T}$ac_cv_build" >&6
1650 build=$ac_cv_build
1651 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1652 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1653 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1654
1655
1656 echo "$as_me:$LINENO: checking host system type" >&5
1657 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1658 if test "${ac_cv_host+set}" = set; then
1659   echo $ECHO_N "(cached) $ECHO_C" >&6
1660 else
1661   ac_cv_host_alias=$host_alias
1662 test -z "$ac_cv_host_alias" &&
1663   ac_cv_host_alias=$ac_cv_build_alias
1664 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1665   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1666 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1667    { (exit 1); exit 1; }; }
1668
1669 fi
1670 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1671 echo "${ECHO_T}$ac_cv_host" >&6
1672 host=$ac_cv_host
1673 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1674 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1675 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1676
1677
1678 echo "$as_me:$LINENO: checking target system type" >&5
1679 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1680 if test "${ac_cv_target+set}" = set; then
1681   echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683   ac_cv_target_alias=$target_alias
1684 test "x$ac_cv_target_alias" = "x" &&
1685   ac_cv_target_alias=$ac_cv_host_alias
1686 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1687   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1688 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1689    { (exit 1); exit 1; }; }
1690
1691 fi
1692 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1693 echo "${ECHO_T}$ac_cv_target" >&6
1694 target=$ac_cv_target
1695 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1696 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1697 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1698
1699
1700 # The aliases save the names the user supplied, while $host etc.
1701 # will get canonicalized.
1702 test -n "$target_alias" &&
1703   test "$program_prefix$program_suffix$program_transform_name" = \
1704     NONENONEs,x,x, &&
1705   program_prefix=${target_alias}-
1706
1707 echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1708 echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1709 if test "${llvm_cv_os_type+set}" = set; then
1710   echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712   case $build in
1713   *-*-aix*)
1714     llvm_cv_os_type="AIX"
1715     llvm_cv_platform_type="Unix" ;;
1716   *-*-cygwin*)
1717     llvm_cv_os_type="Cygwin"
1718     llvm_cv_platform_type="Unix" ;;
1719   *-*-darwin*)
1720     llvm_cv_os_type="Darwin"
1721     llvm_cv_platform_type="Unix" ;;
1722   *-*-freebsd*)
1723     llvm_cv_os_type="FreeBSD"
1724     llvm_cv_platform_type="Unix" ;;
1725   *-*-hpux*)
1726     llvm_cv_os_type="HP-UX"
1727     llvm_cv_platform_type="Unix" ;;
1728   *-*-interix*)
1729     llvm_cv_os_type="Interix"
1730     llvm_cv_platform_type="Unix" ;;
1731   *-*-linux*)
1732     llvm_cv_os_type="Linux"
1733     llvm_cv_platform_type="Unix" ;;
1734   *-*-solaris*)
1735     llvm_cv_os_type="SunOS"
1736     llvm_cv_platform_type="Unix" ;;
1737   *-*-win32*)
1738     llvm_cv_os_type="Win32"
1739     llvm_cv_platform_type="Win32" ;;
1740   *-*-mingw*)
1741     llvm_cv_os_type="MingW"
1742     llvm_cv_platform_type="Win32" ;;
1743   *)
1744     llvm_cv_os_type="Unknown"
1745     llvm_cv_platform_type="Unknown" ;;
1746 esac
1747 fi
1748 echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1749 echo "${ECHO_T}$llvm_cv_os_type" >&6
1750
1751 if test "$llvm_cv_os_type" = "Unknown" ; then
1752   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1753 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
1754    { (exit 1); exit 1; }; }
1755 fi
1756
1757 OS=$llvm_cv_os_type
1758
1759
1760 case $llvm_cv_platform_type in
1761   Unix)
1762
1763 cat >>confdefs.h <<\_ACEOF
1764 #define LLVM_ON_UNIX 1
1765 _ACEOF
1766
1767     LLVM_ON_UNIX=1
1768
1769     LLVM_ON_WIN32=0
1770
1771     ;;
1772   Win32)
1773
1774 cat >>confdefs.h <<\_ACEOF
1775 #define LLVM_ON_WIN32 1
1776 _ACEOF
1777
1778     LLVM_ON_UNIX=0
1779
1780     LLVM_ON_WIN32=1
1781
1782     ;;
1783 esac
1784
1785 echo "$as_me:$LINENO: checking target architecture" >&5
1786 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1787 if test "${llvm_cv_target_arch+set}" = set; then
1788   echo $ECHO_N "(cached) $ECHO_C" >&6
1789 else
1790   case $target in
1791   i?86-*)                 llvm_cv_target_arch="x86" ;;
1792   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
1793   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
1794   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
1795   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
1796   ia64-*)                 llvm_cv_target_arch="IA64" ;;
1797   *)                      llvm_cv_target_arch="Unknown" ;;
1798 esac
1799 fi
1800 echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1801 echo "${ECHO_T}$llvm_cv_target_arch" >&6
1802
1803 if test "$llvm_cv_target_arch" = "Unknown" ; then
1804   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1805 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1806 fi
1807
1808 ARCH=$llvm_cv_target_arch
1809
1810
1811 ac_ext=c
1812 ac_cpp='$CPP $CPPFLAGS'
1813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1816 if test -n "$ac_tool_prefix"; then
1817   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1818 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1819 echo "$as_me:$LINENO: checking for $ac_word" >&5
1820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821 if test "${ac_cv_prog_CC+set}" = set; then
1822   echo $ECHO_N "(cached) $ECHO_C" >&6
1823 else
1824   if test -n "$CC"; then
1825   ac_cv_prog_CC="$CC" # Let the user override the test.
1826 else
1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828 for as_dir in $PATH
1829 do
1830   IFS=$as_save_IFS
1831   test -z "$as_dir" && as_dir=.
1832   for ac_exec_ext in '' $ac_executable_extensions; do
1833   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1834     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1836     break 2
1837   fi
1838 done
1839 done
1840
1841 fi
1842 fi
1843 CC=$ac_cv_prog_CC
1844 if test -n "$CC"; then
1845   echo "$as_me:$LINENO: result: $CC" >&5
1846 echo "${ECHO_T}$CC" >&6
1847 else
1848   echo "$as_me:$LINENO: result: no" >&5
1849 echo "${ECHO_T}no" >&6
1850 fi
1851
1852 fi
1853 if test -z "$ac_cv_prog_CC"; then
1854   ac_ct_CC=$CC
1855   # Extract the first word of "gcc", so it can be a program name with args.
1856 set dummy gcc; ac_word=$2
1857 echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1860   echo $ECHO_N "(cached) $ECHO_C" >&6
1861 else
1862   if test -n "$ac_ct_CC"; then
1863   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1864 else
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 for as_dir in $PATH
1867 do
1868   IFS=$as_save_IFS
1869   test -z "$as_dir" && as_dir=.
1870   for ac_exec_ext in '' $ac_executable_extensions; do
1871   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872     ac_cv_prog_ac_ct_CC="gcc"
1873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874     break 2
1875   fi
1876 done
1877 done
1878
1879 fi
1880 fi
1881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1882 if test -n "$ac_ct_CC"; then
1883   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1884 echo "${ECHO_T}$ac_ct_CC" >&6
1885 else
1886   echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6
1888 fi
1889
1890   CC=$ac_ct_CC
1891 else
1892   CC="$ac_cv_prog_CC"
1893 fi
1894
1895 if test -z "$CC"; then
1896   if test -n "$ac_tool_prefix"; then
1897   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1898 set dummy ${ac_tool_prefix}cc; ac_word=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_CC+set}" = set; then
1902   echo $ECHO_N "(cached) $ECHO_C" >&6
1903 else
1904   if test -n "$CC"; then
1905   ac_cv_prog_CC="$CC" # Let the user override the test.
1906 else
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 for as_dir in $PATH
1909 do
1910   IFS=$as_save_IFS
1911   test -z "$as_dir" && as_dir=.
1912   for ac_exec_ext in '' $ac_executable_extensions; do
1913   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914     ac_cv_prog_CC="${ac_tool_prefix}cc"
1915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916     break 2
1917   fi
1918 done
1919 done
1920
1921 fi
1922 fi
1923 CC=$ac_cv_prog_CC
1924 if test -n "$CC"; then
1925   echo "$as_me:$LINENO: result: $CC" >&5
1926 echo "${ECHO_T}$CC" >&6
1927 else
1928   echo "$as_me:$LINENO: result: no" >&5
1929 echo "${ECHO_T}no" >&6
1930 fi
1931
1932 fi
1933 if test -z "$ac_cv_prog_CC"; then
1934   ac_ct_CC=$CC
1935   # Extract the first word of "cc", so it can be a program name with args.
1936 set dummy cc; ac_word=$2
1937 echo "$as_me:$LINENO: checking for $ac_word" >&5
1938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1940   echo $ECHO_N "(cached) $ECHO_C" >&6
1941 else
1942   if test -n "$ac_ct_CC"; then
1943   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1944 else
1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 for as_dir in $PATH
1947 do
1948   IFS=$as_save_IFS
1949   test -z "$as_dir" && as_dir=.
1950   for ac_exec_ext in '' $ac_executable_extensions; do
1951   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952     ac_cv_prog_ac_ct_CC="cc"
1953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954     break 2
1955   fi
1956 done
1957 done
1958
1959 fi
1960 fi
1961 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1962 if test -n "$ac_ct_CC"; then
1963   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1964 echo "${ECHO_T}$ac_ct_CC" >&6
1965 else
1966   echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1968 fi
1969
1970   CC=$ac_ct_CC
1971 else
1972   CC="$ac_cv_prog_CC"
1973 fi
1974
1975 fi
1976 if test -z "$CC"; then
1977   # Extract the first word of "cc", so it can be a program name with args.
1978 set dummy cc; ac_word=$2
1979 echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981 if test "${ac_cv_prog_CC+set}" = set; then
1982   echo $ECHO_N "(cached) $ECHO_C" >&6
1983 else
1984   if test -n "$CC"; then
1985   ac_cv_prog_CC="$CC" # Let the user override the test.
1986 else
1987   ac_prog_rejected=no
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1990 do
1991   IFS=$as_save_IFS
1992   test -z "$as_dir" && as_dir=.
1993   for ac_exec_ext in '' $ac_executable_extensions; do
1994   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1996        ac_prog_rejected=yes
1997        continue
1998      fi
1999     ac_cv_prog_CC="cc"
2000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001     break 2
2002   fi
2003 done
2004 done
2005
2006 if test $ac_prog_rejected = yes; then
2007   # We found a bogon in the path, so make sure we never use it.
2008   set dummy $ac_cv_prog_CC
2009   shift
2010   if test $# != 0; then
2011     # We chose a different compiler from the bogus one.
2012     # However, it has the same basename, so the bogon will be chosen
2013     # first if we set CC to just the basename; use the full file name.
2014     shift
2015     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2016   fi
2017 fi
2018 fi
2019 fi
2020 CC=$ac_cv_prog_CC
2021 if test -n "$CC"; then
2022   echo "$as_me:$LINENO: result: $CC" >&5
2023 echo "${ECHO_T}$CC" >&6
2024 else
2025   echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2027 fi
2028
2029 fi
2030 if test -z "$CC"; then
2031   if test -n "$ac_tool_prefix"; then
2032   for ac_prog in cl
2033   do
2034     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2035 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_CC+set}" = set; then
2039   echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041   if test -n "$CC"; then
2042   ac_cv_prog_CC="$CC" # Let the user override the test.
2043 else
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 for as_dir in $PATH
2046 do
2047   IFS=$as_save_IFS
2048   test -z "$as_dir" && as_dir=.
2049   for ac_exec_ext in '' $ac_executable_extensions; do
2050   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2051     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2053     break 2
2054   fi
2055 done
2056 done
2057
2058 fi
2059 fi
2060 CC=$ac_cv_prog_CC
2061 if test -n "$CC"; then
2062   echo "$as_me:$LINENO: result: $CC" >&5
2063 echo "${ECHO_T}$CC" >&6
2064 else
2065   echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6
2067 fi
2068
2069     test -n "$CC" && break
2070   done
2071 fi
2072 if test -z "$CC"; then
2073   ac_ct_CC=$CC
2074   for ac_prog in cl
2075 do
2076   # Extract the first word of "$ac_prog", so it can be a program name with args.
2077 set dummy $ac_prog; ac_word=$2
2078 echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2080 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2081   echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083   if test -n "$ac_ct_CC"; then
2084   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2085 else
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 for as_dir in $PATH
2088 do
2089   IFS=$as_save_IFS
2090   test -z "$as_dir" && as_dir=.
2091   for ac_exec_ext in '' $ac_executable_extensions; do
2092   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2093     ac_cv_prog_ac_ct_CC="$ac_prog"
2094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095     break 2
2096   fi
2097 done
2098 done
2099
2100 fi
2101 fi
2102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2103 if test -n "$ac_ct_CC"; then
2104   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2105 echo "${ECHO_T}$ac_ct_CC" >&6
2106 else
2107   echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6
2109 fi
2110
2111   test -n "$ac_ct_CC" && break
2112 done
2113
2114   CC=$ac_ct_CC
2115 fi
2116
2117 fi
2118
2119
2120 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2121 See \`config.log' for more details." >&5
2122 echo "$as_me: error: no acceptable C compiler found in \$PATH
2123 See \`config.log' for more details." >&2;}
2124    { (exit 1); exit 1; }; }
2125
2126 # Provide some information about the compiler.
2127 echo "$as_me:$LINENO:" \
2128      "checking for C compiler version" >&5
2129 ac_compiler=`set X $ac_compile; echo $2`
2130 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2131   (eval $ac_compiler --version </dev/null >&5) 2>&5
2132   ac_status=$?
2133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134   (exit $ac_status); }
2135 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2136   (eval $ac_compiler -v </dev/null >&5) 2>&5
2137   ac_status=$?
2138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139   (exit $ac_status); }
2140 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2141   (eval $ac_compiler -V </dev/null >&5) 2>&5
2142   ac_status=$?
2143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144   (exit $ac_status); }
2145
2146 cat >conftest.$ac_ext <<_ACEOF
2147 /* confdefs.h.  */
2148 _ACEOF
2149 cat confdefs.h >>conftest.$ac_ext
2150 cat >>conftest.$ac_ext <<_ACEOF
2151 /* end confdefs.h.  */
2152
2153 int
2154 main ()
2155 {
2156
2157   ;
2158   return 0;
2159 }
2160 _ACEOF
2161 ac_clean_files_save=$ac_clean_files
2162 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2163 # Try to create an executable without -o first, disregard a.out.
2164 # It will help us diagnose broken compilers, and finding out an intuition
2165 # of exeext.
2166 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2167 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2168 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2169 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2170   (eval $ac_link_default) 2>&5
2171   ac_status=$?
2172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173   (exit $ac_status); }; then
2174   # Find the output, starting from the most likely.  This scheme is
2175 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2176 # resort.
2177
2178 # Be careful to initialize this variable, since it used to be cached.
2179 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2180 ac_cv_exeext=
2181 # b.out is created by i960 compilers.
2182 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2183 do
2184   test -f "$ac_file" || continue
2185   case $ac_file in
2186     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2187         ;;
2188     conftest.$ac_ext )
2189         # This is the source file.
2190         ;;
2191     [ab].out )
2192         # We found the default executable, but exeext='' is most
2193         # certainly right.
2194         break;;
2195     *.* )
2196         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2197         # FIXME: I believe we export ac_cv_exeext for Libtool,
2198         # but it would be cool to find out if it's true.  Does anybody
2199         # maintain Libtool? --akim.
2200         export ac_cv_exeext
2201         break;;
2202     * )
2203         break;;
2204   esac
2205 done
2206 else
2207   echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2209
2210 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2211 See \`config.log' for more details." >&5
2212 echo "$as_me: error: C compiler cannot create executables
2213 See \`config.log' for more details." >&2;}
2214    { (exit 77); exit 77; }; }
2215 fi
2216
2217 ac_exeext=$ac_cv_exeext
2218 echo "$as_me:$LINENO: result: $ac_file" >&5
2219 echo "${ECHO_T}$ac_file" >&6
2220
2221 # Check the compiler produces executables we can run.  If not, either
2222 # the compiler is broken, or we cross compile.
2223 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2224 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2225 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2226 # If not cross compiling, check that we can run a simple program.
2227 if test "$cross_compiling" != yes; then
2228   if { ac_try='./$ac_file'
2229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230   (eval $ac_try) 2>&5
2231   ac_status=$?
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); }; }; then
2234     cross_compiling=no
2235   else
2236     if test "$cross_compiling" = maybe; then
2237         cross_compiling=yes
2238     else
2239         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2240 If you meant to cross compile, use \`--host'.
2241 See \`config.log' for more details." >&5
2242 echo "$as_me: error: cannot run C compiled programs.
2243 If you meant to cross compile, use \`--host'.
2244 See \`config.log' for more details." >&2;}
2245    { (exit 1); exit 1; }; }
2246     fi
2247   fi
2248 fi
2249 echo "$as_me:$LINENO: result: yes" >&5
2250 echo "${ECHO_T}yes" >&6
2251
2252 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2253 ac_clean_files=$ac_clean_files_save
2254 # Check the compiler produces executables we can run.  If not, either
2255 # the compiler is broken, or we cross compile.
2256 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2257 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2258 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2259 echo "${ECHO_T}$cross_compiling" >&6
2260
2261 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2262 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2264   (eval $ac_link) 2>&5
2265   ac_status=$?
2266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267   (exit $ac_status); }; then
2268   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2269 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2270 # work properly (i.e., refer to `conftest.exe'), while it won't with
2271 # `rm'.
2272 for ac_file in conftest.exe conftest conftest.*; do
2273   test -f "$ac_file" || continue
2274   case $ac_file in
2275     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2276     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2277           export ac_cv_exeext
2278           break;;
2279     * ) break;;
2280   esac
2281 done
2282 else
2283   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2286 See \`config.log' for more details." >&2;}
2287    { (exit 1); exit 1; }; }
2288 fi
2289
2290 rm -f conftest$ac_cv_exeext
2291 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2292 echo "${ECHO_T}$ac_cv_exeext" >&6
2293
2294 rm -f conftest.$ac_ext
2295 EXEEXT=$ac_cv_exeext
2296 ac_exeext=$EXEEXT
2297 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2298 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2299 if test "${ac_cv_objext+set}" = set; then
2300   echo $ECHO_N "(cached) $ECHO_C" >&6
2301 else
2302   cat >conftest.$ac_ext <<_ACEOF
2303 /* confdefs.h.  */
2304 _ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h.  */
2308
2309 int
2310 main ()
2311 {
2312
2313   ;
2314   return 0;
2315 }
2316 _ACEOF
2317 rm -f conftest.o conftest.obj
2318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319   (eval $ac_compile) 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); }; then
2323   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2324   case $ac_file in
2325     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2326     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2327        break;;
2328   esac
2329 done
2330 else
2331   echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2333
2334 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2335 See \`config.log' for more details." >&5
2336 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2337 See \`config.log' for more details." >&2;}
2338    { (exit 1); exit 1; }; }
2339 fi
2340
2341 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2342 fi
2343 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2344 echo "${ECHO_T}$ac_cv_objext" >&6
2345 OBJEXT=$ac_cv_objext
2346 ac_objext=$OBJEXT
2347 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2348 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2349 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2350   echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352   cat >conftest.$ac_ext <<_ACEOF
2353 /* confdefs.h.  */
2354 _ACEOF
2355 cat confdefs.h >>conftest.$ac_ext
2356 cat >>conftest.$ac_ext <<_ACEOF
2357 /* end confdefs.h.  */
2358
2359 int
2360 main ()
2361 {
2362 #ifndef __GNUC__
2363        choke me
2364 #endif
2365
2366   ;
2367   return 0;
2368 }
2369 _ACEOF
2370 rm -f conftest.$ac_objext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372   (eval $ac_compile) 2>conftest.er1
2373   ac_status=$?
2374   grep -v '^ *+' conftest.er1 >conftest.err
2375   rm -f conftest.er1
2376   cat conftest.err >&5
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); } &&
2379          { ac_try='test -z "$ac_c_werror_flag"
2380                          || test ! -s conftest.err'
2381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382   (eval $ac_try) 2>&5
2383   ac_status=$?
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); }; } &&
2386          { ac_try='test -s conftest.$ac_objext'
2387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388   (eval $ac_try) 2>&5
2389   ac_status=$?
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); }; }; then
2392   ac_compiler_gnu=yes
2393 else
2394   echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2396
2397 ac_compiler_gnu=no
2398 fi
2399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2400 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2401
2402 fi
2403 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2404 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2405 GCC=`test $ac_compiler_gnu = yes && echo yes`
2406 ac_test_CFLAGS=${CFLAGS+set}
2407 ac_save_CFLAGS=$CFLAGS
2408 CFLAGS="-g"
2409 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2410 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2411 if test "${ac_cv_prog_cc_g+set}" = set; then
2412   echo $ECHO_N "(cached) $ECHO_C" >&6
2413 else
2414   cat >conftest.$ac_ext <<_ACEOF
2415 /* confdefs.h.  */
2416 _ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h.  */
2420
2421 int
2422 main ()
2423 {
2424
2425   ;
2426   return 0;
2427 }
2428 _ACEOF
2429 rm -f conftest.$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431   (eval $ac_compile) 2>conftest.er1
2432   ac_status=$?
2433   grep -v '^ *+' conftest.er1 >conftest.err
2434   rm -f conftest.er1
2435   cat conftest.err >&5
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); } &&
2438          { ac_try='test -z "$ac_c_werror_flag"
2439                          || test ! -s conftest.err'
2440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441   (eval $ac_try) 2>&5
2442   ac_status=$?
2443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444   (exit $ac_status); }; } &&
2445          { ac_try='test -s conftest.$ac_objext'
2446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447   (eval $ac_try) 2>&5
2448   ac_status=$?
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); }; }; then
2451   ac_cv_prog_cc_g=yes
2452 else
2453   echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2455
2456 ac_cv_prog_cc_g=no
2457 fi
2458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2459 fi
2460 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2461 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2462 if test "$ac_test_CFLAGS" = set; then
2463   CFLAGS=$ac_save_CFLAGS
2464 elif test $ac_cv_prog_cc_g = yes; then
2465   if test "$GCC" = yes; then
2466     CFLAGS="-g -O2"
2467   else
2468     CFLAGS="-g"
2469   fi
2470 else
2471   if test "$GCC" = yes; then
2472     CFLAGS="-O2"
2473   else
2474     CFLAGS=
2475   fi
2476 fi
2477 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2478 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2479 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2480   echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482   ac_cv_prog_cc_stdc=no
2483 ac_save_CC=$CC
2484 cat >conftest.$ac_ext <<_ACEOF
2485 /* confdefs.h.  */
2486 _ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h.  */
2490 #include <stdarg.h>
2491 #include <stdio.h>
2492 #include <sys/types.h>
2493 #include <sys/stat.h>
2494 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2495 struct buf { int x; };
2496 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2497 static char *e (p, i)
2498      char **p;
2499      int i;
2500 {
2501   return p[i];
2502 }
2503 static char *f (char * (*g) (char **, int), char **p, ...)
2504 {
2505   char *s;
2506   va_list v;
2507   va_start (v,p);
2508   s = g (p, va_arg (v,int));
2509   va_end (v);
2510   return s;
2511 }
2512
2513 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2514    function prototypes and stuff, but not '\xHH' hex character constants.
2515    These don't provoke an error unfortunately, instead are silently treated
2516    as 'x'.  The following induces an error, until -std1 is added to get
2517    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2518    array size at least.  It's necessary to write '\x00'==0 to get something
2519    that's true only with -std1.  */
2520 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2521
2522 int test (int i, double x);
2523 struct s1 {int (*f) (int a);};
2524 struct s2 {int (*f) (double a);};
2525 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2526 int argc;
2527 char **argv;
2528 int
2529 main ()
2530 {
2531 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2532   ;
2533   return 0;
2534 }
2535 _ACEOF
2536 # Don't try gcc -ansi; that turns off useful extensions and
2537 # breaks some systems' header files.
2538 # AIX                   -qlanglvl=ansi
2539 # Ultrix and OSF/1      -std1
2540 # HP-UX 10.20 and later -Ae
2541 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2542 # SVR4                  -Xc -D__EXTENSIONS__
2543 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2544 do
2545   CC="$ac_save_CC $ac_arg"
2546   rm -f conftest.$ac_objext
2547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548   (eval $ac_compile) 2>conftest.er1
2549   ac_status=$?
2550   grep -v '^ *+' conftest.er1 >conftest.err
2551   rm -f conftest.er1
2552   cat conftest.err >&5
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); } &&
2555          { ac_try='test -z "$ac_c_werror_flag"
2556                          || test ! -s conftest.err'
2557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558   (eval $ac_try) 2>&5
2559   ac_status=$?
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); }; } &&
2562          { ac_try='test -s conftest.$ac_objext'
2563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564   (eval $ac_try) 2>&5
2565   ac_status=$?
2566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567   (exit $ac_status); }; }; then
2568   ac_cv_prog_cc_stdc=$ac_arg
2569 break
2570 else
2571   echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2573
2574 fi
2575 rm -f conftest.err conftest.$ac_objext
2576 done
2577 rm -f conftest.$ac_ext conftest.$ac_objext
2578 CC=$ac_save_CC
2579
2580 fi
2581
2582 case "x$ac_cv_prog_cc_stdc" in
2583   x|xno)
2584     echo "$as_me:$LINENO: result: none needed" >&5
2585 echo "${ECHO_T}none needed" >&6 ;;
2586   *)
2587     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2588 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2589     CC="$CC $ac_cv_prog_cc_stdc" ;;
2590 esac
2591
2592 # Some people use a C++ compiler to compile C.  Since we use `exit',
2593 # in C++ we need to declare it.  In case someone uses the same compiler
2594 # for both compiling C and C++ we need to have the C++ compiler decide
2595 # the declaration of exit, since it's the most demanding environment.
2596 cat >conftest.$ac_ext <<_ACEOF
2597 #ifndef __cplusplus
2598   choke me
2599 #endif
2600 _ACEOF
2601 rm -f conftest.$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603   (eval $ac_compile) 2>conftest.er1
2604   ac_status=$?
2605   grep -v '^ *+' conftest.er1 >conftest.err
2606   rm -f conftest.er1
2607   cat conftest.err >&5
2608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609   (exit $ac_status); } &&
2610          { ac_try='test -z "$ac_c_werror_flag"
2611                          || test ! -s conftest.err'
2612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613   (eval $ac_try) 2>&5
2614   ac_status=$?
2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616   (exit $ac_status); }; } &&
2617          { ac_try='test -s conftest.$ac_objext'
2618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619   (eval $ac_try) 2>&5
2620   ac_status=$?
2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622   (exit $ac_status); }; }; then
2623   for ac_declaration in \
2624    '' \
2625    'extern "C" void std::exit (int) throw (); using std::exit;' \
2626    'extern "C" void std::exit (int); using std::exit;' \
2627    'extern "C" void exit (int) throw ();' \
2628    'extern "C" void exit (int);' \
2629    'void exit (int);'
2630 do
2631   cat >conftest.$ac_ext <<_ACEOF
2632 /* confdefs.h.  */
2633 _ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h.  */
2637 $ac_declaration
2638 #include <stdlib.h>
2639 int
2640 main ()
2641 {
2642 exit (42);
2643   ;
2644   return 0;
2645 }
2646 _ACEOF
2647 rm -f conftest.$ac_objext
2648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2649   (eval $ac_compile) 2>conftest.er1
2650   ac_status=$?
2651   grep -v '^ *+' conftest.er1 >conftest.err
2652   rm -f conftest.er1
2653   cat conftest.err >&5
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); } &&
2656          { ac_try='test -z "$ac_c_werror_flag"
2657                          || test ! -s conftest.err'
2658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659   (eval $ac_try) 2>&5
2660   ac_status=$?
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); }; } &&
2663          { ac_try='test -s conftest.$ac_objext'
2664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665   (eval $ac_try) 2>&5
2666   ac_status=$?
2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668   (exit $ac_status); }; }; then
2669   :
2670 else
2671   echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2673
2674 continue
2675 fi
2676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2677   cat >conftest.$ac_ext <<_ACEOF
2678 /* confdefs.h.  */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h.  */
2683 $ac_declaration
2684 int
2685 main ()
2686 {
2687 exit (42);
2688   ;
2689   return 0;
2690 }
2691 _ACEOF
2692 rm -f conftest.$ac_objext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694   (eval $ac_compile) 2>conftest.er1
2695   ac_status=$?
2696   grep -v '^ *+' conftest.er1 >conftest.err
2697   rm -f conftest.er1
2698   cat conftest.err >&5
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); } &&
2701          { ac_try='test -z "$ac_c_werror_flag"
2702                          || test ! -s conftest.err'
2703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704   (eval $ac_try) 2>&5
2705   ac_status=$?
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); }; } &&
2708          { ac_try='test -s conftest.$ac_objext'
2709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710   (eval $ac_try) 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); }; }; then
2714   break
2715 else
2716   echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2718
2719 fi
2720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2721 done
2722 rm -f conftest*
2723 if test -n "$ac_declaration"; then
2724   echo '#ifdef __cplusplus' >>confdefs.h
2725   echo $ac_declaration      >>confdefs.h
2726   echo '#endif'             >>confdefs.h
2727 fi
2728
2729 else
2730   echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2732
2733 fi
2734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2735 ac_ext=c
2736 ac_cpp='$CPP $CPPFLAGS'
2737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740
2741
2742 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2743 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2744 if test "${ac_cv_c_bigendian+set}" = set; then
2745   echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747   # See if sys/param.h defines the BYTE_ORDER macro.
2748 cat >conftest.$ac_ext <<_ACEOF
2749 /* confdefs.h.  */
2750 _ACEOF
2751 cat confdefs.h >>conftest.$ac_ext
2752 cat >>conftest.$ac_ext <<_ACEOF
2753 /* end confdefs.h.  */
2754 #include <sys/types.h>
2755 #include <sys/param.h>
2756
2757 int
2758 main ()
2759 {
2760 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2761  bogus endian macros
2762 #endif
2763
2764   ;
2765   return 0;
2766 }
2767 _ACEOF
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770   (eval $ac_compile) 2>conftest.er1
2771   ac_status=$?
2772   grep -v '^ *+' conftest.er1 >conftest.err
2773   rm -f conftest.er1
2774   cat conftest.err >&5
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); } &&
2777          { ac_try='test -z "$ac_c_werror_flag"
2778                          || test ! -s conftest.err'
2779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780   (eval $ac_try) 2>&5
2781   ac_status=$?
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); }; } &&
2784          { ac_try='test -s conftest.$ac_objext'
2785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786   (eval $ac_try) 2>&5
2787   ac_status=$?
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); }; }; then
2790   # It does; now see whether it defined to BIG_ENDIAN or not.
2791 cat >conftest.$ac_ext <<_ACEOF
2792 /* confdefs.h.  */
2793 _ACEOF
2794 cat confdefs.h >>conftest.$ac_ext
2795 cat >>conftest.$ac_ext <<_ACEOF
2796 /* end confdefs.h.  */
2797 #include <sys/types.h>
2798 #include <sys/param.h>
2799
2800 int
2801 main ()
2802 {
2803 #if BYTE_ORDER != BIG_ENDIAN
2804  not big endian
2805 #endif
2806
2807   ;
2808   return 0;
2809 }
2810 _ACEOF
2811 rm -f conftest.$ac_objext
2812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2813   (eval $ac_compile) 2>conftest.er1
2814   ac_status=$?
2815   grep -v '^ *+' conftest.er1 >conftest.err
2816   rm -f conftest.er1
2817   cat conftest.err >&5
2818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819   (exit $ac_status); } &&
2820          { ac_try='test -z "$ac_c_werror_flag"
2821                          || test ! -s conftest.err'
2822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823   (eval $ac_try) 2>&5
2824   ac_status=$?
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); }; } &&
2827          { ac_try='test -s conftest.$ac_objext'
2828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829   (eval $ac_try) 2>&5
2830   ac_status=$?
2831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832   (exit $ac_status); }; }; then
2833   ac_cv_c_bigendian=yes
2834 else
2835   echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2837
2838 ac_cv_c_bigendian=no
2839 fi
2840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2841 else
2842   echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 # It does not; compile a test program.
2846 if test "$cross_compiling" = yes; then
2847   # try to guess the endianness by grepping values into an object file
2848   ac_cv_c_bigendian=unknown
2849   cat >conftest.$ac_ext <<_ACEOF
2850 /* confdefs.h.  */
2851 _ACEOF
2852 cat confdefs.h >>conftest.$ac_ext
2853 cat >>conftest.$ac_ext <<_ACEOF
2854 /* end confdefs.h.  */
2855 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2856 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2857 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2858 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2859 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2860 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2861 int
2862 main ()
2863 {
2864  _ascii (); _ebcdic ();
2865   ;
2866   return 0;
2867 }
2868 _ACEOF
2869 rm -f conftest.$ac_objext
2870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2871   (eval $ac_compile) 2>conftest.er1
2872   ac_status=$?
2873   grep -v '^ *+' conftest.er1 >conftest.err
2874   rm -f conftest.er1
2875   cat conftest.err >&5
2876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877   (exit $ac_status); } &&
2878          { ac_try='test -z "$ac_c_werror_flag"
2879                          || test ! -s conftest.err'
2880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881   (eval $ac_try) 2>&5
2882   ac_status=$?
2883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884   (exit $ac_status); }; } &&
2885          { ac_try='test -s conftest.$ac_objext'
2886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887   (eval $ac_try) 2>&5
2888   ac_status=$?
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); }; }; then
2891   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2892   ac_cv_c_bigendian=yes
2893 fi
2894 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2895   if test "$ac_cv_c_bigendian" = unknown; then
2896     ac_cv_c_bigendian=no
2897   else
2898     # finding both strings is unlikely to happen, but who knows?
2899     ac_cv_c_bigendian=unknown
2900   fi
2901 fi
2902 else
2903   echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2905
2906 fi
2907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2908 else
2909   cat >conftest.$ac_ext <<_ACEOF
2910 /* confdefs.h.  */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h.  */
2915 int
2916 main ()
2917 {
2918   /* Are we little or big endian?  From Harbison&Steele.  */
2919   union
2920   {
2921     long l;
2922     char c[sizeof (long)];
2923   } u;
2924   u.l = 1;
2925   exit (u.c[sizeof (long) - 1] == 1);
2926 }
2927 _ACEOF
2928 rm -f conftest$ac_exeext
2929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2930   (eval $ac_link) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935   (eval $ac_try) 2>&5
2936   ac_status=$?
2937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938   (exit $ac_status); }; }; then
2939   ac_cv_c_bigendian=no
2940 else
2941   echo "$as_me: program exited with status $ac_status" >&5
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2944
2945 ( exit $ac_status )
2946 ac_cv_c_bigendian=yes
2947 fi
2948 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2949 fi
2950 fi
2951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2952 fi
2953 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2954 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2955 case $ac_cv_c_bigendian in
2956   yes)
2957     ENDIAN=big
2958  ;;
2959   no)
2960     ENDIAN=little
2961  ;;
2962   *)
2963     { { echo "$as_me:$LINENO: error: unknown endianness
2964 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2965 echo "$as_me: error: unknown endianness
2966 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2967    { (exit 1); exit 1; }; } ;;
2968 esac
2969
2970
2971 if test -d "CVS" -o -d "${srcdir}/CVS"; then
2972   cvsbuild="yes"
2973   optimize="no"
2974   CVSBUILD=CVSBUILD=1
2975
2976 else
2977   cvsbuild="no"
2978   optimize="yes"
2979 fi
2980
2981
2982 # Check whether --enable-optimized or --disable-optimized was given.
2983 if test "${enable_optimized+set}" = set; then
2984   enableval="$enable_optimized"
2985
2986 else
2987   enableval=$optimize
2988 fi;
2989 if test ${enableval} = "no" ; then
2990   ENABLE_OPTIMIZED=
2991
2992 else
2993   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2994
2995 fi
2996
2997 # Check whether --enable-assertions or --disable-assertions was given.
2998 if test "${enable_assertions+set}" = set; then
2999   enableval="$enable_assertions"
3000
3001 else
3002   enableval="yes"
3003 fi;
3004 if test ${enableval} = "yes" ; then
3005   DISABLE_ASSERTIONS=
3006
3007 else
3008   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
3009
3010 fi
3011
3012 # Check whether --enable-debug-runtime or --disable-debug-runtime was given.
3013 if test "${enable_debug_runtime+set}" = set; then
3014   enableval="$enable_debug_runtime"
3015
3016 else
3017   enableval=no
3018 fi;
3019 if test ${enableval} = "no" ; then
3020   DEBUG_RUNTIME=
3021
3022 else
3023   DEBUG_RUNTIME=DEBUG_RUNTIME=1
3024
3025 fi
3026
3027 # Check whether --enable-jit or --disable-jit was given.
3028 if test "${enable_jit+set}" = set; then
3029   enableval="$enable_jit"
3030
3031 else
3032   enableval=default
3033 fi;
3034 if test ${enableval} = "no"
3035 then
3036   JIT=
3037
3038 else
3039   case "$llvm_cv_target_arch" in
3040     x86)     TARGET_HAS_JIT=1
3041  ;;
3042     Sparc)   TARGET_HAS_JIT=1
3043  ;;
3044     PowerPC) TARGET_HAS_JIT=1
3045  ;;
3046     x86_64)  TARGET_HAS_JIT=0
3047  ;;
3048     Alpha)   TARGET_HAS_JIT=1
3049  ;;
3050     IA64)    TARGET_HAS_JIT=0
3051  ;;
3052     *)       TARGET_HAS_JIT=0
3053  ;;
3054   esac
3055 fi
3056
3057 # Check whether --enable-doxygen or --disable-doxygen was given.
3058 if test "${enable_doxygen+set}" = set; then
3059   enableval="$enable_doxygen"
3060
3061 else
3062   enableval=default
3063 fi;
3064 case "$enableval" in
3065   yes) ENABLE_DOXYGEN=1
3066  ;;
3067   no)  ENABLE_DOXYGEN=0
3068  ;;
3069   default) ENABLE_DOXYGEN=0
3070  ;;
3071   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3072 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3073    { (exit 1); exit 1; }; } ;;
3074 esac
3075
3076 # Check whether --enable-threads or --disable-threads was given.
3077 if test "${enable_threads+set}" = set; then
3078   enableval="$enable_threads"
3079
3080 else
3081   enableval=yes
3082 fi;
3083 case "$enableval" in
3084   yes) ENABLE_THREADS=1
3085  ;;
3086   no)  ENABLE_THREADS=0
3087  ;;
3088   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3089 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3090    { (exit 1); exit 1; }; } ;;
3091 esac
3092
3093 cat >>confdefs.h <<_ACEOF
3094 #define ENABLE_THREADS $ENABLE_THREADS
3095 _ACEOF
3096
3097
3098 TARGETS_TO_BUILD=""
3099 # Check whether --enable-targets or --disable-targets was given.
3100 if test "${enable_targets+set}" = set; then
3101   enableval="$enable_targets"
3102
3103 else
3104   enableval=all
3105 fi;
3106 case "$enableval" in
3107   all) TARGETS_TO_BUILD="X86 Sparc SparcV9 PowerPC Alpha IA64" ;;
3108   host-only)
3109     case "$llvm_cv_target_arch" in
3110       x86)     TARGETS_TO_BUILD="X86" ;;
3111       x86_64)  TARGETS_TO_BUILD="X86" ;;
3112       Sparc)   TARGETS_TO_BUILD="Sparc SparcV9" ;;
3113       PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3114       Alpha)   TARGETS_TO_BUILD="Alpha" ;;
3115       IA64)    TARGETS_TO_BUILD="IA64" ;;
3116       *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
3117 echo "$as_me: error: Can not set target to build" >&2;}
3118    { (exit 1); exit 1; }; } ;;
3119     esac
3120     ;;
3121   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3122       case "$a_target" in
3123         x86)     TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3124         x86_64)  TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3125         sparc)   TARGETS_TO_BUILD="Sparc SparcV9 $TARGETS_TO_BUILD" ;;
3126         powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3127         alpha)   TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3128         ia64)    TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
3129         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3130 echo "$as_me: error: Unrecognized target $a_target" >&2;}
3131    { (exit 1); exit 1; }; } ;;
3132       esac
3133   done
3134   ;;
3135 esac
3136 TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
3137 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3138
3139
3140
3141 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3142 if test "${with_llvmgccdir+set}" = set; then
3143   withval="$with_llvmgccdir"
3144
3145 else
3146   withval=default
3147 fi;
3148 case "$withval" in
3149   default) WITH_LLVMGCCDIR=default ;;
3150   /*)      WITH_LLVMGCCDIR=$withval ;;
3151   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3152 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3153    { (exit 1); exit 1; }; } ;;
3154 esac
3155
3156
3157
3158 ac_ext=c
3159 ac_cpp='$CPP $CPPFLAGS'
3160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3163 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3164 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3165 # On Suns, sometimes $CPP names a directory.
3166 if test -n "$CPP" && test -d "$CPP"; then
3167   CPP=
3168 fi
3169 if test -z "$CPP"; then
3170   if test "${ac_cv_prog_CPP+set}" = set; then
3171   echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3173       # Double quotes because CPP needs to be expanded
3174     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3175     do
3176       ac_preproc_ok=false
3177 for ac_c_preproc_warn_flag in '' yes
3178 do
3179   # Use a header file that comes with gcc, so configuring glibc
3180   # with a fresh cross-compiler works.
3181   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3182   # <limits.h> exists even on freestanding compilers.
3183   # On the NeXT, cc -E runs the code through the compiler's parser,
3184   # not just through cpp. "Syntax error" is here to catch this case.
3185   cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h.  */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h.  */
3191 #ifdef __STDC__
3192 # include <limits.h>
3193 #else
3194 # include <assert.h>
3195 #endif
3196                      Syntax error
3197 _ACEOF
3198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3199   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3200   ac_status=$?
3201   grep -v '^ *+' conftest.er1 >conftest.err
3202   rm -f conftest.er1
3203   cat conftest.err >&5
3204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205   (exit $ac_status); } >/dev/null; then
3206   if test -s conftest.err; then
3207     ac_cpp_err=$ac_c_preproc_warn_flag
3208     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3209   else
3210     ac_cpp_err=
3211   fi
3212 else
3213   ac_cpp_err=yes
3214 fi
3215 if test -z "$ac_cpp_err"; then
3216   :
3217 else
3218   echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.$ac_ext >&5
3220
3221   # Broken: fails on valid input.
3222 continue
3223 fi
3224 rm -f conftest.err conftest.$ac_ext
3225
3226   # OK, works on sane cases.  Now check whether non-existent headers
3227   # can be detected and how.
3228   cat >conftest.$ac_ext <<_ACEOF
3229 /* confdefs.h.  */
3230 _ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h.  */
3234 #include <ac_nonexistent.h>
3235 _ACEOF
3236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3237   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3238   ac_status=$?
3239   grep -v '^ *+' conftest.er1 >conftest.err
3240   rm -f conftest.er1
3241   cat conftest.err >&5
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); } >/dev/null; then
3244   if test -s conftest.err; then
3245     ac_cpp_err=$ac_c_preproc_warn_flag
3246     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3247   else
3248     ac_cpp_err=
3249   fi
3250 else
3251   ac_cpp_err=yes
3252 fi
3253 if test -z "$ac_cpp_err"; then
3254   # Broken: success on invalid input.
3255 continue
3256 else
3257   echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3259
3260   # Passes both tests.
3261 ac_preproc_ok=:
3262 break
3263 fi
3264 rm -f conftest.err conftest.$ac_ext
3265
3266 done
3267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3268 rm -f conftest.err conftest.$ac_ext
3269 if $ac_preproc_ok; then
3270   break
3271 fi
3272
3273     done
3274     ac_cv_prog_CPP=$CPP
3275
3276 fi
3277   CPP=$ac_cv_prog_CPP
3278 else
3279   ac_cv_prog_CPP=$CPP
3280 fi
3281 echo "$as_me:$LINENO: result: $CPP" >&5
3282 echo "${ECHO_T}$CPP" >&6
3283 ac_preproc_ok=false
3284 for ac_c_preproc_warn_flag in '' yes
3285 do
3286   # Use a header file that comes with gcc, so configuring glibc
3287   # with a fresh cross-compiler works.
3288   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3289   # <limits.h> exists even on freestanding compilers.
3290   # On the NeXT, cc -E runs the code through the compiler's parser,
3291   # not just through cpp. "Syntax error" is here to catch this case.
3292   cat >conftest.$ac_ext <<_ACEOF
3293 /* confdefs.h.  */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h.  */
3298 #ifdef __STDC__
3299 # include <limits.h>
3300 #else
3301 # include <assert.h>
3302 #endif
3303                      Syntax error
3304 _ACEOF
3305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3306   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3307   ac_status=$?
3308   grep -v '^ *+' conftest.er1 >conftest.err
3309   rm -f conftest.er1
3310   cat conftest.err >&5
3311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312   (exit $ac_status); } >/dev/null; then
3313   if test -s conftest.err; then
3314     ac_cpp_err=$ac_c_preproc_warn_flag
3315     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3316   else
3317     ac_cpp_err=
3318   fi
3319 else
3320   ac_cpp_err=yes
3321 fi
3322 if test -z "$ac_cpp_err"; then
3323   :
3324 else
3325   echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3327
3328   # Broken: fails on valid input.
3329 continue
3330 fi
3331 rm -f conftest.err conftest.$ac_ext
3332
3333   # OK, works on sane cases.  Now check whether non-existent headers
3334   # can be detected and how.
3335   cat >conftest.$ac_ext <<_ACEOF
3336 /* confdefs.h.  */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h.  */
3341 #include <ac_nonexistent.h>
3342 _ACEOF
3343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3344   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3345   ac_status=$?
3346   grep -v '^ *+' conftest.er1 >conftest.err
3347   rm -f conftest.er1
3348   cat conftest.err >&5
3349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350   (exit $ac_status); } >/dev/null; then
3351   if test -s conftest.err; then
3352     ac_cpp_err=$ac_c_preproc_warn_flag
3353     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3354   else
3355     ac_cpp_err=
3356   fi
3357 else
3358   ac_cpp_err=yes
3359 fi
3360 if test -z "$ac_cpp_err"; then
3361   # Broken: success on invalid input.
3362 continue
3363 else
3364   echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367   # Passes both tests.
3368 ac_preproc_ok=:
3369 break
3370 fi
3371 rm -f conftest.err conftest.$ac_ext
3372
3373 done
3374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3375 rm -f conftest.err conftest.$ac_ext
3376 if $ac_preproc_ok; then
3377   :
3378 else
3379   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3380 See \`config.log' for more details." >&5
3381 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3382 See \`config.log' for more details." >&2;}
3383    { (exit 1); exit 1; }; }
3384 fi
3385
3386 ac_ext=c
3387 ac_cpp='$CPP $CPPFLAGS'
3388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391
3392 ac_ext=c
3393 ac_cpp='$CPP $CPPFLAGS'
3394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397 if test -n "$ac_tool_prefix"; then
3398   for ac_prog in gcc
3399   do
3400     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3401 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3402 echo "$as_me:$LINENO: checking for $ac_word" >&5
3403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3404 if test "${ac_cv_prog_CC+set}" = set; then
3405   echo $ECHO_N "(cached) $ECHO_C" >&6
3406 else
3407   if test -n "$CC"; then
3408   ac_cv_prog_CC="$CC" # Let the user override the test.
3409 else
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 for as_dir in $PATH
3412 do
3413   IFS=$as_save_IFS
3414   test -z "$as_dir" && as_dir=.
3415   for ac_exec_ext in '' $ac_executable_extensions; do
3416   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3419     break 2
3420   fi
3421 done
3422 done
3423
3424 fi
3425 fi
3426 CC=$ac_cv_prog_CC
3427 if test -n "$CC"; then
3428   echo "$as_me:$LINENO: result: $CC" >&5
3429 echo "${ECHO_T}$CC" >&6
3430 else
3431   echo "$as_me:$LINENO: result: no" >&5
3432 echo "${ECHO_T}no" >&6
3433 fi
3434
3435     test -n "$CC" && break
3436   done
3437 fi
3438 if test -z "$CC"; then
3439   ac_ct_CC=$CC
3440   for ac_prog in gcc
3441 do
3442   # Extract the first word of "$ac_prog", so it can be a program name with args.
3443 set dummy $ac_prog; ac_word=$2
3444 echo "$as_me:$LINENO: checking for $ac_word" >&5
3445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3447   echo $ECHO_N "(cached) $ECHO_C" >&6
3448 else
3449   if test -n "$ac_ct_CC"; then
3450   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3451 else
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 for as_dir in $PATH
3454 do
3455   IFS=$as_save_IFS
3456   test -z "$as_dir" && as_dir=.
3457   for ac_exec_ext in '' $ac_executable_extensions; do
3458   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459     ac_cv_prog_ac_ct_CC="$ac_prog"
3460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461     break 2
3462   fi
3463 done
3464 done
3465
3466 fi
3467 fi
3468 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3469 if test -n "$ac_ct_CC"; then
3470   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3471 echo "${ECHO_T}$ac_ct_CC" >&6
3472 else
3473   echo "$as_me:$LINENO: result: no" >&5
3474 echo "${ECHO_T}no" >&6
3475 fi
3476
3477   test -n "$ac_ct_CC" && break
3478 done
3479
3480   CC=$ac_ct_CC
3481 fi
3482
3483
3484 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3485 See \`config.log' for more details." >&5
3486 echo "$as_me: error: no acceptable C compiler found in \$PATH
3487 See \`config.log' for more details." >&2;}
3488    { (exit 1); exit 1; }; }
3489
3490 # Provide some information about the compiler.
3491 echo "$as_me:$LINENO:" \
3492      "checking for C compiler version" >&5
3493 ac_compiler=`set X $ac_compile; echo $2`
3494 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3495   (eval $ac_compiler --version </dev/null >&5) 2>&5
3496   ac_status=$?
3497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498   (exit $ac_status); }
3499 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3500   (eval $ac_compiler -v </dev/null >&5) 2>&5
3501   ac_status=$?
3502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503   (exit $ac_status); }
3504 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3505   (eval $ac_compiler -V </dev/null >&5) 2>&5
3506   ac_status=$?
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); }
3509
3510 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3511 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3512 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3513   echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515   cat >conftest.$ac_ext <<_ACEOF
3516 /* confdefs.h.  */
3517 _ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h.  */
3521
3522 int
3523 main ()
3524 {
3525 #ifndef __GNUC__
3526        choke me
3527 #endif
3528
3529   ;
3530   return 0;
3531 }
3532 _ACEOF
3533 rm -f conftest.$ac_objext
3534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3535   (eval $ac_compile) 2>conftest.er1
3536   ac_status=$?
3537   grep -v '^ *+' conftest.er1 >conftest.err
3538   rm -f conftest.er1
3539   cat conftest.err >&5
3540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); } &&
3542          { ac_try='test -z "$ac_c_werror_flag"
3543                          || test ! -s conftest.err'
3544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545   (eval $ac_try) 2>&5
3546   ac_status=$?
3547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548   (exit $ac_status); }; } &&
3549          { ac_try='test -s conftest.$ac_objext'
3550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551   (eval $ac_try) 2>&5
3552   ac_status=$?
3553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554   (exit $ac_status); }; }; then
3555   ac_compiler_gnu=yes
3556 else
3557   echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3559
3560 ac_compiler_gnu=no
3561 fi
3562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3563 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3564
3565 fi
3566 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3567 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3568 GCC=`test $ac_compiler_gnu = yes && echo yes`
3569 ac_test_CFLAGS=${CFLAGS+set}
3570 ac_save_CFLAGS=$CFLAGS
3571 CFLAGS="-g"
3572 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3573 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3574 if test "${ac_cv_prog_cc_g+set}" = set; then
3575   echo $ECHO_N "(cached) $ECHO_C" >&6
3576 else
3577   cat >conftest.$ac_ext <<_ACEOF
3578 /* confdefs.h.  */
3579 _ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h.  */
3583
3584 int
3585 main ()
3586 {
3587
3588   ;
3589   return 0;
3590 }
3591 _ACEOF
3592 rm -f conftest.$ac_objext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594   (eval $ac_compile) 2>conftest.er1
3595   ac_status=$?
3596   grep -v '^ *+' conftest.er1 >conftest.err
3597   rm -f conftest.er1
3598   cat conftest.err >&5
3599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600   (exit $ac_status); } &&
3601          { ac_try='test -z "$ac_c_werror_flag"
3602                          || test ! -s conftest.err'
3603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604   (eval $ac_try) 2>&5
3605   ac_status=$?
3606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607   (exit $ac_status); }; } &&
3608          { ac_try='test -s conftest.$ac_objext'
3609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610   (eval $ac_try) 2>&5
3611   ac_status=$?
3612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); }; }; then
3614   ac_cv_prog_cc_g=yes
3615 else
3616   echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3618
3619 ac_cv_prog_cc_g=no
3620 fi
3621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3622 fi
3623 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3624 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3625 if test "$ac_test_CFLAGS" = set; then
3626   CFLAGS=$ac_save_CFLAGS
3627 elif test $ac_cv_prog_cc_g = yes; then
3628   if test "$GCC" = yes; then
3629     CFLAGS="-g -O2"
3630   else
3631     CFLAGS="-g"
3632   fi
3633 else
3634   if test "$GCC" = yes; then
3635     CFLAGS="-O2"
3636   else
3637     CFLAGS=
3638   fi
3639 fi
3640 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3641 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3642 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3643   echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645   ac_cv_prog_cc_stdc=no
3646 ac_save_CC=$CC
3647 cat >conftest.$ac_ext <<_ACEOF
3648 /* confdefs.h.  */
3649 _ACEOF
3650 cat confdefs.h >>conftest.$ac_ext
3651 cat >>conftest.$ac_ext <<_ACEOF
3652 /* end confdefs.h.  */
3653 #include <stdarg.h>
3654 #include <stdio.h>
3655 #include <sys/types.h>
3656 #include <sys/stat.h>
3657 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3658 struct buf { int x; };
3659 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3660 static char *e (p, i)
3661      char **p;
3662      int i;
3663 {
3664   return p[i];
3665 }
3666 static char *f (char * (*g) (char **, int), char **p, ...)
3667 {
3668   char *s;
3669   va_list v;
3670   va_start (v,p);
3671   s = g (p, va_arg (v,int));
3672   va_end (v);
3673   return s;
3674 }
3675
3676 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3677    function prototypes and stuff, but not '\xHH' hex character constants.
3678    These don't provoke an error unfortunately, instead are silently treated
3679    as 'x'.  The following induces an error, until -std1 is added to get
3680    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3681    array size at least.  It's necessary to write '\x00'==0 to get something
3682    that's true only with -std1.  */
3683 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3684
3685 int test (int i, double x);
3686 struct s1 {int (*f) (int a);};
3687 struct s2 {int (*f) (double a);};
3688 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3689 int argc;
3690 char **argv;
3691 int
3692 main ()
3693 {
3694 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3695   ;
3696   return 0;
3697 }
3698 _ACEOF
3699 # Don't try gcc -ansi; that turns off useful extensions and
3700 # breaks some systems' header files.
3701 # AIX                   -qlanglvl=ansi
3702 # Ultrix and OSF/1      -std1
3703 # HP-UX 10.20 and later -Ae
3704 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3705 # SVR4                  -Xc -D__EXTENSIONS__
3706 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3707 do
3708   CC="$ac_save_CC $ac_arg"
3709   rm -f conftest.$ac_objext
3710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3711   (eval $ac_compile) 2>conftest.er1
3712   ac_status=$?
3713   grep -v '^ *+' conftest.er1 >conftest.err
3714   rm -f conftest.er1
3715   cat conftest.err >&5
3716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717   (exit $ac_status); } &&
3718          { ac_try='test -z "$ac_c_werror_flag"
3719                          || test ! -s conftest.err'
3720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721   (eval $ac_try) 2>&5
3722   ac_status=$?
3723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724   (exit $ac_status); }; } &&
3725          { ac_try='test -s conftest.$ac_objext'
3726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3727   (eval $ac_try) 2>&5
3728   ac_status=$?
3729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730   (exit $ac_status); }; }; then
3731   ac_cv_prog_cc_stdc=$ac_arg
3732 break
3733 else
3734   echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3736
3737 fi
3738 rm -f conftest.err conftest.$ac_objext
3739 done
3740 rm -f conftest.$ac_ext conftest.$ac_objext
3741 CC=$ac_save_CC
3742
3743 fi
3744
3745 case "x$ac_cv_prog_cc_stdc" in
3746   x|xno)
3747     echo "$as_me:$LINENO: result: none needed" >&5
3748 echo "${ECHO_T}none needed" >&6 ;;
3749   *)
3750     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3751 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3752     CC="$CC $ac_cv_prog_cc_stdc" ;;
3753 esac
3754
3755 # Some people use a C++ compiler to compile C.  Since we use `exit',
3756 # in C++ we need to declare it.  In case someone uses the same compiler
3757 # for both compiling C and C++ we need to have the C++ compiler decide
3758 # the declaration of exit, since it's the most demanding environment.
3759 cat >conftest.$ac_ext <<_ACEOF
3760 #ifndef __cplusplus
3761   choke me
3762 #endif
3763 _ACEOF
3764 rm -f conftest.$ac_objext
3765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3766   (eval $ac_compile) 2>conftest.er1
3767   ac_status=$?
3768   grep -v '^ *+' conftest.er1 >conftest.err
3769   rm -f conftest.er1
3770   cat conftest.err >&5
3771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772   (exit $ac_status); } &&
3773          { ac_try='test -z "$ac_c_werror_flag"
3774                          || test ! -s conftest.err'
3775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776   (eval $ac_try) 2>&5
3777   ac_status=$?
3778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779   (exit $ac_status); }; } &&
3780          { ac_try='test -s conftest.$ac_objext'
3781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782   (eval $ac_try) 2>&5
3783   ac_status=$?
3784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785   (exit $ac_status); }; }; then
3786   for ac_declaration in \
3787    '' \
3788    'extern "C" void std::exit (int) throw (); using std::exit;' \
3789    'extern "C" void std::exit (int); using std::exit;' \
3790    'extern "C" void exit (int) throw ();' \
3791    'extern "C" void exit (int);' \
3792    'void exit (int);'
3793 do
3794   cat >conftest.$ac_ext <<_ACEOF
3795 /* confdefs.h.  */
3796 _ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h.  */
3800 $ac_declaration
3801 #include <stdlib.h>
3802 int
3803 main ()
3804 {
3805 exit (42);
3806   ;
3807   return 0;
3808 }
3809 _ACEOF
3810 rm -f conftest.$ac_objext
3811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3812   (eval $ac_compile) 2>conftest.er1
3813   ac_status=$?
3814   grep -v '^ *+' conftest.er1 >conftest.err
3815   rm -f conftest.er1
3816   cat conftest.err >&5
3817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818   (exit $ac_status); } &&
3819          { ac_try='test -z "$ac_c_werror_flag"
3820                          || test ! -s conftest.err'
3821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822   (eval $ac_try) 2>&5
3823   ac_status=$?
3824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825   (exit $ac_status); }; } &&
3826          { ac_try='test -s conftest.$ac_objext'
3827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828   (eval $ac_try) 2>&5
3829   ac_status=$?
3830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831   (exit $ac_status); }; }; then
3832   :
3833 else
3834   echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3836
3837 continue
3838 fi
3839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3840   cat >conftest.$ac_ext <<_ACEOF
3841 /* confdefs.h.  */
3842 _ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h.  */
3846 $ac_declaration
3847 int
3848 main ()
3849 {
3850 exit (42);
3851   ;
3852   return 0;
3853 }
3854 _ACEOF
3855 rm -f conftest.$ac_objext
3856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3857   (eval $ac_compile) 2>conftest.er1
3858   ac_status=$?
3859   grep -v '^ *+' conftest.er1 >conftest.err
3860   rm -f conftest.er1
3861   cat conftest.err >&5
3862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863   (exit $ac_status); } &&
3864          { ac_try='test -z "$ac_c_werror_flag"
3865                          || test ! -s conftest.err'
3866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867   (eval $ac_try) 2>&5
3868   ac_status=$?
3869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870   (exit $ac_status); }; } &&
3871          { ac_try='test -s conftest.$ac_objext'
3872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873   (eval $ac_try) 2>&5
3874   ac_status=$?
3875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876   (exit $ac_status); }; }; then
3877   break
3878 else
3879   echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3881
3882 fi
3883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3884 done
3885 rm -f conftest*
3886 if test -n "$ac_declaration"; then
3887   echo '#ifdef __cplusplus' >>confdefs.h
3888   echo $ac_declaration      >>confdefs.h
3889   echo '#endif'             >>confdefs.h
3890 fi
3891
3892 else
3893   echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3895
3896 fi
3897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3898 ac_ext=c
3899 ac_cpp='$CPP $CPPFLAGS'
3900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903
3904 ac_ext=cc
3905 ac_cpp='$CXXCPP $CPPFLAGS'
3906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3909 if test -n "$ac_tool_prefix"; then
3910   for ac_prog in $CCC g++
3911   do
3912     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3914 echo "$as_me:$LINENO: checking for $ac_word" >&5
3915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3916 if test "${ac_cv_prog_CXX+set}" = set; then
3917   echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919   if test -n "$CXX"; then
3920   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3921 else
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3924 do
3925   IFS=$as_save_IFS
3926   test -z "$as_dir" && as_dir=.
3927   for ac_exec_ext in '' $ac_executable_extensions; do
3928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3931     break 2
3932   fi
3933 done
3934 done
3935
3936 fi
3937 fi
3938 CXX=$ac_cv_prog_CXX
3939 if test -n "$CXX"; then
3940   echo "$as_me:$LINENO: result: $CXX" >&5
3941 echo "${ECHO_T}$CXX" >&6
3942 else
3943   echo "$as_me:$LINENO: result: no" >&5
3944 echo "${ECHO_T}no" >&6
3945 fi
3946
3947     test -n "$CXX" && break
3948   done
3949 fi
3950 if test -z "$CXX"; then
3951   ac_ct_CXX=$CXX
3952   for ac_prog in $CCC g++
3953 do
3954   # Extract the first word of "$ac_prog", so it can be a program name with args.
3955 set dummy $ac_prog; ac_word=$2
3956 echo "$as_me:$LINENO: checking for $ac_word" >&5
3957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3958 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3959   echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961   if test -n "$ac_ct_CXX"; then
3962   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3963 else
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 for as_dir in $PATH
3966 do
3967   IFS=$as_save_IFS
3968   test -z "$as_dir" && as_dir=.
3969   for ac_exec_ext in '' $ac_executable_extensions; do
3970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971     ac_cv_prog_ac_ct_CXX="$ac_prog"
3972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3973     break 2
3974   fi
3975 done
3976 done
3977
3978 fi
3979 fi
3980 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3981 if test -n "$ac_ct_CXX"; then
3982   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3983 echo "${ECHO_T}$ac_ct_CXX" >&6
3984 else
3985   echo "$as_me:$LINENO: result: no" >&5
3986 echo "${ECHO_T}no" >&6
3987 fi
3988
3989   test -n "$ac_ct_CXX" && break
3990 done
3991 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3992
3993   CXX=$ac_ct_CXX
3994 fi
3995
3996
3997 # Provide some information about the compiler.
3998 echo "$as_me:$LINENO:" \
3999      "checking for C++ compiler version" >&5
4000 ac_compiler=`set X $ac_compile; echo $2`
4001 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4002   (eval $ac_compiler --version </dev/null >&5) 2>&5
4003   ac_status=$?
4004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005   (exit $ac_status); }
4006 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4007   (eval $ac_compiler -v </dev/null >&5) 2>&5
4008   ac_status=$?
4009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010   (exit $ac_status); }
4011 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4012   (eval $ac_compiler -V </dev/null >&5) 2>&5
4013   ac_status=$?
4014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015   (exit $ac_status); }
4016
4017 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4018 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4019 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4020   echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022   cat >conftest.$ac_ext <<_ACEOF
4023 /* confdefs.h.  */
4024 _ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h.  */
4028
4029 int
4030 main ()
4031 {
4032 #ifndef __GNUC__
4033        choke me
4034 #endif
4035
4036   ;
4037   return 0;
4038 }
4039 _ACEOF
4040 rm -f conftest.$ac_objext
4041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042   (eval $ac_compile) 2>conftest.er1
4043   ac_status=$?
4044   grep -v '^ *+' conftest.er1 >conftest.err
4045   rm -f conftest.er1
4046   cat conftest.err >&5
4047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048   (exit $ac_status); } &&
4049          { ac_try='test -z "$ac_cxx_werror_flag"
4050                          || test ! -s conftest.err'
4051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052   (eval $ac_try) 2>&5
4053   ac_status=$?
4054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055   (exit $ac_status); }; } &&
4056          { ac_try='test -s conftest.$ac_objext'
4057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058   (eval $ac_try) 2>&5
4059   ac_status=$?
4060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061   (exit $ac_status); }; }; then
4062   ac_compiler_gnu=yes
4063 else
4064   echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4066
4067 ac_compiler_gnu=no
4068 fi
4069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4070 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4071
4072 fi
4073 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4074 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4075 GXX=`test $ac_compiler_gnu = yes && echo yes`
4076 ac_test_CXXFLAGS=${CXXFLAGS+set}
4077 ac_save_CXXFLAGS=$CXXFLAGS
4078 CXXFLAGS="-g"
4079 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4080 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4081 if test "${ac_cv_prog_cxx_g+set}" = set; then
4082   echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084   cat >conftest.$ac_ext <<_ACEOF
4085 /* confdefs.h.  */
4086 _ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h.  */
4090
4091 int
4092 main ()
4093 {
4094
4095   ;
4096   return 0;
4097 }
4098 _ACEOF
4099 rm -f conftest.$ac_objext
4100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4101   (eval $ac_compile) 2>conftest.er1
4102   ac_status=$?
4103   grep -v '^ *+' conftest.er1 >conftest.err
4104   rm -f conftest.er1
4105   cat conftest.err >&5
4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107   (exit $ac_status); } &&
4108          { ac_try='test -z "$ac_cxx_werror_flag"
4109                          || test ! -s conftest.err'
4110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111   (eval $ac_try) 2>&5
4112   ac_status=$?
4113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114   (exit $ac_status); }; } &&
4115          { ac_try='test -s conftest.$ac_objext'
4116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117   (eval $ac_try) 2>&5
4118   ac_status=$?
4119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120   (exit $ac_status); }; }; then
4121   ac_cv_prog_cxx_g=yes
4122 else
4123   echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4125
4126 ac_cv_prog_cxx_g=no
4127 fi
4128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4129 fi
4130 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4131 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4132 if test "$ac_test_CXXFLAGS" = set; then
4133   CXXFLAGS=$ac_save_CXXFLAGS
4134 elif test $ac_cv_prog_cxx_g = yes; then
4135   if test "$GXX" = yes; then
4136     CXXFLAGS="-g -O2"
4137   else
4138     CXXFLAGS="-g"
4139   fi
4140 else
4141   if test "$GXX" = yes; then
4142     CXXFLAGS="-O2"
4143   else
4144     CXXFLAGS=
4145   fi
4146 fi
4147 for ac_declaration in \
4148    '' \
4149    'extern "C" void std::exit (int) throw (); using std::exit;' \
4150    'extern "C" void std::exit (int); using std::exit;' \
4151    'extern "C" void exit (int) throw ();' \
4152    'extern "C" void exit (int);' \
4153    'void exit (int);'
4154 do
4155   cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h.  */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h.  */
4161 $ac_declaration
4162 #include <stdlib.h>
4163 int
4164 main ()
4165 {
4166 exit (42);
4167   ;
4168   return 0;
4169 }
4170 _ACEOF
4171 rm -f conftest.$ac_objext
4172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4173   (eval $ac_compile) 2>conftest.er1
4174   ac_status=$?
4175   grep -v '^ *+' conftest.er1 >conftest.err
4176   rm -f conftest.er1
4177   cat conftest.err >&5
4178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179   (exit $ac_status); } &&
4180          { ac_try='test -z "$ac_cxx_werror_flag"
4181                          || test ! -s conftest.err'
4182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183   (eval $ac_try) 2>&5
4184   ac_status=$?
4185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186   (exit $ac_status); }; } &&
4187          { ac_try='test -s conftest.$ac_objext'
4188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189   (eval $ac_try) 2>&5
4190   ac_status=$?
4191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192   (exit $ac_status); }; }; then
4193   :
4194 else
4195   echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4197
4198 continue
4199 fi
4200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4201   cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h.  */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h.  */
4207 $ac_declaration
4208 int
4209 main ()
4210 {
4211 exit (42);
4212   ;
4213   return 0;
4214 }
4215 _ACEOF
4216 rm -f conftest.$ac_objext
4217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218   (eval $ac_compile) 2>conftest.er1
4219   ac_status=$?
4220   grep -v '^ *+' conftest.er1 >conftest.err
4221   rm -f conftest.er1
4222   cat conftest.err >&5
4223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224   (exit $ac_status); } &&
4225          { ac_try='test -z "$ac_cxx_werror_flag"
4226                          || test ! -s conftest.err'
4227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228   (eval $ac_try) 2>&5
4229   ac_status=$?
4230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231   (exit $ac_status); }; } &&
4232          { ac_try='test -s conftest.$ac_objext'
4233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234   (eval $ac_try) 2>&5
4235   ac_status=$?
4236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); }; }; then
4238   break
4239 else
4240   echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4242
4243 fi
4244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4245 done
4246 rm -f conftest*
4247 if test -n "$ac_declaration"; then
4248   echo '#ifdef __cplusplus' >>confdefs.h
4249   echo $ac_declaration      >>confdefs.h
4250   echo '#endif'             >>confdefs.h
4251 fi
4252
4253 ac_ext=c
4254 ac_cpp='$CPP $CPPFLAGS'
4255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258
4259 echo "$as_me:$LINENO: checking " >&5
4260 echo $ECHO_N "checking ... $ECHO_C" >&6
4261 if test "${ac_cv_has_flex+set}" = set; then
4262   echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264   for ac_prog in flex lex
4265 do
4266   # Extract the first word of "$ac_prog", so it can be a program name with args.
4267 set dummy $ac_prog; ac_word=$2
4268 echo "$as_me:$LINENO: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4270 if test "${ac_cv_prog_LEX+set}" = set; then
4271   echo $ECHO_N "(cached) $ECHO_C" >&6
4272 else
4273   if test -n "$LEX"; then
4274   ac_cv_prog_LEX="$LEX" # Let the user override the test.
4275 else
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH
4278 do
4279   IFS=$as_save_IFS
4280   test -z "$as_dir" && as_dir=.
4281   for ac_exec_ext in '' $ac_executable_extensions; do
4282   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4283     ac_cv_prog_LEX="$ac_prog"
4284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285     break 2
4286   fi
4287 done
4288 done
4289
4290 fi
4291 fi
4292 LEX=$ac_cv_prog_LEX
4293 if test -n "$LEX"; then
4294   echo "$as_me:$LINENO: result: $LEX" >&5
4295 echo "${ECHO_T}$LEX" >&6
4296 else
4297   echo "$as_me:$LINENO: result: no" >&5
4298 echo "${ECHO_T}no" >&6
4299 fi
4300
4301   test -n "$LEX" && break
4302 done
4303 test -n "$LEX" || LEX=":"
4304
4305 if test -z "$LEXLIB"
4306 then
4307   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4308 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4309 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4310   echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312   ac_check_lib_save_LIBS=$LIBS
4313 LIBS="-lfl  $LIBS"
4314 cat >conftest.$ac_ext <<_ACEOF
4315 /* confdefs.h.  */
4316 _ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h.  */
4320
4321 /* Override any gcc2 internal prototype to avoid an error.  */
4322 #ifdef __cplusplus
4323 extern "C"
4324 #endif
4325 /* We use char because int might match the return type of a gcc2
4326    builtin and then its argument prototype would still apply.  */
4327 char yywrap ();
4328 int
4329 main ()
4330 {
4331 yywrap ();
4332   ;
4333   return 0;
4334 }
4335 _ACEOF
4336 rm -f conftest.$ac_objext conftest$ac_exeext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4338   (eval $ac_link) 2>conftest.er1
4339   ac_status=$?
4340   grep -v '^ *+' conftest.er1 >conftest.err
4341   rm -f conftest.er1
4342   cat conftest.err >&5
4343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344   (exit $ac_status); } &&
4345          { ac_try='test -z "$ac_c_werror_flag"
4346                          || test ! -s conftest.err'
4347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348   (eval $ac_try) 2>&5
4349   ac_status=$?
4350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351   (exit $ac_status); }; } &&
4352          { ac_try='test -s conftest$ac_exeext'
4353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354   (eval $ac_try) 2>&5
4355   ac_status=$?
4356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); }; }; then
4358   ac_cv_lib_fl_yywrap=yes
4359 else
4360   echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4362
4363 ac_cv_lib_fl_yywrap=no
4364 fi
4365 rm -f conftest.err conftest.$ac_objext \
4366       conftest$ac_exeext conftest.$ac_ext
4367 LIBS=$ac_check_lib_save_LIBS
4368 fi
4369 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4370 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4371 if test $ac_cv_lib_fl_yywrap = yes; then
4372   LEXLIB="-lfl"
4373 else
4374   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4375 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4376 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4377   echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379   ac_check_lib_save_LIBS=$LIBS
4380 LIBS="-ll  $LIBS"
4381 cat >conftest.$ac_ext <<_ACEOF
4382 /* confdefs.h.  */
4383 _ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h.  */
4387
4388 /* Override any gcc2 internal prototype to avoid an error.  */
4389 #ifdef __cplusplus
4390 extern "C"
4391 #endif
4392 /* We use char because int might match the return type of a gcc2
4393    builtin and then its argument prototype would still apply.  */
4394 char yywrap ();
4395 int
4396 main ()
4397 {
4398 yywrap ();
4399   ;
4400   return 0;
4401 }
4402 _ACEOF
4403 rm -f conftest.$ac_objext conftest$ac_exeext
4404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4405   (eval $ac_link) 2>conftest.er1
4406   ac_status=$?
4407   grep -v '^ *+' conftest.er1 >conftest.err
4408   rm -f conftest.er1
4409   cat conftest.err >&5
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); } &&
4412          { ac_try='test -z "$ac_c_werror_flag"
4413                          || test ! -s conftest.err'
4414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415   (eval $ac_try) 2>&5
4416   ac_status=$?
4417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418   (exit $ac_status); }; } &&
4419          { ac_try='test -s conftest$ac_exeext'
4420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421   (eval $ac_try) 2>&5
4422   ac_status=$?
4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); }; }; then
4425   ac_cv_lib_l_yywrap=yes
4426 else
4427   echo "$as_me: failed program was:" >&5
4428 sed 's/^/| /' conftest.$ac_ext >&5
4429
4430 ac_cv_lib_l_yywrap=no
4431 fi
4432 rm -f conftest.err conftest.$ac_objext \
4433       conftest$ac_exeext conftest.$ac_ext
4434 LIBS=$ac_check_lib_save_LIBS
4435 fi
4436 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4437 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4438 if test $ac_cv_lib_l_yywrap = yes; then
4439   LEXLIB="-ll"
4440 fi
4441
4442 fi
4443
4444 fi
4445
4446 if test "x$LEX" != "x:"; then
4447   echo "$as_me:$LINENO: checking lex output file root" >&5
4448 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4449 if test "${ac_cv_prog_lex_root+set}" = set; then
4450   echo $ECHO_N "(cached) $ECHO_C" >&6
4451 else
4452   # The minimal lex program is just a single line: %%.  But some broken lexes
4453 # (Solaris, I think it was) want two %% lines, so accommodate them.
4454 cat >conftest.l <<_ACEOF
4455 %%
4456 %%
4457 _ACEOF
4458 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4459   (eval $LEX conftest.l) 2>&5
4460   ac_status=$?
4461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462   (exit $ac_status); }
4463 if test -f lex.yy.c; then
4464   ac_cv_prog_lex_root=lex.yy
4465 elif test -f lexyy.c; then
4466   ac_cv_prog_lex_root=lexyy
4467 else
4468   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4469 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4470    { (exit 1); exit 1; }; }
4471 fi
4472 fi
4473 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4474 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4475 rm -f conftest.l
4476 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4477
4478 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4479 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4480 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   # POSIX says lex can declare yytext either as a pointer or an array; the
4484 # default is implementation-dependent. Figure out which it is, since
4485 # not all implementations provide the %pointer and %array declarations.
4486 ac_cv_prog_lex_yytext_pointer=no
4487 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4488 ac_save_LIBS=$LIBS
4489 LIBS="$LIBS $LEXLIB"
4490 cat >conftest.$ac_ext <<_ACEOF
4491 `cat $LEX_OUTPUT_ROOT.c`
4492 _ACEOF
4493 rm -f conftest.$ac_objext conftest$ac_exeext
4494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4495   (eval $ac_link) 2>conftest.er1
4496   ac_status=$?
4497   grep -v '^ *+' conftest.er1 >conftest.err
4498   rm -f conftest.er1
4499   cat conftest.err >&5
4500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501   (exit $ac_status); } &&
4502          { ac_try='test -z "$ac_c_werror_flag"
4503                          || test ! -s conftest.err'
4504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4505   (eval $ac_try) 2>&5
4506   ac_status=$?
4507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508   (exit $ac_status); }; } &&
4509          { ac_try='test -s conftest$ac_exeext'
4510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511   (eval $ac_try) 2>&5
4512   ac_status=$?
4513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514   (exit $ac_status); }; }; then
4515   ac_cv_prog_lex_yytext_pointer=yes
4516 else
4517   echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4519
4520 fi
4521 rm -f conftest.err conftest.$ac_objext \
4522       conftest$ac_exeext conftest.$ac_ext
4523 LIBS=$ac_save_LIBS
4524 rm -f "${LEX_OUTPUT_ROOT}.c"
4525
4526 fi
4527 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4528 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4529 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4530
4531 cat >>confdefs.h <<\_ACEOF
4532 #define YYTEXT_POINTER 1
4533 _ACEOF
4534
4535 fi
4536
4537 fi
4538
4539 fi
4540 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4541 echo "${ECHO_T}$ac_cv_has_flex" >&6
4542 if test "$LEX" != "flex"; then
4543   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4544 echo "$as_me: error: flex not found but required" >&2;}
4545    { (exit 1); exit 1; }; }
4546 else
4547   FLEX=flex
4548
4549 fi
4550
4551 echo "$as_me:$LINENO: checking " >&5
4552 echo $ECHO_N "checking ... $ECHO_C" >&6
4553 if test "${llvm_cv_has_bison+set}" = set; then
4554   echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556   for ac_prog in 'bison -y' byacc
4557 do
4558   # Extract the first word of "$ac_prog", so it can be a program name with args.
4559 set dummy $ac_prog; ac_word=$2
4560 echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4562 if test "${ac_cv_prog_YACC+set}" = set; then
4563   echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565   if test -n "$YACC"; then
4566   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4567 else
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4570 do
4571   IFS=$as_save_IFS
4572   test -z "$as_dir" && as_dir=.
4573   for ac_exec_ext in '' $ac_executable_extensions; do
4574   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4575     ac_cv_prog_YACC="$ac_prog"
4576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577     break 2
4578   fi
4579 done
4580 done
4581
4582 fi
4583 fi
4584 YACC=$ac_cv_prog_YACC
4585 if test -n "$YACC"; then
4586   echo "$as_me:$LINENO: result: $YACC" >&5
4587 echo "${ECHO_T}$YACC" >&6
4588 else
4589   echo "$as_me:$LINENO: result: no" >&5
4590 echo "${ECHO_T}no" >&6
4591 fi
4592
4593   test -n "$YACC" && break
4594 done
4595 test -n "$YACC" || YACC="yacc"
4596
4597 fi
4598 echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4599 echo "${ECHO_T}$llvm_cv_has_bison" >&6
4600 if test "$YACC" != "bison -y"; then
4601   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4602 echo "$as_me: error: bison not found but required" >&2;}
4603    { (exit 1); exit 1; }; }
4604 else
4605   BISON=bison
4606
4607 fi
4608
4609 echo "$as_me:$LINENO: checking for GNU make" >&5
4610 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4611 if test "${llvm_cv_gnu_make_command+set}" = set; then
4612   echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614   llvm_cv_gnu_make_command=''
4615  for a in "$MAKE" make gmake gnumake ; do
4616   if test -z "$a" ; then continue ; fi ;
4617   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4618   then
4619    llvm_cv_gnu_make_command=$a ;
4620    break;
4621   fi
4622  done
4623 fi
4624 echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4625 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4626  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
4627    ifGNUmake='' ;
4628  else
4629    ifGNUmake='#' ;
4630    echo "$as_me:$LINENO: result: \"Not found\"" >&5
4631 echo "${ECHO_T}\"Not found\"" >&6;
4632  fi
4633
4634
4635 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4636 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4637 LN_S=$as_ln_s
4638 if test "$LN_S" = "ln -s"; then
4639   echo "$as_me:$LINENO: result: yes" >&5
4640 echo "${ECHO_T}yes" >&6
4641 else
4642   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4643 echo "${ECHO_T}no, using $LN_S" >&6
4644 fi
4645
4646 # Extract the first word of "cmp", so it can be a program name with args.
4647 set dummy cmp; ac_word=$2
4648 echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4650 if test "${ac_cv_path_CMP+set}" = set; then
4651   echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653   case $CMP in
4654   [\\/]* | ?:[\\/]*)
4655   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4656   ;;
4657   *)
4658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4660 do
4661   IFS=$as_save_IFS
4662   test -z "$as_dir" && as_dir=.
4663   for ac_exec_ext in '' $ac_executable_extensions; do
4664   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4665     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4667     break 2
4668   fi
4669 done
4670 done
4671
4672   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4673   ;;
4674 esac
4675 fi
4676 CMP=$ac_cv_path_CMP
4677
4678 if test -n "$CMP"; then
4679   echo "$as_me:$LINENO: result: $CMP" >&5
4680 echo "${ECHO_T}$CMP" >&6
4681 else
4682   echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6
4684 fi
4685
4686 # Extract the first word of "cp", so it can be a program name with args.
4687 set dummy cp; ac_word=$2
4688 echo "$as_me:$LINENO: checking for $ac_word" >&5
4689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4690 if test "${ac_cv_path_CP+set}" = set; then
4691   echo $ECHO_N "(cached) $ECHO_C" >&6
4692 else
4693   case $CP in
4694   [\\/]* | ?:[\\/]*)
4695   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4696   ;;
4697   *)
4698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4700 do
4701   IFS=$as_save_IFS
4702   test -z "$as_dir" && as_dir=.
4703   for ac_exec_ext in '' $ac_executable_extensions; do
4704   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4705     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707     break 2
4708   fi
4709 done
4710 done
4711
4712   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4713   ;;
4714 esac
4715 fi
4716 CP=$ac_cv_path_CP
4717
4718 if test -n "$CP"; then
4719   echo "$as_me:$LINENO: result: $CP" >&5
4720 echo "${ECHO_T}$CP" >&6
4721 else
4722   echo "$as_me:$LINENO: result: no" >&5
4723 echo "${ECHO_T}no" >&6
4724 fi
4725
4726 # Extract the first word of "date", so it can be a program name with args.
4727 set dummy date; ac_word=$2
4728 echo "$as_me:$LINENO: checking for $ac_word" >&5
4729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4730 if test "${ac_cv_path_DATE+set}" = set; then
4731   echo $ECHO_N "(cached) $ECHO_C" >&6
4732 else
4733   case $DATE in
4734   [\\/]* | ?:[\\/]*)
4735   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
4736   ;;
4737   *)
4738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in $PATH
4740 do
4741   IFS=$as_save_IFS
4742   test -z "$as_dir" && as_dir=.
4743   for ac_exec_ext in '' $ac_executable_extensions; do
4744   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4745     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4747     break 2
4748   fi
4749 done
4750 done
4751
4752   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
4753   ;;
4754 esac
4755 fi
4756 DATE=$ac_cv_path_DATE
4757
4758 if test -n "$DATE"; then
4759   echo "$as_me:$LINENO: result: $DATE" >&5
4760 echo "${ECHO_T}$DATE" >&6
4761 else
4762   echo "$as_me:$LINENO: result: no" >&5
4763 echo "${ECHO_T}no" >&6
4764 fi
4765
4766 # Extract the first word of "find", so it can be a program name with args.
4767 set dummy find; ac_word=$2
4768 echo "$as_me:$LINENO: checking for $ac_word" >&5
4769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4770 if test "${ac_cv_path_FIND+set}" = set; then
4771   echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773   case $FIND in
4774   [\\/]* | ?:[\\/]*)
4775   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4776   ;;
4777   *)
4778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 for as_dir in $PATH
4780 do
4781   IFS=$as_save_IFS
4782   test -z "$as_dir" && as_dir=.
4783   for ac_exec_ext in '' $ac_executable_extensions; do
4784   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4785     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4787     break 2
4788   fi
4789 done
4790 done
4791
4792   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4793   ;;
4794 esac
4795 fi
4796 FIND=$ac_cv_path_FIND
4797
4798 if test -n "$FIND"; then
4799   echo "$as_me:$LINENO: result: $FIND" >&5
4800 echo "${ECHO_T}$FIND" >&6
4801 else
4802   echo "$as_me:$LINENO: result: no" >&5
4803 echo "${ECHO_T}no" >&6
4804 fi
4805
4806 # Extract the first word of "grep", so it can be a program name with args.
4807 set dummy grep; ac_word=$2
4808 echo "$as_me:$LINENO: checking for $ac_word" >&5
4809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4810 if test "${ac_cv_path_GREP+set}" = set; then
4811   echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813   case $GREP in
4814   [\\/]* | ?:[\\/]*)
4815   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4816   ;;
4817   *)
4818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4820 do
4821   IFS=$as_save_IFS
4822   test -z "$as_dir" && as_dir=.
4823   for ac_exec_ext in '' $ac_executable_extensions; do
4824   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4827     break 2
4828   fi
4829 done
4830 done
4831
4832   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4833   ;;
4834 esac
4835 fi
4836 GREP=$ac_cv_path_GREP
4837
4838 if test -n "$GREP"; then
4839   echo "$as_me:$LINENO: result: $GREP" >&5
4840 echo "${ECHO_T}$GREP" >&6
4841 else
4842   echo "$as_me:$LINENO: result: no" >&5
4843 echo "${ECHO_T}no" >&6
4844 fi
4845
4846 # Extract the first word of "mkdir", so it can be a program name with args.
4847 set dummy mkdir; ac_word=$2
4848 echo "$as_me:$LINENO: checking for $ac_word" >&5
4849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4850 if test "${ac_cv_path_MKDIR+set}" = set; then
4851   echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853   case $MKDIR in
4854   [\\/]* | ?:[\\/]*)
4855   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4856   ;;
4857   *)
4858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH
4860 do
4861   IFS=$as_save_IFS
4862   test -z "$as_dir" && as_dir=.
4863   for ac_exec_ext in '' $ac_executable_extensions; do
4864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4865     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4867     break 2
4868   fi
4869 done
4870 done
4871
4872   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4873   ;;
4874 esac
4875 fi
4876 MKDIR=$ac_cv_path_MKDIR
4877
4878 if test -n "$MKDIR"; then
4879   echo "$as_me:$LINENO: result: $MKDIR" >&5
4880 echo "${ECHO_T}$MKDIR" >&6
4881 else
4882   echo "$as_me:$LINENO: result: no" >&5
4883 echo "${ECHO_T}no" >&6
4884 fi
4885
4886 # Extract the first word of "mv", so it can be a program name with args.
4887 set dummy mv; ac_word=$2
4888 echo "$as_me:$LINENO: checking for $ac_word" >&5
4889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4890 if test "${ac_cv_path_MV+set}" = set; then
4891   echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893   case $MV in
4894   [\\/]* | ?:[\\/]*)
4895   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4896   ;;
4897   *)
4898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901   IFS=$as_save_IFS
4902   test -z "$as_dir" && as_dir=.
4903   for ac_exec_ext in '' $ac_executable_extensions; do
4904   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4905     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4907     break 2
4908   fi
4909 done
4910 done
4911
4912   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4913   ;;
4914 esac
4915 fi
4916 MV=$ac_cv_path_MV
4917
4918 if test -n "$MV"; then
4919   echo "$as_me:$LINENO: result: $MV" >&5
4920 echo "${ECHO_T}$MV" >&6
4921 else
4922   echo "$as_me:$LINENO: result: no" >&5
4923 echo "${ECHO_T}no" >&6
4924 fi
4925
4926 if test -n "$ac_tool_prefix"; then
4927   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4928 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4929 echo "$as_me:$LINENO: checking for $ac_word" >&5
4930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4931 if test "${ac_cv_prog_RANLIB+set}" = set; then
4932   echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934   if test -n "$RANLIB"; then
4935   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4936 else
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4939 do
4940   IFS=$as_save_IFS
4941   test -z "$as_dir" && as_dir=.
4942   for ac_exec_ext in '' $ac_executable_extensions; do
4943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4944     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4946     break 2
4947   fi
4948 done
4949 done
4950
4951 fi
4952 fi
4953 RANLIB=$ac_cv_prog_RANLIB
4954 if test -n "$RANLIB"; then
4955   echo "$as_me:$LINENO: result: $RANLIB" >&5
4956 echo "${ECHO_T}$RANLIB" >&6
4957 else
4958   echo "$as_me:$LINENO: result: no" >&5
4959 echo "${ECHO_T}no" >&6
4960 fi
4961
4962 fi
4963 if test -z "$ac_cv_prog_RANLIB"; then
4964   ac_ct_RANLIB=$RANLIB
4965   # Extract the first word of "ranlib", so it can be a program name with args.
4966 set dummy ranlib; ac_word=$2
4967 echo "$as_me:$LINENO: checking for $ac_word" >&5
4968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4969 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4970   echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
4972   if test -n "$ac_ct_RANLIB"; then
4973   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4974 else
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH
4977 do
4978   IFS=$as_save_IFS
4979   test -z "$as_dir" && as_dir=.
4980   for ac_exec_ext in '' $ac_executable_extensions; do
4981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4982     ac_cv_prog_ac_ct_RANLIB="ranlib"
4983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4984     break 2
4985   fi
4986 done
4987 done
4988
4989   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4990 fi
4991 fi
4992 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4993 if test -n "$ac_ct_RANLIB"; then
4994   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4995 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4996 else
4997   echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6
4999 fi
5000
5001   RANLIB=$ac_ct_RANLIB
5002 else
5003   RANLIB="$ac_cv_prog_RANLIB"
5004 fi
5005
5006 # Extract the first word of "rm", so it can be a program name with args.
5007 set dummy rm; ac_word=$2
5008 echo "$as_me:$LINENO: checking for $ac_word" >&5
5009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5010 if test "${ac_cv_path_RM+set}" = set; then
5011   echo $ECHO_N "(cached) $ECHO_C" >&6
5012 else
5013   case $RM in
5014   [\\/]* | ?:[\\/]*)
5015   ac_cv_path_RM="$RM" # Let the user override the test with a path.
5016   ;;
5017   *)
5018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5020 do
5021   IFS=$as_save_IFS
5022   test -z "$as_dir" && as_dir=.
5023   for ac_exec_ext in '' $ac_executable_extensions; do
5024   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5025     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5027     break 2
5028   fi
5029 done
5030 done
5031
5032   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5033   ;;
5034 esac
5035 fi
5036 RM=$ac_cv_path_RM
5037
5038 if test -n "$RM"; then
5039   echo "$as_me:$LINENO: result: $RM" >&5
5040 echo "${ECHO_T}$RM" >&6
5041 else
5042   echo "$as_me:$LINENO: result: no" >&5
5043 echo "${ECHO_T}no" >&6
5044 fi
5045
5046 # Extract the first word of "sed", so it can be a program name with args.
5047 set dummy sed; ac_word=$2
5048 echo "$as_me:$LINENO: checking for $ac_word" >&5
5049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5050 if test "${ac_cv_path_SED+set}" = set; then
5051   echo $ECHO_N "(cached) $ECHO_C" >&6
5052 else
5053   case $SED in
5054   [\\/]* | ?:[\\/]*)
5055   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5056   ;;
5057   *)
5058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 for as_dir in $PATH
5060 do
5061   IFS=$as_save_IFS
5062   test -z "$as_dir" && as_dir=.
5063   for ac_exec_ext in '' $ac_executable_extensions; do
5064   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5065     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5067     break 2
5068   fi
5069 done
5070 done
5071
5072   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5073   ;;
5074 esac
5075 fi
5076 SED=$ac_cv_path_SED
5077
5078 if test -n "$SED"; then
5079   echo "$as_me:$LINENO: result: $SED" >&5
5080 echo "${ECHO_T}$SED" >&6
5081 else
5082   echo "$as_me:$LINENO: result: no" >&5
5083 echo "${ECHO_T}no" >&6
5084 fi
5085
5086 # Extract the first word of "tar", so it can be a program name with args.
5087 set dummy tar; ac_word=$2
5088 echo "$as_me:$LINENO: checking for $ac_word" >&5
5089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5090 if test "${ac_cv_path_TAR+set}" = set; then
5091   echo $ECHO_N "(cached) $ECHO_C" >&6
5092 else
5093   case $TAR in
5094   [\\/]* | ?:[\\/]*)
5095   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5096   ;;
5097   *)
5098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH
5100 do
5101   IFS=$as_save_IFS
5102   test -z "$as_dir" && as_dir=.
5103   for ac_exec_ext in '' $ac_executable_extensions; do
5104   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5105     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5107     break 2
5108   fi
5109 done
5110 done
5111
5112   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5113   ;;
5114 esac
5115 fi
5116 TAR=$ac_cv_path_TAR
5117
5118 if test -n "$TAR"; then
5119   echo "$as_me:$LINENO: result: $TAR" >&5
5120 echo "${ECHO_T}$TAR" >&6
5121 else
5122   echo "$as_me:$LINENO: result: no" >&5
5123 echo "${ECHO_T}no" >&6
5124 fi
5125
5126 # Extract the first word of "Graphviz", so it can be a program name with args.
5127 set dummy Graphviz; ac_word=$2
5128 echo "$as_me:$LINENO: checking for $ac_word" >&5
5129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5130 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5131   echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133   case $GRAPHVIZ in
5134   [\\/]* | ?:[\\/]*)
5135   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5136   ;;
5137   *)
5138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH
5140 do
5141   IFS=$as_save_IFS
5142   test -z "$as_dir" && as_dir=.
5143   for ac_exec_ext in '' $ac_executable_extensions; do
5144   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5145     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5147     break 2
5148   fi
5149 done
5150 done
5151
5152   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
5153   ;;
5154 esac
5155 fi
5156 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5157
5158 if test -n "$GRAPHVIZ"; then
5159   echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5160 echo "${ECHO_T}$GRAPHVIZ" >&6
5161 else
5162   echo "$as_me:$LINENO: result: no" >&5
5163 echo "${ECHO_T}no" >&6
5164 fi
5165
5166 if test "$GRAPHVIZ" != "echo Graphviz" ; then
5167
5168 cat >>confdefs.h <<\_ACEOF
5169 #define HAVE_GRAPHVIZ 1
5170 _ACEOF
5171
5172
5173 cat >>confdefs.h <<_ACEOF
5174 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5175 _ACEOF
5176
5177 fi
5178 # Extract the first word of "gv", so it can be a program name with args.
5179 set dummy gv; ac_word=$2
5180 echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182 if test "${ac_cv_path_GV+set}" = set; then
5183   echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185   case $GV in
5186   [\\/]* | ?:[\\/]*)
5187   ac_cv_path_GV="$GV" # Let the user override the test with a path.
5188   ;;
5189   *)
5190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5192 do
5193   IFS=$as_save_IFS
5194   test -z "$as_dir" && as_dir=.
5195   for ac_exec_ext in '' $ac_executable_extensions; do
5196   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199     break 2
5200   fi
5201 done
5202 done
5203
5204   test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5205   ;;
5206 esac
5207 fi
5208 GV=$ac_cv_path_GV
5209
5210 if test -n "$GV"; then
5211   echo "$as_me:$LINENO: result: $GV" >&5
5212 echo "${ECHO_T}$GV" >&6
5213 else
5214   echo "$as_me:$LINENO: result: no" >&5
5215 echo "${ECHO_T}no" >&6
5216 fi
5217
5218 if test "$GV" != "echo gv" ; then
5219
5220 cat >>confdefs.h <<\_ACEOF
5221 #define HAVE_GV 1
5222 _ACEOF
5223
5224
5225 cat >>confdefs.h <<_ACEOF
5226 #define LLVM_PATH_GV "$GV"
5227 _ACEOF
5228
5229 fi
5230
5231
5232 # Extract the first word of "perl", so it can be a program name with args.
5233 set dummy perl; ac_word=$2
5234 echo "$as_me:$LINENO: checking for $ac_word" >&5
5235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5236 if test "${ac_cv_path_PERL+set}" = set; then
5237   echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239   case $PERL in
5240   [\\/]* | ?:[\\/]*)
5241   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5242   ;;
5243   *)
5244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH
5246 do
5247   IFS=$as_save_IFS
5248   test -z "$as_dir" && as_dir=.
5249   for ac_exec_ext in '' $ac_executable_extensions; do
5250   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5253     break 2
5254   fi
5255 done
5256 done
5257
5258   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5259   ;;
5260 esac
5261 fi
5262 PERL=$ac_cv_path_PERL
5263
5264 if test -n "$PERL"; then
5265   echo "$as_me:$LINENO: result: $PERL" >&5
5266 echo "${ECHO_T}$PERL" >&6
5267 else
5268   echo "$as_me:$LINENO: result: no" >&5
5269 echo "${ECHO_T}no" >&6
5270 fi
5271
5272 if test "$PERL" != "none"; then
5273   echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5274 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5275   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5276     echo "$as_me:$LINENO: result: yes" >&5
5277 echo "${ECHO_T}yes" >&6
5278   else
5279     PERL=none
5280     echo "$as_me:$LINENO: result: not found" >&5
5281 echo "${ECHO_T}not found" >&6
5282   fi
5283 fi
5284
5285
5286 if test x"$PERL" = xnone; then
5287    HAVE_PERL=0
5288
5289 else
5290    HAVE_PERL=1
5291
5292 fi
5293
5294 # Find a good install program.  We prefer a C program (faster),
5295 # so one script is as good as another.  But avoid the broken or
5296 # incompatible versions:
5297 # SysV /etc/install, /usr/sbin/install
5298 # SunOS /usr/etc/install
5299 # IRIX /sbin/install
5300 # AIX /bin/install
5301 # AmigaOS /C/install, which installs bootblocks on floppy discs
5302 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5303 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5304 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5305 # OS/2's system install, which has a completely different semantic
5306 # ./install, which can be erroneously created by make from ./install.sh.
5307 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5308 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5309 if test -z "$INSTALL"; then
5310 if test "${ac_cv_path_install+set}" = set; then
5311   echo $ECHO_N "(cached) $ECHO_C" >&6
5312 else
5313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 for as_dir in $PATH
5315 do
5316   IFS=$as_save_IFS
5317   test -z "$as_dir" && as_dir=.
5318   # Account for people who put trailing slashes in PATH elements.
5319 case $as_dir/ in
5320   ./ | .// | /cC/* | \
5321   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5322   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5323   /usr/ucb/* ) ;;
5324   *)
5325     # OSF1 and SCO ODT 3.0 have their own names for install.
5326     # Don't use installbsd from OSF since it installs stuff as root
5327     # by default.
5328     for ac_prog in ginstall scoinst install; do
5329       for ac_exec_ext in '' $ac_executable_extensions; do
5330         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5331           if test $ac_prog = install &&
5332             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5333             # AIX install.  It has an incompatible calling convention.
5334             :
5335           elif test $ac_prog = install &&
5336             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5337             # program-specific install script used by HP pwplus--don't use.
5338             :
5339           else
5340             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5341             break 3
5342           fi
5343         fi
5344       done
5345     done
5346     ;;
5347 esac
5348 done
5349
5350
5351 fi
5352   if test "${ac_cv_path_install+set}" = set; then
5353     INSTALL=$ac_cv_path_install
5354   else
5355     # As a last resort, use the slow shell script.  We don't cache a
5356     # path for INSTALL within a source directory, because that will
5357     # break other packages using the cache if that directory is
5358     # removed, or if the path is relative.
5359     INSTALL=$ac_install_sh
5360   fi
5361 fi
5362 echo "$as_me:$LINENO: result: $INSTALL" >&5
5363 echo "${ECHO_T}$INSTALL" >&6
5364
5365 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5366 # It thinks the first close brace ends the variable substitution.
5367 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5368
5369 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5370
5371 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5372
5373
5374 # Extract the first word of "bzip2", so it can be a program name with args.
5375 set dummy bzip2; ac_word=$2
5376 echo "$as_me:$LINENO: checking for $ac_word" >&5
5377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5378 if test "${ac_cv_path_BZIP2+set}" = set; then
5379   echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381   case $BZIP2 in
5382   [\\/]* | ?:[\\/]*)
5383   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5384   ;;
5385   *)
5386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH
5388 do
5389   IFS=$as_save_IFS
5390   test -z "$as_dir" && as_dir=.
5391   for ac_exec_ext in '' $ac_executable_extensions; do
5392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5393     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5395     break 2
5396   fi
5397 done
5398 done
5399
5400   test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5401   ;;
5402 esac
5403 fi
5404 BZIP2=$ac_cv_path_BZIP2
5405
5406 if test -n "$BZIP2"; then
5407   echo "$as_me:$LINENO: result: $BZIP2" >&5
5408 echo "${ECHO_T}$BZIP2" >&6
5409 else
5410   echo "$as_me:$LINENO: result: no" >&5
5411 echo "${ECHO_T}no" >&6
5412 fi
5413
5414 # Extract the first word of "dot", so it can be a program name with args.
5415 set dummy dot; ac_word=$2
5416 echo "$as_me:$LINENO: checking for $ac_word" >&5
5417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5418 if test "${ac_cv_path_DOT+set}" = set; then
5419   echo $ECHO_N "(cached) $ECHO_C" >&6
5420 else
5421   case $DOT in
5422   [\\/]* | ?:[\\/]*)
5423   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5424   ;;
5425   *)
5426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5428 do
5429   IFS=$as_save_IFS
5430   test -z "$as_dir" && as_dir=.
5431   for ac_exec_ext in '' $ac_executable_extensions; do
5432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5435     break 2
5436   fi
5437 done
5438 done
5439
5440   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5441   ;;
5442 esac
5443 fi
5444 DOT=$ac_cv_path_DOT
5445
5446 if test -n "$DOT"; then
5447   echo "$as_me:$LINENO: result: $DOT" >&5
5448 echo "${ECHO_T}$DOT" >&6
5449 else
5450   echo "$as_me:$LINENO: result: no" >&5
5451 echo "${ECHO_T}no" >&6
5452 fi
5453
5454 # Extract the first word of "doxygen", so it can be a program name with args.
5455 set dummy doxygen; ac_word=$2
5456 echo "$as_me:$LINENO: checking for $ac_word" >&5
5457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5458 if test "${ac_cv_path_DOXYGEN+set}" = set; then
5459   echo $ECHO_N "(cached) $ECHO_C" >&6
5460 else
5461   case $DOXYGEN in
5462   [\\/]* | ?:[\\/]*)
5463   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5464   ;;
5465   *)
5466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 for as_dir in $PATH
5468 do
5469   IFS=$as_save_IFS
5470   test -z "$as_dir" && as_dir=.
5471   for ac_exec_ext in '' $ac_executable_extensions; do
5472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5473     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5475     break 2
5476   fi
5477 done
5478 done
5479
5480   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5481   ;;
5482 esac
5483 fi
5484 DOXYGEN=$ac_cv_path_DOXYGEN
5485
5486 if test -n "$DOXYGEN"; then
5487   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5488 echo "${ECHO_T}$DOXYGEN" >&6
5489 else
5490   echo "$as_me:$LINENO: result: no" >&5
5491 echo "${ECHO_T}no" >&6
5492 fi
5493
5494 # Extract the first word of "etags", so it can be a program name with args.
5495 set dummy etags; ac_word=$2
5496 echo "$as_me:$LINENO: checking for $ac_word" >&5
5497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5498 if test "${ac_cv_path_ETAGS+set}" = set; then
5499   echo $ECHO_N "(cached) $ECHO_C" >&6
5500 else
5501   case $ETAGS in
5502   [\\/]* | ?:[\\/]*)
5503   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5504   ;;
5505   *)
5506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH
5508 do
5509   IFS=$as_save_IFS
5510   test -z "$as_dir" && as_dir=.
5511   for ac_exec_ext in '' $ac_executable_extensions; do
5512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5513     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5515     break 2
5516   fi
5517 done
5518 done
5519
5520   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5521   ;;
5522 esac
5523 fi
5524 ETAGS=$ac_cv_path_ETAGS
5525
5526 if test -n "$ETAGS"; then
5527   echo "$as_me:$LINENO: result: $ETAGS" >&5
5528 echo "${ECHO_T}$ETAGS" >&6
5529 else
5530   echo "$as_me:$LINENO: result: no" >&5
5531 echo "${ECHO_T}no" >&6
5532 fi
5533
5534 # Extract the first word of "groff", so it can be a program name with args.
5535 set dummy groff; ac_word=$2
5536 echo "$as_me:$LINENO: checking for $ac_word" >&5
5537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5538 if test "${ac_cv_path_GROFF+set}" = set; then
5539   echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541   case $GROFF in
5542   [\\/]* | ?:[\\/]*)
5543   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5544   ;;
5545   *)
5546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 for as_dir in $PATH
5548 do
5549   IFS=$as_save_IFS
5550   test -z "$as_dir" && as_dir=.
5551   for ac_exec_ext in '' $ac_executable_extensions; do
5552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5553     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5555     break 2
5556   fi
5557 done
5558 done
5559
5560   test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5561   ;;
5562 esac
5563 fi
5564 GROFF=$ac_cv_path_GROFF
5565
5566 if test -n "$GROFF"; then
5567   echo "$as_me:$LINENO: result: $GROFF" >&5
5568 echo "${ECHO_T}$GROFF" >&6
5569 else
5570   echo "$as_me:$LINENO: result: no" >&5
5571 echo "${ECHO_T}no" >&6
5572 fi
5573
5574 # Extract the first word of "gzip", so it can be a program name with args.
5575 set dummy gzip; ac_word=$2
5576 echo "$as_me:$LINENO: checking for $ac_word" >&5
5577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5578 if test "${ac_cv_path_GZIP+set}" = set; then
5579   echo $ECHO_N "(cached) $ECHO_C" >&6
5580 else
5581   case $GZIP in
5582   [\\/]* | ?:[\\/]*)
5583   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5584   ;;
5585   *)
5586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5588 do
5589   IFS=$as_save_IFS
5590   test -z "$as_dir" && as_dir=.
5591   for ac_exec_ext in '' $ac_executable_extensions; do
5592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5595     break 2
5596   fi
5597 done
5598 done
5599
5600   test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5601   ;;
5602 esac
5603 fi
5604 GZIP=$ac_cv_path_GZIP
5605
5606 if test -n "$GZIP"; then
5607   echo "$as_me:$LINENO: result: $GZIP" >&5
5608 echo "${ECHO_T}$GZIP" >&6
5609 else
5610   echo "$as_me:$LINENO: result: no" >&5
5611 echo "${ECHO_T}no" >&6
5612 fi
5613
5614 # Extract the first word of "pod2html", so it can be a program name with args.
5615 set dummy pod2html; ac_word=$2
5616 echo "$as_me:$LINENO: checking for $ac_word" >&5
5617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5618 if test "${ac_cv_path_POD2HTML+set}" = set; then
5619   echo $ECHO_N "(cached) $ECHO_C" >&6
5620 else
5621   case $POD2HTML in
5622   [\\/]* | ?:[\\/]*)
5623   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5624   ;;
5625   *)
5626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5628 do
5629   IFS=$as_save_IFS
5630   test -z "$as_dir" && as_dir=.
5631   for ac_exec_ext in '' $ac_executable_extensions; do
5632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5635     break 2
5636   fi
5637 done
5638 done
5639
5640   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5641   ;;
5642 esac
5643 fi
5644 POD2HTML=$ac_cv_path_POD2HTML
5645
5646 if test -n "$POD2HTML"; then
5647   echo "$as_me:$LINENO: result: $POD2HTML" >&5
5648 echo "${ECHO_T}$POD2HTML" >&6
5649 else
5650   echo "$as_me:$LINENO: result: no" >&5
5651 echo "${ECHO_T}no" >&6
5652 fi
5653
5654 # Extract the first word of "pod2man", so it can be a program name with args.
5655 set dummy pod2man; ac_word=$2
5656 echo "$as_me:$LINENO: checking for $ac_word" >&5
5657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5658 if test "${ac_cv_path_POD2MAN+set}" = set; then
5659   echo $ECHO_N "(cached) $ECHO_C" >&6
5660 else
5661   case $POD2MAN in
5662   [\\/]* | ?:[\\/]*)
5663   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5664   ;;
5665   *)
5666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 for as_dir in $PATH
5668 do
5669   IFS=$as_save_IFS
5670   test -z "$as_dir" && as_dir=.
5671   for ac_exec_ext in '' $ac_executable_extensions; do
5672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5673     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5675     break 2
5676   fi
5677 done
5678 done
5679
5680   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5681   ;;
5682 esac
5683 fi
5684 POD2MAN=$ac_cv_path_POD2MAN
5685
5686 if test -n "$POD2MAN"; then
5687   echo "$as_me:$LINENO: result: $POD2MAN" >&5
5688 echo "${ECHO_T}$POD2MAN" >&6
5689 else
5690   echo "$as_me:$LINENO: result: no" >&5
5691 echo "${ECHO_T}no" >&6
5692 fi
5693
5694 # Extract the first word of "runtest", so it can be a program name with args.
5695 set dummy runtest; ac_word=$2
5696 echo "$as_me:$LINENO: checking for $ac_word" >&5
5697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5698 if test "${ac_cv_path_RUNTEST+set}" = set; then
5699   echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701   case $RUNTEST in
5702   [\\/]* | ?:[\\/]*)
5703   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5704   ;;
5705   *)
5706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5708 do
5709   IFS=$as_save_IFS
5710   test -z "$as_dir" && as_dir=.
5711   for ac_exec_ext in '' $ac_executable_extensions; do
5712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5713     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5715     break 2
5716   fi
5717 done
5718 done
5719
5720   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5721   ;;
5722 esac
5723 fi
5724 RUNTEST=$ac_cv_path_RUNTEST
5725
5726 if test -n "$RUNTEST"; then
5727   echo "$as_me:$LINENO: result: $RUNTEST" >&5
5728 echo "${ECHO_T}$RUNTEST" >&6
5729 else
5730   echo "$as_me:$LINENO: result: no" >&5
5731 echo "${ECHO_T}no" >&6
5732 fi
5733
5734
5735 no_itcl=true
5736 echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5737 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
5738
5739 # Check whether --with-tclinclude or --without-tclinclude was given.
5740 if test "${with_tclinclude+set}" = set; then
5741   withval="$with_tclinclude"
5742   with_tclinclude=${withval}
5743 else
5744   with_tclinclude=''
5745 fi;
5746 if test "${ac_cv_path_tclsh+set}" = set; then
5747   echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749
5750 if test x"${with_tclinclude}" != x ; then
5751   if test -f ${with_tclinclude}/tclsh ; then
5752     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5753   elif test -f ${with_tclinclude}/src/tclsh ; then
5754     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5755   else
5756     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5757 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5758    { (exit 1); exit 1; }; }
5759   fi
5760 fi
5761
5762 if test x"${ac_cv_path_tclsh}" = x ; then
5763   echo "$as_me:$LINENO: result: none" >&5
5764 echo "${ECHO_T}none" >&6
5765   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
5766 do
5767   # Extract the first word of "$ac_prog", so it can be a program name with args.
5768 set dummy $ac_prog; ac_word=$2
5769 echo "$as_me:$LINENO: checking for $ac_word" >&5
5770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5771 if test "${ac_cv_path_TCLSH+set}" = set; then
5772   echo $ECHO_N "(cached) $ECHO_C" >&6
5773 else
5774   case $TCLSH in
5775   [\\/]* | ?:[\\/]*)
5776   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
5777   ;;
5778   *)
5779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH
5781 do
5782   IFS=$as_save_IFS
5783   test -z "$as_dir" && as_dir=.
5784   for ac_exec_ext in '' $ac_executable_extensions; do
5785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5786     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
5787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5788     break 2
5789   fi
5790 done
5791 done
5792
5793   ;;
5794 esac
5795 fi
5796 TCLSH=$ac_cv_path_TCLSH
5797
5798 if test -n "$TCLSH"; then
5799   echo "$as_me:$LINENO: result: $TCLSH" >&5
5800 echo "${ECHO_T}$TCLSH" >&6
5801 else
5802   echo "$as_me:$LINENO: result: no" >&5
5803 echo "${ECHO_T}no" >&6
5804 fi
5805
5806   test -n "$TCLSH" && break
5807 done
5808
5809   if test x"${TCLSH}" = x ; then
5810     ac_cv_path_tclsh='';
5811   else
5812     ac_cv_path_tclsh="${TCLSH}";
5813   fi
5814 else
5815   echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5816 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5817   TCLSH="${ac_cv_path_tclsh}"
5818
5819 fi
5820
5821 fi
5822
5823 # Extract the first word of "zip", so it can be a program name with args.
5824 set dummy zip; ac_word=$2
5825 echo "$as_me:$LINENO: checking for $ac_word" >&5
5826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5827 if test "${ac_cv_path_ZIP+set}" = set; then
5828   echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830   case $ZIP in
5831   [\\/]* | ?:[\\/]*)
5832   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5833   ;;
5834   *)
5835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 for as_dir in $PATH
5837 do
5838   IFS=$as_save_IFS
5839   test -z "$as_dir" && as_dir=.
5840   for ac_exec_ext in '' $ac_executable_extensions; do
5841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5842     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5844     break 2
5845   fi
5846 done
5847 done
5848
5849   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5850   ;;
5851 esac
5852 fi
5853 ZIP=$ac_cv_path_ZIP
5854
5855 if test -n "$ZIP"; then
5856   echo "$as_me:$LINENO: result: $ZIP" >&5
5857 echo "${ECHO_T}$ZIP" >&6
5858 else
5859   echo "$as_me:$LINENO: result: no" >&5
5860 echo "${ECHO_T}no" >&6
5861 fi
5862
5863
5864 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5865 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5866 if test "${llvm_cv_link_use_r+set}" = set; then
5867   echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869    ac_ext=c
5870 ac_cpp='$CPP $CPPFLAGS'
5871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5874
5875   oldcflags="$CFLAGS"
5876   CFLAGS="$CFLAGS -Wl,-R."
5877   cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h.  */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h.  */
5883
5884 int
5885 main ()
5886 {
5887 int main() { return 0; }
5888   ;
5889   return 0;
5890 }
5891 _ACEOF
5892 rm -f conftest.$ac_objext conftest$ac_exeext
5893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5894   (eval $ac_link) 2>conftest.er1
5895   ac_status=$?
5896   grep -v '^ *+' conftest.er1 >conftest.err
5897   rm -f conftest.er1
5898   cat conftest.err >&5
5899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900   (exit $ac_status); } &&
5901          { ac_try='test -z "$ac_c_werror_flag"
5902                          || test ! -s conftest.err'
5903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904   (eval $ac_try) 2>&5
5905   ac_status=$?
5906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907   (exit $ac_status); }; } &&
5908          { ac_try='test -s conftest$ac_exeext'
5909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910   (eval $ac_try) 2>&5
5911   ac_status=$?
5912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913   (exit $ac_status); }; }; then
5914   llvm_cv_link_use_r=yes
5915 else
5916   echo "$as_me: failed program was:" >&5
5917 sed 's/^/| /' conftest.$ac_ext >&5
5918
5919 llvm_cv_link_use_r=no
5920 fi
5921 rm -f conftest.err conftest.$ac_objext \
5922       conftest$ac_exeext conftest.$ac_ext
5923   CFLAGS="$oldcflags"
5924   ac_ext=c
5925 ac_cpp='$CPP $CPPFLAGS'
5926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5929
5930
5931 fi
5932 echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5933 echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5934 if test "$llvm_cv_link_use_r" = yes ; then
5935
5936 cat >>confdefs.h <<\_ACEOF
5937 #define HAVE_LINK_R 1
5938 _ACEOF
5939
5940   fi
5941
5942
5943
5944
5945 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5946 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5947 if test "${ac_cv_c_const+set}" = set; then
5948   echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5950   cat >conftest.$ac_ext <<_ACEOF
5951 /* confdefs.h.  */
5952 _ACEOF
5953 cat confdefs.h >>conftest.$ac_ext
5954 cat >>conftest.$ac_ext <<_ACEOF
5955 /* end confdefs.h.  */
5956
5957 int
5958 main ()
5959 {
5960 /* FIXME: Include the comments suggested by Paul. */
5961 #ifndef __cplusplus
5962   /* Ultrix mips cc rejects this.  */
5963   typedef int charset[2];
5964   const charset x;
5965   /* SunOS 4.1.1 cc rejects this.  */
5966   char const *const *ccp;
5967   char **p;
5968   /* NEC SVR4.0.2 mips cc rejects this.  */
5969   struct point {int x, y;};
5970   static struct point const zero = {0,0};
5971   /* AIX XL C 1.02.0.0 rejects this.
5972      It does not let you subtract one const X* pointer from another in
5973      an arm of an if-expression whose if-part is not a constant
5974      expression */
5975   const char *g = "string";
5976   ccp = &g + (g ? g-g : 0);
5977   /* HPUX 7.0 cc rejects these. */
5978   ++ccp;
5979   p = (char**) ccp;
5980   ccp = (char const *const *) p;
5981   { /* SCO 3.2v4 cc rejects this.  */
5982     char *t;
5983     char const *s = 0 ? (char *) 0 : (char const *) 0;
5984
5985     *t++ = 0;
5986   }
5987   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5988     int x[] = {25, 17};
5989     const int *foo = &x[0];
5990     ++foo;
5991   }
5992   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5993     typedef const int *iptr;
5994     iptr p = 0;
5995     ++p;
5996   }
5997   { /* AIX XL C 1.02.0.0 rejects this saying
5998        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5999     struct s { int j; const int *ap[3]; };
6000     struct s *b; b->j = 5;
6001   }
6002   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6003     const int foo = 10;
6004   }
6005 #endif
6006
6007   ;
6008   return 0;
6009 }
6010 _ACEOF
6011 rm -f conftest.$ac_objext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6013   (eval $ac_compile) 2>conftest.er1
6014   ac_status=$?
6015   grep -v '^ *+' conftest.er1 >conftest.err
6016   rm -f conftest.er1
6017   cat conftest.err >&5
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); } &&
6020          { ac_try='test -z "$ac_c_werror_flag"
6021                          || test ! -s conftest.err'
6022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023   (eval $ac_try) 2>&5
6024   ac_status=$?
6025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026   (exit $ac_status); }; } &&
6027          { ac_try='test -s conftest.$ac_objext'
6028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029   (eval $ac_try) 2>&5
6030   ac_status=$?
6031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032   (exit $ac_status); }; }; then
6033   ac_cv_c_const=yes
6034 else
6035   echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6037
6038 ac_cv_c_const=no
6039 fi
6040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6041 fi
6042 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6043 echo "${ECHO_T}$ac_cv_c_const" >&6
6044 if test $ac_cv_c_const = no; then
6045
6046 cat >>confdefs.h <<\_ACEOF
6047 #define const
6048 _ACEOF
6049
6050 fi
6051
6052
6053 echo "$as_me:$LINENO: checking for egrep" >&5
6054 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6055 if test "${ac_cv_prog_egrep+set}" = set; then
6056   echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6059     then ac_cv_prog_egrep='grep -E'
6060     else ac_cv_prog_egrep='egrep'
6061     fi
6062 fi
6063 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6064 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6065  EGREP=$ac_cv_prog_egrep
6066
6067
6068 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6069 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6070 if test "${ac_cv_header_stdc+set}" = set; then
6071   echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073   cat >conftest.$ac_ext <<_ACEOF
6074 /* confdefs.h.  */
6075 _ACEOF
6076 cat confdefs.h >>conftest.$ac_ext
6077 cat >>conftest.$ac_ext <<_ACEOF
6078 /* end confdefs.h.  */
6079 #include <stdlib.h>
6080 #include <stdarg.h>
6081 #include <string.h>
6082 #include <float.h>
6083
6084 int
6085 main ()
6086 {
6087
6088   ;
6089   return 0;
6090 }
6091 _ACEOF
6092 rm -f conftest.$ac_objext
6093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6094   (eval $ac_compile) 2>conftest.er1
6095   ac_status=$?
6096   grep -v '^ *+' conftest.er1 >conftest.err
6097   rm -f conftest.er1
6098   cat conftest.err >&5
6099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100   (exit $ac_status); } &&
6101          { ac_try='test -z "$ac_c_werror_flag"
6102                          || test ! -s conftest.err'
6103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104   (eval $ac_try) 2>&5
6105   ac_status=$?
6106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107   (exit $ac_status); }; } &&
6108          { ac_try='test -s conftest.$ac_objext'
6109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110   (eval $ac_try) 2>&5
6111   ac_status=$?
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); }; }; then
6114   ac_cv_header_stdc=yes
6115 else
6116   echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6118
6119 ac_cv_header_stdc=no
6120 fi
6121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6122
6123 if test $ac_cv_header_stdc = yes; then
6124   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6125   cat >conftest.$ac_ext <<_ACEOF
6126 /* confdefs.h.  */
6127 _ACEOF
6128 cat confdefs.h >>conftest.$ac_ext
6129 cat >>conftest.$ac_ext <<_ACEOF
6130 /* end confdefs.h.  */
6131 #include <string.h>
6132
6133 _ACEOF
6134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6135   $EGREP "memchr" >/dev/null 2>&1; then
6136   :
6137 else
6138   ac_cv_header_stdc=no
6139 fi
6140 rm -f conftest*
6141
6142 fi
6143
6144 if test $ac_cv_header_stdc = yes; then
6145   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6146   cat >conftest.$ac_ext <<_ACEOF
6147 /* confdefs.h.  */
6148 _ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h.  */
6152 #include <stdlib.h>
6153
6154 _ACEOF
6155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6156   $EGREP "free" >/dev/null 2>&1; then
6157   :
6158 else
6159   ac_cv_header_stdc=no
6160 fi
6161 rm -f conftest*
6162
6163 fi
6164
6165 if test $ac_cv_header_stdc = yes; then
6166   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6167   if test "$cross_compiling" = yes; then
6168   :
6169 else
6170   cat >conftest.$ac_ext <<_ACEOF
6171 /* confdefs.h.  */
6172 _ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h.  */
6176 #include <ctype.h>
6177 #if ((' ' & 0x0FF) == 0x020)
6178 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6179 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6180 #else
6181 # define ISLOWER(c) \
6182                    (('a' <= (c) && (c) <= 'i') \
6183                      || ('j' <= (c) && (c) <= 'r') \
6184                      || ('s' <= (c) && (c) <= 'z'))
6185 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6186 #endif
6187
6188 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6189 int
6190 main ()
6191 {
6192   int i;
6193   for (i = 0; i < 256; i++)
6194     if (XOR (islower (i), ISLOWER (i))
6195         || toupper (i) != TOUPPER (i))
6196       exit(2);
6197   exit (0);
6198 }
6199 _ACEOF
6200 rm -f conftest$ac_exeext
6201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6202   (eval $ac_link) 2>&5
6203   ac_status=$?
6204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207   (eval $ac_try) 2>&5
6208   ac_status=$?
6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); }; }; then
6211   :
6212 else
6213   echo "$as_me: program exited with status $ac_status" >&5
6214 echo "$as_me: failed program was:" >&5
6215 sed 's/^/| /' conftest.$ac_ext >&5
6216
6217 ( exit $ac_status )
6218 ac_cv_header_stdc=no
6219 fi
6220 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6221 fi
6222 fi
6223 fi
6224 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6225 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6226 if test $ac_cv_header_stdc = yes; then
6227
6228 cat >>confdefs.h <<\_ACEOF
6229 #define STDC_HEADERS 1
6230 _ACEOF
6231
6232 fi
6233
6234
6235
6236
6237
6238
6239 ac_header_dirent=no
6240 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6241   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6242 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6243 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6245   echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247   cat >conftest.$ac_ext <<_ACEOF
6248 /* confdefs.h.  */
6249 _ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h.  */
6253 #include <sys/types.h>
6254 #include <$ac_hdr>
6255
6256 int
6257 main ()
6258 {
6259 if ((DIR *) 0)
6260 return 0;
6261   ;
6262   return 0;
6263 }
6264 _ACEOF
6265 rm -f conftest.$ac_objext
6266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6267   (eval $ac_compile) 2>conftest.er1
6268   ac_status=$?
6269   grep -v '^ *+' conftest.er1 >conftest.err
6270   rm -f conftest.er1
6271   cat conftest.err >&5
6272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273   (exit $ac_status); } &&
6274          { ac_try='test -z "$ac_c_werror_flag"
6275                          || test ! -s conftest.err'
6276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277   (eval $ac_try) 2>&5
6278   ac_status=$?
6279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280   (exit $ac_status); }; } &&
6281          { ac_try='test -s conftest.$ac_objext'
6282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283   (eval $ac_try) 2>&5
6284   ac_status=$?
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); }; }; then
6287   eval "$as_ac_Header=yes"
6288 else
6289   echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.$ac_ext >&5
6291
6292 eval "$as_ac_Header=no"
6293 fi
6294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6295 fi
6296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6299   cat >>confdefs.h <<_ACEOF
6300 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6301 _ACEOF
6302
6303 ac_header_dirent=$ac_hdr; break
6304 fi
6305
6306 done
6307 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6308 if test $ac_header_dirent = dirent.h; then
6309   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6310 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6311 if test "${ac_cv_search_opendir+set}" = set; then
6312   echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314   ac_func_search_save_LIBS=$LIBS
6315 ac_cv_search_opendir=no
6316 cat >conftest.$ac_ext <<_ACEOF
6317 /* confdefs.h.  */
6318 _ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h.  */
6322
6323 /* Override any gcc2 internal prototype to avoid an error.  */
6324 #ifdef __cplusplus
6325 extern "C"
6326 #endif
6327 /* We use char because int might match the return type of a gcc2
6328    builtin and then its argument prototype would still apply.  */
6329 char opendir ();
6330 int
6331 main ()
6332 {
6333 opendir ();
6334   ;
6335   return 0;
6336 }
6337 _ACEOF
6338 rm -f conftest.$ac_objext conftest$ac_exeext
6339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6340   (eval $ac_link) 2>conftest.er1
6341   ac_status=$?
6342   grep -v '^ *+' conftest.er1 >conftest.err
6343   rm -f conftest.er1
6344   cat conftest.err >&5
6345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346   (exit $ac_status); } &&
6347          { ac_try='test -z "$ac_c_werror_flag"
6348                          || test ! -s conftest.err'
6349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350   (eval $ac_try) 2>&5
6351   ac_status=$?
6352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353   (exit $ac_status); }; } &&
6354          { ac_try='test -s conftest$ac_exeext'
6355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356   (eval $ac_try) 2>&5
6357   ac_status=$?
6358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359   (exit $ac_status); }; }; then
6360   ac_cv_search_opendir="none required"
6361 else
6362   echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6364
6365 fi
6366 rm -f conftest.err conftest.$ac_objext \
6367       conftest$ac_exeext conftest.$ac_ext
6368 if test "$ac_cv_search_opendir" = no; then
6369   for ac_lib in dir; do
6370     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6371     cat >conftest.$ac_ext <<_ACEOF
6372 /* confdefs.h.  */
6373 _ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h.  */
6377
6378 /* Override any gcc2 internal prototype to avoid an error.  */
6379 #ifdef __cplusplus
6380 extern "C"
6381 #endif
6382 /* We use char because int might match the return type of a gcc2
6383    builtin and then its argument prototype would still apply.  */
6384 char opendir ();
6385 int
6386 main ()
6387 {
6388 opendir ();
6389   ;
6390   return 0;
6391 }
6392 _ACEOF
6393 rm -f conftest.$ac_objext conftest$ac_exeext
6394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6395   (eval $ac_link) 2>conftest.er1
6396   ac_status=$?
6397   grep -v '^ *+' conftest.er1 >conftest.err
6398   rm -f conftest.er1
6399   cat conftest.err >&5
6400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401   (exit $ac_status); } &&
6402          { ac_try='test -z "$ac_c_werror_flag"
6403                          || test ! -s conftest.err'
6404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405   (eval $ac_try) 2>&5
6406   ac_status=$?
6407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408   (exit $ac_status); }; } &&
6409          { ac_try='test -s conftest$ac_exeext'
6410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411   (eval $ac_try) 2>&5
6412   ac_status=$?
6413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414   (exit $ac_status); }; }; then
6415   ac_cv_search_opendir="-l$ac_lib"
6416 break
6417 else
6418   echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6420
6421 fi
6422 rm -f conftest.err conftest.$ac_objext \
6423       conftest$ac_exeext conftest.$ac_ext
6424   done
6425 fi
6426 LIBS=$ac_func_search_save_LIBS
6427 fi
6428 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6429 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6430 if test "$ac_cv_search_opendir" != no; then
6431   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6432
6433 fi
6434
6435 else
6436   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6437 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6438 if test "${ac_cv_search_opendir+set}" = set; then
6439   echo $ECHO_N "(cached) $ECHO_C" >&6
6440 else
6441   ac_func_search_save_LIBS=$LIBS
6442 ac_cv_search_opendir=no
6443 cat >conftest.$ac_ext <<_ACEOF
6444 /* confdefs.h.  */
6445 _ACEOF
6446 cat confdefs.h >>conftest.$ac_ext
6447 cat >>conftest.$ac_ext <<_ACEOF
6448 /* end confdefs.h.  */
6449
6450 /* Override any gcc2 internal prototype to avoid an error.  */
6451 #ifdef __cplusplus
6452 extern "C"
6453 #endif
6454 /* We use char because int might match the return type of a gcc2
6455    builtin and then its argument prototype would still apply.  */
6456 char opendir ();
6457 int
6458 main ()
6459 {
6460 opendir ();
6461   ;
6462   return 0;
6463 }
6464 _ACEOF
6465 rm -f conftest.$ac_objext conftest$ac_exeext
6466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6467   (eval $ac_link) 2>conftest.er1
6468   ac_status=$?
6469   grep -v '^ *+' conftest.er1 >conftest.err
6470   rm -f conftest.er1
6471   cat conftest.err >&5
6472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473   (exit $ac_status); } &&
6474          { ac_try='test -z "$ac_c_werror_flag"
6475                          || test ! -s conftest.err'
6476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477   (eval $ac_try) 2>&5
6478   ac_status=$?
6479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480   (exit $ac_status); }; } &&
6481          { ac_try='test -s conftest$ac_exeext'
6482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483   (eval $ac_try) 2>&5
6484   ac_status=$?
6485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486   (exit $ac_status); }; }; then
6487   ac_cv_search_opendir="none required"
6488 else
6489   echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6491
6492 fi
6493 rm -f conftest.err conftest.$ac_objext \
6494       conftest$ac_exeext conftest.$ac_ext
6495 if test "$ac_cv_search_opendir" = no; then
6496   for ac_lib in x; do
6497     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6498     cat >conftest.$ac_ext <<_ACEOF
6499 /* confdefs.h.  */
6500 _ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h.  */
6504
6505 /* Override any gcc2 internal prototype to avoid an error.  */
6506 #ifdef __cplusplus
6507 extern "C"
6508 #endif
6509 /* We use char because int might match the return type of a gcc2
6510    builtin and then its argument prototype would still apply.  */
6511 char opendir ();
6512 int
6513 main ()
6514 {
6515 opendir ();
6516   ;
6517   return 0;
6518 }
6519 _ACEOF
6520 rm -f conftest.$ac_objext conftest$ac_exeext
6521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6522   (eval $ac_link) 2>conftest.er1
6523   ac_status=$?
6524   grep -v '^ *+' conftest.er1 >conftest.err
6525   rm -f conftest.er1
6526   cat conftest.err >&5
6527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528   (exit $ac_status); } &&
6529          { ac_try='test -z "$ac_c_werror_flag"
6530                          || test ! -s conftest.err'
6531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532   (eval $ac_try) 2>&5
6533   ac_status=$?
6534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535   (exit $ac_status); }; } &&
6536          { ac_try='test -s conftest$ac_exeext'
6537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538   (eval $ac_try) 2>&5
6539   ac_status=$?
6540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541   (exit $ac_status); }; }; then
6542   ac_cv_search_opendir="-l$ac_lib"
6543 break
6544 else
6545   echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6547
6548 fi
6549 rm -f conftest.err conftest.$ac_objext \
6550       conftest$ac_exeext conftest.$ac_ext
6551   done
6552 fi
6553 LIBS=$ac_func_search_save_LIBS
6554 fi
6555 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6556 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6557 if test "$ac_cv_search_opendir" != no; then
6558   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6559
6560 fi
6561
6562 fi
6563
6564 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6575                   inttypes.h stdint.h unistd.h
6576 do
6577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6578 echo "$as_me:$LINENO: checking for $ac_header" >&5
6579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6581   echo $ECHO_N "(cached) $ECHO_C" >&6
6582 else
6583   cat >conftest.$ac_ext <<_ACEOF
6584 /* confdefs.h.  */
6585 _ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h.  */
6589 $ac_includes_default
6590
6591 #include <$ac_header>
6592 _ACEOF
6593 rm -f conftest.$ac_objext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6595   (eval $ac_compile) 2>conftest.er1
6596   ac_status=$?
6597   grep -v '^ *+' conftest.er1 >conftest.err
6598   rm -f conftest.er1
6599   cat conftest.err >&5
6600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601   (exit $ac_status); } &&
6602          { ac_try='test -z "$ac_c_werror_flag"
6603                          || test ! -s conftest.err'
6604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605   (eval $ac_try) 2>&5
6606   ac_status=$?
6607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608   (exit $ac_status); }; } &&
6609          { ac_try='test -s conftest.$ac_objext'
6610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611   (eval $ac_try) 2>&5
6612   ac_status=$?
6613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614   (exit $ac_status); }; }; then
6615   eval "$as_ac_Header=yes"
6616 else
6617   echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6619
6620 eval "$as_ac_Header=no"
6621 fi
6622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6623 fi
6624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6627   cat >>confdefs.h <<_ACEOF
6628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6629 _ACEOF
6630
6631 fi
6632
6633 done
6634
6635
6636
6637 for ac_header in dlfcn.h
6638 do
6639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6641   echo "$as_me:$LINENO: checking for $ac_header" >&5
6642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6644   echo $ECHO_N "(cached) $ECHO_C" >&6
6645 fi
6646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6648 else
6649   # Is the header compilable?
6650 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6651 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6652 cat >conftest.$ac_ext <<_ACEOF
6653 /* confdefs.h.  */
6654 _ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h.  */
6658 $ac_includes_default
6659 #include <$ac_header>
6660 _ACEOF
6661 rm -f conftest.$ac_objext
6662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6663   (eval $ac_compile) 2>conftest.er1
6664   ac_status=$?
6665   grep -v '^ *+' conftest.er1 >conftest.err
6666   rm -f conftest.er1
6667   cat conftest.err >&5
6668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669   (exit $ac_status); } &&
6670          { ac_try='test -z "$ac_c_werror_flag"
6671                          || test ! -s conftest.err'
6672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673   (eval $ac_try) 2>&5
6674   ac_status=$?
6675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676   (exit $ac_status); }; } &&
6677          { ac_try='test -s conftest.$ac_objext'
6678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679   (eval $ac_try) 2>&5
6680   ac_status=$?
6681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682   (exit $ac_status); }; }; then
6683   ac_header_compiler=yes
6684 else
6685   echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6687
6688 ac_header_compiler=no
6689 fi
6690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6691 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6692 echo "${ECHO_T}$ac_header_compiler" >&6
6693
6694 # Is the header present?
6695 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6697 cat >conftest.$ac_ext <<_ACEOF
6698 /* confdefs.h.  */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h.  */
6703 #include <$ac_header>
6704 _ACEOF
6705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6706   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6707   ac_status=$?
6708   grep -v '^ *+' conftest.er1 >conftest.err
6709   rm -f conftest.er1
6710   cat conftest.err >&5
6711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712   (exit $ac_status); } >/dev/null; then
6713   if test -s conftest.err; then
6714     ac_cpp_err=$ac_c_preproc_warn_flag
6715     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6716   else
6717     ac_cpp_err=
6718   fi
6719 else
6720   ac_cpp_err=yes
6721 fi
6722 if test -z "$ac_cpp_err"; then
6723   ac_header_preproc=yes
6724 else
6725   echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.$ac_ext >&5
6727
6728   ac_header_preproc=no
6729 fi
6730 rm -f conftest.err conftest.$ac_ext
6731 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6732 echo "${ECHO_T}$ac_header_preproc" >&6
6733
6734 # So?  What about this header?
6735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6736   yes:no: )
6737     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6739     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6741     ac_header_preproc=yes
6742     ;;
6743   no:yes:* )
6744     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6746     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6747 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6748     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6750     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6751 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6754     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6756     (
6757       cat <<\_ASBOX
6758 ## ----------------------------------- ##
6759 ## Report this to llvmbugs@cs.uiuc.edu ##
6760 ## ----------------------------------- ##
6761 _ASBOX
6762     ) |
6763       sed "s/^/$as_me: WARNING:     /" >&2
6764     ;;
6765 esac
6766 echo "$as_me:$LINENO: checking for $ac_header" >&5
6767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6769   echo $ECHO_N "(cached) $ECHO_C" >&6
6770 else
6771   eval "$as_ac_Header=\$ac_header_preproc"
6772 fi
6773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6775
6776 fi
6777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6778   cat >>confdefs.h <<_ACEOF
6779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6780 _ACEOF
6781
6782 fi
6783
6784 done
6785
6786 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6787 if test "${enable_ltdl_install+set}" = set; then
6788   enableval="$enable_ltdl_install"
6789
6790 fi;
6791
6792
6793
6794 if test x"${enable_ltdl_install-no}" != xno; then
6795   INSTALL_LTDL_TRUE=
6796   INSTALL_LTDL_FALSE='#'
6797 else
6798   INSTALL_LTDL_TRUE='#'
6799   INSTALL_LTDL_FALSE=
6800 fi
6801
6802
6803
6804 if test x"${enable_ltdl_convenience-no}" != xno; then
6805   CONVENIENCE_LTDL_TRUE=
6806   CONVENIENCE_LTDL_FALSE='#'
6807 else
6808   CONVENIENCE_LTDL_TRUE='#'
6809   CONVENIENCE_LTDL_FALSE=
6810 fi
6811
6812
6813 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6814 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6815 library_names_spec=
6816 libname_spec='lib$name'
6817 soname_spec=
6818 shrext_cmds=".so"
6819 postinstall_cmds=
6820 postuninstall_cmds=
6821 finish_cmds=
6822 finish_eval=
6823 shlibpath_var=
6824 shlibpath_overrides_runpath=unknown
6825 version_type=none
6826 dynamic_linker="$host_os ld.so"
6827 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6828 if test "$GCC" = yes; then
6829   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6830   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6831     # if the path contains ";" then we assume it to be the separator
6832     # otherwise default to the standard path separator (i.e. ":") - it is
6833     # assumed that no part of a normal pathname contains ";" but that should
6834     # okay in the real world where ";" in dirpaths is itself problematic.
6835     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6836   else
6837     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6838   fi
6839 else
6840   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6841 fi
6842 need_lib_prefix=unknown
6843 hardcode_into_libs=no
6844
6845 # when you set need_version to no, make sure it does not cause -set_version
6846 # flags to be left without arguments
6847 need_version=unknown
6848
6849 case $host_os in
6850 aix3*)
6851   version_type=linux
6852   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6853   shlibpath_var=LIBPATH
6854
6855   # AIX 3 has no versioning support, so we append a major version to the name.
6856   soname_spec='${libname}${release}${shared_ext}$major'
6857   ;;
6858
6859 aix4* | aix5*)
6860   version_type=linux
6861   need_lib_prefix=no
6862   need_version=no
6863   hardcode_into_libs=yes
6864   if test "$host_cpu" = ia64; then
6865     # AIX 5 supports IA64
6866     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6867     shlibpath_var=LD_LIBRARY_PATH
6868   else
6869     # With GCC up to 2.95.x, collect2 would create an import file
6870     # for dependence libraries.  The import file would start with
6871     # the line `#! .'.  This would cause the generated library to
6872     # depend on `.', always an invalid library.  This was fixed in
6873     # development snapshots of GCC prior to 3.0.
6874     case $host_os in
6875       aix4 | aix4.[01] | aix4.[01].*)
6876       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6877            echo ' yes '
6878            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6879         :
6880       else
6881         can_build_shared=no
6882       fi
6883       ;;
6884     esac
6885     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6886     # soname into executable. Probably we can add versioning support to
6887     # collect2, so additional links can be useful in future.
6888     if test "$aix_use_runtimelinking" = yes; then
6889       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6890       # instead of lib<name>.a to let people know that these are not
6891       # typical AIX shared libraries.
6892       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6893     else
6894       # We preserve .a as extension for shared libraries through AIX4.2
6895       # and later when we are not doing run time linking.
6896       library_names_spec='${libname}${release}.a $libname.a'
6897       soname_spec='${libname}${release}${shared_ext}$major'
6898     fi
6899     shlibpath_var=LIBPATH
6900   fi
6901   ;;
6902
6903 amigaos*)
6904   library_names_spec='$libname.ixlibrary $libname.a'
6905   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6906   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'
6907   ;;
6908
6909 beos*)
6910   library_names_spec='${libname}${shared_ext}'
6911   dynamic_linker="$host_os ld.so"
6912   shlibpath_var=LIBRARY_PATH
6913   ;;
6914
6915 bsdi[45]*)
6916   version_type=linux
6917   need_version=no
6918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6919   soname_spec='${libname}${release}${shared_ext}$major'
6920   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6921   shlibpath_var=LD_LIBRARY_PATH
6922   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6923   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6924   # the default ld.so.conf also contains /usr/contrib/lib and
6925   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6926   # libtool to hard-code these into programs
6927   ;;
6928
6929 cygwin* | mingw* | pw32*)
6930   version_type=windows
6931   shrext_cmds=".dll"
6932   need_version=no
6933   need_lib_prefix=no
6934
6935   case $GCC,$host_os in
6936   yes,cygwin* | yes,mingw* | yes,pw32*)
6937     library_names_spec='$libname.dll.a'
6938     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6939     postinstall_cmds='base_file=`basename \${file}`~
6940       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6941       dldir=$destdir/`dirname \$dlpath`~
6942       test -d \$dldir || mkdir -p \$dldir~
6943       $install_prog $dir/$dlname \$dldir/$dlname'
6944     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6945       dlpath=$dir/\$dldll~
6946        $rm \$dlpath'
6947     shlibpath_overrides_runpath=yes
6948
6949     case $host_os in
6950     cygwin*)
6951       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6952       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6953       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6954       ;;
6955     mingw*)
6956       # MinGW DLLs use traditional 'lib' prefix
6957       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6958       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6959       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6960         # It is most probably a Windows format PATH printed by
6961         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6962         # path with ; separators, and with drive letters. We can handle the
6963         # drive letters (cygwin fileutils understands them), so leave them,
6964         # especially as we might pass files found there to a mingw objdump,
6965         # which wouldn't understand a cygwinified path. Ahh.
6966         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6967       else
6968         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6969       fi
6970       ;;
6971     pw32*)
6972       # pw32 DLLs use 'pw' prefix rather than 'lib'
6973       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6974       ;;
6975     esac
6976     ;;
6977
6978   *)
6979     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6980     ;;
6981   esac
6982   dynamic_linker='Win32 ld.exe'
6983   # FIXME: first we should search . and the directory the executable is in
6984   shlibpath_var=PATH
6985   ;;
6986
6987 darwin* | rhapsody*)
6988   dynamic_linker="$host_os dyld"
6989   version_type=darwin
6990   need_lib_prefix=no
6991   need_version=no
6992   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6993   soname_spec='${libname}${release}${major}$shared_ext'
6994   shlibpath_overrides_runpath=yes
6995   shlibpath_var=DYLD_LIBRARY_PATH
6996   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6997   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6998   if test "$GCC" = yes; then
6999     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"`
7000   else
7001     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7002   fi
7003   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7004   ;;
7005
7006 dgux*)
7007   version_type=linux
7008   need_lib_prefix=no
7009   need_version=no
7010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7011   soname_spec='${libname}${release}${shared_ext}$major'
7012   shlibpath_var=LD_LIBRARY_PATH
7013   ;;
7014
7015 freebsd1*)
7016   dynamic_linker=no
7017   ;;
7018
7019 kfreebsd*-gnu)
7020   version_type=linux
7021   need_lib_prefix=no
7022   need_version=no
7023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7024   soname_spec='${libname}${release}${shared_ext}$major'
7025   shlibpath_var=LD_LIBRARY_PATH
7026   shlibpath_overrides_runpath=no
7027   hardcode_into_libs=yes
7028   dynamic_linker='GNU ld.so'
7029   ;;
7030
7031 freebsd*)
7032   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7033   version_type=freebsd-$objformat
7034   case $version_type in
7035     freebsd-elf*)
7036       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7037       need_version=no
7038       need_lib_prefix=no
7039       ;;
7040     freebsd-*)
7041       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7042       need_version=yes
7043       ;;
7044   esac
7045   shlibpath_var=LD_LIBRARY_PATH
7046   case $host_os in
7047   freebsd2*)
7048     shlibpath_overrides_runpath=yes
7049     ;;
7050   freebsd3.01* | freebsdelf3.01*)
7051     shlibpath_overrides_runpath=yes
7052     hardcode_into_libs=yes
7053     ;;
7054   *) # from 3.2 on
7055     shlibpath_overrides_runpath=no
7056     hardcode_into_libs=yes
7057     ;;
7058   esac
7059   ;;
7060
7061 gnu*)
7062   version_type=linux
7063   need_lib_prefix=no
7064   need_version=no
7065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7066   soname_spec='${libname}${release}${shared_ext}$major'
7067   shlibpath_var=LD_LIBRARY_PATH
7068   hardcode_into_libs=yes
7069   ;;
7070
7071 hpux9* | hpux10* | hpux11*)
7072   # Give a soname corresponding to the major version so that dld.sl refuses to
7073   # link against other versions.
7074   version_type=sunos
7075   need_lib_prefix=no
7076   need_version=no
7077   case "$host_cpu" in
7078   ia64*)
7079     shrext_cmds='.so'
7080     hardcode_into_libs=yes
7081     dynamic_linker="$host_os dld.so"
7082     shlibpath_var=LD_LIBRARY_PATH
7083     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7084     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7085     soname_spec='${libname}${release}${shared_ext}$major'
7086     if test "X$HPUX_IA64_MODE" = X32; then
7087       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7088     else
7089       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7090     fi
7091     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7092     ;;
7093    hppa*64*)
7094      shrext_cmds='.sl'
7095      hardcode_into_libs=yes
7096      dynamic_linker="$host_os dld.sl"
7097      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7098      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7099      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7100      soname_spec='${libname}${release}${shared_ext}$major'
7101      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7102      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7103      ;;
7104    *)
7105     shrext_cmds='.sl'
7106     dynamic_linker="$host_os dld.sl"
7107     shlibpath_var=SHLIB_PATH
7108     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7109     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7110     soname_spec='${libname}${release}${shared_ext}$major'
7111     ;;
7112   esac
7113   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7114   postinstall_cmds='chmod 555 $lib'
7115   ;;
7116
7117 irix5* | irix6* | nonstopux*)
7118   case $host_os in
7119     nonstopux*) version_type=nonstopux ;;
7120     *)
7121         if test "$lt_cv_prog_gnu_ld" = yes; then
7122                 version_type=linux
7123         else
7124                 version_type=irix
7125         fi ;;
7126   esac
7127   need_lib_prefix=no
7128   need_version=no
7129   soname_spec='${libname}${release}${shared_ext}$major'
7130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7131   case $host_os in
7132   irix5* | nonstopux*)
7133     libsuff= shlibsuff=
7134     ;;
7135   *)
7136     case $LD in # libtool.m4 will add one of these switches to LD
7137     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7138       libsuff= shlibsuff= libmagic=32-bit;;
7139     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7140       libsuff=32 shlibsuff=N32 libmagic=N32;;
7141     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7142       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7143     *) libsuff= shlibsuff= libmagic=never-match;;
7144     esac
7145     ;;
7146   esac
7147   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7148   shlibpath_overrides_runpath=no
7149   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7150   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7151   hardcode_into_libs=yes
7152   ;;
7153
7154 # No shared lib support for Linux oldld, aout, or coff.
7155 linux*oldld* | linux*aout* | linux*coff*)
7156   dynamic_linker=no
7157   ;;
7158
7159 # This must be Linux ELF.
7160 linux*)
7161   version_type=linux
7162   need_lib_prefix=no
7163   need_version=no
7164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7165   soname_spec='${libname}${release}${shared_ext}$major'
7166   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7167   shlibpath_var=LD_LIBRARY_PATH
7168   shlibpath_overrides_runpath=no
7169   # This implies no fast_install, which is unacceptable.
7170   # Some rework will be needed to allow for fast_install
7171   # before this can be enabled.
7172   hardcode_into_libs=yes
7173
7174   # Append ld.so.conf contents to the search path
7175   if test -f /etc/ld.so.conf; then
7176     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7177     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7178   fi
7179
7180   # We used to test for /lib/ld.so.1 and disable shared libraries on
7181   # powerpc, because MkLinux only supported shared libraries with the
7182   # GNU dynamic linker.  Since this was broken with cross compilers,
7183   # most powerpc-linux boxes support dynamic linking these days and
7184   # people can always --disable-shared, the test was removed, and we
7185   # assume the GNU/Linux dynamic linker is in use.
7186   dynamic_linker='GNU/Linux ld.so'
7187   ;;
7188
7189 knetbsd*-gnu)
7190   version_type=linux
7191   need_lib_prefix=no
7192   need_version=no
7193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7194   soname_spec='${libname}${release}${shared_ext}$major'
7195   shlibpath_var=LD_LIBRARY_PATH
7196   shlibpath_overrides_runpath=no
7197   hardcode_into_libs=yes
7198   dynamic_linker='GNU ld.so'
7199   ;;
7200
7201 netbsd*)
7202   version_type=sunos
7203   need_lib_prefix=no
7204   need_version=no
7205   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7206     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7207     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7208     dynamic_linker='NetBSD (a.out) ld.so'
7209   else
7210     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7211     soname_spec='${libname}${release}${shared_ext}$major'
7212     dynamic_linker='NetBSD ld.elf_so'
7213   fi
7214   shlibpath_var=LD_LIBRARY_PATH
7215   shlibpath_overrides_runpath=yes
7216   hardcode_into_libs=yes
7217   ;;
7218
7219 newsos6)
7220   version_type=linux
7221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7222   shlibpath_var=LD_LIBRARY_PATH
7223   shlibpath_overrides_runpath=yes
7224   ;;
7225
7226 nto-qnx*)
7227   version_type=linux
7228   need_lib_prefix=no
7229   need_version=no
7230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7231   soname_spec='${libname}${release}${shared_ext}$major'
7232   shlibpath_var=LD_LIBRARY_PATH
7233   shlibpath_overrides_runpath=yes
7234   ;;
7235
7236 openbsd*)
7237   version_type=sunos
7238   need_lib_prefix=no
7239   need_version=no
7240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7241   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7242   shlibpath_var=LD_LIBRARY_PATH
7243   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7244     case $host_os in
7245       openbsd2.[89] | openbsd2.[89].*)
7246         shlibpath_overrides_runpath=no
7247         ;;
7248       *)
7249         shlibpath_overrides_runpath=yes
7250         ;;
7251       esac
7252   else
7253     shlibpath_overrides_runpath=yes
7254   fi
7255   ;;
7256
7257 os2*)
7258   libname_spec='$name'
7259   shrext_cmds=".dll"
7260   need_lib_prefix=no
7261   library_names_spec='$libname${shared_ext} $libname.a'
7262   dynamic_linker='OS/2 ld.exe'
7263   shlibpath_var=LIBPATH
7264   ;;
7265
7266 osf3* | osf4* | osf5*)
7267   version_type=osf
7268   need_lib_prefix=no
7269   need_version=no
7270   soname_spec='${libname}${release}${shared_ext}$major'
7271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7272   shlibpath_var=LD_LIBRARY_PATH
7273   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7274   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7275   ;;
7276
7277 sco3.2v5*)
7278   version_type=osf
7279   soname_spec='${libname}${release}${shared_ext}$major'
7280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7281   shlibpath_var=LD_LIBRARY_PATH
7282   ;;
7283
7284 solaris*)
7285   version_type=linux
7286   need_lib_prefix=no
7287   need_version=no
7288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7289   soname_spec='${libname}${release}${shared_ext}$major'
7290   shlibpath_var=LD_LIBRARY_PATH
7291   shlibpath_overrides_runpath=yes
7292   hardcode_into_libs=yes
7293   # ldd complains unless libraries are executable
7294   postinstall_cmds='chmod +x $lib'
7295   ;;
7296
7297 sunos4*)
7298   version_type=sunos
7299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7300   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7301   shlibpath_var=LD_LIBRARY_PATH
7302   shlibpath_overrides_runpath=yes
7303   if test "$with_gnu_ld" = yes; then
7304     need_lib_prefix=no
7305   fi
7306   need_version=yes
7307   ;;
7308
7309 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7310   version_type=linux
7311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7312   soname_spec='${libname}${release}${shared_ext}$major'
7313   shlibpath_var=LD_LIBRARY_PATH
7314   case $host_vendor in
7315     sni)
7316       shlibpath_overrides_runpath=no
7317       need_lib_prefix=no
7318       export_dynamic_flag_spec='${wl}-Blargedynsym'
7319       runpath_var=LD_RUN_PATH
7320       ;;
7321     siemens)
7322       need_lib_prefix=no
7323       ;;
7324     motorola)
7325       need_lib_prefix=no
7326       need_version=no
7327       shlibpath_overrides_runpath=no
7328       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7329       ;;
7330   esac
7331   ;;
7332
7333 sysv4*MP*)
7334   if test -d /usr/nec ;then
7335     version_type=linux
7336     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7337     soname_spec='$libname${shared_ext}.$major'
7338     shlibpath_var=LD_LIBRARY_PATH
7339   fi
7340   ;;
7341
7342 uts4*)
7343   version_type=linux
7344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7345   soname_spec='${libname}${release}${shared_ext}$major'
7346   shlibpath_var=LD_LIBRARY_PATH
7347   ;;
7348
7349 *)
7350   dynamic_linker=no
7351   ;;
7352 esac
7353 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7354 echo "${ECHO_T}$dynamic_linker" >&6
7355 test "$dynamic_linker" = no && can_build_shared=no
7356
7357
7358 echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7359 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7360 if test "${libltdl_cv_shlibext+set}" = set; then
7361   echo $ECHO_N "(cached) $ECHO_C" >&6
7362 else
7363
7364 module=yes
7365 eval libltdl_cv_shlibext=$shrext_cmds
7366
7367 fi
7368 echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7369 echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7370 if test -n "$libltdl_cv_shlibext"; then
7371
7372 cat >>confdefs.h <<_ACEOF
7373 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7374 _ACEOF
7375
7376 fi
7377
7378
7379 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7380 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7381 if test "${libltdl_cv_shlibpath_var+set}" = set; then
7382   echo $ECHO_N "(cached) $ECHO_C" >&6
7383 else
7384   libltdl_cv_shlibpath_var="$shlibpath_var"
7385 fi
7386 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7387 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7388 if test -n "$libltdl_cv_shlibpath_var"; then
7389
7390 cat >>confdefs.h <<_ACEOF
7391 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7392 _ACEOF
7393
7394 fi
7395
7396
7397 echo "$as_me:$LINENO: checking for the default library search path" >&5
7398 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7399 if test "${libltdl_cv_sys_search_path+set}" = set; then
7400   echo $ECHO_N "(cached) $ECHO_C" >&6
7401 else
7402   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7403 fi
7404 echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7405 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7406 if test -n "$libltdl_cv_sys_search_path"; then
7407   sys_search_path=
7408   for dir in $libltdl_cv_sys_search_path; do
7409     if test -z "$sys_search_path"; then
7410       sys_search_path="$dir"
7411     else
7412       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7413     fi
7414   done
7415
7416 cat >>confdefs.h <<_ACEOF
7417 #define LTDL_SYSSEARCHPATH "$sys_search_path"
7418 _ACEOF
7419
7420 fi
7421
7422 echo "$as_me:$LINENO: checking for objdir" >&5
7423 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7424 if test "${libltdl_cv_objdir+set}" = set; then
7425   echo $ECHO_N "(cached) $ECHO_C" >&6
7426 else
7427   libltdl_cv_objdir="$objdir"
7428   if test -n "$objdir"; then
7429     :
7430   else
7431     rm -f .libs 2>/dev/null
7432     mkdir .libs 2>/dev/null
7433     if test -d .libs; then
7434       libltdl_cv_objdir=.libs
7435     else
7436       # MS-DOS does not allow filenames that begin with a dot.
7437       libltdl_cv_objdir=_libs
7438     fi
7439   rmdir .libs 2>/dev/null
7440   fi
7441
7442 fi
7443 echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7444 echo "${ECHO_T}$libltdl_cv_objdir" >&6
7445
7446 cat >>confdefs.h <<_ACEOF
7447 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
7448 _ACEOF
7449
7450
7451 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7452 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7453 if test "${lt_cv_path_NM+set}" = set; then
7454   echo $ECHO_N "(cached) $ECHO_C" >&6
7455 else
7456   if test -n "$NM"; then
7457   # Let the user override the test.
7458   lt_cv_path_NM="$NM"
7459 else
7460   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7461   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7462     IFS="$lt_save_ifs"
7463     test -z "$ac_dir" && ac_dir=.
7464     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7465     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7466       # Check to see if the nm accepts a BSD-compat flag.
7467       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7468       #   nm: unknown option "B" ignored
7469       # Tru64's nm complains that /dev/null is an invalid object file
7470       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7471       */dev/null* | *'Invalid file or object type'*)
7472         lt_cv_path_NM="$tmp_nm -B"
7473         break
7474         ;;
7475       *)
7476         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7477         */dev/null*)
7478           lt_cv_path_NM="$tmp_nm -p"
7479           break
7480           ;;
7481         *)
7482           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7483           continue # so that we can try to find one that supports BSD flags
7484           ;;
7485         esac
7486       esac
7487     fi
7488   done
7489   IFS="$lt_save_ifs"
7490   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7491 fi
7492 fi
7493 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7494 echo "${ECHO_T}$lt_cv_path_NM" >&6
7495 NM="$lt_cv_path_NM"
7496
7497
7498
7499
7500
7501 # Check for command to grab the raw symbol name followed by C symbol from nm.
7502 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7503 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7504 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7505   echo $ECHO_N "(cached) $ECHO_C" >&6
7506 else
7507
7508 # These are sane defaults that work on at least a few old systems.
7509 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7510
7511 # Character class describing NM global symbol codes.
7512 symcode='[BCDEGRST]'
7513
7514 # Regexp to match symbols that can be accessed directly from C.
7515 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7516
7517 # Transform the above into a raw symbol and a C symbol.
7518 symxfrm='\1 \2\3 \3'
7519
7520 # Transform an extracted symbol line into a proper C declaration
7521 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7522
7523 # Transform an extracted symbol line into symbol name and symbol address
7524 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'"
7525
7526 # Define system-specific variables.
7527 case $host_os in
7528 aix*)
7529   symcode='[BCDT]'
7530   ;;
7531 cygwin* | mingw* | pw32*)
7532   symcode='[ABCDGISTW]'
7533   ;;
7534 hpux*) # Its linker distinguishes data from code symbols
7535   if test "$host_cpu" = ia64; then
7536     symcode='[ABCDEGRST]'
7537   fi
7538   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7539   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'"
7540   ;;
7541 linux*)
7542   if test "$host_cpu" = ia64; then
7543     symcode='[ABCDGIRSTW]'
7544     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7545     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'"
7546   fi
7547   ;;
7548 irix* | nonstopux*)
7549   symcode='[BCDEGRST]'
7550   ;;
7551 osf*)
7552   symcode='[BCDEGQRST]'
7553   ;;
7554 solaris* | sysv5*)
7555   symcode='[BDRT]'
7556   ;;
7557 sysv4)
7558   symcode='[DFNSTU]'
7559   ;;
7560 esac
7561
7562 # Handle CRLF in mingw tool chain
7563 opt_cr=
7564 case $build_os in
7565 mingw*)
7566   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7567   ;;
7568 esac
7569
7570 # If we're using GNU nm, then use its standard symbol codes.
7571 case `$NM -V 2>&1` in
7572 *GNU* | *'with BFD'*)
7573   symcode='[ABCDGIRSTW]' ;;
7574 esac
7575
7576 # Try without a prefix undercore, then with it.
7577 for ac_symprfx in "" "_"; do
7578
7579   # Write the raw and C identifiers.
7580   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7581
7582   # Check to see that the pipe works correctly.
7583   pipe_works=no
7584
7585   rm -f conftest*
7586   cat > conftest.$ac_ext <<EOF
7587 #ifdef __cplusplus
7588 extern "C" {
7589 #endif
7590 char nm_test_var;
7591 void nm_test_func(){}
7592 #ifdef __cplusplus
7593 }
7594 #endif
7595 int main(){nm_test_var='a';nm_test_func();return(0);}
7596 EOF
7597
7598   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7599   (eval $ac_compile) 2>&5
7600   ac_status=$?
7601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602   (exit $ac_status); }; then
7603     # Now try to grab the symbols.
7604     nlist=conftest.nm
7605     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7606   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7607   ac_status=$?
7608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609   (exit $ac_status); } && test -s "$nlist"; then
7610       # Try sorting and uniquifying the output.
7611       if sort "$nlist" | uniq > "$nlist"T; then
7612         mv -f "$nlist"T "$nlist"
7613       else
7614         rm -f "$nlist"T
7615       fi
7616
7617       # Make sure that we snagged all the symbols we need.
7618       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7619         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7620           cat <<EOF > conftest.$ac_ext
7621 #ifdef __cplusplus
7622 extern "C" {
7623 #endif
7624
7625 EOF
7626           # Now generate the symbol file.
7627           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7628
7629           cat <<EOF >> conftest.$ac_ext
7630 #if defined (__STDC__) && __STDC__
7631 # define lt_ptr_t void *
7632 #else
7633 # define lt_ptr_t char *
7634 # define const
7635 #endif
7636
7637 /* The mapping between symbol names and symbols. */
7638 const struct {
7639   const char *name;
7640   lt_ptr_t address;
7641 }
7642 lt_preloaded_symbols[] =
7643 {
7644 EOF
7645           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7646           cat <<\EOF >> conftest.$ac_ext
7647   {0, (lt_ptr_t) 0}
7648 };
7649
7650 #ifdef __cplusplus
7651 }
7652 #endif
7653 EOF
7654           # Now try linking the two files.
7655           mv conftest.$ac_objext conftstm.$ac_objext
7656           lt_save_LIBS="$LIBS"
7657           lt_save_CFLAGS="$CFLAGS"
7658           LIBS="conftstm.$ac_objext"
7659           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7660           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7661   (eval $ac_link) 2>&5
7662   ac_status=$?
7663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7665             pipe_works=yes
7666           fi
7667           LIBS="$lt_save_LIBS"
7668           CFLAGS="$lt_save_CFLAGS"
7669         else
7670           echo "cannot find nm_test_func in $nlist" >&5
7671         fi
7672       else
7673         echo "cannot find nm_test_var in $nlist" >&5
7674       fi
7675     else
7676       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7677     fi
7678   else
7679     echo "$progname: failed program was:" >&5
7680     cat conftest.$ac_ext >&5
7681   fi
7682   rm -f conftest* conftst*
7683
7684   # Do not use the global_symbol_pipe unless it works.
7685   if test "$pipe_works" = yes; then
7686     break
7687   else
7688     lt_cv_sys_global_symbol_pipe=
7689   fi
7690 done
7691
7692 fi
7693
7694 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7695   lt_cv_sys_global_symbol_to_cdecl=
7696 fi
7697 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7698   echo "$as_me:$LINENO: result: failed" >&5
7699 echo "${ECHO_T}failed" >&6
7700 else
7701   echo "$as_me:$LINENO: result: ok" >&5
7702 echo "${ECHO_T}ok" >&6
7703 fi
7704
7705
7706 echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7707 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7708 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7709   echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711   if test -n "$lt_cv_sys_global_symbol_pipe"; then
7712     libltdl_cv_preloaded_symbols=yes
7713   else
7714     libltdl_cv_preloaded_symbols=no
7715   fi
7716
7717 fi
7718 echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7719 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7720 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7721
7722 cat >>confdefs.h <<\_ACEOF
7723 #define HAVE_PRELOADED_SYMBOLS 1
7724 _ACEOF
7725
7726 fi
7727
7728 LIBADD_DL=
7729
7730 ac_ext=c
7731 ac_cpp='$CPP $CPPFLAGS'
7732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7735
7736
7737 echo "$as_me:$LINENO: checking for shl_load" >&5
7738 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7739 if test "${ac_cv_func_shl_load+set}" = set; then
7740   echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742   cat >conftest.$ac_ext <<_ACEOF
7743 /* confdefs.h.  */
7744 _ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h.  */
7748 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7749    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7750 #define shl_load innocuous_shl_load
7751
7752 /* System header to define __stub macros and hopefully few prototypes,
7753     which can conflict with char shl_load (); below.
7754     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7755     <limits.h> exists even on freestanding compilers.  */
7756
7757 #ifdef __STDC__
7758 # include <limits.h>
7759 #else
7760 # include <assert.h>
7761 #endif
7762
7763 #undef shl_load
7764
7765 /* Override any gcc2 internal prototype to avoid an error.  */
7766 #ifdef __cplusplus
7767 extern "C"
7768 {
7769 #endif
7770 /* We use char because int might match the return type of a gcc2
7771    builtin and then its argument prototype would still apply.  */
7772 char shl_load ();
7773 /* The GNU C library defines this for functions which it implements
7774     to always fail with ENOSYS.  Some functions are actually named
7775     something starting with __ and the normal name is an alias.  */
7776 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7777 choke me
7778 #else
7779 char (*f) () = shl_load;
7780 #endif
7781 #ifdef __cplusplus
7782 }
7783 #endif
7784
7785 int
7786 main ()
7787 {
7788 return f != shl_load;
7789   ;
7790   return 0;
7791 }
7792 _ACEOF
7793 rm -f conftest.$ac_objext conftest$ac_exeext
7794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7795   (eval $ac_link) 2>conftest.er1
7796   ac_status=$?
7797   grep -v '^ *+' conftest.er1 >conftest.err
7798   rm -f conftest.er1
7799   cat conftest.err >&5
7800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801   (exit $ac_status); } &&
7802          { ac_try='test -z "$ac_c_werror_flag"
7803                          || test ! -s conftest.err'
7804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805   (eval $ac_try) 2>&5
7806   ac_status=$?
7807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808   (exit $ac_status); }; } &&
7809          { ac_try='test -s conftest$ac_exeext'
7810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811   (eval $ac_try) 2>&5
7812   ac_status=$?
7813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814   (exit $ac_status); }; }; then
7815   ac_cv_func_shl_load=yes
7816 else
7817   echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.$ac_ext >&5
7819
7820 ac_cv_func_shl_load=no
7821 fi
7822 rm -f conftest.err conftest.$ac_objext \
7823       conftest$ac_exeext conftest.$ac_ext
7824 fi
7825 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7826 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7827 if test $ac_cv_func_shl_load = yes; then
7828
7829 cat >>confdefs.h <<\_ACEOF
7830 #define HAVE_SHL_LOAD 1
7831 _ACEOF
7832
7833 else
7834   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7835 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7836 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7837   echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839   ac_check_lib_save_LIBS=$LIBS
7840 LIBS="-ldld  $LIBS"
7841 cat >conftest.$ac_ext <<_ACEOF
7842 /* confdefs.h.  */
7843 _ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h.  */
7847
7848 /* Override any gcc2 internal prototype to avoid an error.  */
7849 #ifdef __cplusplus
7850 extern "C"
7851 #endif
7852 /* We use char because int might match the return type of a gcc2
7853    builtin and then its argument prototype would still apply.  */
7854 char shl_load ();
7855 int
7856 main ()
7857 {
7858 shl_load ();
7859   ;
7860   return 0;
7861 }
7862 _ACEOF
7863 rm -f conftest.$ac_objext conftest$ac_exeext
7864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7865   (eval $ac_link) 2>conftest.er1
7866   ac_status=$?
7867   grep -v '^ *+' conftest.er1 >conftest.err
7868   rm -f conftest.er1
7869   cat conftest.err >&5
7870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871   (exit $ac_status); } &&
7872          { ac_try='test -z "$ac_c_werror_flag"
7873                          || test ! -s conftest.err'
7874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875   (eval $ac_try) 2>&5
7876   ac_status=$?
7877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878   (exit $ac_status); }; } &&
7879          { ac_try='test -s conftest$ac_exeext'
7880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881   (eval $ac_try) 2>&5
7882   ac_status=$?
7883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884   (exit $ac_status); }; }; then
7885   ac_cv_lib_dld_shl_load=yes
7886 else
7887   echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7889
7890 ac_cv_lib_dld_shl_load=no
7891 fi
7892 rm -f conftest.err conftest.$ac_objext \
7893       conftest$ac_exeext conftest.$ac_ext
7894 LIBS=$ac_check_lib_save_LIBS
7895 fi
7896 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7897 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7898 if test $ac_cv_lib_dld_shl_load = yes; then
7899
7900 cat >>confdefs.h <<\_ACEOF
7901 #define HAVE_SHL_LOAD 1
7902 _ACEOF
7903
7904         LIBADD_DL="$LIBADD_DL -ldld"
7905 else
7906   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7907 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7908 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7909   echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911   ac_check_lib_save_LIBS=$LIBS
7912 LIBS="-ldl  $LIBS"
7913 cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h.  */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h.  */
7919
7920 /* Override any gcc2 internal prototype to avoid an error.  */
7921 #ifdef __cplusplus
7922 extern "C"
7923 #endif
7924 /* We use char because int might match the return type of a gcc2
7925    builtin and then its argument prototype would still apply.  */
7926 char dlopen ();
7927 int
7928 main ()
7929 {
7930 dlopen ();
7931   ;
7932   return 0;
7933 }
7934 _ACEOF
7935 rm -f conftest.$ac_objext conftest$ac_exeext
7936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7937   (eval $ac_link) 2>conftest.er1
7938   ac_status=$?
7939   grep -v '^ *+' conftest.er1 >conftest.err
7940   rm -f conftest.er1
7941   cat conftest.err >&5
7942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943   (exit $ac_status); } &&
7944          { ac_try='test -z "$ac_c_werror_flag"
7945                          || test ! -s conftest.err'
7946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947   (eval $ac_try) 2>&5
7948   ac_status=$?
7949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950   (exit $ac_status); }; } &&
7951          { ac_try='test -s conftest$ac_exeext'
7952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953   (eval $ac_try) 2>&5
7954   ac_status=$?
7955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956   (exit $ac_status); }; }; then
7957   ac_cv_lib_dl_dlopen=yes
7958 else
7959   echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7961
7962 ac_cv_lib_dl_dlopen=no
7963 fi
7964 rm -f conftest.err conftest.$ac_objext \
7965       conftest$ac_exeext conftest.$ac_ext
7966 LIBS=$ac_check_lib_save_LIBS
7967 fi
7968 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7969 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7970 if test $ac_cv_lib_dl_dlopen = yes; then
7971
7972 cat >>confdefs.h <<\_ACEOF
7973 #define HAVE_LIBDL 1
7974 _ACEOF
7975
7976                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7977 else
7978   cat >conftest.$ac_ext <<_ACEOF
7979 /* confdefs.h.  */
7980 _ACEOF
7981 cat confdefs.h >>conftest.$ac_ext
7982 cat >>conftest.$ac_ext <<_ACEOF
7983 /* end confdefs.h.  */
7984 #if HAVE_DLFCN_H
7985 #  include <dlfcn.h>
7986 #endif
7987
7988 int
7989 main ()
7990 {
7991 dlopen(0, 0);
7992   ;
7993   return 0;
7994 }
7995 _ACEOF
7996 rm -f conftest.$ac_objext conftest$ac_exeext
7997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7998   (eval $ac_link) 2>conftest.er1
7999   ac_status=$?
8000   grep -v '^ *+' conftest.er1 >conftest.err
8001   rm -f conftest.er1
8002   cat conftest.err >&5
8003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004   (exit $ac_status); } &&
8005          { ac_try='test -z "$ac_c_werror_flag"
8006                          || test ! -s conftest.err'
8007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008   (eval $ac_try) 2>&5
8009   ac_status=$?
8010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011   (exit $ac_status); }; } &&
8012          { ac_try='test -s conftest$ac_exeext'
8013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014   (eval $ac_try) 2>&5
8015   ac_status=$?
8016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017   (exit $ac_status); }; }; then
8018
8019 cat >>confdefs.h <<\_ACEOF
8020 #define HAVE_LIBDL 1
8021 _ACEOF
8022  libltdl_cv_func_dlopen="yes"
8023 else
8024   echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8026
8027 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8028 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8029 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8030   echo $ECHO_N "(cached) $ECHO_C" >&6
8031 else
8032   ac_check_lib_save_LIBS=$LIBS
8033 LIBS="-lsvld  $LIBS"
8034 cat >conftest.$ac_ext <<_ACEOF
8035 /* confdefs.h.  */
8036 _ACEOF
8037 cat confdefs.h >>conftest.$ac_ext
8038 cat >>conftest.$ac_ext <<_ACEOF
8039 /* end confdefs.h.  */
8040
8041 /* Override any gcc2 internal prototype to avoid an error.  */
8042 #ifdef __cplusplus
8043 extern "C"
8044 #endif
8045 /* We use char because int might match the return type of a gcc2
8046    builtin and then its argument prototype would still apply.  */
8047 char dlopen ();
8048 int
8049 main ()
8050 {
8051 dlopen ();
8052   ;
8053   return 0;
8054 }
8055 _ACEOF
8056 rm -f conftest.$ac_objext conftest$ac_exeext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8058   (eval $ac_link) 2>conftest.er1
8059   ac_status=$?
8060   grep -v '^ *+' conftest.er1 >conftest.err
8061   rm -f conftest.er1
8062   cat conftest.err >&5
8063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064   (exit $ac_status); } &&
8065          { ac_try='test -z "$ac_c_werror_flag"
8066                          || test ! -s conftest.err'
8067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068   (eval $ac_try) 2>&5
8069   ac_status=$?
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); }; } &&
8072          { ac_try='test -s conftest$ac_exeext'
8073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074   (eval $ac_try) 2>&5
8075   ac_status=$?
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); }; }; then
8078   ac_cv_lib_svld_dlopen=yes
8079 else
8080   echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8082
8083 ac_cv_lib_svld_dlopen=no
8084 fi
8085 rm -f conftest.err conftest.$ac_objext \
8086       conftest$ac_exeext conftest.$ac_ext
8087 LIBS=$ac_check_lib_save_LIBS
8088 fi
8089 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8090 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8091 if test $ac_cv_lib_svld_dlopen = yes; then
8092
8093 cat >>confdefs.h <<\_ACEOF
8094 #define HAVE_LIBDL 1
8095 _ACEOF
8096
8097                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8098 else
8099   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8100 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8101 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8102   echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104   ac_check_lib_save_LIBS=$LIBS
8105 LIBS="-ldld  $LIBS"
8106 cat >conftest.$ac_ext <<_ACEOF
8107 /* confdefs.h.  */
8108 _ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h.  */
8112
8113 /* Override any gcc2 internal prototype to avoid an error.  */
8114 #ifdef __cplusplus
8115 extern "C"
8116 #endif
8117 /* We use char because int might match the return type of a gcc2
8118    builtin and then its argument prototype would still apply.  */
8119 char dld_link ();
8120 int
8121 main ()
8122 {
8123 dld_link ();
8124   ;
8125   return 0;
8126 }
8127 _ACEOF
8128 rm -f conftest.$ac_objext conftest$ac_exeext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8130   (eval $ac_link) 2>conftest.er1
8131   ac_status=$?
8132   grep -v '^ *+' conftest.er1 >conftest.err
8133   rm -f conftest.er1
8134   cat conftest.err >&5
8135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136   (exit $ac_status); } &&
8137          { ac_try='test -z "$ac_c_werror_flag"
8138                          || test ! -s conftest.err'
8139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140   (eval $ac_try) 2>&5
8141   ac_status=$?
8142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143   (exit $ac_status); }; } &&
8144          { ac_try='test -s conftest$ac_exeext'
8145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146   (eval $ac_try) 2>&5
8147   ac_status=$?
8148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149   (exit $ac_status); }; }; then
8150   ac_cv_lib_dld_dld_link=yes
8151 else
8152   echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8154
8155 ac_cv_lib_dld_dld_link=no
8156 fi
8157 rm -f conftest.err conftest.$ac_objext \
8158       conftest$ac_exeext conftest.$ac_ext
8159 LIBS=$ac_check_lib_save_LIBS
8160 fi
8161 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8162 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8163 if test $ac_cv_lib_dld_dld_link = yes; then
8164
8165 cat >>confdefs.h <<\_ACEOF
8166 #define HAVE_DLD 1
8167 _ACEOF
8168
8169                 LIBADD_DL="$LIBADD_DL -ldld"
8170 else
8171   echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8172 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8173 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8174   echo $ECHO_N "(cached) $ECHO_C" >&6
8175 else
8176   cat >conftest.$ac_ext <<_ACEOF
8177 /* confdefs.h.  */
8178 _ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h.  */
8182 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8183    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8184 #define _dyld_func_lookup innocuous__dyld_func_lookup
8185
8186 /* System header to define __stub macros and hopefully few prototypes,
8187     which can conflict with char _dyld_func_lookup (); below.
8188     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8189     <limits.h> exists even on freestanding compilers.  */
8190
8191 #ifdef __STDC__
8192 # include <limits.h>
8193 #else
8194 # include <assert.h>
8195 #endif
8196
8197 #undef _dyld_func_lookup
8198
8199 /* Override any gcc2 internal prototype to avoid an error.  */
8200 #ifdef __cplusplus
8201 extern "C"
8202 {
8203 #endif
8204 /* We use char because int might match the return type of a gcc2
8205    builtin and then its argument prototype would still apply.  */
8206 char _dyld_func_lookup ();
8207 /* The GNU C library defines this for functions which it implements
8208     to always fail with ENOSYS.  Some functions are actually named
8209     something starting with __ and the normal name is an alias.  */
8210 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8211 choke me
8212 #else
8213 char (*f) () = _dyld_func_lookup;
8214 #endif
8215 #ifdef __cplusplus
8216 }
8217 #endif
8218
8219 int
8220 main ()
8221 {
8222 return f != _dyld_func_lookup;
8223   ;
8224   return 0;
8225 }
8226 _ACEOF
8227 rm -f conftest.$ac_objext conftest$ac_exeext
8228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8229   (eval $ac_link) 2>conftest.er1
8230   ac_status=$?
8231   grep -v '^ *+' conftest.er1 >conftest.err
8232   rm -f conftest.er1
8233   cat conftest.err >&5
8234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235   (exit $ac_status); } &&
8236          { ac_try='test -z "$ac_c_werror_flag"
8237                          || test ! -s conftest.err'
8238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239   (eval $ac_try) 2>&5
8240   ac_status=$?
8241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); }; } &&
8243          { ac_try='test -s conftest$ac_exeext'
8244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245   (eval $ac_try) 2>&5
8246   ac_status=$?
8247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248   (exit $ac_status); }; }; then
8249   ac_cv_func__dyld_func_lookup=yes
8250 else
8251   echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8253
8254 ac_cv_func__dyld_func_lookup=no
8255 fi
8256 rm -f conftest.err conftest.$ac_objext \
8257       conftest$ac_exeext conftest.$ac_ext
8258 fi
8259 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8260 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8261 if test $ac_cv_func__dyld_func_lookup = yes; then
8262
8263 cat >>confdefs.h <<\_ACEOF
8264 #define HAVE_DYLD 1
8265 _ACEOF
8266
8267 fi
8268
8269
8270 fi
8271
8272
8273 fi
8274
8275
8276 fi
8277 rm -f conftest.err conftest.$ac_objext \
8278       conftest$ac_exeext conftest.$ac_ext
8279
8280 fi
8281
8282
8283 fi
8284
8285
8286 fi
8287
8288
8289 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8290 then
8291   lt_save_LIBS="$LIBS"
8292   LIBS="$LIBS $LIBADD_DL"
8293
8294 for ac_func in dlerror
8295 do
8296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8297 echo "$as_me:$LINENO: checking for $ac_func" >&5
8298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8299 if eval "test \"\${$as_ac_var+set}\" = set"; then
8300   echo $ECHO_N "(cached) $ECHO_C" >&6
8301 else
8302   cat >conftest.$ac_ext <<_ACEOF
8303 /* confdefs.h.  */
8304 _ACEOF
8305 cat confdefs.h >>conftest.$ac_ext
8306 cat >>conftest.$ac_ext <<_ACEOF
8307 /* end confdefs.h.  */
8308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8309    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8310 #define $ac_func innocuous_$ac_func
8311
8312 /* System header to define __stub macros and hopefully few prototypes,
8313     which can conflict with char $ac_func (); below.
8314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8315     <limits.h> exists even on freestanding compilers.  */
8316
8317 #ifdef __STDC__
8318 # include <limits.h>
8319 #else
8320 # include <assert.h>
8321 #endif
8322
8323 #undef $ac_func
8324
8325 /* Override any gcc2 internal prototype to avoid an error.  */
8326 #ifdef __cplusplus
8327 extern "C"
8328 {
8329 #endif
8330 /* We use char because int might match the return type of a gcc2
8331    builtin and then its argument prototype would still apply.  */
8332 char $ac_func ();
8333 /* The GNU C library defines this for functions which it implements
8334     to always fail with ENOSYS.  Some functions are actually named
8335     something starting with __ and the normal name is an alias.  */
8336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8337 choke me
8338 #else
8339 char (*f) () = $ac_func;
8340 #endif
8341 #ifdef __cplusplus
8342 }
8343 #endif
8344
8345 int
8346 main ()
8347 {
8348 return f != $ac_func;
8349   ;
8350   return 0;
8351 }
8352 _ACEOF
8353 rm -f conftest.$ac_objext conftest$ac_exeext
8354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8355   (eval $ac_link) 2>conftest.er1
8356   ac_status=$?
8357   grep -v '^ *+' conftest.er1 >conftest.err
8358   rm -f conftest.er1
8359   cat conftest.err >&5
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); } &&
8362          { ac_try='test -z "$ac_c_werror_flag"
8363                          || test ! -s conftest.err'
8364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365   (eval $ac_try) 2>&5
8366   ac_status=$?
8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   (exit $ac_status); }; } &&
8369          { ac_try='test -s conftest$ac_exeext'
8370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8371   (eval $ac_try) 2>&5
8372   ac_status=$?
8373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374   (exit $ac_status); }; }; then
8375   eval "$as_ac_var=yes"
8376 else
8377   echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8379
8380 eval "$as_ac_var=no"
8381 fi
8382 rm -f conftest.err conftest.$ac_objext \
8383       conftest$ac_exeext conftest.$ac_ext
8384 fi
8385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8387 if test `eval echo '${'$as_ac_var'}'` = yes; then
8388   cat >>confdefs.h <<_ACEOF
8389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8390 _ACEOF
8391
8392 fi
8393 done
8394
8395   LIBS="$lt_save_LIBS"
8396 fi
8397 ac_ext=c
8398 ac_cpp='$CPP $CPPFLAGS'
8399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8402
8403
8404
8405 echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8406 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8407 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8408   echo $ECHO_N "(cached) $ECHO_C" >&6
8409 else
8410   ac_cv_sys_symbol_underscore=no
8411   cat > conftest.$ac_ext <<EOF
8412 void nm_test_func(){}
8413 int main(){nm_test_func;return 0;}
8414 EOF
8415   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8416   (eval $ac_compile) 2>&5
8417   ac_status=$?
8418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419   (exit $ac_status); }; then
8420     # Now try to grab the symbols.
8421     ac_nlist=conftest.nm
8422     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8423   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8424   ac_status=$?
8425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426   (exit $ac_status); } && test -s "$ac_nlist"; then
8427       # See whether the symbols have a leading underscore.
8428       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8429         ac_cv_sys_symbol_underscore=yes
8430       else
8431         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8432           :
8433         else
8434           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8435         fi
8436       fi
8437     else
8438       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8439     fi
8440   else
8441     echo "configure: failed program was:" >&5
8442     cat conftest.c >&5
8443   fi
8444   rm -rf conftest*
8445
8446 fi
8447 echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8448 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8449
8450
8451 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8452   if test x"$libltdl_cv_func_dlopen" = xyes ||
8453      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8454         echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8455 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8456 if test "${libltdl_cv_need_uscore+set}" = set; then
8457   echo $ECHO_N "(cached) $ECHO_C" >&6
8458 else
8459   libltdl_cv_need_uscore=unknown
8460           save_LIBS="$LIBS"
8461           LIBS="$LIBS $LIBADD_DL"
8462           if test "$cross_compiling" = yes; then :
8463   libltdl_cv_need_uscore=cross
8464 else
8465   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8466   lt_status=$lt_dlunknown
8467   cat > conftest.$ac_ext <<EOF
8468 #line 8468 "configure"
8469 #include "confdefs.h"
8470
8471 #if HAVE_DLFCN_H
8472 #include <dlfcn.h>
8473 #endif
8474
8475 #include <stdio.h>
8476
8477 #ifdef RTLD_GLOBAL
8478 #  define LT_DLGLOBAL           RTLD_GLOBAL
8479 #else
8480 #  ifdef DL_GLOBAL
8481 #    define LT_DLGLOBAL         DL_GLOBAL
8482 #  else
8483 #    define LT_DLGLOBAL         0
8484 #  endif
8485 #endif
8486
8487 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8488    find out it does not work in some platform. */
8489 #ifndef LT_DLLAZY_OR_NOW
8490 #  ifdef RTLD_LAZY
8491 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8492 #  else
8493 #    ifdef DL_LAZY
8494 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8495 #    else
8496 #      ifdef RTLD_NOW
8497 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8498 #      else
8499 #        ifdef DL_NOW
8500 #          define LT_DLLAZY_OR_NOW      DL_NOW
8501 #        else
8502 #          define LT_DLLAZY_OR_NOW      0
8503 #        endif
8504 #      endif
8505 #    endif
8506 #  endif
8507 #endif
8508
8509 #ifdef __cplusplus
8510 extern "C" void exit (int);
8511 #endif
8512
8513 void fnord() { int i=42;}
8514 int main ()
8515 {
8516   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8517   int status = $lt_dlunknown;
8518
8519   if (self)
8520     {
8521       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8522       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8523       /* dlclose (self); */
8524     }
8525
8526     exit (status);
8527 }
8528 EOF
8529   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8530   (eval $ac_link) 2>&5
8531   ac_status=$?
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8534     (./conftest; exit; ) 2>/dev/null
8535     lt_status=$?
8536     case x$lt_status in
8537       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8538       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8539       x$lt_unknown|x*)  ;;
8540     esac
8541   else :
8542     # compilation failed
8543
8544   fi
8545 fi
8546 rm -fr conftest*
8547
8548           LIBS="$save_LIBS"
8549
8550 fi
8551 echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8552 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8553   fi
8554 fi
8555
8556 if test x"$libltdl_cv_need_uscore" = xyes; then
8557
8558 cat >>confdefs.h <<\_ACEOF
8559 #define NEED_USCORE 1
8560 _ACEOF
8561
8562 fi
8563
8564
8565 echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8566 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8567 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8568   echo $ECHO_N "(cached) $ECHO_C" >&6
8569 else
8570   # PORTME does your system automatically load deplibs for dlopen?
8571   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8572   # For now, we just catch OSes we know something about -- in the
8573   # future, we'll try test this programmatically.
8574   libltdl_cv_sys_dlopen_deplibs=unknown
8575   case "$host_os" in
8576   aix3*|aix4.1.*|aix4.2.*)
8577     # Unknown whether this is true for these versions of AIX, but
8578     # we want this `case' here to explicitly catch those versions.
8579     libltdl_cv_sys_dlopen_deplibs=unknown
8580     ;;
8581   aix[45]*)
8582     libltdl_cv_sys_dlopen_deplibs=yes
8583     ;;
8584   darwin*)
8585     # Assuming the user has installed a libdl from somewhere, this is true
8586     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8587     libltdl_cv_sys_dlopen_deplibs=yes
8588     ;;
8589   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8590     # GNU and its variants, using gnu ld.so (Glibc)
8591     libltdl_cv_sys_dlopen_deplibs=yes
8592     ;;
8593   hpux10*|hpux11*)
8594     libltdl_cv_sys_dlopen_deplibs=yes
8595     ;;
8596   irix[12345]*|irix6.[01]*)
8597     # Catch all versions of IRIX before 6.2, and indicate that we don't
8598     # know how it worked for any of those versions.
8599     libltdl_cv_sys_dlopen_deplibs=unknown
8600     ;;
8601   irix*)
8602     # The case above catches anything before 6.2, and it's known that
8603     # at 6.2 and later dlopen does load deplibs.
8604     libltdl_cv_sys_dlopen_deplibs=yes
8605     ;;
8606   netbsd*)
8607     libltdl_cv_sys_dlopen_deplibs=yes
8608     ;;
8609   openbsd*)
8610     libltdl_cv_sys_dlopen_deplibs=yes
8611     ;;
8612   osf[1234]*)
8613     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8614     # it did *not* use an RPATH in a shared library to find objects the
8615     # library depends on, so we explictly say `no'.
8616     libltdl_cv_sys_dlopen_deplibs=no
8617     ;;
8618   osf5.0|osf5.0a|osf5.1)
8619     # dlopen *does* load deplibs and with the right loader patch applied
8620     # it even uses RPATH in a shared library to search for shared objects
8621     # that the library depends on, but there's no easy way to know if that
8622     # patch is installed.  Since this is the case, all we can really
8623     # say is unknown -- it depends on the patch being installed.  If
8624     # it is, this changes to `yes'.  Without it, it would be `no'.
8625     libltdl_cv_sys_dlopen_deplibs=unknown
8626     ;;
8627   osf*)
8628     # the two cases above should catch all versions of osf <= 5.1.  Read
8629     # the comments above for what we know about them.
8630     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8631     # is used to find them so we can finally say `yes'.
8632     libltdl_cv_sys_dlopen_deplibs=yes
8633     ;;
8634   solaris*)
8635     libltdl_cv_sys_dlopen_deplibs=yes
8636     ;;
8637   esac
8638
8639 fi
8640 echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8641 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8642 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8643
8644 cat >>confdefs.h <<\_ACEOF
8645 #define LTDL_DLOPEN_DEPLIBS 1
8646 _ACEOF
8647
8648 fi
8649
8650
8651 for ac_header in argz.h
8652 do
8653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8655   echo "$as_me:$LINENO: checking for $ac_header" >&5
8656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8658   echo $ECHO_N "(cached) $ECHO_C" >&6
8659 fi
8660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8662 else
8663   # Is the header compilable?
8664 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8666 cat >conftest.$ac_ext <<_ACEOF
8667 /* confdefs.h.  */
8668 _ACEOF
8669 cat confdefs.h >>conftest.$ac_ext
8670 cat >>conftest.$ac_ext <<_ACEOF
8671 /* end confdefs.h.  */
8672 $ac_includes_default
8673 #include <$ac_header>
8674 _ACEOF
8675 rm -f conftest.$ac_objext
8676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8677   (eval $ac_compile) 2>conftest.er1
8678   ac_status=$?
8679   grep -v '^ *+' conftest.er1 >conftest.err
8680   rm -f conftest.er1
8681   cat conftest.err >&5
8682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683   (exit $ac_status); } &&
8684          { ac_try='test -z "$ac_c_werror_flag"
8685                          || test ! -s conftest.err'
8686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687   (eval $ac_try) 2>&5
8688   ac_status=$?
8689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690   (exit $ac_status); }; } &&
8691          { ac_try='test -s conftest.$ac_objext'
8692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693   (eval $ac_try) 2>&5
8694   ac_status=$?
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); }; }; then
8697   ac_header_compiler=yes
8698 else
8699   echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8701
8702 ac_header_compiler=no
8703 fi
8704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8706 echo "${ECHO_T}$ac_header_compiler" >&6
8707
8708 # Is the header present?
8709 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8711 cat >conftest.$ac_ext <<_ACEOF
8712 /* confdefs.h.  */
8713 _ACEOF
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h.  */
8717 #include <$ac_header>
8718 _ACEOF
8719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8720   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8721   ac_status=$?
8722   grep -v '^ *+' conftest.er1 >conftest.err
8723   rm -f conftest.er1
8724   cat conftest.err >&5
8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); } >/dev/null; then
8727   if test -s conftest.err; then
8728     ac_cpp_err=$ac_c_preproc_warn_flag
8729     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8730   else
8731     ac_cpp_err=
8732   fi
8733 else
8734   ac_cpp_err=yes
8735 fi
8736 if test -z "$ac_cpp_err"; then
8737   ac_header_preproc=yes
8738 else
8739   echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8741
8742   ac_header_preproc=no
8743 fi
8744 rm -f conftest.err conftest.$ac_ext
8745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8746 echo "${ECHO_T}$ac_header_preproc" >&6
8747
8748 # So?  What about this header?
8749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8750   yes:no: )
8751     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8753     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8755     ac_header_preproc=yes
8756     ;;
8757   no:yes:* )
8758     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8760     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8761 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8762     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8764     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8765 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8766     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8768     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8770     (
8771       cat <<\_ASBOX
8772 ## ----------------------------------- ##
8773 ## Report this to llvmbugs@cs.uiuc.edu ##
8774 ## ----------------------------------- ##
8775 _ASBOX
8776     ) |
8777       sed "s/^/$as_me: WARNING:     /" >&2
8778     ;;
8779 esac
8780 echo "$as_me:$LINENO: checking for $ac_header" >&5
8781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8783   echo $ECHO_N "(cached) $ECHO_C" >&6
8784 else
8785   eval "$as_ac_Header=\$ac_header_preproc"
8786 fi
8787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8789
8790 fi
8791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8792   cat >>confdefs.h <<_ACEOF
8793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8794 _ACEOF
8795
8796 fi
8797
8798 done
8799
8800
8801 echo "$as_me:$LINENO: checking for error_t" >&5
8802 echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8803 if test "${ac_cv_type_error_t+set}" = set; then
8804   echo $ECHO_N "(cached) $ECHO_C" >&6
8805 else
8806   cat >conftest.$ac_ext <<_ACEOF
8807 /* confdefs.h.  */
8808 _ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h.  */
8812 #if HAVE_ARGZ_H
8813 #  include <argz.h>
8814 #endif
8815
8816 int
8817 main ()
8818 {
8819 if ((error_t *) 0)
8820   return 0;
8821 if (sizeof (error_t))
8822   return 0;
8823   ;
8824   return 0;
8825 }
8826 _ACEOF
8827 rm -f conftest.$ac_objext
8828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8829   (eval $ac_compile) 2>conftest.er1
8830   ac_status=$?
8831   grep -v '^ *+' conftest.er1 >conftest.err
8832   rm -f conftest.er1
8833   cat conftest.err >&5
8834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835   (exit $ac_status); } &&
8836          { ac_try='test -z "$ac_c_werror_flag"
8837                          || test ! -s conftest.err'
8838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839   (eval $ac_try) 2>&5
8840   ac_status=$?
8841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842   (exit $ac_status); }; } &&
8843          { ac_try='test -s conftest.$ac_objext'
8844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845   (eval $ac_try) 2>&5
8846   ac_status=$?
8847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848   (exit $ac_status); }; }; then
8849   ac_cv_type_error_t=yes
8850 else
8851   echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8853
8854 ac_cv_type_error_t=no
8855 fi
8856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8857 fi
8858 echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8859 echo "${ECHO_T}$ac_cv_type_error_t" >&6
8860 if test $ac_cv_type_error_t = yes; then
8861
8862 cat >>confdefs.h <<_ACEOF
8863 #define HAVE_ERROR_T 1
8864 _ACEOF
8865
8866
8867 else
8868
8869 cat >>confdefs.h <<\_ACEOF
8870 #define error_t int
8871 _ACEOF
8872
8873 fi
8874
8875
8876
8877
8878
8879
8880
8881 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8882 do
8883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8884 echo "$as_me:$LINENO: checking for $ac_func" >&5
8885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8886 if eval "test \"\${$as_ac_var+set}\" = set"; then
8887   echo $ECHO_N "(cached) $ECHO_C" >&6
8888 else
8889   cat >conftest.$ac_ext <<_ACEOF
8890 /* confdefs.h.  */
8891 _ACEOF
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h.  */
8895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8896    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8897 #define $ac_func innocuous_$ac_func
8898
8899 /* System header to define __stub macros and hopefully few prototypes,
8900     which can conflict with char $ac_func (); below.
8901     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8902     <limits.h> exists even on freestanding compilers.  */
8903
8904 #ifdef __STDC__
8905 # include <limits.h>
8906 #else
8907 # include <assert.h>
8908 #endif
8909
8910 #undef $ac_func
8911
8912 /* Override any gcc2 internal prototype to avoid an error.  */
8913 #ifdef __cplusplus
8914 extern "C"
8915 {
8916 #endif
8917 /* We use char because int might match the return type of a gcc2
8918    builtin and then its argument prototype would still apply.  */
8919 char $ac_func ();
8920 /* The GNU C library defines this for functions which it implements
8921     to always fail with ENOSYS.  Some functions are actually named
8922     something starting with __ and the normal name is an alias.  */
8923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8924 choke me
8925 #else
8926 char (*f) () = $ac_func;
8927 #endif
8928 #ifdef __cplusplus
8929 }
8930 #endif
8931
8932 int
8933 main ()
8934 {
8935 return f != $ac_func;
8936   ;
8937   return 0;
8938 }
8939 _ACEOF
8940 rm -f conftest.$ac_objext conftest$ac_exeext
8941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942   (eval $ac_link) 2>conftest.er1
8943   ac_status=$?
8944   grep -v '^ *+' conftest.er1 >conftest.err
8945   rm -f conftest.er1
8946   cat conftest.err >&5
8947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948   (exit $ac_status); } &&
8949          { ac_try='test -z "$ac_c_werror_flag"
8950                          || test ! -s conftest.err'
8951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952   (eval $ac_try) 2>&5
8953   ac_status=$?
8954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955   (exit $ac_status); }; } &&
8956          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8962   eval "$as_ac_var=yes"
8963 else
8964   echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8966
8967 eval "$as_ac_var=no"
8968 fi
8969 rm -f conftest.err conftest.$ac_objext \
8970       conftest$ac_exeext conftest.$ac_ext
8971 fi
8972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8973 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8974 if test `eval echo '${'$as_ac_var'}'` = yes; then
8975   cat >>confdefs.h <<_ACEOF
8976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8977 _ACEOF
8978
8979 fi
8980 done
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
9010                   stdio.h unistd.h
9011 do
9012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9014   echo "$as_me:$LINENO: checking for $ac_header" >&5
9015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9017   echo $ECHO_N "(cached) $ECHO_C" >&6
9018 fi
9019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9021 else
9022   # Is the header compilable?
9023 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9025 cat >conftest.$ac_ext <<_ACEOF
9026 /* confdefs.h.  */
9027 _ACEOF
9028 cat confdefs.h >>conftest.$ac_ext
9029 cat >>conftest.$ac_ext <<_ACEOF
9030 /* end confdefs.h.  */
9031 $ac_includes_default
9032 #include <$ac_header>
9033 _ACEOF
9034 rm -f conftest.$ac_objext
9035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9036   (eval $ac_compile) 2>conftest.er1
9037   ac_status=$?
9038   grep -v '^ *+' conftest.er1 >conftest.err
9039   rm -f conftest.er1
9040   cat conftest.err >&5
9041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042   (exit $ac_status); } &&
9043          { ac_try='test -z "$ac_c_werror_flag"
9044                          || test ! -s conftest.err'
9045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046   (eval $ac_try) 2>&5
9047   ac_status=$?
9048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049   (exit $ac_status); }; } &&
9050          { ac_try='test -s conftest.$ac_objext'
9051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052   (eval $ac_try) 2>&5
9053   ac_status=$?
9054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055   (exit $ac_status); }; }; then
9056   ac_header_compiler=yes
9057 else
9058   echo "$as_me: failed program was:" >&5
9059 sed 's/^/| /' conftest.$ac_ext >&5
9060
9061 ac_header_compiler=no
9062 fi
9063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9065 echo "${ECHO_T}$ac_header_compiler" >&6
9066
9067 # Is the header present?
9068 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9070 cat >conftest.$ac_ext <<_ACEOF
9071 /* confdefs.h.  */
9072 _ACEOF
9073 cat confdefs.h >>conftest.$ac_ext
9074 cat >>conftest.$ac_ext <<_ACEOF
9075 /* end confdefs.h.  */
9076 #include <$ac_header>
9077 _ACEOF
9078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9079   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9080   ac_status=$?
9081   grep -v '^ *+' conftest.er1 >conftest.err
9082   rm -f conftest.er1
9083   cat conftest.err >&5
9084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085   (exit $ac_status); } >/dev/null; then
9086   if test -s conftest.err; then
9087     ac_cpp_err=$ac_c_preproc_warn_flag
9088     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9089   else
9090     ac_cpp_err=
9091   fi
9092 else
9093   ac_cpp_err=yes
9094 fi
9095 if test -z "$ac_cpp_err"; then
9096   ac_header_preproc=yes
9097 else
9098   echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9100
9101   ac_header_preproc=no
9102 fi
9103 rm -f conftest.err conftest.$ac_ext
9104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9105 echo "${ECHO_T}$ac_header_preproc" >&6
9106
9107 # So?  What about this header?
9108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9109   yes:no: )
9110     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9112     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9114     ac_header_preproc=yes
9115     ;;
9116   no:yes:* )
9117     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9119     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9120 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9121     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9123     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9124 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9125     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9127     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9129     (
9130       cat <<\_ASBOX
9131 ## ----------------------------------- ##
9132 ## Report this to llvmbugs@cs.uiuc.edu ##
9133 ## ----------------------------------- ##
9134 _ASBOX
9135     ) |
9136       sed "s/^/$as_me: WARNING:     /" >&2
9137     ;;
9138 esac
9139 echo "$as_me:$LINENO: checking for $ac_header" >&5
9140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9142   echo $ECHO_N "(cached) $ECHO_C" >&6
9143 else
9144   eval "$as_ac_Header=\$ac_header_preproc"
9145 fi
9146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9148
9149 fi
9150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9151   cat >>confdefs.h <<_ACEOF
9152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9153 _ACEOF
9154
9155 fi
9156
9157 done
9158
9159
9160
9161
9162
9163 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9164 do
9165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9167   echo "$as_me:$LINENO: checking for $ac_header" >&5
9168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9170   echo $ECHO_N "(cached) $ECHO_C" >&6
9171 fi
9172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9174 else
9175   # Is the header compilable?
9176 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9177 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9178 cat >conftest.$ac_ext <<_ACEOF
9179 /* confdefs.h.  */
9180 _ACEOF
9181 cat confdefs.h >>conftest.$ac_ext
9182 cat >>conftest.$ac_ext <<_ACEOF
9183 /* end confdefs.h.  */
9184 $ac_includes_default
9185 #include <$ac_header>
9186 _ACEOF
9187 rm -f conftest.$ac_objext
9188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9189   (eval $ac_compile) 2>conftest.er1
9190   ac_status=$?
9191   grep -v '^ *+' conftest.er1 >conftest.err
9192   rm -f conftest.er1
9193   cat conftest.err >&5
9194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195   (exit $ac_status); } &&
9196          { ac_try='test -z "$ac_c_werror_flag"
9197                          || test ! -s conftest.err'
9198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199   (eval $ac_try) 2>&5
9200   ac_status=$?
9201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202   (exit $ac_status); }; } &&
9203          { ac_try='test -s conftest.$ac_objext'
9204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205   (eval $ac_try) 2>&5
9206   ac_status=$?
9207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208   (exit $ac_status); }; }; then
9209   ac_header_compiler=yes
9210 else
9211   echo "$as_me: failed program was:" >&5
9212 sed 's/^/| /' conftest.$ac_ext >&5
9213
9214 ac_header_compiler=no
9215 fi
9216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9217 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9218 echo "${ECHO_T}$ac_header_compiler" >&6
9219
9220 # Is the header present?
9221 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9223 cat >conftest.$ac_ext <<_ACEOF
9224 /* confdefs.h.  */
9225 _ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h.  */
9229 #include <$ac_header>
9230 _ACEOF
9231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9232   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9233   ac_status=$?
9234   grep -v '^ *+' conftest.er1 >conftest.err
9235   rm -f conftest.er1
9236   cat conftest.err >&5
9237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238   (exit $ac_status); } >/dev/null; then
9239   if test -s conftest.err; then
9240     ac_cpp_err=$ac_c_preproc_warn_flag
9241     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9242   else
9243     ac_cpp_err=
9244   fi
9245 else
9246   ac_cpp_err=yes
9247 fi
9248 if test -z "$ac_cpp_err"; then
9249   ac_header_preproc=yes
9250 else
9251   echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9253
9254   ac_header_preproc=no
9255 fi
9256 rm -f conftest.err conftest.$ac_ext
9257 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9258 echo "${ECHO_T}$ac_header_preproc" >&6
9259
9260 # So?  What about this header?
9261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9262   yes:no: )
9263     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9264 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9266 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9267     ac_header_preproc=yes
9268     ;;
9269   no:yes:* )
9270     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9272     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9273 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9274     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9275 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9276     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9277 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9280     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9281 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9282     (
9283       cat <<\_ASBOX
9284 ## ----------------------------------- ##
9285 ## Report this to llvmbugs@cs.uiuc.edu ##
9286 ## ----------------------------------- ##
9287 _ASBOX
9288     ) |
9289       sed "s/^/$as_me: WARNING:     /" >&2
9290     ;;
9291 esac
9292 echo "$as_me:$LINENO: checking for $ac_header" >&5
9293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9295   echo $ECHO_N "(cached) $ECHO_C" >&6
9296 else
9297   eval "$as_ac_Header=\$ac_header_preproc"
9298 fi
9299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9301
9302 fi
9303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9304   cat >>confdefs.h <<_ACEOF
9305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9306 _ACEOF
9307
9308 fi
9309
9310 done
9311
9312
9313
9314 for ac_header in string.h strings.h
9315 do
9316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9318   echo "$as_me:$LINENO: checking for $ac_header" >&5
9319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9321   echo $ECHO_N "(cached) $ECHO_C" >&6
9322 fi
9323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9325 else
9326   # Is the header compilable?
9327 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9329 cat >conftest.$ac_ext <<_ACEOF
9330 /* confdefs.h.  */
9331 _ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h.  */
9335 $ac_includes_default
9336 #include <$ac_header>
9337 _ACEOF
9338 rm -f conftest.$ac_objext
9339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9340   (eval $ac_compile) 2>conftest.er1
9341   ac_status=$?
9342   grep -v '^ *+' conftest.er1 >conftest.err
9343   rm -f conftest.er1
9344   cat conftest.err >&5
9345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346   (exit $ac_status); } &&
9347          { ac_try='test -z "$ac_c_werror_flag"
9348                          || test ! -s conftest.err'
9349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350   (eval $ac_try) 2>&5
9351   ac_status=$?
9352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353   (exit $ac_status); }; } &&
9354          { ac_try='test -s conftest.$ac_objext'
9355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356   (eval $ac_try) 2>&5
9357   ac_status=$?
9358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359   (exit $ac_status); }; }; then
9360   ac_header_compiler=yes
9361 else
9362   echo "$as_me: failed program was:" >&5
9363 sed 's/^/| /' conftest.$ac_ext >&5
9364
9365 ac_header_compiler=no
9366 fi
9367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9368 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9369 echo "${ECHO_T}$ac_header_compiler" >&6
9370
9371 # Is the header present?
9372 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9374 cat >conftest.$ac_ext <<_ACEOF
9375 /* confdefs.h.  */
9376 _ACEOF
9377 cat confdefs.h >>conftest.$ac_ext
9378 cat >>conftest.$ac_ext <<_ACEOF
9379 /* end confdefs.h.  */
9380 #include <$ac_header>
9381 _ACEOF
9382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9383   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9384   ac_status=$?
9385   grep -v '^ *+' conftest.er1 >conftest.err
9386   rm -f conftest.er1
9387   cat conftest.err >&5
9388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389   (exit $ac_status); } >/dev/null; then
9390   if test -s conftest.err; then
9391     ac_cpp_err=$ac_c_preproc_warn_flag
9392     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9393   else
9394     ac_cpp_err=
9395   fi
9396 else
9397   ac_cpp_err=yes
9398 fi
9399 if test -z "$ac_cpp_err"; then
9400   ac_header_preproc=yes
9401 else
9402   echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9404
9405   ac_header_preproc=no
9406 fi
9407 rm -f conftest.err conftest.$ac_ext
9408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9409 echo "${ECHO_T}$ac_header_preproc" >&6
9410
9411 # So?  What about this header?
9412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9413   yes:no: )
9414     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9418     ac_header_preproc=yes
9419     ;;
9420   no:yes:* )
9421     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9423     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9424 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9425     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9427     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9428 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9431     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9433     (
9434       cat <<\_ASBOX
9435 ## ----------------------------------- ##
9436 ## Report this to llvmbugs@cs.uiuc.edu ##
9437 ## ----------------------------------- ##
9438 _ASBOX
9439     ) |
9440       sed "s/^/$as_me: WARNING:     /" >&2
9441     ;;
9442 esac
9443 echo "$as_me:$LINENO: checking for $ac_header" >&5
9444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9446   echo $ECHO_N "(cached) $ECHO_C" >&6
9447 else
9448   eval "$as_ac_Header=\$ac_header_preproc"
9449 fi
9450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9452
9453 fi
9454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9455   cat >>confdefs.h <<_ACEOF
9456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9457 _ACEOF
9458  break
9459 fi
9460
9461 done
9462
9463
9464
9465
9466 for ac_func in strchr index
9467 do
9468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9469 echo "$as_me:$LINENO: checking for $ac_func" >&5
9470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9471 if eval "test \"\${$as_ac_var+set}\" = set"; then
9472   echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9474   cat >conftest.$ac_ext <<_ACEOF
9475 /* confdefs.h.  */
9476 _ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h.  */
9480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9481    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9482 #define $ac_func innocuous_$ac_func
9483
9484 /* System header to define __stub macros and hopefully few prototypes,
9485     which can conflict with char $ac_func (); below.
9486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9487     <limits.h> exists even on freestanding compilers.  */
9488
9489 #ifdef __STDC__
9490 # include <limits.h>
9491 #else
9492 # include <assert.h>
9493 #endif
9494
9495 #undef $ac_func
9496
9497 /* Override any gcc2 internal prototype to avoid an error.  */
9498 #ifdef __cplusplus
9499 extern "C"
9500 {
9501 #endif
9502 /* We use char because int might match the return type of a gcc2
9503    builtin and then its argument prototype would still apply.  */
9504 char $ac_func ();
9505 /* The GNU C library defines this for functions which it implements
9506     to always fail with ENOSYS.  Some functions are actually named
9507     something starting with __ and the normal name is an alias.  */
9508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9509 choke me
9510 #else
9511 char (*f) () = $ac_func;
9512 #endif
9513 #ifdef __cplusplus
9514 }
9515 #endif
9516
9517 int
9518 main ()
9519 {
9520 return f != $ac_func;
9521   ;
9522   return 0;
9523 }
9524 _ACEOF
9525 rm -f conftest.$ac_objext conftest$ac_exeext
9526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9527   (eval $ac_link) 2>conftest.er1
9528   ac_status=$?
9529   grep -v '^ *+' conftest.er1 >conftest.err
9530   rm -f conftest.er1
9531   cat conftest.err >&5
9532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533   (exit $ac_status); } &&
9534          { ac_try='test -z "$ac_c_werror_flag"
9535                          || test ! -s conftest.err'
9536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537   (eval $ac_try) 2>&5
9538   ac_status=$?
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); }; } &&
9541          { ac_try='test -s conftest$ac_exeext'
9542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543   (eval $ac_try) 2>&5
9544   ac_status=$?
9545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); }; }; then
9547   eval "$as_ac_var=yes"
9548 else
9549   echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9551
9552 eval "$as_ac_var=no"
9553 fi
9554 rm -f conftest.err conftest.$ac_objext \
9555       conftest$ac_exeext conftest.$ac_ext
9556 fi
9557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9559 if test `eval echo '${'$as_ac_var'}'` = yes; then
9560   cat >>confdefs.h <<_ACEOF
9561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9562 _ACEOF
9563  break
9564 fi
9565 done
9566
9567
9568
9569 for ac_func in strrchr rindex
9570 do
9571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9572 echo "$as_me:$LINENO: checking for $ac_func" >&5
9573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9574 if eval "test \"\${$as_ac_var+set}\" = set"; then
9575   echo $ECHO_N "(cached) $ECHO_C" >&6
9576 else
9577   cat >conftest.$ac_ext <<_ACEOF
9578 /* confdefs.h.  */
9579 _ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h.  */
9583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9585 #define $ac_func innocuous_$ac_func
9586
9587 /* System header to define __stub macros and hopefully few prototypes,
9588     which can conflict with char $ac_func (); below.
9589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9590     <limits.h> exists even on freestanding compilers.  */
9591
9592 #ifdef __STDC__
9593 # include <limits.h>
9594 #else
9595 # include <assert.h>
9596 #endif
9597
9598 #undef $ac_func
9599
9600 /* Override any gcc2 internal prototype to avoid an error.  */
9601 #ifdef __cplusplus
9602 extern "C"
9603 {
9604 #endif
9605 /* We use char because int might match the return type of a gcc2
9606    builtin and then its argument prototype would still apply.  */
9607 char $ac_func ();
9608 /* The GNU C library defines this for functions which it implements
9609     to always fail with ENOSYS.  Some functions are actually named
9610     something starting with __ and the normal name is an alias.  */
9611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9612 choke me
9613 #else
9614 char (*f) () = $ac_func;
9615 #endif
9616 #ifdef __cplusplus
9617 }
9618 #endif
9619
9620 int
9621 main ()
9622 {
9623 return f != $ac_func;
9624   ;
9625   return 0;
9626 }
9627 _ACEOF
9628 rm -f conftest.$ac_objext conftest$ac_exeext
9629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9630   (eval $ac_link) 2>conftest.er1
9631   ac_status=$?
9632   grep -v '^ *+' conftest.er1 >conftest.err
9633   rm -f conftest.er1
9634   cat conftest.err >&5
9635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636   (exit $ac_status); } &&
9637          { ac_try='test -z "$ac_c_werror_flag"
9638                          || test ! -s conftest.err'
9639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640   (eval $ac_try) 2>&5
9641   ac_status=$?
9642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643   (exit $ac_status); }; } &&
9644          { ac_try='test -s conftest$ac_exeext'
9645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646   (eval $ac_try) 2>&5
9647   ac_status=$?
9648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649   (exit $ac_status); }; }; then
9650   eval "$as_ac_var=yes"
9651 else
9652   echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9654
9655 eval "$as_ac_var=no"
9656 fi
9657 rm -f conftest.err conftest.$ac_objext \
9658       conftest$ac_exeext conftest.$ac_ext
9659 fi
9660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9661 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9662 if test `eval echo '${'$as_ac_var'}'` = yes; then
9663   cat >>confdefs.h <<_ACEOF
9664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9665 _ACEOF
9666  break
9667 fi
9668 done
9669
9670
9671
9672 for ac_func in memcpy bcopy
9673 do
9674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9675 echo "$as_me:$LINENO: checking for $ac_func" >&5
9676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9677 if eval "test \"\${$as_ac_var+set}\" = set"; then
9678   echo $ECHO_N "(cached) $ECHO_C" >&6
9679 else
9680   cat >conftest.$ac_ext <<_ACEOF
9681 /* confdefs.h.  */
9682 _ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h.  */
9686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9687    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9688 #define $ac_func innocuous_$ac_func
9689
9690 /* System header to define __stub macros and hopefully few prototypes,
9691     which can conflict with char $ac_func (); below.
9692     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9693     <limits.h> exists even on freestanding compilers.  */
9694
9695 #ifdef __STDC__
9696 # include <limits.h>
9697 #else
9698 # include <assert.h>
9699 #endif
9700
9701 #undef $ac_func
9702
9703 /* Override any gcc2 internal prototype to avoid an error.  */
9704 #ifdef __cplusplus
9705 extern "C"
9706 {
9707 #endif
9708 /* We use char because int might match the return type of a gcc2
9709    builtin and then its argument prototype would still apply.  */
9710 char $ac_func ();
9711 /* The GNU C library defines this for functions which it implements
9712     to always fail with ENOSYS.  Some functions are actually named
9713     something starting with __ and the normal name is an alias.  */
9714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9715 choke me
9716 #else
9717 char (*f) () = $ac_func;
9718 #endif
9719 #ifdef __cplusplus
9720 }
9721 #endif
9722
9723 int
9724 main ()
9725 {
9726 return f != $ac_func;
9727   ;
9728   return 0;
9729 }
9730 _ACEOF
9731 rm -f conftest.$ac_objext conftest$ac_exeext
9732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9733   (eval $ac_link) 2>conftest.er1
9734   ac_status=$?
9735   grep -v '^ *+' conftest.er1 >conftest.err
9736   rm -f conftest.er1
9737   cat conftest.err >&5
9738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739   (exit $ac_status); } &&
9740          { ac_try='test -z "$ac_c_werror_flag"
9741                          || test ! -s conftest.err'
9742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743   (eval $ac_try) 2>&5
9744   ac_status=$?
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); }; } &&
9747          { ac_try='test -s conftest$ac_exeext'
9748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749   (eval $ac_try) 2>&5
9750   ac_status=$?
9751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752   (exit $ac_status); }; }; then
9753   eval "$as_ac_var=yes"
9754 else
9755   echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9757
9758 eval "$as_ac_var=no"
9759 fi
9760 rm -f conftest.err conftest.$ac_objext \
9761       conftest$ac_exeext conftest.$ac_ext
9762 fi
9763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9765 if test `eval echo '${'$as_ac_var'}'` = yes; then
9766   cat >>confdefs.h <<_ACEOF
9767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9768 _ACEOF
9769  break
9770 fi
9771 done
9772
9773
9774
9775 for ac_func in memmove strcmp
9776 do
9777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9778 echo "$as_me:$LINENO: checking for $ac_func" >&5
9779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9780 if eval "test \"\${$as_ac_var+set}\" = set"; then
9781   echo $ECHO_N "(cached) $ECHO_C" >&6
9782 else
9783   cat >conftest.$ac_ext <<_ACEOF
9784 /* confdefs.h.  */
9785 _ACEOF
9786 cat confdefs.h >>conftest.$ac_ext
9787 cat >>conftest.$ac_ext <<_ACEOF
9788 /* end confdefs.h.  */
9789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9790    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9791 #define $ac_func innocuous_$ac_func
9792
9793 /* System header to define __stub macros and hopefully few prototypes,
9794     which can conflict with char $ac_func (); below.
9795     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9796     <limits.h> exists even on freestanding compilers.  */
9797
9798 #ifdef __STDC__
9799 # include <limits.h>
9800 #else
9801 # include <assert.h>
9802 #endif
9803
9804 #undef $ac_func
9805
9806 /* Override any gcc2 internal prototype to avoid an error.  */
9807 #ifdef __cplusplus
9808 extern "C"
9809 {
9810 #endif
9811 /* We use char because int might match the return type of a gcc2
9812    builtin and then its argument prototype would still apply.  */
9813 char $ac_func ();
9814 /* The GNU C library defines this for functions which it implements
9815     to always fail with ENOSYS.  Some functions are actually named
9816     something starting with __ and the normal name is an alias.  */
9817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9818 choke me
9819 #else
9820 char (*f) () = $ac_func;
9821 #endif
9822 #ifdef __cplusplus
9823 }
9824 #endif
9825
9826 int
9827 main ()
9828 {
9829 return f != $ac_func;
9830   ;
9831   return 0;
9832 }
9833 _ACEOF
9834 rm -f conftest.$ac_objext conftest$ac_exeext
9835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9836   (eval $ac_link) 2>conftest.er1
9837   ac_status=$?
9838   grep -v '^ *+' conftest.er1 >conftest.err
9839   rm -f conftest.er1
9840   cat conftest.err >&5
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); } &&
9843          { ac_try='test -z "$ac_c_werror_flag"
9844                          || test ! -s conftest.err'
9845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846   (eval $ac_try) 2>&5
9847   ac_status=$?
9848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849   (exit $ac_status); }; } &&
9850          { ac_try='test -s conftest$ac_exeext'
9851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9852   (eval $ac_try) 2>&5
9853   ac_status=$?
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); }; }; then
9856   eval "$as_ac_var=yes"
9857 else
9858   echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9860
9861 eval "$as_ac_var=no"
9862 fi
9863 rm -f conftest.err conftest.$ac_objext \
9864       conftest$ac_exeext conftest.$ac_ext
9865 fi
9866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9868 if test `eval echo '${'$as_ac_var'}'` = yes; then
9869   cat >>confdefs.h <<_ACEOF
9870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9871 _ACEOF
9872
9873 fi
9874 done
9875
9876
9877
9878
9879 for ac_func in closedir opendir readdir
9880 do
9881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9882 echo "$as_me:$LINENO: checking for $ac_func" >&5
9883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9884 if eval "test \"\${$as_ac_var+set}\" = set"; then
9885   echo $ECHO_N "(cached) $ECHO_C" >&6
9886 else
9887   cat >conftest.$ac_ext <<_ACEOF
9888 /* confdefs.h.  */
9889 _ACEOF
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h.  */
9893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9894    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9895 #define $ac_func innocuous_$ac_func
9896
9897 /* System header to define __stub macros and hopefully few prototypes,
9898     which can conflict with char $ac_func (); below.
9899     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9900     <limits.h> exists even on freestanding compilers.  */
9901
9902 #ifdef __STDC__
9903 # include <limits.h>
9904 #else
9905 # include <assert.h>
9906 #endif
9907
9908 #undef $ac_func
9909
9910 /* Override any gcc2 internal prototype to avoid an error.  */
9911 #ifdef __cplusplus
9912 extern "C"
9913 {
9914 #endif
9915 /* We use char because int might match the return type of a gcc2
9916    builtin and then its argument prototype would still apply.  */
9917 char $ac_func ();
9918 /* The GNU C library defines this for functions which it implements
9919     to always fail with ENOSYS.  Some functions are actually named
9920     something starting with __ and the normal name is an alias.  */
9921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9922 choke me
9923 #else
9924 char (*f) () = $ac_func;
9925 #endif
9926 #ifdef __cplusplus
9927 }
9928 #endif
9929
9930 int
9931 main ()
9932 {
9933 return f != $ac_func;
9934   ;
9935   return 0;
9936 }
9937 _ACEOF
9938 rm -f conftest.$ac_objext conftest$ac_exeext
9939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9940   (eval $ac_link) 2>conftest.er1
9941   ac_status=$?
9942   grep -v '^ *+' conftest.er1 >conftest.err
9943   rm -f conftest.er1
9944   cat conftest.err >&5
9945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946   (exit $ac_status); } &&
9947          { ac_try='test -z "$ac_c_werror_flag"
9948                          || test ! -s conftest.err'
9949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950   (eval $ac_try) 2>&5
9951   ac_status=$?
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); }; } &&
9954          { ac_try='test -s conftest$ac_exeext'
9955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956   (eval $ac_try) 2>&5
9957   ac_status=$?
9958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959   (exit $ac_status); }; }; then
9960   eval "$as_ac_var=yes"
9961 else
9962   echo "$as_me: failed program was:" >&5
9963 sed 's/^/| /' conftest.$ac_ext >&5
9964
9965 eval "$as_ac_var=no"
9966 fi
9967 rm -f conftest.err conftest.$ac_objext \
9968       conftest$ac_exeext conftest.$ac_ext
9969 fi
9970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9971 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9972 if test `eval echo '${'$as_ac_var'}'` = yes; then
9973   cat >>confdefs.h <<_ACEOF
9974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9975 _ACEOF
9976
9977 fi
9978 done
9979
9980
9981 # Check whether --enable-shared or --disable-shared was given.
9982 if test "${enable_shared+set}" = set; then
9983   enableval="$enable_shared"
9984   p=${PACKAGE-default}
9985     case $enableval in
9986     yes) enable_shared=yes ;;
9987     no) enable_shared=no ;;
9988     *)
9989       enable_shared=no
9990       # Look at the argument we got.  We use all the common list separators.
9991       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9992       for pkg in $enableval; do
9993         IFS="$lt_save_ifs"
9994         if test "X$pkg" = "X$p"; then
9995           enable_shared=yes
9996         fi
9997       done
9998       IFS="$lt_save_ifs"
9999       ;;
10000     esac
10001 else
10002   enable_shared=yes
10003 fi;
10004
10005 # Check whether --enable-static or --disable-static was given.
10006 if test "${enable_static+set}" = set; then
10007   enableval="$enable_static"
10008   p=${PACKAGE-default}
10009     case $enableval in
10010     yes) enable_static=yes ;;
10011     no) enable_static=no ;;
10012     *)
10013      enable_static=no
10014       # Look at the argument we got.  We use all the common list separators.
10015       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10016       for pkg in $enableval; do
10017         IFS="$lt_save_ifs"
10018         if test "X$pkg" = "X$p"; then
10019           enable_static=yes
10020         fi
10021       done
10022       IFS="$lt_save_ifs"
10023       ;;
10024     esac
10025 else
10026   enable_static=yes
10027 fi;
10028
10029 # Check whether --enable-fast-install or --disable-fast-install was given.
10030 if test "${enable_fast_install+set}" = set; then
10031   enableval="$enable_fast_install"
10032   p=${PACKAGE-default}
10033     case $enableval in
10034     yes) enable_fast_install=yes ;;
10035     no) enable_fast_install=no ;;
10036     *)
10037       enable_fast_install=no
10038       # Look at the argument we got.  We use all the common list separators.
10039       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10040       for pkg in $enableval; do
10041         IFS="$lt_save_ifs"
10042         if test "X$pkg" = "X$p"; then
10043           enable_fast_install=yes
10044         fi
10045       done
10046       IFS="$lt_save_ifs"
10047       ;;
10048     esac
10049 else
10050   enable_fast_install=yes
10051 fi;
10052
10053 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10054 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10055 if test "${lt_cv_path_SED+set}" = set; then
10056   echo $ECHO_N "(cached) $ECHO_C" >&6
10057 else
10058   # Loop through the user's path and test for sed and gsed.
10059 # Then use that list of sed's as ones to test for truncation.
10060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061 for as_dir in $PATH
10062 do
10063   IFS=$as_save_IFS
10064   test -z "$as_dir" && as_dir=.
10065   for lt_ac_prog in sed gsed; do
10066     for ac_exec_ext in '' $ac_executable_extensions; do
10067       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10068         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10069       fi
10070     done
10071   done
10072 done
10073 lt_ac_max=0
10074 lt_ac_count=0
10075 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10076 # along with /bin/sed that truncates output.
10077 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10078   test ! -f $lt_ac_sed && break
10079   cat /dev/null > conftest.in
10080   lt_ac_count=0
10081   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10082   # Check for GNU sed and select it if it is found.
10083   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10084     lt_cv_path_SED=$lt_ac_sed
10085     break
10086   fi
10087   while true; do
10088     cat conftest.in conftest.in >conftest.tmp
10089     mv conftest.tmp conftest.in
10090     cp conftest.in conftest.nl
10091     echo >>conftest.nl
10092     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10093     cmp -s conftest.out conftest.nl || break
10094     # 10000 chars as input seems more than enough
10095     test $lt_ac_count -gt 10 && break
10096     lt_ac_count=`expr $lt_ac_count + 1`
10097     if test $lt_ac_count -gt $lt_ac_max; then
10098       lt_ac_max=$lt_ac_count
10099       lt_cv_path_SED=$lt_ac_sed
10100     fi
10101   done
10102 done
10103
10104 fi
10105
10106 SED=$lt_cv_path_SED
10107 echo "$as_me:$LINENO: result: $SED" >&5
10108 echo "${ECHO_T}$SED" >&6
10109
10110
10111 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10112 if test "${with_gnu_ld+set}" = set; then
10113   withval="$with_gnu_ld"
10114   test "$withval" = no || with_gnu_ld=yes
10115 else
10116   with_gnu_ld=no
10117 fi;
10118 ac_prog=ld
10119 if test "$GCC" = yes; then
10120   # Check if gcc -print-prog-name=ld gives a path.
10121   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10122 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10123   case $host in
10124   *-*-mingw*)
10125     # gcc leaves a trailing carriage return which upsets mingw
10126     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10127   *)
10128     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10129   esac
10130   case $ac_prog in
10131     # Accept absolute paths.
10132     [\\/]* | ?:[\\/]*)
10133       re_direlt='/[^/][^/]*/\.\./'
10134       # Canonicalize the pathname of ld
10135       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10136       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10137         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10138       done
10139       test -z "$LD" && LD="$ac_prog"
10140       ;;
10141   "")
10142     # If it fails, then pretend we aren't using GCC.
10143     ac_prog=ld
10144     ;;
10145   *)
10146     # If it is relative, then search for the first ld in PATH.
10147     with_gnu_ld=unknown
10148     ;;
10149   esac
10150 elif test "$with_gnu_ld" = yes; then
10151   echo "$as_me:$LINENO: checking for GNU ld" >&5
10152 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10153 else
10154   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10155 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10156 fi
10157 if test "${lt_cv_path_LD+set}" = set; then
10158   echo $ECHO_N "(cached) $ECHO_C" >&6
10159 else
10160   if test -z "$LD"; then
10161   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10162   for ac_dir in $PATH; do
10163     IFS="$lt_save_ifs"
10164     test -z "$ac_dir" && ac_dir=.
10165     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10166       lt_cv_path_LD="$ac_dir/$ac_prog"
10167       # Check to see if the program is GNU ld.  I'd rather use --version,
10168       # but apparently some GNU ld's only accept -v.
10169       # Break only if it was the GNU/non-GNU ld that we prefer.
10170       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10171       *GNU* | *'with BFD'*)
10172         test "$with_gnu_ld" != no && break
10173         ;;
10174       *)
10175         test "$with_gnu_ld" != yes && break
10176         ;;
10177       esac
10178     fi
10179   done
10180   IFS="$lt_save_ifs"
10181 else
10182   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10183 fi
10184 fi
10185
10186 LD="$lt_cv_path_LD"
10187 if test -n "$LD"; then
10188   echo "$as_me:$LINENO: result: $LD" >&5
10189 echo "${ECHO_T}$LD" >&6
10190 else
10191   echo "$as_me:$LINENO: result: no" >&5
10192 echo "${ECHO_T}no" >&6
10193 fi
10194 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10195 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10196    { (exit 1); exit 1; }; }
10197 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10198 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10199 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10200   echo $ECHO_N "(cached) $ECHO_C" >&6
10201 else
10202   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10203 case `$LD -v 2>&1 </dev/null` in
10204 *GNU* | *'with BFD'*)
10205   lt_cv_prog_gnu_ld=yes
10206   ;;
10207 *)
10208   lt_cv_prog_gnu_ld=no
10209   ;;
10210 esac
10211 fi
10212 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10213 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10214 with_gnu_ld=$lt_cv_prog_gnu_ld
10215
10216
10217 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10218 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10219 if test "${lt_cv_ld_reload_flag+set}" = set; then
10220   echo $ECHO_N "(cached) $ECHO_C" >&6
10221 else
10222   lt_cv_ld_reload_flag='-r'
10223 fi
10224 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10225 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10226 reload_flag=$lt_cv_ld_reload_flag
10227 case $reload_flag in
10228 "" | " "*) ;;
10229 *) reload_flag=" $reload_flag" ;;
10230 esac
10231 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10232 case $host_os in
10233   darwin*)
10234     if test "$GCC" = yes; then
10235       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10236     else
10237       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10238     fi
10239     ;;
10240 esac
10241
10242 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10243 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10244 if test "${lt_cv_deplibs_check_method+set}" = set; then
10245   echo $ECHO_N "(cached) $ECHO_C" >&6
10246 else
10247   lt_cv_file_magic_cmd='$MAGIC_CMD'
10248 lt_cv_file_magic_test_file=
10249 lt_cv_deplibs_check_method='unknown'
10250 # Need to set the preceding variable on all platforms that support
10251 # interlibrary dependencies.
10252 # 'none' -- dependencies not supported.
10253 # `unknown' -- same as none, but documents that we really don't know.
10254 # 'pass_all' -- all dependencies passed with no checks.
10255 # 'test_compile' -- check by making test program.
10256 # 'file_magic [[regex]]' -- check by looking for files in library path
10257 # which responds to the $file_magic_cmd with a given extended regex.
10258 # If you have `file' or equivalent on your system and you're not sure
10259 # whether `pass_all' will *always* work, you probably want this one.
10260
10261 case $host_os in
10262 aix4* | aix5*)
10263   lt_cv_deplibs_check_method=pass_all
10264   ;;
10265
10266 beos*)
10267   lt_cv_deplibs_check_method=pass_all
10268   ;;
10269
10270 bsdi[45]*)
10271   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10272   lt_cv_file_magic_cmd='/usr/bin/file -L'
10273   lt_cv_file_magic_test_file=/shlib/libc.so
10274   ;;
10275
10276 cygwin*)
10277   # func_win32_libid is a shell function defined in ltmain.sh
10278   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10279   lt_cv_file_magic_cmd='func_win32_libid'
10280   ;;
10281
10282 mingw* | pw32*)
10283   # Base MSYS/MinGW do not provide the 'file' command needed by
10284   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10285   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10286   lt_cv_file_magic_cmd='$OBJDUMP -f'
10287   ;;
10288
10289 darwin* | rhapsody*)
10290   lt_cv_deplibs_check_method=pass_all
10291   ;;
10292
10293 freebsd* | kfreebsd*-gnu)
10294   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10295     case $host_cpu in
10296     i*86 )
10297       # Not sure whether the presence of OpenBSD here was a mistake.
10298       # Let's accept both of them until this is cleared up.
10299       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10300       lt_cv_file_magic_cmd=/usr/bin/file
10301       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10302       ;;
10303     esac
10304   else
10305     lt_cv_deplibs_check_method=pass_all
10306   fi
10307   ;;
10308
10309 gnu*)
10310   lt_cv_deplibs_check_method=pass_all
10311   ;;
10312
10313 hpux10.20* | hpux11*)
10314   lt_cv_file_magic_cmd=/usr/bin/file
10315   case "$host_cpu" in
10316   ia64*)
10317     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10318     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10319     ;;
10320   hppa*64*)
10321     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]'
10322     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10323     ;;
10324   *)
10325     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10326     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10327     ;;
10328   esac
10329   ;;
10330
10331 irix5* | irix6* | nonstopux*)
10332   case $LD in
10333   *-32|*"-32 ") libmagic=32-bit;;
10334   *-n32|*"-n32 ") libmagic=N32;;
10335   *-64|*"-64 ") libmagic=64-bit;;
10336   *) libmagic=never-match;;
10337   esac
10338   lt_cv_deplibs_check_method=pass_all
10339   ;;
10340
10341 # This must be Linux ELF.
10342 linux*)
10343   lt_cv_deplibs_check_method=pass_all
10344   ;;
10345
10346 netbsd*)
10347   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10348     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10349   else
10350     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10351   fi
10352   ;;
10353
10354 newos6*)
10355   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10356   lt_cv_file_magic_cmd=/usr/bin/file
10357   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10358   ;;
10359
10360 nto-qnx*)
10361   lt_cv_deplibs_check_method=unknown
10362   ;;
10363
10364 openbsd*)
10365   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10366     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10367   else
10368     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10369   fi
10370   ;;
10371
10372 osf3* | osf4* | osf5*)
10373   lt_cv_deplibs_check_method=pass_all
10374   ;;
10375
10376 sco3.2v5*)
10377   lt_cv_deplibs_check_method=pass_all
10378   ;;
10379
10380 solaris*)
10381   lt_cv_deplibs_check_method=pass_all
10382   ;;
10383
10384 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10385   case $host_vendor in
10386   motorola)
10387     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]'
10388     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10389     ;;
10390   ncr)
10391     lt_cv_deplibs_check_method=pass_all
10392     ;;
10393   sequent)
10394     lt_cv_file_magic_cmd='/bin/file'
10395     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10396     ;;
10397   sni)
10398     lt_cv_file_magic_cmd='/bin/file'
10399     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10400     lt_cv_file_magic_test_file=/lib/libc.so
10401     ;;
10402   siemens)
10403     lt_cv_deplibs_check_method=pass_all
10404     ;;
10405   esac
10406   ;;
10407
10408 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10409   lt_cv_deplibs_check_method=pass_all
10410   ;;
10411 esac
10412
10413 fi
10414 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10415 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10416 file_magic_cmd=$lt_cv_file_magic_cmd
10417 deplibs_check_method=$lt_cv_deplibs_check_method
10418 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10419
10420
10421
10422 # If no C compiler was specified, use CC.
10423 LTCC=${LTCC-"$CC"}
10424
10425 # Allow CC to be a program name with arguments.
10426 compiler=$CC
10427
10428 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10429 if test "${enable_libtool_lock+set}" = set; then
10430   enableval="$enable_libtool_lock"
10431
10432 fi;
10433 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10434
10435 # Some flags need to be propagated to the compiler or linker for good
10436 # libtool support.
10437 case $host in
10438 ia64-*-hpux*)
10439   # Find out which ABI we are using.
10440   echo 'int i;' > conftest.$ac_ext
10441   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10442   (eval $ac_compile) 2>&5
10443   ac_status=$?
10444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445   (exit $ac_status); }; then
10446     case `/usr/bin/file conftest.$ac_objext` in
10447     *ELF-32*)
10448       HPUX_IA64_MODE="32"
10449       ;;
10450     *ELF-64*)
10451       HPUX_IA64_MODE="64"
10452       ;;
10453     esac
10454   fi
10455   rm -rf conftest*
10456   ;;
10457 *-*-irix6*)
10458   # Find out which ABI we are using.
10459   echo '#line 10459 "configure"' > conftest.$ac_ext
10460   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10461   (eval $ac_compile) 2>&5
10462   ac_status=$?
10463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464   (exit $ac_status); }; then
10465    if test "$lt_cv_prog_gnu_ld" = yes; then
10466     case `/usr/bin/file conftest.$ac_objext` in
10467     *32-bit*)
10468       LD="${LD-ld} -melf32bsmip"
10469       ;;
10470     *N32*)
10471       LD="${LD-ld} -melf32bmipn32"
10472       ;;
10473     *64-bit*)
10474       LD="${LD-ld} -melf64bmip"
10475       ;;
10476     esac
10477    else
10478     case `/usr/bin/file conftest.$ac_objext` in
10479     *32-bit*)
10480       LD="${LD-ld} -32"
10481       ;;
10482     *N32*)
10483       LD="${LD-ld} -n32"
10484       ;;
10485     *64-bit*)
10486       LD="${LD-ld} -64"
10487       ;;
10488     esac
10489    fi
10490   fi
10491   rm -rf conftest*
10492   ;;
10493
10494 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10495   # Find out which ABI we are using.
10496   echo 'int i;' > conftest.$ac_ext
10497   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10498   (eval $ac_compile) 2>&5
10499   ac_status=$?
10500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501   (exit $ac_status); }; then
10502     case "`/usr/bin/file conftest.o`" in
10503     *32-bit*)
10504       case $host in
10505         x86_64-*linux*)
10506           LD="${LD-ld} -m elf_i386"
10507           ;;
10508         ppc64-*linux*|powerpc64-*linux*)
10509           LD="${LD-ld} -m elf32ppclinux"
10510           ;;
10511         s390x-*linux*)
10512           LD="${LD-ld} -m elf_s390"
10513           ;;
10514         sparc64-*linux*)
10515           LD="${LD-ld} -m elf32_sparc"
10516           ;;
10517       esac
10518       ;;
10519     *64-bit*)
10520       case $host in
10521         x86_64-*linux*)
10522           LD="${LD-ld} -m elf_x86_64"
10523           ;;
10524         ppc*-*linux*|powerpc*-*linux*)
10525           LD="${LD-ld} -m elf64ppc"
10526           ;;
10527         s390*-*linux*)
10528           LD="${LD-ld} -m elf64_s390"
10529           ;;
10530         sparc*-*linux*)
10531           LD="${LD-ld} -m elf64_sparc"
10532           ;;
10533       esac
10534       ;;
10535     esac
10536   fi
10537   rm -rf conftest*
10538   ;;
10539
10540 *-*-sco3.2v5*)
10541   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10542   SAVE_CFLAGS="$CFLAGS"
10543   CFLAGS="$CFLAGS -belf"
10544   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10545 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10546 if test "${lt_cv_cc_needs_belf+set}" = set; then
10547   echo $ECHO_N "(cached) $ECHO_C" >&6
10548 else
10549   ac_ext=c
10550 ac_cpp='$CPP $CPPFLAGS'
10551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10554
10555      cat >conftest.$ac_ext <<_ACEOF
10556 /* confdefs.h.  */
10557 _ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h.  */
10561
10562 _ACEOF
10563 rm -f conftest.$ac_objext conftest$ac_exeext
10564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10565   (eval $ac_link) 2>conftest.er1
10566   ac_status=$?
10567   grep -v '^ *+' conftest.er1 >conftest.err
10568   rm -f conftest.er1
10569   cat conftest.err >&5
10570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571   (exit $ac_status); } &&
10572          { ac_try='test -z "$ac_c_werror_flag"
10573                          || test ! -s conftest.err'
10574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575   (eval $ac_try) 2>&5
10576   ac_status=$?
10577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578   (exit $ac_status); }; } &&
10579          { ac_try='test -s conftest$ac_exeext'
10580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581   (eval $ac_try) 2>&5
10582   ac_status=$?
10583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584   (exit $ac_status); }; }; then
10585   lt_cv_cc_needs_belf=yes
10586 else
10587   echo "$as_me: failed program was:" >&5
10588 sed 's/^/| /' conftest.$ac_ext >&5
10589
10590 lt_cv_cc_needs_belf=no
10591 fi
10592 rm -f conftest.err conftest.$ac_objext \
10593       conftest$ac_exeext conftest.$ac_ext
10594      ac_ext=c
10595 ac_cpp='$CPP $CPPFLAGS'
10596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10599
10600 fi
10601 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10602 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10603   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10604     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10605     CFLAGS="$SAVE_CFLAGS"
10606   fi
10607   ;;
10608
10609 esac
10610
10611 need_locks="$enable_libtool_lock"
10612
10613
10614
10615
10616 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10617     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10618     (test "X$CXX" != "Xg++"))) ; then
10619   ac_ext=cc
10620 ac_cpp='$CXXCPP $CPPFLAGS'
10621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10624 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10625 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10626 if test -z "$CXXCPP"; then
10627   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10628   echo $ECHO_N "(cached) $ECHO_C" >&6
10629 else
10630       # Double quotes because CXXCPP needs to be expanded
10631     for CXXCPP in "$CXX -E" "/lib/cpp"
10632     do
10633       ac_preproc_ok=false
10634 for ac_cxx_preproc_warn_flag in '' yes
10635 do
10636   # Use a header file that comes with gcc, so configuring glibc
10637   # with a fresh cross-compiler works.
10638   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10639   # <limits.h> exists even on freestanding compilers.
10640   # On the NeXT, cc -E runs the code through the compiler's parser,
10641   # not just through cpp. "Syntax error" is here to catch this case.
10642   cat >conftest.$ac_ext <<_ACEOF
10643 /* confdefs.h.  */
10644 _ACEOF
10645 cat confdefs.h >>conftest.$ac_ext
10646 cat >>conftest.$ac_ext <<_ACEOF
10647 /* end confdefs.h.  */
10648 #ifdef __STDC__
10649 # include <limits.h>
10650 #else
10651 # include <assert.h>
10652 #endif
10653                      Syntax error
10654 _ACEOF
10655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10656   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10657   ac_status=$?
10658   grep -v '^ *+' conftest.er1 >conftest.err
10659   rm -f conftest.er1
10660   cat conftest.err >&5
10661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662   (exit $ac_status); } >/dev/null; then
10663   if test -s conftest.err; then
10664     ac_cpp_err=$ac_cxx_preproc_warn_flag
10665     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10666   else
10667     ac_cpp_err=
10668   fi
10669 else
10670   ac_cpp_err=yes
10671 fi
10672 if test -z "$ac_cpp_err"; then
10673   :
10674 else
10675   echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10677
10678   # Broken: fails on valid input.
10679 continue
10680 fi
10681 rm -f conftest.err conftest.$ac_ext
10682
10683   # OK, works on sane cases.  Now check whether non-existent headers
10684   # can be detected and how.
10685   cat >conftest.$ac_ext <<_ACEOF
10686 /* confdefs.h.  */
10687 _ACEOF
10688 cat confdefs.h >>conftest.$ac_ext
10689 cat >>conftest.$ac_ext <<_ACEOF
10690 /* end confdefs.h.  */
10691 #include <ac_nonexistent.h>
10692 _ACEOF
10693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10694   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10695   ac_status=$?
10696   grep -v '^ *+' conftest.er1 >conftest.err
10697   rm -f conftest.er1
10698   cat conftest.err >&5
10699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700   (exit $ac_status); } >/dev/null; then
10701   if test -s conftest.err; then
10702     ac_cpp_err=$ac_cxx_preproc_warn_flag
10703     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10704   else
10705     ac_cpp_err=
10706   fi
10707 else
10708   ac_cpp_err=yes
10709 fi
10710 if test -z "$ac_cpp_err"; then
10711   # Broken: success on invalid input.
10712 continue
10713 else
10714   echo "$as_me: failed program was:" >&5
10715 sed 's/^/| /' conftest.$ac_ext >&5
10716
10717   # Passes both tests.
10718 ac_preproc_ok=:
10719 break
10720 fi
10721 rm -f conftest.err conftest.$ac_ext
10722
10723 done
10724 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10725 rm -f conftest.err conftest.$ac_ext
10726 if $ac_preproc_ok; then
10727   break
10728 fi
10729
10730     done
10731     ac_cv_prog_CXXCPP=$CXXCPP
10732
10733 fi
10734   CXXCPP=$ac_cv_prog_CXXCPP
10735 else
10736   ac_cv_prog_CXXCPP=$CXXCPP
10737 fi
10738 echo "$as_me:$LINENO: result: $CXXCPP" >&5
10739 echo "${ECHO_T}$CXXCPP" >&6
10740 ac_preproc_ok=false
10741 for ac_cxx_preproc_warn_flag in '' yes
10742 do
10743   # Use a header file that comes with gcc, so configuring glibc
10744   # with a fresh cross-compiler works.
10745   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10746   # <limits.h> exists even on freestanding compilers.
10747   # On the NeXT, cc -E runs the code through the compiler's parser,
10748   # not just through cpp. "Syntax error" is here to catch this case.
10749   cat >conftest.$ac_ext <<_ACEOF
10750 /* confdefs.h.  */
10751 _ACEOF
10752 cat confdefs.h >>conftest.$ac_ext
10753 cat >>conftest.$ac_ext <<_ACEOF
10754 /* end confdefs.h.  */
10755 #ifdef __STDC__
10756 # include <limits.h>
10757 #else
10758 # include <assert.h>
10759 #endif
10760                      Syntax error
10761 _ACEOF
10762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10763   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10764   ac_status=$?
10765   grep -v '^ *+' conftest.er1 >conftest.err
10766   rm -f conftest.er1
10767   cat conftest.err >&5
10768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769   (exit $ac_status); } >/dev/null; then
10770   if test -s conftest.err; then
10771     ac_cpp_err=$ac_cxx_preproc_warn_flag
10772     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10773   else
10774     ac_cpp_err=
10775   fi
10776 else
10777   ac_cpp_err=yes
10778 fi
10779 if test -z "$ac_cpp_err"; then
10780   :
10781 else
10782   echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10784
10785   # Broken: fails on valid input.
10786 continue
10787 fi
10788 rm -f conftest.err conftest.$ac_ext
10789
10790   # OK, works on sane cases.  Now check whether non-existent headers
10791   # can be detected and how.
10792   cat >conftest.$ac_ext <<_ACEOF
10793 /* confdefs.h.  */
10794 _ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h.  */
10798 #include <ac_nonexistent.h>
10799 _ACEOF
10800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10801   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10802   ac_status=$?
10803   grep -v '^ *+' conftest.er1 >conftest.err
10804   rm -f conftest.er1
10805   cat conftest.err >&5
10806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807   (exit $ac_status); } >/dev/null; then
10808   if test -s conftest.err; then
10809     ac_cpp_err=$ac_cxx_preproc_warn_flag
10810     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10811   else
10812     ac_cpp_err=
10813   fi
10814 else
10815   ac_cpp_err=yes
10816 fi
10817 if test -z "$ac_cpp_err"; then
10818   # Broken: success on invalid input.
10819 continue
10820 else
10821   echo "$as_me: failed program was:" >&5
10822 sed 's/^/| /' conftest.$ac_ext >&5
10823
10824   # Passes both tests.
10825 ac_preproc_ok=:
10826 break
10827 fi
10828 rm -f conftest.err conftest.$ac_ext
10829
10830 done
10831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10832 rm -f conftest.err conftest.$ac_ext
10833 if $ac_preproc_ok; then
10834   :
10835 else
10836   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10837 See \`config.log' for more details." >&5
10838 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10839 See \`config.log' for more details." >&2;}
10840    { (exit 1); exit 1; }; }
10841 fi
10842
10843 ac_ext=cc
10844 ac_cpp='$CXXCPP $CPPFLAGS'
10845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10848
10849 fi
10850
10851
10852 ac_ext=f
10853 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10854 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10855 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10856 if test -n "$ac_tool_prefix"; then
10857   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10858   do
10859     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10860 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10861 echo "$as_me:$LINENO: checking for $ac_word" >&5
10862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10863 if test "${ac_cv_prog_F77+set}" = set; then
10864   echo $ECHO_N "(cached) $ECHO_C" >&6
10865 else
10866   if test -n "$F77"; then
10867   ac_cv_prog_F77="$F77" # Let the user override the test.
10868 else
10869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10870 for as_dir in $PATH
10871 do
10872   IFS=$as_save_IFS
10873   test -z "$as_dir" && as_dir=.
10874   for ac_exec_ext in '' $ac_executable_extensions; do
10875   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10876     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10878     break 2
10879   fi
10880 done
10881 done
10882
10883 fi
10884 fi
10885 F77=$ac_cv_prog_F77
10886 if test -n "$F77"; then
10887   echo "$as_me:$LINENO: result: $F77" >&5
10888 echo "${ECHO_T}$F77" >&6
10889 else
10890   echo "$as_me:$LINENO: result: no" >&5
10891 echo "${ECHO_T}no" >&6
10892 fi
10893
10894     test -n "$F77" && break
10895   done
10896 fi
10897 if test -z "$F77"; then
10898   ac_ct_F77=$F77
10899   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
10900 do
10901   # Extract the first word of "$ac_prog", so it can be a program name with args.
10902 set dummy $ac_prog; ac_word=$2
10903 echo "$as_me:$LINENO: checking for $ac_word" >&5
10904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10905 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10906   echo $ECHO_N "(cached) $ECHO_C" >&6
10907 else
10908   if test -n "$ac_ct_F77"; then
10909   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10910 else
10911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10912 for as_dir in $PATH
10913 do
10914   IFS=$as_save_IFS
10915   test -z "$as_dir" && as_dir=.
10916   for ac_exec_ext in '' $ac_executable_extensions; do
10917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10918     ac_cv_prog_ac_ct_F77="$ac_prog"
10919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10920     break 2
10921   fi
10922 done
10923 done
10924
10925 fi
10926 fi
10927 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10928 if test -n "$ac_ct_F77"; then
10929   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10930 echo "${ECHO_T}$ac_ct_F77" >&6
10931 else
10932   echo "$as_me:$LINENO: result: no" >&5
10933 echo "${ECHO_T}no" >&6
10934 fi
10935
10936   test -n "$ac_ct_F77" && break
10937 done
10938
10939   F77=$ac_ct_F77
10940 fi
10941
10942
10943 # Provide some information about the compiler.
10944 echo "$as_me:10944:" \
10945      "checking for Fortran 77 compiler version" >&5
10946 ac_compiler=`set X $ac_compile; echo $2`
10947 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10948   (eval $ac_compiler --version </dev/null >&5) 2>&5
10949   ac_status=$?
10950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951   (exit $ac_status); }
10952 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10953   (eval $ac_compiler -v </dev/null >&5) 2>&5
10954   ac_status=$?
10955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956   (exit $ac_status); }
10957 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10958   (eval $ac_compiler -V </dev/null >&5) 2>&5
10959   ac_status=$?
10960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961   (exit $ac_status); }
10962 rm -f a.out
10963
10964 # If we don't use `.F' as extension, the preprocessor is not run on the
10965 # input file.  (Note that this only needs to work for GNU compilers.)
10966 ac_save_ext=$ac_ext
10967 ac_ext=F
10968 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10969 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10970 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10971   echo $ECHO_N "(cached) $ECHO_C" >&6
10972 else
10973   cat >conftest.$ac_ext <<_ACEOF
10974       program main
10975 #ifndef __GNUC__
10976        choke me
10977 #endif
10978
10979       end
10980 _ACEOF
10981 rm -f conftest.$ac_objext
10982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10983   (eval $ac_compile) 2>conftest.er1
10984   ac_status=$?
10985   grep -v '^ *+' conftest.er1 >conftest.err
10986   rm -f conftest.er1
10987   cat conftest.err >&5
10988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989   (exit $ac_status); } &&
10990          { ac_try='test -z "$ac_f77_werror_flag"
10991                          || test ! -s conftest.err'
10992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993   (eval $ac_try) 2>&5
10994   ac_status=$?
10995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996   (exit $ac_status); }; } &&
10997          { ac_try='test -s conftest.$ac_objext'
10998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999   (eval $ac_try) 2>&5
11000   ac_status=$?
11001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   (exit $ac_status); }; }; then
11003   ac_compiler_gnu=yes
11004 else
11005   echo "$as_me: failed program was:" >&5
11006 sed 's/^/| /' conftest.$ac_ext >&5
11007
11008 ac_compiler_gnu=no
11009 fi
11010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11011 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11012
11013 fi
11014 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11015 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11016 ac_ext=$ac_save_ext
11017 ac_test_FFLAGS=${FFLAGS+set}
11018 ac_save_FFLAGS=$FFLAGS
11019 FFLAGS=
11020 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11021 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11022 if test "${ac_cv_prog_f77_g+set}" = set; then
11023   echo $ECHO_N "(cached) $ECHO_C" >&6
11024 else
11025   FFLAGS=-g
11026 cat >conftest.$ac_ext <<_ACEOF
11027       program main
11028
11029       end
11030 _ACEOF
11031 rm -f conftest.$ac_objext
11032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11033   (eval $ac_compile) 2>conftest.er1
11034   ac_status=$?
11035   grep -v '^ *+' conftest.er1 >conftest.err
11036   rm -f conftest.er1
11037   cat conftest.err >&5
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); } &&
11040          { ac_try='test -z "$ac_f77_werror_flag"
11041                          || test ! -s conftest.err'
11042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043   (eval $ac_try) 2>&5
11044   ac_status=$?
11045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046   (exit $ac_status); }; } &&
11047          { ac_try='test -s conftest.$ac_objext'
11048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049   (eval $ac_try) 2>&5
11050   ac_status=$?
11051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052   (exit $ac_status); }; }; then
11053   ac_cv_prog_f77_g=yes
11054 else
11055   echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11057
11058 ac_cv_prog_f77_g=no
11059 fi
11060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11061
11062 fi
11063 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11064 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11065 if test "$ac_test_FFLAGS" = set; then
11066   FFLAGS=$ac_save_FFLAGS
11067 elif test $ac_cv_prog_f77_g = yes; then
11068   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11069     FFLAGS="-g -O2"
11070   else
11071     FFLAGS="-g"
11072   fi
11073 else
11074   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11075     FFLAGS="-O2"
11076   else
11077     FFLAGS=
11078   fi
11079 fi
11080
11081 G77=`test $ac_compiler_gnu = yes && echo yes`
11082 ac_ext=c
11083 ac_cpp='$CPP $CPPFLAGS'
11084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11087
11088
11089
11090 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11091
11092 # find the maximum length of command line arguments
11093 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11094 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11095 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11096   echo $ECHO_N "(cached) $ECHO_C" >&6
11097 else
11098     i=0
11099   teststring="ABCD"
11100
11101   case $build_os in
11102   msdosdjgpp*)
11103     # On DJGPP, this test can blow up pretty badly due to problems in libc
11104     # (any single argument exceeding 2000 bytes causes a buffer overrun
11105     # during glob expansion).  Even if it were fixed, the result of this
11106     # check would be larger than it should be.
11107     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11108     ;;
11109
11110   gnu*)
11111     # Under GNU Hurd, this test is not required because there is
11112     # no limit to the length of command line arguments.
11113     # Libtool will interpret -1 as no limit whatsoever
11114     lt_cv_sys_max_cmd_len=-1;
11115     ;;
11116
11117   cygwin* | mingw*)
11118     # On Win9x/ME, this test blows up -- it succeeds, but takes
11119     # about 5 minutes as the teststring grows exponentially.
11120     # Worse, since 9x/ME are not pre-emptively multitasking,
11121     # you end up with a "frozen" computer, even though with patience
11122     # the test eventually succeeds (with a max line length of 256k).
11123     # Instead, let's just punt: use the minimum linelength reported by
11124     # all of the supported platforms: 8192 (on NT/2K/XP).
11125     lt_cv_sys_max_cmd_len=8192;
11126     ;;
11127
11128   amigaos*)
11129     # On AmigaOS with pdksh, this test takes hours, literally.
11130     # So we just punt and use a minimum line length of 8192.
11131     lt_cv_sys_max_cmd_len=8192;
11132     ;;
11133
11134   netbsd* | freebsd* | openbsd* | darwin* )
11135     # This has been around since 386BSD, at least.  Likely further.
11136     if test -x /sbin/sysctl; then
11137       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11138     elif test -x /usr/sbin/sysctl; then
11139       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11140     else
11141       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11142     fi
11143     # And add a safety zone
11144     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11145     ;;
11146
11147  *)
11148     # If test is not a shell built-in, we'll probably end up computing a
11149     # maximum length that is only half of the actual maximum length, but
11150     # we can't tell.
11151     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11152     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11153                = "XX$teststring") >/dev/null 2>&1 &&
11154             new_result=`expr "X$teststring" : ".*" 2>&1` &&
11155             lt_cv_sys_max_cmd_len=$new_result &&
11156             test $i != 17 # 1/2 MB should be enough
11157     do
11158       i=`expr $i + 1`
11159       teststring=$teststring$teststring
11160     done
11161     teststring=
11162     # Add a significant safety factor because C++ compilers can tack on massive
11163     # amounts of additional arguments before passing them to the linker.
11164     # It appears as though 1/2 is a usable value.
11165     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11166     ;;
11167   esac
11168
11169 fi
11170
11171 if test -n $lt_cv_sys_max_cmd_len ; then
11172   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11173 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11174 else
11175   echo "$as_me:$LINENO: result: none" >&5
11176 echo "${ECHO_T}none" >&6
11177 fi
11178
11179
11180
11181
11182 # Check for command to grab the raw symbol name followed by C symbol from nm.
11183 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11184 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11185 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11186   echo $ECHO_N "(cached) $ECHO_C" >&6
11187 else
11188
11189 # These are sane defaults that work on at least a few old systems.
11190 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11191
11192 # Character class describing NM global symbol codes.
11193 symcode='[BCDEGRST]'
11194
11195 # Regexp to match symbols that can be accessed directly from C.
11196 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11197
11198 # Transform the above into a raw symbol and a C symbol.
11199 symxfrm='\1 \2\3 \3'
11200
11201 # Transform an extracted symbol line into a proper C declaration
11202 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11203
11204 # Transform an extracted symbol line into symbol name and symbol address
11205 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'"
11206
11207 # Define system-specific variables.
11208 case $host_os in
11209 aix*)
11210   symcode='[BCDT]'
11211   ;;
11212 cygwin* | mingw* | pw32*)
11213   symcode='[ABCDGISTW]'
11214   ;;
11215 hpux*) # Its linker distinguishes data from code symbols
11216   if test "$host_cpu" = ia64; then
11217     symcode='[ABCDEGRST]'
11218   fi
11219   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11220   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'"
11221   ;;
11222 linux*)
11223   if test "$host_cpu" = ia64; then
11224     symcode='[ABCDGIRSTW]'
11225     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11226     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'"
11227   fi
11228   ;;
11229 irix* | nonstopux*)
11230   symcode='[BCDEGRST]'
11231   ;;
11232 osf*)
11233   symcode='[BCDEGQRST]'
11234   ;;
11235 solaris* | sysv5*)
11236   symcode='[BDRT]'
11237   ;;
11238 sysv4)
11239   symcode='[DFNSTU]'
11240   ;;
11241 esac
11242
11243 # Handle CRLF in mingw tool chain
11244 opt_cr=
11245 case $build_os in
11246 mingw*)
11247   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11248   ;;
11249 esac
11250
11251 # If we're using GNU nm, then use its standard symbol codes.
11252 case `$NM -V 2>&1` in
11253 *GNU* | *'with BFD'*)
11254   symcode='[ABCDGIRSTW]' ;;
11255 esac
11256
11257 # Try without a prefix undercore, then with it.
11258 for ac_symprfx in "" "_"; do
11259
11260   # Write the raw and C identifiers.
11261   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11262
11263   # Check to see that the pipe works correctly.
11264   pipe_works=no
11265
11266   rm -f conftest*
11267   cat > conftest.$ac_ext <<EOF
11268 #ifdef __cplusplus
11269 extern "C" {
11270 #endif
11271 char nm_test_var;
11272 void nm_test_func(){}
11273 #ifdef __cplusplus
11274 }
11275 #endif
11276 int main(){nm_test_var='a';nm_test_func();return(0);}
11277 EOF
11278
11279   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11280   (eval $ac_compile) 2>&5
11281   ac_status=$?
11282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283   (exit $ac_status); }; then
11284     # Now try to grab the symbols.
11285     nlist=conftest.nm
11286     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11287   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11288   ac_status=$?
11289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290   (exit $ac_status); } && test -s "$nlist"; then
11291       # Try sorting and uniquifying the output.
11292       if sort "$nlist" | uniq > "$nlist"T; then
11293         mv -f "$nlist"T "$nlist"
11294       else
11295         rm -f "$nlist"T
11296       fi
11297
11298       # Make sure that we snagged all the symbols we need.
11299       if grep ' nm_test_var$' "$nlist" >/dev/null; then
11300         if grep ' nm_test_func$' "$nlist" >/dev/null; then
11301           cat <<EOF > conftest.$ac_ext
11302 #ifdef __cplusplus
11303 extern "C" {
11304 #endif
11305
11306 EOF
11307           # Now generate the symbol file.
11308           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11309
11310           cat <<EOF >> conftest.$ac_ext
11311 #if defined (__STDC__) && __STDC__
11312 # define lt_ptr_t void *
11313 #else
11314 # define lt_ptr_t char *
11315 # define const
11316 #endif
11317
11318 /* The mapping between symbol names and symbols. */
11319 const struct {
11320   const char *name;
11321   lt_ptr_t address;
11322 }
11323 lt_preloaded_symbols[] =
11324 {
11325 EOF
11326           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11327           cat <<\EOF >> conftest.$ac_ext
11328   {0, (lt_ptr_t) 0}
11329 };
11330
11331 #ifdef __cplusplus
11332 }
11333 #endif
11334 EOF
11335           # Now try linking the two files.
11336           mv conftest.$ac_objext conftstm.$ac_objext
11337           lt_save_LIBS="$LIBS"
11338           lt_save_CFLAGS="$CFLAGS"
11339           LIBS="conftstm.$ac_objext"
11340           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11341           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11342   (eval $ac_link) 2>&5
11343   ac_status=$?
11344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345   (exit $ac_status); } && test -s conftest${ac_exeext}; then
11346             pipe_works=yes
11347           fi
11348           LIBS="$lt_save_LIBS"
11349           CFLAGS="$lt_save_CFLAGS"
11350         else
11351           echo "cannot find nm_test_func in $nlist" >&5
11352         fi
11353       else
11354         echo "cannot find nm_test_var in $nlist" >&5
11355       fi
11356     else
11357       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11358     fi
11359   else
11360     echo "$progname: failed program was:" >&5
11361     cat conftest.$ac_ext >&5
11362   fi
11363   rm -f conftest* conftst*
11364
11365   # Do not use the global_symbol_pipe unless it works.
11366   if test "$pipe_works" = yes; then
11367     break
11368   else
11369     lt_cv_sys_global_symbol_pipe=
11370   fi
11371 done
11372
11373 fi
11374
11375 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11376   lt_cv_sys_global_symbol_to_cdecl=
11377 fi
11378 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11379   echo "$as_me:$LINENO: result: failed" >&5
11380 echo "${ECHO_T}failed" >&6
11381 else
11382   echo "$as_me:$LINENO: result: ok" >&5
11383 echo "${ECHO_T}ok" >&6
11384 fi
11385
11386 echo "$as_me:$LINENO: checking for objdir" >&5
11387 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11388 if test "${lt_cv_objdir+set}" = set; then
11389   echo $ECHO_N "(cached) $ECHO_C" >&6
11390 else
11391   rm -f .libs 2>/dev/null
11392 mkdir .libs 2>/dev/null
11393 if test -d .libs; then
11394   lt_cv_objdir=.libs
11395 else
11396   # MS-DOS does not allow filenames that begin with a dot.
11397   lt_cv_objdir=_libs
11398 fi
11399 rmdir .libs 2>/dev/null
11400 fi
11401 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11402 echo "${ECHO_T}$lt_cv_objdir" >&6
11403 objdir=$lt_cv_objdir
11404
11405
11406
11407
11408
11409 case $host_os in
11410 aix3*)
11411   # AIX sometimes has problems with the GCC collect2 program.  For some
11412   # reason, if we set the COLLECT_NAMES environment variable, the problems
11413   # vanish in a puff of smoke.
11414   if test "X${COLLECT_NAMES+set}" != Xset; then
11415     COLLECT_NAMES=
11416     export COLLECT_NAMES
11417   fi
11418   ;;
11419 esac
11420
11421 # Sed substitution that helps us do robust quoting.  It backslashifies
11422 # metacharacters that are still active within double-quoted strings.
11423 Xsed='sed -e s/^X//'
11424 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11425
11426 # Same as above, but do not quote variable references.
11427 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11428
11429 # Sed substitution to delay expansion of an escaped shell variable in a
11430 # double_quote_subst'ed string.
11431 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11432
11433 # Sed substitution to avoid accidental globbing in evaled expressions
11434 no_glob_subst='s/\*/\\\*/g'
11435
11436 # Constants:
11437 rm="rm -f"
11438
11439 # Global variables:
11440 default_ofile=mklib
11441 can_build_shared=yes
11442
11443 # All known linkers require a `.a' archive for static linking (except M$VC,
11444 # which needs '.lib').
11445 libext=a
11446 ltmain="$ac_aux_dir/ltmain.sh"
11447 ofile="$default_ofile"
11448 with_gnu_ld="$lt_cv_prog_gnu_ld"
11449
11450 if test -n "$ac_tool_prefix"; then
11451   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11452 set dummy ${ac_tool_prefix}ar; ac_word=$2
11453 echo "$as_me:$LINENO: checking for $ac_word" >&5
11454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11455 if test "${ac_cv_prog_AR+set}" = set; then
11456   echo $ECHO_N "(cached) $ECHO_C" >&6
11457 else
11458   if test -n "$AR"; then
11459   ac_cv_prog_AR="$AR" # Let the user override the test.
11460 else
11461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462 for as_dir in $PATH
11463 do
11464   IFS=$as_save_IFS
11465   test -z "$as_dir" && as_dir=.
11466   for ac_exec_ext in '' $ac_executable_extensions; do
11467   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11468     ac_cv_prog_AR="${ac_tool_prefix}ar"
11469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11470     break 2
11471   fi
11472 done
11473 done
11474
11475 fi
11476 fi
11477 AR=$ac_cv_prog_AR
11478 if test -n "$AR"; then
11479   echo "$as_me:$LINENO: result: $AR" >&5
11480 echo "${ECHO_T}$AR" >&6
11481 else
11482   echo "$as_me:$LINENO: result: no" >&5
11483 echo "${ECHO_T}no" >&6
11484 fi
11485
11486 fi
11487 if test -z "$ac_cv_prog_AR"; then
11488   ac_ct_AR=$AR
11489   # Extract the first word of "ar", so it can be a program name with args.
11490 set dummy ar; ac_word=$2
11491 echo "$as_me:$LINENO: checking for $ac_word" >&5
11492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11493 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11494   echo $ECHO_N "(cached) $ECHO_C" >&6
11495 else
11496   if test -n "$ac_ct_AR"; then
11497   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11498 else
11499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11500 for as_dir in $PATH
11501 do
11502   IFS=$as_save_IFS
11503   test -z "$as_dir" && as_dir=.
11504   for ac_exec_ext in '' $ac_executable_extensions; do
11505   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11506     ac_cv_prog_ac_ct_AR="ar"
11507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11508     break 2
11509   fi
11510 done
11511 done
11512
11513   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11514 fi
11515 fi
11516 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11517 if test -n "$ac_ct_AR"; then
11518   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11519 echo "${ECHO_T}$ac_ct_AR" >&6
11520 else
11521   echo "$as_me:$LINENO: result: no" >&5
11522 echo "${ECHO_T}no" >&6
11523 fi
11524
11525   AR=$ac_ct_AR
11526 else
11527   AR="$ac_cv_prog_AR"
11528 fi
11529
11530 if test -n "$ac_tool_prefix"; then
11531   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11532 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11533 echo "$as_me:$LINENO: checking for $ac_word" >&5
11534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11535 if test "${ac_cv_prog_RANLIB+set}" = set; then
11536   echo $ECHO_N "(cached) $ECHO_C" >&6
11537 else
11538   if test -n "$RANLIB"; then
11539   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11540 else
11541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11542 for as_dir in $PATH
11543 do
11544   IFS=$as_save_IFS
11545   test -z "$as_dir" && as_dir=.
11546   for ac_exec_ext in '' $ac_executable_extensions; do
11547   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11548     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11549     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11550     break 2
11551   fi
11552 done
11553 done
11554
11555 fi
11556 fi
11557 RANLIB=$ac_cv_prog_RANLIB
11558 if test -n "$RANLIB"; then
11559   echo "$as_me:$LINENO: result: $RANLIB" >&5
11560 echo "${ECHO_T}$RANLIB" >&6
11561 else
11562   echo "$as_me:$LINENO: result: no" >&5
11563 echo "${ECHO_T}no" >&6
11564 fi
11565
11566 fi
11567 if test -z "$ac_cv_prog_RANLIB"; then
11568   ac_ct_RANLIB=$RANLIB
11569   # Extract the first word of "ranlib", so it can be a program name with args.
11570 set dummy ranlib; ac_word=$2
11571 echo "$as_me:$LINENO: checking for $ac_word" >&5
11572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11573 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11574   echo $ECHO_N "(cached) $ECHO_C" >&6
11575 else
11576   if test -n "$ac_ct_RANLIB"; then
11577   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11578 else
11579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580 for as_dir in $PATH
11581 do
11582   IFS=$as_save_IFS
11583   test -z "$as_dir" && as_dir=.
11584   for ac_exec_ext in '' $ac_executable_extensions; do
11585   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11586     ac_cv_prog_ac_ct_RANLIB="ranlib"
11587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11588     break 2
11589   fi
11590 done
11591 done
11592
11593   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11594 fi
11595 fi
11596 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11597 if test -n "$ac_ct_RANLIB"; then
11598   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11599 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11600 else
11601   echo "$as_me:$LINENO: result: no" >&5
11602 echo "${ECHO_T}no" >&6
11603 fi
11604
11605   RANLIB=$ac_ct_RANLIB
11606 else
11607   RANLIB="$ac_cv_prog_RANLIB"
11608 fi
11609
11610 if test -n "$ac_tool_prefix"; then
11611   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11612 set dummy ${ac_tool_prefix}strip; ac_word=$2
11613 echo "$as_me:$LINENO: checking for $ac_word" >&5
11614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11615 if test "${ac_cv_prog_STRIP+set}" = set; then
11616   echo $ECHO_N "(cached) $ECHO_C" >&6
11617 else
11618   if test -n "$STRIP"; then
11619   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11620 else
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622 for as_dir in $PATH
11623 do
11624   IFS=$as_save_IFS
11625   test -z "$as_dir" && as_dir=.
11626   for ac_exec_ext in '' $ac_executable_extensions; do
11627   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11628     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11630     break 2
11631   fi
11632 done
11633 done
11634
11635 fi
11636 fi
11637 STRIP=$ac_cv_prog_STRIP
11638 if test -n "$STRIP"; then
11639   echo "$as_me:$LINENO: result: $STRIP" >&5
11640 echo "${ECHO_T}$STRIP" >&6
11641 else
11642   echo "$as_me:$LINENO: result: no" >&5
11643 echo "${ECHO_T}no" >&6
11644 fi
11645
11646 fi
11647 if test -z "$ac_cv_prog_STRIP"; then
11648   ac_ct_STRIP=$STRIP
11649   # Extract the first word of "strip", so it can be a program name with args.
11650 set dummy strip; ac_word=$2
11651 echo "$as_me:$LINENO: checking for $ac_word" >&5
11652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11653 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11654   echo $ECHO_N "(cached) $ECHO_C" >&6
11655 else
11656   if test -n "$ac_ct_STRIP"; then
11657   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11658 else
11659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660 for as_dir in $PATH
11661 do
11662   IFS=$as_save_IFS
11663   test -z "$as_dir" && as_dir=.
11664   for ac_exec_ext in '' $ac_executable_extensions; do
11665   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11666     ac_cv_prog_ac_ct_STRIP="strip"
11667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11668     break 2
11669   fi
11670 done
11671 done
11672
11673   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11674 fi
11675 fi
11676 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11677 if test -n "$ac_ct_STRIP"; then
11678   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11679 echo "${ECHO_T}$ac_ct_STRIP" >&6
11680 else
11681   echo "$as_me:$LINENO: result: no" >&5
11682 echo "${ECHO_T}no" >&6
11683 fi
11684
11685   STRIP=$ac_ct_STRIP
11686 else
11687   STRIP="$ac_cv_prog_STRIP"
11688 fi
11689
11690
11691 old_CC="$CC"
11692 old_CFLAGS="$CFLAGS"
11693
11694 # Set sane defaults for various variables
11695 test -z "$AR" && AR=ar
11696 test -z "$AR_FLAGS" && AR_FLAGS=cru
11697 test -z "$AS" && AS=as
11698 test -z "$CC" && CC=cc
11699 test -z "$LTCC" && LTCC=$CC
11700 test -z "$DLLTOOL" && DLLTOOL=dlltool
11701 test -z "$LD" && LD=ld
11702 test -z "$LN_S" && LN_S="ln -s"
11703 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11704 test -z "$NM" && NM=nm
11705 test -z "$SED" && SED=sed
11706 test -z "$OBJDUMP" && OBJDUMP=objdump
11707 test -z "$RANLIB" && RANLIB=:
11708 test -z "$STRIP" && STRIP=:
11709 test -z "$ac_objext" && ac_objext=o
11710
11711 # Determine commands to create old-style static archives.
11712 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11713 old_postinstall_cmds='chmod 644 $oldlib'
11714 old_postuninstall_cmds=
11715
11716 if test -n "$RANLIB"; then
11717   case $host_os in
11718   openbsd*)
11719     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11720     ;;
11721   *)
11722     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11723     ;;
11724   esac
11725   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11726 fi
11727
11728 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11729
11730 # Only perform the check for file, if the check method requires it
11731 case $deplibs_check_method in
11732 file_magic*)
11733   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11734     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11735 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11736 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11737   echo $ECHO_N "(cached) $ECHO_C" >&6
11738 else
11739   case $MAGIC_CMD in
11740 [\\/*] |  ?:[\\/]*)
11741   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11742   ;;
11743 *)
11744   lt_save_MAGIC_CMD="$MAGIC_CMD"
11745   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11746   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11747   for ac_dir in $ac_dummy; do
11748     IFS="$lt_save_ifs"
11749     test -z "$ac_dir" && ac_dir=.
11750     if test -f $ac_dir/${ac_tool_prefix}file; then
11751       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11752       if test -n "$file_magic_test_file"; then
11753         case $deplibs_check_method in
11754         "file_magic "*)
11755           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11756           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11757           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11758             $EGREP "$file_magic_regex" > /dev/null; then
11759             :
11760           else
11761             cat <<EOF 1>&2
11762
11763 *** Warning: the command libtool uses to detect shared libraries,
11764 *** $file_magic_cmd, produces output that libtool cannot recognize.
11765 *** The result is that libtool may fail to recognize shared libraries
11766 *** as such.  This will affect the creation of libtool libraries that
11767 *** depend on shared libraries, but programs linked with such libtool
11768 *** libraries will work regardless of this problem.  Nevertheless, you
11769 *** may want to report the problem to your system manager and/or to
11770 *** bug-libtool@gnu.org
11771
11772 EOF
11773           fi ;;
11774         esac
11775       fi
11776       break
11777     fi
11778   done
11779   IFS="$lt_save_ifs"
11780   MAGIC_CMD="$lt_save_MAGIC_CMD"
11781   ;;
11782 esac
11783 fi
11784
11785 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11786 if test -n "$MAGIC_CMD"; then
11787   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11788 echo "${ECHO_T}$MAGIC_CMD" >&6
11789 else
11790   echo "$as_me:$LINENO: result: no" >&5
11791 echo "${ECHO_T}no" >&6
11792 fi
11793
11794 if test -z "$lt_cv_path_MAGIC_CMD"; then
11795   if test -n "$ac_tool_prefix"; then
11796     echo "$as_me:$LINENO: checking for file" >&5
11797 echo $ECHO_N "checking for file... $ECHO_C" >&6
11798 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11799   echo $ECHO_N "(cached) $ECHO_C" >&6
11800 else
11801   case $MAGIC_CMD in
11802 [\\/*] |  ?:[\\/]*)
11803   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11804   ;;
11805 *)
11806   lt_save_MAGIC_CMD="$MAGIC_CMD"
11807   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11808   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11809   for ac_dir in $ac_dummy; do
11810     IFS="$lt_save_ifs"
11811     test -z "$ac_dir" && ac_dir=.
11812     if test -f $ac_dir/file; then
11813       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11814       if test -n "$file_magic_test_file"; then
11815         case $deplibs_check_method in
11816         "file_magic "*)
11817           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11818           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11819           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11820             $EGREP "$file_magic_regex" > /dev/null; then
11821             :
11822           else
11823             cat <<EOF 1>&2
11824
11825 *** Warning: the command libtool uses to detect shared libraries,
11826 *** $file_magic_cmd, produces output that libtool cannot recognize.
11827 *** The result is that libtool may fail to recognize shared libraries
11828 *** as such.  This will affect the creation of libtool libraries that
11829 *** depend on shared libraries, but programs linked with such libtool
11830 *** libraries will work regardless of this problem.  Nevertheless, you
11831 *** may want to report the problem to your system manager and/or to
11832 *** bug-libtool@gnu.org
11833
11834 EOF
11835           fi ;;
11836         esac
11837       fi
11838       break
11839     fi
11840   done
11841   IFS="$lt_save_ifs"
11842   MAGIC_CMD="$lt_save_MAGIC_CMD"
11843   ;;
11844 esac
11845 fi
11846
11847 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11848 if test -n "$MAGIC_CMD"; then
11849   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11850 echo "${ECHO_T}$MAGIC_CMD" >&6
11851 else
11852   echo "$as_me:$LINENO: result: no" >&5
11853 echo "${ECHO_T}no" >&6
11854 fi
11855
11856   else
11857     MAGIC_CMD=:
11858   fi
11859 fi
11860
11861   fi
11862   ;;
11863 esac
11864
11865 enable_dlopen=yes
11866 enable_win32_dll=no
11867
11868 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11869 if test "${enable_libtool_lock+set}" = set; then
11870   enableval="$enable_libtool_lock"
11871
11872 fi;
11873 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11874
11875
11876 # Check whether --with-pic or --without-pic was given.
11877 if test "${with_pic+set}" = set; then
11878   withval="$with_pic"
11879   pic_mode="$withval"
11880 else
11881   pic_mode=default
11882 fi;
11883 test -z "$pic_mode" && pic_mode=default
11884
11885 # Use C for the default configuration in the libtool script
11886 tagname=
11887 lt_save_CC="$CC"
11888 ac_ext=c
11889 ac_cpp='$CPP $CPPFLAGS'
11890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11893
11894
11895 # Source file extension for C test sources.
11896 ac_ext=c
11897
11898 # Object file extension for compiled C test sources.
11899 objext=o
11900 objext=$objext
11901
11902 # Code to be used in simple compile tests
11903 lt_simple_compile_test_code="int some_variable = 0;\n"
11904
11905 # Code to be used in simple link tests
11906 lt_simple_link_test_code='int main(){return(0);}\n'
11907
11908
11909 # If no C compiler was specified, use CC.
11910 LTCC=${LTCC-"$CC"}
11911
11912 # Allow CC to be a program name with arguments.
11913 compiler=$CC
11914
11915
11916 #
11917 # Check for any special shared library compilation flags.
11918 #
11919 lt_prog_cc_shlib=
11920 if test "$GCC" = no; then
11921   case $host_os in
11922   sco3.2v5*)
11923     lt_prog_cc_shlib='-belf'
11924     ;;
11925   esac
11926 fi
11927 if test -n "$lt_prog_cc_shlib"; then
11928   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11929 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11930   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
11931   else
11932     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11933 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11934     lt_cv_prog_cc_can_build_shared=no
11935   fi
11936 fi
11937
11938
11939 #
11940 # Check to make sure the static flag actually works.
11941 #
11942 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11943 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11944 if test "${lt_prog_compiler_static_works+set}" = set; then
11945   echo $ECHO_N "(cached) $ECHO_C" >&6
11946 else
11947   lt_prog_compiler_static_works=no
11948    save_LDFLAGS="$LDFLAGS"
11949    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11950    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11951    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11952      # The compiler can only warn and ignore the option if not recognized
11953      # So say no if there are warnings
11954      if test -s conftest.err; then
11955        # Append any errors to the config.log.
11956        cat conftest.err 1>&5
11957      else
11958        lt_prog_compiler_static_works=yes
11959      fi
11960    fi
11961    $rm conftest*
11962    LDFLAGS="$save_LDFLAGS"
11963
11964 fi
11965 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11966 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11967
11968 if test x"$lt_prog_compiler_static_works" = xyes; then
11969     :
11970 else
11971     lt_prog_compiler_static=
11972 fi
11973
11974
11975
11976
11977 lt_prog_compiler_no_builtin_flag=
11978
11979 if test "$GCC" = yes; then
11980   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11981
11982
11983 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11984 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11985 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11986   echo $ECHO_N "(cached) $ECHO_C" >&6
11987 else
11988   lt_cv_prog_compiler_rtti_exceptions=no
11989   ac_outfile=conftest.$ac_objext
11990    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11991    lt_compiler_flag="-fno-rtti -fno-exceptions"
11992    # Insert the option either (1) after the last *FLAGS variable, or
11993    # (2) before a word containing "conftest.", or (3) at the end.
11994    # Note that $ac_compile itself does not contain backslashes and begins
11995    # with a dollar sign (not a hyphen), so the echo should work correctly.
11996    # The option is referenced via a variable to avoid confusing sed.
11997    lt_compile=`echo "$ac_compile" | $SED \
11998    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11999    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12000    -e 's:$: $lt_compiler_flag:'`
12001    (eval echo "\"\$as_me:12001: $lt_compile\"" >&5)
12002    (eval "$lt_compile" 2>conftest.err)
12003    ac_status=$?
12004    cat conftest.err >&5
12005    echo "$as_me:12005: \$? = $ac_status" >&5
12006    if (exit $ac_status) && test -s "$ac_outfile"; then
12007      # The compiler can only warn and ignore the option if not recognized
12008      # So say no if there are warnings
12009      if test ! -s conftest.err; then
12010        lt_cv_prog_compiler_rtti_exceptions=yes
12011      fi
12012    fi
12013    $rm conftest*
12014
12015 fi
12016 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12017 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12018
12019 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12020     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12021 else
12022     :
12023 fi
12024
12025 fi
12026
12027 lt_prog_compiler_wl=
12028 lt_prog_compiler_pic=
12029 lt_prog_compiler_static=
12030
12031 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12032 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12033
12034   if test "$GCC" = yes; then
12035     lt_prog_compiler_wl='-Wl,'
12036     lt_prog_compiler_static='-static'
12037
12038     case $host_os in
12039       aix*)
12040       # All AIX code is PIC.
12041       if test "$host_cpu" = ia64; then
12042         # AIX 5 now supports IA64 processor
12043         lt_prog_compiler_static='-Bstatic'
12044       fi
12045       ;;
12046
12047     amigaos*)
12048       # FIXME: we need at least 68020 code to build shared libraries, but
12049       # adding the `-m68020' flag to GCC prevents building anything better,
12050       # like `-m68040'.
12051       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12052       ;;
12053
12054     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12055       # PIC is the default for these OSes.
12056       ;;
12057
12058     mingw* | pw32* | os2*)
12059       # This hack is so that the source file can tell whether it is being
12060       # built for inclusion in a dll (and should export symbols for example).
12061       lt_prog_compiler_pic='-DDLL_EXPORT'
12062       ;;
12063
12064     darwin* | rhapsody*)
12065       # PIC is the default on this platform
12066       # Common symbols not allowed in MH_DYLIB files
12067       lt_prog_compiler_pic='-fno-common'
12068       ;;
12069
12070     msdosdjgpp*)
12071       # Just because we use GCC doesn't mean we suddenly get shared libraries
12072       # on systems that don't support them.
12073       lt_prog_compiler_can_build_shared=no
12074       enable_shared=no
12075       ;;
12076
12077     sysv4*MP*)
12078       if test -d /usr/nec; then
12079         lt_prog_compiler_pic=-Kconform_pic
12080       fi
12081       ;;
12082
12083     hpux*)
12084       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12085       # not for PA HP-UX.
12086       case "$host_cpu" in
12087       hppa*64*|ia64*)
12088         # +Z the default
12089         ;;
12090       *)
12091         lt_prog_compiler_pic='-fPIC'
12092         ;;
12093       esac
12094       ;;
12095
12096     *)
12097       lt_prog_compiler_pic='-fPIC'
12098       ;;
12099     esac
12100   else
12101     # PORTME Check for flag to pass linker flags through the system compiler.
12102     case $host_os in
12103     aix*)
12104       lt_prog_compiler_wl='-Wl,'
12105       if test "$host_cpu" = ia64; then
12106         # AIX 5 now supports IA64 processor
12107         lt_prog_compiler_static='-Bstatic'
12108       else
12109         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12110       fi
12111       ;;
12112       darwin*)
12113         # PIC is the default on this platform
12114         # Common symbols not allowed in MH_DYLIB files
12115        case "$cc_basename" in
12116          xlc*)
12117          lt_prog_compiler_pic='-qnocommon'
12118          lt_prog_compiler_wl='-Wl,'
12119          ;;
12120        esac
12121        ;;
12122
12123     mingw* | pw32* | os2*)
12124       # This hack is so that the source file can tell whether it is being
12125       # built for inclusion in a dll (and should export symbols for example).
12126       lt_prog_compiler_pic='-DDLL_EXPORT'
12127       ;;
12128
12129     hpux9* | hpux10* | hpux11*)
12130       lt_prog_compiler_wl='-Wl,'
12131       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12132       # not for PA HP-UX.
12133       case "$host_cpu" in
12134       hppa*64*|ia64*)
12135         # +Z the default
12136         ;;
12137       *)
12138         lt_prog_compiler_pic='+Z'
12139         ;;
12140       esac
12141       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12142       lt_prog_compiler_static='${wl}-a ${wl}archive'
12143       ;;
12144
12145     irix5* | irix6* | nonstopux*)
12146       lt_prog_compiler_wl='-Wl,'
12147       # PIC (with -KPIC) is the default.
12148       lt_prog_compiler_static='-non_shared'
12149       ;;
12150
12151     newsos6)
12152       lt_prog_compiler_pic='-KPIC'
12153       lt_prog_compiler_static='-Bstatic'
12154       ;;
12155
12156     linux*)
12157       case $CC in
12158       icc* | ecc*)
12159         lt_prog_compiler_wl='-Wl,'
12160         lt_prog_compiler_pic='-KPIC'
12161         lt_prog_compiler_static='-static'
12162         ;;
12163       ccc*)
12164         lt_prog_compiler_wl='-Wl,'
12165         # All Alpha code is PIC.
12166         lt_prog_compiler_static='-non_shared'
12167         ;;
12168       esac
12169       ;;
12170
12171     osf3* | osf4* | osf5*)
12172       lt_prog_compiler_wl='-Wl,'
12173       # All OSF/1 code is PIC.
12174       lt_prog_compiler_static='-non_shared'
12175       ;;
12176
12177     sco3.2v5*)
12178       lt_prog_compiler_pic='-Kpic'
12179       lt_prog_compiler_static='-dn'
12180       ;;
12181
12182     solaris*)
12183       lt_prog_compiler_wl='-Wl,'
12184       lt_prog_compiler_pic='-KPIC'
12185       lt_prog_compiler_static='-Bstatic'
12186       ;;
12187
12188     sunos4*)
12189       lt_prog_compiler_wl='-Qoption ld '
12190       lt_prog_compiler_pic='-PIC'
12191       lt_prog_compiler_static='-Bstatic'
12192       ;;
12193
12194     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12195       lt_prog_compiler_wl='-Wl,'
12196       lt_prog_compiler_pic='-KPIC'
12197       lt_prog_compiler_static='-Bstatic'
12198       ;;
12199
12200     sysv4*MP*)
12201       if test -d /usr/nec ;then
12202         lt_prog_compiler_pic='-Kconform_pic'
12203         lt_prog_compiler_static='-Bstatic'
12204       fi
12205       ;;
12206
12207     uts4*)
12208       lt_prog_compiler_pic='-pic'
12209       lt_prog_compiler_static='-Bstatic'
12210       ;;
12211
12212     *)
12213       lt_prog_compiler_can_build_shared=no
12214       ;;
12215     esac
12216   fi
12217
12218 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12219 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12220
12221 #
12222 # Check to make sure the PIC flag actually works.
12223 #
12224 if test -n "$lt_prog_compiler_pic"; then
12225
12226 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12227 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12228 if test "${lt_prog_compiler_pic_works+set}" = set; then
12229   echo $ECHO_N "(cached) $ECHO_C" >&6
12230 else
12231   lt_prog_compiler_pic_works=no
12232   ac_outfile=conftest.$ac_objext
12233    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12234    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12235    # Insert the option either (1) after the last *FLAGS variable, or
12236    # (2) before a word containing "conftest.", or (3) at the end.
12237    # Note that $ac_compile itself does not contain backslashes and begins
12238    # with a dollar sign (not a hyphen), so the echo should work correctly.
12239    # The option is referenced via a variable to avoid confusing sed.
12240    lt_compile=`echo "$ac_compile" | $SED \
12241    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12242    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12243    -e 's:$: $lt_compiler_flag:'`
12244    (eval echo "\"\$as_me:12244: $lt_compile\"" >&5)
12245    (eval "$lt_compile" 2>conftest.err)
12246    ac_status=$?
12247    cat conftest.err >&5
12248    echo "$as_me:12248: \$? = $ac_status" >&5
12249    if (exit $ac_status) && test -s "$ac_outfile"; then
12250      # The compiler can only warn and ignore the option if not recognized
12251      # So say no if there are warnings
12252      if test ! -s conftest.err; then
12253        lt_prog_compiler_pic_works=yes
12254      fi
12255    fi
12256    $rm conftest*
12257
12258 fi
12259 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12260 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12261
12262 if test x"$lt_prog_compiler_pic_works" = xyes; then
12263     case $lt_prog_compiler_pic in
12264      "" | " "*) ;;
12265      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12266      esac
12267 else
12268     lt_prog_compiler_pic=
12269      lt_prog_compiler_can_build_shared=no
12270 fi
12271
12272 fi
12273 case "$host_os" in
12274   # For platforms which do not support PIC, -DPIC is meaningless:
12275   *djgpp*)
12276     lt_prog_compiler_pic=
12277     ;;
12278   *)
12279     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12280     ;;
12281 esac
12282
12283 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12284 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12285 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12286   echo $ECHO_N "(cached) $ECHO_C" >&6
12287 else
12288   lt_cv_prog_compiler_c_o=no
12289    $rm -r conftest 2>/dev/null
12290    mkdir conftest
12291    cd conftest
12292    mkdir out
12293    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12294
12295    lt_compiler_flag="-o out/conftest2.$ac_objext"
12296    # Insert the option either (1) after the last *FLAGS variable, or
12297    # (2) before a word containing "conftest.", or (3) at the end.
12298    # Note that $ac_compile itself does not contain backslashes and begins
12299    # with a dollar sign (not a hyphen), so the echo should work correctly.
12300    lt_compile=`echo "$ac_compile" | $SED \
12301    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12302    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12303    -e 's:$: $lt_compiler_flag:'`
12304    (eval echo "\"\$as_me:12304: $lt_compile\"" >&5)
12305    (eval "$lt_compile" 2>out/conftest.err)
12306    ac_status=$?
12307    cat out/conftest.err >&5
12308    echo "$as_me:12308: \$? = $ac_status" >&5
12309    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12310    then
12311      # The compiler can only warn and ignore the option if not recognized
12312      # So say no if there are warnings
12313      if test ! -s out/conftest.err; then
12314        lt_cv_prog_compiler_c_o=yes
12315      fi
12316    fi
12317    chmod u+w .
12318    $rm conftest*
12319    # SGI C++ compiler will create directory out/ii_files/ for
12320    # template instantiation
12321    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12322    $rm out/* && rmdir out
12323    cd ..
12324    rmdir conftest
12325    $rm conftest*
12326
12327 fi
12328 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12329 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12330
12331
12332 hard_links="nottested"
12333 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12334   # do not overwrite the value of need_locks provided by the user
12335   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12336 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12337   hard_links=yes
12338   $rm conftest*
12339   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12340   touch conftest.a
12341   ln conftest.a conftest.b 2>&5 || hard_links=no
12342   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12343   echo "$as_me:$LINENO: result: $hard_links" >&5
12344 echo "${ECHO_T}$hard_links" >&6
12345   if test "$hard_links" = no; then
12346     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12347 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12348     need_locks=warn
12349   fi
12350 else
12351   need_locks=no
12352 fi
12353
12354 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12355 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12356
12357   runpath_var=
12358   allow_undefined_flag=
12359   enable_shared_with_static_runtimes=no
12360   archive_cmds=
12361   archive_expsym_cmds=
12362   old_archive_From_new_cmds=
12363   old_archive_from_expsyms_cmds=
12364   export_dynamic_flag_spec=
12365   whole_archive_flag_spec=
12366   thread_safe_flag_spec=
12367   hardcode_libdir_flag_spec=
12368   hardcode_libdir_flag_spec_ld=
12369   hardcode_libdir_separator=
12370   hardcode_direct=no
12371   hardcode_minus_L=no
12372   hardcode_shlibpath_var=unsupported
12373   link_all_deplibs=unknown
12374   hardcode_automatic=no
12375   module_cmds=
12376   module_expsym_cmds=
12377   always_export_symbols=no
12378   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12379   # include_expsyms should be a list of space-separated symbols to be *always*
12380   # included in the symbol list
12381   include_expsyms=
12382   # exclude_expsyms can be an extended regexp of symbols to exclude
12383   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12384   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12385   # as well as any symbol that contains `d'.
12386   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12387   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12388   # platforms (ab)use it in PIC code, but their linkers get confused if
12389   # the symbol is explicitly referenced.  Since portable code cannot
12390   # rely on this symbol name, it's probably fine to never include it in
12391   # preloaded symbol tables.
12392   extract_expsyms_cmds=
12393
12394   case $host_os in
12395   cygwin* | mingw* | pw32*)
12396     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12397     # When not using gcc, we currently assume that we are using
12398     # Microsoft Visual C++.
12399     if test "$GCC" != yes; then
12400       with_gnu_ld=no
12401     fi
12402     ;;
12403   openbsd*)
12404     with_gnu_ld=no
12405     ;;
12406   esac
12407
12408   ld_shlibs=yes
12409   if test "$with_gnu_ld" = yes; then
12410     # If archive_cmds runs LD, not CC, wlarc should be empty
12411     wlarc='${wl}'
12412
12413     # See if GNU ld supports shared libraries.
12414     case $host_os in
12415     aix3* | aix4* | aix5*)
12416       # On AIX/PPC, the GNU linker is very broken
12417       if test "$host_cpu" != ia64; then
12418         ld_shlibs=no
12419         cat <<EOF 1>&2
12420
12421 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12422 *** to be unable to reliably create shared libraries on AIX.
12423 *** Therefore, libtool is disabling shared libraries support.  If you
12424 *** really care for shared libraries, you may want to modify your PATH
12425 *** so that a non-GNU linker is found, and then restart.
12426
12427 EOF
12428       fi
12429       ;;
12430
12431     amigaos*)
12432       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)'
12433       hardcode_libdir_flag_spec='-L$libdir'
12434       hardcode_minus_L=yes
12435
12436       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12437       # that the semantics of dynamic libraries on AmigaOS, at least up
12438       # to version 4, is to share data among multiple programs linked
12439       # with the same dynamic library.  Since this doesn't match the
12440       # behavior of shared libraries on other platforms, we can't use
12441       # them.
12442       ld_shlibs=no
12443       ;;
12444
12445     beos*)
12446       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12447         allow_undefined_flag=unsupported
12448         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12449         # support --undefined.  This deserves some investigation.  FIXME
12450         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12451       else
12452         ld_shlibs=no
12453       fi
12454       ;;
12455
12456     cygwin* | mingw* | pw32*)
12457       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12458       # as there is no search path for DLLs.
12459       hardcode_libdir_flag_spec='-L$libdir'
12460       allow_undefined_flag=unsupported
12461       always_export_symbols=no
12462       enable_shared_with_static_runtimes=yes
12463       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12464
12465       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12466         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12467         # If the export-symbols file already is a .def file (1st line
12468         # is EXPORTS), use it as is; otherwise, prepend...
12469         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12470           cp $export_symbols $output_objdir/$soname.def;
12471         else
12472           echo EXPORTS > $output_objdir/$soname.def;
12473           cat $export_symbols >> $output_objdir/$soname.def;
12474         fi~
12475         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12476       else
12477         ld_shlibs=no
12478       fi
12479       ;;
12480
12481     netbsd*)
12482       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12483         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12484         wlarc=
12485       else
12486         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12487         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12488       fi
12489       ;;
12490
12491     solaris* | sysv5*)
12492       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12493         ld_shlibs=no
12494         cat <<EOF 1>&2
12495
12496 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12497 *** create shared libraries on Solaris systems.  Therefore, libtool
12498 *** is disabling shared libraries support.  We urge you to upgrade GNU
12499 *** binutils to release 2.9.1 or newer.  Another option is to modify
12500 *** your PATH or compiler configuration so that the native linker is
12501 *** used, and then restart.
12502
12503 EOF
12504       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12505         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12506         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12507       else
12508         ld_shlibs=no
12509       fi
12510       ;;
12511
12512     sunos4*)
12513       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12514       wlarc=
12515       hardcode_direct=yes
12516       hardcode_shlibpath_var=no
12517       ;;
12518
12519   linux*)
12520     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12521         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12522         archive_cmds="$tmp_archive_cmds"
12523       supports_anon_versioning=no
12524       case `$LD -v 2>/dev/null` in
12525         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12526         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12527         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12528         *\ 2.11.*) ;; # other 2.11 versions
12529         *) supports_anon_versioning=yes ;;
12530       esac
12531       if test $supports_anon_versioning = yes; then
12532         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12533 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12534 $echo "local: *; };" >> $output_objdir/$libname.ver~
12535         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12536       else
12537         archive_expsym_cmds="$tmp_archive_cmds"
12538       fi
12539     else
12540       ld_shlibs=no
12541     fi
12542     ;;
12543
12544     *)
12545       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12546         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12547         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12548       else
12549         ld_shlibs=no
12550       fi
12551       ;;
12552     esac
12553
12554     if test "$ld_shlibs" = yes; then
12555       runpath_var=LD_RUN_PATH
12556       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12557       export_dynamic_flag_spec='${wl}--export-dynamic'
12558       # ancient GNU ld didn't support --whole-archive et. al.
12559       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12560         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12561       else
12562         whole_archive_flag_spec=
12563       fi
12564     fi
12565   else
12566     # PORTME fill in a description of your system's linker (not GNU ld)
12567     case $host_os in
12568     aix3*)
12569       allow_undefined_flag=unsupported
12570       always_export_symbols=yes
12571       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'
12572       # Note: this linker hardcodes the directories in LIBPATH if there
12573       # are no directories specified by -L.
12574       hardcode_minus_L=yes
12575       if test "$GCC" = yes && test -z "$link_static_flag"; then
12576         # Neither direct hardcoding nor static linking is supported with a
12577         # broken collect2.
12578         hardcode_direct=unsupported
12579       fi
12580       ;;
12581
12582     aix4* | aix5*)
12583       if test "$host_cpu" = ia64; then
12584         # On IA64, the linker does run time linking by default, so we don't
12585         # have to do anything special.
12586         aix_use_runtimelinking=no
12587         exp_sym_flag='-Bexport'
12588         no_entry_flag=""
12589       else
12590         # If we're using GNU nm, then we don't want the "-C" option.
12591         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12592         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12593           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'
12594         else
12595           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'
12596         fi
12597         aix_use_runtimelinking=no
12598
12599         # Test if we are trying to use run time linking or normal
12600         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12601         # need to do runtime linking.
12602         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12603           for ld_flag in $LDFLAGS; do
12604           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12605             aix_use_runtimelinking=yes
12606             break
12607           fi
12608           done
12609         esac
12610
12611         exp_sym_flag='-bexport'
12612         no_entry_flag='-bnoentry'
12613       fi
12614
12615       # When large executables or shared objects are built, AIX ld can
12616       # have problems creating the table of contents.  If linking a library
12617       # or program results in "error TOC overflow" add -mminimal-toc to
12618       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12619       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12620
12621       archive_cmds=''
12622       hardcode_direct=yes
12623       hardcode_libdir_separator=':'
12624       link_all_deplibs=yes
12625
12626       if test "$GCC" = yes; then
12627         case $host_os in aix4.012|aix4.012.*)
12628         # We only want to do this on AIX 4.2 and lower, the check
12629         # below for broken collect2 doesn't work under 4.3+
12630           collect2name=`${CC} -print-prog-name=collect2`
12631           if test -f "$collect2name" && \
12632            strings "$collect2name" | grep resolve_lib_name >/dev/null
12633           then
12634           # We have reworked collect2
12635           hardcode_direct=yes
12636           else
12637           # We have old collect2
12638           hardcode_direct=unsupported
12639           # It fails to find uninstalled libraries when the uninstalled
12640           # path is not listed in the libpath.  Setting hardcode_minus_L
12641           # to unsupported forces relinking
12642           hardcode_minus_L=yes
12643           hardcode_libdir_flag_spec='-L$libdir'
12644           hardcode_libdir_separator=
12645           fi
12646         esac
12647         shared_flag='-shared'
12648       else
12649         # not using gcc
12650         if test "$host_cpu" = ia64; then
12651         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12652         # chokes on -Wl,-G. The following line is correct:
12653           shared_flag='-G'
12654         else
12655         if test "$aix_use_runtimelinking" = yes; then
12656             shared_flag='${wl}-G'
12657           else
12658             shared_flag='${wl}-bM:SRE'
12659         fi
12660         fi
12661       fi
12662
12663       # It seems that -bexpall does not export symbols beginning with
12664       # underscore (_), so it is better to generate a list of symbols to export.
12665       always_export_symbols=yes
12666       if test "$aix_use_runtimelinking" = yes; then
12667         # Warning - without using the other runtime loading flags (-brtl),
12668         # -berok will link without error, but may produce a broken library.
12669         allow_undefined_flag='-berok'
12670        # Determine the default libpath from the value encoded in an empty executable.
12671        cat >conftest.$ac_ext <<_ACEOF
12672 /* confdefs.h.  */
12673 _ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h.  */
12677
12678 int
12679 main ()
12680 {
12681
12682   ;
12683   return 0;
12684 }
12685 _ACEOF
12686 rm -f conftest.$ac_objext conftest$ac_exeext
12687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12688   (eval $ac_link) 2>conftest.er1
12689   ac_status=$?
12690   grep -v '^ *+' conftest.er1 >conftest.err
12691   rm -f conftest.er1
12692   cat conftest.err >&5
12693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694   (exit $ac_status); } &&
12695          { ac_try='test -z "$ac_c_werror_flag"
12696                          || test ! -s conftest.err'
12697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12698   (eval $ac_try) 2>&5
12699   ac_status=$?
12700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701   (exit $ac_status); }; } &&
12702          { ac_try='test -s conftest$ac_exeext'
12703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12704   (eval $ac_try) 2>&5
12705   ac_status=$?
12706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707   (exit $ac_status); }; }; then
12708
12709 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12710 }'`
12711 # Check for a 64-bit object if we didn't find anything.
12712 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; }
12713 }'`; fi
12714 else
12715   echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12717
12718 fi
12719 rm -f conftest.err conftest.$ac_objext \
12720       conftest$ac_exeext conftest.$ac_ext
12721 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12722
12723        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12724         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"
12725        else
12726         if test "$host_cpu" = ia64; then
12727           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12728           allow_undefined_flag="-z nodefs"
12729           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"
12730         else
12731          # Determine the default libpath from the value encoded in an empty executable.
12732          cat >conftest.$ac_ext <<_ACEOF
12733 /* confdefs.h.  */
12734 _ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h.  */
12738
12739 int
12740 main ()
12741 {
12742
12743   ;
12744   return 0;
12745 }
12746 _ACEOF
12747 rm -f conftest.$ac_objext conftest$ac_exeext
12748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12749   (eval $ac_link) 2>conftest.er1
12750   ac_status=$?
12751   grep -v '^ *+' conftest.er1 >conftest.err
12752   rm -f conftest.er1
12753   cat conftest.err >&5
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); } &&
12756          { ac_try='test -z "$ac_c_werror_flag"
12757                          || test ! -s conftest.err'
12758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759   (eval $ac_try) 2>&5
12760   ac_status=$?
12761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762   (exit $ac_status); }; } &&
12763          { ac_try='test -s conftest$ac_exeext'
12764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765   (eval $ac_try) 2>&5
12766   ac_status=$?
12767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768   (exit $ac_status); }; }; then
12769
12770 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12771 }'`
12772 # Check for a 64-bit object if we didn't find anything.
12773 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; }
12774 }'`; fi
12775 else
12776   echo "$as_me: failed program was:" >&5
12777 sed 's/^/| /' conftest.$ac_ext >&5
12778
12779 fi
12780 rm -f conftest.err conftest.$ac_objext \
12781       conftest$ac_exeext conftest.$ac_ext
12782 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12783
12784          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12785           # Warning - without using the other run time loading flags,
12786           # -berok will link without error, but may produce a broken library.
12787           no_undefined_flag=' ${wl}-bernotok'
12788           allow_undefined_flag=' ${wl}-berok'
12789           # -bexpall does not export symbols beginning with underscore (_)
12790           always_export_symbols=yes
12791           # Exported symbols can be pulled into shared objects from archives
12792           whole_archive_flag_spec=' '
12793           archive_cmds_need_lc=yes
12794           # This is similar to how AIX traditionally builds it's shared libraries.
12795           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'
12796         fi
12797       fi
12798       ;;
12799
12800     amigaos*)
12801       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)'
12802       hardcode_libdir_flag_spec='-L$libdir'
12803       hardcode_minus_L=yes
12804       # see comment about different semantics on the GNU ld section
12805       ld_shlibs=no
12806       ;;
12807
12808     bsdi[45]*)
12809       export_dynamic_flag_spec=-rdynamic
12810       ;;
12811
12812     cygwin* | mingw* | pw32*)
12813       # When not using gcc, we currently assume that we are using
12814       # Microsoft Visual C++.
12815       # hardcode_libdir_flag_spec is actually meaningless, as there is
12816       # no search path for DLLs.
12817       hardcode_libdir_flag_spec=' '
12818       allow_undefined_flag=unsupported
12819       # Tell ltmain to make .lib files, not .a files.
12820       libext=lib
12821       # Tell ltmain to make .dll files, not .so files.
12822       shrext_cmds=".dll"
12823       # FIXME: Setting linknames here is a bad hack.
12824       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12825       # The linker will automatically build a .lib file if we build a DLL.
12826       old_archive_From_new_cmds='true'
12827       # FIXME: Should let the user specify the lib program.
12828       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12829       fix_srcfile_path='`cygpath -w "$srcfile"`'
12830       enable_shared_with_static_runtimes=yes
12831       ;;
12832
12833     darwin* | rhapsody*)
12834       case "$host_os" in
12835         rhapsody* | darwin1.[012])
12836          allow_undefined_flag='${wl}-undefined ${wl}suppress'
12837          ;;
12838        *) # Darwin 1.3 on
12839          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12840            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12841          else
12842            case ${MACOSX_DEPLOYMENT_TARGET} in
12843              10.[012])
12844                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12845                ;;
12846              10.*)
12847                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12848                ;;
12849            esac
12850          fi
12851          ;;
12852       esac
12853       archive_cmds_need_lc=no
12854       hardcode_direct=no
12855       hardcode_automatic=yes
12856       hardcode_shlibpath_var=unsupported
12857       whole_archive_flag_spec=''
12858       link_all_deplibs=yes
12859     if test "$GCC" = yes ; then
12860         output_verbose_link_cmd='echo'
12861         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12862       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12863       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12864       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}'
12865       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}'
12866     else
12867       case "$cc_basename" in
12868         xlc*)
12869          output_verbose_link_cmd='echo'
12870          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12871          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12872           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12873          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}'
12874           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}'
12875           ;;
12876        *)
12877          ld_shlibs=no
12878           ;;
12879       esac
12880     fi
12881       ;;
12882
12883     dgux*)
12884       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12885       hardcode_libdir_flag_spec='-L$libdir'
12886       hardcode_shlibpath_var=no
12887       ;;
12888
12889     freebsd1*)
12890       ld_shlibs=no
12891       ;;
12892
12893     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12894     # support.  Future versions do this automatically, but an explicit c++rt0.o
12895     # does not break anything, and helps significantly (at the cost of a little
12896     # extra space).
12897     freebsd2.2*)
12898       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12899       hardcode_libdir_flag_spec='-R$libdir'
12900       hardcode_direct=yes
12901       hardcode_shlibpath_var=no
12902       ;;
12903
12904     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12905     freebsd2*)
12906       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12907       hardcode_direct=yes
12908       hardcode_minus_L=yes
12909       hardcode_shlibpath_var=no
12910       ;;
12911
12912     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12913     freebsd* | kfreebsd*-gnu)
12914       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12915       hardcode_libdir_flag_spec='-R$libdir'
12916       hardcode_direct=yes
12917       hardcode_shlibpath_var=no
12918       ;;
12919
12920     hpux9*)
12921       if test "$GCC" = yes; then
12922         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'
12923       else
12924         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'
12925       fi
12926       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12927       hardcode_libdir_separator=:
12928       hardcode_direct=yes
12929
12930       # hardcode_minus_L: Not really in the search PATH,
12931       # but as the default location of the library.
12932       hardcode_minus_L=yes
12933       export_dynamic_flag_spec='${wl}-E'
12934       ;;
12935
12936     hpux10* | hpux11*)
12937       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12938         case "$host_cpu" in
12939         hppa*64*|ia64*)
12940           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12941           ;;
12942         *)
12943           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12944           ;;
12945         esac
12946       else
12947         case "$host_cpu" in
12948         hppa*64*|ia64*)
12949           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12950           ;;
12951         *)
12952           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12953           ;;
12954         esac
12955       fi
12956       if test "$with_gnu_ld" = no; then
12957         case "$host_cpu" in
12958         hppa*64*)
12959           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12960           hardcode_libdir_flag_spec_ld='+b $libdir'
12961           hardcode_libdir_separator=:
12962           hardcode_direct=no
12963           hardcode_shlibpath_var=no
12964           ;;
12965         ia64*)
12966           hardcode_libdir_flag_spec='-L$libdir'
12967           hardcode_direct=no
12968           hardcode_shlibpath_var=no
12969
12970           # hardcode_minus_L: Not really in the search PATH,
12971           # but as the default location of the library.
12972           hardcode_minus_L=yes
12973           ;;
12974         *)
12975           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12976           hardcode_libdir_separator=:
12977           hardcode_direct=yes
12978           export_dynamic_flag_spec='${wl}-E'
12979
12980           # hardcode_minus_L: Not really in the search PATH,
12981           # but as the default location of the library.
12982           hardcode_minus_L=yes
12983           ;;
12984         esac
12985       fi
12986       ;;
12987
12988     irix5* | irix6* | nonstopux*)
12989       if test "$GCC" = yes; then
12990         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'
12991       else
12992         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'
12993         hardcode_libdir_flag_spec_ld='-rpath $libdir'
12994       fi
12995       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12996       hardcode_libdir_separator=:
12997       link_all_deplibs=yes
12998       ;;
12999
13000     netbsd*)
13001       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13002         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13003       else
13004         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13005       fi
13006       hardcode_libdir_flag_spec='-R$libdir'
13007       hardcode_direct=yes
13008       hardcode_shlibpath_var=no
13009       ;;
13010
13011     newsos6)
13012       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13013       hardcode_direct=yes
13014       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13015       hardcode_libdir_separator=:
13016       hardcode_shlibpath_var=no
13017       ;;
13018
13019     openbsd*)
13020       hardcode_direct=yes
13021       hardcode_shlibpath_var=no
13022       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13023         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13024         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13025         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13026         export_dynamic_flag_spec='${wl}-E'
13027       else
13028        case $host_os in
13029          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13030            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13031            hardcode_libdir_flag_spec='-R$libdir'
13032            ;;
13033          *)
13034            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13035            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13036            ;;
13037        esac
13038       fi
13039       ;;
13040
13041     os2*)
13042       hardcode_libdir_flag_spec='-L$libdir'
13043       hardcode_minus_L=yes
13044       allow_undefined_flag=unsupported
13045       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'
13046       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13047       ;;
13048
13049     osf3*)
13050       if test "$GCC" = yes; then
13051         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13052         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'
13053       else
13054         allow_undefined_flag=' -expect_unresolved \*'
13055         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'
13056       fi
13057       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13058       hardcode_libdir_separator=:
13059       ;;
13060
13061     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13062       if test "$GCC" = yes; then
13063         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13064         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'
13065         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13066       else
13067         allow_undefined_flag=' -expect_unresolved \*'
13068         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'
13069         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13070         $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'
13071
13072         # Both c and cxx compiler support -rpath directly
13073         hardcode_libdir_flag_spec='-rpath $libdir'
13074       fi
13075       hardcode_libdir_separator=:
13076       ;;
13077
13078     sco3.2v5*)
13079       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13080       hardcode_shlibpath_var=no
13081       export_dynamic_flag_spec='${wl}-Bexport'
13082       runpath_var=LD_RUN_PATH
13083       hardcode_runpath_var=yes
13084       ;;
13085
13086     solaris*)
13087       no_undefined_flag=' -z text'
13088       if test "$GCC" = yes; then
13089         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13090         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13091           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13092       else
13093         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13094         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13095         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13096       fi
13097       hardcode_libdir_flag_spec='-R$libdir'
13098       hardcode_shlibpath_var=no
13099       case $host_os in
13100       solaris2.[0-5] | solaris2.[0-5].*) ;;
13101       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13102         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13103       esac
13104       link_all_deplibs=yes
13105       ;;
13106
13107     sunos4*)
13108       if test "x$host_vendor" = xsequent; then
13109         # Use $CC to link under sequent, because it throws in some extra .o
13110         # files that make .init and .fini sections work.
13111         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13112       else
13113         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13114       fi
13115       hardcode_libdir_flag_spec='-L$libdir'
13116       hardcode_direct=yes
13117       hardcode_minus_L=yes
13118       hardcode_shlibpath_var=no
13119       ;;
13120
13121     sysv4)
13122       case $host_vendor in
13123         sni)
13124           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13125           hardcode_direct=yes # is this really true???
13126         ;;
13127         siemens)
13128           ## LD is ld it makes a PLAMLIB
13129           ## CC just makes a GrossModule.
13130           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13131           reload_cmds='$CC -r -o $output$reload_objs'
13132           hardcode_direct=no
13133         ;;
13134         motorola)
13135           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13136           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13137         ;;
13138       esac
13139       runpath_var='LD_RUN_PATH'
13140       hardcode_shlibpath_var=no
13141       ;;
13142
13143     sysv4.3*)
13144       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13145       hardcode_shlibpath_var=no
13146       export_dynamic_flag_spec='-Bexport'
13147       ;;
13148
13149     sysv4*MP*)
13150       if test -d /usr/nec; then
13151         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13152         hardcode_shlibpath_var=no
13153         runpath_var=LD_RUN_PATH
13154         hardcode_runpath_var=yes
13155         ld_shlibs=yes
13156       fi
13157       ;;
13158
13159     sysv4.2uw2*)
13160       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13161       hardcode_direct=yes
13162       hardcode_minus_L=no
13163       hardcode_shlibpath_var=no
13164       hardcode_runpath_var=yes
13165       runpath_var=LD_RUN_PATH
13166       ;;
13167
13168    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13169       no_undefined_flag='${wl}-z ${wl}text'
13170       if test "$GCC" = yes; then
13171         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13172       else
13173         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13174       fi
13175       runpath_var='LD_RUN_PATH'
13176       hardcode_shlibpath_var=no
13177       ;;
13178
13179     sysv5*)
13180       no_undefined_flag=' -z text'
13181       # $CC -shared without GNU ld will not create a library from C++
13182       # object files and a static libstdc++, better avoid it by now
13183       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13184       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13185                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13186       hardcode_libdir_flag_spec=
13187       hardcode_shlibpath_var=no
13188       runpath_var='LD_RUN_PATH'
13189       ;;
13190
13191     uts4*)
13192       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13193       hardcode_libdir_flag_spec='-L$libdir'
13194       hardcode_shlibpath_var=no
13195       ;;
13196
13197     *)
13198       ld_shlibs=no
13199       ;;
13200     esac
13201   fi
13202
13203 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13204 echo "${ECHO_T}$ld_shlibs" >&6
13205 test "$ld_shlibs" = no && can_build_shared=no
13206
13207 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13208 if test "$GCC" = yes; then
13209   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13210 fi
13211
13212 #
13213 # Do we need to explicitly link libc?
13214 #
13215 case "x$archive_cmds_need_lc" in
13216 x|xyes)
13217   # Assume -lc should be added
13218   archive_cmds_need_lc=yes
13219
13220   if test "$enable_shared" = yes && test "$GCC" = yes; then
13221     case $archive_cmds in
13222     *'~'*)
13223       # FIXME: we may have to deal with multi-command sequences.
13224       ;;
13225     '$CC '*)
13226       # Test whether the compiler implicitly links with -lc since on some
13227       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13228       # to ld, don't add -lc before -lgcc.
13229       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13230 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13231       $rm conftest*
13232       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13233
13234       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13235   (eval $ac_compile) 2>&5
13236   ac_status=$?
13237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238   (exit $ac_status); } 2>conftest.err; then
13239         soname=conftest
13240         lib=conftest
13241         libobjs=conftest.$ac_objext
13242         deplibs=
13243         wl=$lt_prog_compiler_wl
13244         compiler_flags=-v
13245         linker_flags=-v
13246         verstring=
13247         output_objdir=.
13248         libname=conftest
13249         lt_save_allow_undefined_flag=$allow_undefined_flag
13250         allow_undefined_flag=
13251         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13252   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13253   ac_status=$?
13254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255   (exit $ac_status); }
13256         then
13257           archive_cmds_need_lc=no
13258         else
13259           archive_cmds_need_lc=yes
13260         fi
13261         allow_undefined_flag=$lt_save_allow_undefined_flag
13262       else
13263         cat conftest.err 1>&5
13264       fi
13265       $rm conftest*
13266       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13267 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13268       ;;
13269     esac
13270   fi
13271   ;;
13272 esac
13273
13274 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13275 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13276 library_names_spec=
13277 libname_spec='lib$name'
13278 soname_spec=
13279 shrext_cmds=".so"
13280 postinstall_cmds=
13281 postuninstall_cmds=
13282 finish_cmds=
13283 finish_eval=
13284 shlibpath_var=
13285 shlibpath_overrides_runpath=unknown
13286 version_type=none
13287 dynamic_linker="$host_os ld.so"
13288 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13289 if test "$GCC" = yes; then
13290   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13291   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13292     # if the path contains ";" then we assume it to be the separator
13293     # otherwise default to the standard path separator (i.e. ":") - it is
13294     # assumed that no part of a normal pathname contains ";" but that should
13295     # okay in the real world where ";" in dirpaths is itself problematic.
13296     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13297   else
13298     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13299   fi
13300 else
13301   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13302 fi
13303 need_lib_prefix=unknown
13304 hardcode_into_libs=no
13305
13306 # when you set need_version to no, make sure it does not cause -set_version
13307 # flags to be left without arguments
13308 need_version=unknown
13309
13310 case $host_os in
13311 aix3*)
13312   version_type=linux
13313   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13314   shlibpath_var=LIBPATH
13315
13316   # AIX 3 has no versioning support, so we append a major version to the name.
13317   soname_spec='${libname}${release}${shared_ext}$major'
13318   ;;
13319
13320 aix4* | aix5*)
13321   version_type=linux
13322   need_lib_prefix=no
13323   need_version=no
13324   hardcode_into_libs=yes
13325   if test "$host_cpu" = ia64; then
13326     # AIX 5 supports IA64
13327     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13328     shlibpath_var=LD_LIBRARY_PATH
13329   else
13330     # With GCC up to 2.95.x, collect2 would create an import file
13331     # for dependence libraries.  The import file would start with
13332     # the line `#! .'.  This would cause the generated library to
13333     # depend on `.', always an invalid library.  This was fixed in
13334     # development snapshots of GCC prior to 3.0.
13335     case $host_os in
13336       aix4 | aix4.[01] | aix4.[01].*)
13337       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13338            echo ' yes '
13339            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13340         :
13341       else
13342         can_build_shared=no
13343       fi
13344       ;;
13345     esac
13346     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13347     # soname into executable. Probably we can add versioning support to
13348     # collect2, so additional links can be useful in future.
13349     if test "$aix_use_runtimelinking" = yes; then
13350       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13351       # instead of lib<name>.a to let people know that these are not
13352       # typical AIX shared libraries.
13353       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13354     else
13355       # We preserve .a as extension for shared libraries through AIX4.2
13356       # and later when we are not doing run time linking.
13357       library_names_spec='${libname}${release}.a $libname.a'
13358       soname_spec='${libname}${release}${shared_ext}$major'
13359     fi
13360     shlibpath_var=LIBPATH
13361   fi
13362   ;;
13363
13364 amigaos*)
13365   library_names_spec='$libname.ixlibrary $libname.a'
13366   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13367   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'
13368   ;;
13369
13370 beos*)
13371   library_names_spec='${libname}${shared_ext}'
13372   dynamic_linker="$host_os ld.so"
13373   shlibpath_var=LIBRARY_PATH
13374   ;;
13375
13376 bsdi[45]*)
13377   version_type=linux
13378   need_version=no
13379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13380   soname_spec='${libname}${release}${shared_ext}$major'
13381   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13382   shlibpath_var=LD_LIBRARY_PATH
13383   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13384   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13385   # the default ld.so.conf also contains /usr/contrib/lib and
13386   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13387   # libtool to hard-code these into programs
13388   ;;
13389
13390 cygwin* | mingw* | pw32*)
13391   version_type=windows
13392   shrext_cmds=".dll"
13393   need_version=no
13394   need_lib_prefix=no
13395
13396   case $GCC,$host_os in
13397   yes,cygwin* | yes,mingw* | yes,pw32*)
13398     library_names_spec='$libname.dll.a'
13399     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13400     postinstall_cmds='base_file=`basename \${file}`~
13401       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13402       dldir=$destdir/`dirname \$dlpath`~
13403       test -d \$dldir || mkdir -p \$dldir~
13404       $install_prog $dir/$dlname \$dldir/$dlname'
13405     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13406       dlpath=$dir/\$dldll~
13407        $rm \$dlpath'
13408     shlibpath_overrides_runpath=yes
13409
13410     case $host_os in
13411     cygwin*)
13412       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13413       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13414       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13415       ;;
13416     mingw*)
13417       # MinGW DLLs use traditional 'lib' prefix
13418       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13419       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13420       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13421         # It is most probably a Windows format PATH printed by
13422         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13423         # path with ; separators, and with drive letters. We can handle the
13424         # drive letters (cygwin fileutils understands them), so leave them,
13425         # especially as we might pass files found there to a mingw objdump,
13426         # which wouldn't understand a cygwinified path. Ahh.
13427         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13428       else
13429         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13430       fi
13431       ;;
13432     pw32*)
13433       # pw32 DLLs use 'pw' prefix rather than 'lib'
13434       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13435       ;;
13436     esac
13437     ;;
13438
13439   *)
13440     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13441     ;;
13442   esac
13443   dynamic_linker='Win32 ld.exe'
13444   # FIXME: first we should search . and the directory the executable is in
13445   shlibpath_var=PATH
13446   ;;
13447
13448 darwin* | rhapsody*)
13449   dynamic_linker="$host_os dyld"
13450   version_type=darwin
13451   need_lib_prefix=no
13452   need_version=no
13453   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13454   soname_spec='${libname}${release}${major}$shared_ext'
13455   shlibpath_overrides_runpath=yes
13456   shlibpath_var=DYLD_LIBRARY_PATH
13457   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13458   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13459   if test "$GCC" = yes; then
13460     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"`
13461   else
13462     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13463   fi
13464   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13465   ;;
13466
13467 dgux*)
13468   version_type=linux
13469   need_lib_prefix=no
13470   need_version=no
13471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13472   soname_spec='${libname}${release}${shared_ext}$major'
13473   shlibpath_var=LD_LIBRARY_PATH
13474   ;;
13475
13476 freebsd1*)
13477   dynamic_linker=no
13478   ;;
13479
13480 kfreebsd*-gnu)
13481   version_type=linux
13482   need_lib_prefix=no
13483   need_version=no
13484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13485   soname_spec='${libname}${release}${shared_ext}$major'
13486   shlibpath_var=LD_LIBRARY_PATH
13487   shlibpath_overrides_runpath=no
13488   hardcode_into_libs=yes
13489   dynamic_linker='GNU ld.so'
13490   ;;
13491
13492 freebsd*)
13493   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13494   version_type=freebsd-$objformat
13495   case $version_type in
13496     freebsd-elf*)
13497       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13498       need_version=no
13499       need_lib_prefix=no
13500       ;;
13501     freebsd-*)
13502       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13503       need_version=yes
13504       ;;
13505   esac
13506   shlibpath_var=LD_LIBRARY_PATH
13507   case $host_os in
13508   freebsd2*)
13509     shlibpath_overrides_runpath=yes
13510     ;;
13511   freebsd3.01* | freebsdelf3.01*)
13512     shlibpath_overrides_runpath=yes
13513     hardcode_into_libs=yes
13514     ;;
13515   *) # from 3.2 on
13516     shlibpath_overrides_runpath=no
13517     hardcode_into_libs=yes
13518     ;;
13519   esac
13520   ;;
13521
13522 gnu*)
13523   version_type=linux
13524   need_lib_prefix=no
13525   need_version=no
13526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13527   soname_spec='${libname}${release}${shared_ext}$major'
13528   shlibpath_var=LD_LIBRARY_PATH
13529   hardcode_into_libs=yes
13530   ;;
13531
13532 hpux9* | hpux10* | hpux11*)
13533   # Give a soname corresponding to the major version so that dld.sl refuses to
13534   # link against other versions.
13535   version_type=sunos
13536   need_lib_prefix=no
13537   need_version=no
13538   case "$host_cpu" in
13539   ia64*)
13540     shrext_cmds='.so'
13541     hardcode_into_libs=yes
13542     dynamic_linker="$host_os dld.so"
13543     shlibpath_var=LD_LIBRARY_PATH
13544     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13545     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13546     soname_spec='${libname}${release}${shared_ext}$major'
13547     if test "X$HPUX_IA64_MODE" = X32; then
13548       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13549     else
13550       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13551     fi
13552     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13553     ;;
13554    hppa*64*)
13555      shrext_cmds='.sl'
13556      hardcode_into_libs=yes
13557      dynamic_linker="$host_os dld.sl"
13558      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13559      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13560      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13561      soname_spec='${libname}${release}${shared_ext}$major'
13562      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13563      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13564      ;;
13565    *)
13566     shrext_cmds='.sl'
13567     dynamic_linker="$host_os dld.sl"
13568     shlibpath_var=SHLIB_PATH
13569     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13570     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13571     soname_spec='${libname}${release}${shared_ext}$major'
13572     ;;
13573   esac
13574   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13575   postinstall_cmds='chmod 555 $lib'
13576   ;;
13577
13578 irix5* | irix6* | nonstopux*)
13579   case $host_os in
13580     nonstopux*) version_type=nonstopux ;;
13581     *)
13582         if test "$lt_cv_prog_gnu_ld" = yes; then
13583                 version_type=linux
13584         else
13585                 version_type=irix
13586         fi ;;
13587   esac
13588   need_lib_prefix=no
13589   need_version=no
13590   soname_spec='${libname}${release}${shared_ext}$major'
13591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13592   case $host_os in
13593   irix5* | nonstopux*)
13594     libsuff= shlibsuff=
13595     ;;
13596   *)
13597     case $LD in # libtool.m4 will add one of these switches to LD
13598     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13599       libsuff= shlibsuff= libmagic=32-bit;;
13600     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13601       libsuff=32 shlibsuff=N32 libmagic=N32;;
13602     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13603       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13604     *) libsuff= shlibsuff= libmagic=never-match;;
13605     esac
13606     ;;
13607   esac
13608   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13609   shlibpath_overrides_runpath=no
13610   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13611   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13612   hardcode_into_libs=yes
13613   ;;
13614
13615 # No shared lib support for Linux oldld, aout, or coff.
13616 linux*oldld* | linux*aout* | linux*coff*)
13617   dynamic_linker=no
13618   ;;
13619
13620 # This must be Linux ELF.
13621 linux*)
13622   version_type=linux
13623   need_lib_prefix=no
13624   need_version=no
13625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13626   soname_spec='${libname}${release}${shared_ext}$major'
13627   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13628   shlibpath_var=LD_LIBRARY_PATH
13629   shlibpath_overrides_runpath=no
13630   # This implies no fast_install, which is unacceptable.
13631   # Some rework will be needed to allow for fast_install
13632   # before this can be enabled.
13633   hardcode_into_libs=yes
13634
13635   # Append ld.so.conf contents to the search path
13636   if test -f /etc/ld.so.conf; then
13637     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13638     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13639   fi
13640
13641   # We used to test for /lib/ld.so.1 and disable shared libraries on
13642   # powerpc, because MkLinux only supported shared libraries with the
13643   # GNU dynamic linker.  Since this was broken with cross compilers,
13644   # most powerpc-linux boxes support dynamic linking these days and
13645   # people can always --disable-shared, the test was removed, and we
13646   # assume the GNU/Linux dynamic linker is in use.
13647   dynamic_linker='GNU/Linux ld.so'
13648   ;;
13649
13650 knetbsd*-gnu)
13651   version_type=linux
13652   need_lib_prefix=no
13653   need_version=no
13654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13655   soname_spec='${libname}${release}${shared_ext}$major'
13656   shlibpath_var=LD_LIBRARY_PATH
13657   shlibpath_overrides_runpath=no
13658   hardcode_into_libs=yes
13659   dynamic_linker='GNU ld.so'
13660   ;;
13661
13662 netbsd*)
13663   version_type=sunos
13664   need_lib_prefix=no
13665   need_version=no
13666   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13667     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13668     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13669     dynamic_linker='NetBSD (a.out) ld.so'
13670   else
13671     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13672     soname_spec='${libname}${release}${shared_ext}$major'
13673     dynamic_linker='NetBSD ld.elf_so'
13674   fi
13675   shlibpath_var=LD_LIBRARY_PATH
13676   shlibpath_overrides_runpath=yes
13677   hardcode_into_libs=yes
13678   ;;
13679
13680 newsos6)
13681   version_type=linux
13682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13683   shlibpath_var=LD_LIBRARY_PATH
13684   shlibpath_overrides_runpath=yes
13685   ;;
13686
13687 nto-qnx*)
13688   version_type=linux
13689   need_lib_prefix=no
13690   need_version=no
13691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13692   soname_spec='${libname}${release}${shared_ext}$major'
13693   shlibpath_var=LD_LIBRARY_PATH
13694   shlibpath_overrides_runpath=yes
13695   ;;
13696
13697 openbsd*)
13698   version_type=sunos
13699   need_lib_prefix=no
13700   need_version=no
13701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13702   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13703   shlibpath_var=LD_LIBRARY_PATH
13704   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13705     case $host_os in
13706       openbsd2.[89] | openbsd2.[89].*)
13707         shlibpath_overrides_runpath=no
13708         ;;
13709       *)
13710         shlibpath_overrides_runpath=yes
13711         ;;
13712       esac
13713   else
13714     shlibpath_overrides_runpath=yes
13715   fi
13716   ;;
13717
13718 os2*)
13719   libname_spec='$name'
13720   shrext_cmds=".dll"
13721   need_lib_prefix=no
13722   library_names_spec='$libname${shared_ext} $libname.a'
13723   dynamic_linker='OS/2 ld.exe'
13724   shlibpath_var=LIBPATH
13725   ;;
13726
13727 osf3* | osf4* | osf5*)
13728   version_type=osf
13729   need_lib_prefix=no
13730   need_version=no
13731   soname_spec='${libname}${release}${shared_ext}$major'
13732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13733   shlibpath_var=LD_LIBRARY_PATH
13734   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13735   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13736   ;;
13737
13738 sco3.2v5*)
13739   version_type=osf
13740   soname_spec='${libname}${release}${shared_ext}$major'
13741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13742   shlibpath_var=LD_LIBRARY_PATH
13743   ;;
13744
13745 solaris*)
13746   version_type=linux
13747   need_lib_prefix=no
13748   need_version=no
13749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13750   soname_spec='${libname}${release}${shared_ext}$major'
13751   shlibpath_var=LD_LIBRARY_PATH
13752   shlibpath_overrides_runpath=yes
13753   hardcode_into_libs=yes
13754   # ldd complains unless libraries are executable
13755   postinstall_cmds='chmod +x $lib'
13756   ;;
13757
13758 sunos4*)
13759   version_type=sunos
13760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13761   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13762   shlibpath_var=LD_LIBRARY_PATH
13763   shlibpath_overrides_runpath=yes
13764   if test "$with_gnu_ld" = yes; then
13765     need_lib_prefix=no
13766   fi
13767   need_version=yes
13768   ;;
13769
13770 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13771   version_type=linux
13772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13773   soname_spec='${libname}${release}${shared_ext}$major'
13774   shlibpath_var=LD_LIBRARY_PATH
13775   case $host_vendor in
13776     sni)
13777       shlibpath_overrides_runpath=no
13778       need_lib_prefix=no
13779       export_dynamic_flag_spec='${wl}-Blargedynsym'
13780       runpath_var=LD_RUN_PATH
13781       ;;
13782     siemens)
13783       need_lib_prefix=no
13784       ;;
13785     motorola)
13786       need_lib_prefix=no
13787       need_version=no
13788       shlibpath_overrides_runpath=no
13789       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13790       ;;
13791   esac
13792   ;;
13793
13794 sysv4*MP*)
13795   if test -d /usr/nec ;then
13796     version_type=linux
13797     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13798     soname_spec='$libname${shared_ext}.$major'
13799     shlibpath_var=LD_LIBRARY_PATH
13800   fi
13801   ;;
13802
13803 uts4*)
13804   version_type=linux
13805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13806   soname_spec='${libname}${release}${shared_ext}$major'
13807   shlibpath_var=LD_LIBRARY_PATH
13808   ;;
13809
13810 *)
13811   dynamic_linker=no
13812   ;;
13813 esac
13814 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13815 echo "${ECHO_T}$dynamic_linker" >&6
13816 test "$dynamic_linker" = no && can_build_shared=no
13817
13818 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13819 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13820 hardcode_action=
13821 if test -n "$hardcode_libdir_flag_spec" || \
13822    test -n "$runpath_var" || \
13823    test "X$hardcode_automatic" = "Xyes" ; then
13824
13825   # We can hardcode non-existant directories.
13826   if test "$hardcode_direct" != no &&
13827      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13828      # have to relink, otherwise we might link with an installed library
13829      # when we should be linking with a yet-to-be-installed one
13830      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13831      test "$hardcode_minus_L" != no; then
13832     # Linking always hardcodes the temporary library directory.
13833     hardcode_action=relink
13834   else
13835     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13836     hardcode_action=immediate
13837   fi
13838 else
13839   # We cannot hardcode anything, or else we can only hardcode existing
13840   # directories.
13841   hardcode_action=unsupported
13842 fi
13843 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13844 echo "${ECHO_T}$hardcode_action" >&6
13845
13846 if test "$hardcode_action" = relink; then
13847   # Fast installation is not supported
13848   enable_fast_install=no
13849 elif test "$shlibpath_overrides_runpath" = yes ||
13850      test "$enable_shared" = no; then
13851   # Fast installation is not necessary
13852   enable_fast_install=needless
13853 fi
13854
13855 striplib=
13856 old_striplib=
13857 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13858 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13859 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13860   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13861   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13862   echo "$as_me:$LINENO: result: yes" >&5
13863 echo "${ECHO_T}yes" >&6
13864 else
13865 # FIXME - insert some real tests, host_os isn't really good enough
13866   case $host_os in
13867    darwin*)
13868        if test -n "$STRIP" ; then
13869          striplib="$STRIP -x"
13870          echo "$as_me:$LINENO: result: yes" >&5
13871 echo "${ECHO_T}yes" >&6
13872        else
13873   echo "$as_me:$LINENO: result: no" >&5
13874 echo "${ECHO_T}no" >&6
13875 fi
13876        ;;
13877    *)
13878   echo "$as_me:$LINENO: result: no" >&5
13879 echo "${ECHO_T}no" >&6
13880     ;;
13881   esac
13882 fi
13883
13884 if test "x$enable_dlopen" != xyes; then
13885   enable_dlopen=unknown
13886   enable_dlopen_self=unknown
13887   enable_dlopen_self_static=unknown
13888 else
13889   lt_cv_dlopen=no
13890   lt_cv_dlopen_libs=
13891
13892   case $host_os in
13893   beos*)
13894     lt_cv_dlopen="load_add_on"
13895     lt_cv_dlopen_libs=
13896     lt_cv_dlopen_self=yes
13897     ;;
13898
13899   mingw* | pw32*)
13900     lt_cv_dlopen="LoadLibrary"
13901     lt_cv_dlopen_libs=
13902    ;;
13903
13904   cygwin*)
13905     lt_cv_dlopen="dlopen"
13906     lt_cv_dlopen_libs=
13907    ;;
13908
13909   darwin*)
13910   # if libdl is installed we need to link against it
13911     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13912 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13913 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13914   echo $ECHO_N "(cached) $ECHO_C" >&6
13915 else
13916   ac_check_lib_save_LIBS=$LIBS
13917 LIBS="-ldl  $LIBS"
13918 cat >conftest.$ac_ext <<_ACEOF
13919 /* confdefs.h.  */
13920 _ACEOF
13921 cat confdefs.h >>conftest.$ac_ext
13922 cat >>conftest.$ac_ext <<_ACEOF
13923 /* end confdefs.h.  */
13924
13925 /* Override any gcc2 internal prototype to avoid an error.  */
13926 #ifdef __cplusplus
13927 extern "C"
13928 #endif
13929 /* We use char because int might match the return type of a gcc2
13930    builtin and then its argument prototype would still apply.  */
13931 char dlopen ();
13932 int
13933 main ()
13934 {
13935 dlopen ();
13936   ;
13937   return 0;
13938 }
13939 _ACEOF
13940 rm -f conftest.$ac_objext conftest$ac_exeext
13941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13942   (eval $ac_link) 2>conftest.er1
13943   ac_status=$?
13944   grep -v '^ *+' conftest.er1 >conftest.err
13945   rm -f conftest.er1
13946   cat conftest.err >&5
13947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948   (exit $ac_status); } &&
13949          { ac_try='test -z "$ac_c_werror_flag"
13950                          || test ! -s conftest.err'
13951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952   (eval $ac_try) 2>&5
13953   ac_status=$?
13954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955   (exit $ac_status); }; } &&
13956          { ac_try='test -s conftest$ac_exeext'
13957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958   (eval $ac_try) 2>&5
13959   ac_status=$?
13960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961   (exit $ac_status); }; }; then
13962   ac_cv_lib_dl_dlopen=yes
13963 else
13964   echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.$ac_ext >&5
13966
13967 ac_cv_lib_dl_dlopen=no
13968 fi
13969 rm -f conftest.err conftest.$ac_objext \
13970       conftest$ac_exeext conftest.$ac_ext
13971 LIBS=$ac_check_lib_save_LIBS
13972 fi
13973 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13974 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13975 if test $ac_cv_lib_dl_dlopen = yes; then
13976   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13977 else
13978
13979     lt_cv_dlopen="dyld"
13980     lt_cv_dlopen_libs=
13981     lt_cv_dlopen_self=yes
13982
13983 fi
13984
13985    ;;
13986
13987   *)
13988     echo "$as_me:$LINENO: checking for shl_load" >&5
13989 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13990 if test "${ac_cv_func_shl_load+set}" = set; then
13991   echo $ECHO_N "(cached) $ECHO_C" >&6
13992 else
13993   cat >conftest.$ac_ext <<_ACEOF
13994 /* confdefs.h.  */
13995 _ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h.  */
13999 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14000    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14001 #define shl_load innocuous_shl_load
14002
14003 /* System header to define __stub macros and hopefully few prototypes,
14004     which can conflict with char shl_load (); below.
14005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14006     <limits.h> exists even on freestanding compilers.  */
14007
14008 #ifdef __STDC__
14009 # include <limits.h>
14010 #else
14011 # include <assert.h>
14012 #endif
14013
14014 #undef shl_load
14015
14016 /* Override any gcc2 internal prototype to avoid an error.  */
14017 #ifdef __cplusplus
14018 extern "C"
14019 {
14020 #endif
14021 /* We use char because int might match the return type of a gcc2
14022    builtin and then its argument prototype would still apply.  */
14023 char shl_load ();
14024 /* The GNU C library defines this for functions which it implements
14025     to always fail with ENOSYS.  Some functions are actually named
14026     something starting with __ and the normal name is an alias.  */
14027 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14028 choke me
14029 #else
14030 char (*f) () = shl_load;
14031 #endif
14032 #ifdef __cplusplus
14033 }
14034 #endif
14035
14036 int
14037 main ()
14038 {
14039 return f != shl_load;
14040   ;
14041   return 0;
14042 }
14043 _ACEOF
14044 rm -f conftest.$ac_objext conftest$ac_exeext
14045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14046   (eval $ac_link) 2>conftest.er1
14047   ac_status=$?
14048   grep -v '^ *+' conftest.er1 >conftest.err
14049   rm -f conftest.er1
14050   cat conftest.err >&5
14051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052   (exit $ac_status); } &&
14053          { ac_try='test -z "$ac_c_werror_flag"
14054                          || test ! -s conftest.err'
14055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056   (eval $ac_try) 2>&5
14057   ac_status=$?
14058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059   (exit $ac_status); }; } &&
14060          { ac_try='test -s conftest$ac_exeext'
14061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062   (eval $ac_try) 2>&5
14063   ac_status=$?
14064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065   (exit $ac_status); }; }; then
14066   ac_cv_func_shl_load=yes
14067 else
14068   echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14070
14071 ac_cv_func_shl_load=no
14072 fi
14073 rm -f conftest.err conftest.$ac_objext \
14074       conftest$ac_exeext conftest.$ac_ext
14075 fi
14076 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14077 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14078 if test $ac_cv_func_shl_load = yes; then
14079   lt_cv_dlopen="shl_load"
14080 else
14081   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14082 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14083 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14084   echo $ECHO_N "(cached) $ECHO_C" >&6
14085 else
14086   ac_check_lib_save_LIBS=$LIBS
14087 LIBS="-ldld  $LIBS"
14088 cat >conftest.$ac_ext <<_ACEOF
14089 /* confdefs.h.  */
14090 _ACEOF
14091 cat confdefs.h >>conftest.$ac_ext
14092 cat >>conftest.$ac_ext <<_ACEOF
14093 /* end confdefs.h.  */
14094
14095 /* Override any gcc2 internal prototype to avoid an error.  */
14096 #ifdef __cplusplus
14097 extern "C"
14098 #endif
14099 /* We use char because int might match the return type of a gcc2
14100    builtin and then its argument prototype would still apply.  */
14101 char shl_load ();
14102 int
14103 main ()
14104 {
14105 shl_load ();
14106   ;
14107   return 0;
14108 }
14109 _ACEOF
14110 rm -f conftest.$ac_objext conftest$ac_exeext
14111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14112   (eval $ac_link) 2>conftest.er1
14113   ac_status=$?
14114   grep -v '^ *+' conftest.er1 >conftest.err
14115   rm -f conftest.er1
14116   cat conftest.err >&5
14117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118   (exit $ac_status); } &&
14119          { ac_try='test -z "$ac_c_werror_flag"
14120                          || test ! -s conftest.err'
14121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14122   (eval $ac_try) 2>&5
14123   ac_status=$?
14124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125   (exit $ac_status); }; } &&
14126          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14132   ac_cv_lib_dld_shl_load=yes
14133 else
14134   echo "$as_me: failed program was:" >&5
14135 sed 's/^/| /' conftest.$ac_ext >&5
14136
14137 ac_cv_lib_dld_shl_load=no
14138 fi
14139 rm -f conftest.err conftest.$ac_objext \
14140       conftest$ac_exeext conftest.$ac_ext
14141 LIBS=$ac_check_lib_save_LIBS
14142 fi
14143 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14144 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14145 if test $ac_cv_lib_dld_shl_load = yes; then
14146   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14147 else
14148   echo "$as_me:$LINENO: checking for dlopen" >&5
14149 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14150 if test "${ac_cv_func_dlopen+set}" = set; then
14151   echo $ECHO_N "(cached) $ECHO_C" >&6
14152 else
14153   cat >conftest.$ac_ext <<_ACEOF
14154 /* confdefs.h.  */
14155 _ACEOF
14156 cat confdefs.h >>conftest.$ac_ext
14157 cat >>conftest.$ac_ext <<_ACEOF
14158 /* end confdefs.h.  */
14159 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14161 #define dlopen innocuous_dlopen
14162
14163 /* System header to define __stub macros and hopefully few prototypes,
14164     which can conflict with char dlopen (); below.
14165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14166     <limits.h> exists even on freestanding compilers.  */
14167
14168 #ifdef __STDC__
14169 # include <limits.h>
14170 #else
14171 # include <assert.h>
14172 #endif
14173
14174 #undef dlopen
14175
14176 /* Override any gcc2 internal prototype to avoid an error.  */
14177 #ifdef __cplusplus
14178 extern "C"
14179 {
14180 #endif
14181 /* We use char because int might match the return type of a gcc2
14182    builtin and then its argument prototype would still apply.  */
14183 char dlopen ();
14184 /* The GNU C library defines this for functions which it implements
14185     to always fail with ENOSYS.  Some functions are actually named
14186     something starting with __ and the normal name is an alias.  */
14187 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14188 choke me
14189 #else
14190 char (*f) () = dlopen;
14191 #endif
14192 #ifdef __cplusplus
14193 }
14194 #endif
14195
14196 int
14197 main ()
14198 {
14199 return f != dlopen;
14200   ;
14201   return 0;
14202 }
14203 _ACEOF
14204 rm -f conftest.$ac_objext conftest$ac_exeext
14205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14206   (eval $ac_link) 2>conftest.er1
14207   ac_status=$?
14208   grep -v '^ *+' conftest.er1 >conftest.err
14209   rm -f conftest.er1
14210   cat conftest.err >&5
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); } &&
14213          { ac_try='test -z "$ac_c_werror_flag"
14214                          || test ! -s conftest.err'
14215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14216   (eval $ac_try) 2>&5
14217   ac_status=$?
14218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219   (exit $ac_status); }; } &&
14220          { ac_try='test -s conftest$ac_exeext'
14221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14222   (eval $ac_try) 2>&5
14223   ac_status=$?
14224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225   (exit $ac_status); }; }; then
14226   ac_cv_func_dlopen=yes
14227 else
14228   echo "$as_me: failed program was:" >&5
14229 sed 's/^/| /' conftest.$ac_ext >&5
14230
14231 ac_cv_func_dlopen=no
14232 fi
14233 rm -f conftest.err conftest.$ac_objext \
14234       conftest$ac_exeext conftest.$ac_ext
14235 fi
14236 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14237 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14238 if test $ac_cv_func_dlopen = yes; then
14239   lt_cv_dlopen="dlopen"
14240 else
14241   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14242 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14243 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14244   echo $ECHO_N "(cached) $ECHO_C" >&6
14245 else
14246   ac_check_lib_save_LIBS=$LIBS
14247 LIBS="-ldl  $LIBS"
14248 cat >conftest.$ac_ext <<_ACEOF
14249 /* confdefs.h.  */
14250 _ACEOF
14251 cat confdefs.h >>conftest.$ac_ext
14252 cat >>conftest.$ac_ext <<_ACEOF
14253 /* end confdefs.h.  */
14254
14255 /* Override any gcc2 internal prototype to avoid an error.  */
14256 #ifdef __cplusplus
14257 extern "C"
14258 #endif
14259 /* We use char because int might match the return type of a gcc2
14260    builtin and then its argument prototype would still apply.  */
14261 char dlopen ();
14262 int
14263 main ()
14264 {
14265 dlopen ();
14266   ;
14267   return 0;
14268 }
14269 _ACEOF
14270 rm -f conftest.$ac_objext conftest$ac_exeext
14271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14272   (eval $ac_link) 2>conftest.er1
14273   ac_status=$?
14274   grep -v '^ *+' conftest.er1 >conftest.err
14275   rm -f conftest.er1
14276   cat conftest.err >&5
14277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278   (exit $ac_status); } &&
14279          { ac_try='test -z "$ac_c_werror_flag"
14280                          || test ! -s conftest.err'
14281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282   (eval $ac_try) 2>&5
14283   ac_status=$?
14284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285   (exit $ac_status); }; } &&
14286          { ac_try='test -s conftest$ac_exeext'
14287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288   (eval $ac_try) 2>&5
14289   ac_status=$?
14290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291   (exit $ac_status); }; }; then
14292   ac_cv_lib_dl_dlopen=yes
14293 else
14294   echo "$as_me: failed program was:" >&5
14295 sed 's/^/| /' conftest.$ac_ext >&5
14296
14297 ac_cv_lib_dl_dlopen=no
14298 fi
14299 rm -f conftest.err conftest.$ac_objext \
14300       conftest$ac_exeext conftest.$ac_ext
14301 LIBS=$ac_check_lib_save_LIBS
14302 fi
14303 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14304 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14305 if test $ac_cv_lib_dl_dlopen = yes; then
14306   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14307 else
14308   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14309 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14310 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14311   echo $ECHO_N "(cached) $ECHO_C" >&6
14312 else
14313   ac_check_lib_save_LIBS=$LIBS
14314 LIBS="-lsvld  $LIBS"
14315 cat >conftest.$ac_ext <<_ACEOF
14316 /* confdefs.h.  */
14317 _ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h.  */
14321
14322 /* Override any gcc2 internal prototype to avoid an error.  */
14323 #ifdef __cplusplus
14324 extern "C"
14325 #endif
14326 /* We use char because int might match the return type of a gcc2
14327    builtin and then its argument prototype would still apply.  */
14328 char dlopen ();
14329 int
14330 main ()
14331 {
14332 dlopen ();
14333   ;
14334   return 0;
14335 }
14336 _ACEOF
14337 rm -f conftest.$ac_objext conftest$ac_exeext
14338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14339   (eval $ac_link) 2>conftest.er1
14340   ac_status=$?
14341   grep -v '^ *+' conftest.er1 >conftest.err
14342   rm -f conftest.er1
14343   cat conftest.err >&5
14344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345   (exit $ac_status); } &&
14346          { ac_try='test -z "$ac_c_werror_flag"
14347                          || test ! -s conftest.err'
14348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349   (eval $ac_try) 2>&5
14350   ac_status=$?
14351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352   (exit $ac_status); }; } &&
14353          { ac_try='test -s conftest$ac_exeext'
14354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355   (eval $ac_try) 2>&5
14356   ac_status=$?
14357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358   (exit $ac_status); }; }; then
14359   ac_cv_lib_svld_dlopen=yes
14360 else
14361   echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14363
14364 ac_cv_lib_svld_dlopen=no
14365 fi
14366 rm -f conftest.err conftest.$ac_objext \
14367       conftest$ac_exeext conftest.$ac_ext
14368 LIBS=$ac_check_lib_save_LIBS
14369 fi
14370 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14371 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14372 if test $ac_cv_lib_svld_dlopen = yes; then
14373   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14374 else
14375   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14376 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14377 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14378   echo $ECHO_N "(cached) $ECHO_C" >&6
14379 else
14380   ac_check_lib_save_LIBS=$LIBS
14381 LIBS="-ldld  $LIBS"
14382 cat >conftest.$ac_ext <<_ACEOF
14383 /* confdefs.h.  */
14384 _ACEOF
14385 cat confdefs.h >>conftest.$ac_ext
14386 cat >>conftest.$ac_ext <<_ACEOF
14387 /* end confdefs.h.  */
14388
14389 /* Override any gcc2 internal prototype to avoid an error.  */
14390 #ifdef __cplusplus
14391 extern "C"
14392 #endif
14393 /* We use char because int might match the return type of a gcc2
14394    builtin and then its argument prototype would still apply.  */
14395 char dld_link ();
14396 int
14397 main ()
14398 {
14399 dld_link ();
14400   ;
14401   return 0;
14402 }
14403 _ACEOF
14404 rm -f conftest.$ac_objext conftest$ac_exeext
14405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14406   (eval $ac_link) 2>conftest.er1
14407   ac_status=$?
14408   grep -v '^ *+' conftest.er1 >conftest.err
14409   rm -f conftest.er1
14410   cat conftest.err >&5
14411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412   (exit $ac_status); } &&
14413          { ac_try='test -z "$ac_c_werror_flag"
14414                          || test ! -s conftest.err'
14415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416   (eval $ac_try) 2>&5
14417   ac_status=$?
14418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419   (exit $ac_status); }; } &&
14420          { ac_try='test -s conftest$ac_exeext'
14421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422   (eval $ac_try) 2>&5
14423   ac_status=$?
14424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425   (exit $ac_status); }; }; then
14426   ac_cv_lib_dld_dld_link=yes
14427 else
14428   echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14430
14431 ac_cv_lib_dld_dld_link=no
14432 fi
14433 rm -f conftest.err conftest.$ac_objext \
14434       conftest$ac_exeext conftest.$ac_ext
14435 LIBS=$ac_check_lib_save_LIBS
14436 fi
14437 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14438 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14439 if test $ac_cv_lib_dld_dld_link = yes; then
14440   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14441 fi
14442
14443
14444 fi
14445
14446
14447 fi
14448
14449
14450 fi
14451
14452
14453 fi
14454
14455
14456 fi
14457
14458     ;;
14459   esac
14460
14461   if test "x$lt_cv_dlopen" != xno; then
14462     enable_dlopen=yes
14463   else
14464     enable_dlopen=no
14465   fi
14466
14467   case $lt_cv_dlopen in
14468   dlopen)
14469     save_CPPFLAGS="$CPPFLAGS"
14470     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14471
14472     save_LDFLAGS="$LDFLAGS"
14473     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14474
14475     save_LIBS="$LIBS"
14476     LIBS="$lt_cv_dlopen_libs $LIBS"
14477
14478     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14479 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14480 if test "${lt_cv_dlopen_self+set}" = set; then
14481   echo $ECHO_N "(cached) $ECHO_C" >&6
14482 else
14483           if test "$cross_compiling" = yes; then :
14484   lt_cv_dlopen_self=cross
14485 else
14486   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14487   lt_status=$lt_dlunknown
14488   cat > conftest.$ac_ext <<EOF
14489 #line 14489 "configure"
14490 #include "confdefs.h"
14491
14492 #if HAVE_DLFCN_H
14493 #include <dlfcn.h>
14494 #endif
14495
14496 #include <stdio.h>
14497
14498 #ifdef RTLD_GLOBAL
14499 #  define LT_DLGLOBAL           RTLD_GLOBAL
14500 #else
14501 #  ifdef DL_GLOBAL
14502 #    define LT_DLGLOBAL         DL_GLOBAL
14503 #  else
14504 #    define LT_DLGLOBAL         0
14505 #  endif
14506 #endif
14507
14508 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14509    find out it does not work in some platform. */
14510 #ifndef LT_DLLAZY_OR_NOW
14511 #  ifdef RTLD_LAZY
14512 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14513 #  else
14514 #    ifdef DL_LAZY
14515 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14516 #    else
14517 #      ifdef RTLD_NOW
14518 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14519 #      else
14520 #        ifdef DL_NOW
14521 #          define LT_DLLAZY_OR_NOW      DL_NOW
14522 #        else
14523 #          define LT_DLLAZY_OR_NOW      0
14524 #        endif
14525 #      endif
14526 #    endif
14527 #  endif
14528 #endif
14529
14530 #ifdef __cplusplus
14531 extern "C" void exit (int);
14532 #endif
14533
14534 void fnord() { int i=42;}
14535 int main ()
14536 {
14537   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14538   int status = $lt_dlunknown;
14539
14540   if (self)
14541     {
14542       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14543       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14544       /* dlclose (self); */
14545     }
14546
14547     exit (status);
14548 }
14549 EOF
14550   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14551   (eval $ac_link) 2>&5
14552   ac_status=$?
14553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14555     (./conftest; exit; ) 2>/dev/null
14556     lt_status=$?
14557     case x$lt_status in
14558       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14559       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14560       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14561     esac
14562   else :
14563     # compilation failed
14564     lt_cv_dlopen_self=no
14565   fi
14566 fi
14567 rm -fr conftest*
14568
14569
14570 fi
14571 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14572 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14573
14574     if test "x$lt_cv_dlopen_self" = xyes; then
14575       LDFLAGS="$LDFLAGS $link_static_flag"
14576       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14577 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14578 if test "${lt_cv_dlopen_self_static+set}" = set; then
14579   echo $ECHO_N "(cached) $ECHO_C" >&6
14580 else
14581           if test "$cross_compiling" = yes; then :
14582   lt_cv_dlopen_self_static=cross
14583 else
14584   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14585   lt_status=$lt_dlunknown
14586   cat > conftest.$ac_ext <<EOF
14587 #line 14587 "configure"
14588 #include "confdefs.h"
14589
14590 #if HAVE_DLFCN_H
14591 #include <dlfcn.h>
14592 #endif
14593
14594 #include <stdio.h>
14595
14596 #ifdef RTLD_GLOBAL
14597 #  define LT_DLGLOBAL           RTLD_GLOBAL
14598 #else
14599 #  ifdef DL_GLOBAL
14600 #    define LT_DLGLOBAL         DL_GLOBAL
14601 #  else
14602 #    define LT_DLGLOBAL         0
14603 #  endif
14604 #endif
14605
14606 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14607    find out it does not work in some platform. */
14608 #ifndef LT_DLLAZY_OR_NOW
14609 #  ifdef RTLD_LAZY
14610 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14611 #  else
14612 #    ifdef DL_LAZY
14613 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14614 #    else
14615 #      ifdef RTLD_NOW
14616 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14617 #      else
14618 #        ifdef DL_NOW
14619 #          define LT_DLLAZY_OR_NOW      DL_NOW
14620 #        else
14621 #          define LT_DLLAZY_OR_NOW      0
14622 #        endif
14623 #      endif
14624 #    endif
14625 #  endif
14626 #endif
14627
14628 #ifdef __cplusplus
14629 extern "C" void exit (int);
14630 #endif
14631
14632 void fnord() { int i=42;}
14633 int main ()
14634 {
14635   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14636   int status = $lt_dlunknown;
14637
14638   if (self)
14639     {
14640       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14641       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14642       /* dlclose (self); */
14643     }
14644
14645     exit (status);
14646 }
14647 EOF
14648   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14649   (eval $ac_link) 2>&5
14650   ac_status=$?
14651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14653     (./conftest; exit; ) 2>/dev/null
14654     lt_status=$?
14655     case x$lt_status in
14656       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14657       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14658       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14659     esac
14660   else :
14661     # compilation failed
14662     lt_cv_dlopen_self_static=no
14663   fi
14664 fi
14665 rm -fr conftest*
14666
14667
14668 fi
14669 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14670 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14671     fi
14672
14673     CPPFLAGS="$save_CPPFLAGS"
14674     LDFLAGS="$save_LDFLAGS"
14675     LIBS="$save_LIBS"
14676     ;;
14677   esac
14678
14679   case $lt_cv_dlopen_self in
14680   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14681   *) enable_dlopen_self=unknown ;;
14682   esac
14683
14684   case $lt_cv_dlopen_self_static in
14685   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14686   *) enable_dlopen_self_static=unknown ;;
14687   esac
14688 fi
14689
14690
14691 # Report which librarie types wil actually be built
14692 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14693 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14694 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14695 echo "${ECHO_T}$can_build_shared" >&6
14696
14697 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14698 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14699 test "$can_build_shared" = "no" && enable_shared=no
14700
14701 # On AIX, shared libraries and static libraries use the same namespace, and
14702 # are all built from PIC.
14703 case "$host_os" in
14704 aix3*)
14705   test "$enable_shared" = yes && enable_static=no
14706   if test -n "$RANLIB"; then
14707     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14708     postinstall_cmds='$RANLIB $lib'
14709   fi
14710   ;;
14711
14712 aix4* | aix5*)
14713   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14714     test "$enable_shared" = yes && enable_static=no
14715   fi
14716     ;;
14717 esac
14718 echo "$as_me:$LINENO: result: $enable_shared" >&5
14719 echo "${ECHO_T}$enable_shared" >&6
14720
14721 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14722 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14723 # Make sure either enable_shared or enable_static is yes.
14724 test "$enable_shared" = yes || enable_static=yes
14725 echo "$as_me:$LINENO: result: $enable_static" >&5
14726 echo "${ECHO_T}$enable_static" >&6
14727
14728 # The else clause should only fire when bootstrapping the
14729 # libtool distribution, otherwise you forgot to ship ltmain.sh
14730 # with your package, and you will get complaints that there are
14731 # no rules to generate ltmain.sh.
14732 if test -f "$ltmain"; then
14733   # See if we are running on zsh, and set the options which allow our commands through
14734   # without removal of \ escapes.
14735   if test -n "${ZSH_VERSION+set}" ; then
14736     setopt NO_GLOB_SUBST
14737   fi
14738   # Now quote all the things that may contain metacharacters while being
14739   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14740   # variables and quote the copies for generation of the libtool script.
14741   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14742     SED SHELL STRIP \
14743     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14744     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14745     deplibs_check_method reload_flag reload_cmds need_locks \
14746     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14747     lt_cv_sys_global_symbol_to_c_name_address \
14748     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14749     old_postinstall_cmds old_postuninstall_cmds \
14750     compiler \
14751     CC \
14752     LD \
14753     lt_prog_compiler_wl \
14754     lt_prog_compiler_pic \
14755     lt_prog_compiler_static \
14756     lt_prog_compiler_no_builtin_flag \
14757     export_dynamic_flag_spec \
14758     thread_safe_flag_spec \
14759     whole_archive_flag_spec \
14760     enable_shared_with_static_runtimes \
14761     old_archive_cmds \
14762     old_archive_from_new_cmds \
14763     predep_objects \
14764     postdep_objects \
14765     predeps \
14766     postdeps \
14767     compiler_lib_search_path \
14768     archive_cmds \
14769     archive_expsym_cmds \
14770     postinstall_cmds \
14771     postuninstall_cmds \
14772     old_archive_from_expsyms_cmds \
14773     allow_undefined_flag \
14774     no_undefined_flag \
14775     export_symbols_cmds \
14776     hardcode_libdir_flag_spec \
14777     hardcode_libdir_flag_spec_ld \
14778     hardcode_libdir_separator \
14779     hardcode_automatic \
14780     module_cmds \
14781     module_expsym_cmds \
14782     lt_cv_prog_compiler_c_o \
14783     exclude_expsyms \
14784     include_expsyms; do
14785
14786     case $var in
14787     old_archive_cmds | \
14788     old_archive_from_new_cmds | \
14789     archive_cmds | \
14790     archive_expsym_cmds | \
14791     module_cmds | \
14792     module_expsym_cmds | \
14793     old_archive_from_expsyms_cmds | \
14794     export_symbols_cmds | \
14795     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14796     postinstall_cmds | postuninstall_cmds | \
14797     old_postinstall_cmds | old_postuninstall_cmds | \
14798     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14799       # Double-quote double-evaled strings.
14800       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14801       ;;
14802     *)
14803       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14804       ;;
14805     esac
14806   done
14807
14808   case $lt_echo in
14809   *'\$0 --fallback-echo"')
14810     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14811     ;;
14812   esac
14813
14814 cfgfile="${ofile}T"
14815   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14816   $rm -f "$cfgfile"
14817   { echo "$as_me:$LINENO: creating $ofile" >&5
14818 echo "$as_me: creating $ofile" >&6;}
14819
14820   cat <<__EOF__ >> "$cfgfile"
14821 #! $SHELL
14822
14823 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14824 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14825 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14826 #
14827 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14828 # Free Software Foundation, Inc.
14829 #
14830 # This file is part of GNU Libtool:
14831 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14832 #
14833 # This program is free software; you can redistribute it and/or modify
14834 # it under the terms of the GNU General Public License as published by
14835 # the Free Software Foundation; either version 2 of the License, or
14836 # (at your option) any later version.
14837 #
14838 # This program is distributed in the hope that it will be useful, but
14839 # WITHOUT ANY WARRANTY; without even the implied warranty of
14840 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14841 # General Public License for more details.
14842 #
14843 # You should have received a copy of the GNU General Public License
14844 # along with this program; if not, write to the Free Software
14845 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14846 #
14847 # As a special exception to the GNU General Public License, if you
14848 # distribute this file as part of a program that contains a
14849 # configuration script generated by Autoconf, you may include it under
14850 # the same distribution terms that you use for the rest of that program.
14851
14852 # A sed program that does not truncate output.
14853 SED=$lt_SED
14854
14855 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14856 Xsed="$SED -e s/^X//"
14857
14858 # The HP-UX ksh and POSIX shell print the target directory to stdout
14859 # if CDPATH is set.
14860 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14861
14862 # The names of the tagged configurations supported by this script.
14863 available_tags=
14864
14865 # ### BEGIN LIBTOOL CONFIG
14866
14867 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14868
14869 # Shell to use when invoking shell scripts.
14870 SHELL=$lt_SHELL
14871
14872 # Whether or not to build shared libraries.
14873 build_libtool_libs=$enable_shared
14874
14875 # Whether or not to build static libraries.
14876 build_old_libs=$enable_static
14877
14878 # Whether or not to add -lc for building shared libraries.
14879 build_libtool_need_lc=$archive_cmds_need_lc
14880
14881 # Whether or not to disallow shared libs when runtime libs are static
14882 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14883
14884 # Whether or not to optimize for fast installation.
14885 fast_install=$enable_fast_install
14886
14887 # The host system.
14888 host_alias=$host_alias
14889 host=$host
14890
14891 # An echo program that does not interpret backslashes.
14892 echo=$lt_echo
14893
14894 # The archiver.
14895 AR=$lt_AR
14896 AR_FLAGS=$lt_AR_FLAGS
14897
14898 # A C compiler.
14899 LTCC=$lt_LTCC
14900
14901 # A language-specific compiler.
14902 CC=$lt_compiler
14903
14904 # Is the compiler the GNU C compiler?
14905 with_gcc=$GCC
14906
14907 # An ERE matcher.
14908 EGREP=$lt_EGREP
14909
14910 # The linker used to build libraries.
14911 LD=$lt_LD
14912
14913 # Whether we need hard or soft links.
14914 LN_S=$lt_LN_S
14915
14916 # A BSD-compatible nm program.
14917 NM=$lt_NM
14918
14919 # A symbol stripping program
14920 STRIP=$lt_STRIP
14921
14922 # Used to examine libraries when file_magic_cmd begins "file"
14923 MAGIC_CMD=$MAGIC_CMD
14924
14925 # Used on cygwin: DLL creation program.
14926 DLLTOOL="$DLLTOOL"
14927
14928 # Used on cygwin: object dumper.
14929 OBJDUMP="$OBJDUMP"
14930
14931 # Used on cygwin: assembler.
14932 AS="$AS"
14933
14934 # The name of the directory that contains temporary libtool files.
14935 objdir=$objdir
14936
14937 # How to create reloadable object files.
14938 reload_flag=$lt_reload_flag
14939 reload_cmds=$lt_reload_cmds
14940
14941 # How to pass a linker flag through the compiler.
14942 wl=$lt_lt_prog_compiler_wl
14943
14944 # Object file suffix (normally "o").
14945 objext="$ac_objext"
14946
14947 # Old archive suffix (normally "a").
14948 libext="$libext"
14949
14950 # Shared library suffix (normally ".so").
14951 shrext_cmds='$shrext_cmds'
14952
14953 # Executable file suffix (normally "").
14954 exeext="$exeext"
14955
14956 # Additional compiler flags for building library objects.
14957 pic_flag=$lt_lt_prog_compiler_pic
14958 pic_mode=$pic_mode
14959
14960 # What is the maximum length of a command?
14961 max_cmd_len=$lt_cv_sys_max_cmd_len
14962
14963 # Does compiler simultaneously support -c and -o options?
14964 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14965
14966 # Must we lock files when doing compilation ?
14967 need_locks=$lt_need_locks
14968
14969 # Do we need the lib prefix for modules?
14970 need_lib_prefix=$need_lib_prefix
14971
14972 # Do we need a version for libraries?
14973 need_version=$need_version
14974
14975 # Whether dlopen is supported.
14976 dlopen_support=$enable_dlopen
14977
14978 # Whether dlopen of programs is supported.
14979 dlopen_self=$enable_dlopen_self
14980
14981 # Whether dlopen of statically linked programs is supported.
14982 dlopen_self_static=$enable_dlopen_self_static
14983
14984 # Compiler flag to prevent dynamic linking.
14985 link_static_flag=$lt_lt_prog_compiler_static
14986
14987 # Compiler flag to turn off builtin functions.
14988 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14989
14990 # Compiler flag to allow reflexive dlopens.
14991 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14992
14993 # Compiler flag to generate shared objects directly from archives.
14994 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14995
14996 # Compiler flag to generate thread-safe objects.
14997 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14998
14999 # Library versioning type.
15000 version_type=$version_type
15001
15002 # Format of library name prefix.
15003 libname_spec=$lt_libname_spec
15004
15005 # List of archive names.  First name is the real one, the rest are links.
15006 # The last name is the one that the linker finds with -lNAME.
15007 library_names_spec=$lt_library_names_spec
15008
15009 # The coded name of the library, if different from the real name.
15010 soname_spec=$lt_soname_spec
15011
15012 # Commands used to build and install an old-style archive.
15013 RANLIB=$lt_RANLIB
15014 old_archive_cmds=$lt_old_archive_cmds
15015 old_postinstall_cmds=$lt_old_postinstall_cmds
15016 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15017
15018 # Create an old-style archive from a shared archive.
15019 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15020
15021 # Create a temporary old-style archive to link instead of a shared archive.
15022 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15023
15024 # Commands used to build and install a shared archive.
15025 archive_cmds=$lt_archive_cmds
15026 archive_expsym_cmds=$lt_archive_expsym_cmds
15027 postinstall_cmds=$lt_postinstall_cmds
15028 postuninstall_cmds=$lt_postuninstall_cmds
15029
15030 # Commands used to build a loadable module (assumed same as above if empty)
15031 module_cmds=$lt_module_cmds
15032 module_expsym_cmds=$lt_module_expsym_cmds
15033
15034 # Commands to strip libraries.
15035 old_striplib=$lt_old_striplib
15036 striplib=$lt_striplib
15037
15038 # Dependencies to place before the objects being linked to create a
15039 # shared library.
15040 predep_objects=$lt_predep_objects
15041
15042 # Dependencies to place after the objects being linked to create a
15043 # shared library.
15044 postdep_objects=$lt_postdep_objects
15045
15046 # Dependencies to place before the objects being linked to create a
15047 # shared library.
15048 predeps=$lt_predeps
15049
15050 # Dependencies to place after the objects being linked to create a
15051 # shared library.
15052 postdeps=$lt_postdeps
15053
15054 # The library search path used internally by the compiler when linking
15055 # a shared library.
15056 compiler_lib_search_path=$lt_compiler_lib_search_path
15057
15058 # Method to check whether dependent libraries are shared objects.
15059 deplibs_check_method=$lt_deplibs_check_method
15060
15061 # Command to use when deplibs_check_method == file_magic.
15062 file_magic_cmd=$lt_file_magic_cmd
15063
15064 # Flag that allows shared libraries with undefined symbols to be built.
15065 allow_undefined_flag=$lt_allow_undefined_flag
15066
15067 # Flag that forces no undefined symbols.
15068 no_undefined_flag=$lt_no_undefined_flag
15069
15070 # Commands used to finish a libtool library installation in a directory.
15071 finish_cmds=$lt_finish_cmds
15072
15073 # Same as above, but a single script fragment to be evaled but not shown.
15074 finish_eval=$lt_finish_eval
15075
15076 # Take the output of nm and produce a listing of raw symbols and C names.
15077 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15078
15079 # Transform the output of nm in a proper C declaration
15080 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15081
15082 # Transform the output of nm in a C name address pair
15083 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15084
15085 # This is the shared library runtime path variable.
15086 runpath_var=$runpath_var
15087
15088 # This is the shared library path variable.
15089 shlibpath_var=$shlibpath_var
15090
15091 # Is shlibpath searched before the hard-coded library search path?
15092 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15093
15094 # How to hardcode a shared library path into an executable.
15095 hardcode_action=$hardcode_action
15096
15097 # Whether we should hardcode library paths into libraries.
15098 hardcode_into_libs=$hardcode_into_libs
15099
15100 # Flag to hardcode \$libdir into a binary during linking.
15101 # This must work even if \$libdir does not exist.
15102 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15103
15104 # If ld is used when linking, flag to hardcode \$libdir into
15105 # a binary during linking. This must work even if \$libdir does
15106 # not exist.
15107 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15108
15109 # Whether we need a single -rpath flag with a separated argument.
15110 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15111
15112 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15113 # resulting binary.
15114 hardcode_direct=$hardcode_direct
15115
15116 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15117 # resulting binary.
15118 hardcode_minus_L=$hardcode_minus_L
15119
15120 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15121 # the resulting binary.
15122 hardcode_shlibpath_var=$hardcode_shlibpath_var
15123
15124 # Set to yes if building a shared library automatically hardcodes DIR into the library
15125 # and all subsequent libraries and executables linked against it.
15126 hardcode_automatic=$hardcode_automatic
15127
15128 # Variables whose values should be saved in libtool wrapper scripts and
15129 # restored at relink time.
15130 variables_saved_for_relink="$variables_saved_for_relink"
15131
15132 # Whether libtool must link a program against all its dependency libraries.
15133 link_all_deplibs=$link_all_deplibs
15134
15135 # Compile-time system search path for libraries
15136 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15137
15138 # Run-time system search path for libraries
15139 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15140
15141 # Fix the shell variable \$srcfile for the compiler.
15142 fix_srcfile_path="$fix_srcfile_path"
15143
15144 # Set to yes if exported symbols are required.
15145 always_export_symbols=$always_export_symbols
15146
15147 # The commands to list exported symbols.
15148 export_symbols_cmds=$lt_export_symbols_cmds
15149
15150 # The commands to extract the exported symbol list from a shared archive.
15151 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15152
15153 # Symbols that should not be listed in the preloaded symbols.
15154 exclude_expsyms=$lt_exclude_expsyms
15155
15156 # Symbols that must always be exported.
15157 include_expsyms=$lt_include_expsyms
15158
15159 # ### END LIBTOOL CONFIG
15160
15161 __EOF__
15162
15163
15164   case $host_os in
15165   aix3*)
15166     cat <<\EOF >> "$cfgfile"
15167
15168 # AIX sometimes has problems with the GCC collect2 program.  For some
15169 # reason, if we set the COLLECT_NAMES environment variable, the problems
15170 # vanish in a puff of smoke.
15171 if test "X${COLLECT_NAMES+set}" != Xset; then
15172   COLLECT_NAMES=
15173   export COLLECT_NAMES
15174 fi
15175 EOF
15176     ;;
15177   esac
15178
15179   # We use sed instead of cat because bash on DJGPP gets confused if
15180   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15181   # text mode, it properly converts lines to CR/LF.  This bash problem
15182   # is reportedly fixed, but why not run on old versions too?
15183   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
15184
15185   mv -f "$cfgfile" "$ofile" || \
15186     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15187   chmod +x "$ofile"
15188
15189 else
15190   # If there is no Makefile yet, we rely on a make rule to execute
15191   # `config.status --recheck' to rerun these tests and create the
15192   # libtool script then.
15193   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15194   if test -f "$ltmain_in"; then
15195     test -f Makefile && make "$ltmain"
15196   fi
15197 fi
15198
15199
15200 ac_ext=c
15201 ac_cpp='$CPP $CPPFLAGS'
15202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15205
15206 CC="$lt_save_CC"
15207
15208
15209 # Check whether --with-tags or --without-tags was given.
15210 if test "${with_tags+set}" = set; then
15211   withval="$with_tags"
15212   tagnames="$withval"
15213 fi;
15214
15215 if test -f "$ltmain" && test -n "$tagnames"; then
15216   if test ! -f "${ofile}"; then
15217     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15218 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15219   fi
15220
15221   if test -z "$LTCC"; then
15222     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15223     if test -z "$LTCC"; then
15224       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15225 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15226     else
15227       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15228 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15229     fi
15230   fi
15231
15232   # Extract list of available tagged configurations in $ofile.
15233   # Note that this assumes the entire list is on one line.
15234   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15235
15236   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15237   for tagname in $tagnames; do
15238     IFS="$lt_save_ifs"
15239     # Check whether tagname contains only valid characters
15240     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15241     "") ;;
15242     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15243 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15244    { (exit 1); exit 1; }; }
15245         ;;
15246     esac
15247
15248     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15249     then
15250       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15251 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15252    { (exit 1); exit 1; }; }
15253     fi
15254
15255     # Update the list of available tags.
15256     if test -n "$tagname"; then
15257       echo appending configuration tag "$tagname" to $ofile
15258
15259       case $tagname in
15260       CXX)
15261         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15262             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15263             (test "X$CXX" != "Xg++"))) ; then
15264           ac_ext=cc
15265 ac_cpp='$CXXCPP $CPPFLAGS'
15266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15269
15270
15271
15272
15273 archive_cmds_need_lc_CXX=no
15274 allow_undefined_flag_CXX=
15275 always_export_symbols_CXX=no
15276 archive_expsym_cmds_CXX=
15277 export_dynamic_flag_spec_CXX=
15278 hardcode_direct_CXX=no
15279 hardcode_libdir_flag_spec_CXX=
15280 hardcode_libdir_flag_spec_ld_CXX=
15281 hardcode_libdir_separator_CXX=
15282 hardcode_minus_L_CXX=no
15283 hardcode_automatic_CXX=no
15284 module_cmds_CXX=
15285 module_expsym_cmds_CXX=
15286 link_all_deplibs_CXX=unknown
15287 old_archive_cmds_CXX=$old_archive_cmds
15288 no_undefined_flag_CXX=
15289 whole_archive_flag_spec_CXX=
15290 enable_shared_with_static_runtimes_CXX=no
15291
15292 # Dependencies to place before and after the object being linked:
15293 predep_objects_CXX=
15294 postdep_objects_CXX=
15295 predeps_CXX=
15296 postdeps_CXX=
15297 compiler_lib_search_path_CXX=
15298
15299 # Source file extension for C++ test sources.
15300 ac_ext=cc
15301
15302 # Object file extension for compiled C++ test sources.
15303 objext=o
15304 objext_CXX=$objext
15305
15306 # Code to be used in simple compile tests
15307 lt_simple_compile_test_code="int some_variable = 0;\n"
15308
15309 # Code to be used in simple link tests
15310 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15311
15312 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15313
15314 # If no C compiler was specified, use CC.
15315 LTCC=${LTCC-"$CC"}
15316
15317 # Allow CC to be a program name with arguments.
15318 compiler=$CC
15319
15320
15321 # Allow CC to be a program name with arguments.
15322 lt_save_CC=$CC
15323 lt_save_LD=$LD
15324 lt_save_GCC=$GCC
15325 GCC=$GXX
15326 lt_save_with_gnu_ld=$with_gnu_ld
15327 lt_save_path_LD=$lt_cv_path_LD
15328 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15329   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15330 else
15331   unset lt_cv_prog_gnu_ld
15332 fi
15333 if test -n "${lt_cv_path_LDCXX+set}"; then
15334   lt_cv_path_LD=$lt_cv_path_LDCXX
15335 else
15336   unset lt_cv_path_LD
15337 fi
15338 test -z "${LDCXX+set}" || LD=$LDCXX
15339 CC=${CXX-"c++"}
15340 compiler=$CC
15341 compiler_CXX=$CC
15342 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15343
15344 # We don't want -fno-exception wen compiling C++ code, so set the
15345 # no_builtin_flag separately
15346 if test "$GXX" = yes; then
15347   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15348 else
15349   lt_prog_compiler_no_builtin_flag_CXX=
15350 fi
15351
15352 if test "$GXX" = yes; then
15353   # Set up default GNU C++ configuration
15354
15355
15356 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15357 if test "${with_gnu_ld+set}" = set; then
15358   withval="$with_gnu_ld"
15359   test "$withval" = no || with_gnu_ld=yes
15360 else
15361   with_gnu_ld=no
15362 fi;
15363 ac_prog=ld
15364 if test "$GCC" = yes; then
15365   # Check if gcc -print-prog-name=ld gives a path.
15366   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15367 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15368   case $host in
15369   *-*-mingw*)
15370     # gcc leaves a trailing carriage return which upsets mingw
15371     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15372   *)
15373     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15374   esac
15375   case $ac_prog in
15376     # Accept absolute paths.
15377     [\\/]* | ?:[\\/]*)
15378       re_direlt='/[^/][^/]*/\.\./'
15379       # Canonicalize the pathname of ld
15380       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15381       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15382         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15383       done
15384       test -z "$LD" && LD="$ac_prog"
15385       ;;
15386   "")
15387     # If it fails, then pretend we aren't using GCC.
15388     ac_prog=ld
15389     ;;
15390   *)
15391     # If it is relative, then search for the first ld in PATH.
15392     with_gnu_ld=unknown
15393     ;;
15394   esac
15395 elif test "$with_gnu_ld" = yes; then
15396   echo "$as_me:$LINENO: checking for GNU ld" >&5
15397 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15398 else
15399   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15400 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15401 fi
15402 if test "${lt_cv_path_LD+set}" = set; then
15403   echo $ECHO_N "(cached) $ECHO_C" >&6
15404 else
15405   if test -z "$LD"; then
15406   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15407   for ac_dir in $PATH; do
15408     IFS="$lt_save_ifs"
15409     test -z "$ac_dir" && ac_dir=.
15410     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15411       lt_cv_path_LD="$ac_dir/$ac_prog"
15412       # Check to see if the program is GNU ld.  I'd rather use --version,
15413       # but apparently some GNU ld's only accept -v.
15414       # Break only if it was the GNU/non-GNU ld that we prefer.
15415       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15416       *GNU* | *'with BFD'*)
15417         test "$with_gnu_ld" != no && break
15418         ;;
15419       *)
15420         test "$with_gnu_ld" != yes && break
15421         ;;
15422       esac
15423     fi
15424   done
15425   IFS="$lt_save_ifs"
15426 else
15427   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15428 fi
15429 fi
15430
15431 LD="$lt_cv_path_LD"
15432 if test -n "$LD"; then
15433   echo "$as_me:$LINENO: result: $LD" >&5
15434 echo "${ECHO_T}$LD" >&6
15435 else
15436   echo "$as_me:$LINENO: result: no" >&5
15437 echo "${ECHO_T}no" >&6
15438 fi
15439 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15440 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15441    { (exit 1); exit 1; }; }
15442 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15443 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15444 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15445   echo $ECHO_N "(cached) $ECHO_C" >&6
15446 else
15447   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15448 case `$LD -v 2>&1 </dev/null` in
15449 *GNU* | *'with BFD'*)
15450   lt_cv_prog_gnu_ld=yes
15451   ;;
15452 *)
15453   lt_cv_prog_gnu_ld=no
15454   ;;
15455 esac
15456 fi
15457 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15458 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15459 with_gnu_ld=$lt_cv_prog_gnu_ld
15460
15461
15462
15463   # Check if GNU C++ uses GNU ld as the underlying linker, since the
15464   # archiving commands below assume that GNU ld is being used.
15465   if test "$with_gnu_ld" = yes; then
15466     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15467     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'
15468
15469     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15470     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15471
15472     # If archive_cmds runs LD, not CC, wlarc should be empty
15473     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15474     #     investigate it a little bit more. (MM)
15475     wlarc='${wl}'
15476
15477     # ancient GNU ld didn't support --whole-archive et. al.
15478     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15479         grep 'no-whole-archive' > /dev/null; then
15480       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15481     else
15482       whole_archive_flag_spec_CXX=
15483     fi
15484   else
15485     with_gnu_ld=no
15486     wlarc=
15487
15488     # A generic and very simple default shared library creation
15489     # command for GNU C++ for the case where it uses the native
15490     # linker, instead of GNU ld.  If possible, this setting should
15491     # overridden to take advantage of the native linker features on
15492     # the platform it is being used on.
15493     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15494   fi
15495
15496   # Commands to make compiler produce verbose output that lists
15497   # what "hidden" libraries, object files and flags are used when
15498   # linking a shared library.
15499   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15500
15501 else
15502   GXX=no
15503   with_gnu_ld=no
15504   wlarc=
15505 fi
15506
15507 # PORTME: fill in a description of your system's C++ link characteristics
15508 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15509 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15510 ld_shlibs_CXX=yes
15511 case $host_os in
15512   aix3*)
15513     # FIXME: insert proper C++ library support
15514     ld_shlibs_CXX=no
15515     ;;
15516   aix4* | aix5*)
15517     if test "$host_cpu" = ia64; then
15518       # On IA64, the linker does run time linking by default, so we don't
15519       # have to do anything special.
15520       aix_use_runtimelinking=no
15521       exp_sym_flag='-Bexport'
15522       no_entry_flag=""
15523     else
15524       aix_use_runtimelinking=no
15525
15526       # Test if we are trying to use run time linking or normal
15527       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15528       # need to do runtime linking.
15529       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15530         for ld_flag in $LDFLAGS; do
15531           case $ld_flag in
15532           *-brtl*)
15533             aix_use_runtimelinking=yes
15534             break
15535             ;;
15536           esac
15537         done
15538       esac
15539
15540       exp_sym_flag='-bexport'
15541       no_entry_flag='-bnoentry'
15542     fi
15543
15544     # When large executables or shared objects are built, AIX ld can
15545     # have problems creating the table of contents.  If linking a library
15546     # or program results in "error TOC overflow" add -mminimal-toc to
15547     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15548     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15549
15550     archive_cmds_CXX=''
15551     hardcode_direct_CXX=yes
15552     hardcode_libdir_separator_CXX=':'
15553     link_all_deplibs_CXX=yes
15554
15555     if test "$GXX" = yes; then
15556       case $host_os in aix4.012|aix4.012.*)
15557       # We only want to do this on AIX 4.2 and lower, the check
15558       # below for broken collect2 doesn't work under 4.3+
15559         collect2name=`${CC} -print-prog-name=collect2`
15560         if test -f "$collect2name" && \
15561            strings "$collect2name" | grep resolve_lib_name >/dev/null
15562         then
15563           # We have reworked collect2
15564           hardcode_direct_CXX=yes
15565         else
15566           # We have old collect2
15567           hardcode_direct_CXX=unsupported
15568           # It fails to find uninstalled libraries when the uninstalled
15569           # path is not listed in the libpath.  Setting hardcode_minus_L
15570           # to unsupported forces relinking
15571           hardcode_minus_L_CXX=yes
15572           hardcode_libdir_flag_spec_CXX='-L$libdir'
15573           hardcode_libdir_separator_CXX=
15574         fi
15575       esac
15576       shared_flag='-shared'
15577     else
15578       # not using gcc
15579       if test "$host_cpu" = ia64; then
15580         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15581         # chokes on -Wl,-G. The following line is correct:
15582         shared_flag='-G'
15583       else
15584         if test "$aix_use_runtimelinking" = yes; then
15585           shared_flag='${wl}-G'
15586         else
15587           shared_flag='${wl}-bM:SRE'
15588         fi
15589       fi
15590     fi
15591
15592     # It seems that -bexpall does not export symbols beginning with
15593     # underscore (_), so it is better to generate a list of symbols to export.
15594     always_export_symbols_CXX=yes
15595     if test "$aix_use_runtimelinking" = yes; then
15596       # Warning - without using the other runtime loading flags (-brtl),
15597       # -berok will link without error, but may produce a broken library.
15598       allow_undefined_flag_CXX='-berok'
15599       # Determine the default libpath from the value encoded in an empty executable.
15600       cat >conftest.$ac_ext <<_ACEOF
15601 /* confdefs.h.  */
15602 _ACEOF
15603 cat confdefs.h >>conftest.$ac_ext
15604 cat >>conftest.$ac_ext <<_ACEOF
15605 /* end confdefs.h.  */
15606
15607 int
15608 main ()
15609 {
15610
15611   ;
15612   return 0;
15613 }
15614 _ACEOF
15615 rm -f conftest.$ac_objext conftest$ac_exeext
15616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15617   (eval $ac_link) 2>conftest.er1
15618   ac_status=$?
15619   grep -v '^ *+' conftest.er1 >conftest.err
15620   rm -f conftest.er1
15621   cat conftest.err >&5
15622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623   (exit $ac_status); } &&
15624          { ac_try='test -z "$ac_cxx_werror_flag"
15625                          || test ! -s conftest.err'
15626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627   (eval $ac_try) 2>&5
15628   ac_status=$?
15629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630   (exit $ac_status); }; } &&
15631          { ac_try='test -s conftest$ac_exeext'
15632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633   (eval $ac_try) 2>&5
15634   ac_status=$?
15635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636   (exit $ac_status); }; }; then
15637
15638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15639 }'`
15640 # Check for a 64-bit object if we didn't find anything.
15641 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; }
15642 }'`; fi
15643 else
15644   echo "$as_me: failed program was:" >&5
15645 sed 's/^/| /' conftest.$ac_ext >&5
15646
15647 fi
15648 rm -f conftest.err conftest.$ac_objext \
15649       conftest$ac_exeext conftest.$ac_ext
15650 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15651
15652       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15653
15654       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"
15655      else
15656       if test "$host_cpu" = ia64; then
15657         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15658         allow_undefined_flag_CXX="-z nodefs"
15659         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"
15660       else
15661         # Determine the default libpath from the value encoded in an empty executable.
15662         cat >conftest.$ac_ext <<_ACEOF
15663 /* confdefs.h.  */
15664 _ACEOF
15665 cat confdefs.h >>conftest.$ac_ext
15666 cat >>conftest.$ac_ext <<_ACEOF
15667 /* end confdefs.h.  */
15668
15669 int
15670 main ()
15671 {
15672
15673   ;
15674   return 0;
15675 }
15676 _ACEOF
15677 rm -f conftest.$ac_objext conftest$ac_exeext
15678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15679   (eval $ac_link) 2>conftest.er1
15680   ac_status=$?
15681   grep -v '^ *+' conftest.er1 >conftest.err
15682   rm -f conftest.er1
15683   cat conftest.err >&5
15684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685   (exit $ac_status); } &&
15686          { ac_try='test -z "$ac_cxx_werror_flag"
15687                          || test ! -s conftest.err'
15688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15689   (eval $ac_try) 2>&5
15690   ac_status=$?
15691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692   (exit $ac_status); }; } &&
15693          { ac_try='test -s conftest$ac_exeext'
15694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15695   (eval $ac_try) 2>&5
15696   ac_status=$?
15697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698   (exit $ac_status); }; }; then
15699
15700 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15701 }'`
15702 # Check for a 64-bit object if we didn't find anything.
15703 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; }
15704 }'`; fi
15705 else
15706   echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15708
15709 fi
15710 rm -f conftest.err conftest.$ac_objext \
15711       conftest$ac_exeext conftest.$ac_ext
15712 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15713
15714         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15715         # Warning - without using the other run time loading flags,
15716         # -berok will link without error, but may produce a broken library.
15717         no_undefined_flag_CXX=' ${wl}-bernotok'
15718         allow_undefined_flag_CXX=' ${wl}-berok'
15719         # -bexpall does not export symbols beginning with underscore (_)
15720         always_export_symbols_CXX=yes
15721         # Exported symbols can be pulled into shared objects from archives
15722         whole_archive_flag_spec_CXX=' '
15723         archive_cmds_need_lc_CXX=yes
15724         # This is similar to how AIX traditionally builds it's shared libraries.
15725         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'
15726       fi
15727     fi
15728     ;;
15729   chorus*)
15730     case $cc_basename in
15731       *)
15732         # FIXME: insert proper C++ library support
15733         ld_shlibs_CXX=no
15734         ;;
15735     esac
15736     ;;
15737
15738
15739   cygwin* | mingw* | pw32*)
15740     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15741     # as there is no search path for DLLs.
15742     hardcode_libdir_flag_spec_CXX='-L$libdir'
15743     allow_undefined_flag_CXX=unsupported
15744     always_export_symbols_CXX=no
15745     enable_shared_with_static_runtimes_CXX=yes
15746
15747     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15748       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'
15749       # If the export-symbols file already is a .def file (1st line
15750       # is EXPORTS), use it as is; otherwise, prepend...
15751       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15752         cp $export_symbols $output_objdir/$soname.def;
15753       else
15754         echo EXPORTS > $output_objdir/$soname.def;
15755         cat $export_symbols >> $output_objdir/$soname.def;
15756       fi~
15757       $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'
15758     else
15759       ld_shlibs_CXX=no
15760     fi
15761   ;;
15762       darwin* | rhapsody*)
15763         case "$host_os" in
15764         rhapsody* | darwin1.[012])
15765          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15766          ;;
15767        *) # Darwin 1.3 on
15768          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15769            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15770          else
15771            case ${MACOSX_DEPLOYMENT_TARGET} in
15772              10.[012])
15773                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15774                ;;
15775              10.*)
15776                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15777                ;;
15778            esac
15779          fi
15780          ;;
15781         esac
15782       archive_cmds_need_lc_CXX=no
15783       hardcode_direct_CXX=no
15784       hardcode_automatic_CXX=yes
15785       hardcode_shlibpath_var_CXX=unsupported
15786       whole_archive_flag_spec_CXX=''
15787       link_all_deplibs_CXX=yes
15788
15789     if test "$GXX" = yes ; then
15790       lt_int_apple_cc_single_mod=no
15791       output_verbose_link_cmd='echo'
15792       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15793        lt_int_apple_cc_single_mod=yes
15794       fi
15795       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15796        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15797       else
15798           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'
15799         fi
15800         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15801         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15802           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15803             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}'
15804           else
15805             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}'
15806           fi
15807             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}'
15808       else
15809       case "$cc_basename" in
15810         xlc*)
15811          output_verbose_link_cmd='echo'
15812           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'
15813           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15814           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15815           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}'
15816           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}'
15817           ;;
15818        *)
15819          ld_shlibs_CXX=no
15820           ;;
15821       esac
15822       fi
15823         ;;
15824
15825   dgux*)
15826     case $cc_basename in
15827       ec++)
15828         # FIXME: insert proper C++ library support
15829         ld_shlibs_CXX=no
15830         ;;
15831       ghcx)
15832         # Green Hills C++ Compiler
15833         # FIXME: insert proper C++ library support
15834         ld_shlibs_CXX=no
15835         ;;
15836       *)
15837         # FIXME: insert proper C++ library support
15838         ld_shlibs_CXX=no
15839         ;;
15840     esac
15841     ;;
15842   freebsd12*)
15843     # C++ shared libraries reported to be fairly broken before switch to ELF
15844     ld_shlibs_CXX=no
15845     ;;
15846   freebsd-elf*)
15847     archive_cmds_need_lc_CXX=no
15848     ;;
15849   freebsd* | kfreebsd*-gnu)
15850     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15851     # conventions
15852     ld_shlibs_CXX=yes
15853     ;;
15854   gnu*)
15855     ;;
15856   hpux9*)
15857     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15858     hardcode_libdir_separator_CXX=:
15859     export_dynamic_flag_spec_CXX='${wl}-E'
15860     hardcode_direct_CXX=yes
15861     hardcode_minus_L_CXX=yes # Not in the search PATH,
15862                                 # but as the default
15863                                 # location of the library.
15864
15865     case $cc_basename in
15866     CC)
15867       # FIXME: insert proper C++ library support
15868       ld_shlibs_CXX=no
15869       ;;
15870     aCC)
15871       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'
15872       # Commands to make compiler produce verbose output that lists
15873       # what "hidden" libraries, object files and flags are used when
15874       # linking a shared library.
15875       #
15876       # There doesn't appear to be a way to prevent this compiler from
15877       # explicitly linking system object files so we need to strip them
15878       # from the output so that they don't get included in the library
15879       # dependencies.
15880       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'
15881       ;;
15882     *)
15883       if test "$GXX" = yes; then
15884         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'
15885       else
15886         # FIXME: insert proper C++ library support
15887         ld_shlibs_CXX=no
15888       fi
15889       ;;
15890     esac
15891     ;;
15892   hpux10*|hpux11*)
15893     if test $with_gnu_ld = no; then
15894       case "$host_cpu" in
15895       hppa*64*)
15896         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15897         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15898         hardcode_libdir_separator_CXX=:
15899         ;;
15900       ia64*)
15901         hardcode_libdir_flag_spec_CXX='-L$libdir'
15902         ;;
15903       *)
15904         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15905         hardcode_libdir_separator_CXX=:
15906         export_dynamic_flag_spec_CXX='${wl}-E'
15907         ;;
15908       esac
15909     fi
15910     case "$host_cpu" in
15911     hppa*64*)
15912       hardcode_direct_CXX=no
15913       hardcode_shlibpath_var_CXX=no
15914       ;;
15915     ia64*)
15916       hardcode_direct_CXX=no
15917       hardcode_shlibpath_var_CXX=no
15918       hardcode_minus_L_CXX=yes # Not in the search PATH,
15919                                               # but as the default
15920                                               # location of the library.
15921       ;;
15922     *)
15923       hardcode_direct_CXX=yes
15924       hardcode_minus_L_CXX=yes # Not in the search PATH,
15925                                               # but as the default
15926                                               # location of the library.
15927       ;;
15928     esac
15929
15930     case $cc_basename in
15931       CC)
15932         # FIXME: insert proper C++ library support
15933         ld_shlibs_CXX=no
15934         ;;
15935       aCC)
15936         case "$host_cpu" in
15937         hppa*64*|ia64*)
15938           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15939           ;;
15940         *)
15941           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15942           ;;
15943         esac
15944         # Commands to make compiler produce verbose output that lists
15945         # what "hidden" libraries, object files and flags are used when
15946         # linking a shared library.
15947         #
15948         # There doesn't appear to be a way to prevent this compiler from
15949         # explicitly linking system object files so we need to strip them
15950         # from the output so that they don't get included in the library
15951         # dependencies.
15952         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'
15953         ;;
15954       *)
15955         if test "$GXX" = yes; then
15956           if test $with_gnu_ld = no; then
15957             case "$host_cpu" in
15958             ia64*|hppa*64*)
15959               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15960               ;;
15961             *)
15962               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'
15963               ;;
15964             esac
15965           fi
15966         else
15967           # FIXME: insert proper C++ library support
15968           ld_shlibs_CXX=no
15969         fi
15970         ;;
15971     esac
15972     ;;
15973   irix5* | irix6*)
15974     case $cc_basename in
15975       CC)
15976         # SGI C++
15977         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'
15978
15979         # Archives containing C++ object files must be created using
15980         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15981         # necessary to make sure instantiated templates are included
15982         # in the archive.
15983         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15984         ;;
15985       *)
15986         if test "$GXX" = yes; then
15987           if test "$with_gnu_ld" = no; then
15988             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'
15989           else
15990             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'
15991           fi
15992         fi
15993         link_all_deplibs_CXX=yes
15994         ;;
15995     esac
15996     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15997     hardcode_libdir_separator_CXX=:
15998     ;;
15999   linux*)
16000     case $cc_basename in
16001       KCC)
16002         # Kuck and Associates, Inc. (KAI) C++ Compiler
16003
16004         # KCC will only create a shared library if the output file
16005         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16006         # to its proper name (with version) after linking.
16007         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'
16008         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'
16009         # Commands to make compiler produce verbose output that lists
16010         # what "hidden" libraries, object files and flags are used when
16011         # linking a shared library.
16012         #
16013         # There doesn't appear to be a way to prevent this compiler from
16014         # explicitly linking system object files so we need to strip them
16015         # from the output so that they don't get included in the library
16016         # dependencies.
16017         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'
16018
16019         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
16020         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16021
16022         # Archives containing C++ object files must be created using
16023         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16024         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16025         ;;
16026       icpc)
16027         # Intel C++
16028         with_gnu_ld=yes
16029         # version 8.0 and above of icpc choke on multiply defined symbols
16030         # if we add $predep_objects and $postdep_objects, however 7.1 and
16031         # earlier do not add the objects themselves.
16032         case `$CC -V 2>&1` in
16033         *"Version 7."*)
16034           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16035           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'
16036           ;;
16037         *)  # Version 8.0 or newer
16038           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16039         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16040           ;;
16041         esac
16042         archive_cmds_need_lc_CXX=no
16043         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16044         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16045         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16046         ;;
16047       cxx)
16048         # Compaq C++
16049         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16050         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'
16051
16052         runpath_var=LD_RUN_PATH
16053         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16054         hardcode_libdir_separator_CXX=:
16055
16056         # Commands to make compiler produce verbose output that lists
16057         # what "hidden" libraries, object files and flags are used when
16058         # linking a shared library.
16059         #
16060         # There doesn't appear to be a way to prevent this compiler from
16061         # explicitly linking system object files so we need to strip them
16062         # from the output so that they don't get included in the library
16063         # dependencies.
16064         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'
16065         ;;
16066     esac
16067     ;;
16068   lynxos*)
16069     # FIXME: insert proper C++ library support
16070     ld_shlibs_CXX=no
16071     ;;
16072   m88k*)
16073     # FIXME: insert proper C++ library support
16074     ld_shlibs_CXX=no
16075     ;;
16076   mvs*)
16077     case $cc_basename in
16078       cxx)
16079         # FIXME: insert proper C++ library support
16080         ld_shlibs_CXX=no
16081         ;;
16082       *)
16083         # FIXME: insert proper C++ library support
16084         ld_shlibs_CXX=no
16085         ;;
16086     esac
16087     ;;
16088   netbsd*)
16089     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16090       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16091       wlarc=
16092       hardcode_libdir_flag_spec_CXX='-R$libdir'
16093       hardcode_direct_CXX=yes
16094       hardcode_shlibpath_var_CXX=no
16095     fi
16096     # Workaround some broken pre-1.5 toolchains
16097     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16098     ;;
16099   openbsd2*)
16100     # C++ shared libraries are fairly broken
16101     ld_shlibs_CXX=no
16102     ;;
16103   openbsd*)
16104     hardcode_direct_CXX=yes
16105     hardcode_shlibpath_var_CXX=no
16106     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16107     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16108     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16109       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16110       export_dynamic_flag_spec_CXX='${wl}-E'
16111       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16112     fi
16113     output_verbose_link_cmd='echo'
16114     ;;
16115   osf3*)
16116     case $cc_basename in
16117       KCC)
16118         # Kuck and Associates, Inc. (KAI) C++ Compiler
16119
16120         # KCC will only create a shared library if the output file
16121         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16122         # to its proper name (with version) after linking.
16123         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'
16124
16125         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16126         hardcode_libdir_separator_CXX=:
16127
16128         # Archives containing C++ object files must be created using
16129         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16130         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16131
16132         ;;
16133       RCC)
16134         # Rational C++ 2.4.1
16135         # FIXME: insert proper C++ library support
16136         ld_shlibs_CXX=no
16137         ;;
16138       cxx)
16139         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16140         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'
16141
16142         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16143         hardcode_libdir_separator_CXX=:
16144
16145         # Commands to make compiler produce verbose output that lists
16146         # what "hidden" libraries, object files and flags are used when
16147         # linking a shared library.
16148         #
16149         # There doesn't appear to be a way to prevent this compiler from
16150         # explicitly linking system object files so we need to strip them
16151         # from the output so that they don't get included in the library
16152         # dependencies.
16153         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'
16154         ;;
16155       *)
16156         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16157           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16158           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'
16159
16160           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16161           hardcode_libdir_separator_CXX=:
16162
16163           # Commands to make compiler produce verbose output that lists
16164           # what "hidden" libraries, object files and flags are used when
16165           # linking a shared library.
16166           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16167
16168         else
16169           # FIXME: insert proper C++ library support
16170           ld_shlibs_CXX=no
16171         fi
16172         ;;
16173     esac
16174     ;;
16175   osf4* | osf5*)
16176     case $cc_basename in
16177       KCC)
16178         # Kuck and Associates, Inc. (KAI) C++ Compiler
16179
16180         # KCC will only create a shared library if the output file
16181         # ends with ".so" (or ".sl" for HP-UX), so rename the library
16182         # to its proper name (with version) after linking.
16183         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'
16184
16185         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16186         hardcode_libdir_separator_CXX=:
16187
16188         # Archives containing C++ object files must be created using
16189         # the KAI C++ compiler.
16190         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16191         ;;
16192       RCC)
16193         # Rational C++ 2.4.1
16194         # FIXME: insert proper C++ library support
16195         ld_shlibs_CXX=no
16196         ;;
16197       cxx)
16198         allow_undefined_flag_CXX=' -expect_unresolved \*'
16199         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'
16200         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16201           echo "-hidden">> $lib.exp~
16202           $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~
16203           $rm $lib.exp'
16204
16205         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16206         hardcode_libdir_separator_CXX=:
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 -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'
16217         ;;
16218       *)
16219         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16220           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16221          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'
16222
16223           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16224           hardcode_libdir_separator_CXX=:
16225
16226           # Commands to make compiler produce verbose output that lists
16227           # what "hidden" libraries, object files and flags are used when
16228           # linking a shared library.
16229           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16230
16231         else
16232           # FIXME: insert proper C++ library support
16233           ld_shlibs_CXX=no
16234         fi
16235         ;;
16236     esac
16237     ;;
16238   psos*)
16239     # FIXME: insert proper C++ library support
16240     ld_shlibs_CXX=no
16241     ;;
16242   sco*)
16243     archive_cmds_need_lc_CXX=no
16244     case $cc_basename in
16245       CC)
16246         # FIXME: insert proper C++ library support
16247         ld_shlibs_CXX=no
16248         ;;
16249       *)
16250         # FIXME: insert proper C++ library support
16251         ld_shlibs_CXX=no
16252         ;;
16253     esac
16254     ;;
16255   sunos4*)
16256     case $cc_basename in
16257       CC)
16258         # Sun C++ 4.x
16259         # FIXME: insert proper C++ library support
16260         ld_shlibs_CXX=no
16261         ;;
16262       lcc)
16263         # Lucid
16264         # FIXME: insert proper C++ library support
16265         ld_shlibs_CXX=no
16266         ;;
16267       *)
16268         # FIXME: insert proper C++ library support
16269         ld_shlibs_CXX=no
16270         ;;
16271     esac
16272     ;;
16273   solaris*)
16274     case $cc_basename in
16275       CC)
16276         # Sun C++ 4.2, 5.x and Centerline C++
16277         no_undefined_flag_CXX=' -zdefs'
16278         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16279         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16280         $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'
16281
16282         hardcode_libdir_flag_spec_CXX='-R$libdir'
16283         hardcode_shlibpath_var_CXX=no
16284         case $host_os in
16285           solaris2.0-5 | solaris2.0-5.*) ;;
16286           *)
16287             # The C++ compiler is used as linker so we must use $wl
16288             # flag to pass the commands to the underlying system
16289             # linker.
16290             # Supported since Solaris 2.6 (maybe 2.5.1?)
16291             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16292             ;;
16293         esac
16294         link_all_deplibs_CXX=yes
16295
16296         # Commands to make compiler produce verbose output that lists
16297         # what "hidden" libraries, object files and flags are used when
16298         # linking a shared library.
16299         #
16300         # There doesn't appear to be a way to prevent this compiler from
16301         # explicitly linking system object files so we need to strip them
16302         # from the output so that they don't get included in the library
16303         # dependencies.
16304         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'
16305
16306         # Archives containing C++ object files must be created using
16307         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16308         # necessary to make sure instantiated templates are included
16309         # in the archive.
16310         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16311         ;;
16312       gcx)
16313         # Green Hills C++ Compiler
16314         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16315
16316         # The C++ compiler must be used to create the archive.
16317         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16318         ;;
16319       *)
16320         # GNU C++ compiler with Solaris linker
16321         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16322           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16323           if $CC --version | grep -v '^2\.7' > /dev/null; then
16324             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16325             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16326                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16327
16328             # Commands to make compiler produce verbose output that lists
16329             # what "hidden" libraries, object files and flags are used when
16330             # linking a shared library.
16331             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16332           else
16333             # g++ 2.7 appears to require `-G' NOT `-shared' on this
16334             # platform.
16335             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16336             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16337                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16338
16339             # Commands to make compiler produce verbose output that lists
16340             # what "hidden" libraries, object files and flags are used when
16341             # linking a shared library.
16342             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16343           fi
16344
16345           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16346         fi
16347         ;;
16348     esac
16349     ;;
16350   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16351     archive_cmds_need_lc_CXX=no
16352     ;;
16353   tandem*)
16354     case $cc_basename in
16355       NCC)
16356         # NonStop-UX NCC 3.20
16357         # FIXME: insert proper C++ library support
16358         ld_shlibs_CXX=no
16359         ;;
16360       *)
16361         # FIXME: insert proper C++ library support
16362         ld_shlibs_CXX=no
16363         ;;
16364     esac
16365     ;;
16366   vxworks*)
16367     # FIXME: insert proper C++ library support
16368     ld_shlibs_CXX=no
16369     ;;
16370   *)
16371     # FIXME: insert proper C++ library support
16372     ld_shlibs_CXX=no
16373     ;;
16374 esac
16375 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16376 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16377 test "$ld_shlibs_CXX" = no && can_build_shared=no
16378
16379 GCC_CXX="$GXX"
16380 LD_CXX="$LD"
16381
16382
16383 cat > conftest.$ac_ext <<EOF
16384 class Foo
16385 {
16386 public:
16387   Foo (void) { a = 0; }
16388 private:
16389   int a;
16390 };
16391 EOF
16392
16393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16394   (eval $ac_compile) 2>&5
16395   ac_status=$?
16396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397   (exit $ac_status); }; then
16398   # Parse the compiler output and extract the necessary
16399   # objects, libraries and library flags.
16400
16401   # Sentinel used to keep track of whether or not we are before
16402   # the conftest object file.
16403   pre_test_object_deps_done=no
16404
16405   # The `*' in the case matches for architectures that use `case' in
16406   # $output_verbose_cmd can trigger glob expansion during the loop
16407   # eval without this substitution.
16408   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16409
16410   for p in `eval $output_verbose_link_cmd`; do
16411     case $p in
16412
16413     -L* | -R* | -l*)
16414        # Some compilers place space between "-{L,R}" and the path.
16415        # Remove the space.
16416        if test $p = "-L" \
16417           || test $p = "-R"; then
16418          prev=$p
16419          continue
16420        else
16421          prev=
16422        fi
16423
16424        if test "$pre_test_object_deps_done" = no; then
16425          case $p in
16426          -L* | -R*)
16427            # Internal compiler library paths should come after those
16428            # provided the user.  The postdeps already come after the
16429            # user supplied libs so there is no need to process them.
16430            if test -z "$compiler_lib_search_path_CXX"; then
16431              compiler_lib_search_path_CXX="${prev}${p}"
16432            else
16433              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16434            fi
16435            ;;
16436          # The "-l" case would never come before the object being
16437          # linked, so don't bother handling this case.
16438          esac
16439        else
16440          if test -z "$postdeps_CXX"; then
16441            postdeps_CXX="${prev}${p}"
16442          else
16443            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16444          fi
16445        fi
16446        ;;
16447
16448     *.$objext)
16449        # This assumes that the test object file only shows up
16450        # once in the compiler output.
16451        if test "$p" = "conftest.$objext"; then
16452          pre_test_object_deps_done=yes
16453          continue
16454        fi
16455
16456        if test "$pre_test_object_deps_done" = no; then
16457          if test -z "$predep_objects_CXX"; then
16458            predep_objects_CXX="$p"
16459          else
16460            predep_objects_CXX="$predep_objects_CXX $p"
16461          fi
16462        else
16463          if test -z "$postdep_objects_CXX"; then
16464            postdep_objects_CXX="$p"
16465          else
16466            postdep_objects_CXX="$postdep_objects_CXX $p"
16467          fi
16468        fi
16469        ;;
16470
16471     *) ;; # Ignore the rest.
16472
16473     esac
16474   done
16475
16476   # Clean up.
16477   rm -f a.out a.exe
16478 else
16479   echo "libtool.m4: error: problem compiling CXX test program"
16480 fi
16481
16482 $rm -f confest.$objext
16483
16484 case " $postdeps_CXX " in
16485 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16486 esac
16487
16488 lt_prog_compiler_wl_CXX=
16489 lt_prog_compiler_pic_CXX=
16490 lt_prog_compiler_static_CXX=
16491
16492 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16493 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16494
16495   # C++ specific cases for pic, static, wl, etc.
16496   if test "$GXX" = yes; then
16497     lt_prog_compiler_wl_CXX='-Wl,'
16498     lt_prog_compiler_static_CXX='-static'
16499
16500     case $host_os in
16501     aix*)
16502       # All AIX code is PIC.
16503       if test "$host_cpu" = ia64; then
16504         # AIX 5 now supports IA64 processor
16505         lt_prog_compiler_static_CXX='-Bstatic'
16506       fi
16507       ;;
16508     amigaos*)
16509       # FIXME: we need at least 68020 code to build shared libraries, but
16510       # adding the `-m68020' flag to GCC prevents building anything better,
16511       # like `-m68040'.
16512       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16513       ;;
16514     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16515       # PIC is the default for these OSes.
16516       ;;
16517     mingw* | os2* | pw32*)
16518       # This hack is so that the source file can tell whether it is being
16519       # built for inclusion in a dll (and should export symbols for example).
16520       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16521       ;;
16522     darwin* | rhapsody*)
16523       # PIC is the default on this platform
16524       # Common symbols not allowed in MH_DYLIB files
16525       lt_prog_compiler_pic_CXX='-fno-common'
16526       ;;
16527     *djgpp*)
16528       # DJGPP does not support shared libraries at all
16529       lt_prog_compiler_pic_CXX=
16530       ;;
16531     sysv4*MP*)
16532       if test -d /usr/nec; then
16533         lt_prog_compiler_pic_CXX=-Kconform_pic
16534       fi
16535       ;;
16536     hpux*)
16537       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16538       # not for PA HP-UX.
16539       case "$host_cpu" in
16540       hppa*64*|ia64*)
16541         ;;
16542       *)
16543         lt_prog_compiler_pic_CXX='-fPIC'
16544         ;;
16545       esac
16546       ;;
16547     *)
16548       lt_prog_compiler_pic_CXX='-fPIC'
16549       ;;
16550     esac
16551   else
16552     case $host_os in
16553       aix4* | aix5*)
16554         # All AIX code is PIC.
16555         if test "$host_cpu" = ia64; then
16556           # AIX 5 now supports IA64 processor
16557           lt_prog_compiler_static_CXX='-Bstatic'
16558         else
16559           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16560         fi
16561         ;;
16562       chorus*)
16563         case $cc_basename in
16564         cxch68)
16565           # Green Hills C++ Compiler
16566           # _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"
16567           ;;
16568         esac
16569         ;;
16570        darwin*)
16571          # PIC is the default on this platform
16572          # Common symbols not allowed in MH_DYLIB files
16573          case "$cc_basename" in
16574            xlc*)
16575            lt_prog_compiler_pic_CXX='-qnocommon'
16576            lt_prog_compiler_wl_CXX='-Wl,'
16577            ;;
16578          esac
16579        ;;
16580       dgux*)
16581         case $cc_basename in
16582           ec++)
16583             lt_prog_compiler_pic_CXX='-KPIC'
16584             ;;
16585           ghcx)
16586             # Green Hills C++ Compiler
16587             lt_prog_compiler_pic_CXX='-pic'
16588             ;;
16589           *)
16590             ;;
16591         esac
16592         ;;
16593       freebsd* | kfreebsd*-gnu)
16594         # FreeBSD uses GNU C++
16595         ;;
16596       hpux9* | hpux10* | hpux11*)
16597         case $cc_basename in
16598           CC)
16599             lt_prog_compiler_wl_CXX='-Wl,'
16600             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16601             if test "$host_cpu" != ia64; then
16602               lt_prog_compiler_pic_CXX='+Z'
16603             fi
16604             ;;
16605           aCC)
16606             lt_prog_compiler_wl_CXX='-Wl,'
16607             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16608             case "$host_cpu" in
16609             hppa*64*|ia64*)
16610               # +Z the default
16611               ;;
16612             *)
16613               lt_prog_compiler_pic_CXX='+Z'
16614               ;;
16615             esac
16616             ;;
16617           *)
16618             ;;
16619         esac
16620         ;;
16621       irix5* | irix6* | nonstopux*)
16622         case $cc_basename in
16623           CC)
16624             lt_prog_compiler_wl_CXX='-Wl,'
16625             lt_prog_compiler_static_CXX='-non_shared'
16626             # CC pic flag -KPIC is the default.
16627             ;;
16628           *)
16629             ;;
16630         esac
16631         ;;
16632       linux*)
16633         case $cc_basename in
16634           KCC)
16635             # KAI C++ Compiler
16636             lt_prog_compiler_wl_CXX='--backend -Wl,'
16637             lt_prog_compiler_pic_CXX='-fPIC'
16638             ;;
16639           icpc)
16640             # Intel C++
16641             lt_prog_compiler_wl_CXX='-Wl,'
16642             lt_prog_compiler_pic_CXX='-KPIC'
16643             lt_prog_compiler_static_CXX='-static'
16644             ;;
16645           cxx)
16646             # Compaq C++
16647             # Make sure the PIC flag is empty.  It appears that all Alpha
16648             # Linux and Compaq Tru64 Unix objects are PIC.
16649             lt_prog_compiler_pic_CXX=
16650             lt_prog_compiler_static_CXX='-non_shared'
16651             ;;
16652           *)
16653             ;;
16654         esac
16655         ;;
16656       lynxos*)
16657         ;;
16658       m88k*)
16659         ;;
16660       mvs*)
16661         case $cc_basename in
16662           cxx)
16663             lt_prog_compiler_pic_CXX='-W c,exportall'
16664             ;;
16665           *)
16666             ;;
16667         esac
16668         ;;
16669       netbsd*)
16670         ;;
16671       osf3* | osf4* | osf5*)
16672         case $cc_basename in
16673           KCC)
16674             lt_prog_compiler_wl_CXX='--backend -Wl,'
16675             ;;
16676           RCC)
16677             # Rational C++ 2.4.1
16678             lt_prog_compiler_pic_CXX='-pic'
16679             ;;
16680           cxx)
16681             # Digital/Compaq C++
16682             lt_prog_compiler_wl_CXX='-Wl,'
16683             # Make sure the PIC flag is empty.  It appears that all Alpha
16684             # Linux and Compaq Tru64 Unix objects are PIC.
16685             lt_prog_compiler_pic_CXX=
16686             lt_prog_compiler_static_CXX='-non_shared'
16687             ;;
16688           *)
16689             ;;
16690         esac
16691         ;;
16692       psos*)
16693         ;;
16694       sco*)
16695         case $cc_basename in
16696           CC)
16697             lt_prog_compiler_pic_CXX='-fPIC'
16698             ;;
16699           *)
16700             ;;
16701         esac
16702         ;;
16703       solaris*)
16704         case $cc_basename in
16705           CC)
16706             # Sun C++ 4.2, 5.x and Centerline C++
16707             lt_prog_compiler_pic_CXX='-KPIC'
16708             lt_prog_compiler_static_CXX='-Bstatic'
16709             lt_prog_compiler_wl_CXX='-Qoption ld '
16710             ;;
16711           gcx)
16712             # Green Hills C++ Compiler
16713             lt_prog_compiler_pic_CXX='-PIC'
16714             ;;
16715           *)
16716             ;;
16717         esac
16718         ;;
16719       sunos4*)
16720         case $cc_basename in
16721           CC)
16722             # Sun C++ 4.x
16723             lt_prog_compiler_pic_CXX='-pic'
16724             lt_prog_compiler_static_CXX='-Bstatic'
16725             ;;
16726           lcc)
16727             # Lucid
16728             lt_prog_compiler_pic_CXX='-pic'
16729             ;;
16730           *)
16731             ;;
16732         esac
16733         ;;
16734       tandem*)
16735         case $cc_basename in
16736           NCC)
16737             # NonStop-UX NCC 3.20
16738             lt_prog_compiler_pic_CXX='-KPIC'
16739             ;;
16740           *)
16741             ;;
16742         esac
16743         ;;
16744       unixware*)
16745         ;;
16746       vxworks*)
16747         ;;
16748       *)
16749         lt_prog_compiler_can_build_shared_CXX=no
16750         ;;
16751     esac
16752   fi
16753
16754 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16755 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16756
16757 #
16758 # Check to make sure the PIC flag actually works.
16759 #
16760 if test -n "$lt_prog_compiler_pic_CXX"; then
16761
16762 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16763 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16764 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16765   echo $ECHO_N "(cached) $ECHO_C" >&6
16766 else
16767   lt_prog_compiler_pic_works_CXX=no
16768   ac_outfile=conftest.$ac_objext
16769    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16770    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16771    # Insert the option either (1) after the last *FLAGS variable, or
16772    # (2) before a word containing "conftest.", or (3) at the end.
16773    # Note that $ac_compile itself does not contain backslashes and begins
16774    # with a dollar sign (not a hyphen), so the echo should work correctly.
16775    # The option is referenced via a variable to avoid confusing sed.
16776    lt_compile=`echo "$ac_compile" | $SED \
16777    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16778    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16779    -e 's:$: $lt_compiler_flag:'`
16780    (eval echo "\"\$as_me:16780: $lt_compile\"" >&5)
16781    (eval "$lt_compile" 2>conftest.err)
16782    ac_status=$?
16783    cat conftest.err >&5
16784    echo "$as_me:16784: \$? = $ac_status" >&5
16785    if (exit $ac_status) && test -s "$ac_outfile"; then
16786      # The compiler can only warn and ignore the option if not recognized
16787      # So say no if there are warnings
16788      if test ! -s conftest.err; then
16789        lt_prog_compiler_pic_works_CXX=yes
16790      fi
16791    fi
16792    $rm conftest*
16793
16794 fi
16795 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16796 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16797
16798 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16799     case $lt_prog_compiler_pic_CXX in
16800      "" | " "*) ;;
16801      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16802      esac
16803 else
16804     lt_prog_compiler_pic_CXX=
16805      lt_prog_compiler_can_build_shared_CXX=no
16806 fi
16807
16808 fi
16809 case "$host_os" in
16810   # For platforms which do not support PIC, -DPIC is meaningless:
16811   *djgpp*)
16812     lt_prog_compiler_pic_CXX=
16813     ;;
16814   *)
16815     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16816     ;;
16817 esac
16818
16819 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16820 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16821 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16822   echo $ECHO_N "(cached) $ECHO_C" >&6
16823 else
16824   lt_cv_prog_compiler_c_o_CXX=no
16825    $rm -r conftest 2>/dev/null
16826    mkdir conftest
16827    cd conftest
16828    mkdir out
16829    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16830
16831    lt_compiler_flag="-o out/conftest2.$ac_objext"
16832    # Insert the option either (1) after the last *FLAGS variable, or
16833    # (2) before a word containing "conftest.", or (3) at the end.
16834    # Note that $ac_compile itself does not contain backslashes and begins
16835    # with a dollar sign (not a hyphen), so the echo should work correctly.
16836    lt_compile=`echo "$ac_compile" | $SED \
16837    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16838    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16839    -e 's:$: $lt_compiler_flag:'`
16840    (eval echo "\"\$as_me:16840: $lt_compile\"" >&5)
16841    (eval "$lt_compile" 2>out/conftest.err)
16842    ac_status=$?
16843    cat out/conftest.err >&5
16844    echo "$as_me:16844: \$? = $ac_status" >&5
16845    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16846    then
16847      # The compiler can only warn and ignore the option if not recognized
16848      # So say no if there are warnings
16849      if test ! -s out/conftest.err; then
16850        lt_cv_prog_compiler_c_o_CXX=yes
16851      fi
16852    fi
16853    chmod u+w .
16854    $rm conftest*
16855    # SGI C++ compiler will create directory out/ii_files/ for
16856    # template instantiation
16857    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16858    $rm out/* && rmdir out
16859    cd ..
16860    rmdir conftest
16861    $rm conftest*
16862
16863 fi
16864 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16865 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16866
16867
16868 hard_links="nottested"
16869 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16870   # do not overwrite the value of need_locks provided by the user
16871   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16872 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16873   hard_links=yes
16874   $rm conftest*
16875   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16876   touch conftest.a
16877   ln conftest.a conftest.b 2>&5 || hard_links=no
16878   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16879   echo "$as_me:$LINENO: result: $hard_links" >&5
16880 echo "${ECHO_T}$hard_links" >&6
16881   if test "$hard_links" = no; then
16882     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16883 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16884     need_locks=warn
16885   fi
16886 else
16887   need_locks=no
16888 fi
16889
16890 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16891 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16892
16893   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16894   case $host_os in
16895   aix4* | aix5*)
16896     # If we're using GNU nm, then we don't want the "-C" option.
16897     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16898     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16899       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'
16900     else
16901       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'
16902     fi
16903     ;;
16904   pw32*)
16905     export_symbols_cmds_CXX="$ltdll_cmds"
16906   ;;
16907   cygwin* | mingw*)
16908     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16909   ;;
16910   *)
16911     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16912   ;;
16913   esac
16914
16915 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16916 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16917 test "$ld_shlibs_CXX" = no && can_build_shared=no
16918
16919 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16920 if test "$GCC" = yes; then
16921   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16922 fi
16923
16924 #
16925 # Do we need to explicitly link libc?
16926 #
16927 case "x$archive_cmds_need_lc_CXX" in
16928 x|xyes)
16929   # Assume -lc should be added
16930   archive_cmds_need_lc_CXX=yes
16931
16932   if test "$enable_shared" = yes && test "$GCC" = yes; then
16933     case $archive_cmds_CXX in
16934     *'~'*)
16935       # FIXME: we may have to deal with multi-command sequences.
16936       ;;
16937     '$CC '*)
16938       # Test whether the compiler implicitly links with -lc since on some
16939       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16940       # to ld, don't add -lc before -lgcc.
16941       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16942 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16943       $rm conftest*
16944       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16945
16946       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16947   (eval $ac_compile) 2>&5
16948   ac_status=$?
16949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950   (exit $ac_status); } 2>conftest.err; then
16951         soname=conftest
16952         lib=conftest
16953         libobjs=conftest.$ac_objext
16954         deplibs=
16955         wl=$lt_prog_compiler_wl_CXX
16956         compiler_flags=-v
16957         linker_flags=-v
16958         verstring=
16959         output_objdir=.
16960         libname=conftest
16961         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16962         allow_undefined_flag_CXX=
16963         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16964   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16965   ac_status=$?
16966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967   (exit $ac_status); }
16968         then
16969           archive_cmds_need_lc_CXX=no
16970         else
16971           archive_cmds_need_lc_CXX=yes
16972         fi
16973         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16974       else
16975         cat conftest.err 1>&5
16976       fi
16977       $rm conftest*
16978       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16979 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16980       ;;
16981     esac
16982   fi
16983   ;;
16984 esac
16985
16986 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16987 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16988 library_names_spec=
16989 libname_spec='lib$name'
16990 soname_spec=
16991 shrext_cmds=".so"
16992 postinstall_cmds=
16993 postuninstall_cmds=
16994 finish_cmds=
16995 finish_eval=
16996 shlibpath_var=
16997 shlibpath_overrides_runpath=unknown
16998 version_type=none
16999 dynamic_linker="$host_os ld.so"
17000 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17001 if test "$GCC" = yes; then
17002   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17003   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17004     # if the path contains ";" then we assume it to be the separator
17005     # otherwise default to the standard path separator (i.e. ":") - it is
17006     # assumed that no part of a normal pathname contains ";" but that should
17007     # okay in the real world where ";" in dirpaths is itself problematic.
17008     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17009   else
17010     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17011   fi
17012 else
17013   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17014 fi
17015 need_lib_prefix=unknown
17016 hardcode_into_libs=no
17017
17018 # when you set need_version to no, make sure it does not cause -set_version
17019 # flags to be left without arguments
17020 need_version=unknown
17021
17022 case $host_os in
17023 aix3*)
17024   version_type=linux
17025   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17026   shlibpath_var=LIBPATH
17027
17028   # AIX 3 has no versioning support, so we append a major version to the name.
17029   soname_spec='${libname}${release}${shared_ext}$major'
17030   ;;
17031
17032 aix4* | aix5*)
17033   version_type=linux
17034   need_lib_prefix=no
17035   need_version=no
17036   hardcode_into_libs=yes
17037   if test "$host_cpu" = ia64; then
17038     # AIX 5 supports IA64
17039     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17040     shlibpath_var=LD_LIBRARY_PATH
17041   else
17042     # With GCC up to 2.95.x, collect2 would create an import file
17043     # for dependence libraries.  The import file would start with
17044     # the line `#! .'.  This would cause the generated library to
17045     # depend on `.', always an invalid library.  This was fixed in
17046     # development snapshots of GCC prior to 3.0.
17047     case $host_os in
17048       aix4 | aix4.[01] | aix4.[01].*)
17049       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17050            echo ' yes '
17051            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17052         :
17053       else
17054         can_build_shared=no
17055       fi
17056       ;;
17057     esac
17058     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17059     # soname into executable. Probably we can add versioning support to
17060     # collect2, so additional links can be useful in future.
17061     if test "$aix_use_runtimelinking" = yes; then
17062       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17063       # instead of lib<name>.a to let people know that these are not
17064       # typical AIX shared libraries.
17065       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17066     else
17067       # We preserve .a as extension for shared libraries through AIX4.2
17068       # and later when we are not doing run time linking.
17069       library_names_spec='${libname}${release}.a $libname.a'
17070       soname_spec='${libname}${release}${shared_ext}$major'
17071     fi
17072     shlibpath_var=LIBPATH
17073   fi
17074   ;;
17075
17076 amigaos*)
17077   library_names_spec='$libname.ixlibrary $libname.a'
17078   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17079   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'
17080   ;;
17081
17082 beos*)
17083   library_names_spec='${libname}${shared_ext}'
17084   dynamic_linker="$host_os ld.so"
17085   shlibpath_var=LIBRARY_PATH
17086   ;;
17087
17088 bsdi[45]*)
17089   version_type=linux
17090   need_version=no
17091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17092   soname_spec='${libname}${release}${shared_ext}$major'
17093   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17094   shlibpath_var=LD_LIBRARY_PATH
17095   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17096   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17097   # the default ld.so.conf also contains /usr/contrib/lib and
17098   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17099   # libtool to hard-code these into programs
17100   ;;
17101
17102 cygwin* | mingw* | pw32*)
17103   version_type=windows
17104   shrext_cmds=".dll"
17105   need_version=no
17106   need_lib_prefix=no
17107
17108   case $GCC,$host_os in
17109   yes,cygwin* | yes,mingw* | yes,pw32*)
17110     library_names_spec='$libname.dll.a'
17111     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17112     postinstall_cmds='base_file=`basename \${file}`~
17113       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17114       dldir=$destdir/`dirname \$dlpath`~
17115       test -d \$dldir || mkdir -p \$dldir~
17116       $install_prog $dir/$dlname \$dldir/$dlname'
17117     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17118       dlpath=$dir/\$dldll~
17119        $rm \$dlpath'
17120     shlibpath_overrides_runpath=yes
17121
17122     case $host_os in
17123     cygwin*)
17124       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17125       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17126       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17127       ;;
17128     mingw*)
17129       # MinGW DLLs use traditional 'lib' prefix
17130       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17131       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17132       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17133         # It is most probably a Windows format PATH printed by
17134         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17135         # path with ; separators, and with drive letters. We can handle the
17136         # drive letters (cygwin fileutils understands them), so leave them,
17137         # especially as we might pass files found there to a mingw objdump,
17138         # which wouldn't understand a cygwinified path. Ahh.
17139         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17140       else
17141         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17142       fi
17143       ;;
17144     pw32*)
17145       # pw32 DLLs use 'pw' prefix rather than 'lib'
17146       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17147       ;;
17148     esac
17149     ;;
17150
17151   *)
17152     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17153     ;;
17154   esac
17155   dynamic_linker='Win32 ld.exe'
17156   # FIXME: first we should search . and the directory the executable is in
17157   shlibpath_var=PATH
17158   ;;
17159
17160 darwin* | rhapsody*)
17161   dynamic_linker="$host_os dyld"
17162   version_type=darwin
17163   need_lib_prefix=no
17164   need_version=no
17165   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17166   soname_spec='${libname}${release}${major}$shared_ext'
17167   shlibpath_overrides_runpath=yes
17168   shlibpath_var=DYLD_LIBRARY_PATH
17169   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17170   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17171   if test "$GCC" = yes; then
17172     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"`
17173   else
17174     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17175   fi
17176   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17177   ;;
17178
17179 dgux*)
17180   version_type=linux
17181   need_lib_prefix=no
17182   need_version=no
17183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17184   soname_spec='${libname}${release}${shared_ext}$major'
17185   shlibpath_var=LD_LIBRARY_PATH
17186   ;;
17187
17188 freebsd1*)
17189   dynamic_linker=no
17190   ;;
17191
17192 kfreebsd*-gnu)
17193   version_type=linux
17194   need_lib_prefix=no
17195   need_version=no
17196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17197   soname_spec='${libname}${release}${shared_ext}$major'
17198   shlibpath_var=LD_LIBRARY_PATH
17199   shlibpath_overrides_runpath=no
17200   hardcode_into_libs=yes
17201   dynamic_linker='GNU ld.so'
17202   ;;
17203
17204 freebsd*)
17205   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17206   version_type=freebsd-$objformat
17207   case $version_type in
17208     freebsd-elf*)
17209       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17210       need_version=no
17211       need_lib_prefix=no
17212       ;;
17213     freebsd-*)
17214       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17215       need_version=yes
17216       ;;
17217   esac
17218   shlibpath_var=LD_LIBRARY_PATH
17219   case $host_os in
17220   freebsd2*)
17221     shlibpath_overrides_runpath=yes
17222     ;;
17223   freebsd3.01* | freebsdelf3.01*)
17224     shlibpath_overrides_runpath=yes
17225     hardcode_into_libs=yes
17226     ;;
17227   *) # from 3.2 on
17228     shlibpath_overrides_runpath=no
17229     hardcode_into_libs=yes
17230     ;;
17231   esac
17232   ;;
17233
17234 gnu*)
17235   version_type=linux
17236   need_lib_prefix=no
17237   need_version=no
17238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17239   soname_spec='${libname}${release}${shared_ext}$major'
17240   shlibpath_var=LD_LIBRARY_PATH
17241   hardcode_into_libs=yes
17242   ;;
17243
17244 hpux9* | hpux10* | hpux11*)
17245   # Give a soname corresponding to the major version so that dld.sl refuses to
17246   # link against other versions.
17247   version_type=sunos
17248   need_lib_prefix=no
17249   need_version=no
17250   case "$host_cpu" in
17251   ia64*)
17252     shrext_cmds='.so'
17253     hardcode_into_libs=yes
17254     dynamic_linker="$host_os dld.so"
17255     shlibpath_var=LD_LIBRARY_PATH
17256     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17257     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17258     soname_spec='${libname}${release}${shared_ext}$major'
17259     if test "X$HPUX_IA64_MODE" = X32; then
17260       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17261     else
17262       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17263     fi
17264     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17265     ;;
17266    hppa*64*)
17267      shrext_cmds='.sl'
17268      hardcode_into_libs=yes
17269      dynamic_linker="$host_os dld.sl"
17270      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17271      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17272      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17273      soname_spec='${libname}${release}${shared_ext}$major'
17274      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17275      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17276      ;;
17277    *)
17278     shrext_cmds='.sl'
17279     dynamic_linker="$host_os dld.sl"
17280     shlibpath_var=SHLIB_PATH
17281     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17282     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17283     soname_spec='${libname}${release}${shared_ext}$major'
17284     ;;
17285   esac
17286   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17287   postinstall_cmds='chmod 555 $lib'
17288   ;;
17289
17290 irix5* | irix6* | nonstopux*)
17291   case $host_os in
17292     nonstopux*) version_type=nonstopux ;;
17293     *)
17294         if test "$lt_cv_prog_gnu_ld" = yes; then
17295                 version_type=linux
17296         else
17297                 version_type=irix
17298         fi ;;
17299   esac
17300   need_lib_prefix=no
17301   need_version=no
17302   soname_spec='${libname}${release}${shared_ext}$major'
17303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17304   case $host_os in
17305   irix5* | nonstopux*)
17306     libsuff= shlibsuff=
17307     ;;
17308   *)
17309     case $LD in # libtool.m4 will add one of these switches to LD
17310     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17311       libsuff= shlibsuff= libmagic=32-bit;;
17312     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17313       libsuff=32 shlibsuff=N32 libmagic=N32;;
17314     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17315       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17316     *) libsuff= shlibsuff= libmagic=never-match;;
17317     esac
17318     ;;
17319   esac
17320   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17321   shlibpath_overrides_runpath=no
17322   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17323   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17324   hardcode_into_libs=yes
17325   ;;
17326
17327 # No shared lib support for Linux oldld, aout, or coff.
17328 linux*oldld* | linux*aout* | linux*coff*)
17329   dynamic_linker=no
17330   ;;
17331
17332 # This must be Linux ELF.
17333 linux*)
17334   version_type=linux
17335   need_lib_prefix=no
17336   need_version=no
17337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17338   soname_spec='${libname}${release}${shared_ext}$major'
17339   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17340   shlibpath_var=LD_LIBRARY_PATH
17341   shlibpath_overrides_runpath=no
17342   # This implies no fast_install, which is unacceptable.
17343   # Some rework will be needed to allow for fast_install
17344   # before this can be enabled.
17345   hardcode_into_libs=yes
17346
17347   # Append ld.so.conf contents to the search path
17348   if test -f /etc/ld.so.conf; then
17349     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17350     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17351   fi
17352
17353   # We used to test for /lib/ld.so.1 and disable shared libraries on
17354   # powerpc, because MkLinux only supported shared libraries with the
17355   # GNU dynamic linker.  Since this was broken with cross compilers,
17356   # most powerpc-linux boxes support dynamic linking these days and
17357   # people can always --disable-shared, the test was removed, and we
17358   # assume the GNU/Linux dynamic linker is in use.
17359   dynamic_linker='GNU/Linux ld.so'
17360   ;;
17361
17362 knetbsd*-gnu)
17363   version_type=linux
17364   need_lib_prefix=no
17365   need_version=no
17366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17367   soname_spec='${libname}${release}${shared_ext}$major'
17368   shlibpath_var=LD_LIBRARY_PATH
17369   shlibpath_overrides_runpath=no
17370   hardcode_into_libs=yes
17371   dynamic_linker='GNU ld.so'
17372   ;;
17373
17374 netbsd*)
17375   version_type=sunos
17376   need_lib_prefix=no
17377   need_version=no
17378   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17379     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17380     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17381     dynamic_linker='NetBSD (a.out) ld.so'
17382   else
17383     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17384     soname_spec='${libname}${release}${shared_ext}$major'
17385     dynamic_linker='NetBSD ld.elf_so'
17386   fi
17387   shlibpath_var=LD_LIBRARY_PATH
17388   shlibpath_overrides_runpath=yes
17389   hardcode_into_libs=yes
17390   ;;
17391
17392 newsos6)
17393   version_type=linux
17394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17395   shlibpath_var=LD_LIBRARY_PATH
17396   shlibpath_overrides_runpath=yes
17397   ;;
17398
17399 nto-qnx*)
17400   version_type=linux
17401   need_lib_prefix=no
17402   need_version=no
17403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17404   soname_spec='${libname}${release}${shared_ext}$major'
17405   shlibpath_var=LD_LIBRARY_PATH
17406   shlibpath_overrides_runpath=yes
17407   ;;
17408
17409 openbsd*)
17410   version_type=sunos
17411   need_lib_prefix=no
17412   need_version=no
17413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17414   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17415   shlibpath_var=LD_LIBRARY_PATH
17416   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17417     case $host_os in
17418       openbsd2.[89] | openbsd2.[89].*)
17419         shlibpath_overrides_runpath=no
17420         ;;
17421       *)
17422         shlibpath_overrides_runpath=yes
17423         ;;
17424       esac
17425   else
17426     shlibpath_overrides_runpath=yes
17427   fi
17428   ;;
17429
17430 os2*)
17431   libname_spec='$name'
17432   shrext_cmds=".dll"
17433   need_lib_prefix=no
17434   library_names_spec='$libname${shared_ext} $libname.a'
17435   dynamic_linker='OS/2 ld.exe'
17436   shlibpath_var=LIBPATH
17437   ;;
17438
17439 osf3* | osf4* | osf5*)
17440   version_type=osf
17441   need_lib_prefix=no
17442   need_version=no
17443   soname_spec='${libname}${release}${shared_ext}$major'
17444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17445   shlibpath_var=LD_LIBRARY_PATH
17446   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17447   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17448   ;;
17449
17450 sco3.2v5*)
17451   version_type=osf
17452   soname_spec='${libname}${release}${shared_ext}$major'
17453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17454   shlibpath_var=LD_LIBRARY_PATH
17455   ;;
17456
17457 solaris*)
17458   version_type=linux
17459   need_lib_prefix=no
17460   need_version=no
17461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17462   soname_spec='${libname}${release}${shared_ext}$major'
17463   shlibpath_var=LD_LIBRARY_PATH
17464   shlibpath_overrides_runpath=yes
17465   hardcode_into_libs=yes
17466   # ldd complains unless libraries are executable
17467   postinstall_cmds='chmod +x $lib'
17468   ;;
17469
17470 sunos4*)
17471   version_type=sunos
17472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17473   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17474   shlibpath_var=LD_LIBRARY_PATH
17475   shlibpath_overrides_runpath=yes
17476   if test "$with_gnu_ld" = yes; then
17477     need_lib_prefix=no
17478   fi
17479   need_version=yes
17480   ;;
17481
17482 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17483   version_type=linux
17484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17485   soname_spec='${libname}${release}${shared_ext}$major'
17486   shlibpath_var=LD_LIBRARY_PATH
17487   case $host_vendor in
17488     sni)
17489       shlibpath_overrides_runpath=no
17490       need_lib_prefix=no
17491       export_dynamic_flag_spec='${wl}-Blargedynsym'
17492       runpath_var=LD_RUN_PATH
17493       ;;
17494     siemens)
17495       need_lib_prefix=no
17496       ;;
17497     motorola)
17498       need_lib_prefix=no
17499       need_version=no
17500       shlibpath_overrides_runpath=no
17501       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17502       ;;
17503   esac
17504   ;;
17505
17506 sysv4*MP*)
17507   if test -d /usr/nec ;then
17508     version_type=linux
17509     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17510     soname_spec='$libname${shared_ext}.$major'
17511     shlibpath_var=LD_LIBRARY_PATH
17512   fi
17513   ;;
17514
17515 uts4*)
17516   version_type=linux
17517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17518   soname_spec='${libname}${release}${shared_ext}$major'
17519   shlibpath_var=LD_LIBRARY_PATH
17520   ;;
17521
17522 *)
17523   dynamic_linker=no
17524   ;;
17525 esac
17526 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17527 echo "${ECHO_T}$dynamic_linker" >&6
17528 test "$dynamic_linker" = no && can_build_shared=no
17529
17530 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17531 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17532 hardcode_action_CXX=
17533 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17534    test -n "$runpath_var_CXX" || \
17535    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17536
17537   # We can hardcode non-existant directories.
17538   if test "$hardcode_direct_CXX" != no &&
17539      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17540      # have to relink, otherwise we might link with an installed library
17541      # when we should be linking with a yet-to-be-installed one
17542      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17543      test "$hardcode_minus_L_CXX" != no; then
17544     # Linking always hardcodes the temporary library directory.
17545     hardcode_action_CXX=relink
17546   else
17547     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17548     hardcode_action_CXX=immediate
17549   fi
17550 else
17551   # We cannot hardcode anything, or else we can only hardcode existing
17552   # directories.
17553   hardcode_action_CXX=unsupported
17554 fi
17555 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17556 echo "${ECHO_T}$hardcode_action_CXX" >&6
17557
17558 if test "$hardcode_action_CXX" = relink; then
17559   # Fast installation is not supported
17560   enable_fast_install=no
17561 elif test "$shlibpath_overrides_runpath" = yes ||
17562      test "$enable_shared" = no; then
17563   # Fast installation is not necessary
17564   enable_fast_install=needless
17565 fi
17566
17567 striplib=
17568 old_striplib=
17569 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17570 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17571 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17572   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17573   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17574   echo "$as_me:$LINENO: result: yes" >&5
17575 echo "${ECHO_T}yes" >&6
17576 else
17577 # FIXME - insert some real tests, host_os isn't really good enough
17578   case $host_os in
17579    darwin*)
17580        if test -n "$STRIP" ; then
17581          striplib="$STRIP -x"
17582          echo "$as_me:$LINENO: result: yes" >&5
17583 echo "${ECHO_T}yes" >&6
17584        else
17585   echo "$as_me:$LINENO: result: no" >&5
17586 echo "${ECHO_T}no" >&6
17587 fi
17588        ;;
17589    *)
17590   echo "$as_me:$LINENO: result: no" >&5
17591 echo "${ECHO_T}no" >&6
17592     ;;
17593   esac
17594 fi
17595
17596 if test "x$enable_dlopen" != xyes; then
17597   enable_dlopen=unknown
17598   enable_dlopen_self=unknown
17599   enable_dlopen_self_static=unknown
17600 else
17601   lt_cv_dlopen=no
17602   lt_cv_dlopen_libs=
17603
17604   case $host_os in
17605   beos*)
17606     lt_cv_dlopen="load_add_on"
17607     lt_cv_dlopen_libs=
17608     lt_cv_dlopen_self=yes
17609     ;;
17610
17611   mingw* | pw32*)
17612     lt_cv_dlopen="LoadLibrary"
17613     lt_cv_dlopen_libs=
17614    ;;
17615
17616   cygwin*)
17617     lt_cv_dlopen="dlopen"
17618     lt_cv_dlopen_libs=
17619    ;;
17620
17621   darwin*)
17622   # if libdl is installed we need to link against it
17623     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17624 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17625 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17626   echo $ECHO_N "(cached) $ECHO_C" >&6
17627 else
17628   ac_check_lib_save_LIBS=$LIBS
17629 LIBS="-ldl  $LIBS"
17630 cat >conftest.$ac_ext <<_ACEOF
17631 /* confdefs.h.  */
17632 _ACEOF
17633 cat confdefs.h >>conftest.$ac_ext
17634 cat >>conftest.$ac_ext <<_ACEOF
17635 /* end confdefs.h.  */
17636
17637 /* Override any gcc2 internal prototype to avoid an error.  */
17638 #ifdef __cplusplus
17639 extern "C"
17640 #endif
17641 /* We use char because int might match the return type of a gcc2
17642    builtin and then its argument prototype would still apply.  */
17643 char dlopen ();
17644 int
17645 main ()
17646 {
17647 dlopen ();
17648   ;
17649   return 0;
17650 }
17651 _ACEOF
17652 rm -f conftest.$ac_objext conftest$ac_exeext
17653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17654   (eval $ac_link) 2>conftest.er1
17655   ac_status=$?
17656   grep -v '^ *+' conftest.er1 >conftest.err
17657   rm -f conftest.er1
17658   cat conftest.err >&5
17659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660   (exit $ac_status); } &&
17661          { ac_try='test -z "$ac_cxx_werror_flag"
17662                          || test ! -s conftest.err'
17663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664   (eval $ac_try) 2>&5
17665   ac_status=$?
17666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667   (exit $ac_status); }; } &&
17668          { ac_try='test -s conftest$ac_exeext'
17669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670   (eval $ac_try) 2>&5
17671   ac_status=$?
17672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673   (exit $ac_status); }; }; then
17674   ac_cv_lib_dl_dlopen=yes
17675 else
17676   echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17678
17679 ac_cv_lib_dl_dlopen=no
17680 fi
17681 rm -f conftest.err conftest.$ac_objext \
17682       conftest$ac_exeext conftest.$ac_ext
17683 LIBS=$ac_check_lib_save_LIBS
17684 fi
17685 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17686 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17687 if test $ac_cv_lib_dl_dlopen = yes; then
17688   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17689 else
17690
17691     lt_cv_dlopen="dyld"
17692     lt_cv_dlopen_libs=
17693     lt_cv_dlopen_self=yes
17694
17695 fi
17696
17697    ;;
17698
17699   *)
17700     echo "$as_me:$LINENO: checking for shl_load" >&5
17701 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17702 if test "${ac_cv_func_shl_load+set}" = set; then
17703   echo $ECHO_N "(cached) $ECHO_C" >&6
17704 else
17705   cat >conftest.$ac_ext <<_ACEOF
17706 /* confdefs.h.  */
17707 _ACEOF
17708 cat confdefs.h >>conftest.$ac_ext
17709 cat >>conftest.$ac_ext <<_ACEOF
17710 /* end confdefs.h.  */
17711 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17713 #define shl_load innocuous_shl_load
17714
17715 /* System header to define __stub macros and hopefully few prototypes,
17716     which can conflict with char shl_load (); below.
17717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17718     <limits.h> exists even on freestanding compilers.  */
17719
17720 #ifdef __STDC__
17721 # include <limits.h>
17722 #else
17723 # include <assert.h>
17724 #endif
17725
17726 #undef shl_load
17727
17728 /* Override any gcc2 internal prototype to avoid an error.  */
17729 #ifdef __cplusplus
17730 extern "C"
17731 {
17732 #endif
17733 /* We use char because int might match the return type of a gcc2
17734    builtin and then its argument prototype would still apply.  */
17735 char shl_load ();
17736 /* The GNU C library defines this for functions which it implements
17737     to always fail with ENOSYS.  Some functions are actually named
17738     something starting with __ and the normal name is an alias.  */
17739 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17740 choke me
17741 #else
17742 char (*f) () = shl_load;
17743 #endif
17744 #ifdef __cplusplus
17745 }
17746 #endif
17747
17748 int
17749 main ()
17750 {
17751 return f != shl_load;
17752   ;
17753   return 0;
17754 }
17755 _ACEOF
17756 rm -f conftest.$ac_objext conftest$ac_exeext
17757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17758   (eval $ac_link) 2>conftest.er1
17759   ac_status=$?
17760   grep -v '^ *+' conftest.er1 >conftest.err
17761   rm -f conftest.er1
17762   cat conftest.err >&5
17763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764   (exit $ac_status); } &&
17765          { ac_try='test -z "$ac_cxx_werror_flag"
17766                          || test ! -s conftest.err'
17767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768   (eval $ac_try) 2>&5
17769   ac_status=$?
17770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771   (exit $ac_status); }; } &&
17772          { ac_try='test -s conftest$ac_exeext'
17773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774   (eval $ac_try) 2>&5
17775   ac_status=$?
17776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777   (exit $ac_status); }; }; then
17778   ac_cv_func_shl_load=yes
17779 else
17780   echo "$as_me: failed program was:" >&5
17781 sed 's/^/| /' conftest.$ac_ext >&5
17782
17783 ac_cv_func_shl_load=no
17784 fi
17785 rm -f conftest.err conftest.$ac_objext \
17786       conftest$ac_exeext conftest.$ac_ext
17787 fi
17788 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17789 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17790 if test $ac_cv_func_shl_load = yes; then
17791   lt_cv_dlopen="shl_load"
17792 else
17793   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17794 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17795 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17796   echo $ECHO_N "(cached) $ECHO_C" >&6
17797 else
17798   ac_check_lib_save_LIBS=$LIBS
17799 LIBS="-ldld  $LIBS"
17800 cat >conftest.$ac_ext <<_ACEOF
17801 /* confdefs.h.  */
17802 _ACEOF
17803 cat confdefs.h >>conftest.$ac_ext
17804 cat >>conftest.$ac_ext <<_ACEOF
17805 /* end confdefs.h.  */
17806
17807 /* Override any gcc2 internal prototype to avoid an error.  */
17808 #ifdef __cplusplus
17809 extern "C"
17810 #endif
17811 /* We use char because int might match the return type of a gcc2
17812    builtin and then its argument prototype would still apply.  */
17813 char shl_load ();
17814 int
17815 main ()
17816 {
17817 shl_load ();
17818   ;
17819   return 0;
17820 }
17821 _ACEOF
17822 rm -f conftest.$ac_objext conftest$ac_exeext
17823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17824   (eval $ac_link) 2>conftest.er1
17825   ac_status=$?
17826   grep -v '^ *+' conftest.er1 >conftest.err
17827   rm -f conftest.er1
17828   cat conftest.err >&5
17829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830   (exit $ac_status); } &&
17831          { ac_try='test -z "$ac_cxx_werror_flag"
17832                          || test ! -s conftest.err'
17833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834   (eval $ac_try) 2>&5
17835   ac_status=$?
17836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837   (exit $ac_status); }; } &&
17838          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17844   ac_cv_lib_dld_shl_load=yes
17845 else
17846   echo "$as_me: failed program was:" >&5
17847 sed 's/^/| /' conftest.$ac_ext >&5
17848
17849 ac_cv_lib_dld_shl_load=no
17850 fi
17851 rm -f conftest.err conftest.$ac_objext \
17852       conftest$ac_exeext conftest.$ac_ext
17853 LIBS=$ac_check_lib_save_LIBS
17854 fi
17855 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17856 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17857 if test $ac_cv_lib_dld_shl_load = yes; then
17858   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17859 else
17860   echo "$as_me:$LINENO: checking for dlopen" >&5
17861 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17862 if test "${ac_cv_func_dlopen+set}" = set; then
17863   echo $ECHO_N "(cached) $ECHO_C" >&6
17864 else
17865   cat >conftest.$ac_ext <<_ACEOF
17866 /* confdefs.h.  */
17867 _ACEOF
17868 cat confdefs.h >>conftest.$ac_ext
17869 cat >>conftest.$ac_ext <<_ACEOF
17870 /* end confdefs.h.  */
17871 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17872    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17873 #define dlopen innocuous_dlopen
17874
17875 /* System header to define __stub macros and hopefully few prototypes,
17876     which can conflict with char dlopen (); below.
17877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17878     <limits.h> exists even on freestanding compilers.  */
17879
17880 #ifdef __STDC__
17881 # include <limits.h>
17882 #else
17883 # include <assert.h>
17884 #endif
17885
17886 #undef dlopen
17887
17888 /* Override any gcc2 internal prototype to avoid an error.  */
17889 #ifdef __cplusplus
17890 extern "C"
17891 {
17892 #endif
17893 /* We use char because int might match the return type of a gcc2
17894    builtin and then its argument prototype would still apply.  */
17895 char dlopen ();
17896 /* The GNU C library defines this for functions which it implements
17897     to always fail with ENOSYS.  Some functions are actually named
17898     something starting with __ and the normal name is an alias.  */
17899 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17900 choke me
17901 #else
17902 char (*f) () = dlopen;
17903 #endif
17904 #ifdef __cplusplus
17905 }
17906 #endif
17907
17908 int
17909 main ()
17910 {
17911 return f != dlopen;
17912   ;
17913   return 0;
17914 }
17915 _ACEOF
17916 rm -f conftest.$ac_objext conftest$ac_exeext
17917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17918   (eval $ac_link) 2>conftest.er1
17919   ac_status=$?
17920   grep -v '^ *+' conftest.er1 >conftest.err
17921   rm -f conftest.er1
17922   cat conftest.err >&5
17923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924   (exit $ac_status); } &&
17925          { ac_try='test -z "$ac_cxx_werror_flag"
17926                          || test ! -s conftest.err'
17927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928   (eval $ac_try) 2>&5
17929   ac_status=$?
17930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931   (exit $ac_status); }; } &&
17932          { ac_try='test -s conftest$ac_exeext'
17933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17934   (eval $ac_try) 2>&5
17935   ac_status=$?
17936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937   (exit $ac_status); }; }; then
17938   ac_cv_func_dlopen=yes
17939 else
17940   echo "$as_me: failed program was:" >&5
17941 sed 's/^/| /' conftest.$ac_ext >&5
17942
17943 ac_cv_func_dlopen=no
17944 fi
17945 rm -f conftest.err conftest.$ac_objext \
17946       conftest$ac_exeext conftest.$ac_ext
17947 fi
17948 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17949 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17950 if test $ac_cv_func_dlopen = yes; then
17951   lt_cv_dlopen="dlopen"
17952 else
17953   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17954 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17955 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17956   echo $ECHO_N "(cached) $ECHO_C" >&6
17957 else
17958   ac_check_lib_save_LIBS=$LIBS
17959 LIBS="-ldl  $LIBS"
17960 cat >conftest.$ac_ext <<_ACEOF
17961 /* confdefs.h.  */
17962 _ACEOF
17963 cat confdefs.h >>conftest.$ac_ext
17964 cat >>conftest.$ac_ext <<_ACEOF
17965 /* end confdefs.h.  */
17966
17967 /* Override any gcc2 internal prototype to avoid an error.  */
17968 #ifdef __cplusplus
17969 extern "C"
17970 #endif
17971 /* We use char because int might match the return type of a gcc2
17972    builtin and then its argument prototype would still apply.  */
17973 char dlopen ();
17974 int
17975 main ()
17976 {
17977 dlopen ();
17978   ;
17979   return 0;
17980 }
17981 _ACEOF
17982 rm -f conftest.$ac_objext conftest$ac_exeext
17983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17984   (eval $ac_link) 2>conftest.er1
17985   ac_status=$?
17986   grep -v '^ *+' conftest.er1 >conftest.err
17987   rm -f conftest.er1
17988   cat conftest.err >&5
17989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990   (exit $ac_status); } &&
17991          { ac_try='test -z "$ac_cxx_werror_flag"
17992                          || test ! -s conftest.err'
17993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994   (eval $ac_try) 2>&5
17995   ac_status=$?
17996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997   (exit $ac_status); }; } &&
17998          { ac_try='test -s conftest$ac_exeext'
17999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000   (eval $ac_try) 2>&5
18001   ac_status=$?
18002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003   (exit $ac_status); }; }; then
18004   ac_cv_lib_dl_dlopen=yes
18005 else
18006   echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18008
18009 ac_cv_lib_dl_dlopen=no
18010 fi
18011 rm -f conftest.err conftest.$ac_objext \
18012       conftest$ac_exeext conftest.$ac_ext
18013 LIBS=$ac_check_lib_save_LIBS
18014 fi
18015 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18016 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18017 if test $ac_cv_lib_dl_dlopen = yes; then
18018   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18019 else
18020   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18021 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18022 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18023   echo $ECHO_N "(cached) $ECHO_C" >&6
18024 else
18025   ac_check_lib_save_LIBS=$LIBS
18026 LIBS="-lsvld  $LIBS"
18027 cat >conftest.$ac_ext <<_ACEOF
18028 /* confdefs.h.  */
18029 _ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h.  */
18033
18034 /* Override any gcc2 internal prototype to avoid an error.  */
18035 #ifdef __cplusplus
18036 extern "C"
18037 #endif
18038 /* We use char because int might match the return type of a gcc2
18039    builtin and then its argument prototype would still apply.  */
18040 char dlopen ();
18041 int
18042 main ()
18043 {
18044 dlopen ();
18045   ;
18046   return 0;
18047 }
18048 _ACEOF
18049 rm -f conftest.$ac_objext conftest$ac_exeext
18050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18051   (eval $ac_link) 2>conftest.er1
18052   ac_status=$?
18053   grep -v '^ *+' conftest.er1 >conftest.err
18054   rm -f conftest.er1
18055   cat conftest.err >&5
18056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057   (exit $ac_status); } &&
18058          { ac_try='test -z "$ac_cxx_werror_flag"
18059                          || test ! -s conftest.err'
18060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18061   (eval $ac_try) 2>&5
18062   ac_status=$?
18063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064   (exit $ac_status); }; } &&
18065          { ac_try='test -s conftest$ac_exeext'
18066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067   (eval $ac_try) 2>&5
18068   ac_status=$?
18069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070   (exit $ac_status); }; }; then
18071   ac_cv_lib_svld_dlopen=yes
18072 else
18073   echo "$as_me: failed program was:" >&5
18074 sed 's/^/| /' conftest.$ac_ext >&5
18075
18076 ac_cv_lib_svld_dlopen=no
18077 fi
18078 rm -f conftest.err conftest.$ac_objext \
18079       conftest$ac_exeext conftest.$ac_ext
18080 LIBS=$ac_check_lib_save_LIBS
18081 fi
18082 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18083 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18084 if test $ac_cv_lib_svld_dlopen = yes; then
18085   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18086 else
18087   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18088 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18089 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18090   echo $ECHO_N "(cached) $ECHO_C" >&6
18091 else
18092   ac_check_lib_save_LIBS=$LIBS
18093 LIBS="-ldld  $LIBS"
18094 cat >conftest.$ac_ext <<_ACEOF
18095 /* confdefs.h.  */
18096 _ACEOF
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h.  */
18100
18101 /* Override any gcc2 internal prototype to avoid an error.  */
18102 #ifdef __cplusplus
18103 extern "C"
18104 #endif
18105 /* We use char because int might match the return type of a gcc2
18106    builtin and then its argument prototype would still apply.  */
18107 char dld_link ();
18108 int
18109 main ()
18110 {
18111 dld_link ();
18112   ;
18113   return 0;
18114 }
18115 _ACEOF
18116 rm -f conftest.$ac_objext conftest$ac_exeext
18117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18118   (eval $ac_link) 2>conftest.er1
18119   ac_status=$?
18120   grep -v '^ *+' conftest.er1 >conftest.err
18121   rm -f conftest.er1
18122   cat conftest.err >&5
18123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124   (exit $ac_status); } &&
18125          { ac_try='test -z "$ac_cxx_werror_flag"
18126                          || test ! -s conftest.err'
18127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18128   (eval $ac_try) 2>&5
18129   ac_status=$?
18130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131   (exit $ac_status); }; } &&
18132          { ac_try='test -s conftest$ac_exeext'
18133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134   (eval $ac_try) 2>&5
18135   ac_status=$?
18136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137   (exit $ac_status); }; }; then
18138   ac_cv_lib_dld_dld_link=yes
18139 else
18140   echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18142
18143 ac_cv_lib_dld_dld_link=no
18144 fi
18145 rm -f conftest.err conftest.$ac_objext \
18146       conftest$ac_exeext conftest.$ac_ext
18147 LIBS=$ac_check_lib_save_LIBS
18148 fi
18149 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18150 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18151 if test $ac_cv_lib_dld_dld_link = yes; then
18152   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18153 fi
18154
18155
18156 fi
18157
18158
18159 fi
18160
18161
18162 fi
18163
18164
18165 fi
18166
18167
18168 fi
18169
18170     ;;
18171   esac
18172
18173   if test "x$lt_cv_dlopen" != xno; then
18174     enable_dlopen=yes
18175   else
18176     enable_dlopen=no
18177   fi
18178
18179   case $lt_cv_dlopen in
18180   dlopen)
18181     save_CPPFLAGS="$CPPFLAGS"
18182     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18183
18184     save_LDFLAGS="$LDFLAGS"
18185     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18186
18187     save_LIBS="$LIBS"
18188     LIBS="$lt_cv_dlopen_libs $LIBS"
18189
18190     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18191 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18192 if test "${lt_cv_dlopen_self+set}" = set; then
18193   echo $ECHO_N "(cached) $ECHO_C" >&6
18194 else
18195           if test "$cross_compiling" = yes; then :
18196   lt_cv_dlopen_self=cross
18197 else
18198   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18199   lt_status=$lt_dlunknown
18200   cat > conftest.$ac_ext <<EOF
18201 #line 18201 "configure"
18202 #include "confdefs.h"
18203
18204 #if HAVE_DLFCN_H
18205 #include <dlfcn.h>
18206 #endif
18207
18208 #include <stdio.h>
18209
18210 #ifdef RTLD_GLOBAL
18211 #  define LT_DLGLOBAL           RTLD_GLOBAL
18212 #else
18213 #  ifdef DL_GLOBAL
18214 #    define LT_DLGLOBAL         DL_GLOBAL
18215 #  else
18216 #    define LT_DLGLOBAL         0
18217 #  endif
18218 #endif
18219
18220 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18221    find out it does not work in some platform. */
18222 #ifndef LT_DLLAZY_OR_NOW
18223 #  ifdef RTLD_LAZY
18224 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18225 #  else
18226 #    ifdef DL_LAZY
18227 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18228 #    else
18229 #      ifdef RTLD_NOW
18230 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18231 #      else
18232 #        ifdef DL_NOW
18233 #          define LT_DLLAZY_OR_NOW      DL_NOW
18234 #        else
18235 #          define LT_DLLAZY_OR_NOW      0
18236 #        endif
18237 #      endif
18238 #    endif
18239 #  endif
18240 #endif
18241
18242 #ifdef __cplusplus
18243 extern "C" void exit (int);
18244 #endif
18245
18246 void fnord() { int i=42;}
18247 int main ()
18248 {
18249   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18250   int status = $lt_dlunknown;
18251
18252   if (self)
18253     {
18254       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18255       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18256       /* dlclose (self); */
18257     }
18258
18259     exit (status);
18260 }
18261 EOF
18262   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18263   (eval $ac_link) 2>&5
18264   ac_status=$?
18265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18267     (./conftest; exit; ) 2>/dev/null
18268     lt_status=$?
18269     case x$lt_status in
18270       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18271       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18272       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18273     esac
18274   else :
18275     # compilation failed
18276     lt_cv_dlopen_self=no
18277   fi
18278 fi
18279 rm -fr conftest*
18280
18281
18282 fi
18283 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18284 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18285
18286     if test "x$lt_cv_dlopen_self" = xyes; then
18287       LDFLAGS="$LDFLAGS $link_static_flag"
18288       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18289 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18290 if test "${lt_cv_dlopen_self_static+set}" = set; then
18291   echo $ECHO_N "(cached) $ECHO_C" >&6
18292 else
18293           if test "$cross_compiling" = yes; then :
18294   lt_cv_dlopen_self_static=cross
18295 else
18296   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18297   lt_status=$lt_dlunknown
18298   cat > conftest.$ac_ext <<EOF
18299 #line 18299 "configure"
18300 #include "confdefs.h"
18301
18302 #if HAVE_DLFCN_H
18303 #include <dlfcn.h>
18304 #endif
18305
18306 #include <stdio.h>
18307
18308 #ifdef RTLD_GLOBAL
18309 #  define LT_DLGLOBAL           RTLD_GLOBAL
18310 #else
18311 #  ifdef DL_GLOBAL
18312 #    define LT_DLGLOBAL         DL_GLOBAL
18313 #  else
18314 #    define LT_DLGLOBAL         0
18315 #  endif
18316 #endif
18317
18318 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18319    find out it does not work in some platform. */
18320 #ifndef LT_DLLAZY_OR_NOW
18321 #  ifdef RTLD_LAZY
18322 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18323 #  else
18324 #    ifdef DL_LAZY
18325 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18326 #    else
18327 #      ifdef RTLD_NOW
18328 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18329 #      else
18330 #        ifdef DL_NOW
18331 #          define LT_DLLAZY_OR_NOW      DL_NOW
18332 #        else
18333 #          define LT_DLLAZY_OR_NOW      0
18334 #        endif
18335 #      endif
18336 #    endif
18337 #  endif
18338 #endif
18339
18340 #ifdef __cplusplus
18341 extern "C" void exit (int);
18342 #endif
18343
18344 void fnord() { int i=42;}
18345 int main ()
18346 {
18347   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18348   int status = $lt_dlunknown;
18349
18350   if (self)
18351     {
18352       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18353       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18354       /* dlclose (self); */
18355     }
18356
18357     exit (status);
18358 }
18359 EOF
18360   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18361   (eval $ac_link) 2>&5
18362   ac_status=$?
18363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18365     (./conftest; exit; ) 2>/dev/null
18366     lt_status=$?
18367     case x$lt_status in
18368       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18369       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18370       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18371     esac
18372   else :
18373     # compilation failed
18374     lt_cv_dlopen_self_static=no
18375   fi
18376 fi
18377 rm -fr conftest*
18378
18379
18380 fi
18381 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18382 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18383     fi
18384
18385     CPPFLAGS="$save_CPPFLAGS"
18386     LDFLAGS="$save_LDFLAGS"
18387     LIBS="$save_LIBS"
18388     ;;
18389   esac
18390
18391   case $lt_cv_dlopen_self in
18392   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18393   *) enable_dlopen_self=unknown ;;
18394   esac
18395
18396   case $lt_cv_dlopen_self_static in
18397   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18398   *) enable_dlopen_self_static=unknown ;;
18399   esac
18400 fi
18401
18402
18403 # The else clause should only fire when bootstrapping the
18404 # libtool distribution, otherwise you forgot to ship ltmain.sh
18405 # with your package, and you will get complaints that there are
18406 # no rules to generate ltmain.sh.
18407 if test -f "$ltmain"; then
18408   # See if we are running on zsh, and set the options which allow our commands through
18409   # without removal of \ escapes.
18410   if test -n "${ZSH_VERSION+set}" ; then
18411     setopt NO_GLOB_SUBST
18412   fi
18413   # Now quote all the things that may contain metacharacters while being
18414   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18415   # variables and quote the copies for generation of the libtool script.
18416   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18417     SED SHELL STRIP \
18418     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18419     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18420     deplibs_check_method reload_flag reload_cmds need_locks \
18421     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18422     lt_cv_sys_global_symbol_to_c_name_address \
18423     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18424     old_postinstall_cmds old_postuninstall_cmds \
18425     compiler_CXX \
18426     CC_CXX \
18427     LD_CXX \
18428     lt_prog_compiler_wl_CXX \
18429     lt_prog_compiler_pic_CXX \
18430     lt_prog_compiler_static_CXX \
18431     lt_prog_compiler_no_builtin_flag_CXX \
18432     export_dynamic_flag_spec_CXX \
18433     thread_safe_flag_spec_CXX \
18434     whole_archive_flag_spec_CXX \
18435     enable_shared_with_static_runtimes_CXX \
18436     old_archive_cmds_CXX \
18437     old_archive_from_new_cmds_CXX \
18438     predep_objects_CXX \
18439     postdep_objects_CXX \
18440     predeps_CXX \
18441     postdeps_CXX \
18442     compiler_lib_search_path_CXX \
18443     archive_cmds_CXX \
18444     archive_expsym_cmds_CXX \
18445     postinstall_cmds_CXX \
18446     postuninstall_cmds_CXX \
18447     old_archive_from_expsyms_cmds_CXX \
18448     allow_undefined_flag_CXX \
18449     no_undefined_flag_CXX \
18450     export_symbols_cmds_CXX \
18451     hardcode_libdir_flag_spec_CXX \
18452     hardcode_libdir_flag_spec_ld_CXX \
18453     hardcode_libdir_separator_CXX \
18454     hardcode_automatic_CXX \
18455     module_cmds_CXX \
18456     module_expsym_cmds_CXX \
18457     lt_cv_prog_compiler_c_o_CXX \
18458     exclude_expsyms_CXX \
18459     include_expsyms_CXX; do
18460
18461     case $var in
18462     old_archive_cmds_CXX | \
18463     old_archive_from_new_cmds_CXX | \
18464     archive_cmds_CXX | \
18465     archive_expsym_cmds_CXX | \
18466     module_cmds_CXX | \
18467     module_expsym_cmds_CXX | \
18468     old_archive_from_expsyms_cmds_CXX | \
18469     export_symbols_cmds_CXX | \
18470     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18471     postinstall_cmds | postuninstall_cmds | \
18472     old_postinstall_cmds | old_postuninstall_cmds | \
18473     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18474       # Double-quote double-evaled strings.
18475       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18476       ;;
18477     *)
18478       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18479       ;;
18480     esac
18481   done
18482
18483   case $lt_echo in
18484   *'\$0 --fallback-echo"')
18485     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18486     ;;
18487   esac
18488
18489 cfgfile="$ofile"
18490
18491   cat <<__EOF__ >> "$cfgfile"
18492 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18493
18494 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18495
18496 # Shell to use when invoking shell scripts.
18497 SHELL=$lt_SHELL
18498
18499 # Whether or not to build shared libraries.
18500 build_libtool_libs=$enable_shared
18501
18502 # Whether or not to build static libraries.
18503 build_old_libs=$enable_static
18504
18505 # Whether or not to add -lc for building shared libraries.
18506 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18507
18508 # Whether or not to disallow shared libs when runtime libs are static
18509 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18510
18511 # Whether or not to optimize for fast installation.
18512 fast_install=$enable_fast_install
18513
18514 # The host system.
18515 host_alias=$host_alias
18516 host=$host
18517
18518 # An echo program that does not interpret backslashes.
18519 echo=$lt_echo
18520
18521 # The archiver.
18522 AR=$lt_AR
18523 AR_FLAGS=$lt_AR_FLAGS
18524
18525 # A C compiler.
18526 LTCC=$lt_LTCC
18527
18528 # A language-specific compiler.
18529 CC=$lt_compiler_CXX
18530
18531 # Is the compiler the GNU C compiler?
18532 with_gcc=$GCC_CXX
18533
18534 # An ERE matcher.
18535 EGREP=$lt_EGREP
18536
18537 # The linker used to build libraries.
18538 LD=$lt_LD_CXX
18539
18540 # Whether we need hard or soft links.
18541 LN_S=$lt_LN_S
18542
18543 # A BSD-compatible nm program.
18544 NM=$lt_NM
18545
18546 # A symbol stripping program
18547 STRIP=$lt_STRIP
18548
18549 # Used to examine libraries when file_magic_cmd begins "file"
18550 MAGIC_CMD=$MAGIC_CMD
18551
18552 # Used on cygwin: DLL creation program.
18553 DLLTOOL="$DLLTOOL"
18554
18555 # Used on cygwin: object dumper.
18556 OBJDUMP="$OBJDUMP"
18557
18558 # Used on cygwin: assembler.
18559 AS="$AS"
18560
18561 # The name of the directory that contains temporary libtool files.
18562 objdir=$objdir
18563
18564 # How to create reloadable object files.
18565 reload_flag=$lt_reload_flag
18566 reload_cmds=$lt_reload_cmds
18567
18568 # How to pass a linker flag through the compiler.
18569 wl=$lt_lt_prog_compiler_wl_CXX
18570
18571 # Object file suffix (normally "o").
18572 objext="$ac_objext"
18573
18574 # Old archive suffix (normally "a").
18575 libext="$libext"
18576
18577 # Shared library suffix (normally ".so").
18578 shrext_cmds='$shrext_cmds'
18579
18580 # Executable file suffix (normally "").
18581 exeext="$exeext"
18582
18583 # Additional compiler flags for building library objects.
18584 pic_flag=$lt_lt_prog_compiler_pic_CXX
18585 pic_mode=$pic_mode
18586
18587 # What is the maximum length of a command?
18588 max_cmd_len=$lt_cv_sys_max_cmd_len
18589
18590 # Does compiler simultaneously support -c and -o options?
18591 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18592
18593 # Must we lock files when doing compilation ?
18594 need_locks=$lt_need_locks
18595
18596 # Do we need the lib prefix for modules?
18597 need_lib_prefix=$need_lib_prefix
18598
18599 # Do we need a version for libraries?
18600 need_version=$need_version
18601
18602 # Whether dlopen is supported.
18603 dlopen_support=$enable_dlopen
18604
18605 # Whether dlopen of programs is supported.
18606 dlopen_self=$enable_dlopen_self
18607
18608 # Whether dlopen of statically linked programs is supported.
18609 dlopen_self_static=$enable_dlopen_self_static
18610
18611 # Compiler flag to prevent dynamic linking.
18612 link_static_flag=$lt_lt_prog_compiler_static_CXX
18613
18614 # Compiler flag to turn off builtin functions.
18615 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18616
18617 # Compiler flag to allow reflexive dlopens.
18618 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18619
18620 # Compiler flag to generate shared objects directly from archives.
18621 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18622
18623 # Compiler flag to generate thread-safe objects.
18624 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18625
18626 # Library versioning type.
18627 version_type=$version_type
18628
18629 # Format of library name prefix.
18630 libname_spec=$lt_libname_spec
18631
18632 # List of archive names.  First name is the real one, the rest are links.
18633 # The last name is the one that the linker finds with -lNAME.
18634 library_names_spec=$lt_library_names_spec
18635
18636 # The coded name of the library, if different from the real name.
18637 soname_spec=$lt_soname_spec
18638
18639 # Commands used to build and install an old-style archive.
18640 RANLIB=$lt_RANLIB
18641 old_archive_cmds=$lt_old_archive_cmds_CXX
18642 old_postinstall_cmds=$lt_old_postinstall_cmds
18643 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18644
18645 # Create an old-style archive from a shared archive.
18646 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18647
18648 # Create a temporary old-style archive to link instead of a shared archive.
18649 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18650
18651 # Commands used to build and install a shared archive.
18652 archive_cmds=$lt_archive_cmds_CXX
18653 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18654 postinstall_cmds=$lt_postinstall_cmds
18655 postuninstall_cmds=$lt_postuninstall_cmds
18656
18657 # Commands used to build a loadable module (assumed same as above if empty)
18658 module_cmds=$lt_module_cmds_CXX
18659 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18660
18661 # Commands to strip libraries.
18662 old_striplib=$lt_old_striplib
18663 striplib=$lt_striplib
18664
18665 # Dependencies to place before the objects being linked to create a
18666 # shared library.
18667 predep_objects=$lt_predep_objects_CXX
18668
18669 # Dependencies to place after the objects being linked to create a
18670 # shared library.
18671 postdep_objects=$lt_postdep_objects_CXX
18672
18673 # Dependencies to place before the objects being linked to create a
18674 # shared library.
18675 predeps=$lt_predeps_CXX
18676
18677 # Dependencies to place after the objects being linked to create a
18678 # shared library.
18679 postdeps=$lt_postdeps_CXX
18680
18681 # The library search path used internally by the compiler when linking
18682 # a shared library.
18683 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18684
18685 # Method to check whether dependent libraries are shared objects.
18686 deplibs_check_method=$lt_deplibs_check_method
18687
18688 # Command to use when deplibs_check_method == file_magic.
18689 file_magic_cmd=$lt_file_magic_cmd
18690
18691 # Flag that allows shared libraries with undefined symbols to be built.
18692 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18693
18694 # Flag that forces no undefined symbols.
18695 no_undefined_flag=$lt_no_undefined_flag_CXX
18696
18697 # Commands used to finish a libtool library installation in a directory.
18698 finish_cmds=$lt_finish_cmds
18699
18700 # Same as above, but a single script fragment to be evaled but not shown.
18701 finish_eval=$lt_finish_eval
18702
18703 # Take the output of nm and produce a listing of raw symbols and C names.
18704 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18705
18706 # Transform the output of nm in a proper C declaration
18707 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18708
18709 # Transform the output of nm in a C name address pair
18710 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18711
18712 # This is the shared library runtime path variable.
18713 runpath_var=$runpath_var
18714
18715 # This is the shared library path variable.
18716 shlibpath_var=$shlibpath_var
18717
18718 # Is shlibpath searched before the hard-coded library search path?
18719 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18720
18721 # How to hardcode a shared library path into an executable.
18722 hardcode_action=$hardcode_action_CXX
18723
18724 # Whether we should hardcode library paths into libraries.
18725 hardcode_into_libs=$hardcode_into_libs
18726
18727 # Flag to hardcode \$libdir into a binary during linking.
18728 # This must work even if \$libdir does not exist.
18729 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18730
18731 # If ld is used when linking, flag to hardcode \$libdir into
18732 # a binary during linking. This must work even if \$libdir does
18733 # not exist.
18734 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18735
18736 # Whether we need a single -rpath flag with a separated argument.
18737 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18738
18739 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18740 # resulting binary.
18741 hardcode_direct=$hardcode_direct_CXX
18742
18743 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18744 # resulting binary.
18745 hardcode_minus_L=$hardcode_minus_L_CXX
18746
18747 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18748 # the resulting binary.
18749 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18750
18751 # Set to yes if building a shared library automatically hardcodes DIR into the library
18752 # and all subsequent libraries and executables linked against it.
18753 hardcode_automatic=$hardcode_automatic_CXX
18754
18755 # Variables whose values should be saved in libtool wrapper scripts and
18756 # restored at relink time.
18757 variables_saved_for_relink="$variables_saved_for_relink"
18758
18759 # Whether libtool must link a program against all its dependency libraries.
18760 link_all_deplibs=$link_all_deplibs_CXX
18761
18762 # Compile-time system search path for libraries
18763 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18764
18765 # Run-time system search path for libraries
18766 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18767
18768 # Fix the shell variable \$srcfile for the compiler.
18769 fix_srcfile_path="$fix_srcfile_path_CXX"
18770
18771 # Set to yes if exported symbols are required.
18772 always_export_symbols=$always_export_symbols_CXX
18773
18774 # The commands to list exported symbols.
18775 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18776
18777 # The commands to extract the exported symbol list from a shared archive.
18778 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18779
18780 # Symbols that should not be listed in the preloaded symbols.
18781 exclude_expsyms=$lt_exclude_expsyms_CXX
18782
18783 # Symbols that must always be exported.
18784 include_expsyms=$lt_include_expsyms_CXX
18785
18786 # ### END LIBTOOL TAG CONFIG: $tagname
18787
18788 __EOF__
18789
18790
18791 else
18792   # If there is no Makefile yet, we rely on a make rule to execute
18793   # `config.status --recheck' to rerun these tests and create the
18794   # libtool script then.
18795   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18796   if test -f "$ltmain_in"; then
18797     test -f Makefile && make "$ltmain"
18798   fi
18799 fi
18800
18801
18802 ac_ext=c
18803 ac_cpp='$CPP $CPPFLAGS'
18804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18807
18808 CC=$lt_save_CC
18809 LDCXX=$LD
18810 LD=$lt_save_LD
18811 GCC=$lt_save_GCC
18812 with_gnu_ldcxx=$with_gnu_ld
18813 with_gnu_ld=$lt_save_with_gnu_ld
18814 lt_cv_path_LDCXX=$lt_cv_path_LD
18815 lt_cv_path_LD=$lt_save_path_LD
18816 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18817 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18818
18819         else
18820           tagname=""
18821         fi
18822         ;;
18823
18824       F77)
18825         if test -n "$F77" && test "X$F77" != "Xno"; then
18826
18827 ac_ext=f
18828 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18829 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18830 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18831
18832
18833 archive_cmds_need_lc_F77=no
18834 allow_undefined_flag_F77=
18835 always_export_symbols_F77=no
18836 archive_expsym_cmds_F77=
18837 export_dynamic_flag_spec_F77=
18838 hardcode_direct_F77=no
18839 hardcode_libdir_flag_spec_F77=
18840 hardcode_libdir_flag_spec_ld_F77=
18841 hardcode_libdir_separator_F77=
18842 hardcode_minus_L_F77=no
18843 hardcode_automatic_F77=no
18844 module_cmds_F77=
18845 module_expsym_cmds_F77=
18846 link_all_deplibs_F77=unknown
18847 old_archive_cmds_F77=$old_archive_cmds
18848 no_undefined_flag_F77=
18849 whole_archive_flag_spec_F77=
18850 enable_shared_with_static_runtimes_F77=no
18851
18852 # Source file extension for f77 test sources.
18853 ac_ext=f
18854
18855 # Object file extension for compiled f77 test sources.
18856 objext=o
18857 objext_F77=$objext
18858
18859 # Code to be used in simple compile tests
18860 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
18861
18862 # Code to be used in simple link tests
18863 lt_simple_link_test_code="      program t\n      end\n"
18864
18865 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18866
18867 # If no C compiler was specified, use CC.
18868 LTCC=${LTCC-"$CC"}
18869
18870 # Allow CC to be a program name with arguments.
18871 compiler=$CC
18872
18873
18874 # Allow CC to be a program name with arguments.
18875 lt_save_CC="$CC"
18876 CC=${F77-"f77"}
18877 compiler=$CC
18878 compiler_F77=$CC
18879 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18880
18881 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18882 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18883 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18884 echo "${ECHO_T}$can_build_shared" >&6
18885
18886 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18887 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18888 test "$can_build_shared" = "no" && enable_shared=no
18889
18890 # On AIX, shared libraries and static libraries use the same namespace, and
18891 # are all built from PIC.
18892 case "$host_os" in
18893 aix3*)
18894   test "$enable_shared" = yes && enable_static=no
18895   if test -n "$RANLIB"; then
18896     archive_cmds="$archive_cmds~\$RANLIB \$lib"
18897     postinstall_cmds='$RANLIB $lib'
18898   fi
18899   ;;
18900 aix4* | aix5*)
18901   test "$enable_shared" = yes && enable_static=no
18902   ;;
18903 esac
18904 echo "$as_me:$LINENO: result: $enable_shared" >&5
18905 echo "${ECHO_T}$enable_shared" >&6
18906
18907 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18908 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18909 # Make sure either enable_shared or enable_static is yes.
18910 test "$enable_shared" = yes || enable_static=yes
18911 echo "$as_me:$LINENO: result: $enable_static" >&5
18912 echo "${ECHO_T}$enable_static" >&6
18913
18914 test "$ld_shlibs_F77" = no && can_build_shared=no
18915
18916 GCC_F77="$G77"
18917 LD_F77="$LD"
18918
18919 lt_prog_compiler_wl_F77=
18920 lt_prog_compiler_pic_F77=
18921 lt_prog_compiler_static_F77=
18922
18923 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18924 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18925
18926   if test "$GCC" = yes; then
18927     lt_prog_compiler_wl_F77='-Wl,'
18928     lt_prog_compiler_static_F77='-static'
18929
18930     case $host_os in
18931       aix*)
18932       # All AIX code is PIC.
18933       if test "$host_cpu" = ia64; then
18934         # AIX 5 now supports IA64 processor
18935         lt_prog_compiler_static_F77='-Bstatic'
18936       fi
18937       ;;
18938
18939     amigaos*)
18940       # FIXME: we need at least 68020 code to build shared libraries, but
18941       # adding the `-m68020' flag to GCC prevents building anything better,
18942       # like `-m68040'.
18943       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18944       ;;
18945
18946     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18947       # PIC is the default for these OSes.
18948       ;;
18949
18950     mingw* | pw32* | os2*)
18951       # This hack is so that the source file can tell whether it is being
18952       # built for inclusion in a dll (and should export symbols for example).
18953       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18954       ;;
18955
18956     darwin* | rhapsody*)
18957       # PIC is the default on this platform
18958       # Common symbols not allowed in MH_DYLIB files
18959       lt_prog_compiler_pic_F77='-fno-common'
18960       ;;
18961
18962     msdosdjgpp*)
18963       # Just because we use GCC doesn't mean we suddenly get shared libraries
18964       # on systems that don't support them.
18965       lt_prog_compiler_can_build_shared_F77=no
18966       enable_shared=no
18967       ;;
18968
18969     sysv4*MP*)
18970       if test -d /usr/nec; then
18971         lt_prog_compiler_pic_F77=-Kconform_pic
18972       fi
18973       ;;
18974
18975     hpux*)
18976       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18977       # not for PA HP-UX.
18978       case "$host_cpu" in
18979       hppa*64*|ia64*)
18980         # +Z the default
18981         ;;
18982       *)
18983         lt_prog_compiler_pic_F77='-fPIC'
18984         ;;
18985       esac
18986       ;;
18987
18988     *)
18989       lt_prog_compiler_pic_F77='-fPIC'
18990       ;;
18991     esac
18992   else
18993     # PORTME Check for flag to pass linker flags through the system compiler.
18994     case $host_os in
18995     aix*)
18996       lt_prog_compiler_wl_F77='-Wl,'
18997       if test "$host_cpu" = ia64; then
18998         # AIX 5 now supports IA64 processor
18999         lt_prog_compiler_static_F77='-Bstatic'
19000       else
19001         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
19002       fi
19003       ;;
19004       darwin*)
19005         # PIC is the default on this platform
19006         # Common symbols not allowed in MH_DYLIB files
19007        case "$cc_basename" in
19008          xlc*)
19009          lt_prog_compiler_pic_F77='-qnocommon'
19010          lt_prog_compiler_wl_F77='-Wl,'
19011          ;;
19012        esac
19013        ;;
19014
19015     mingw* | pw32* | os2*)
19016       # This hack is so that the source file can tell whether it is being
19017       # built for inclusion in a dll (and should export symbols for example).
19018       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
19019       ;;
19020
19021     hpux9* | hpux10* | hpux11*)
19022       lt_prog_compiler_wl_F77='-Wl,'
19023       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19024       # not for PA HP-UX.
19025       case "$host_cpu" in
19026       hppa*64*|ia64*)
19027         # +Z the default
19028         ;;
19029       *)
19030         lt_prog_compiler_pic_F77='+Z'
19031         ;;
19032       esac
19033       # Is there a better lt_prog_compiler_static that works with the bundled CC?
19034       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19035       ;;
19036
19037     irix5* | irix6* | nonstopux*)
19038       lt_prog_compiler_wl_F77='-Wl,'
19039       # PIC (with -KPIC) is the default.
19040       lt_prog_compiler_static_F77='-non_shared'
19041       ;;
19042
19043     newsos6)
19044       lt_prog_compiler_pic_F77='-KPIC'
19045       lt_prog_compiler_static_F77='-Bstatic'
19046       ;;
19047
19048     linux*)
19049       case $CC in
19050       icc* | ecc*)
19051         lt_prog_compiler_wl_F77='-Wl,'
19052         lt_prog_compiler_pic_F77='-KPIC'
19053         lt_prog_compiler_static_F77='-static'
19054         ;;
19055       ccc*)
19056         lt_prog_compiler_wl_F77='-Wl,'
19057         # All Alpha code is PIC.
19058         lt_prog_compiler_static_F77='-non_shared'
19059         ;;
19060       esac
19061       ;;
19062
19063     osf3* | osf4* | osf5*)
19064       lt_prog_compiler_wl_F77='-Wl,'
19065       # All OSF/1 code is PIC.
19066       lt_prog_compiler_static_F77='-non_shared'
19067       ;;
19068
19069     sco3.2v5*)
19070       lt_prog_compiler_pic_F77='-Kpic'
19071       lt_prog_compiler_static_F77='-dn'
19072       ;;
19073
19074     solaris*)
19075       lt_prog_compiler_wl_F77='-Wl,'
19076       lt_prog_compiler_pic_F77='-KPIC'
19077       lt_prog_compiler_static_F77='-Bstatic'
19078       ;;
19079
19080     sunos4*)
19081       lt_prog_compiler_wl_F77='-Qoption ld '
19082       lt_prog_compiler_pic_F77='-PIC'
19083       lt_prog_compiler_static_F77='-Bstatic'
19084       ;;
19085
19086     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19087       lt_prog_compiler_wl_F77='-Wl,'
19088       lt_prog_compiler_pic_F77='-KPIC'
19089       lt_prog_compiler_static_F77='-Bstatic'
19090       ;;
19091
19092     sysv4*MP*)
19093       if test -d /usr/nec ;then
19094         lt_prog_compiler_pic_F77='-Kconform_pic'
19095         lt_prog_compiler_static_F77='-Bstatic'
19096       fi
19097       ;;
19098
19099     uts4*)
19100       lt_prog_compiler_pic_F77='-pic'
19101       lt_prog_compiler_static_F77='-Bstatic'
19102       ;;
19103
19104     *)
19105       lt_prog_compiler_can_build_shared_F77=no
19106       ;;
19107     esac
19108   fi
19109
19110 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19111 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19112
19113 #
19114 # Check to make sure the PIC flag actually works.
19115 #
19116 if test -n "$lt_prog_compiler_pic_F77"; then
19117
19118 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19119 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19120 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19121   echo $ECHO_N "(cached) $ECHO_C" >&6
19122 else
19123   lt_prog_compiler_pic_works_F77=no
19124   ac_outfile=conftest.$ac_objext
19125    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19126    lt_compiler_flag="$lt_prog_compiler_pic_F77"
19127    # Insert the option either (1) after the last *FLAGS variable, or
19128    # (2) before a word containing "conftest.", or (3) at the end.
19129    # Note that $ac_compile itself does not contain backslashes and begins
19130    # with a dollar sign (not a hyphen), so the echo should work correctly.
19131    # The option is referenced via a variable to avoid confusing sed.
19132    lt_compile=`echo "$ac_compile" | $SED \
19133    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19134    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19135    -e 's:$: $lt_compiler_flag:'`
19136    (eval echo "\"\$as_me:19136: $lt_compile\"" >&5)
19137    (eval "$lt_compile" 2>conftest.err)
19138    ac_status=$?
19139    cat conftest.err >&5
19140    echo "$as_me:19140: \$? = $ac_status" >&5
19141    if (exit $ac_status) && test -s "$ac_outfile"; then
19142      # The compiler can only warn and ignore the option if not recognized
19143      # So say no if there are warnings
19144      if test ! -s conftest.err; then
19145        lt_prog_compiler_pic_works_F77=yes
19146      fi
19147    fi
19148    $rm conftest*
19149
19150 fi
19151 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19152 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19153
19154 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19155     case $lt_prog_compiler_pic_F77 in
19156      "" | " "*) ;;
19157      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19158      esac
19159 else
19160     lt_prog_compiler_pic_F77=
19161      lt_prog_compiler_can_build_shared_F77=no
19162 fi
19163
19164 fi
19165 case "$host_os" in
19166   # For platforms which do not support PIC, -DPIC is meaningless:
19167   *djgpp*)
19168     lt_prog_compiler_pic_F77=
19169     ;;
19170   *)
19171     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19172     ;;
19173 esac
19174
19175 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19176 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19177 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19178   echo $ECHO_N "(cached) $ECHO_C" >&6
19179 else
19180   lt_cv_prog_compiler_c_o_F77=no
19181    $rm -r conftest 2>/dev/null
19182    mkdir conftest
19183    cd conftest
19184    mkdir out
19185    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19186
19187    lt_compiler_flag="-o out/conftest2.$ac_objext"
19188    # Insert the option either (1) after the last *FLAGS variable, or
19189    # (2) before a word containing "conftest.", or (3) at the end.
19190    # Note that $ac_compile itself does not contain backslashes and begins
19191    # with a dollar sign (not a hyphen), so the echo should work correctly.
19192    lt_compile=`echo "$ac_compile" | $SED \
19193    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19194    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19195    -e 's:$: $lt_compiler_flag:'`
19196    (eval echo "\"\$as_me:19196: $lt_compile\"" >&5)
19197    (eval "$lt_compile" 2>out/conftest.err)
19198    ac_status=$?
19199    cat out/conftest.err >&5
19200    echo "$as_me:19200: \$? = $ac_status" >&5
19201    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19202    then
19203      # The compiler can only warn and ignore the option if not recognized
19204      # So say no if there are warnings
19205      if test ! -s out/conftest.err; then
19206        lt_cv_prog_compiler_c_o_F77=yes
19207      fi
19208    fi
19209    chmod u+w .
19210    $rm conftest*
19211    # SGI C++ compiler will create directory out/ii_files/ for
19212    # template instantiation
19213    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19214    $rm out/* && rmdir out
19215    cd ..
19216    rmdir conftest
19217    $rm conftest*
19218
19219 fi
19220 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19221 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19222
19223
19224 hard_links="nottested"
19225 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19226   # do not overwrite the value of need_locks provided by the user
19227   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19228 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19229   hard_links=yes
19230   $rm conftest*
19231   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19232   touch conftest.a
19233   ln conftest.a conftest.b 2>&5 || hard_links=no
19234   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19235   echo "$as_me:$LINENO: result: $hard_links" >&5
19236 echo "${ECHO_T}$hard_links" >&6
19237   if test "$hard_links" = no; then
19238     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19239 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19240     need_locks=warn
19241   fi
19242 else
19243   need_locks=no
19244 fi
19245
19246 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19247 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19248
19249   runpath_var=
19250   allow_undefined_flag_F77=
19251   enable_shared_with_static_runtimes_F77=no
19252   archive_cmds_F77=
19253   archive_expsym_cmds_F77=
19254   old_archive_From_new_cmds_F77=
19255   old_archive_from_expsyms_cmds_F77=
19256   export_dynamic_flag_spec_F77=
19257   whole_archive_flag_spec_F77=
19258   thread_safe_flag_spec_F77=
19259   hardcode_libdir_flag_spec_F77=
19260   hardcode_libdir_flag_spec_ld_F77=
19261   hardcode_libdir_separator_F77=
19262   hardcode_direct_F77=no
19263   hardcode_minus_L_F77=no
19264   hardcode_shlibpath_var_F77=unsupported
19265   link_all_deplibs_F77=unknown
19266   hardcode_automatic_F77=no
19267   module_cmds_F77=
19268   module_expsym_cmds_F77=
19269   always_export_symbols_F77=no
19270   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19271   # include_expsyms should be a list of space-separated symbols to be *always*
19272   # included in the symbol list
19273   include_expsyms_F77=
19274   # exclude_expsyms can be an extended regexp of symbols to exclude
19275   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19276   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19277   # as well as any symbol that contains `d'.
19278   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19279   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19280   # platforms (ab)use it in PIC code, but their linkers get confused if
19281   # the symbol is explicitly referenced.  Since portable code cannot
19282   # rely on this symbol name, it's probably fine to never include it in
19283   # preloaded symbol tables.
19284   extract_expsyms_cmds=
19285
19286   case $host_os in
19287   cygwin* | mingw* | pw32*)
19288     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19289     # When not using gcc, we currently assume that we are using
19290     # Microsoft Visual C++.
19291     if test "$GCC" != yes; then
19292       with_gnu_ld=no
19293     fi
19294     ;;
19295   openbsd*)
19296     with_gnu_ld=no
19297     ;;
19298   esac
19299
19300   ld_shlibs_F77=yes
19301   if test "$with_gnu_ld" = yes; then
19302     # If archive_cmds runs LD, not CC, wlarc should be empty
19303     wlarc='${wl}'
19304
19305     # See if GNU ld supports shared libraries.
19306     case $host_os in
19307     aix3* | aix4* | aix5*)
19308       # On AIX/PPC, the GNU linker is very broken
19309       if test "$host_cpu" != ia64; then
19310         ld_shlibs_F77=no
19311         cat <<EOF 1>&2
19312
19313 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19314 *** to be unable to reliably create shared libraries on AIX.
19315 *** Therefore, libtool is disabling shared libraries support.  If you
19316 *** really care for shared libraries, you may want to modify your PATH
19317 *** so that a non-GNU linker is found, and then restart.
19318
19319 EOF
19320       fi
19321       ;;
19322
19323     amigaos*)
19324       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)'
19325       hardcode_libdir_flag_spec_F77='-L$libdir'
19326       hardcode_minus_L_F77=yes
19327
19328       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19329       # that the semantics of dynamic libraries on AmigaOS, at least up
19330       # to version 4, is to share data among multiple programs linked
19331       # with the same dynamic library.  Since this doesn't match the
19332       # behavior of shared libraries on other platforms, we can't use
19333       # them.
19334       ld_shlibs_F77=no
19335       ;;
19336
19337     beos*)
19338       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19339         allow_undefined_flag_F77=unsupported
19340         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19341         # support --undefined.  This deserves some investigation.  FIXME
19342         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19343       else
19344         ld_shlibs_F77=no
19345       fi
19346       ;;
19347
19348     cygwin* | mingw* | pw32*)
19349       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19350       # as there is no search path for DLLs.
19351       hardcode_libdir_flag_spec_F77='-L$libdir'
19352       allow_undefined_flag_F77=unsupported
19353       always_export_symbols_F77=no
19354       enable_shared_with_static_runtimes_F77=yes
19355       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19356
19357       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19358         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19359         # If the export-symbols file already is a .def file (1st line
19360         # is EXPORTS), use it as is; otherwise, prepend...
19361         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19362           cp $export_symbols $output_objdir/$soname.def;
19363         else
19364           echo EXPORTS > $output_objdir/$soname.def;
19365           cat $export_symbols >> $output_objdir/$soname.def;
19366         fi~
19367         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19368       else
19369         ld_shlibs=no
19370       fi
19371       ;;
19372
19373     netbsd*)
19374       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19375         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19376         wlarc=
19377       else
19378         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19379         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19380       fi
19381       ;;
19382
19383     solaris* | sysv5*)
19384       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19385         ld_shlibs_F77=no
19386         cat <<EOF 1>&2
19387
19388 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19389 *** create shared libraries on Solaris systems.  Therefore, libtool
19390 *** is disabling shared libraries support.  We urge you to upgrade GNU
19391 *** binutils to release 2.9.1 or newer.  Another option is to modify
19392 *** your PATH or compiler configuration so that the native linker is
19393 *** used, and then restart.
19394
19395 EOF
19396       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19397         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19398         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19399       else
19400         ld_shlibs_F77=no
19401       fi
19402       ;;
19403
19404     sunos4*)
19405       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19406       wlarc=
19407       hardcode_direct_F77=yes
19408       hardcode_shlibpath_var_F77=no
19409       ;;
19410
19411   linux*)
19412     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19413         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19414         archive_cmds_F77="$tmp_archive_cmds"
19415       supports_anon_versioning=no
19416       case `$LD -v 2>/dev/null` in
19417         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19418         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19419         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19420         *\ 2.11.*) ;; # other 2.11 versions
19421         *) supports_anon_versioning=yes ;;
19422       esac
19423       if test $supports_anon_versioning = yes; then
19424         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19425 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19426 $echo "local: *; };" >> $output_objdir/$libname.ver~
19427         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19428       else
19429         archive_expsym_cmds_F77="$tmp_archive_cmds"
19430       fi
19431     else
19432       ld_shlibs_F77=no
19433     fi
19434     ;;
19435
19436     *)
19437       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19438         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19439         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19440       else
19441         ld_shlibs_F77=no
19442       fi
19443       ;;
19444     esac
19445
19446     if test "$ld_shlibs_F77" = yes; then
19447       runpath_var=LD_RUN_PATH
19448       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19449       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19450       # ancient GNU ld didn't support --whole-archive et. al.
19451       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19452         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19453       else
19454         whole_archive_flag_spec_F77=
19455       fi
19456     fi
19457   else
19458     # PORTME fill in a description of your system's linker (not GNU ld)
19459     case $host_os in
19460     aix3*)
19461       allow_undefined_flag_F77=unsupported
19462       always_export_symbols_F77=yes
19463       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'
19464       # Note: this linker hardcodes the directories in LIBPATH if there
19465       # are no directories specified by -L.
19466       hardcode_minus_L_F77=yes
19467       if test "$GCC" = yes && test -z "$link_static_flag"; then
19468         # Neither direct hardcoding nor static linking is supported with a
19469         # broken collect2.
19470         hardcode_direct_F77=unsupported
19471       fi
19472       ;;
19473
19474     aix4* | aix5*)
19475       if test "$host_cpu" = ia64; then
19476         # On IA64, the linker does run time linking by default, so we don't
19477         # have to do anything special.
19478         aix_use_runtimelinking=no
19479         exp_sym_flag='-Bexport'
19480         no_entry_flag=""
19481       else
19482         # If we're using GNU nm, then we don't want the "-C" option.
19483         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19484         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19485           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'
19486         else
19487           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'
19488         fi
19489         aix_use_runtimelinking=no
19490
19491         # Test if we are trying to use run time linking or normal
19492         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19493         # need to do runtime linking.
19494         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19495           for ld_flag in $LDFLAGS; do
19496           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19497             aix_use_runtimelinking=yes
19498             break
19499           fi
19500           done
19501         esac
19502
19503         exp_sym_flag='-bexport'
19504         no_entry_flag='-bnoentry'
19505       fi
19506
19507       # When large executables or shared objects are built, AIX ld can
19508       # have problems creating the table of contents.  If linking a library
19509       # or program results in "error TOC overflow" add -mminimal-toc to
19510       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19511       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19512
19513       archive_cmds_F77=''
19514       hardcode_direct_F77=yes
19515       hardcode_libdir_separator_F77=':'
19516       link_all_deplibs_F77=yes
19517
19518       if test "$GCC" = yes; then
19519         case $host_os in aix4.012|aix4.012.*)
19520         # We only want to do this on AIX 4.2 and lower, the check
19521         # below for broken collect2 doesn't work under 4.3+
19522           collect2name=`${CC} -print-prog-name=collect2`
19523           if test -f "$collect2name" && \
19524            strings "$collect2name" | grep resolve_lib_name >/dev/null
19525           then
19526           # We have reworked collect2
19527           hardcode_direct_F77=yes
19528           else
19529           # We have old collect2
19530           hardcode_direct_F77=unsupported
19531           # It fails to find uninstalled libraries when the uninstalled
19532           # path is not listed in the libpath.  Setting hardcode_minus_L
19533           # to unsupported forces relinking
19534           hardcode_minus_L_F77=yes
19535           hardcode_libdir_flag_spec_F77='-L$libdir'
19536           hardcode_libdir_separator_F77=
19537           fi
19538         esac
19539         shared_flag='-shared'
19540       else
19541         # not using gcc
19542         if test "$host_cpu" = ia64; then
19543         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19544         # chokes on -Wl,-G. The following line is correct:
19545           shared_flag='-G'
19546         else
19547         if test "$aix_use_runtimelinking" = yes; then
19548             shared_flag='${wl}-G'
19549           else
19550             shared_flag='${wl}-bM:SRE'
19551         fi
19552         fi
19553       fi
19554
19555       # It seems that -bexpall does not export symbols beginning with
19556       # underscore (_), so it is better to generate a list of symbols to export.
19557       always_export_symbols_F77=yes
19558       if test "$aix_use_runtimelinking" = yes; then
19559         # Warning - without using the other runtime loading flags (-brtl),
19560         # -berok will link without error, but may produce a broken library.
19561         allow_undefined_flag_F77='-berok'
19562        # Determine the default libpath from the value encoded in an empty executable.
19563        cat >conftest.$ac_ext <<_ACEOF
19564       program main
19565
19566       end
19567 _ACEOF
19568 rm -f conftest.$ac_objext conftest$ac_exeext
19569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19570   (eval $ac_link) 2>conftest.er1
19571   ac_status=$?
19572   grep -v '^ *+' conftest.er1 >conftest.err
19573   rm -f conftest.er1
19574   cat conftest.err >&5
19575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576   (exit $ac_status); } &&
19577          { ac_try='test -z "$ac_f77_werror_flag"
19578                          || test ! -s conftest.err'
19579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580   (eval $ac_try) 2>&5
19581   ac_status=$?
19582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583   (exit $ac_status); }; } &&
19584          { ac_try='test -s conftest$ac_exeext'
19585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586   (eval $ac_try) 2>&5
19587   ac_status=$?
19588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589   (exit $ac_status); }; }; then
19590
19591 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19592 }'`
19593 # Check for a 64-bit object if we didn't find anything.
19594 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; }
19595 }'`; fi
19596 else
19597   echo "$as_me: failed program was:" >&5
19598 sed 's/^/| /' conftest.$ac_ext >&5
19599
19600 fi
19601 rm -f conftest.err conftest.$ac_objext \
19602       conftest$ac_exeext conftest.$ac_ext
19603 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19604
19605        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19606         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"
19607        else
19608         if test "$host_cpu" = ia64; then
19609           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19610           allow_undefined_flag_F77="-z nodefs"
19611           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"
19612         else
19613          # Determine the default libpath from the value encoded in an empty executable.
19614          cat >conftest.$ac_ext <<_ACEOF
19615       program main
19616
19617       end
19618 _ACEOF
19619 rm -f conftest.$ac_objext conftest$ac_exeext
19620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19621   (eval $ac_link) 2>conftest.er1
19622   ac_status=$?
19623   grep -v '^ *+' conftest.er1 >conftest.err
19624   rm -f conftest.er1
19625   cat conftest.err >&5
19626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627   (exit $ac_status); } &&
19628          { ac_try='test -z "$ac_f77_werror_flag"
19629                          || test ! -s conftest.err'
19630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19631   (eval $ac_try) 2>&5
19632   ac_status=$?
19633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634   (exit $ac_status); }; } &&
19635          { ac_try='test -s conftest$ac_exeext'
19636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19637   (eval $ac_try) 2>&5
19638   ac_status=$?
19639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640   (exit $ac_status); }; }; then
19641
19642 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19643 }'`
19644 # Check for a 64-bit object if we didn't find anything.
19645 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; }
19646 }'`; fi
19647 else
19648   echo "$as_me: failed program was:" >&5
19649 sed 's/^/| /' conftest.$ac_ext >&5
19650
19651 fi
19652 rm -f conftest.err conftest.$ac_objext \
19653       conftest$ac_exeext conftest.$ac_ext
19654 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19655
19656          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19657           # Warning - without using the other run time loading flags,
19658           # -berok will link without error, but may produce a broken library.
19659           no_undefined_flag_F77=' ${wl}-bernotok'
19660           allow_undefined_flag_F77=' ${wl}-berok'
19661           # -bexpall does not export symbols beginning with underscore (_)
19662           always_export_symbols_F77=yes
19663           # Exported symbols can be pulled into shared objects from archives
19664           whole_archive_flag_spec_F77=' '
19665           archive_cmds_need_lc_F77=yes
19666           # This is similar to how AIX traditionally builds it's shared libraries.
19667           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'
19668         fi
19669       fi
19670       ;;
19671
19672     amigaos*)
19673       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)'
19674       hardcode_libdir_flag_spec_F77='-L$libdir'
19675       hardcode_minus_L_F77=yes
19676       # see comment about different semantics on the GNU ld section
19677       ld_shlibs_F77=no
19678       ;;
19679
19680     bsdi[45]*)
19681       export_dynamic_flag_spec_F77=-rdynamic
19682       ;;
19683
19684     cygwin* | mingw* | pw32*)
19685       # When not using gcc, we currently assume that we are using
19686       # Microsoft Visual C++.
19687       # hardcode_libdir_flag_spec is actually meaningless, as there is
19688       # no search path for DLLs.
19689       hardcode_libdir_flag_spec_F77=' '
19690       allow_undefined_flag_F77=unsupported
19691       # Tell ltmain to make .lib files, not .a files.
19692       libext=lib
19693       # Tell ltmain to make .dll files, not .so files.
19694       shrext_cmds=".dll"
19695       # FIXME: Setting linknames here is a bad hack.
19696       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19697       # The linker will automatically build a .lib file if we build a DLL.
19698       old_archive_From_new_cmds_F77='true'
19699       # FIXME: Should let the user specify the lib program.
19700       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19701       fix_srcfile_path='`cygpath -w "$srcfile"`'
19702       enable_shared_with_static_runtimes_F77=yes
19703       ;;
19704
19705     darwin* | rhapsody*)
19706       case "$host_os" in
19707         rhapsody* | darwin1.[012])
19708          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19709          ;;
19710        *) # Darwin 1.3 on
19711          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19712            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19713          else
19714            case ${MACOSX_DEPLOYMENT_TARGET} in
19715              10.[012])
19716                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19717                ;;
19718              10.*)
19719                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19720                ;;
19721            esac
19722          fi
19723          ;;
19724       esac
19725       archive_cmds_need_lc_F77=no
19726       hardcode_direct_F77=no
19727       hardcode_automatic_F77=yes
19728       hardcode_shlibpath_var_F77=unsupported
19729       whole_archive_flag_spec_F77=''
19730       link_all_deplibs_F77=yes
19731     if test "$GCC" = yes ; then
19732         output_verbose_link_cmd='echo'
19733         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19734       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19735       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19736       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}'
19737       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}'
19738     else
19739       case "$cc_basename" in
19740         xlc*)
19741          output_verbose_link_cmd='echo'
19742          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19743          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19744           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19745          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}'
19746           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}'
19747           ;;
19748        *)
19749          ld_shlibs_F77=no
19750           ;;
19751       esac
19752     fi
19753       ;;
19754
19755     dgux*)
19756       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19757       hardcode_libdir_flag_spec_F77='-L$libdir'
19758       hardcode_shlibpath_var_F77=no
19759       ;;
19760
19761     freebsd1*)
19762       ld_shlibs_F77=no
19763       ;;
19764
19765     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19766     # support.  Future versions do this automatically, but an explicit c++rt0.o
19767     # does not break anything, and helps significantly (at the cost of a little
19768     # extra space).
19769     freebsd2.2*)
19770       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19771       hardcode_libdir_flag_spec_F77='-R$libdir'
19772       hardcode_direct_F77=yes
19773       hardcode_shlibpath_var_F77=no
19774       ;;
19775
19776     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19777     freebsd2*)
19778       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19779       hardcode_direct_F77=yes
19780       hardcode_minus_L_F77=yes
19781       hardcode_shlibpath_var_F77=no
19782       ;;
19783
19784     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19785     freebsd* | kfreebsd*-gnu)
19786       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19787       hardcode_libdir_flag_spec_F77='-R$libdir'
19788       hardcode_direct_F77=yes
19789       hardcode_shlibpath_var_F77=no
19790       ;;
19791
19792     hpux9*)
19793       if test "$GCC" = yes; then
19794         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'
19795       else
19796         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'
19797       fi
19798       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19799       hardcode_libdir_separator_F77=:
19800       hardcode_direct_F77=yes
19801
19802       # hardcode_minus_L: Not really in the search PATH,
19803       # but as the default location of the library.
19804       hardcode_minus_L_F77=yes
19805       export_dynamic_flag_spec_F77='${wl}-E'
19806       ;;
19807
19808     hpux10* | hpux11*)
19809       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19810         case "$host_cpu" in
19811         hppa*64*|ia64*)
19812           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19813           ;;
19814         *)
19815           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19816           ;;
19817         esac
19818       else
19819         case "$host_cpu" in
19820         hppa*64*|ia64*)
19821           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19822           ;;
19823         *)
19824           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19825           ;;
19826         esac
19827       fi
19828       if test "$with_gnu_ld" = no; then
19829         case "$host_cpu" in
19830         hppa*64*)
19831           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19832           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19833           hardcode_libdir_separator_F77=:
19834           hardcode_direct_F77=no
19835           hardcode_shlibpath_var_F77=no
19836           ;;
19837         ia64*)
19838           hardcode_libdir_flag_spec_F77='-L$libdir'
19839           hardcode_direct_F77=no
19840           hardcode_shlibpath_var_F77=no
19841
19842           # hardcode_minus_L: Not really in the search PATH,
19843           # but as the default location of the library.
19844           hardcode_minus_L_F77=yes
19845           ;;
19846         *)
19847           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19848           hardcode_libdir_separator_F77=:
19849           hardcode_direct_F77=yes
19850           export_dynamic_flag_spec_F77='${wl}-E'
19851
19852           # hardcode_minus_L: Not really in the search PATH,
19853           # but as the default location of the library.
19854           hardcode_minus_L_F77=yes
19855           ;;
19856         esac
19857       fi
19858       ;;
19859
19860     irix5* | irix6* | nonstopux*)
19861       if test "$GCC" = yes; then
19862         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'
19863       else
19864         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'
19865         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19866       fi
19867       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19868       hardcode_libdir_separator_F77=:
19869       link_all_deplibs_F77=yes
19870       ;;
19871
19872     netbsd*)
19873       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19874         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19875       else
19876         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19877       fi
19878       hardcode_libdir_flag_spec_F77='-R$libdir'
19879       hardcode_direct_F77=yes
19880       hardcode_shlibpath_var_F77=no
19881       ;;
19882
19883     newsos6)
19884       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19885       hardcode_direct_F77=yes
19886       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19887       hardcode_libdir_separator_F77=:
19888       hardcode_shlibpath_var_F77=no
19889       ;;
19890
19891     openbsd*)
19892       hardcode_direct_F77=yes
19893       hardcode_shlibpath_var_F77=no
19894       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19895         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19896         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19897         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19898         export_dynamic_flag_spec_F77='${wl}-E'
19899       else
19900        case $host_os in
19901          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19902            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19903            hardcode_libdir_flag_spec_F77='-R$libdir'
19904            ;;
19905          *)
19906            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19907            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19908            ;;
19909        esac
19910       fi
19911       ;;
19912
19913     os2*)
19914       hardcode_libdir_flag_spec_F77='-L$libdir'
19915       hardcode_minus_L_F77=yes
19916       allow_undefined_flag_F77=unsupported
19917       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'
19918       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19919       ;;
19920
19921     osf3*)
19922       if test "$GCC" = yes; then
19923         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19924         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'
19925       else
19926         allow_undefined_flag_F77=' -expect_unresolved \*'
19927         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'
19928       fi
19929       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19930       hardcode_libdir_separator_F77=:
19931       ;;
19932
19933     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19934       if test "$GCC" = yes; then
19935         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19936         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'
19937         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19938       else
19939         allow_undefined_flag_F77=' -expect_unresolved \*'
19940         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'
19941         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~
19942         $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'
19943
19944         # Both c and cxx compiler support -rpath directly
19945         hardcode_libdir_flag_spec_F77='-rpath $libdir'
19946       fi
19947       hardcode_libdir_separator_F77=:
19948       ;;
19949
19950     sco3.2v5*)
19951       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19952       hardcode_shlibpath_var_F77=no
19953       export_dynamic_flag_spec_F77='${wl}-Bexport'
19954       runpath_var=LD_RUN_PATH
19955       hardcode_runpath_var=yes
19956       ;;
19957
19958     solaris*)
19959       no_undefined_flag_F77=' -z text'
19960       if test "$GCC" = yes; then
19961         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19962         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19963           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19964       else
19965         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19966         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19967         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19968       fi
19969       hardcode_libdir_flag_spec_F77='-R$libdir'
19970       hardcode_shlibpath_var_F77=no
19971       case $host_os in
19972       solaris2.[0-5] | solaris2.[0-5].*) ;;
19973       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19974         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19975       esac
19976       link_all_deplibs_F77=yes
19977       ;;
19978
19979     sunos4*)
19980       if test "x$host_vendor" = xsequent; then
19981         # Use $CC to link under sequent, because it throws in some extra .o
19982         # files that make .init and .fini sections work.
19983         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19984       else
19985         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19986       fi
19987       hardcode_libdir_flag_spec_F77='-L$libdir'
19988       hardcode_direct_F77=yes
19989       hardcode_minus_L_F77=yes
19990       hardcode_shlibpath_var_F77=no
19991       ;;
19992
19993     sysv4)
19994       case $host_vendor in
19995         sni)
19996           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19997           hardcode_direct_F77=yes # is this really true???
19998         ;;
19999         siemens)
20000           ## LD is ld it makes a PLAMLIB
20001           ## CC just makes a GrossModule.
20002           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20003           reload_cmds_F77='$CC -r -o $output$reload_objs'
20004           hardcode_direct_F77=no
20005         ;;
20006         motorola)
20007           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20008           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
20009         ;;
20010       esac
20011       runpath_var='LD_RUN_PATH'
20012       hardcode_shlibpath_var_F77=no
20013       ;;
20014
20015     sysv4.3*)
20016       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20017       hardcode_shlibpath_var_F77=no
20018       export_dynamic_flag_spec_F77='-Bexport'
20019       ;;
20020
20021     sysv4*MP*)
20022       if test -d /usr/nec; then
20023         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20024         hardcode_shlibpath_var_F77=no
20025         runpath_var=LD_RUN_PATH
20026         hardcode_runpath_var=yes
20027         ld_shlibs_F77=yes
20028       fi
20029       ;;
20030
20031     sysv4.2uw2*)
20032       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20033       hardcode_direct_F77=yes
20034       hardcode_minus_L_F77=no
20035       hardcode_shlibpath_var_F77=no
20036       hardcode_runpath_var=yes
20037       runpath_var=LD_RUN_PATH
20038       ;;
20039
20040    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
20041       no_undefined_flag_F77='${wl}-z ${wl}text'
20042       if test "$GCC" = yes; then
20043         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20044       else
20045         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20046       fi
20047       runpath_var='LD_RUN_PATH'
20048       hardcode_shlibpath_var_F77=no
20049       ;;
20050
20051     sysv5*)
20052       no_undefined_flag_F77=' -z text'
20053       # $CC -shared without GNU ld will not create a library from C++
20054       # object files and a static libstdc++, better avoid it by now
20055       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20056       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20057                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20058       hardcode_libdir_flag_spec_F77=
20059       hardcode_shlibpath_var_F77=no
20060       runpath_var='LD_RUN_PATH'
20061       ;;
20062
20063     uts4*)
20064       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20065       hardcode_libdir_flag_spec_F77='-L$libdir'
20066       hardcode_shlibpath_var_F77=no
20067       ;;
20068
20069     *)
20070       ld_shlibs_F77=no
20071       ;;
20072     esac
20073   fi
20074
20075 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20076 echo "${ECHO_T}$ld_shlibs_F77" >&6
20077 test "$ld_shlibs_F77" = no && can_build_shared=no
20078
20079 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20080 if test "$GCC" = yes; then
20081   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20082 fi
20083
20084 #
20085 # Do we need to explicitly link libc?
20086 #
20087 case "x$archive_cmds_need_lc_F77" in
20088 x|xyes)
20089   # Assume -lc should be added
20090   archive_cmds_need_lc_F77=yes
20091
20092   if test "$enable_shared" = yes && test "$GCC" = yes; then
20093     case $archive_cmds_F77 in
20094     *'~'*)
20095       # FIXME: we may have to deal with multi-command sequences.
20096       ;;
20097     '$CC '*)
20098       # Test whether the compiler implicitly links with -lc since on some
20099       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20100       # to ld, don't add -lc before -lgcc.
20101       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20102 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20103       $rm conftest*
20104       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20105
20106       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20107   (eval $ac_compile) 2>&5
20108   ac_status=$?
20109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110   (exit $ac_status); } 2>conftest.err; then
20111         soname=conftest
20112         lib=conftest
20113         libobjs=conftest.$ac_objext
20114         deplibs=
20115         wl=$lt_prog_compiler_wl_F77
20116         compiler_flags=-v
20117         linker_flags=-v
20118         verstring=
20119         output_objdir=.
20120         libname=conftest
20121         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20122         allow_undefined_flag_F77=
20123         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20124   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20125   ac_status=$?
20126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127   (exit $ac_status); }
20128         then
20129           archive_cmds_need_lc_F77=no
20130         else
20131           archive_cmds_need_lc_F77=yes
20132         fi
20133         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20134       else
20135         cat conftest.err 1>&5
20136       fi
20137       $rm conftest*
20138       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20139 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20140       ;;
20141     esac
20142   fi
20143   ;;
20144 esac
20145
20146 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20147 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20148 library_names_spec=
20149 libname_spec='lib$name'
20150 soname_spec=
20151 shrext_cmds=".so"
20152 postinstall_cmds=
20153 postuninstall_cmds=
20154 finish_cmds=
20155 finish_eval=
20156 shlibpath_var=
20157 shlibpath_overrides_runpath=unknown
20158 version_type=none
20159 dynamic_linker="$host_os ld.so"
20160 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20161 if test "$GCC" = yes; then
20162   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20163   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20164     # if the path contains ";" then we assume it to be the separator
20165     # otherwise default to the standard path separator (i.e. ":") - it is
20166     # assumed that no part of a normal pathname contains ";" but that should
20167     # okay in the real world where ";" in dirpaths is itself problematic.
20168     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20169   else
20170     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20171   fi
20172 else
20173   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20174 fi
20175 need_lib_prefix=unknown
20176 hardcode_into_libs=no
20177
20178 # when you set need_version to no, make sure it does not cause -set_version
20179 # flags to be left without arguments
20180 need_version=unknown
20181
20182 case $host_os in
20183 aix3*)
20184   version_type=linux
20185   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20186   shlibpath_var=LIBPATH
20187
20188   # AIX 3 has no versioning support, so we append a major version to the name.
20189   soname_spec='${libname}${release}${shared_ext}$major'
20190   ;;
20191
20192 aix4* | aix5*)
20193   version_type=linux
20194   need_lib_prefix=no
20195   need_version=no
20196   hardcode_into_libs=yes
20197   if test "$host_cpu" = ia64; then
20198     # AIX 5 supports IA64
20199     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20200     shlibpath_var=LD_LIBRARY_PATH
20201   else
20202     # With GCC up to 2.95.x, collect2 would create an import file
20203     # for dependence libraries.  The import file would start with
20204     # the line `#! .'.  This would cause the generated library to
20205     # depend on `.', always an invalid library.  This was fixed in
20206     # development snapshots of GCC prior to 3.0.
20207     case $host_os in
20208       aix4 | aix4.[01] | aix4.[01].*)
20209       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20210            echo ' yes '
20211            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20212         :
20213       else
20214         can_build_shared=no
20215       fi
20216       ;;
20217     esac
20218     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20219     # soname into executable. Probably we can add versioning support to
20220     # collect2, so additional links can be useful in future.
20221     if test "$aix_use_runtimelinking" = yes; then
20222       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20223       # instead of lib<name>.a to let people know that these are not
20224       # typical AIX shared libraries.
20225       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20226     else
20227       # We preserve .a as extension for shared libraries through AIX4.2
20228       # and later when we are not doing run time linking.
20229       library_names_spec='${libname}${release}.a $libname.a'
20230       soname_spec='${libname}${release}${shared_ext}$major'
20231     fi
20232     shlibpath_var=LIBPATH
20233   fi
20234   ;;
20235
20236 amigaos*)
20237   library_names_spec='$libname.ixlibrary $libname.a'
20238   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20239   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'
20240   ;;
20241
20242 beos*)
20243   library_names_spec='${libname}${shared_ext}'
20244   dynamic_linker="$host_os ld.so"
20245   shlibpath_var=LIBRARY_PATH
20246   ;;
20247
20248 bsdi[45]*)
20249   version_type=linux
20250   need_version=no
20251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20252   soname_spec='${libname}${release}${shared_ext}$major'
20253   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20254   shlibpath_var=LD_LIBRARY_PATH
20255   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20256   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20257   # the default ld.so.conf also contains /usr/contrib/lib and
20258   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20259   # libtool to hard-code these into programs
20260   ;;
20261
20262 cygwin* | mingw* | pw32*)
20263   version_type=windows
20264   shrext_cmds=".dll"
20265   need_version=no
20266   need_lib_prefix=no
20267
20268   case $GCC,$host_os in
20269   yes,cygwin* | yes,mingw* | yes,pw32*)
20270     library_names_spec='$libname.dll.a'
20271     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20272     postinstall_cmds='base_file=`basename \${file}`~
20273       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20274       dldir=$destdir/`dirname \$dlpath`~
20275       test -d \$dldir || mkdir -p \$dldir~
20276       $install_prog $dir/$dlname \$dldir/$dlname'
20277     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20278       dlpath=$dir/\$dldll~
20279        $rm \$dlpath'
20280     shlibpath_overrides_runpath=yes
20281
20282     case $host_os in
20283     cygwin*)
20284       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20285       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20286       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20287       ;;
20288     mingw*)
20289       # MinGW DLLs use traditional 'lib' prefix
20290       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20291       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20292       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20293         # It is most probably a Windows format PATH printed by
20294         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20295         # path with ; separators, and with drive letters. We can handle the
20296         # drive letters (cygwin fileutils understands them), so leave them,
20297         # especially as we might pass files found there to a mingw objdump,
20298         # which wouldn't understand a cygwinified path. Ahh.
20299         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20300       else
20301         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20302       fi
20303       ;;
20304     pw32*)
20305       # pw32 DLLs use 'pw' prefix rather than 'lib'
20306       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20307       ;;
20308     esac
20309     ;;
20310
20311   *)
20312     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20313     ;;
20314   esac
20315   dynamic_linker='Win32 ld.exe'
20316   # FIXME: first we should search . and the directory the executable is in
20317   shlibpath_var=PATH
20318   ;;
20319
20320 darwin* | rhapsody*)
20321   dynamic_linker="$host_os dyld"
20322   version_type=darwin
20323   need_lib_prefix=no
20324   need_version=no
20325   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20326   soname_spec='${libname}${release}${major}$shared_ext'
20327   shlibpath_overrides_runpath=yes
20328   shlibpath_var=DYLD_LIBRARY_PATH
20329   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20330   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20331   if test "$GCC" = yes; then
20332     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"`
20333   else
20334     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20335   fi
20336   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20337   ;;
20338
20339 dgux*)
20340   version_type=linux
20341   need_lib_prefix=no
20342   need_version=no
20343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20344   soname_spec='${libname}${release}${shared_ext}$major'
20345   shlibpath_var=LD_LIBRARY_PATH
20346   ;;
20347
20348 freebsd1*)
20349   dynamic_linker=no
20350   ;;
20351
20352 kfreebsd*-gnu)
20353   version_type=linux
20354   need_lib_prefix=no
20355   need_version=no
20356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20357   soname_spec='${libname}${release}${shared_ext}$major'
20358   shlibpath_var=LD_LIBRARY_PATH
20359   shlibpath_overrides_runpath=no
20360   hardcode_into_libs=yes
20361   dynamic_linker='GNU ld.so'
20362   ;;
20363
20364 freebsd*)
20365   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20366   version_type=freebsd-$objformat
20367   case $version_type in
20368     freebsd-elf*)
20369       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20370       need_version=no
20371       need_lib_prefix=no
20372       ;;
20373     freebsd-*)
20374       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20375       need_version=yes
20376       ;;
20377   esac
20378   shlibpath_var=LD_LIBRARY_PATH
20379   case $host_os in
20380   freebsd2*)
20381     shlibpath_overrides_runpath=yes
20382     ;;
20383   freebsd3.01* | freebsdelf3.01*)
20384     shlibpath_overrides_runpath=yes
20385     hardcode_into_libs=yes
20386     ;;
20387   *) # from 3.2 on
20388     shlibpath_overrides_runpath=no
20389     hardcode_into_libs=yes
20390     ;;
20391   esac
20392   ;;
20393
20394 gnu*)
20395   version_type=linux
20396   need_lib_prefix=no
20397   need_version=no
20398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20399   soname_spec='${libname}${release}${shared_ext}$major'
20400   shlibpath_var=LD_LIBRARY_PATH
20401   hardcode_into_libs=yes
20402   ;;
20403
20404 hpux9* | hpux10* | hpux11*)
20405   # Give a soname corresponding to the major version so that dld.sl refuses to
20406   # link against other versions.
20407   version_type=sunos
20408   need_lib_prefix=no
20409   need_version=no
20410   case "$host_cpu" in
20411   ia64*)
20412     shrext_cmds='.so'
20413     hardcode_into_libs=yes
20414     dynamic_linker="$host_os dld.so"
20415     shlibpath_var=LD_LIBRARY_PATH
20416     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20417     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20418     soname_spec='${libname}${release}${shared_ext}$major'
20419     if test "X$HPUX_IA64_MODE" = X32; then
20420       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20421     else
20422       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20423     fi
20424     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20425     ;;
20426    hppa*64*)
20427      shrext_cmds='.sl'
20428      hardcode_into_libs=yes
20429      dynamic_linker="$host_os dld.sl"
20430      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20431      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20432      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20433      soname_spec='${libname}${release}${shared_ext}$major'
20434      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20435      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20436      ;;
20437    *)
20438     shrext_cmds='.sl'
20439     dynamic_linker="$host_os dld.sl"
20440     shlibpath_var=SHLIB_PATH
20441     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20443     soname_spec='${libname}${release}${shared_ext}$major'
20444     ;;
20445   esac
20446   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20447   postinstall_cmds='chmod 555 $lib'
20448   ;;
20449
20450 irix5* | irix6* | nonstopux*)
20451   case $host_os in
20452     nonstopux*) version_type=nonstopux ;;
20453     *)
20454         if test "$lt_cv_prog_gnu_ld" = yes; then
20455                 version_type=linux
20456         else
20457                 version_type=irix
20458         fi ;;
20459   esac
20460   need_lib_prefix=no
20461   need_version=no
20462   soname_spec='${libname}${release}${shared_ext}$major'
20463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20464   case $host_os in
20465   irix5* | nonstopux*)
20466     libsuff= shlibsuff=
20467     ;;
20468   *)
20469     case $LD in # libtool.m4 will add one of these switches to LD
20470     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20471       libsuff= shlibsuff= libmagic=32-bit;;
20472     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20473       libsuff=32 shlibsuff=N32 libmagic=N32;;
20474     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20475       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20476     *) libsuff= shlibsuff= libmagic=never-match;;
20477     esac
20478     ;;
20479   esac
20480   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20481   shlibpath_overrides_runpath=no
20482   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20483   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20484   hardcode_into_libs=yes
20485   ;;
20486
20487 # No shared lib support for Linux oldld, aout, or coff.
20488 linux*oldld* | linux*aout* | linux*coff*)
20489   dynamic_linker=no
20490   ;;
20491
20492 # This must be Linux ELF.
20493 linux*)
20494   version_type=linux
20495   need_lib_prefix=no
20496   need_version=no
20497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20498   soname_spec='${libname}${release}${shared_ext}$major'
20499   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20500   shlibpath_var=LD_LIBRARY_PATH
20501   shlibpath_overrides_runpath=no
20502   # This implies no fast_install, which is unacceptable.
20503   # Some rework will be needed to allow for fast_install
20504   # before this can be enabled.
20505   hardcode_into_libs=yes
20506
20507   # Append ld.so.conf contents to the search path
20508   if test -f /etc/ld.so.conf; then
20509     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20510     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20511   fi
20512
20513   # We used to test for /lib/ld.so.1 and disable shared libraries on
20514   # powerpc, because MkLinux only supported shared libraries with the
20515   # GNU dynamic linker.  Since this was broken with cross compilers,
20516   # most powerpc-linux boxes support dynamic linking these days and
20517   # people can always --disable-shared, the test was removed, and we
20518   # assume the GNU/Linux dynamic linker is in use.
20519   dynamic_linker='GNU/Linux ld.so'
20520   ;;
20521
20522 knetbsd*-gnu)
20523   version_type=linux
20524   need_lib_prefix=no
20525   need_version=no
20526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20527   soname_spec='${libname}${release}${shared_ext}$major'
20528   shlibpath_var=LD_LIBRARY_PATH
20529   shlibpath_overrides_runpath=no
20530   hardcode_into_libs=yes
20531   dynamic_linker='GNU ld.so'
20532   ;;
20533
20534 netbsd*)
20535   version_type=sunos
20536   need_lib_prefix=no
20537   need_version=no
20538   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20539     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20540     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20541     dynamic_linker='NetBSD (a.out) ld.so'
20542   else
20543     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20544     soname_spec='${libname}${release}${shared_ext}$major'
20545     dynamic_linker='NetBSD ld.elf_so'
20546   fi
20547   shlibpath_var=LD_LIBRARY_PATH
20548   shlibpath_overrides_runpath=yes
20549   hardcode_into_libs=yes
20550   ;;
20551
20552 newsos6)
20553   version_type=linux
20554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20555   shlibpath_var=LD_LIBRARY_PATH
20556   shlibpath_overrides_runpath=yes
20557   ;;
20558
20559 nto-qnx*)
20560   version_type=linux
20561   need_lib_prefix=no
20562   need_version=no
20563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20564   soname_spec='${libname}${release}${shared_ext}$major'
20565   shlibpath_var=LD_LIBRARY_PATH
20566   shlibpath_overrides_runpath=yes
20567   ;;
20568
20569 openbsd*)
20570   version_type=sunos
20571   need_lib_prefix=no
20572   need_version=no
20573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20574   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20575   shlibpath_var=LD_LIBRARY_PATH
20576   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20577     case $host_os in
20578       openbsd2.[89] | openbsd2.[89].*)
20579         shlibpath_overrides_runpath=no
20580         ;;
20581       *)
20582         shlibpath_overrides_runpath=yes
20583         ;;
20584       esac
20585   else
20586     shlibpath_overrides_runpath=yes
20587   fi
20588   ;;
20589
20590 os2*)
20591   libname_spec='$name'
20592   shrext_cmds=".dll"
20593   need_lib_prefix=no
20594   library_names_spec='$libname${shared_ext} $libname.a'
20595   dynamic_linker='OS/2 ld.exe'
20596   shlibpath_var=LIBPATH
20597   ;;
20598
20599 osf3* | osf4* | osf5*)
20600   version_type=osf
20601   need_lib_prefix=no
20602   need_version=no
20603   soname_spec='${libname}${release}${shared_ext}$major'
20604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20605   shlibpath_var=LD_LIBRARY_PATH
20606   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20607   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20608   ;;
20609
20610 sco3.2v5*)
20611   version_type=osf
20612   soname_spec='${libname}${release}${shared_ext}$major'
20613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20614   shlibpath_var=LD_LIBRARY_PATH
20615   ;;
20616
20617 solaris*)
20618   version_type=linux
20619   need_lib_prefix=no
20620   need_version=no
20621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20622   soname_spec='${libname}${release}${shared_ext}$major'
20623   shlibpath_var=LD_LIBRARY_PATH
20624   shlibpath_overrides_runpath=yes
20625   hardcode_into_libs=yes
20626   # ldd complains unless libraries are executable
20627   postinstall_cmds='chmod +x $lib'
20628   ;;
20629
20630 sunos4*)
20631   version_type=sunos
20632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20633   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20634   shlibpath_var=LD_LIBRARY_PATH
20635   shlibpath_overrides_runpath=yes
20636   if test "$with_gnu_ld" = yes; then
20637     need_lib_prefix=no
20638   fi
20639   need_version=yes
20640   ;;
20641
20642 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20643   version_type=linux
20644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20645   soname_spec='${libname}${release}${shared_ext}$major'
20646   shlibpath_var=LD_LIBRARY_PATH
20647   case $host_vendor in
20648     sni)
20649       shlibpath_overrides_runpath=no
20650       need_lib_prefix=no
20651       export_dynamic_flag_spec='${wl}-Blargedynsym'
20652       runpath_var=LD_RUN_PATH
20653       ;;
20654     siemens)
20655       need_lib_prefix=no
20656       ;;
20657     motorola)
20658       need_lib_prefix=no
20659       need_version=no
20660       shlibpath_overrides_runpath=no
20661       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20662       ;;
20663   esac
20664   ;;
20665
20666 sysv4*MP*)
20667   if test -d /usr/nec ;then
20668     version_type=linux
20669     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20670     soname_spec='$libname${shared_ext}.$major'
20671     shlibpath_var=LD_LIBRARY_PATH
20672   fi
20673   ;;
20674
20675 uts4*)
20676   version_type=linux
20677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20678   soname_spec='${libname}${release}${shared_ext}$major'
20679   shlibpath_var=LD_LIBRARY_PATH
20680   ;;
20681
20682 *)
20683   dynamic_linker=no
20684   ;;
20685 esac
20686 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20687 echo "${ECHO_T}$dynamic_linker" >&6
20688 test "$dynamic_linker" = no && can_build_shared=no
20689
20690 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20691 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20692 hardcode_action_F77=
20693 if test -n "$hardcode_libdir_flag_spec_F77" || \
20694    test -n "$runpath_var_F77" || \
20695    test "X$hardcode_automatic_F77" = "Xyes" ; then
20696
20697   # We can hardcode non-existant directories.
20698   if test "$hardcode_direct_F77" != no &&
20699      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20700      # have to relink, otherwise we might link with an installed library
20701      # when we should be linking with a yet-to-be-installed one
20702      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20703      test "$hardcode_minus_L_F77" != no; then
20704     # Linking always hardcodes the temporary library directory.
20705     hardcode_action_F77=relink
20706   else
20707     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20708     hardcode_action_F77=immediate
20709   fi
20710 else
20711   # We cannot hardcode anything, or else we can only hardcode existing
20712   # directories.
20713   hardcode_action_F77=unsupported
20714 fi
20715 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20716 echo "${ECHO_T}$hardcode_action_F77" >&6
20717
20718 if test "$hardcode_action_F77" = relink; then
20719   # Fast installation is not supported
20720   enable_fast_install=no
20721 elif test "$shlibpath_overrides_runpath" = yes ||
20722      test "$enable_shared" = no; then
20723   # Fast installation is not necessary
20724   enable_fast_install=needless
20725 fi
20726
20727 striplib=
20728 old_striplib=
20729 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20730 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20731 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20732   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20733   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20734   echo "$as_me:$LINENO: result: yes" >&5
20735 echo "${ECHO_T}yes" >&6
20736 else
20737 # FIXME - insert some real tests, host_os isn't really good enough
20738   case $host_os in
20739    darwin*)
20740        if test -n "$STRIP" ; then
20741          striplib="$STRIP -x"
20742          echo "$as_me:$LINENO: result: yes" >&5
20743 echo "${ECHO_T}yes" >&6
20744        else
20745   echo "$as_me:$LINENO: result: no" >&5
20746 echo "${ECHO_T}no" >&6
20747 fi
20748        ;;
20749    *)
20750   echo "$as_me:$LINENO: result: no" >&5
20751 echo "${ECHO_T}no" >&6
20752     ;;
20753   esac
20754 fi
20755
20756
20757
20758 # The else clause should only fire when bootstrapping the
20759 # libtool distribution, otherwise you forgot to ship ltmain.sh
20760 # with your package, and you will get complaints that there are
20761 # no rules to generate ltmain.sh.
20762 if test -f "$ltmain"; then
20763   # See if we are running on zsh, and set the options which allow our commands through
20764   # without removal of \ escapes.
20765   if test -n "${ZSH_VERSION+set}" ; then
20766     setopt NO_GLOB_SUBST
20767   fi
20768   # Now quote all the things that may contain metacharacters while being
20769   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20770   # variables and quote the copies for generation of the libtool script.
20771   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20772     SED SHELL STRIP \
20773     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20774     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20775     deplibs_check_method reload_flag reload_cmds need_locks \
20776     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20777     lt_cv_sys_global_symbol_to_c_name_address \
20778     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20779     old_postinstall_cmds old_postuninstall_cmds \
20780     compiler_F77 \
20781     CC_F77 \
20782     LD_F77 \
20783     lt_prog_compiler_wl_F77 \
20784     lt_prog_compiler_pic_F77 \
20785     lt_prog_compiler_static_F77 \
20786     lt_prog_compiler_no_builtin_flag_F77 \
20787     export_dynamic_flag_spec_F77 \
20788     thread_safe_flag_spec_F77 \
20789     whole_archive_flag_spec_F77 \
20790     enable_shared_with_static_runtimes_F77 \
20791     old_archive_cmds_F77 \
20792     old_archive_from_new_cmds_F77 \
20793     predep_objects_F77 \
20794     postdep_objects_F77 \
20795     predeps_F77 \
20796     postdeps_F77 \
20797     compiler_lib_search_path_F77 \
20798     archive_cmds_F77 \
20799     archive_expsym_cmds_F77 \
20800     postinstall_cmds_F77 \
20801     postuninstall_cmds_F77 \
20802     old_archive_from_expsyms_cmds_F77 \
20803     allow_undefined_flag_F77 \
20804     no_undefined_flag_F77 \
20805     export_symbols_cmds_F77 \
20806     hardcode_libdir_flag_spec_F77 \
20807     hardcode_libdir_flag_spec_ld_F77 \
20808     hardcode_libdir_separator_F77 \
20809     hardcode_automatic_F77 \
20810     module_cmds_F77 \
20811     module_expsym_cmds_F77 \
20812     lt_cv_prog_compiler_c_o_F77 \
20813     exclude_expsyms_F77 \
20814     include_expsyms_F77; do
20815
20816     case $var in
20817     old_archive_cmds_F77 | \
20818     old_archive_from_new_cmds_F77 | \
20819     archive_cmds_F77 | \
20820     archive_expsym_cmds_F77 | \
20821     module_cmds_F77 | \
20822     module_expsym_cmds_F77 | \
20823     old_archive_from_expsyms_cmds_F77 | \
20824     export_symbols_cmds_F77 | \
20825     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20826     postinstall_cmds | postuninstall_cmds | \
20827     old_postinstall_cmds | old_postuninstall_cmds | \
20828     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20829       # Double-quote double-evaled strings.
20830       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20831       ;;
20832     *)
20833       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20834       ;;
20835     esac
20836   done
20837
20838   case $lt_echo in
20839   *'\$0 --fallback-echo"')
20840     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20841     ;;
20842   esac
20843
20844 cfgfile="$ofile"
20845
20846   cat <<__EOF__ >> "$cfgfile"
20847 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20848
20849 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20850
20851 # Shell to use when invoking shell scripts.
20852 SHELL=$lt_SHELL
20853
20854 # Whether or not to build shared libraries.
20855 build_libtool_libs=$enable_shared
20856
20857 # Whether or not to build static libraries.
20858 build_old_libs=$enable_static
20859
20860 # Whether or not to add -lc for building shared libraries.
20861 build_libtool_need_lc=$archive_cmds_need_lc_F77
20862
20863 # Whether or not to disallow shared libs when runtime libs are static
20864 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20865
20866 # Whether or not to optimize for fast installation.
20867 fast_install=$enable_fast_install
20868
20869 # The host system.
20870 host_alias=$host_alias
20871 host=$host
20872
20873 # An echo program that does not interpret backslashes.
20874 echo=$lt_echo
20875
20876 # The archiver.
20877 AR=$lt_AR
20878 AR_FLAGS=$lt_AR_FLAGS
20879
20880 # A C compiler.
20881 LTCC=$lt_LTCC
20882
20883 # A language-specific compiler.
20884 CC=$lt_compiler_F77
20885
20886 # Is the compiler the GNU C compiler?
20887 with_gcc=$GCC_F77
20888
20889 # An ERE matcher.
20890 EGREP=$lt_EGREP
20891
20892 # The linker used to build libraries.
20893 LD=$lt_LD_F77
20894
20895 # Whether we need hard or soft links.
20896 LN_S=$lt_LN_S
20897
20898 # A BSD-compatible nm program.
20899 NM=$lt_NM
20900
20901 # A symbol stripping program
20902 STRIP=$lt_STRIP
20903
20904 # Used to examine libraries when file_magic_cmd begins "file"
20905 MAGIC_CMD=$MAGIC_CMD
20906
20907 # Used on cygwin: DLL creation program.
20908 DLLTOOL="$DLLTOOL"
20909
20910 # Used on cygwin: object dumper.
20911 OBJDUMP="$OBJDUMP"
20912
20913 # Used on cygwin: assembler.
20914 AS="$AS"
20915
20916 # The name of the directory that contains temporary libtool files.
20917 objdir=$objdir
20918
20919 # How to create reloadable object files.
20920 reload_flag=$lt_reload_flag
20921 reload_cmds=$lt_reload_cmds
20922
20923 # How to pass a linker flag through the compiler.
20924 wl=$lt_lt_prog_compiler_wl_F77
20925
20926 # Object file suffix (normally "o").
20927 objext="$ac_objext"
20928
20929 # Old archive suffix (normally "a").
20930 libext="$libext"
20931
20932 # Shared library suffix (normally ".so").
20933 shrext_cmds='$shrext_cmds'
20934
20935 # Executable file suffix (normally "").
20936 exeext="$exeext"
20937
20938 # Additional compiler flags for building library objects.
20939 pic_flag=$lt_lt_prog_compiler_pic_F77
20940 pic_mode=$pic_mode
20941
20942 # What is the maximum length of a command?
20943 max_cmd_len=$lt_cv_sys_max_cmd_len
20944
20945 # Does compiler simultaneously support -c and -o options?
20946 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20947
20948 # Must we lock files when doing compilation ?
20949 need_locks=$lt_need_locks
20950
20951 # Do we need the lib prefix for modules?
20952 need_lib_prefix=$need_lib_prefix
20953
20954 # Do we need a version for libraries?
20955 need_version=$need_version
20956
20957 # Whether dlopen is supported.
20958 dlopen_support=$enable_dlopen
20959
20960 # Whether dlopen of programs is supported.
20961 dlopen_self=$enable_dlopen_self
20962
20963 # Whether dlopen of statically linked programs is supported.
20964 dlopen_self_static=$enable_dlopen_self_static
20965
20966 # Compiler flag to prevent dynamic linking.
20967 link_static_flag=$lt_lt_prog_compiler_static_F77
20968
20969 # Compiler flag to turn off builtin functions.
20970 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20971
20972 # Compiler flag to allow reflexive dlopens.
20973 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20974
20975 # Compiler flag to generate shared objects directly from archives.
20976 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20977
20978 # Compiler flag to generate thread-safe objects.
20979 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20980
20981 # Library versioning type.
20982 version_type=$version_type
20983
20984 # Format of library name prefix.
20985 libname_spec=$lt_libname_spec
20986
20987 # List of archive names.  First name is the real one, the rest are links.
20988 # The last name is the one that the linker finds with -lNAME.
20989 library_names_spec=$lt_library_names_spec
20990
20991 # The coded name of the library, if different from the real name.
20992 soname_spec=$lt_soname_spec
20993
20994 # Commands used to build and install an old-style archive.
20995 RANLIB=$lt_RANLIB
20996 old_archive_cmds=$lt_old_archive_cmds_F77
20997 old_postinstall_cmds=$lt_old_postinstall_cmds
20998 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20999
21000 # Create an old-style archive from a shared archive.
21001 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21002
21003 # Create a temporary old-style archive to link instead of a shared archive.
21004 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21005
21006 # Commands used to build and install a shared archive.
21007 archive_cmds=$lt_archive_cmds_F77
21008 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21009 postinstall_cmds=$lt_postinstall_cmds
21010 postuninstall_cmds=$lt_postuninstall_cmds
21011
21012 # Commands used to build a loadable module (assumed same as above if empty)
21013 module_cmds=$lt_module_cmds_F77
21014 module_expsym_cmds=$lt_module_expsym_cmds_F77
21015
21016 # Commands to strip libraries.
21017 old_striplib=$lt_old_striplib
21018 striplib=$lt_striplib
21019
21020 # Dependencies to place before the objects being linked to create a
21021 # shared library.
21022 predep_objects=$lt_predep_objects_F77
21023
21024 # Dependencies to place after the objects being linked to create a
21025 # shared library.
21026 postdep_objects=$lt_postdep_objects_F77
21027
21028 # Dependencies to place before the objects being linked to create a
21029 # shared library.
21030 predeps=$lt_predeps_F77
21031
21032 # Dependencies to place after the objects being linked to create a
21033 # shared library.
21034 postdeps=$lt_postdeps_F77
21035
21036 # The library search path used internally by the compiler when linking
21037 # a shared library.
21038 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21039
21040 # Method to check whether dependent libraries are shared objects.
21041 deplibs_check_method=$lt_deplibs_check_method
21042
21043 # Command to use when deplibs_check_method == file_magic.
21044 file_magic_cmd=$lt_file_magic_cmd
21045
21046 # Flag that allows shared libraries with undefined symbols to be built.
21047 allow_undefined_flag=$lt_allow_undefined_flag_F77
21048
21049 # Flag that forces no undefined symbols.
21050 no_undefined_flag=$lt_no_undefined_flag_F77
21051
21052 # Commands used to finish a libtool library installation in a directory.
21053 finish_cmds=$lt_finish_cmds
21054
21055 # Same as above, but a single script fragment to be evaled but not shown.
21056 finish_eval=$lt_finish_eval
21057
21058 # Take the output of nm and produce a listing of raw symbols and C names.
21059 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21060
21061 # Transform the output of nm in a proper C declaration
21062 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21063
21064 # Transform the output of nm in a C name address pair
21065 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21066
21067 # This is the shared library runtime path variable.
21068 runpath_var=$runpath_var
21069
21070 # This is the shared library path variable.
21071 shlibpath_var=$shlibpath_var
21072
21073 # Is shlibpath searched before the hard-coded library search path?
21074 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21075
21076 # How to hardcode a shared library path into an executable.
21077 hardcode_action=$hardcode_action_F77
21078
21079 # Whether we should hardcode library paths into libraries.
21080 hardcode_into_libs=$hardcode_into_libs
21081
21082 # Flag to hardcode \$libdir into a binary during linking.
21083 # This must work even if \$libdir does not exist.
21084 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21085
21086 # If ld is used when linking, flag to hardcode \$libdir into
21087 # a binary during linking. This must work even if \$libdir does
21088 # not exist.
21089 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21090
21091 # Whether we need a single -rpath flag with a separated argument.
21092 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21093
21094 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21095 # resulting binary.
21096 hardcode_direct=$hardcode_direct_F77
21097
21098 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21099 # resulting binary.
21100 hardcode_minus_L=$hardcode_minus_L_F77
21101
21102 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21103 # the resulting binary.
21104 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21105
21106 # Set to yes if building a shared library automatically hardcodes DIR into the library
21107 # and all subsequent libraries and executables linked against it.
21108 hardcode_automatic=$hardcode_automatic_F77
21109
21110 # Variables whose values should be saved in libtool wrapper scripts and
21111 # restored at relink time.
21112 variables_saved_for_relink="$variables_saved_for_relink"
21113
21114 # Whether libtool must link a program against all its dependency libraries.
21115 link_all_deplibs=$link_all_deplibs_F77
21116
21117 # Compile-time system search path for libraries
21118 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21119
21120 # Run-time system search path for libraries
21121 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21122
21123 # Fix the shell variable \$srcfile for the compiler.
21124 fix_srcfile_path="$fix_srcfile_path_F77"
21125
21126 # Set to yes if exported symbols are required.
21127 always_export_symbols=$always_export_symbols_F77
21128
21129 # The commands to list exported symbols.
21130 export_symbols_cmds=$lt_export_symbols_cmds_F77
21131
21132 # The commands to extract the exported symbol list from a shared archive.
21133 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21134
21135 # Symbols that should not be listed in the preloaded symbols.
21136 exclude_expsyms=$lt_exclude_expsyms_F77
21137
21138 # Symbols that must always be exported.
21139 include_expsyms=$lt_include_expsyms_F77
21140
21141 # ### END LIBTOOL TAG CONFIG: $tagname
21142
21143 __EOF__
21144
21145
21146 else
21147   # If there is no Makefile yet, we rely on a make rule to execute
21148   # `config.status --recheck' to rerun these tests and create the
21149   # libtool script then.
21150   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21151   if test -f "$ltmain_in"; then
21152     test -f Makefile && make "$ltmain"
21153   fi
21154 fi
21155
21156
21157 ac_ext=c
21158 ac_cpp='$CPP $CPPFLAGS'
21159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21162
21163 CC="$lt_save_CC"
21164
21165         else
21166           tagname=""
21167         fi
21168         ;;
21169
21170       GCJ)
21171         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21172           ac_ext=c
21173 ac_cpp='$CPP $CPPFLAGS'
21174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21177
21178
21179 # Source file extension for Java test sources.
21180 ac_ext=java
21181
21182 # Object file extension for compiled Java test sources.
21183 objext=o
21184 objext_GCJ=$objext
21185
21186 # Code to be used in simple compile tests
21187 lt_simple_compile_test_code="class foo {}\n"
21188
21189 # Code to be used in simple link tests
21190 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21191
21192 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21193
21194 # If no C compiler was specified, use CC.
21195 LTCC=${LTCC-"$CC"}
21196
21197 # Allow CC to be a program name with arguments.
21198 compiler=$CC
21199
21200
21201 # Allow CC to be a program name with arguments.
21202 lt_save_CC="$CC"
21203 CC=${GCJ-"gcj"}
21204 compiler=$CC
21205 compiler_GCJ=$CC
21206
21207 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21208 archive_cmds_need_lc_GCJ=no
21209
21210
21211 lt_prog_compiler_no_builtin_flag_GCJ=
21212
21213 if test "$GCC" = yes; then
21214   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21215
21216
21217 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21218 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21219 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21220   echo $ECHO_N "(cached) $ECHO_C" >&6
21221 else
21222   lt_cv_prog_compiler_rtti_exceptions=no
21223   ac_outfile=conftest.$ac_objext
21224    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21225    lt_compiler_flag="-fno-rtti -fno-exceptions"
21226    # Insert the option either (1) after the last *FLAGS variable, or
21227    # (2) before a word containing "conftest.", or (3) at the end.
21228    # Note that $ac_compile itself does not contain backslashes and begins
21229    # with a dollar sign (not a hyphen), so the echo should work correctly.
21230    # The option is referenced via a variable to avoid confusing sed.
21231    lt_compile=`echo "$ac_compile" | $SED \
21232    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21233    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21234    -e 's:$: $lt_compiler_flag:'`
21235    (eval echo "\"\$as_me:21235: $lt_compile\"" >&5)
21236    (eval "$lt_compile" 2>conftest.err)
21237    ac_status=$?
21238    cat conftest.err >&5
21239    echo "$as_me:21239: \$? = $ac_status" >&5
21240    if (exit $ac_status) && test -s "$ac_outfile"; then
21241      # The compiler can only warn and ignore the option if not recognized
21242      # So say no if there are warnings
21243      if test ! -s conftest.err; then
21244        lt_cv_prog_compiler_rtti_exceptions=yes
21245      fi
21246    fi
21247    $rm conftest*
21248
21249 fi
21250 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21251 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21252
21253 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21254     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21255 else
21256     :
21257 fi
21258
21259 fi
21260
21261 lt_prog_compiler_wl_GCJ=
21262 lt_prog_compiler_pic_GCJ=
21263 lt_prog_compiler_static_GCJ=
21264
21265 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21266 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21267
21268   if test "$GCC" = yes; then
21269     lt_prog_compiler_wl_GCJ='-Wl,'
21270     lt_prog_compiler_static_GCJ='-static'
21271
21272     case $host_os in
21273       aix*)
21274       # All AIX code is PIC.
21275       if test "$host_cpu" = ia64; then
21276         # AIX 5 now supports IA64 processor
21277         lt_prog_compiler_static_GCJ='-Bstatic'
21278       fi
21279       ;;
21280
21281     amigaos*)
21282       # FIXME: we need at least 68020 code to build shared libraries, but
21283       # adding the `-m68020' flag to GCC prevents building anything better,
21284       # like `-m68040'.
21285       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21286       ;;
21287
21288     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21289       # PIC is the default for these OSes.
21290       ;;
21291
21292     mingw* | pw32* | os2*)
21293       # This hack is so that the source file can tell whether it is being
21294       # built for inclusion in a dll (and should export symbols for example).
21295       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21296       ;;
21297
21298     darwin* | rhapsody*)
21299       # PIC is the default on this platform
21300       # Common symbols not allowed in MH_DYLIB files
21301       lt_prog_compiler_pic_GCJ='-fno-common'
21302       ;;
21303
21304     msdosdjgpp*)
21305       # Just because we use GCC doesn't mean we suddenly get shared libraries
21306       # on systems that don't support them.
21307       lt_prog_compiler_can_build_shared_GCJ=no
21308       enable_shared=no
21309       ;;
21310
21311     sysv4*MP*)
21312       if test -d /usr/nec; then
21313         lt_prog_compiler_pic_GCJ=-Kconform_pic
21314       fi
21315       ;;
21316
21317     hpux*)
21318       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21319       # not for PA HP-UX.
21320       case "$host_cpu" in
21321       hppa*64*|ia64*)
21322         # +Z the default
21323         ;;
21324       *)
21325         lt_prog_compiler_pic_GCJ='-fPIC'
21326         ;;
21327       esac
21328       ;;
21329
21330     *)
21331       lt_prog_compiler_pic_GCJ='-fPIC'
21332       ;;
21333     esac
21334   else
21335     # PORTME Check for flag to pass linker flags through the system compiler.
21336     case $host_os in
21337     aix*)
21338       lt_prog_compiler_wl_GCJ='-Wl,'
21339       if test "$host_cpu" = ia64; then
21340         # AIX 5 now supports IA64 processor
21341         lt_prog_compiler_static_GCJ='-Bstatic'
21342       else
21343         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21344       fi
21345       ;;
21346       darwin*)
21347         # PIC is the default on this platform
21348         # Common symbols not allowed in MH_DYLIB files
21349        case "$cc_basename" in
21350          xlc*)
21351          lt_prog_compiler_pic_GCJ='-qnocommon'
21352          lt_prog_compiler_wl_GCJ='-Wl,'
21353          ;;
21354        esac
21355        ;;
21356
21357     mingw* | pw32* | os2*)
21358       # This hack is so that the source file can tell whether it is being
21359       # built for inclusion in a dll (and should export symbols for example).
21360       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21361       ;;
21362
21363     hpux9* | hpux10* | hpux11*)
21364       lt_prog_compiler_wl_GCJ='-Wl,'
21365       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21366       # not for PA HP-UX.
21367       case "$host_cpu" in
21368       hppa*64*|ia64*)
21369         # +Z the default
21370         ;;
21371       *)
21372         lt_prog_compiler_pic_GCJ='+Z'
21373         ;;
21374       esac
21375       # Is there a better lt_prog_compiler_static that works with the bundled CC?
21376       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21377       ;;
21378
21379     irix5* | irix6* | nonstopux*)
21380       lt_prog_compiler_wl_GCJ='-Wl,'
21381       # PIC (with -KPIC) is the default.
21382       lt_prog_compiler_static_GCJ='-non_shared'
21383       ;;
21384
21385     newsos6)
21386       lt_prog_compiler_pic_GCJ='-KPIC'
21387       lt_prog_compiler_static_GCJ='-Bstatic'
21388       ;;
21389
21390     linux*)
21391       case $CC in
21392       icc* | ecc*)
21393         lt_prog_compiler_wl_GCJ='-Wl,'
21394         lt_prog_compiler_pic_GCJ='-KPIC'
21395         lt_prog_compiler_static_GCJ='-static'
21396         ;;
21397       ccc*)
21398         lt_prog_compiler_wl_GCJ='-Wl,'
21399         # All Alpha code is PIC.
21400         lt_prog_compiler_static_GCJ='-non_shared'
21401         ;;
21402       esac
21403       ;;
21404
21405     osf3* | osf4* | osf5*)
21406       lt_prog_compiler_wl_GCJ='-Wl,'
21407       # All OSF/1 code is PIC.
21408       lt_prog_compiler_static_GCJ='-non_shared'
21409       ;;
21410
21411     sco3.2v5*)
21412       lt_prog_compiler_pic_GCJ='-Kpic'
21413       lt_prog_compiler_static_GCJ='-dn'
21414       ;;
21415
21416     solaris*)
21417       lt_prog_compiler_wl_GCJ='-Wl,'
21418       lt_prog_compiler_pic_GCJ='-KPIC'
21419       lt_prog_compiler_static_GCJ='-Bstatic'
21420       ;;
21421
21422     sunos4*)
21423       lt_prog_compiler_wl_GCJ='-Qoption ld '
21424       lt_prog_compiler_pic_GCJ='-PIC'
21425       lt_prog_compiler_static_GCJ='-Bstatic'
21426       ;;
21427
21428     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21429       lt_prog_compiler_wl_GCJ='-Wl,'
21430       lt_prog_compiler_pic_GCJ='-KPIC'
21431       lt_prog_compiler_static_GCJ='-Bstatic'
21432       ;;
21433
21434     sysv4*MP*)
21435       if test -d /usr/nec ;then
21436         lt_prog_compiler_pic_GCJ='-Kconform_pic'
21437         lt_prog_compiler_static_GCJ='-Bstatic'
21438       fi
21439       ;;
21440
21441     uts4*)
21442       lt_prog_compiler_pic_GCJ='-pic'
21443       lt_prog_compiler_static_GCJ='-Bstatic'
21444       ;;
21445
21446     *)
21447       lt_prog_compiler_can_build_shared_GCJ=no
21448       ;;
21449     esac
21450   fi
21451
21452 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21453 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21454
21455 #
21456 # Check to make sure the PIC flag actually works.
21457 #
21458 if test -n "$lt_prog_compiler_pic_GCJ"; then
21459
21460 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21461 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21462 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21463   echo $ECHO_N "(cached) $ECHO_C" >&6
21464 else
21465   lt_prog_compiler_pic_works_GCJ=no
21466   ac_outfile=conftest.$ac_objext
21467    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21468    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21469    # Insert the option either (1) after the last *FLAGS variable, or
21470    # (2) before a word containing "conftest.", or (3) at the end.
21471    # Note that $ac_compile itself does not contain backslashes and begins
21472    # with a dollar sign (not a hyphen), so the echo should work correctly.
21473    # The option is referenced via a variable to avoid confusing sed.
21474    lt_compile=`echo "$ac_compile" | $SED \
21475    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21476    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21477    -e 's:$: $lt_compiler_flag:'`
21478    (eval echo "\"\$as_me:21478: $lt_compile\"" >&5)
21479    (eval "$lt_compile" 2>conftest.err)
21480    ac_status=$?
21481    cat conftest.err >&5
21482    echo "$as_me:21482: \$? = $ac_status" >&5
21483    if (exit $ac_status) && test -s "$ac_outfile"; then
21484      # The compiler can only warn and ignore the option if not recognized
21485      # So say no if there are warnings
21486      if test ! -s conftest.err; then
21487        lt_prog_compiler_pic_works_GCJ=yes
21488      fi
21489    fi
21490    $rm conftest*
21491
21492 fi
21493 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21494 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21495
21496 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21497     case $lt_prog_compiler_pic_GCJ in
21498      "" | " "*) ;;
21499      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21500      esac
21501 else
21502     lt_prog_compiler_pic_GCJ=
21503      lt_prog_compiler_can_build_shared_GCJ=no
21504 fi
21505
21506 fi
21507 case "$host_os" in
21508   # For platforms which do not support PIC, -DPIC is meaningless:
21509   *djgpp*)
21510     lt_prog_compiler_pic_GCJ=
21511     ;;
21512   *)
21513     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21514     ;;
21515 esac
21516
21517 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21518 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21519 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21520   echo $ECHO_N "(cached) $ECHO_C" >&6
21521 else
21522   lt_cv_prog_compiler_c_o_GCJ=no
21523    $rm -r conftest 2>/dev/null
21524    mkdir conftest
21525    cd conftest
21526    mkdir out
21527    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21528
21529    lt_compiler_flag="-o out/conftest2.$ac_objext"
21530    # Insert the option either (1) after the last *FLAGS variable, or
21531    # (2) before a word containing "conftest.", or (3) at the end.
21532    # Note that $ac_compile itself does not contain backslashes and begins
21533    # with a dollar sign (not a hyphen), so the echo should work correctly.
21534    lt_compile=`echo "$ac_compile" | $SED \
21535    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21536    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21537    -e 's:$: $lt_compiler_flag:'`
21538    (eval echo "\"\$as_me:21538: $lt_compile\"" >&5)
21539    (eval "$lt_compile" 2>out/conftest.err)
21540    ac_status=$?
21541    cat out/conftest.err >&5
21542    echo "$as_me:21542: \$? = $ac_status" >&5
21543    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21544    then
21545      # The compiler can only warn and ignore the option if not recognized
21546      # So say no if there are warnings
21547      if test ! -s out/conftest.err; then
21548        lt_cv_prog_compiler_c_o_GCJ=yes
21549      fi
21550    fi
21551    chmod u+w .
21552    $rm conftest*
21553    # SGI C++ compiler will create directory out/ii_files/ for
21554    # template instantiation
21555    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21556    $rm out/* && rmdir out
21557    cd ..
21558    rmdir conftest
21559    $rm conftest*
21560
21561 fi
21562 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21563 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21564
21565
21566 hard_links="nottested"
21567 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21568   # do not overwrite the value of need_locks provided by the user
21569   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21570 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21571   hard_links=yes
21572   $rm conftest*
21573   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21574   touch conftest.a
21575   ln conftest.a conftest.b 2>&5 || hard_links=no
21576   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21577   echo "$as_me:$LINENO: result: $hard_links" >&5
21578 echo "${ECHO_T}$hard_links" >&6
21579   if test "$hard_links" = no; then
21580     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21581 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21582     need_locks=warn
21583   fi
21584 else
21585   need_locks=no
21586 fi
21587
21588 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21589 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21590
21591   runpath_var=
21592   allow_undefined_flag_GCJ=
21593   enable_shared_with_static_runtimes_GCJ=no
21594   archive_cmds_GCJ=
21595   archive_expsym_cmds_GCJ=
21596   old_archive_From_new_cmds_GCJ=
21597   old_archive_from_expsyms_cmds_GCJ=
21598   export_dynamic_flag_spec_GCJ=
21599   whole_archive_flag_spec_GCJ=
21600   thread_safe_flag_spec_GCJ=
21601   hardcode_libdir_flag_spec_GCJ=
21602   hardcode_libdir_flag_spec_ld_GCJ=
21603   hardcode_libdir_separator_GCJ=
21604   hardcode_direct_GCJ=no
21605   hardcode_minus_L_GCJ=no
21606   hardcode_shlibpath_var_GCJ=unsupported
21607   link_all_deplibs_GCJ=unknown
21608   hardcode_automatic_GCJ=no
21609   module_cmds_GCJ=
21610   module_expsym_cmds_GCJ=
21611   always_export_symbols_GCJ=no
21612   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21613   # include_expsyms should be a list of space-separated symbols to be *always*
21614   # included in the symbol list
21615   include_expsyms_GCJ=
21616   # exclude_expsyms can be an extended regexp of symbols to exclude
21617   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21618   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21619   # as well as any symbol that contains `d'.
21620   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21621   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21622   # platforms (ab)use it in PIC code, but their linkers get confused if
21623   # the symbol is explicitly referenced.  Since portable code cannot
21624   # rely on this symbol name, it's probably fine to never include it in
21625   # preloaded symbol tables.
21626   extract_expsyms_cmds=
21627
21628   case $host_os in
21629   cygwin* | mingw* | pw32*)
21630     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21631     # When not using gcc, we currently assume that we are using
21632     # Microsoft Visual C++.
21633     if test "$GCC" != yes; then
21634       with_gnu_ld=no
21635     fi
21636     ;;
21637   openbsd*)
21638     with_gnu_ld=no
21639     ;;
21640   esac
21641
21642   ld_shlibs_GCJ=yes
21643   if test "$with_gnu_ld" = yes; then
21644     # If archive_cmds runs LD, not CC, wlarc should be empty
21645     wlarc='${wl}'
21646
21647     # See if GNU ld supports shared libraries.
21648     case $host_os in
21649     aix3* | aix4* | aix5*)
21650       # On AIX/PPC, the GNU linker is very broken
21651       if test "$host_cpu" != ia64; then
21652         ld_shlibs_GCJ=no
21653         cat <<EOF 1>&2
21654
21655 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21656 *** to be unable to reliably create shared libraries on AIX.
21657 *** Therefore, libtool is disabling shared libraries support.  If you
21658 *** really care for shared libraries, you may want to modify your PATH
21659 *** so that a non-GNU linker is found, and then restart.
21660
21661 EOF
21662       fi
21663       ;;
21664
21665     amigaos*)
21666       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)'
21667       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21668       hardcode_minus_L_GCJ=yes
21669
21670       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21671       # that the semantics of dynamic libraries on AmigaOS, at least up
21672       # to version 4, is to share data among multiple programs linked
21673       # with the same dynamic library.  Since this doesn't match the
21674       # behavior of shared libraries on other platforms, we can't use
21675       # them.
21676       ld_shlibs_GCJ=no
21677       ;;
21678
21679     beos*)
21680       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21681         allow_undefined_flag_GCJ=unsupported
21682         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21683         # support --undefined.  This deserves some investigation.  FIXME
21684         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21685       else
21686         ld_shlibs_GCJ=no
21687       fi
21688       ;;
21689
21690     cygwin* | mingw* | pw32*)
21691       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21692       # as there is no search path for DLLs.
21693       hardcode_libdir_flag_spec_GCJ='-L$libdir'
21694       allow_undefined_flag_GCJ=unsupported
21695       always_export_symbols_GCJ=no
21696       enable_shared_with_static_runtimes_GCJ=yes
21697       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21698
21699       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21700         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21701         # If the export-symbols file already is a .def file (1st line
21702         # is EXPORTS), use it as is; otherwise, prepend...
21703         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21704           cp $export_symbols $output_objdir/$soname.def;
21705         else
21706           echo EXPORTS > $output_objdir/$soname.def;
21707           cat $export_symbols >> $output_objdir/$soname.def;
21708         fi~
21709         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
21710       else
21711         ld_shlibs=no
21712       fi
21713       ;;
21714
21715     netbsd*)
21716       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21717         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21718         wlarc=
21719       else
21720         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21721         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21722       fi
21723       ;;
21724
21725     solaris* | sysv5*)
21726       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21727         ld_shlibs_GCJ=no
21728         cat <<EOF 1>&2
21729
21730 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21731 *** create shared libraries on Solaris systems.  Therefore, libtool
21732 *** is disabling shared libraries support.  We urge you to upgrade GNU
21733 *** binutils to release 2.9.1 or newer.  Another option is to modify
21734 *** your PATH or compiler configuration so that the native linker is
21735 *** used, and then restart.
21736
21737 EOF
21738       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21739         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21740         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21741       else
21742         ld_shlibs_GCJ=no
21743       fi
21744       ;;
21745
21746     sunos4*)
21747       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21748       wlarc=
21749       hardcode_direct_GCJ=yes
21750       hardcode_shlibpath_var_GCJ=no
21751       ;;
21752
21753   linux*)
21754     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21755         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21756         archive_cmds_GCJ="$tmp_archive_cmds"
21757       supports_anon_versioning=no
21758       case `$LD -v 2>/dev/null` in
21759         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21760         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21761         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21762         *\ 2.11.*) ;; # other 2.11 versions
21763         *) supports_anon_versioning=yes ;;
21764       esac
21765       if test $supports_anon_versioning = yes; then
21766         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21767 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21768 $echo "local: *; };" >> $output_objdir/$libname.ver~
21769         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21770       else
21771         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21772       fi
21773     else
21774       ld_shlibs_GCJ=no
21775     fi
21776     ;;
21777
21778     *)
21779       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21780         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21781         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21782       else
21783         ld_shlibs_GCJ=no
21784       fi
21785       ;;
21786     esac
21787
21788     if test "$ld_shlibs_GCJ" = yes; then
21789       runpath_var=LD_RUN_PATH
21790       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21791       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21792       # ancient GNU ld didn't support --whole-archive et. al.
21793       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21794         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21795       else
21796         whole_archive_flag_spec_GCJ=
21797       fi
21798     fi
21799   else
21800     # PORTME fill in a description of your system's linker (not GNU ld)
21801     case $host_os in
21802     aix3*)
21803       allow_undefined_flag_GCJ=unsupported
21804       always_export_symbols_GCJ=yes
21805       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'
21806       # Note: this linker hardcodes the directories in LIBPATH if there
21807       # are no directories specified by -L.
21808       hardcode_minus_L_GCJ=yes
21809       if test "$GCC" = yes && test -z "$link_static_flag"; then
21810         # Neither direct hardcoding nor static linking is supported with a
21811         # broken collect2.
21812         hardcode_direct_GCJ=unsupported
21813       fi
21814       ;;
21815
21816     aix4* | aix5*)
21817       if test "$host_cpu" = ia64; then
21818         # On IA64, the linker does run time linking by default, so we don't
21819         # have to do anything special.
21820         aix_use_runtimelinking=no
21821         exp_sym_flag='-Bexport'
21822         no_entry_flag=""
21823       else
21824         # If we're using GNU nm, then we don't want the "-C" option.
21825         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21826         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21827           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'
21828         else
21829           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'
21830         fi
21831         aix_use_runtimelinking=no
21832
21833         # Test if we are trying to use run time linking or normal
21834         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21835         # need to do runtime linking.
21836         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21837           for ld_flag in $LDFLAGS; do
21838           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21839             aix_use_runtimelinking=yes
21840             break
21841           fi
21842           done
21843         esac
21844
21845         exp_sym_flag='-bexport'
21846         no_entry_flag='-bnoentry'
21847       fi
21848
21849       # When large executables or shared objects are built, AIX ld can
21850       # have problems creating the table of contents.  If linking a library
21851       # or program results in "error TOC overflow" add -mminimal-toc to
21852       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21853       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21854
21855       archive_cmds_GCJ=''
21856       hardcode_direct_GCJ=yes
21857       hardcode_libdir_separator_GCJ=':'
21858       link_all_deplibs_GCJ=yes
21859
21860       if test "$GCC" = yes; then
21861         case $host_os in aix4.012|aix4.012.*)
21862         # We only want to do this on AIX 4.2 and lower, the check
21863         # below for broken collect2 doesn't work under 4.3+
21864           collect2name=`${CC} -print-prog-name=collect2`
21865           if test -f "$collect2name" && \
21866            strings "$collect2name" | grep resolve_lib_name >/dev/null
21867           then
21868           # We have reworked collect2
21869           hardcode_direct_GCJ=yes
21870           else
21871           # We have old collect2
21872           hardcode_direct_GCJ=unsupported
21873           # It fails to find uninstalled libraries when the uninstalled
21874           # path is not listed in the libpath.  Setting hardcode_minus_L
21875           # to unsupported forces relinking
21876           hardcode_minus_L_GCJ=yes
21877           hardcode_libdir_flag_spec_GCJ='-L$libdir'
21878           hardcode_libdir_separator_GCJ=
21879           fi
21880         esac
21881         shared_flag='-shared'
21882       else
21883         # not using gcc
21884         if test "$host_cpu" = ia64; then
21885         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21886         # chokes on -Wl,-G. The following line is correct:
21887           shared_flag='-G'
21888         else
21889         if test "$aix_use_runtimelinking" = yes; then
21890             shared_flag='${wl}-G'
21891           else
21892             shared_flag='${wl}-bM:SRE'
21893         fi
21894         fi
21895       fi
21896
21897       # It seems that -bexpall does not export symbols beginning with
21898       # underscore (_), so it is better to generate a list of symbols to export.
21899       always_export_symbols_GCJ=yes
21900       if test "$aix_use_runtimelinking" = yes; then
21901         # Warning - without using the other runtime loading flags (-brtl),
21902         # -berok will link without error, but may produce a broken library.
21903         allow_undefined_flag_GCJ='-berok'
21904        # Determine the default libpath from the value encoded in an empty executable.
21905        cat >conftest.$ac_ext <<_ACEOF
21906 /* confdefs.h.  */
21907 _ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h.  */
21911
21912 int
21913 main ()
21914 {
21915
21916   ;
21917   return 0;
21918 }
21919 _ACEOF
21920 rm -f conftest.$ac_objext conftest$ac_exeext
21921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21922   (eval $ac_link) 2>conftest.er1
21923   ac_status=$?
21924   grep -v '^ *+' conftest.er1 >conftest.err
21925   rm -f conftest.er1
21926   cat conftest.err >&5
21927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928   (exit $ac_status); } &&
21929          { ac_try='test -z "$ac_c_werror_flag"
21930                          || test ! -s conftest.err'
21931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21932   (eval $ac_try) 2>&5
21933   ac_status=$?
21934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935   (exit $ac_status); }; } &&
21936          { ac_try='test -s conftest$ac_exeext'
21937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21938   (eval $ac_try) 2>&5
21939   ac_status=$?
21940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941   (exit $ac_status); }; }; then
21942
21943 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21944 }'`
21945 # Check for a 64-bit object if we didn't find anything.
21946 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; }
21947 }'`; fi
21948 else
21949   echo "$as_me: failed program was:" >&5
21950 sed 's/^/| /' conftest.$ac_ext >&5
21951
21952 fi
21953 rm -f conftest.err conftest.$ac_objext \
21954       conftest$ac_exeext conftest.$ac_ext
21955 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21956
21957        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21958         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"
21959        else
21960         if test "$host_cpu" = ia64; then
21961           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21962           allow_undefined_flag_GCJ="-z nodefs"
21963           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"
21964         else
21965          # Determine the default libpath from the value encoded in an empty executable.
21966          cat >conftest.$ac_ext <<_ACEOF
21967 /* confdefs.h.  */
21968 _ACEOF
21969 cat confdefs.h >>conftest.$ac_ext
21970 cat >>conftest.$ac_ext <<_ACEOF
21971 /* end confdefs.h.  */
21972
21973 int
21974 main ()
21975 {
21976
21977   ;
21978   return 0;
21979 }
21980 _ACEOF
21981 rm -f conftest.$ac_objext conftest$ac_exeext
21982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21983   (eval $ac_link) 2>conftest.er1
21984   ac_status=$?
21985   grep -v '^ *+' conftest.er1 >conftest.err
21986   rm -f conftest.er1
21987   cat conftest.err >&5
21988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989   (exit $ac_status); } &&
21990          { ac_try='test -z "$ac_c_werror_flag"
21991                          || test ! -s conftest.err'
21992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21993   (eval $ac_try) 2>&5
21994   ac_status=$?
21995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996   (exit $ac_status); }; } &&
21997          { ac_try='test -s conftest$ac_exeext'
21998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21999   (eval $ac_try) 2>&5
22000   ac_status=$?
22001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002   (exit $ac_status); }; }; then
22003
22004 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
22005 }'`
22006 # Check for a 64-bit object if we didn't find anything.
22007 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; }
22008 }'`; fi
22009 else
22010   echo "$as_me: failed program was:" >&5
22011 sed 's/^/| /' conftest.$ac_ext >&5
22012
22013 fi
22014 rm -f conftest.err conftest.$ac_objext \
22015       conftest$ac_exeext conftest.$ac_ext
22016 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22017
22018          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
22019           # Warning - without using the other run time loading flags,
22020           # -berok will link without error, but may produce a broken library.
22021           no_undefined_flag_GCJ=' ${wl}-bernotok'
22022           allow_undefined_flag_GCJ=' ${wl}-berok'
22023           # -bexpall does not export symbols beginning with underscore (_)
22024           always_export_symbols_GCJ=yes
22025           # Exported symbols can be pulled into shared objects from archives
22026           whole_archive_flag_spec_GCJ=' '
22027           archive_cmds_need_lc_GCJ=yes
22028           # This is similar to how AIX traditionally builds it's shared libraries.
22029           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'
22030         fi
22031       fi
22032       ;;
22033
22034     amigaos*)
22035       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)'
22036       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22037       hardcode_minus_L_GCJ=yes
22038       # see comment about different semantics on the GNU ld section
22039       ld_shlibs_GCJ=no
22040       ;;
22041
22042     bsdi[45]*)
22043       export_dynamic_flag_spec_GCJ=-rdynamic
22044       ;;
22045
22046     cygwin* | mingw* | pw32*)
22047       # When not using gcc, we currently assume that we are using
22048       # Microsoft Visual C++.
22049       # hardcode_libdir_flag_spec is actually meaningless, as there is
22050       # no search path for DLLs.
22051       hardcode_libdir_flag_spec_GCJ=' '
22052       allow_undefined_flag_GCJ=unsupported
22053       # Tell ltmain to make .lib files, not .a files.
22054       libext=lib
22055       # Tell ltmain to make .dll files, not .so files.
22056       shrext_cmds=".dll"
22057       # FIXME: Setting linknames here is a bad hack.
22058       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22059       # The linker will automatically build a .lib file if we build a DLL.
22060       old_archive_From_new_cmds_GCJ='true'
22061       # FIXME: Should let the user specify the lib program.
22062       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22063       fix_srcfile_path='`cygpath -w "$srcfile"`'
22064       enable_shared_with_static_runtimes_GCJ=yes
22065       ;;
22066
22067     darwin* | rhapsody*)
22068       case "$host_os" in
22069         rhapsody* | darwin1.[012])
22070          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22071          ;;
22072        *) # Darwin 1.3 on
22073          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22074            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22075          else
22076            case ${MACOSX_DEPLOYMENT_TARGET} in
22077              10.[012])
22078                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22079                ;;
22080              10.*)
22081                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22082                ;;
22083            esac
22084          fi
22085          ;;
22086       esac
22087       archive_cmds_need_lc_GCJ=no
22088       hardcode_direct_GCJ=no
22089       hardcode_automatic_GCJ=yes
22090       hardcode_shlibpath_var_GCJ=unsupported
22091       whole_archive_flag_spec_GCJ=''
22092       link_all_deplibs_GCJ=yes
22093     if test "$GCC" = yes ; then
22094         output_verbose_link_cmd='echo'
22095         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22096       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22097       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22098       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}'
22099       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}'
22100     else
22101       case "$cc_basename" in
22102         xlc*)
22103          output_verbose_link_cmd='echo'
22104          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22105          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22106           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22107          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}'
22108           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}'
22109           ;;
22110        *)
22111          ld_shlibs_GCJ=no
22112           ;;
22113       esac
22114     fi
22115       ;;
22116
22117     dgux*)
22118       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22119       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22120       hardcode_shlibpath_var_GCJ=no
22121       ;;
22122
22123     freebsd1*)
22124       ld_shlibs_GCJ=no
22125       ;;
22126
22127     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22128     # support.  Future versions do this automatically, but an explicit c++rt0.o
22129     # does not break anything, and helps significantly (at the cost of a little
22130     # extra space).
22131     freebsd2.2*)
22132       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22133       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22134       hardcode_direct_GCJ=yes
22135       hardcode_shlibpath_var_GCJ=no
22136       ;;
22137
22138     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22139     freebsd2*)
22140       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22141       hardcode_direct_GCJ=yes
22142       hardcode_minus_L_GCJ=yes
22143       hardcode_shlibpath_var_GCJ=no
22144       ;;
22145
22146     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22147     freebsd* | kfreebsd*-gnu)
22148       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22149       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22150       hardcode_direct_GCJ=yes
22151       hardcode_shlibpath_var_GCJ=no
22152       ;;
22153
22154     hpux9*)
22155       if test "$GCC" = yes; then
22156         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'
22157       else
22158         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'
22159       fi
22160       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22161       hardcode_libdir_separator_GCJ=:
22162       hardcode_direct_GCJ=yes
22163
22164       # hardcode_minus_L: Not really in the search PATH,
22165       # but as the default location of the library.
22166       hardcode_minus_L_GCJ=yes
22167       export_dynamic_flag_spec_GCJ='${wl}-E'
22168       ;;
22169
22170     hpux10* | hpux11*)
22171       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22172         case "$host_cpu" in
22173         hppa*64*|ia64*)
22174           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22175           ;;
22176         *)
22177           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22178           ;;
22179         esac
22180       else
22181         case "$host_cpu" in
22182         hppa*64*|ia64*)
22183           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22184           ;;
22185         *)
22186           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22187           ;;
22188         esac
22189       fi
22190       if test "$with_gnu_ld" = no; then
22191         case "$host_cpu" in
22192         hppa*64*)
22193           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22194           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22195           hardcode_libdir_separator_GCJ=:
22196           hardcode_direct_GCJ=no
22197           hardcode_shlibpath_var_GCJ=no
22198           ;;
22199         ia64*)
22200           hardcode_libdir_flag_spec_GCJ='-L$libdir'
22201           hardcode_direct_GCJ=no
22202           hardcode_shlibpath_var_GCJ=no
22203
22204           # hardcode_minus_L: Not really in the search PATH,
22205           # but as the default location of the library.
22206           hardcode_minus_L_GCJ=yes
22207           ;;
22208         *)
22209           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22210           hardcode_libdir_separator_GCJ=:
22211           hardcode_direct_GCJ=yes
22212           export_dynamic_flag_spec_GCJ='${wl}-E'
22213
22214           # hardcode_minus_L: Not really in the search PATH,
22215           # but as the default location of the library.
22216           hardcode_minus_L_GCJ=yes
22217           ;;
22218         esac
22219       fi
22220       ;;
22221
22222     irix5* | irix6* | nonstopux*)
22223       if test "$GCC" = yes; then
22224         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'
22225       else
22226         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'
22227         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22228       fi
22229       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22230       hardcode_libdir_separator_GCJ=:
22231       link_all_deplibs_GCJ=yes
22232       ;;
22233
22234     netbsd*)
22235       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22236         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22237       else
22238         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22239       fi
22240       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22241       hardcode_direct_GCJ=yes
22242       hardcode_shlibpath_var_GCJ=no
22243       ;;
22244
22245     newsos6)
22246       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22247       hardcode_direct_GCJ=yes
22248       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22249       hardcode_libdir_separator_GCJ=:
22250       hardcode_shlibpath_var_GCJ=no
22251       ;;
22252
22253     openbsd*)
22254       hardcode_direct_GCJ=yes
22255       hardcode_shlibpath_var_GCJ=no
22256       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22257         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22258         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22259         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22260         export_dynamic_flag_spec_GCJ='${wl}-E'
22261       else
22262        case $host_os in
22263          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22264            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22265            hardcode_libdir_flag_spec_GCJ='-R$libdir'
22266            ;;
22267          *)
22268            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22269            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22270            ;;
22271        esac
22272       fi
22273       ;;
22274
22275     os2*)
22276       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22277       hardcode_minus_L_GCJ=yes
22278       allow_undefined_flag_GCJ=unsupported
22279       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'
22280       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22281       ;;
22282
22283     osf3*)
22284       if test "$GCC" = yes; then
22285         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22286         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'
22287       else
22288         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22289         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'
22290       fi
22291       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22292       hardcode_libdir_separator_GCJ=:
22293       ;;
22294
22295     osf4* | osf5*)      # as osf3* with the addition of -msym flag
22296       if test "$GCC" = yes; then
22297         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22298         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'
22299         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22300       else
22301         allow_undefined_flag_GCJ=' -expect_unresolved \*'
22302         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'
22303         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~
22304         $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'
22305
22306         # Both c and cxx compiler support -rpath directly
22307         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22308       fi
22309       hardcode_libdir_separator_GCJ=:
22310       ;;
22311
22312     sco3.2v5*)
22313       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22314       hardcode_shlibpath_var_GCJ=no
22315       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22316       runpath_var=LD_RUN_PATH
22317       hardcode_runpath_var=yes
22318       ;;
22319
22320     solaris*)
22321       no_undefined_flag_GCJ=' -z text'
22322       if test "$GCC" = yes; then
22323         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22324         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22325           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22326       else
22327         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22328         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22329         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22330       fi
22331       hardcode_libdir_flag_spec_GCJ='-R$libdir'
22332       hardcode_shlibpath_var_GCJ=no
22333       case $host_os in
22334       solaris2.[0-5] | solaris2.[0-5].*) ;;
22335       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22336         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22337       esac
22338       link_all_deplibs_GCJ=yes
22339       ;;
22340
22341     sunos4*)
22342       if test "x$host_vendor" = xsequent; then
22343         # Use $CC to link under sequent, because it throws in some extra .o
22344         # files that make .init and .fini sections work.
22345         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22346       else
22347         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22348       fi
22349       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22350       hardcode_direct_GCJ=yes
22351       hardcode_minus_L_GCJ=yes
22352       hardcode_shlibpath_var_GCJ=no
22353       ;;
22354
22355     sysv4)
22356       case $host_vendor in
22357         sni)
22358           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22359           hardcode_direct_GCJ=yes # is this really true???
22360         ;;
22361         siemens)
22362           ## LD is ld it makes a PLAMLIB
22363           ## CC just makes a GrossModule.
22364           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22365           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22366           hardcode_direct_GCJ=no
22367         ;;
22368         motorola)
22369           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22370           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22371         ;;
22372       esac
22373       runpath_var='LD_RUN_PATH'
22374       hardcode_shlibpath_var_GCJ=no
22375       ;;
22376
22377     sysv4.3*)
22378       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22379       hardcode_shlibpath_var_GCJ=no
22380       export_dynamic_flag_spec_GCJ='-Bexport'
22381       ;;
22382
22383     sysv4*MP*)
22384       if test -d /usr/nec; then
22385         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22386         hardcode_shlibpath_var_GCJ=no
22387         runpath_var=LD_RUN_PATH
22388         hardcode_runpath_var=yes
22389         ld_shlibs_GCJ=yes
22390       fi
22391       ;;
22392
22393     sysv4.2uw2*)
22394       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22395       hardcode_direct_GCJ=yes
22396       hardcode_minus_L_GCJ=no
22397       hardcode_shlibpath_var_GCJ=no
22398       hardcode_runpath_var=yes
22399       runpath_var=LD_RUN_PATH
22400       ;;
22401
22402    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
22403       no_undefined_flag_GCJ='${wl}-z ${wl}text'
22404       if test "$GCC" = yes; then
22405         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22406       else
22407         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22408       fi
22409       runpath_var='LD_RUN_PATH'
22410       hardcode_shlibpath_var_GCJ=no
22411       ;;
22412
22413     sysv5*)
22414       no_undefined_flag_GCJ=' -z text'
22415       # $CC -shared without GNU ld will not create a library from C++
22416       # object files and a static libstdc++, better avoid it by now
22417       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22418       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22419                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22420       hardcode_libdir_flag_spec_GCJ=
22421       hardcode_shlibpath_var_GCJ=no
22422       runpath_var='LD_RUN_PATH'
22423       ;;
22424
22425     uts4*)
22426       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22427       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22428       hardcode_shlibpath_var_GCJ=no
22429       ;;
22430
22431     *)
22432       ld_shlibs_GCJ=no
22433       ;;
22434     esac
22435   fi
22436
22437 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22438 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22439 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22440
22441 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22442 if test "$GCC" = yes; then
22443   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22444 fi
22445
22446 #
22447 # Do we need to explicitly link libc?
22448 #
22449 case "x$archive_cmds_need_lc_GCJ" in
22450 x|xyes)
22451   # Assume -lc should be added
22452   archive_cmds_need_lc_GCJ=yes
22453
22454   if test "$enable_shared" = yes && test "$GCC" = yes; then
22455     case $archive_cmds_GCJ in
22456     *'~'*)
22457       # FIXME: we may have to deal with multi-command sequences.
22458       ;;
22459     '$CC '*)
22460       # Test whether the compiler implicitly links with -lc since on some
22461       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22462       # to ld, don't add -lc before -lgcc.
22463       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22464 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22465       $rm conftest*
22466       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22467
22468       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22469   (eval $ac_compile) 2>&5
22470   ac_status=$?
22471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472   (exit $ac_status); } 2>conftest.err; then
22473         soname=conftest
22474         lib=conftest
22475         libobjs=conftest.$ac_objext
22476         deplibs=
22477         wl=$lt_prog_compiler_wl_GCJ
22478         compiler_flags=-v
22479         linker_flags=-v
22480         verstring=
22481         output_objdir=.
22482         libname=conftest
22483         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22484         allow_undefined_flag_GCJ=
22485         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22486   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22487   ac_status=$?
22488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489   (exit $ac_status); }
22490         then
22491           archive_cmds_need_lc_GCJ=no
22492         else
22493           archive_cmds_need_lc_GCJ=yes
22494         fi
22495         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22496       else
22497         cat conftest.err 1>&5
22498       fi
22499       $rm conftest*
22500       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22501 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22502       ;;
22503     esac
22504   fi
22505   ;;
22506 esac
22507
22508 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22509 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22510 library_names_spec=
22511 libname_spec='lib$name'
22512 soname_spec=
22513 shrext_cmds=".so"
22514 postinstall_cmds=
22515 postuninstall_cmds=
22516 finish_cmds=
22517 finish_eval=
22518 shlibpath_var=
22519 shlibpath_overrides_runpath=unknown
22520 version_type=none
22521 dynamic_linker="$host_os ld.so"
22522 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22523 if test "$GCC" = yes; then
22524   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22525   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22526     # if the path contains ";" then we assume it to be the separator
22527     # otherwise default to the standard path separator (i.e. ":") - it is
22528     # assumed that no part of a normal pathname contains ";" but that should
22529     # okay in the real world where ";" in dirpaths is itself problematic.
22530     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22531   else
22532     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22533   fi
22534 else
22535   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22536 fi
22537 need_lib_prefix=unknown
22538 hardcode_into_libs=no
22539
22540 # when you set need_version to no, make sure it does not cause -set_version
22541 # flags to be left without arguments
22542 need_version=unknown
22543
22544 case $host_os in
22545 aix3*)
22546   version_type=linux
22547   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22548   shlibpath_var=LIBPATH
22549
22550   # AIX 3 has no versioning support, so we append a major version to the name.
22551   soname_spec='${libname}${release}${shared_ext}$major'
22552   ;;
22553
22554 aix4* | aix5*)
22555   version_type=linux
22556   need_lib_prefix=no
22557   need_version=no
22558   hardcode_into_libs=yes
22559   if test "$host_cpu" = ia64; then
22560     # AIX 5 supports IA64
22561     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22562     shlibpath_var=LD_LIBRARY_PATH
22563   else
22564     # With GCC up to 2.95.x, collect2 would create an import file
22565     # for dependence libraries.  The import file would start with
22566     # the line `#! .'.  This would cause the generated library to
22567     # depend on `.', always an invalid library.  This was fixed in
22568     # development snapshots of GCC prior to 3.0.
22569     case $host_os in
22570       aix4 | aix4.[01] | aix4.[01].*)
22571       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22572            echo ' yes '
22573            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22574         :
22575       else
22576         can_build_shared=no
22577       fi
22578       ;;
22579     esac
22580     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22581     # soname into executable. Probably we can add versioning support to
22582     # collect2, so additional links can be useful in future.
22583     if test "$aix_use_runtimelinking" = yes; then
22584       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22585       # instead of lib<name>.a to let people know that these are not
22586       # typical AIX shared libraries.
22587       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22588     else
22589       # We preserve .a as extension for shared libraries through AIX4.2
22590       # and later when we are not doing run time linking.
22591       library_names_spec='${libname}${release}.a $libname.a'
22592       soname_spec='${libname}${release}${shared_ext}$major'
22593     fi
22594     shlibpath_var=LIBPATH
22595   fi
22596   ;;
22597
22598 amigaos*)
22599   library_names_spec='$libname.ixlibrary $libname.a'
22600   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22601   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'
22602   ;;
22603
22604 beos*)
22605   library_names_spec='${libname}${shared_ext}'
22606   dynamic_linker="$host_os ld.so"
22607   shlibpath_var=LIBRARY_PATH
22608   ;;
22609
22610 bsdi[45]*)
22611   version_type=linux
22612   need_version=no
22613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22614   soname_spec='${libname}${release}${shared_ext}$major'
22615   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22616   shlibpath_var=LD_LIBRARY_PATH
22617   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22618   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22619   # the default ld.so.conf also contains /usr/contrib/lib and
22620   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22621   # libtool to hard-code these into programs
22622   ;;
22623
22624 cygwin* | mingw* | pw32*)
22625   version_type=windows
22626   shrext_cmds=".dll"
22627   need_version=no
22628   need_lib_prefix=no
22629
22630   case $GCC,$host_os in
22631   yes,cygwin* | yes,mingw* | yes,pw32*)
22632     library_names_spec='$libname.dll.a'
22633     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22634     postinstall_cmds='base_file=`basename \${file}`~
22635       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22636       dldir=$destdir/`dirname \$dlpath`~
22637       test -d \$dldir || mkdir -p \$dldir~
22638       $install_prog $dir/$dlname \$dldir/$dlname'
22639     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22640       dlpath=$dir/\$dldll~
22641        $rm \$dlpath'
22642     shlibpath_overrides_runpath=yes
22643
22644     case $host_os in
22645     cygwin*)
22646       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22647       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22648       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22649       ;;
22650     mingw*)
22651       # MinGW DLLs use traditional 'lib' prefix
22652       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22653       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22654       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22655         # It is most probably a Windows format PATH printed by
22656         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22657         # path with ; separators, and with drive letters. We can handle the
22658         # drive letters (cygwin fileutils understands them), so leave them,
22659         # especially as we might pass files found there to a mingw objdump,
22660         # which wouldn't understand a cygwinified path. Ahh.
22661         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22662       else
22663         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22664       fi
22665       ;;
22666     pw32*)
22667       # pw32 DLLs use 'pw' prefix rather than 'lib'
22668       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22669       ;;
22670     esac
22671     ;;
22672
22673   *)
22674     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22675     ;;
22676   esac
22677   dynamic_linker='Win32 ld.exe'
22678   # FIXME: first we should search . and the directory the executable is in
22679   shlibpath_var=PATH
22680   ;;
22681
22682 darwin* | rhapsody*)
22683   dynamic_linker="$host_os dyld"
22684   version_type=darwin
22685   need_lib_prefix=no
22686   need_version=no
22687   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22688   soname_spec='${libname}${release}${major}$shared_ext'
22689   shlibpath_overrides_runpath=yes
22690   shlibpath_var=DYLD_LIBRARY_PATH
22691   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22692   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22693   if test "$GCC" = yes; then
22694     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"`
22695   else
22696     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22697   fi
22698   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22699   ;;
22700
22701 dgux*)
22702   version_type=linux
22703   need_lib_prefix=no
22704   need_version=no
22705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22706   soname_spec='${libname}${release}${shared_ext}$major'
22707   shlibpath_var=LD_LIBRARY_PATH
22708   ;;
22709
22710 freebsd1*)
22711   dynamic_linker=no
22712   ;;
22713
22714 kfreebsd*-gnu)
22715   version_type=linux
22716   need_lib_prefix=no
22717   need_version=no
22718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22719   soname_spec='${libname}${release}${shared_ext}$major'
22720   shlibpath_var=LD_LIBRARY_PATH
22721   shlibpath_overrides_runpath=no
22722   hardcode_into_libs=yes
22723   dynamic_linker='GNU ld.so'
22724   ;;
22725
22726 freebsd*)
22727   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22728   version_type=freebsd-$objformat
22729   case $version_type in
22730     freebsd-elf*)
22731       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22732       need_version=no
22733       need_lib_prefix=no
22734       ;;
22735     freebsd-*)
22736       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22737       need_version=yes
22738       ;;
22739   esac
22740   shlibpath_var=LD_LIBRARY_PATH
22741   case $host_os in
22742   freebsd2*)
22743     shlibpath_overrides_runpath=yes
22744     ;;
22745   freebsd3.01* | freebsdelf3.01*)
22746     shlibpath_overrides_runpath=yes
22747     hardcode_into_libs=yes
22748     ;;
22749   *) # from 3.2 on
22750     shlibpath_overrides_runpath=no
22751     hardcode_into_libs=yes
22752     ;;
22753   esac
22754   ;;
22755
22756 gnu*)
22757   version_type=linux
22758   need_lib_prefix=no
22759   need_version=no
22760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22761   soname_spec='${libname}${release}${shared_ext}$major'
22762   shlibpath_var=LD_LIBRARY_PATH
22763   hardcode_into_libs=yes
22764   ;;
22765
22766 hpux9* | hpux10* | hpux11*)
22767   # Give a soname corresponding to the major version so that dld.sl refuses to
22768   # link against other versions.
22769   version_type=sunos
22770   need_lib_prefix=no
22771   need_version=no
22772   case "$host_cpu" in
22773   ia64*)
22774     shrext_cmds='.so'
22775     hardcode_into_libs=yes
22776     dynamic_linker="$host_os dld.so"
22777     shlibpath_var=LD_LIBRARY_PATH
22778     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22779     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22780     soname_spec='${libname}${release}${shared_ext}$major'
22781     if test "X$HPUX_IA64_MODE" = X32; then
22782       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22783     else
22784       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22785     fi
22786     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22787     ;;
22788    hppa*64*)
22789      shrext_cmds='.sl'
22790      hardcode_into_libs=yes
22791      dynamic_linker="$host_os dld.sl"
22792      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22793      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22794      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22795      soname_spec='${libname}${release}${shared_ext}$major'
22796      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22797      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22798      ;;
22799    *)
22800     shrext_cmds='.sl'
22801     dynamic_linker="$host_os dld.sl"
22802     shlibpath_var=SHLIB_PATH
22803     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22804     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22805     soname_spec='${libname}${release}${shared_ext}$major'
22806     ;;
22807   esac
22808   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22809   postinstall_cmds='chmod 555 $lib'
22810   ;;
22811
22812 irix5* | irix6* | nonstopux*)
22813   case $host_os in
22814     nonstopux*) version_type=nonstopux ;;
22815     *)
22816         if test "$lt_cv_prog_gnu_ld" = yes; then
22817                 version_type=linux
22818         else
22819                 version_type=irix
22820         fi ;;
22821   esac
22822   need_lib_prefix=no
22823   need_version=no
22824   soname_spec='${libname}${release}${shared_ext}$major'
22825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22826   case $host_os in
22827   irix5* | nonstopux*)
22828     libsuff= shlibsuff=
22829     ;;
22830   *)
22831     case $LD in # libtool.m4 will add one of these switches to LD
22832     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22833       libsuff= shlibsuff= libmagic=32-bit;;
22834     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22835       libsuff=32 shlibsuff=N32 libmagic=N32;;
22836     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22837       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22838     *) libsuff= shlibsuff= libmagic=never-match;;
22839     esac
22840     ;;
22841   esac
22842   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22843   shlibpath_overrides_runpath=no
22844   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22845   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22846   hardcode_into_libs=yes
22847   ;;
22848
22849 # No shared lib support for Linux oldld, aout, or coff.
22850 linux*oldld* | linux*aout* | linux*coff*)
22851   dynamic_linker=no
22852   ;;
22853
22854 # This must be Linux ELF.
22855 linux*)
22856   version_type=linux
22857   need_lib_prefix=no
22858   need_version=no
22859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22860   soname_spec='${libname}${release}${shared_ext}$major'
22861   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22862   shlibpath_var=LD_LIBRARY_PATH
22863   shlibpath_overrides_runpath=no
22864   # This implies no fast_install, which is unacceptable.
22865   # Some rework will be needed to allow for fast_install
22866   # before this can be enabled.
22867   hardcode_into_libs=yes
22868
22869   # Append ld.so.conf contents to the search path
22870   if test -f /etc/ld.so.conf; then
22871     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22872     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22873   fi
22874
22875   # We used to test for /lib/ld.so.1 and disable shared libraries on
22876   # powerpc, because MkLinux only supported shared libraries with the
22877   # GNU dynamic linker.  Since this was broken with cross compilers,
22878   # most powerpc-linux boxes support dynamic linking these days and
22879   # people can always --disable-shared, the test was removed, and we
22880   # assume the GNU/Linux dynamic linker is in use.
22881   dynamic_linker='GNU/Linux ld.so'
22882   ;;
22883
22884 knetbsd*-gnu)
22885   version_type=linux
22886   need_lib_prefix=no
22887   need_version=no
22888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22889   soname_spec='${libname}${release}${shared_ext}$major'
22890   shlibpath_var=LD_LIBRARY_PATH
22891   shlibpath_overrides_runpath=no
22892   hardcode_into_libs=yes
22893   dynamic_linker='GNU ld.so'
22894   ;;
22895
22896 netbsd*)
22897   version_type=sunos
22898   need_lib_prefix=no
22899   need_version=no
22900   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22901     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22902     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22903     dynamic_linker='NetBSD (a.out) ld.so'
22904   else
22905     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22906     soname_spec='${libname}${release}${shared_ext}$major'
22907     dynamic_linker='NetBSD ld.elf_so'
22908   fi
22909   shlibpath_var=LD_LIBRARY_PATH
22910   shlibpath_overrides_runpath=yes
22911   hardcode_into_libs=yes
22912   ;;
22913
22914 newsos6)
22915   version_type=linux
22916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22917   shlibpath_var=LD_LIBRARY_PATH
22918   shlibpath_overrides_runpath=yes
22919   ;;
22920
22921 nto-qnx*)
22922   version_type=linux
22923   need_lib_prefix=no
22924   need_version=no
22925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22926   soname_spec='${libname}${release}${shared_ext}$major'
22927   shlibpath_var=LD_LIBRARY_PATH
22928   shlibpath_overrides_runpath=yes
22929   ;;
22930
22931 openbsd*)
22932   version_type=sunos
22933   need_lib_prefix=no
22934   need_version=no
22935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22936   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22937   shlibpath_var=LD_LIBRARY_PATH
22938   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22939     case $host_os in
22940       openbsd2.[89] | openbsd2.[89].*)
22941         shlibpath_overrides_runpath=no
22942         ;;
22943       *)
22944         shlibpath_overrides_runpath=yes
22945         ;;
22946       esac
22947   else
22948     shlibpath_overrides_runpath=yes
22949   fi
22950   ;;
22951
22952 os2*)
22953   libname_spec='$name'
22954   shrext_cmds=".dll"
22955   need_lib_prefix=no
22956   library_names_spec='$libname${shared_ext} $libname.a'
22957   dynamic_linker='OS/2 ld.exe'
22958   shlibpath_var=LIBPATH
22959   ;;
22960
22961 osf3* | osf4* | osf5*)
22962   version_type=osf
22963   need_lib_prefix=no
22964   need_version=no
22965   soname_spec='${libname}${release}${shared_ext}$major'
22966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22967   shlibpath_var=LD_LIBRARY_PATH
22968   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22969   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22970   ;;
22971
22972 sco3.2v5*)
22973   version_type=osf
22974   soname_spec='${libname}${release}${shared_ext}$major'
22975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22976   shlibpath_var=LD_LIBRARY_PATH
22977   ;;
22978
22979 solaris*)
22980   version_type=linux
22981   need_lib_prefix=no
22982   need_version=no
22983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22984   soname_spec='${libname}${release}${shared_ext}$major'
22985   shlibpath_var=LD_LIBRARY_PATH
22986   shlibpath_overrides_runpath=yes
22987   hardcode_into_libs=yes
22988   # ldd complains unless libraries are executable
22989   postinstall_cmds='chmod +x $lib'
22990   ;;
22991
22992 sunos4*)
22993   version_type=sunos
22994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22995   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22996   shlibpath_var=LD_LIBRARY_PATH
22997   shlibpath_overrides_runpath=yes
22998   if test "$with_gnu_ld" = yes; then
22999     need_lib_prefix=no
23000   fi
23001   need_version=yes
23002   ;;
23003
23004 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23005   version_type=linux
23006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23007   soname_spec='${libname}${release}${shared_ext}$major'
23008   shlibpath_var=LD_LIBRARY_PATH
23009   case $host_vendor in
23010     sni)
23011       shlibpath_overrides_runpath=no
23012       need_lib_prefix=no
23013       export_dynamic_flag_spec='${wl}-Blargedynsym'
23014       runpath_var=LD_RUN_PATH
23015       ;;
23016     siemens)
23017       need_lib_prefix=no
23018       ;;
23019     motorola)
23020       need_lib_prefix=no
23021       need_version=no
23022       shlibpath_overrides_runpath=no
23023       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23024       ;;
23025   esac
23026   ;;
23027
23028 sysv4*MP*)
23029   if test -d /usr/nec ;then
23030     version_type=linux
23031     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23032     soname_spec='$libname${shared_ext}.$major'
23033     shlibpath_var=LD_LIBRARY_PATH
23034   fi
23035   ;;
23036
23037 uts4*)
23038   version_type=linux
23039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23040   soname_spec='${libname}${release}${shared_ext}$major'
23041   shlibpath_var=LD_LIBRARY_PATH
23042   ;;
23043
23044 *)
23045   dynamic_linker=no
23046   ;;
23047 esac
23048 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23049 echo "${ECHO_T}$dynamic_linker" >&6
23050 test "$dynamic_linker" = no && can_build_shared=no
23051
23052 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23053 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23054 hardcode_action_GCJ=
23055 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23056    test -n "$runpath_var_GCJ" || \
23057    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23058
23059   # We can hardcode non-existant directories.
23060   if test "$hardcode_direct_GCJ" != no &&
23061      # If the only mechanism to avoid hardcoding is shlibpath_var, we
23062      # have to relink, otherwise we might link with an installed library
23063      # when we should be linking with a yet-to-be-installed one
23064      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23065      test "$hardcode_minus_L_GCJ" != no; then
23066     # Linking always hardcodes the temporary library directory.
23067     hardcode_action_GCJ=relink
23068   else
23069     # We can link without hardcoding, and we can hardcode nonexisting dirs.
23070     hardcode_action_GCJ=immediate
23071   fi
23072 else
23073   # We cannot hardcode anything, or else we can only hardcode existing
23074   # directories.
23075   hardcode_action_GCJ=unsupported
23076 fi
23077 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23078 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23079
23080 if test "$hardcode_action_GCJ" = relink; then
23081   # Fast installation is not supported
23082   enable_fast_install=no
23083 elif test "$shlibpath_overrides_runpath" = yes ||
23084      test "$enable_shared" = no; then
23085   # Fast installation is not necessary
23086   enable_fast_install=needless
23087 fi
23088
23089 striplib=
23090 old_striplib=
23091 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23092 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23093 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23094   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23095   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23096   echo "$as_me:$LINENO: result: yes" >&5
23097 echo "${ECHO_T}yes" >&6
23098 else
23099 # FIXME - insert some real tests, host_os isn't really good enough
23100   case $host_os in
23101    darwin*)
23102        if test -n "$STRIP" ; then
23103          striplib="$STRIP -x"
23104          echo "$as_me:$LINENO: result: yes" >&5
23105 echo "${ECHO_T}yes" >&6
23106        else
23107   echo "$as_me:$LINENO: result: no" >&5
23108 echo "${ECHO_T}no" >&6
23109 fi
23110        ;;
23111    *)
23112   echo "$as_me:$LINENO: result: no" >&5
23113 echo "${ECHO_T}no" >&6
23114     ;;
23115   esac
23116 fi
23117
23118 if test "x$enable_dlopen" != xyes; then
23119   enable_dlopen=unknown
23120   enable_dlopen_self=unknown
23121   enable_dlopen_self_static=unknown
23122 else
23123   lt_cv_dlopen=no
23124   lt_cv_dlopen_libs=
23125
23126   case $host_os in
23127   beos*)
23128     lt_cv_dlopen="load_add_on"
23129     lt_cv_dlopen_libs=
23130     lt_cv_dlopen_self=yes
23131     ;;
23132
23133   mingw* | pw32*)
23134     lt_cv_dlopen="LoadLibrary"
23135     lt_cv_dlopen_libs=
23136    ;;
23137
23138   cygwin*)
23139     lt_cv_dlopen="dlopen"
23140     lt_cv_dlopen_libs=
23141    ;;
23142
23143   darwin*)
23144   # if libdl is installed we need to link against it
23145     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23146 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23147 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23148   echo $ECHO_N "(cached) $ECHO_C" >&6
23149 else
23150   ac_check_lib_save_LIBS=$LIBS
23151 LIBS="-ldl  $LIBS"
23152 cat >conftest.$ac_ext <<_ACEOF
23153 /* confdefs.h.  */
23154 _ACEOF
23155 cat confdefs.h >>conftest.$ac_ext
23156 cat >>conftest.$ac_ext <<_ACEOF
23157 /* end confdefs.h.  */
23158
23159 /* Override any gcc2 internal prototype to avoid an error.  */
23160 #ifdef __cplusplus
23161 extern "C"
23162 #endif
23163 /* We use char because int might match the return type of a gcc2
23164    builtin and then its argument prototype would still apply.  */
23165 char dlopen ();
23166 int
23167 main ()
23168 {
23169 dlopen ();
23170   ;
23171   return 0;
23172 }
23173 _ACEOF
23174 rm -f conftest.$ac_objext conftest$ac_exeext
23175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23176   (eval $ac_link) 2>conftest.er1
23177   ac_status=$?
23178   grep -v '^ *+' conftest.er1 >conftest.err
23179   rm -f conftest.er1
23180   cat conftest.err >&5
23181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182   (exit $ac_status); } &&
23183          { ac_try='test -z "$ac_c_werror_flag"
23184                          || test ! -s conftest.err'
23185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23186   (eval $ac_try) 2>&5
23187   ac_status=$?
23188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189   (exit $ac_status); }; } &&
23190          { ac_try='test -s conftest$ac_exeext'
23191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23192   (eval $ac_try) 2>&5
23193   ac_status=$?
23194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195   (exit $ac_status); }; }; then
23196   ac_cv_lib_dl_dlopen=yes
23197 else
23198   echo "$as_me: failed program was:" >&5
23199 sed 's/^/| /' conftest.$ac_ext >&5
23200
23201 ac_cv_lib_dl_dlopen=no
23202 fi
23203 rm -f conftest.err conftest.$ac_objext \
23204       conftest$ac_exeext conftest.$ac_ext
23205 LIBS=$ac_check_lib_save_LIBS
23206 fi
23207 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23208 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23209 if test $ac_cv_lib_dl_dlopen = yes; then
23210   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23211 else
23212
23213     lt_cv_dlopen="dyld"
23214     lt_cv_dlopen_libs=
23215     lt_cv_dlopen_self=yes
23216
23217 fi
23218
23219    ;;
23220
23221   *)
23222     echo "$as_me:$LINENO: checking for shl_load" >&5
23223 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23224 if test "${ac_cv_func_shl_load+set}" = set; then
23225   echo $ECHO_N "(cached) $ECHO_C" >&6
23226 else
23227   cat >conftest.$ac_ext <<_ACEOF
23228 /* confdefs.h.  */
23229 _ACEOF
23230 cat confdefs.h >>conftest.$ac_ext
23231 cat >>conftest.$ac_ext <<_ACEOF
23232 /* end confdefs.h.  */
23233 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23234    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23235 #define shl_load innocuous_shl_load
23236
23237 /* System header to define __stub macros and hopefully few prototypes,
23238     which can conflict with char shl_load (); below.
23239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23240     <limits.h> exists even on freestanding compilers.  */
23241
23242 #ifdef __STDC__
23243 # include <limits.h>
23244 #else
23245 # include <assert.h>
23246 #endif
23247
23248 #undef shl_load
23249
23250 /* Override any gcc2 internal prototype to avoid an error.  */
23251 #ifdef __cplusplus
23252 extern "C"
23253 {
23254 #endif
23255 /* We use char because int might match the return type of a gcc2
23256    builtin and then its argument prototype would still apply.  */
23257 char shl_load ();
23258 /* The GNU C library defines this for functions which it implements
23259     to always fail with ENOSYS.  Some functions are actually named
23260     something starting with __ and the normal name is an alias.  */
23261 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23262 choke me
23263 #else
23264 char (*f) () = shl_load;
23265 #endif
23266 #ifdef __cplusplus
23267 }
23268 #endif
23269
23270 int
23271 main ()
23272 {
23273 return f != shl_load;
23274   ;
23275   return 0;
23276 }
23277 _ACEOF
23278 rm -f conftest.$ac_objext conftest$ac_exeext
23279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23280   (eval $ac_link) 2>conftest.er1
23281   ac_status=$?
23282   grep -v '^ *+' conftest.er1 >conftest.err
23283   rm -f conftest.er1
23284   cat conftest.err >&5
23285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286   (exit $ac_status); } &&
23287          { ac_try='test -z "$ac_c_werror_flag"
23288                          || test ! -s conftest.err'
23289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23290   (eval $ac_try) 2>&5
23291   ac_status=$?
23292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293   (exit $ac_status); }; } &&
23294          { ac_try='test -s conftest$ac_exeext'
23295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296   (eval $ac_try) 2>&5
23297   ac_status=$?
23298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299   (exit $ac_status); }; }; then
23300   ac_cv_func_shl_load=yes
23301 else
23302   echo "$as_me: failed program was:" >&5
23303 sed 's/^/| /' conftest.$ac_ext >&5
23304
23305 ac_cv_func_shl_load=no
23306 fi
23307 rm -f conftest.err conftest.$ac_objext \
23308       conftest$ac_exeext conftest.$ac_ext
23309 fi
23310 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23311 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23312 if test $ac_cv_func_shl_load = yes; then
23313   lt_cv_dlopen="shl_load"
23314 else
23315   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23316 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23317 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23318   echo $ECHO_N "(cached) $ECHO_C" >&6
23319 else
23320   ac_check_lib_save_LIBS=$LIBS
23321 LIBS="-ldld  $LIBS"
23322 cat >conftest.$ac_ext <<_ACEOF
23323 /* confdefs.h.  */
23324 _ACEOF
23325 cat confdefs.h >>conftest.$ac_ext
23326 cat >>conftest.$ac_ext <<_ACEOF
23327 /* end confdefs.h.  */
23328
23329 /* Override any gcc2 internal prototype to avoid an error.  */
23330 #ifdef __cplusplus
23331 extern "C"
23332 #endif
23333 /* We use char because int might match the return type of a gcc2
23334    builtin and then its argument prototype would still apply.  */
23335 char shl_load ();
23336 int
23337 main ()
23338 {
23339 shl_load ();
23340   ;
23341   return 0;
23342 }
23343 _ACEOF
23344 rm -f conftest.$ac_objext conftest$ac_exeext
23345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23346   (eval $ac_link) 2>conftest.er1
23347   ac_status=$?
23348   grep -v '^ *+' conftest.er1 >conftest.err
23349   rm -f conftest.er1
23350   cat conftest.err >&5
23351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352   (exit $ac_status); } &&
23353          { ac_try='test -z "$ac_c_werror_flag"
23354                          || test ! -s conftest.err'
23355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23356   (eval $ac_try) 2>&5
23357   ac_status=$?
23358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359   (exit $ac_status); }; } &&
23360          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
23366   ac_cv_lib_dld_shl_load=yes
23367 else
23368   echo "$as_me: failed program was:" >&5
23369 sed 's/^/| /' conftest.$ac_ext >&5
23370
23371 ac_cv_lib_dld_shl_load=no
23372 fi
23373 rm -f conftest.err conftest.$ac_objext \
23374       conftest$ac_exeext conftest.$ac_ext
23375 LIBS=$ac_check_lib_save_LIBS
23376 fi
23377 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23378 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23379 if test $ac_cv_lib_dld_shl_load = yes; then
23380   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23381 else
23382   echo "$as_me:$LINENO: checking for dlopen" >&5
23383 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23384 if test "${ac_cv_func_dlopen+set}" = set; then
23385   echo $ECHO_N "(cached) $ECHO_C" >&6
23386 else
23387   cat >conftest.$ac_ext <<_ACEOF
23388 /* confdefs.h.  */
23389 _ACEOF
23390 cat confdefs.h >>conftest.$ac_ext
23391 cat >>conftest.$ac_ext <<_ACEOF
23392 /* end confdefs.h.  */
23393 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23394    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23395 #define dlopen innocuous_dlopen
23396
23397 /* System header to define __stub macros and hopefully few prototypes,
23398     which can conflict with char dlopen (); below.
23399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23400     <limits.h> exists even on freestanding compilers.  */
23401
23402 #ifdef __STDC__
23403 # include <limits.h>
23404 #else
23405 # include <assert.h>
23406 #endif
23407
23408 #undef dlopen
23409
23410 /* Override any gcc2 internal prototype to avoid an error.  */
23411 #ifdef __cplusplus
23412 extern "C"
23413 {
23414 #endif
23415 /* We use char because int might match the return type of a gcc2
23416    builtin and then its argument prototype would still apply.  */
23417 char dlopen ();
23418 /* The GNU C library defines this for functions which it implements
23419     to always fail with ENOSYS.  Some functions are actually named
23420     something starting with __ and the normal name is an alias.  */
23421 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23422 choke me
23423 #else
23424 char (*f) () = dlopen;
23425 #endif
23426 #ifdef __cplusplus
23427 }
23428 #endif
23429
23430 int
23431 main ()
23432 {
23433 return f != dlopen;
23434   ;
23435   return 0;
23436 }
23437 _ACEOF
23438 rm -f conftest.$ac_objext conftest$ac_exeext
23439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23440   (eval $ac_link) 2>conftest.er1
23441   ac_status=$?
23442   grep -v '^ *+' conftest.er1 >conftest.err
23443   rm -f conftest.er1
23444   cat conftest.err >&5
23445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446   (exit $ac_status); } &&
23447          { ac_try='test -z "$ac_c_werror_flag"
23448                          || test ! -s conftest.err'
23449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23450   (eval $ac_try) 2>&5
23451   ac_status=$?
23452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453   (exit $ac_status); }; } &&
23454          { ac_try='test -s conftest$ac_exeext'
23455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23456   (eval $ac_try) 2>&5
23457   ac_status=$?
23458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459   (exit $ac_status); }; }; then
23460   ac_cv_func_dlopen=yes
23461 else
23462   echo "$as_me: failed program was:" >&5
23463 sed 's/^/| /' conftest.$ac_ext >&5
23464
23465 ac_cv_func_dlopen=no
23466 fi
23467 rm -f conftest.err conftest.$ac_objext \
23468       conftest$ac_exeext conftest.$ac_ext
23469 fi
23470 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23471 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23472 if test $ac_cv_func_dlopen = yes; then
23473   lt_cv_dlopen="dlopen"
23474 else
23475   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23476 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23477 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23478   echo $ECHO_N "(cached) $ECHO_C" >&6
23479 else
23480   ac_check_lib_save_LIBS=$LIBS
23481 LIBS="-ldl  $LIBS"
23482 cat >conftest.$ac_ext <<_ACEOF
23483 /* confdefs.h.  */
23484 _ACEOF
23485 cat confdefs.h >>conftest.$ac_ext
23486 cat >>conftest.$ac_ext <<_ACEOF
23487 /* end confdefs.h.  */
23488
23489 /* Override any gcc2 internal prototype to avoid an error.  */
23490 #ifdef __cplusplus
23491 extern "C"
23492 #endif
23493 /* We use char because int might match the return type of a gcc2
23494    builtin and then its argument prototype would still apply.  */
23495 char dlopen ();
23496 int
23497 main ()
23498 {
23499 dlopen ();
23500   ;
23501   return 0;
23502 }
23503 _ACEOF
23504 rm -f conftest.$ac_objext conftest$ac_exeext
23505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23506   (eval $ac_link) 2>conftest.er1
23507   ac_status=$?
23508   grep -v '^ *+' conftest.er1 >conftest.err
23509   rm -f conftest.er1
23510   cat conftest.err >&5
23511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512   (exit $ac_status); } &&
23513          { ac_try='test -z "$ac_c_werror_flag"
23514                          || test ! -s conftest.err'
23515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23516   (eval $ac_try) 2>&5
23517   ac_status=$?
23518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519   (exit $ac_status); }; } &&
23520          { ac_try='test -s conftest$ac_exeext'
23521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23522   (eval $ac_try) 2>&5
23523   ac_status=$?
23524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525   (exit $ac_status); }; }; then
23526   ac_cv_lib_dl_dlopen=yes
23527 else
23528   echo "$as_me: failed program was:" >&5
23529 sed 's/^/| /' conftest.$ac_ext >&5
23530
23531 ac_cv_lib_dl_dlopen=no
23532 fi
23533 rm -f conftest.err conftest.$ac_objext \
23534       conftest$ac_exeext conftest.$ac_ext
23535 LIBS=$ac_check_lib_save_LIBS
23536 fi
23537 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23538 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23539 if test $ac_cv_lib_dl_dlopen = yes; then
23540   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23541 else
23542   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23543 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23544 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23545   echo $ECHO_N "(cached) $ECHO_C" >&6
23546 else
23547   ac_check_lib_save_LIBS=$LIBS
23548 LIBS="-lsvld  $LIBS"
23549 cat >conftest.$ac_ext <<_ACEOF
23550 /* confdefs.h.  */
23551 _ACEOF
23552 cat confdefs.h >>conftest.$ac_ext
23553 cat >>conftest.$ac_ext <<_ACEOF
23554 /* end confdefs.h.  */
23555
23556 /* Override any gcc2 internal prototype to avoid an error.  */
23557 #ifdef __cplusplus
23558 extern "C"
23559 #endif
23560 /* We use char because int might match the return type of a gcc2
23561    builtin and then its argument prototype would still apply.  */
23562 char dlopen ();
23563 int
23564 main ()
23565 {
23566 dlopen ();
23567   ;
23568   return 0;
23569 }
23570 _ACEOF
23571 rm -f conftest.$ac_objext conftest$ac_exeext
23572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23573   (eval $ac_link) 2>conftest.er1
23574   ac_status=$?
23575   grep -v '^ *+' conftest.er1 >conftest.err
23576   rm -f conftest.er1
23577   cat conftest.err >&5
23578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579   (exit $ac_status); } &&
23580          { ac_try='test -z "$ac_c_werror_flag"
23581                          || test ! -s conftest.err'
23582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23583   (eval $ac_try) 2>&5
23584   ac_status=$?
23585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586   (exit $ac_status); }; } &&
23587          { ac_try='test -s conftest$ac_exeext'
23588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23589   (eval $ac_try) 2>&5
23590   ac_status=$?
23591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592   (exit $ac_status); }; }; then
23593   ac_cv_lib_svld_dlopen=yes
23594 else
23595   echo "$as_me: failed program was:" >&5
23596 sed 's/^/| /' conftest.$ac_ext >&5
23597
23598 ac_cv_lib_svld_dlopen=no
23599 fi
23600 rm -f conftest.err conftest.$ac_objext \
23601       conftest$ac_exeext conftest.$ac_ext
23602 LIBS=$ac_check_lib_save_LIBS
23603 fi
23604 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23605 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23606 if test $ac_cv_lib_svld_dlopen = yes; then
23607   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23608 else
23609   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23610 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23611 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23612   echo $ECHO_N "(cached) $ECHO_C" >&6
23613 else
23614   ac_check_lib_save_LIBS=$LIBS
23615 LIBS="-ldld  $LIBS"
23616 cat >conftest.$ac_ext <<_ACEOF
23617 /* confdefs.h.  */
23618 _ACEOF
23619 cat confdefs.h >>conftest.$ac_ext
23620 cat >>conftest.$ac_ext <<_ACEOF
23621 /* end confdefs.h.  */
23622
23623 /* Override any gcc2 internal prototype to avoid an error.  */
23624 #ifdef __cplusplus
23625 extern "C"
23626 #endif
23627 /* We use char because int might match the return type of a gcc2
23628    builtin and then its argument prototype would still apply.  */
23629 char dld_link ();
23630 int
23631 main ()
23632 {
23633 dld_link ();
23634   ;
23635   return 0;
23636 }
23637 _ACEOF
23638 rm -f conftest.$ac_objext conftest$ac_exeext
23639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23640   (eval $ac_link) 2>conftest.er1
23641   ac_status=$?
23642   grep -v '^ *+' conftest.er1 >conftest.err
23643   rm -f conftest.er1
23644   cat conftest.err >&5
23645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646   (exit $ac_status); } &&
23647          { ac_try='test -z "$ac_c_werror_flag"
23648                          || test ! -s conftest.err'
23649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23650   (eval $ac_try) 2>&5
23651   ac_status=$?
23652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653   (exit $ac_status); }; } &&
23654          { ac_try='test -s conftest$ac_exeext'
23655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23656   (eval $ac_try) 2>&5
23657   ac_status=$?
23658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659   (exit $ac_status); }; }; then
23660   ac_cv_lib_dld_dld_link=yes
23661 else
23662   echo "$as_me: failed program was:" >&5
23663 sed 's/^/| /' conftest.$ac_ext >&5
23664
23665 ac_cv_lib_dld_dld_link=no
23666 fi
23667 rm -f conftest.err conftest.$ac_objext \
23668       conftest$ac_exeext conftest.$ac_ext
23669 LIBS=$ac_check_lib_save_LIBS
23670 fi
23671 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23672 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23673 if test $ac_cv_lib_dld_dld_link = yes; then
23674   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23675 fi
23676
23677
23678 fi
23679
23680
23681 fi
23682
23683
23684 fi
23685
23686
23687 fi
23688
23689
23690 fi
23691
23692     ;;
23693   esac
23694
23695   if test "x$lt_cv_dlopen" != xno; then
23696     enable_dlopen=yes
23697   else
23698     enable_dlopen=no
23699   fi
23700
23701   case $lt_cv_dlopen in
23702   dlopen)
23703     save_CPPFLAGS="$CPPFLAGS"
23704     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23705
23706     save_LDFLAGS="$LDFLAGS"
23707     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23708
23709     save_LIBS="$LIBS"
23710     LIBS="$lt_cv_dlopen_libs $LIBS"
23711
23712     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23713 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23714 if test "${lt_cv_dlopen_self+set}" = set; then
23715   echo $ECHO_N "(cached) $ECHO_C" >&6
23716 else
23717           if test "$cross_compiling" = yes; then :
23718   lt_cv_dlopen_self=cross
23719 else
23720   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23721   lt_status=$lt_dlunknown
23722   cat > conftest.$ac_ext <<EOF
23723 #line 23723 "configure"
23724 #include "confdefs.h"
23725
23726 #if HAVE_DLFCN_H
23727 #include <dlfcn.h>
23728 #endif
23729
23730 #include <stdio.h>
23731
23732 #ifdef RTLD_GLOBAL
23733 #  define LT_DLGLOBAL           RTLD_GLOBAL
23734 #else
23735 #  ifdef DL_GLOBAL
23736 #    define LT_DLGLOBAL         DL_GLOBAL
23737 #  else
23738 #    define LT_DLGLOBAL         0
23739 #  endif
23740 #endif
23741
23742 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23743    find out it does not work in some platform. */
23744 #ifndef LT_DLLAZY_OR_NOW
23745 #  ifdef RTLD_LAZY
23746 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23747 #  else
23748 #    ifdef DL_LAZY
23749 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23750 #    else
23751 #      ifdef RTLD_NOW
23752 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23753 #      else
23754 #        ifdef DL_NOW
23755 #          define LT_DLLAZY_OR_NOW      DL_NOW
23756 #        else
23757 #          define LT_DLLAZY_OR_NOW      0
23758 #        endif
23759 #      endif
23760 #    endif
23761 #  endif
23762 #endif
23763
23764 #ifdef __cplusplus
23765 extern "C" void exit (int);
23766 #endif
23767
23768 void fnord() { int i=42;}
23769 int main ()
23770 {
23771   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23772   int status = $lt_dlunknown;
23773
23774   if (self)
23775     {
23776       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23777       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23778       /* dlclose (self); */
23779     }
23780
23781     exit (status);
23782 }
23783 EOF
23784   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23785   (eval $ac_link) 2>&5
23786   ac_status=$?
23787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23789     (./conftest; exit; ) 2>/dev/null
23790     lt_status=$?
23791     case x$lt_status in
23792       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23793       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23794       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23795     esac
23796   else :
23797     # compilation failed
23798     lt_cv_dlopen_self=no
23799   fi
23800 fi
23801 rm -fr conftest*
23802
23803
23804 fi
23805 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23806 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23807
23808     if test "x$lt_cv_dlopen_self" = xyes; then
23809       LDFLAGS="$LDFLAGS $link_static_flag"
23810       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23811 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23812 if test "${lt_cv_dlopen_self_static+set}" = set; then
23813   echo $ECHO_N "(cached) $ECHO_C" >&6
23814 else
23815           if test "$cross_compiling" = yes; then :
23816   lt_cv_dlopen_self_static=cross
23817 else
23818   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23819   lt_status=$lt_dlunknown
23820   cat > conftest.$ac_ext <<EOF
23821 #line 23821 "configure"
23822 #include "confdefs.h"
23823
23824 #if HAVE_DLFCN_H
23825 #include <dlfcn.h>
23826 #endif
23827
23828 #include <stdio.h>
23829
23830 #ifdef RTLD_GLOBAL
23831 #  define LT_DLGLOBAL           RTLD_GLOBAL
23832 #else
23833 #  ifdef DL_GLOBAL
23834 #    define LT_DLGLOBAL         DL_GLOBAL
23835 #  else
23836 #    define LT_DLGLOBAL         0
23837 #  endif
23838 #endif
23839
23840 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23841    find out it does not work in some platform. */
23842 #ifndef LT_DLLAZY_OR_NOW
23843 #  ifdef RTLD_LAZY
23844 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23845 #  else
23846 #    ifdef DL_LAZY
23847 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23848 #    else
23849 #      ifdef RTLD_NOW
23850 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23851 #      else
23852 #        ifdef DL_NOW
23853 #          define LT_DLLAZY_OR_NOW      DL_NOW
23854 #        else
23855 #          define LT_DLLAZY_OR_NOW      0
23856 #        endif
23857 #      endif
23858 #    endif
23859 #  endif
23860 #endif
23861
23862 #ifdef __cplusplus
23863 extern "C" void exit (int);
23864 #endif
23865
23866 void fnord() { int i=42;}
23867 int main ()
23868 {
23869   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23870   int status = $lt_dlunknown;
23871
23872   if (self)
23873     {
23874       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23875       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23876       /* dlclose (self); */
23877     }
23878
23879     exit (status);
23880 }
23881 EOF
23882   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23883   (eval $ac_link) 2>&5
23884   ac_status=$?
23885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23886   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23887     (./conftest; exit; ) 2>/dev/null
23888     lt_status=$?
23889     case x$lt_status in
23890       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23891       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23892       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23893     esac
23894   else :
23895     # compilation failed
23896     lt_cv_dlopen_self_static=no
23897   fi
23898 fi
23899 rm -fr conftest*
23900
23901
23902 fi
23903 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23904 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23905     fi
23906
23907     CPPFLAGS="$save_CPPFLAGS"
23908     LDFLAGS="$save_LDFLAGS"
23909     LIBS="$save_LIBS"
23910     ;;
23911   esac
23912
23913   case $lt_cv_dlopen_self in
23914   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23915   *) enable_dlopen_self=unknown ;;
23916   esac
23917
23918   case $lt_cv_dlopen_self_static in
23919   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23920   *) enable_dlopen_self_static=unknown ;;
23921   esac
23922 fi
23923
23924
23925 # The else clause should only fire when bootstrapping the
23926 # libtool distribution, otherwise you forgot to ship ltmain.sh
23927 # with your package, and you will get complaints that there are
23928 # no rules to generate ltmain.sh.
23929 if test -f "$ltmain"; then
23930   # See if we are running on zsh, and set the options which allow our commands through
23931   # without removal of \ escapes.
23932   if test -n "${ZSH_VERSION+set}" ; then
23933     setopt NO_GLOB_SUBST
23934   fi
23935   # Now quote all the things that may contain metacharacters while being
23936   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23937   # variables and quote the copies for generation of the libtool script.
23938   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23939     SED SHELL STRIP \
23940     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23941     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23942     deplibs_check_method reload_flag reload_cmds need_locks \
23943     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23944     lt_cv_sys_global_symbol_to_c_name_address \
23945     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23946     old_postinstall_cmds old_postuninstall_cmds \
23947     compiler_GCJ \
23948     CC_GCJ \
23949     LD_GCJ \
23950     lt_prog_compiler_wl_GCJ \
23951     lt_prog_compiler_pic_GCJ \
23952     lt_prog_compiler_static_GCJ \
23953     lt_prog_compiler_no_builtin_flag_GCJ \
23954     export_dynamic_flag_spec_GCJ \
23955     thread_safe_flag_spec_GCJ \
23956     whole_archive_flag_spec_GCJ \
23957     enable_shared_with_static_runtimes_GCJ \
23958     old_archive_cmds_GCJ \
23959     old_archive_from_new_cmds_GCJ \
23960     predep_objects_GCJ \
23961     postdep_objects_GCJ \
23962     predeps_GCJ \
23963     postdeps_GCJ \
23964     compiler_lib_search_path_GCJ \
23965     archive_cmds_GCJ \
23966     archive_expsym_cmds_GCJ \
23967     postinstall_cmds_GCJ \
23968     postuninstall_cmds_GCJ \
23969     old_archive_from_expsyms_cmds_GCJ \
23970     allow_undefined_flag_GCJ \
23971     no_undefined_flag_GCJ \
23972     export_symbols_cmds_GCJ \
23973     hardcode_libdir_flag_spec_GCJ \
23974     hardcode_libdir_flag_spec_ld_GCJ \
23975     hardcode_libdir_separator_GCJ \
23976     hardcode_automatic_GCJ \
23977     module_cmds_GCJ \
23978     module_expsym_cmds_GCJ \
23979     lt_cv_prog_compiler_c_o_GCJ \
23980     exclude_expsyms_GCJ \
23981     include_expsyms_GCJ; do
23982
23983     case $var in
23984     old_archive_cmds_GCJ | \
23985     old_archive_from_new_cmds_GCJ | \
23986     archive_cmds_GCJ | \
23987     archive_expsym_cmds_GCJ | \
23988     module_cmds_GCJ | \
23989     module_expsym_cmds_GCJ | \
23990     old_archive_from_expsyms_cmds_GCJ | \
23991     export_symbols_cmds_GCJ | \
23992     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23993     postinstall_cmds | postuninstall_cmds | \
23994     old_postinstall_cmds | old_postuninstall_cmds | \
23995     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23996       # Double-quote double-evaled strings.
23997       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23998       ;;
23999     *)
24000       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24001       ;;
24002     esac
24003   done
24004
24005   case $lt_echo in
24006   *'\$0 --fallback-echo"')
24007     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24008     ;;
24009   esac
24010
24011 cfgfile="$ofile"
24012
24013   cat <<__EOF__ >> "$cfgfile"
24014 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24015
24016 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24017
24018 # Shell to use when invoking shell scripts.
24019 SHELL=$lt_SHELL
24020
24021 # Whether or not to build shared libraries.
24022 build_libtool_libs=$enable_shared
24023
24024 # Whether or not to build static libraries.
24025 build_old_libs=$enable_static
24026
24027 # Whether or not to add -lc for building shared libraries.
24028 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24029
24030 # Whether or not to disallow shared libs when runtime libs are static
24031 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24032
24033 # Whether or not to optimize for fast installation.
24034 fast_install=$enable_fast_install
24035
24036 # The host system.
24037 host_alias=$host_alias
24038 host=$host
24039
24040 # An echo program that does not interpret backslashes.
24041 echo=$lt_echo
24042
24043 # The archiver.
24044 AR=$lt_AR
24045 AR_FLAGS=$lt_AR_FLAGS
24046
24047 # A C compiler.
24048 LTCC=$lt_LTCC
24049
24050 # A language-specific compiler.
24051 CC=$lt_compiler_GCJ
24052
24053 # Is the compiler the GNU C compiler?
24054 with_gcc=$GCC_GCJ
24055
24056 # An ERE matcher.
24057 EGREP=$lt_EGREP
24058
24059 # The linker used to build libraries.
24060 LD=$lt_LD_GCJ
24061
24062 # Whether we need hard or soft links.
24063 LN_S=$lt_LN_S
24064
24065 # A BSD-compatible nm program.
24066 NM=$lt_NM
24067
24068 # A symbol stripping program
24069 STRIP=$lt_STRIP
24070
24071 # Used to examine libraries when file_magic_cmd begins "file"
24072 MAGIC_CMD=$MAGIC_CMD
24073
24074 # Used on cygwin: DLL creation program.
24075 DLLTOOL="$DLLTOOL"
24076
24077 # Used on cygwin: object dumper.
24078 OBJDUMP="$OBJDUMP"
24079
24080 # Used on cygwin: assembler.
24081 AS="$AS"
24082
24083 # The name of the directory that contains temporary libtool files.
24084 objdir=$objdir
24085
24086 # How to create reloadable object files.
24087 reload_flag=$lt_reload_flag
24088 reload_cmds=$lt_reload_cmds
24089
24090 # How to pass a linker flag through the compiler.
24091 wl=$lt_lt_prog_compiler_wl_GCJ
24092
24093 # Object file suffix (normally "o").
24094 objext="$ac_objext"
24095
24096 # Old archive suffix (normally "a").
24097 libext="$libext"
24098
24099 # Shared library suffix (normally ".so").
24100 shrext_cmds='$shrext_cmds'
24101
24102 # Executable file suffix (normally "").
24103 exeext="$exeext"
24104
24105 # Additional compiler flags for building library objects.
24106 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24107 pic_mode=$pic_mode
24108
24109 # What is the maximum length of a command?
24110 max_cmd_len=$lt_cv_sys_max_cmd_len
24111
24112 # Does compiler simultaneously support -c and -o options?
24113 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24114
24115 # Must we lock files when doing compilation ?
24116 need_locks=$lt_need_locks
24117
24118 # Do we need the lib prefix for modules?
24119 need_lib_prefix=$need_lib_prefix
24120
24121 # Do we need a version for libraries?
24122 need_version=$need_version
24123
24124 # Whether dlopen is supported.
24125 dlopen_support=$enable_dlopen
24126
24127 # Whether dlopen of programs is supported.
24128 dlopen_self=$enable_dlopen_self
24129
24130 # Whether dlopen of statically linked programs is supported.
24131 dlopen_self_static=$enable_dlopen_self_static
24132
24133 # Compiler flag to prevent dynamic linking.
24134 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24135
24136 # Compiler flag to turn off builtin functions.
24137 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24138
24139 # Compiler flag to allow reflexive dlopens.
24140 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24141
24142 # Compiler flag to generate shared objects directly from archives.
24143 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24144
24145 # Compiler flag to generate thread-safe objects.
24146 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24147
24148 # Library versioning type.
24149 version_type=$version_type
24150
24151 # Format of library name prefix.
24152 libname_spec=$lt_libname_spec
24153
24154 # List of archive names.  First name is the real one, the rest are links.
24155 # The last name is the one that the linker finds with -lNAME.
24156 library_names_spec=$lt_library_names_spec
24157
24158 # The coded name of the library, if different from the real name.
24159 soname_spec=$lt_soname_spec
24160
24161 # Commands used to build and install an old-style archive.
24162 RANLIB=$lt_RANLIB
24163 old_archive_cmds=$lt_old_archive_cmds_GCJ
24164 old_postinstall_cmds=$lt_old_postinstall_cmds
24165 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24166
24167 # Create an old-style archive from a shared archive.
24168 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24169
24170 # Create a temporary old-style archive to link instead of a shared archive.
24171 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24172
24173 # Commands used to build and install a shared archive.
24174 archive_cmds=$lt_archive_cmds_GCJ
24175 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24176 postinstall_cmds=$lt_postinstall_cmds
24177 postuninstall_cmds=$lt_postuninstall_cmds
24178
24179 # Commands used to build a loadable module (assumed same as above if empty)
24180 module_cmds=$lt_module_cmds_GCJ
24181 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24182
24183 # Commands to strip libraries.
24184 old_striplib=$lt_old_striplib
24185 striplib=$lt_striplib
24186
24187 # Dependencies to place before the objects being linked to create a
24188 # shared library.
24189 predep_objects=$lt_predep_objects_GCJ
24190
24191 # Dependencies to place after the objects being linked to create a
24192 # shared library.
24193 postdep_objects=$lt_postdep_objects_GCJ
24194
24195 # Dependencies to place before the objects being linked to create a
24196 # shared library.
24197 predeps=$lt_predeps_GCJ
24198
24199 # Dependencies to place after the objects being linked to create a
24200 # shared library.
24201 postdeps=$lt_postdeps_GCJ
24202
24203 # The library search path used internally by the compiler when linking
24204 # a shared library.
24205 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24206
24207 # Method to check whether dependent libraries are shared objects.
24208 deplibs_check_method=$lt_deplibs_check_method
24209
24210 # Command to use when deplibs_check_method == file_magic.
24211 file_magic_cmd=$lt_file_magic_cmd
24212
24213 # Flag that allows shared libraries with undefined symbols to be built.
24214 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24215
24216 # Flag that forces no undefined symbols.
24217 no_undefined_flag=$lt_no_undefined_flag_GCJ
24218
24219 # Commands used to finish a libtool library installation in a directory.
24220 finish_cmds=$lt_finish_cmds
24221
24222 # Same as above, but a single script fragment to be evaled but not shown.
24223 finish_eval=$lt_finish_eval
24224
24225 # Take the output of nm and produce a listing of raw symbols and C names.
24226 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24227
24228 # Transform the output of nm in a proper C declaration
24229 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24230
24231 # Transform the output of nm in a C name address pair
24232 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24233
24234 # This is the shared library runtime path variable.
24235 runpath_var=$runpath_var
24236
24237 # This is the shared library path variable.
24238 shlibpath_var=$shlibpath_var
24239
24240 # Is shlibpath searched before the hard-coded library search path?
24241 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24242
24243 # How to hardcode a shared library path into an executable.
24244 hardcode_action=$hardcode_action_GCJ
24245
24246 # Whether we should hardcode library paths into libraries.
24247 hardcode_into_libs=$hardcode_into_libs
24248
24249 # Flag to hardcode \$libdir into a binary during linking.
24250 # This must work even if \$libdir does not exist.
24251 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24252
24253 # If ld is used when linking, flag to hardcode \$libdir into
24254 # a binary during linking. This must work even if \$libdir does
24255 # not exist.
24256 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24257
24258 # Whether we need a single -rpath flag with a separated argument.
24259 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24260
24261 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24262 # resulting binary.
24263 hardcode_direct=$hardcode_direct_GCJ
24264
24265 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24266 # resulting binary.
24267 hardcode_minus_L=$hardcode_minus_L_GCJ
24268
24269 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24270 # the resulting binary.
24271 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24272
24273 # Set to yes if building a shared library automatically hardcodes DIR into the library
24274 # and all subsequent libraries and executables linked against it.
24275 hardcode_automatic=$hardcode_automatic_GCJ
24276
24277 # Variables whose values should be saved in libtool wrapper scripts and
24278 # restored at relink time.
24279 variables_saved_for_relink="$variables_saved_for_relink"
24280
24281 # Whether libtool must link a program against all its dependency libraries.
24282 link_all_deplibs=$link_all_deplibs_GCJ
24283
24284 # Compile-time system search path for libraries
24285 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24286
24287 # Run-time system search path for libraries
24288 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24289
24290 # Fix the shell variable \$srcfile for the compiler.
24291 fix_srcfile_path="$fix_srcfile_path_GCJ"
24292
24293 # Set to yes if exported symbols are required.
24294 always_export_symbols=$always_export_symbols_GCJ
24295
24296 # The commands to list exported symbols.
24297 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24298
24299 # The commands to extract the exported symbol list from a shared archive.
24300 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24301
24302 # Symbols that should not be listed in the preloaded symbols.
24303 exclude_expsyms=$lt_exclude_expsyms_GCJ
24304
24305 # Symbols that must always be exported.
24306 include_expsyms=$lt_include_expsyms_GCJ
24307
24308 # ### END LIBTOOL TAG CONFIG: $tagname
24309
24310 __EOF__
24311
24312
24313 else
24314   # If there is no Makefile yet, we rely on a make rule to execute
24315   # `config.status --recheck' to rerun these tests and create the
24316   # libtool script then.
24317   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24318   if test -f "$ltmain_in"; then
24319     test -f Makefile && make "$ltmain"
24320   fi
24321 fi
24322
24323
24324 ac_ext=c
24325 ac_cpp='$CPP $CPPFLAGS'
24326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24329
24330 CC="$lt_save_CC"
24331
24332         else
24333           tagname=""
24334         fi
24335         ;;
24336
24337       RC)
24338         ac_ext=c
24339 ac_cpp='$CPP $CPPFLAGS'
24340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24343
24344
24345 # Source file extension for RC test sources.
24346 ac_ext=rc
24347
24348 # Object file extension for compiled RC test sources.
24349 objext=o
24350 objext_RC=$objext
24351
24352 # Code to be used in simple compile tests
24353 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24354
24355 # Code to be used in simple link tests
24356 lt_simple_link_test_code="$lt_simple_compile_test_code"
24357
24358 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24359
24360 # If no C compiler was specified, use CC.
24361 LTCC=${LTCC-"$CC"}
24362
24363 # Allow CC to be a program name with arguments.
24364 compiler=$CC
24365
24366
24367 # Allow CC to be a program name with arguments.
24368 lt_save_CC="$CC"
24369 CC=${RC-"windres"}
24370 compiler=$CC
24371 compiler_RC=$CC
24372 lt_cv_prog_compiler_c_o_RC=yes
24373
24374 # The else clause should only fire when bootstrapping the
24375 # libtool distribution, otherwise you forgot to ship ltmain.sh
24376 # with your package, and you will get complaints that there are
24377 # no rules to generate ltmain.sh.
24378 if test -f "$ltmain"; then
24379   # See if we are running on zsh, and set the options which allow our commands through
24380   # without removal of \ escapes.
24381   if test -n "${ZSH_VERSION+set}" ; then
24382     setopt NO_GLOB_SUBST
24383   fi
24384   # Now quote all the things that may contain metacharacters while being
24385   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24386   # variables and quote the copies for generation of the libtool script.
24387   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24388     SED SHELL STRIP \
24389     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24390     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24391     deplibs_check_method reload_flag reload_cmds need_locks \
24392     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24393     lt_cv_sys_global_symbol_to_c_name_address \
24394     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24395     old_postinstall_cmds old_postuninstall_cmds \
24396     compiler_RC \
24397     CC_RC \
24398     LD_RC \
24399     lt_prog_compiler_wl_RC \
24400     lt_prog_compiler_pic_RC \
24401     lt_prog_compiler_static_RC \
24402     lt_prog_compiler_no_builtin_flag_RC \
24403     export_dynamic_flag_spec_RC \
24404     thread_safe_flag_spec_RC \
24405     whole_archive_flag_spec_RC \
24406     enable_shared_with_static_runtimes_RC \
24407     old_archive_cmds_RC \
24408     old_archive_from_new_cmds_RC \
24409     predep_objects_RC \
24410     postdep_objects_RC \
24411     predeps_RC \
24412     postdeps_RC \
24413     compiler_lib_search_path_RC \
24414     archive_cmds_RC \
24415     archive_expsym_cmds_RC \
24416     postinstall_cmds_RC \
24417     postuninstall_cmds_RC \
24418     old_archive_from_expsyms_cmds_RC \
24419     allow_undefined_flag_RC \
24420     no_undefined_flag_RC \
24421     export_symbols_cmds_RC \
24422     hardcode_libdir_flag_spec_RC \
24423     hardcode_libdir_flag_spec_ld_RC \
24424     hardcode_libdir_separator_RC \
24425     hardcode_automatic_RC \
24426     module_cmds_RC \
24427     module_expsym_cmds_RC \
24428     lt_cv_prog_compiler_c_o_RC \
24429     exclude_expsyms_RC \
24430     include_expsyms_RC; do
24431
24432     case $var in
24433     old_archive_cmds_RC | \
24434     old_archive_from_new_cmds_RC | \
24435     archive_cmds_RC | \
24436     archive_expsym_cmds_RC | \
24437     module_cmds_RC | \
24438     module_expsym_cmds_RC | \
24439     old_archive_from_expsyms_cmds_RC | \
24440     export_symbols_cmds_RC | \
24441     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24442     postinstall_cmds | postuninstall_cmds | \
24443     old_postinstall_cmds | old_postuninstall_cmds | \
24444     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24445       # Double-quote double-evaled strings.
24446       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24447       ;;
24448     *)
24449       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24450       ;;
24451     esac
24452   done
24453
24454   case $lt_echo in
24455   *'\$0 --fallback-echo"')
24456     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24457     ;;
24458   esac
24459
24460 cfgfile="$ofile"
24461
24462   cat <<__EOF__ >> "$cfgfile"
24463 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24464
24465 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24466
24467 # Shell to use when invoking shell scripts.
24468 SHELL=$lt_SHELL
24469
24470 # Whether or not to build shared libraries.
24471 build_libtool_libs=$enable_shared
24472
24473 # Whether or not to build static libraries.
24474 build_old_libs=$enable_static
24475
24476 # Whether or not to add -lc for building shared libraries.
24477 build_libtool_need_lc=$archive_cmds_need_lc_RC
24478
24479 # Whether or not to disallow shared libs when runtime libs are static
24480 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24481
24482 # Whether or not to optimize for fast installation.
24483 fast_install=$enable_fast_install
24484
24485 # The host system.
24486 host_alias=$host_alias
24487 host=$host
24488
24489 # An echo program that does not interpret backslashes.
24490 echo=$lt_echo
24491
24492 # The archiver.
24493 AR=$lt_AR
24494 AR_FLAGS=$lt_AR_FLAGS
24495
24496 # A C compiler.
24497 LTCC=$lt_LTCC
24498
24499 # A language-specific compiler.
24500 CC=$lt_compiler_RC
24501
24502 # Is the compiler the GNU C compiler?
24503 with_gcc=$GCC_RC
24504
24505 # An ERE matcher.
24506 EGREP=$lt_EGREP
24507
24508 # The linker used to build libraries.
24509 LD=$lt_LD_RC
24510
24511 # Whether we need hard or soft links.
24512 LN_S=$lt_LN_S
24513
24514 # A BSD-compatible nm program.
24515 NM=$lt_NM
24516
24517 # A symbol stripping program
24518 STRIP=$lt_STRIP
24519
24520 # Used to examine libraries when file_magic_cmd begins "file"
24521 MAGIC_CMD=$MAGIC_CMD
24522
24523 # Used on cygwin: DLL creation program.
24524 DLLTOOL="$DLLTOOL"
24525
24526 # Used on cygwin: object dumper.
24527 OBJDUMP="$OBJDUMP"
24528
24529 # Used on cygwin: assembler.
24530 AS="$AS"
24531
24532 # The name of the directory that contains temporary libtool files.
24533 objdir=$objdir
24534
24535 # How to create reloadable object files.
24536 reload_flag=$lt_reload_flag
24537 reload_cmds=$lt_reload_cmds
24538
24539 # How to pass a linker flag through the compiler.
24540 wl=$lt_lt_prog_compiler_wl_RC
24541
24542 # Object file suffix (normally "o").
24543 objext="$ac_objext"
24544
24545 # Old archive suffix (normally "a").
24546 libext="$libext"
24547
24548 # Shared library suffix (normally ".so").
24549 shrext_cmds='$shrext_cmds'
24550
24551 # Executable file suffix (normally "").
24552 exeext="$exeext"
24553
24554 # Additional compiler flags for building library objects.
24555 pic_flag=$lt_lt_prog_compiler_pic_RC
24556 pic_mode=$pic_mode
24557
24558 # What is the maximum length of a command?
24559 max_cmd_len=$lt_cv_sys_max_cmd_len
24560
24561 # Does compiler simultaneously support -c and -o options?
24562 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24563
24564 # Must we lock files when doing compilation ?
24565 need_locks=$lt_need_locks
24566
24567 # Do we need the lib prefix for modules?
24568 need_lib_prefix=$need_lib_prefix
24569
24570 # Do we need a version for libraries?
24571 need_version=$need_version
24572
24573 # Whether dlopen is supported.
24574 dlopen_support=$enable_dlopen
24575
24576 # Whether dlopen of programs is supported.
24577 dlopen_self=$enable_dlopen_self
24578
24579 # Whether dlopen of statically linked programs is supported.
24580 dlopen_self_static=$enable_dlopen_self_static
24581
24582 # Compiler flag to prevent dynamic linking.
24583 link_static_flag=$lt_lt_prog_compiler_static_RC
24584
24585 # Compiler flag to turn off builtin functions.
24586 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24587
24588 # Compiler flag to allow reflexive dlopens.
24589 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24590
24591 # Compiler flag to generate shared objects directly from archives.
24592 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24593
24594 # Compiler flag to generate thread-safe objects.
24595 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24596
24597 # Library versioning type.
24598 version_type=$version_type
24599
24600 # Format of library name prefix.
24601 libname_spec=$lt_libname_spec
24602
24603 # List of archive names.  First name is the real one, the rest are links.
24604 # The last name is the one that the linker finds with -lNAME.
24605 library_names_spec=$lt_library_names_spec
24606
24607 # The coded name of the library, if different from the real name.
24608 soname_spec=$lt_soname_spec
24609
24610 # Commands used to build and install an old-style archive.
24611 RANLIB=$lt_RANLIB
24612 old_archive_cmds=$lt_old_archive_cmds_RC
24613 old_postinstall_cmds=$lt_old_postinstall_cmds
24614 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24615
24616 # Create an old-style archive from a shared archive.
24617 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24618
24619 # Create a temporary old-style archive to link instead of a shared archive.
24620 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24621
24622 # Commands used to build and install a shared archive.
24623 archive_cmds=$lt_archive_cmds_RC
24624 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24625 postinstall_cmds=$lt_postinstall_cmds
24626 postuninstall_cmds=$lt_postuninstall_cmds
24627
24628 # Commands used to build a loadable module (assumed same as above if empty)
24629 module_cmds=$lt_module_cmds_RC
24630 module_expsym_cmds=$lt_module_expsym_cmds_RC
24631
24632 # Commands to strip libraries.
24633 old_striplib=$lt_old_striplib
24634 striplib=$lt_striplib
24635
24636 # Dependencies to place before the objects being linked to create a
24637 # shared library.
24638 predep_objects=$lt_predep_objects_RC
24639
24640 # Dependencies to place after the objects being linked to create a
24641 # shared library.
24642 postdep_objects=$lt_postdep_objects_RC
24643
24644 # Dependencies to place before the objects being linked to create a
24645 # shared library.
24646 predeps=$lt_predeps_RC
24647
24648 # Dependencies to place after the objects being linked to create a
24649 # shared library.
24650 postdeps=$lt_postdeps_RC
24651
24652 # The library search path used internally by the compiler when linking
24653 # a shared library.
24654 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24655
24656 # Method to check whether dependent libraries are shared objects.
24657 deplibs_check_method=$lt_deplibs_check_method
24658
24659 # Command to use when deplibs_check_method == file_magic.
24660 file_magic_cmd=$lt_file_magic_cmd
24661
24662 # Flag that allows shared libraries with undefined symbols to be built.
24663 allow_undefined_flag=$lt_allow_undefined_flag_RC
24664
24665 # Flag that forces no undefined symbols.
24666 no_undefined_flag=$lt_no_undefined_flag_RC
24667
24668 # Commands used to finish a libtool library installation in a directory.
24669 finish_cmds=$lt_finish_cmds
24670
24671 # Same as above, but a single script fragment to be evaled but not shown.
24672 finish_eval=$lt_finish_eval
24673
24674 # Take the output of nm and produce a listing of raw symbols and C names.
24675 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24676
24677 # Transform the output of nm in a proper C declaration
24678 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24679
24680 # Transform the output of nm in a C name address pair
24681 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24682
24683 # This is the shared library runtime path variable.
24684 runpath_var=$runpath_var
24685
24686 # This is the shared library path variable.
24687 shlibpath_var=$shlibpath_var
24688
24689 # Is shlibpath searched before the hard-coded library search path?
24690 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24691
24692 # How to hardcode a shared library path into an executable.
24693 hardcode_action=$hardcode_action_RC
24694
24695 # Whether we should hardcode library paths into libraries.
24696 hardcode_into_libs=$hardcode_into_libs
24697
24698 # Flag to hardcode \$libdir into a binary during linking.
24699 # This must work even if \$libdir does not exist.
24700 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24701
24702 # If ld is used when linking, flag to hardcode \$libdir into
24703 # a binary during linking. This must work even if \$libdir does
24704 # not exist.
24705 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24706
24707 # Whether we need a single -rpath flag with a separated argument.
24708 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24709
24710 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24711 # resulting binary.
24712 hardcode_direct=$hardcode_direct_RC
24713
24714 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24715 # resulting binary.
24716 hardcode_minus_L=$hardcode_minus_L_RC
24717
24718 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24719 # the resulting binary.
24720 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24721
24722 # Set to yes if building a shared library automatically hardcodes DIR into the library
24723 # and all subsequent libraries and executables linked against it.
24724 hardcode_automatic=$hardcode_automatic_RC
24725
24726 # Variables whose values should be saved in libtool wrapper scripts and
24727 # restored at relink time.
24728 variables_saved_for_relink="$variables_saved_for_relink"
24729
24730 # Whether libtool must link a program against all its dependency libraries.
24731 link_all_deplibs=$link_all_deplibs_RC
24732
24733 # Compile-time system search path for libraries
24734 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24735
24736 # Run-time system search path for libraries
24737 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24738
24739 # Fix the shell variable \$srcfile for the compiler.
24740 fix_srcfile_path="$fix_srcfile_path_RC"
24741
24742 # Set to yes if exported symbols are required.
24743 always_export_symbols=$always_export_symbols_RC
24744
24745 # The commands to list exported symbols.
24746 export_symbols_cmds=$lt_export_symbols_cmds_RC
24747
24748 # The commands to extract the exported symbol list from a shared archive.
24749 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24750
24751 # Symbols that should not be listed in the preloaded symbols.
24752 exclude_expsyms=$lt_exclude_expsyms_RC
24753
24754 # Symbols that must always be exported.
24755 include_expsyms=$lt_include_expsyms_RC
24756
24757 # ### END LIBTOOL TAG CONFIG: $tagname
24758
24759 __EOF__
24760
24761
24762 else
24763   # If there is no Makefile yet, we rely on a make rule to execute
24764   # `config.status --recheck' to rerun these tests and create the
24765   # libtool script then.
24766   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24767   if test -f "$ltmain_in"; then
24768     test -f Makefile && make "$ltmain"
24769   fi
24770 fi
24771
24772
24773 ac_ext=c
24774 ac_cpp='$CPP $CPPFLAGS'
24775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24778
24779 CC="$lt_save_CC"
24780
24781         ;;
24782
24783       *)
24784         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24785 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24786    { (exit 1); exit 1; }; }
24787         ;;
24788       esac
24789
24790       # Append the new tag name to the list of available tags.
24791       if test -n "$tagname" ; then
24792       available_tags="$available_tags $tagname"
24793     fi
24794     fi
24795   done
24796   IFS="$lt_save_ifs"
24797
24798   # Now substitute the updated list of available tags.
24799   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24800     mv "${ofile}T" "$ofile"
24801     chmod +x "$ofile"
24802   else
24803     rm -f "${ofile}T"
24804     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24805 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24806    { (exit 1); exit 1; }; }
24807   fi
24808 fi
24809
24810
24811
24812 # This can be used to rebuild libtool when needed
24813 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24814
24815 # Always use our own libtool.
24816 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
24817
24818 # Prevent multiple expansion
24819
24820
24821
24822
24823
24824
24825
24826
24827
24828
24829
24830
24831
24832
24833
24834
24835
24836
24837
24838
24839
24840 if test "$lt_cv_dlopen_self" = "yes" ; then
24841
24842 cat >>confdefs.h <<\_ACEOF
24843 #define CAN_DLOPEN_SELF 1
24844 _ACEOF
24845
24846 fi
24847
24848 etags_version=`$ETAGS --version 2>&1`
24849 case "$etags_version" in
24850         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24851         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24852         *) ETAGSFLAGS="" ;;
24853 esac
24854 ETAGSFLAGS=$ETAGSFLAGS
24855
24856
24857 if test "$WITH_LLVMGCCDIR" = "default" ; then
24858   LLVMGCC="llvm-gcc${EXEEXT}"
24859   LLVMGXX="llvm-g++${EXEEXT}"
24860   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24861 set dummy $LLVMGCC; ac_word=$2
24862 echo "$as_me:$LINENO: checking for $ac_word" >&5
24863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24864 if test "${ac_cv_path_LLVMGCC+set}" = set; then
24865   echo $ECHO_N "(cached) $ECHO_C" >&6
24866 else
24867   case $LLVMGCC in
24868   [\\/]* | ?:[\\/]*)
24869   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24870   ;;
24871   *)
24872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24873 for as_dir in $PATH
24874 do
24875   IFS=$as_save_IFS
24876   test -z "$as_dir" && as_dir=.
24877   for ac_exec_ext in '' $ac_executable_extensions; do
24878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24879     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24881     break 2
24882   fi
24883 done
24884 done
24885
24886   ;;
24887 esac
24888 fi
24889 LLVMGCC=$ac_cv_path_LLVMGCC
24890
24891 if test -n "$LLVMGCC"; then
24892   echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24893 echo "${ECHO_T}$LLVMGCC" >&6
24894 else
24895   echo "$as_me:$LINENO: result: no" >&5
24896 echo "${ECHO_T}no" >&6
24897 fi
24898
24899   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24900 set dummy $LLVMGXX; ac_word=$2
24901 echo "$as_me:$LINENO: checking for $ac_word" >&5
24902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24903 if test "${ac_cv_path_LLVMGXX+set}" = set; then
24904   echo $ECHO_N "(cached) $ECHO_C" >&6
24905 else
24906   case $LLVMGXX in
24907   [\\/]* | ?:[\\/]*)
24908   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24909   ;;
24910   *)
24911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24912 for as_dir in $PATH
24913 do
24914   IFS=$as_save_IFS
24915   test -z "$as_dir" && as_dir=.
24916   for ac_exec_ext in '' $ac_executable_extensions; do
24917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24918     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24920     break 2
24921   fi
24922 done
24923 done
24924
24925   ;;
24926 esac
24927 fi
24928 LLVMGXX=$ac_cv_path_LLVMGXX
24929
24930 if test -n "$LLVMGXX"; then
24931   echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24932 echo "${ECHO_T}$LLVMGXX" >&6
24933 else
24934   echo "$as_me:$LINENO: result: no" >&5
24935 echo "${ECHO_T}no" >&6
24936 fi
24937
24938 else
24939   LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24940   LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
24941   LLVMGCC=$LLVMGCC
24942
24943   LLVMGXX=$LLVMGXX
24944
24945 fi
24946
24947 echo "$as_me:$LINENO: checking tool compatibility" >&5
24948 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24949
24950 ICC=no
24951 IXX=no
24952 case $CC in
24953   icc*|icpc*)
24954     ICC=yes
24955     IXX=yes
24956     ;;
24957    *)
24958     ;;
24959 esac
24960
24961 if test "$GCC" != "yes" && test "$ICC" != "yes"
24962 then
24963   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24964 echo "$as_me: error: gcc|icc required but not found" >&2;}
24965    { (exit 1); exit 1; }; }
24966 fi
24967
24968 if test "$GXX" != "yes" && test "$IXX" != "yes"
24969 then
24970   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24971 echo "$as_me: error: g++|icc required but not found" >&2;}
24972    { (exit 1); exit 1; }; }
24973 fi
24974
24975 if test "$GCC" = "yes"
24976 then
24977   gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
24978   if test "$gccmajor" -lt "3"
24979   then
24980     { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24981 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24982    { (exit 1); exit 1; }; }
24983   fi
24984 fi
24985
24986 if test -z "$llvm_cv_gnu_make_command"
24987 then
24988   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24989 echo "$as_me: error: GNU Make required but not found" >&2;}
24990    { (exit 1); exit 1; }; }
24991 fi
24992
24993 echo "$as_me:$LINENO: result: ok" >&5
24994 echo "${ECHO_T}ok" >&6
24995
24996
24997
24998 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24999 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
25000 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25001   echo $ECHO_N "(cached) $ECHO_C" >&6
25002 else
25003   ac_check_lib_save_LIBS=$LIBS
25004 LIBS="-lelf  $LIBS"
25005 cat >conftest.$ac_ext <<_ACEOF
25006 /* confdefs.h.  */
25007 _ACEOF
25008 cat confdefs.h >>conftest.$ac_ext
25009 cat >>conftest.$ac_ext <<_ACEOF
25010 /* end confdefs.h.  */
25011
25012 /* Override any gcc2 internal prototype to avoid an error.  */
25013 #ifdef __cplusplus
25014 extern "C"
25015 #endif
25016 /* We use char because int might match the return type of a gcc2
25017    builtin and then its argument prototype would still apply.  */
25018 char elf_begin ();
25019 int
25020 main ()
25021 {
25022 elf_begin ();
25023   ;
25024   return 0;
25025 }
25026 _ACEOF
25027 rm -f conftest.$ac_objext conftest$ac_exeext
25028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25029   (eval $ac_link) 2>conftest.er1
25030   ac_status=$?
25031   grep -v '^ *+' conftest.er1 >conftest.err
25032   rm -f conftest.er1
25033   cat conftest.err >&5
25034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035   (exit $ac_status); } &&
25036          { ac_try='test -z "$ac_c_werror_flag"
25037                          || test ! -s conftest.err'
25038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25039   (eval $ac_try) 2>&5
25040   ac_status=$?
25041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042   (exit $ac_status); }; } &&
25043          { ac_try='test -s conftest$ac_exeext'
25044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25045   (eval $ac_try) 2>&5
25046   ac_status=$?
25047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048   (exit $ac_status); }; }; then
25049   ac_cv_lib_elf_elf_begin=yes
25050 else
25051   echo "$as_me: failed program was:" >&5
25052 sed 's/^/| /' conftest.$ac_ext >&5
25053
25054 ac_cv_lib_elf_elf_begin=no
25055 fi
25056 rm -f conftest.err conftest.$ac_objext \
25057       conftest$ac_exeext conftest.$ac_ext
25058 LIBS=$ac_check_lib_save_LIBS
25059 fi
25060 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25061 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25062 if test $ac_cv_lib_elf_elf_begin = yes; then
25063   cat >>confdefs.h <<_ACEOF
25064 #define HAVE_LIBELF 1
25065 _ACEOF
25066
25067   LIBS="-lelf $LIBS"
25068
25069 fi
25070
25071
25072 echo "$as_me:$LINENO: checking for sin in -lm" >&5
25073 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25074 if test "${ac_cv_lib_m_sin+set}" = set; then
25075   echo $ECHO_N "(cached) $ECHO_C" >&6
25076 else
25077   ac_check_lib_save_LIBS=$LIBS
25078 LIBS="-lm  $LIBS"
25079 cat >conftest.$ac_ext <<_ACEOF
25080 /* confdefs.h.  */
25081 _ACEOF
25082 cat confdefs.h >>conftest.$ac_ext
25083 cat >>conftest.$ac_ext <<_ACEOF
25084 /* end confdefs.h.  */
25085
25086 /* Override any gcc2 internal prototype to avoid an error.  */
25087 #ifdef __cplusplus
25088 extern "C"
25089 #endif
25090 /* We use char because int might match the return type of a gcc2
25091    builtin and then its argument prototype would still apply.  */
25092 char sin ();
25093 int
25094 main ()
25095 {
25096 sin ();
25097   ;
25098   return 0;
25099 }
25100 _ACEOF
25101 rm -f conftest.$ac_objext conftest$ac_exeext
25102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25103   (eval $ac_link) 2>conftest.er1
25104   ac_status=$?
25105   grep -v '^ *+' conftest.er1 >conftest.err
25106   rm -f conftest.er1
25107   cat conftest.err >&5
25108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109   (exit $ac_status); } &&
25110          { ac_try='test -z "$ac_c_werror_flag"
25111                          || test ! -s conftest.err'
25112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25113   (eval $ac_try) 2>&5
25114   ac_status=$?
25115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116   (exit $ac_status); }; } &&
25117          { ac_try='test -s conftest$ac_exeext'
25118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25119   (eval $ac_try) 2>&5
25120   ac_status=$?
25121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122   (exit $ac_status); }; }; then
25123   ac_cv_lib_m_sin=yes
25124 else
25125   echo "$as_me: failed program was:" >&5
25126 sed 's/^/| /' conftest.$ac_ext >&5
25127
25128 ac_cv_lib_m_sin=no
25129 fi
25130 rm -f conftest.err conftest.$ac_objext \
25131       conftest$ac_exeext conftest.$ac_ext
25132 LIBS=$ac_check_lib_save_LIBS
25133 fi
25134 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25135 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25136 if test $ac_cv_lib_m_sin = yes; then
25137   cat >>confdefs.h <<_ACEOF
25138 #define HAVE_LIBM 1
25139 _ACEOF
25140
25141   LIBS="-lm $LIBS"
25142
25143 fi
25144
25145
25146 echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25147 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25148 if test "${ac_cv_search_lt_dlopen+set}" = set; then
25149   echo $ECHO_N "(cached) $ECHO_C" >&6
25150 else
25151   ac_func_search_save_LIBS=$LIBS
25152 ac_cv_search_lt_dlopen=no
25153 cat >conftest.$ac_ext <<_ACEOF
25154 /* confdefs.h.  */
25155 _ACEOF
25156 cat confdefs.h >>conftest.$ac_ext
25157 cat >>conftest.$ac_ext <<_ACEOF
25158 /* end confdefs.h.  */
25159
25160 /* Override any gcc2 internal prototype to avoid an error.  */
25161 #ifdef __cplusplus
25162 extern "C"
25163 #endif
25164 /* We use char because int might match the return type of a gcc2
25165    builtin and then its argument prototype would still apply.  */
25166 char lt_dlopen ();
25167 int
25168 main ()
25169 {
25170 lt_dlopen ();
25171   ;
25172   return 0;
25173 }
25174 _ACEOF
25175 rm -f conftest.$ac_objext conftest$ac_exeext
25176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25177   (eval $ac_link) 2>conftest.er1
25178   ac_status=$?
25179   grep -v '^ *+' conftest.er1 >conftest.err
25180   rm -f conftest.er1
25181   cat conftest.err >&5
25182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183   (exit $ac_status); } &&
25184          { ac_try='test -z "$ac_c_werror_flag"
25185                          || test ! -s conftest.err'
25186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25187   (eval $ac_try) 2>&5
25188   ac_status=$?
25189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190   (exit $ac_status); }; } &&
25191          { ac_try='test -s conftest$ac_exeext'
25192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193   (eval $ac_try) 2>&5
25194   ac_status=$?
25195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196   (exit $ac_status); }; }; then
25197   ac_cv_search_lt_dlopen="none required"
25198 else
25199   echo "$as_me: failed program was:" >&5
25200 sed 's/^/| /' conftest.$ac_ext >&5
25201
25202 fi
25203 rm -f conftest.err conftest.$ac_objext \
25204       conftest$ac_exeext conftest.$ac_ext
25205 if test "$ac_cv_search_lt_dlopen" = no; then
25206   for ac_lib in ltdl; do
25207     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25208     cat >conftest.$ac_ext <<_ACEOF
25209 /* confdefs.h.  */
25210 _ACEOF
25211 cat confdefs.h >>conftest.$ac_ext
25212 cat >>conftest.$ac_ext <<_ACEOF
25213 /* end confdefs.h.  */
25214
25215 /* Override any gcc2 internal prototype to avoid an error.  */
25216 #ifdef __cplusplus
25217 extern "C"
25218 #endif
25219 /* We use char because int might match the return type of a gcc2
25220    builtin and then its argument prototype would still apply.  */
25221 char lt_dlopen ();
25222 int
25223 main ()
25224 {
25225 lt_dlopen ();
25226   ;
25227   return 0;
25228 }
25229 _ACEOF
25230 rm -f conftest.$ac_objext conftest$ac_exeext
25231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25232   (eval $ac_link) 2>conftest.er1
25233   ac_status=$?
25234   grep -v '^ *+' conftest.er1 >conftest.err
25235   rm -f conftest.er1
25236   cat conftest.err >&5
25237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238   (exit $ac_status); } &&
25239          { ac_try='test -z "$ac_c_werror_flag"
25240                          || test ! -s conftest.err'
25241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25242   (eval $ac_try) 2>&5
25243   ac_status=$?
25244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245   (exit $ac_status); }; } &&
25246          { ac_try='test -s conftest$ac_exeext'
25247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25248   (eval $ac_try) 2>&5
25249   ac_status=$?
25250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251   (exit $ac_status); }; }; then
25252   ac_cv_search_lt_dlopen="-l$ac_lib"
25253 break
25254 else
25255   echo "$as_me: failed program was:" >&5
25256 sed 's/^/| /' conftest.$ac_ext >&5
25257
25258 fi
25259 rm -f conftest.err conftest.$ac_objext \
25260       conftest$ac_exeext conftest.$ac_ext
25261   done
25262 fi
25263 LIBS=$ac_func_search_save_LIBS
25264 fi
25265 echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25266 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25267 if test "$ac_cv_search_lt_dlopen" != no; then
25268   test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25269
25270 cat >>confdefs.h <<\_ACEOF
25271 #define HAVE_LT_DLOPEN 1
25272 _ACEOF
25273
25274 else
25275   { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25276                            not be available" >&5
25277 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25278                            not be available" >&2;}
25279 fi
25280
25281
25282 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25283 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25284 if test "${ac_cv_search_dlopen+set}" = set; then
25285   echo $ECHO_N "(cached) $ECHO_C" >&6
25286 else
25287   ac_func_search_save_LIBS=$LIBS
25288 ac_cv_search_dlopen=no
25289 cat >conftest.$ac_ext <<_ACEOF
25290 /* confdefs.h.  */
25291 _ACEOF
25292 cat confdefs.h >>conftest.$ac_ext
25293 cat >>conftest.$ac_ext <<_ACEOF
25294 /* end confdefs.h.  */
25295
25296 /* Override any gcc2 internal prototype to avoid an error.  */
25297 #ifdef __cplusplus
25298 extern "C"
25299 #endif
25300 /* We use char because int might match the return type of a gcc2
25301    builtin and then its argument prototype would still apply.  */
25302 char dlopen ();
25303 int
25304 main ()
25305 {
25306 dlopen ();
25307   ;
25308   return 0;
25309 }
25310 _ACEOF
25311 rm -f conftest.$ac_objext conftest$ac_exeext
25312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25313   (eval $ac_link) 2>conftest.er1
25314   ac_status=$?
25315   grep -v '^ *+' conftest.er1 >conftest.err
25316   rm -f conftest.er1
25317   cat conftest.err >&5
25318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319   (exit $ac_status); } &&
25320          { ac_try='test -z "$ac_c_werror_flag"
25321                          || test ! -s conftest.err'
25322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25323   (eval $ac_try) 2>&5
25324   ac_status=$?
25325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326   (exit $ac_status); }; } &&
25327          { ac_try='test -s conftest$ac_exeext'
25328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25329   (eval $ac_try) 2>&5
25330   ac_status=$?
25331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332   (exit $ac_status); }; }; then
25333   ac_cv_search_dlopen="none required"
25334 else
25335   echo "$as_me: failed program was:" >&5
25336 sed 's/^/| /' conftest.$ac_ext >&5
25337
25338 fi
25339 rm -f conftest.err conftest.$ac_objext \
25340       conftest$ac_exeext conftest.$ac_ext
25341 if test "$ac_cv_search_dlopen" = no; then
25342   for ac_lib in dl; do
25343     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25344     cat >conftest.$ac_ext <<_ACEOF
25345 /* confdefs.h.  */
25346 _ACEOF
25347 cat confdefs.h >>conftest.$ac_ext
25348 cat >>conftest.$ac_ext <<_ACEOF
25349 /* end confdefs.h.  */
25350
25351 /* Override any gcc2 internal prototype to avoid an error.  */
25352 #ifdef __cplusplus
25353 extern "C"
25354 #endif
25355 /* We use char because int might match the return type of a gcc2
25356    builtin and then its argument prototype would still apply.  */
25357 char dlopen ();
25358 int
25359 main ()
25360 {
25361 dlopen ();
25362   ;
25363   return 0;
25364 }
25365 _ACEOF
25366 rm -f conftest.$ac_objext conftest$ac_exeext
25367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25368   (eval $ac_link) 2>conftest.er1
25369   ac_status=$?
25370   grep -v '^ *+' conftest.er1 >conftest.err
25371   rm -f conftest.er1
25372   cat conftest.err >&5
25373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374   (exit $ac_status); } &&
25375          { ac_try='test -z "$ac_c_werror_flag"
25376                          || test ! -s conftest.err'
25377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25378   (eval $ac_try) 2>&5
25379   ac_status=$?
25380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381   (exit $ac_status); }; } &&
25382          { ac_try='test -s conftest$ac_exeext'
25383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25384   (eval $ac_try) 2>&5
25385   ac_status=$?
25386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387   (exit $ac_status); }; }; then
25388   ac_cv_search_dlopen="-l$ac_lib"
25389 break
25390 else
25391   echo "$as_me: failed program was:" >&5
25392 sed 's/^/| /' conftest.$ac_ext >&5
25393
25394 fi
25395 rm -f conftest.err conftest.$ac_objext \
25396       conftest$ac_exeext conftest.$ac_ext
25397   done
25398 fi
25399 LIBS=$ac_func_search_save_LIBS
25400 fi
25401 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25402 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25403 if test "$ac_cv_search_dlopen" != no; then
25404   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
25405
25406 cat >>confdefs.h <<\_ACEOF
25407 #define HAVE_DLOPEN 1
25408 _ACEOF
25409
25410 else
25411   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25412 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
25413 fi
25414
25415
25416 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25417 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25418 if test "${ac_cv_search_mallinfo+set}" = set; then
25419   echo $ECHO_N "(cached) $ECHO_C" >&6
25420 else
25421   ac_func_search_save_LIBS=$LIBS
25422 ac_cv_search_mallinfo=no
25423 cat >conftest.$ac_ext <<_ACEOF
25424 /* confdefs.h.  */
25425 _ACEOF
25426 cat confdefs.h >>conftest.$ac_ext
25427 cat >>conftest.$ac_ext <<_ACEOF
25428 /* end confdefs.h.  */
25429
25430 /* Override any gcc2 internal prototype to avoid an error.  */
25431 #ifdef __cplusplus
25432 extern "C"
25433 #endif
25434 /* We use char because int might match the return type of a gcc2
25435    builtin and then its argument prototype would still apply.  */
25436 char mallinfo ();
25437 int
25438 main ()
25439 {
25440 mallinfo ();
25441   ;
25442   return 0;
25443 }
25444 _ACEOF
25445 rm -f conftest.$ac_objext conftest$ac_exeext
25446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25447   (eval $ac_link) 2>conftest.er1
25448   ac_status=$?
25449   grep -v '^ *+' conftest.er1 >conftest.err
25450   rm -f conftest.er1
25451   cat conftest.err >&5
25452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453   (exit $ac_status); } &&
25454          { ac_try='test -z "$ac_c_werror_flag"
25455                          || test ! -s conftest.err'
25456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25457   (eval $ac_try) 2>&5
25458   ac_status=$?
25459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460   (exit $ac_status); }; } &&
25461          { ac_try='test -s conftest$ac_exeext'
25462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25463   (eval $ac_try) 2>&5
25464   ac_status=$?
25465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466   (exit $ac_status); }; }; then
25467   ac_cv_search_mallinfo="none required"
25468 else
25469   echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.$ac_ext >&5
25471
25472 fi
25473 rm -f conftest.err conftest.$ac_objext \
25474       conftest$ac_exeext conftest.$ac_ext
25475 if test "$ac_cv_search_mallinfo" = no; then
25476   for ac_lib in malloc; do
25477     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25478     cat >conftest.$ac_ext <<_ACEOF
25479 /* confdefs.h.  */
25480 _ACEOF
25481 cat confdefs.h >>conftest.$ac_ext
25482 cat >>conftest.$ac_ext <<_ACEOF
25483 /* end confdefs.h.  */
25484
25485 /* Override any gcc2 internal prototype to avoid an error.  */
25486 #ifdef __cplusplus
25487 extern "C"
25488 #endif
25489 /* We use char because int might match the return type of a gcc2
25490    builtin and then its argument prototype would still apply.  */
25491 char mallinfo ();
25492 int
25493 main ()
25494 {
25495 mallinfo ();
25496   ;
25497   return 0;
25498 }
25499 _ACEOF
25500 rm -f conftest.$ac_objext conftest$ac_exeext
25501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25502   (eval $ac_link) 2>conftest.er1
25503   ac_status=$?
25504   grep -v '^ *+' conftest.er1 >conftest.err
25505   rm -f conftest.er1
25506   cat conftest.err >&5
25507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508   (exit $ac_status); } &&
25509          { ac_try='test -z "$ac_c_werror_flag"
25510                          || test ! -s conftest.err'
25511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25512   (eval $ac_try) 2>&5
25513   ac_status=$?
25514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515   (exit $ac_status); }; } &&
25516          { ac_try='test -s conftest$ac_exeext'
25517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25518   (eval $ac_try) 2>&5
25519   ac_status=$?
25520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521   (exit $ac_status); }; }; then
25522   ac_cv_search_mallinfo="-l$ac_lib"
25523 break
25524 else
25525   echo "$as_me: failed program was:" >&5
25526 sed 's/^/| /' conftest.$ac_ext >&5
25527
25528 fi
25529 rm -f conftest.err conftest.$ac_objext \
25530       conftest$ac_exeext conftest.$ac_ext
25531   done
25532 fi
25533 LIBS=$ac_func_search_save_LIBS
25534 fi
25535 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25536 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25537 if test "$ac_cv_search_mallinfo" != no; then
25538   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
25539
25540 cat >>confdefs.h <<\_ACEOF
25541 #define HAVE_MALLINFO 1
25542 _ACEOF
25543
25544 fi
25545
25546
25547 if test "$ENABLE_THREADS" -eq 1 ; then
25548
25549 echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25550 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25551 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25552   echo $ECHO_N "(cached) $ECHO_C" >&6
25553 else
25554   ac_check_lib_save_LIBS=$LIBS
25555 LIBS="-lpthread  $LIBS"
25556 cat >conftest.$ac_ext <<_ACEOF
25557 /* confdefs.h.  */
25558 _ACEOF
25559 cat confdefs.h >>conftest.$ac_ext
25560 cat >>conftest.$ac_ext <<_ACEOF
25561 /* end confdefs.h.  */
25562
25563 /* Override any gcc2 internal prototype to avoid an error.  */
25564 #ifdef __cplusplus
25565 extern "C"
25566 #endif
25567 /* We use char because int might match the return type of a gcc2
25568    builtin and then its argument prototype would still apply.  */
25569 char pthread_mutex_init ();
25570 int
25571 main ()
25572 {
25573 pthread_mutex_init ();
25574   ;
25575   return 0;
25576 }
25577 _ACEOF
25578 rm -f conftest.$ac_objext conftest$ac_exeext
25579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25580   (eval $ac_link) 2>conftest.er1
25581   ac_status=$?
25582   grep -v '^ *+' conftest.er1 >conftest.err
25583   rm -f conftest.er1
25584   cat conftest.err >&5
25585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586   (exit $ac_status); } &&
25587          { ac_try='test -z "$ac_c_werror_flag"
25588                          || test ! -s conftest.err'
25589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25590   (eval $ac_try) 2>&5
25591   ac_status=$?
25592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593   (exit $ac_status); }; } &&
25594          { ac_try='test -s conftest$ac_exeext'
25595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25596   (eval $ac_try) 2>&5
25597   ac_status=$?
25598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599   (exit $ac_status); }; }; then
25600   ac_cv_lib_pthread_pthread_mutex_init=yes
25601 else
25602   echo "$as_me: failed program was:" >&5
25603 sed 's/^/| /' conftest.$ac_ext >&5
25604
25605 ac_cv_lib_pthread_pthread_mutex_init=no
25606 fi
25607 rm -f conftest.err conftest.$ac_objext \
25608       conftest$ac_exeext conftest.$ac_ext
25609 LIBS=$ac_check_lib_save_LIBS
25610 fi
25611 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25612 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25613 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25614   cat >>confdefs.h <<_ACEOF
25615 #define HAVE_LIBPTHREAD 1
25616 _ACEOF
25617
25618   LIBS="-lpthread $LIBS"
25619
25620 fi
25621
25622   echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25623 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25624 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25625   echo $ECHO_N "(cached) $ECHO_C" >&6
25626 else
25627   ac_func_search_save_LIBS=$LIBS
25628 ac_cv_search_pthread_mutex_lock=no
25629 cat >conftest.$ac_ext <<_ACEOF
25630 /* confdefs.h.  */
25631 _ACEOF
25632 cat confdefs.h >>conftest.$ac_ext
25633 cat >>conftest.$ac_ext <<_ACEOF
25634 /* end confdefs.h.  */
25635
25636 /* Override any gcc2 internal prototype to avoid an error.  */
25637 #ifdef __cplusplus
25638 extern "C"
25639 #endif
25640 /* We use char because int might match the return type of a gcc2
25641    builtin and then its argument prototype would still apply.  */
25642 char pthread_mutex_lock ();
25643 int
25644 main ()
25645 {
25646 pthread_mutex_lock ();
25647   ;
25648   return 0;
25649 }
25650 _ACEOF
25651 rm -f conftest.$ac_objext conftest$ac_exeext
25652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25653   (eval $ac_link) 2>conftest.er1
25654   ac_status=$?
25655   grep -v '^ *+' conftest.er1 >conftest.err
25656   rm -f conftest.er1
25657   cat conftest.err >&5
25658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659   (exit $ac_status); } &&
25660          { ac_try='test -z "$ac_c_werror_flag"
25661                          || test ! -s conftest.err'
25662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25663   (eval $ac_try) 2>&5
25664   ac_status=$?
25665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666   (exit $ac_status); }; } &&
25667          { ac_try='test -s conftest$ac_exeext'
25668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25669   (eval $ac_try) 2>&5
25670   ac_status=$?
25671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672   (exit $ac_status); }; }; then
25673   ac_cv_search_pthread_mutex_lock="none required"
25674 else
25675   echo "$as_me: failed program was:" >&5
25676 sed 's/^/| /' conftest.$ac_ext >&5
25677
25678 fi
25679 rm -f conftest.err conftest.$ac_objext \
25680       conftest$ac_exeext conftest.$ac_ext
25681 if test "$ac_cv_search_pthread_mutex_lock" = no; then
25682   for ac_lib in pthread; do
25683     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25684     cat >conftest.$ac_ext <<_ACEOF
25685 /* confdefs.h.  */
25686 _ACEOF
25687 cat confdefs.h >>conftest.$ac_ext
25688 cat >>conftest.$ac_ext <<_ACEOF
25689 /* end confdefs.h.  */
25690
25691 /* Override any gcc2 internal prototype to avoid an error.  */
25692 #ifdef __cplusplus
25693 extern "C"
25694 #endif
25695 /* We use char because int might match the return type of a gcc2
25696    builtin and then its argument prototype would still apply.  */
25697 char pthread_mutex_lock ();
25698 int
25699 main ()
25700 {
25701 pthread_mutex_lock ();
25702   ;
25703   return 0;
25704 }
25705 _ACEOF
25706 rm -f conftest.$ac_objext conftest$ac_exeext
25707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25708   (eval $ac_link) 2>conftest.er1
25709   ac_status=$?
25710   grep -v '^ *+' conftest.er1 >conftest.err
25711   rm -f conftest.er1
25712   cat conftest.err >&5
25713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714   (exit $ac_status); } &&
25715          { ac_try='test -z "$ac_c_werror_flag"
25716                          || test ! -s conftest.err'
25717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25718   (eval $ac_try) 2>&5
25719   ac_status=$?
25720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721   (exit $ac_status); }; } &&
25722          { ac_try='test -s conftest$ac_exeext'
25723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25724   (eval $ac_try) 2>&5
25725   ac_status=$?
25726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727   (exit $ac_status); }; }; then
25728   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25729 break
25730 else
25731   echo "$as_me: failed program was:" >&5
25732 sed 's/^/| /' conftest.$ac_ext >&5
25733
25734 fi
25735 rm -f conftest.err conftest.$ac_objext \
25736       conftest$ac_exeext conftest.$ac_ext
25737   done
25738 fi
25739 LIBS=$ac_func_search_save_LIBS
25740 fi
25741 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25742 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25743 if test "$ac_cv_search_pthread_mutex_lock" != no; then
25744   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
25745
25746 cat >>confdefs.h <<\_ACEOF
25747 #define HAVE_PTHREAD_MUTEX_LOCK 1
25748 _ACEOF
25749
25750 fi
25751
25752 fi
25753
25754
25755
25756
25757
25758
25759
25760 ac_header_dirent=no
25761 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25762   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25763 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25764 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25766   echo $ECHO_N "(cached) $ECHO_C" >&6
25767 else
25768   cat >conftest.$ac_ext <<_ACEOF
25769 /* confdefs.h.  */
25770 _ACEOF
25771 cat confdefs.h >>conftest.$ac_ext
25772 cat >>conftest.$ac_ext <<_ACEOF
25773 /* end confdefs.h.  */
25774 #include <sys/types.h>
25775 #include <$ac_hdr>
25776
25777 int
25778 main ()
25779 {
25780 if ((DIR *) 0)
25781 return 0;
25782   ;
25783   return 0;
25784 }
25785 _ACEOF
25786 rm -f conftest.$ac_objext
25787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25788   (eval $ac_compile) 2>conftest.er1
25789   ac_status=$?
25790   grep -v '^ *+' conftest.er1 >conftest.err
25791   rm -f conftest.er1
25792   cat conftest.err >&5
25793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794   (exit $ac_status); } &&
25795          { ac_try='test -z "$ac_c_werror_flag"
25796                          || test ! -s conftest.err'
25797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25798   (eval $ac_try) 2>&5
25799   ac_status=$?
25800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801   (exit $ac_status); }; } &&
25802          { ac_try='test -s conftest.$ac_objext'
25803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25804   (eval $ac_try) 2>&5
25805   ac_status=$?
25806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25807   (exit $ac_status); }; }; then
25808   eval "$as_ac_Header=yes"
25809 else
25810   echo "$as_me: failed program was:" >&5
25811 sed 's/^/| /' conftest.$ac_ext >&5
25812
25813 eval "$as_ac_Header=no"
25814 fi
25815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25816 fi
25817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25820   cat >>confdefs.h <<_ACEOF
25821 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25822 _ACEOF
25823
25824 ac_header_dirent=$ac_hdr; break
25825 fi
25826
25827 done
25828 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25829 if test $ac_header_dirent = dirent.h; then
25830   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25831 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25832 if test "${ac_cv_search_opendir+set}" = set; then
25833   echo $ECHO_N "(cached) $ECHO_C" >&6
25834 else
25835   ac_func_search_save_LIBS=$LIBS
25836 ac_cv_search_opendir=no
25837 cat >conftest.$ac_ext <<_ACEOF
25838 /* confdefs.h.  */
25839 _ACEOF
25840 cat confdefs.h >>conftest.$ac_ext
25841 cat >>conftest.$ac_ext <<_ACEOF
25842 /* end confdefs.h.  */
25843
25844 /* Override any gcc2 internal prototype to avoid an error.  */
25845 #ifdef __cplusplus
25846 extern "C"
25847 #endif
25848 /* We use char because int might match the return type of a gcc2
25849    builtin and then its argument prototype would still apply.  */
25850 char opendir ();
25851 int
25852 main ()
25853 {
25854 opendir ();
25855   ;
25856   return 0;
25857 }
25858 _ACEOF
25859 rm -f conftest.$ac_objext conftest$ac_exeext
25860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25861   (eval $ac_link) 2>conftest.er1
25862   ac_status=$?
25863   grep -v '^ *+' conftest.er1 >conftest.err
25864   rm -f conftest.er1
25865   cat conftest.err >&5
25866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25867   (exit $ac_status); } &&
25868          { ac_try='test -z "$ac_c_werror_flag"
25869                          || test ! -s conftest.err'
25870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25871   (eval $ac_try) 2>&5
25872   ac_status=$?
25873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874   (exit $ac_status); }; } &&
25875          { ac_try='test -s conftest$ac_exeext'
25876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25877   (eval $ac_try) 2>&5
25878   ac_status=$?
25879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880   (exit $ac_status); }; }; then
25881   ac_cv_search_opendir="none required"
25882 else
25883   echo "$as_me: failed program was:" >&5
25884 sed 's/^/| /' conftest.$ac_ext >&5
25885
25886 fi
25887 rm -f conftest.err conftest.$ac_objext \
25888       conftest$ac_exeext conftest.$ac_ext
25889 if test "$ac_cv_search_opendir" = no; then
25890   for ac_lib in dir; do
25891     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25892     cat >conftest.$ac_ext <<_ACEOF
25893 /* confdefs.h.  */
25894 _ACEOF
25895 cat confdefs.h >>conftest.$ac_ext
25896 cat >>conftest.$ac_ext <<_ACEOF
25897 /* end confdefs.h.  */
25898
25899 /* Override any gcc2 internal prototype to avoid an error.  */
25900 #ifdef __cplusplus
25901 extern "C"
25902 #endif
25903 /* We use char because int might match the return type of a gcc2
25904    builtin and then its argument prototype would still apply.  */
25905 char opendir ();
25906 int
25907 main ()
25908 {
25909 opendir ();
25910   ;
25911   return 0;
25912 }
25913 _ACEOF
25914 rm -f conftest.$ac_objext conftest$ac_exeext
25915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25916   (eval $ac_link) 2>conftest.er1
25917   ac_status=$?
25918   grep -v '^ *+' conftest.er1 >conftest.err
25919   rm -f conftest.er1
25920   cat conftest.err >&5
25921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922   (exit $ac_status); } &&
25923          { ac_try='test -z "$ac_c_werror_flag"
25924                          || test ! -s conftest.err'
25925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25926   (eval $ac_try) 2>&5
25927   ac_status=$?
25928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25929   (exit $ac_status); }; } &&
25930          { ac_try='test -s conftest$ac_exeext'
25931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25932   (eval $ac_try) 2>&5
25933   ac_status=$?
25934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935   (exit $ac_status); }; }; then
25936   ac_cv_search_opendir="-l$ac_lib"
25937 break
25938 else
25939   echo "$as_me: failed program was:" >&5
25940 sed 's/^/| /' conftest.$ac_ext >&5
25941
25942 fi
25943 rm -f conftest.err conftest.$ac_objext \
25944       conftest$ac_exeext conftest.$ac_ext
25945   done
25946 fi
25947 LIBS=$ac_func_search_save_LIBS
25948 fi
25949 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25950 echo "${ECHO_T}$ac_cv_search_opendir" >&6
25951 if test "$ac_cv_search_opendir" != no; then
25952   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25953
25954 fi
25955
25956 else
25957   echo "$as_me:$LINENO: checking for library containing opendir" >&5
25958 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25959 if test "${ac_cv_search_opendir+set}" = set; then
25960   echo $ECHO_N "(cached) $ECHO_C" >&6
25961 else
25962   ac_func_search_save_LIBS=$LIBS
25963 ac_cv_search_opendir=no
25964 cat >conftest.$ac_ext <<_ACEOF
25965 /* confdefs.h.  */
25966 _ACEOF
25967 cat confdefs.h >>conftest.$ac_ext
25968 cat >>conftest.$ac_ext <<_ACEOF
25969 /* end confdefs.h.  */
25970
25971 /* Override any gcc2 internal prototype to avoid an error.  */
25972 #ifdef __cplusplus
25973 extern "C"
25974 #endif
25975 /* We use char because int might match the return type of a gcc2
25976    builtin and then its argument prototype would still apply.  */
25977 char opendir ();
25978 int
25979 main ()
25980 {
25981 opendir ();
25982   ;
25983   return 0;
25984 }
25985 _ACEOF
25986 rm -f conftest.$ac_objext conftest$ac_exeext
25987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25988   (eval $ac_link) 2>conftest.er1
25989   ac_status=$?
25990   grep -v '^ *+' conftest.er1 >conftest.err
25991   rm -f conftest.er1
25992   cat conftest.err >&5
25993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994   (exit $ac_status); } &&
25995          { ac_try='test -z "$ac_c_werror_flag"
25996                          || test ! -s conftest.err'
25997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25998   (eval $ac_try) 2>&5
25999   ac_status=$?
26000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001   (exit $ac_status); }; } &&
26002          { ac_try='test -s conftest$ac_exeext'
26003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26004   (eval $ac_try) 2>&5
26005   ac_status=$?
26006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007   (exit $ac_status); }; }; then
26008   ac_cv_search_opendir="none required"
26009 else
26010   echo "$as_me: failed program was:" >&5
26011 sed 's/^/| /' conftest.$ac_ext >&5
26012
26013 fi
26014 rm -f conftest.err conftest.$ac_objext \
26015       conftest$ac_exeext conftest.$ac_ext
26016 if test "$ac_cv_search_opendir" = no; then
26017   for ac_lib in x; do
26018     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26019     cat >conftest.$ac_ext <<_ACEOF
26020 /* confdefs.h.  */
26021 _ACEOF
26022 cat confdefs.h >>conftest.$ac_ext
26023 cat >>conftest.$ac_ext <<_ACEOF
26024 /* end confdefs.h.  */
26025
26026 /* Override any gcc2 internal prototype to avoid an error.  */
26027 #ifdef __cplusplus
26028 extern "C"
26029 #endif
26030 /* We use char because int might match the return type of a gcc2
26031    builtin and then its argument prototype would still apply.  */
26032 char opendir ();
26033 int
26034 main ()
26035 {
26036 opendir ();
26037   ;
26038   return 0;
26039 }
26040 _ACEOF
26041 rm -f conftest.$ac_objext conftest$ac_exeext
26042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26043   (eval $ac_link) 2>conftest.er1
26044   ac_status=$?
26045   grep -v '^ *+' conftest.er1 >conftest.err
26046   rm -f conftest.er1
26047   cat conftest.err >&5
26048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049   (exit $ac_status); } &&
26050          { ac_try='test -z "$ac_c_werror_flag"
26051                          || test ! -s conftest.err'
26052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26053   (eval $ac_try) 2>&5
26054   ac_status=$?
26055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26056   (exit $ac_status); }; } &&
26057          { ac_try='test -s conftest$ac_exeext'
26058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26059   (eval $ac_try) 2>&5
26060   ac_status=$?
26061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26062   (exit $ac_status); }; }; then
26063   ac_cv_search_opendir="-l$ac_lib"
26064 break
26065 else
26066   echo "$as_me: failed program was:" >&5
26067 sed 's/^/| /' conftest.$ac_ext >&5
26068
26069 fi
26070 rm -f conftest.err conftest.$ac_objext \
26071       conftest$ac_exeext conftest.$ac_ext
26072   done
26073 fi
26074 LIBS=$ac_func_search_save_LIBS
26075 fi
26076 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26077 echo "${ECHO_T}$ac_cv_search_opendir" >&6
26078 if test "$ac_cv_search_opendir" != no; then
26079   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26080
26081 fi
26082
26083 fi
26084
26085 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26086 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26087 if test "${ac_cv_header_mmap_anon+set}" = set; then
26088   echo $ECHO_N "(cached) $ECHO_C" >&6
26089 else
26090    ac_ext=c
26091 ac_cpp='$CPP $CPPFLAGS'
26092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26095
26096   cat >conftest.$ac_ext <<_ACEOF
26097 /* confdefs.h.  */
26098 _ACEOF
26099 cat confdefs.h >>conftest.$ac_ext
26100 cat >>conftest.$ac_ext <<_ACEOF
26101 /* end confdefs.h.  */
26102 #include <sys/mman.h>
26103 #include <unistd.h>
26104 #include <fcntl.h>
26105 int
26106 main ()
26107 {
26108 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26109   ;
26110   return 0;
26111 }
26112 _ACEOF
26113 rm -f conftest.$ac_objext
26114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26115   (eval $ac_compile) 2>conftest.er1
26116   ac_status=$?
26117   grep -v '^ *+' conftest.er1 >conftest.err
26118   rm -f conftest.er1
26119   cat conftest.err >&5
26120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121   (exit $ac_status); } &&
26122          { ac_try='test -z "$ac_c_werror_flag"
26123                          || test ! -s conftest.err'
26124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26125   (eval $ac_try) 2>&5
26126   ac_status=$?
26127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26128   (exit $ac_status); }; } &&
26129          { ac_try='test -s conftest.$ac_objext'
26130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26131   (eval $ac_try) 2>&5
26132   ac_status=$?
26133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134   (exit $ac_status); }; }; then
26135   ac_cv_header_mmap_anon=yes
26136 else
26137   echo "$as_me: failed program was:" >&5
26138 sed 's/^/| /' conftest.$ac_ext >&5
26139
26140 ac_cv_header_mmap_anon=no
26141 fi
26142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26143   ac_ext=c
26144 ac_cpp='$CPP $CPPFLAGS'
26145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26148
26149
26150 fi
26151 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26152 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26153 if test "$ac_cv_header_mmap_anon" = yes; then
26154
26155 cat >>confdefs.h <<\_ACEOF
26156 #define HAVE_MMAP_ANONYMOUS 1
26157 _ACEOF
26158
26159 fi
26160
26161 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26162 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26163 if test "${ac_cv_header_stat_broken+set}" = set; then
26164   echo $ECHO_N "(cached) $ECHO_C" >&6
26165 else
26166   cat >conftest.$ac_ext <<_ACEOF
26167 /* confdefs.h.  */
26168 _ACEOF
26169 cat confdefs.h >>conftest.$ac_ext
26170 cat >>conftest.$ac_ext <<_ACEOF
26171 /* end confdefs.h.  */
26172 #include <sys/types.h>
26173 #include <sys/stat.h>
26174
26175 #if defined(S_ISBLK) && defined(S_IFDIR)
26176 # if S_ISBLK (S_IFDIR)
26177 You lose.
26178 # endif
26179 #endif
26180
26181 #if defined(S_ISBLK) && defined(S_IFCHR)
26182 # if S_ISBLK (S_IFCHR)
26183 You lose.
26184 # endif
26185 #endif
26186
26187 #if defined(S_ISLNK) && defined(S_IFREG)
26188 # if S_ISLNK (S_IFREG)
26189 You lose.
26190 # endif
26191 #endif
26192
26193 #if defined(S_ISSOCK) && defined(S_IFREG)
26194 # if S_ISSOCK (S_IFREG)
26195 You lose.
26196 # endif
26197 #endif
26198
26199 _ACEOF
26200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26201   $EGREP "You lose" >/dev/null 2>&1; then
26202   ac_cv_header_stat_broken=yes
26203 else
26204   ac_cv_header_stat_broken=no
26205 fi
26206 rm -f conftest*
26207
26208 fi
26209 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26210 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26211 if test $ac_cv_header_stat_broken = yes; then
26212
26213 cat >>confdefs.h <<\_ACEOF
26214 #define STAT_MACROS_BROKEN 1
26215 _ACEOF
26216
26217 fi
26218
26219 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26220 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26221 if test "${ac_cv_header_stdc+set}" = set; then
26222   echo $ECHO_N "(cached) $ECHO_C" >&6
26223 else
26224   cat >conftest.$ac_ext <<_ACEOF
26225 /* confdefs.h.  */
26226 _ACEOF
26227 cat confdefs.h >>conftest.$ac_ext
26228 cat >>conftest.$ac_ext <<_ACEOF
26229 /* end confdefs.h.  */
26230 #include <stdlib.h>
26231 #include <stdarg.h>
26232 #include <string.h>
26233 #include <float.h>
26234
26235 int
26236 main ()
26237 {
26238
26239   ;
26240   return 0;
26241 }
26242 _ACEOF
26243 rm -f conftest.$ac_objext
26244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26245   (eval $ac_compile) 2>conftest.er1
26246   ac_status=$?
26247   grep -v '^ *+' conftest.er1 >conftest.err
26248   rm -f conftest.er1
26249   cat conftest.err >&5
26250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251   (exit $ac_status); } &&
26252          { ac_try='test -z "$ac_c_werror_flag"
26253                          || test ! -s conftest.err'
26254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26255   (eval $ac_try) 2>&5
26256   ac_status=$?
26257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258   (exit $ac_status); }; } &&
26259          { ac_try='test -s conftest.$ac_objext'
26260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26261   (eval $ac_try) 2>&5
26262   ac_status=$?
26263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264   (exit $ac_status); }; }; then
26265   ac_cv_header_stdc=yes
26266 else
26267   echo "$as_me: failed program was:" >&5
26268 sed 's/^/| /' conftest.$ac_ext >&5
26269
26270 ac_cv_header_stdc=no
26271 fi
26272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26273
26274 if test $ac_cv_header_stdc = yes; then
26275   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26276   cat >conftest.$ac_ext <<_ACEOF
26277 /* confdefs.h.  */
26278 _ACEOF
26279 cat confdefs.h >>conftest.$ac_ext
26280 cat >>conftest.$ac_ext <<_ACEOF
26281 /* end confdefs.h.  */
26282 #include <string.h>
26283
26284 _ACEOF
26285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26286   $EGREP "memchr" >/dev/null 2>&1; then
26287   :
26288 else
26289   ac_cv_header_stdc=no
26290 fi
26291 rm -f conftest*
26292
26293 fi
26294
26295 if test $ac_cv_header_stdc = yes; then
26296   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26297   cat >conftest.$ac_ext <<_ACEOF
26298 /* confdefs.h.  */
26299 _ACEOF
26300 cat confdefs.h >>conftest.$ac_ext
26301 cat >>conftest.$ac_ext <<_ACEOF
26302 /* end confdefs.h.  */
26303 #include <stdlib.h>
26304
26305 _ACEOF
26306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26307   $EGREP "free" >/dev/null 2>&1; then
26308   :
26309 else
26310   ac_cv_header_stdc=no
26311 fi
26312 rm -f conftest*
26313
26314 fi
26315
26316 if test $ac_cv_header_stdc = yes; then
26317   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26318   if test "$cross_compiling" = yes; then
26319   :
26320 else
26321   cat >conftest.$ac_ext <<_ACEOF
26322 /* confdefs.h.  */
26323 _ACEOF
26324 cat confdefs.h >>conftest.$ac_ext
26325 cat >>conftest.$ac_ext <<_ACEOF
26326 /* end confdefs.h.  */
26327 #include <ctype.h>
26328 #if ((' ' & 0x0FF) == 0x020)
26329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26331 #else
26332 # define ISLOWER(c) \
26333                    (('a' <= (c) && (c) <= 'i') \
26334                      || ('j' <= (c) && (c) <= 'r') \
26335                      || ('s' <= (c) && (c) <= 'z'))
26336 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26337 #endif
26338
26339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26340 int
26341 main ()
26342 {
26343   int i;
26344   for (i = 0; i < 256; i++)
26345     if (XOR (islower (i), ISLOWER (i))
26346         || toupper (i) != TOUPPER (i))
26347       exit(2);
26348   exit (0);
26349 }
26350 _ACEOF
26351 rm -f conftest$ac_exeext
26352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26353   (eval $ac_link) 2>&5
26354   ac_status=$?
26355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26358   (eval $ac_try) 2>&5
26359   ac_status=$?
26360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361   (exit $ac_status); }; }; then
26362   :
26363 else
26364   echo "$as_me: program exited with status $ac_status" >&5
26365 echo "$as_me: failed program was:" >&5
26366 sed 's/^/| /' conftest.$ac_ext >&5
26367
26368 ( exit $ac_status )
26369 ac_cv_header_stdc=no
26370 fi
26371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26372 fi
26373 fi
26374 fi
26375 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26376 echo "${ECHO_T}$ac_cv_header_stdc" >&6
26377 if test $ac_cv_header_stdc = yes; then
26378
26379 cat >>confdefs.h <<\_ACEOF
26380 #define STDC_HEADERS 1
26381 _ACEOF
26382
26383 fi
26384
26385 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26386 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26387 if test "${ac_cv_header_sys_wait_h+set}" = set; then
26388   echo $ECHO_N "(cached) $ECHO_C" >&6
26389 else
26390   cat >conftest.$ac_ext <<_ACEOF
26391 /* confdefs.h.  */
26392 _ACEOF
26393 cat confdefs.h >>conftest.$ac_ext
26394 cat >>conftest.$ac_ext <<_ACEOF
26395 /* end confdefs.h.  */
26396 #include <sys/types.h>
26397 #include <sys/wait.h>
26398 #ifndef WEXITSTATUS
26399 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26400 #endif
26401 #ifndef WIFEXITED
26402 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26403 #endif
26404
26405 int
26406 main ()
26407 {
26408   int s;
26409   wait (&s);
26410   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26411   ;
26412   return 0;
26413 }
26414 _ACEOF
26415 rm -f conftest.$ac_objext
26416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26417   (eval $ac_compile) 2>conftest.er1
26418   ac_status=$?
26419   grep -v '^ *+' conftest.er1 >conftest.err
26420   rm -f conftest.er1
26421   cat conftest.err >&5
26422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423   (exit $ac_status); } &&
26424          { ac_try='test -z "$ac_c_werror_flag"
26425                          || test ! -s conftest.err'
26426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26427   (eval $ac_try) 2>&5
26428   ac_status=$?
26429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430   (exit $ac_status); }; } &&
26431          { ac_try='test -s conftest.$ac_objext'
26432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26433   (eval $ac_try) 2>&5
26434   ac_status=$?
26435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26436   (exit $ac_status); }; }; then
26437   ac_cv_header_sys_wait_h=yes
26438 else
26439   echo "$as_me: failed program was:" >&5
26440 sed 's/^/| /' conftest.$ac_ext >&5
26441
26442 ac_cv_header_sys_wait_h=no
26443 fi
26444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26445 fi
26446 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26447 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26448 if test $ac_cv_header_sys_wait_h = yes; then
26449
26450 cat >>confdefs.h <<\_ACEOF
26451 #define HAVE_SYS_WAIT_H 1
26452 _ACEOF
26453
26454 fi
26455
26456 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26457 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26458 if test "${ac_cv_header_time+set}" = set; then
26459   echo $ECHO_N "(cached) $ECHO_C" >&6
26460 else
26461   cat >conftest.$ac_ext <<_ACEOF
26462 /* confdefs.h.  */
26463 _ACEOF
26464 cat confdefs.h >>conftest.$ac_ext
26465 cat >>conftest.$ac_ext <<_ACEOF
26466 /* end confdefs.h.  */
26467 #include <sys/types.h>
26468 #include <sys/time.h>
26469 #include <time.h>
26470
26471 int
26472 main ()
26473 {
26474 if ((struct tm *) 0)
26475 return 0;
26476   ;
26477   return 0;
26478 }
26479 _ACEOF
26480 rm -f conftest.$ac_objext
26481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26482   (eval $ac_compile) 2>conftest.er1
26483   ac_status=$?
26484   grep -v '^ *+' conftest.er1 >conftest.err
26485   rm -f conftest.er1
26486   cat conftest.err >&5
26487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26488   (exit $ac_status); } &&
26489          { ac_try='test -z "$ac_c_werror_flag"
26490                          || test ! -s conftest.err'
26491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26492   (eval $ac_try) 2>&5
26493   ac_status=$?
26494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495   (exit $ac_status); }; } &&
26496          { ac_try='test -s conftest.$ac_objext'
26497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26498   (eval $ac_try) 2>&5
26499   ac_status=$?
26500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501   (exit $ac_status); }; }; then
26502   ac_cv_header_time=yes
26503 else
26504   echo "$as_me: failed program was:" >&5
26505 sed 's/^/| /' conftest.$ac_ext >&5
26506
26507 ac_cv_header_time=no
26508 fi
26509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26510 fi
26511 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26512 echo "${ECHO_T}$ac_cv_header_time" >&6
26513 if test $ac_cv_header_time = yes; then
26514
26515 cat >>confdefs.h <<\_ACEOF
26516 #define TIME_WITH_SYS_TIME 1
26517 _ACEOF
26518
26519 fi
26520
26521
26522
26523
26524
26525
26526
26527
26528 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26529 do
26530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26532   echo "$as_me:$LINENO: checking for $ac_header" >&5
26533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26535   echo $ECHO_N "(cached) $ECHO_C" >&6
26536 fi
26537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26539 else
26540   # Is the header compilable?
26541 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26543 cat >conftest.$ac_ext <<_ACEOF
26544 /* confdefs.h.  */
26545 _ACEOF
26546 cat confdefs.h >>conftest.$ac_ext
26547 cat >>conftest.$ac_ext <<_ACEOF
26548 /* end confdefs.h.  */
26549 $ac_includes_default
26550 #include <$ac_header>
26551 _ACEOF
26552 rm -f conftest.$ac_objext
26553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26554   (eval $ac_compile) 2>conftest.er1
26555   ac_status=$?
26556   grep -v '^ *+' conftest.er1 >conftest.err
26557   rm -f conftest.er1
26558   cat conftest.err >&5
26559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560   (exit $ac_status); } &&
26561          { ac_try='test -z "$ac_c_werror_flag"
26562                          || test ! -s conftest.err'
26563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26564   (eval $ac_try) 2>&5
26565   ac_status=$?
26566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567   (exit $ac_status); }; } &&
26568          { ac_try='test -s conftest.$ac_objext'
26569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26570   (eval $ac_try) 2>&5
26571   ac_status=$?
26572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573   (exit $ac_status); }; }; then
26574   ac_header_compiler=yes
26575 else
26576   echo "$as_me: failed program was:" >&5
26577 sed 's/^/| /' conftest.$ac_ext >&5
26578
26579 ac_header_compiler=no
26580 fi
26581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26583 echo "${ECHO_T}$ac_header_compiler" >&6
26584
26585 # Is the header present?
26586 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26588 cat >conftest.$ac_ext <<_ACEOF
26589 /* confdefs.h.  */
26590 _ACEOF
26591 cat confdefs.h >>conftest.$ac_ext
26592 cat >>conftest.$ac_ext <<_ACEOF
26593 /* end confdefs.h.  */
26594 #include <$ac_header>
26595 _ACEOF
26596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26597   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26598   ac_status=$?
26599   grep -v '^ *+' conftest.er1 >conftest.err
26600   rm -f conftest.er1
26601   cat conftest.err >&5
26602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26603   (exit $ac_status); } >/dev/null; then
26604   if test -s conftest.err; then
26605     ac_cpp_err=$ac_c_preproc_warn_flag
26606     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26607   else
26608     ac_cpp_err=
26609   fi
26610 else
26611   ac_cpp_err=yes
26612 fi
26613 if test -z "$ac_cpp_err"; then
26614   ac_header_preproc=yes
26615 else
26616   echo "$as_me: failed program was:" >&5
26617 sed 's/^/| /' conftest.$ac_ext >&5
26618
26619   ac_header_preproc=no
26620 fi
26621 rm -f conftest.err conftest.$ac_ext
26622 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26623 echo "${ECHO_T}$ac_header_preproc" >&6
26624
26625 # So?  What about this header?
26626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26627   yes:no: )
26628     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26629 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26631 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26632     ac_header_preproc=yes
26633     ;;
26634   no:yes:* )
26635     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26637     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26638 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26639     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26640 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26641     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26642 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26645     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26646 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26647     (
26648       cat <<\_ASBOX
26649 ## ----------------------------------- ##
26650 ## Report this to llvmbugs@cs.uiuc.edu ##
26651 ## ----------------------------------- ##
26652 _ASBOX
26653     ) |
26654       sed "s/^/$as_me: WARNING:     /" >&2
26655     ;;
26656 esac
26657 echo "$as_me:$LINENO: checking for $ac_header" >&5
26658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26660   echo $ECHO_N "(cached) $ECHO_C" >&6
26661 else
26662   eval "$as_ac_Header=\$ac_header_preproc"
26663 fi
26664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26666
26667 fi
26668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26669   cat >>confdefs.h <<_ACEOF
26670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26671 _ACEOF
26672
26673 fi
26674
26675 done
26676
26677
26678
26679
26680
26681
26682
26683 for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26684 do
26685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26687   echo "$as_me:$LINENO: checking for $ac_header" >&5
26688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26690   echo $ECHO_N "(cached) $ECHO_C" >&6
26691 fi
26692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26694 else
26695   # Is the header compilable?
26696 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26698 cat >conftest.$ac_ext <<_ACEOF
26699 /* confdefs.h.  */
26700 _ACEOF
26701 cat confdefs.h >>conftest.$ac_ext
26702 cat >>conftest.$ac_ext <<_ACEOF
26703 /* end confdefs.h.  */
26704 $ac_includes_default
26705 #include <$ac_header>
26706 _ACEOF
26707 rm -f conftest.$ac_objext
26708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26709   (eval $ac_compile) 2>conftest.er1
26710   ac_status=$?
26711   grep -v '^ *+' conftest.er1 >conftest.err
26712   rm -f conftest.er1
26713   cat conftest.err >&5
26714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715   (exit $ac_status); } &&
26716          { ac_try='test -z "$ac_c_werror_flag"
26717                          || test ! -s conftest.err'
26718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26719   (eval $ac_try) 2>&5
26720   ac_status=$?
26721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722   (exit $ac_status); }; } &&
26723          { ac_try='test -s conftest.$ac_objext'
26724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26725   (eval $ac_try) 2>&5
26726   ac_status=$?
26727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728   (exit $ac_status); }; }; then
26729   ac_header_compiler=yes
26730 else
26731   echo "$as_me: failed program was:" >&5
26732 sed 's/^/| /' conftest.$ac_ext >&5
26733
26734 ac_header_compiler=no
26735 fi
26736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26738 echo "${ECHO_T}$ac_header_compiler" >&6
26739
26740 # Is the header present?
26741 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26743 cat >conftest.$ac_ext <<_ACEOF
26744 /* confdefs.h.  */
26745 _ACEOF
26746 cat confdefs.h >>conftest.$ac_ext
26747 cat >>conftest.$ac_ext <<_ACEOF
26748 /* end confdefs.h.  */
26749 #include <$ac_header>
26750 _ACEOF
26751 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26752   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26753   ac_status=$?
26754   grep -v '^ *+' conftest.er1 >conftest.err
26755   rm -f conftest.er1
26756   cat conftest.err >&5
26757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26758   (exit $ac_status); } >/dev/null; then
26759   if test -s conftest.err; then
26760     ac_cpp_err=$ac_c_preproc_warn_flag
26761     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26762   else
26763     ac_cpp_err=
26764   fi
26765 else
26766   ac_cpp_err=yes
26767 fi
26768 if test -z "$ac_cpp_err"; then
26769   ac_header_preproc=yes
26770 else
26771   echo "$as_me: failed program was:" >&5
26772 sed 's/^/| /' conftest.$ac_ext >&5
26773
26774   ac_header_preproc=no
26775 fi
26776 rm -f conftest.err conftest.$ac_ext
26777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26778 echo "${ECHO_T}$ac_header_preproc" >&6
26779
26780 # So?  What about this header?
26781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26782   yes:no: )
26783     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26785     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26786 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26787     ac_header_preproc=yes
26788     ;;
26789   no:yes:* )
26790     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26792     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26793 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26794     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26795 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26796     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26797 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26800     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26801 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26802     (
26803       cat <<\_ASBOX
26804 ## ----------------------------------- ##
26805 ## Report this to llvmbugs@cs.uiuc.edu ##
26806 ## ----------------------------------- ##
26807 _ASBOX
26808     ) |
26809       sed "s/^/$as_me: WARNING:     /" >&2
26810     ;;
26811 esac
26812 echo "$as_me:$LINENO: checking for $ac_header" >&5
26813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26815   echo $ECHO_N "(cached) $ECHO_C" >&6
26816 else
26817   eval "$as_ac_Header=\$ac_header_preproc"
26818 fi
26819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26820 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26821
26822 fi
26823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26824   cat >>confdefs.h <<_ACEOF
26825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26826 _ACEOF
26827
26828 fi
26829
26830 done
26831
26832
26833
26834
26835
26836
26837 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
26838 do
26839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26841   echo "$as_me:$LINENO: checking for $ac_header" >&5
26842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26844   echo $ECHO_N "(cached) $ECHO_C" >&6
26845 fi
26846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26848 else
26849   # Is the header compilable?
26850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26852 cat >conftest.$ac_ext <<_ACEOF
26853 /* confdefs.h.  */
26854 _ACEOF
26855 cat confdefs.h >>conftest.$ac_ext
26856 cat >>conftest.$ac_ext <<_ACEOF
26857 /* end confdefs.h.  */
26858 $ac_includes_default
26859 #include <$ac_header>
26860 _ACEOF
26861 rm -f conftest.$ac_objext
26862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26863   (eval $ac_compile) 2>conftest.er1
26864   ac_status=$?
26865   grep -v '^ *+' conftest.er1 >conftest.err
26866   rm -f conftest.er1
26867   cat conftest.err >&5
26868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869   (exit $ac_status); } &&
26870          { ac_try='test -z "$ac_c_werror_flag"
26871                          || test ! -s conftest.err'
26872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26873   (eval $ac_try) 2>&5
26874   ac_status=$?
26875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26876   (exit $ac_status); }; } &&
26877          { ac_try='test -s conftest.$ac_objext'
26878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26879   (eval $ac_try) 2>&5
26880   ac_status=$?
26881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882   (exit $ac_status); }; }; then
26883   ac_header_compiler=yes
26884 else
26885   echo "$as_me: failed program was:" >&5
26886 sed 's/^/| /' conftest.$ac_ext >&5
26887
26888 ac_header_compiler=no
26889 fi
26890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26892 echo "${ECHO_T}$ac_header_compiler" >&6
26893
26894 # Is the header present?
26895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26897 cat >conftest.$ac_ext <<_ACEOF
26898 /* confdefs.h.  */
26899 _ACEOF
26900 cat confdefs.h >>conftest.$ac_ext
26901 cat >>conftest.$ac_ext <<_ACEOF
26902 /* end confdefs.h.  */
26903 #include <$ac_header>
26904 _ACEOF
26905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26907   ac_status=$?
26908   grep -v '^ *+' conftest.er1 >conftest.err
26909   rm -f conftest.er1
26910   cat conftest.err >&5
26911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912   (exit $ac_status); } >/dev/null; then
26913   if test -s conftest.err; then
26914     ac_cpp_err=$ac_c_preproc_warn_flag
26915     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26916   else
26917     ac_cpp_err=
26918   fi
26919 else
26920   ac_cpp_err=yes
26921 fi
26922 if test -z "$ac_cpp_err"; then
26923   ac_header_preproc=yes
26924 else
26925   echo "$as_me: failed program was:" >&5
26926 sed 's/^/| /' conftest.$ac_ext >&5
26927
26928   ac_header_preproc=no
26929 fi
26930 rm -f conftest.err conftest.$ac_ext
26931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26932 echo "${ECHO_T}$ac_header_preproc" >&6
26933
26934 # So?  What about this header?
26935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26936   yes:no: )
26937     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26941     ac_header_preproc=yes
26942     ;;
26943   no:yes:* )
26944     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26946     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26947 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26948     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26950     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26951 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26954     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26956     (
26957       cat <<\_ASBOX
26958 ## ----------------------------------- ##
26959 ## Report this to llvmbugs@cs.uiuc.edu ##
26960 ## ----------------------------------- ##
26961 _ASBOX
26962     ) |
26963       sed "s/^/$as_me: WARNING:     /" >&2
26964     ;;
26965 esac
26966 echo "$as_me:$LINENO: checking for $ac_header" >&5
26967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26969   echo $ECHO_N "(cached) $ECHO_C" >&6
26970 else
26971   eval "$as_ac_Header=\$ac_header_preproc"
26972 fi
26973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26975
26976 fi
26977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26978   cat >>confdefs.h <<_ACEOF
26979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26980 _ACEOF
26981
26982 fi
26983
26984 done
26985
26986
26987 for ac_header in malloc/malloc.h
26988 do
26989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26991   echo "$as_me:$LINENO: checking for $ac_header" >&5
26992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26994   echo $ECHO_N "(cached) $ECHO_C" >&6
26995 fi
26996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26998 else
26999   # Is the header compilable?
27000 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27002 cat >conftest.$ac_ext <<_ACEOF
27003 /* confdefs.h.  */
27004 _ACEOF
27005 cat confdefs.h >>conftest.$ac_ext
27006 cat >>conftest.$ac_ext <<_ACEOF
27007 /* end confdefs.h.  */
27008 $ac_includes_default
27009 #include <$ac_header>
27010 _ACEOF
27011 rm -f conftest.$ac_objext
27012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27013   (eval $ac_compile) 2>conftest.er1
27014   ac_status=$?
27015   grep -v '^ *+' conftest.er1 >conftest.err
27016   rm -f conftest.er1
27017   cat conftest.err >&5
27018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019   (exit $ac_status); } &&
27020          { ac_try='test -z "$ac_c_werror_flag"
27021                          || test ! -s conftest.err'
27022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27023   (eval $ac_try) 2>&5
27024   ac_status=$?
27025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026   (exit $ac_status); }; } &&
27027          { ac_try='test -s conftest.$ac_objext'
27028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27029   (eval $ac_try) 2>&5
27030   ac_status=$?
27031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032   (exit $ac_status); }; }; then
27033   ac_header_compiler=yes
27034 else
27035   echo "$as_me: failed program was:" >&5
27036 sed 's/^/| /' conftest.$ac_ext >&5
27037
27038 ac_header_compiler=no
27039 fi
27040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27042 echo "${ECHO_T}$ac_header_compiler" >&6
27043
27044 # Is the header present?
27045 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27047 cat >conftest.$ac_ext <<_ACEOF
27048 /* confdefs.h.  */
27049 _ACEOF
27050 cat confdefs.h >>conftest.$ac_ext
27051 cat >>conftest.$ac_ext <<_ACEOF
27052 /* end confdefs.h.  */
27053 #include <$ac_header>
27054 _ACEOF
27055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27056   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27057   ac_status=$?
27058   grep -v '^ *+' conftest.er1 >conftest.err
27059   rm -f conftest.er1
27060   cat conftest.err >&5
27061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062   (exit $ac_status); } >/dev/null; then
27063   if test -s conftest.err; then
27064     ac_cpp_err=$ac_c_preproc_warn_flag
27065     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27066   else
27067     ac_cpp_err=
27068   fi
27069 else
27070   ac_cpp_err=yes
27071 fi
27072 if test -z "$ac_cpp_err"; then
27073   ac_header_preproc=yes
27074 else
27075   echo "$as_me: failed program was:" >&5
27076 sed 's/^/| /' conftest.$ac_ext >&5
27077
27078   ac_header_preproc=no
27079 fi
27080 rm -f conftest.err conftest.$ac_ext
27081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27082 echo "${ECHO_T}$ac_header_preproc" >&6
27083
27084 # So?  What about this header?
27085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27086   yes:no: )
27087     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27088 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27091     ac_header_preproc=yes
27092     ;;
27093   no:yes:* )
27094     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27095 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27096     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27097 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27098     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27099 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27100     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27101 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27102     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27104     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27105 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27106     (
27107       cat <<\_ASBOX
27108 ## ----------------------------------- ##
27109 ## Report this to llvmbugs@cs.uiuc.edu ##
27110 ## ----------------------------------- ##
27111 _ASBOX
27112     ) |
27113       sed "s/^/$as_me: WARNING:     /" >&2
27114     ;;
27115 esac
27116 echo "$as_me:$LINENO: checking for $ac_header" >&5
27117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27119   echo $ECHO_N "(cached) $ECHO_C" >&6
27120 else
27121   eval "$as_ac_Header=\$ac_header_preproc"
27122 fi
27123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27125
27126 fi
27127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27128   cat >>confdefs.h <<_ACEOF
27129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27130 _ACEOF
27131
27132 fi
27133
27134 done
27135
27136 if test "$ENABLE_THREADS" -eq 1 ; then
27137
27138 for ac_header in pthread.h
27139 do
27140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27142   echo "$as_me:$LINENO: checking for $ac_header" >&5
27143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27145   echo $ECHO_N "(cached) $ECHO_C" >&6
27146 fi
27147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27149 else
27150   # Is the header compilable?
27151 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27153 cat >conftest.$ac_ext <<_ACEOF
27154 /* confdefs.h.  */
27155 _ACEOF
27156 cat confdefs.h >>conftest.$ac_ext
27157 cat >>conftest.$ac_ext <<_ACEOF
27158 /* end confdefs.h.  */
27159 $ac_includes_default
27160 #include <$ac_header>
27161 _ACEOF
27162 rm -f conftest.$ac_objext
27163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27164   (eval $ac_compile) 2>conftest.er1
27165   ac_status=$?
27166   grep -v '^ *+' conftest.er1 >conftest.err
27167   rm -f conftest.er1
27168   cat conftest.err >&5
27169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170   (exit $ac_status); } &&
27171          { ac_try='test -z "$ac_c_werror_flag"
27172                          || test ! -s conftest.err'
27173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27174   (eval $ac_try) 2>&5
27175   ac_status=$?
27176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177   (exit $ac_status); }; } &&
27178          { ac_try='test -s conftest.$ac_objext'
27179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27180   (eval $ac_try) 2>&5
27181   ac_status=$?
27182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183   (exit $ac_status); }; }; then
27184   ac_header_compiler=yes
27185 else
27186   echo "$as_me: failed program was:" >&5
27187 sed 's/^/| /' conftest.$ac_ext >&5
27188
27189 ac_header_compiler=no
27190 fi
27191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27192 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27193 echo "${ECHO_T}$ac_header_compiler" >&6
27194
27195 # Is the header present?
27196 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27198 cat >conftest.$ac_ext <<_ACEOF
27199 /* confdefs.h.  */
27200 _ACEOF
27201 cat confdefs.h >>conftest.$ac_ext
27202 cat >>conftest.$ac_ext <<_ACEOF
27203 /* end confdefs.h.  */
27204 #include <$ac_header>
27205 _ACEOF
27206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27207   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27208   ac_status=$?
27209   grep -v '^ *+' conftest.er1 >conftest.err
27210   rm -f conftest.er1
27211   cat conftest.err >&5
27212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213   (exit $ac_status); } >/dev/null; then
27214   if test -s conftest.err; then
27215     ac_cpp_err=$ac_c_preproc_warn_flag
27216     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27217   else
27218     ac_cpp_err=
27219   fi
27220 else
27221   ac_cpp_err=yes
27222 fi
27223 if test -z "$ac_cpp_err"; then
27224   ac_header_preproc=yes
27225 else
27226   echo "$as_me: failed program was:" >&5
27227 sed 's/^/| /' conftest.$ac_ext >&5
27228
27229   ac_header_preproc=no
27230 fi
27231 rm -f conftest.err conftest.$ac_ext
27232 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27233 echo "${ECHO_T}$ac_header_preproc" >&6
27234
27235 # So?  What about this header?
27236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27237   yes:no: )
27238     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27242     ac_header_preproc=yes
27243     ;;
27244   no:yes:* )
27245     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27247     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27248 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27249     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27251     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27252 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27253     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27255     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27257     (
27258       cat <<\_ASBOX
27259 ## ----------------------------------- ##
27260 ## Report this to llvmbugs@cs.uiuc.edu ##
27261 ## ----------------------------------- ##
27262 _ASBOX
27263     ) |
27264       sed "s/^/$as_me: WARNING:     /" >&2
27265     ;;
27266 esac
27267 echo "$as_me:$LINENO: checking for $ac_header" >&5
27268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27270   echo $ECHO_N "(cached) $ECHO_C" >&6
27271 else
27272   eval "$as_ac_Header=\$ac_header_preproc"
27273 fi
27274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27276
27277 fi
27278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27279   cat >>confdefs.h <<_ACEOF
27280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27281 _ACEOF
27282
27283 fi
27284
27285 done
27286
27287 fi
27288
27289
27290 echo "$as_me:$LINENO: checking for pid_t" >&5
27291 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27292 if test "${ac_cv_type_pid_t+set}" = set; then
27293   echo $ECHO_N "(cached) $ECHO_C" >&6
27294 else
27295   cat >conftest.$ac_ext <<_ACEOF
27296 /* confdefs.h.  */
27297 _ACEOF
27298 cat confdefs.h >>conftest.$ac_ext
27299 cat >>conftest.$ac_ext <<_ACEOF
27300 /* end confdefs.h.  */
27301 $ac_includes_default
27302 int
27303 main ()
27304 {
27305 if ((pid_t *) 0)
27306   return 0;
27307 if (sizeof (pid_t))
27308   return 0;
27309   ;
27310   return 0;
27311 }
27312 _ACEOF
27313 rm -f conftest.$ac_objext
27314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27315   (eval $ac_compile) 2>conftest.er1
27316   ac_status=$?
27317   grep -v '^ *+' conftest.er1 >conftest.err
27318   rm -f conftest.er1
27319   cat conftest.err >&5
27320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27321   (exit $ac_status); } &&
27322          { ac_try='test -z "$ac_c_werror_flag"
27323                          || test ! -s conftest.err'
27324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27325   (eval $ac_try) 2>&5
27326   ac_status=$?
27327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328   (exit $ac_status); }; } &&
27329          { ac_try='test -s conftest.$ac_objext'
27330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27331   (eval $ac_try) 2>&5
27332   ac_status=$?
27333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27334   (exit $ac_status); }; }; then
27335   ac_cv_type_pid_t=yes
27336 else
27337   echo "$as_me: failed program was:" >&5
27338 sed 's/^/| /' conftest.$ac_ext >&5
27339
27340 ac_cv_type_pid_t=no
27341 fi
27342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27343 fi
27344 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27345 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27346 if test $ac_cv_type_pid_t = yes; then
27347   :
27348 else
27349
27350 cat >>confdefs.h <<_ACEOF
27351 #define pid_t int
27352 _ACEOF
27353
27354 fi
27355
27356 echo "$as_me:$LINENO: checking for size_t" >&5
27357 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27358 if test "${ac_cv_type_size_t+set}" = set; then
27359   echo $ECHO_N "(cached) $ECHO_C" >&6
27360 else
27361   cat >conftest.$ac_ext <<_ACEOF
27362 /* confdefs.h.  */
27363 _ACEOF
27364 cat confdefs.h >>conftest.$ac_ext
27365 cat >>conftest.$ac_ext <<_ACEOF
27366 /* end confdefs.h.  */
27367 $ac_includes_default
27368 int
27369 main ()
27370 {
27371 if ((size_t *) 0)
27372   return 0;
27373 if (sizeof (size_t))
27374   return 0;
27375   ;
27376   return 0;
27377 }
27378 _ACEOF
27379 rm -f conftest.$ac_objext
27380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27381   (eval $ac_compile) 2>conftest.er1
27382   ac_status=$?
27383   grep -v '^ *+' conftest.er1 >conftest.err
27384   rm -f conftest.er1
27385   cat conftest.err >&5
27386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387   (exit $ac_status); } &&
27388          { ac_try='test -z "$ac_c_werror_flag"
27389                          || test ! -s conftest.err'
27390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27391   (eval $ac_try) 2>&5
27392   ac_status=$?
27393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394   (exit $ac_status); }; } &&
27395          { ac_try='test -s conftest.$ac_objext'
27396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27397   (eval $ac_try) 2>&5
27398   ac_status=$?
27399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400   (exit $ac_status); }; }; then
27401   ac_cv_type_size_t=yes
27402 else
27403   echo "$as_me: failed program was:" >&5
27404 sed 's/^/| /' conftest.$ac_ext >&5
27405
27406 ac_cv_type_size_t=no
27407 fi
27408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27409 fi
27410 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27411 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27412 if test $ac_cv_type_size_t = yes; then
27413   :
27414 else
27415
27416 cat >>confdefs.h <<_ACEOF
27417 #define size_t unsigned
27418 _ACEOF
27419
27420 fi
27421
27422 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27423 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27424 if test "${ac_cv_type_signal+set}" = set; then
27425   echo $ECHO_N "(cached) $ECHO_C" >&6
27426 else
27427   cat >conftest.$ac_ext <<_ACEOF
27428 /* confdefs.h.  */
27429 _ACEOF
27430 cat confdefs.h >>conftest.$ac_ext
27431 cat >>conftest.$ac_ext <<_ACEOF
27432 /* end confdefs.h.  */
27433 #include <sys/types.h>
27434 #include <signal.h>
27435 #ifdef signal
27436 # undef signal
27437 #endif
27438 #ifdef __cplusplus
27439 extern "C" void (*signal (int, void (*)(int)))(int);
27440 #else
27441 void (*signal ()) ();
27442 #endif
27443
27444 int
27445 main ()
27446 {
27447 int i;
27448   ;
27449   return 0;
27450 }
27451 _ACEOF
27452 rm -f conftest.$ac_objext
27453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27454   (eval $ac_compile) 2>conftest.er1
27455   ac_status=$?
27456   grep -v '^ *+' conftest.er1 >conftest.err
27457   rm -f conftest.er1
27458   cat conftest.err >&5
27459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460   (exit $ac_status); } &&
27461          { ac_try='test -z "$ac_c_werror_flag"
27462                          || test ! -s conftest.err'
27463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27464   (eval $ac_try) 2>&5
27465   ac_status=$?
27466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27467   (exit $ac_status); }; } &&
27468          { ac_try='test -s conftest.$ac_objext'
27469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27470   (eval $ac_try) 2>&5
27471   ac_status=$?
27472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27473   (exit $ac_status); }; }; then
27474   ac_cv_type_signal=void
27475 else
27476   echo "$as_me: failed program was:" >&5
27477 sed 's/^/| /' conftest.$ac_ext >&5
27478
27479 ac_cv_type_signal=int
27480 fi
27481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27482 fi
27483 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27484 echo "${ECHO_T}$ac_cv_type_signal" >&6
27485
27486 cat >>confdefs.h <<_ACEOF
27487 #define RETSIGTYPE $ac_cv_type_signal
27488 _ACEOF
27489
27490
27491 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27492 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27493 if test "${ac_cv_struct_tm+set}" = set; then
27494   echo $ECHO_N "(cached) $ECHO_C" >&6
27495 else
27496   cat >conftest.$ac_ext <<_ACEOF
27497 /* confdefs.h.  */
27498 _ACEOF
27499 cat confdefs.h >>conftest.$ac_ext
27500 cat >>conftest.$ac_ext <<_ACEOF
27501 /* end confdefs.h.  */
27502 #include <sys/types.h>
27503 #include <time.h>
27504
27505 int
27506 main ()
27507 {
27508 struct tm *tp; tp->tm_sec;
27509   ;
27510   return 0;
27511 }
27512 _ACEOF
27513 rm -f conftest.$ac_objext
27514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27515   (eval $ac_compile) 2>conftest.er1
27516   ac_status=$?
27517   grep -v '^ *+' conftest.er1 >conftest.err
27518   rm -f conftest.er1
27519   cat conftest.err >&5
27520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521   (exit $ac_status); } &&
27522          { ac_try='test -z "$ac_c_werror_flag"
27523                          || test ! -s conftest.err'
27524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27525   (eval $ac_try) 2>&5
27526   ac_status=$?
27527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528   (exit $ac_status); }; } &&
27529          { ac_try='test -s conftest.$ac_objext'
27530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27531   (eval $ac_try) 2>&5
27532   ac_status=$?
27533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534   (exit $ac_status); }; }; then
27535   ac_cv_struct_tm=time.h
27536 else
27537   echo "$as_me: failed program was:" >&5
27538 sed 's/^/| /' conftest.$ac_ext >&5
27539
27540 ac_cv_struct_tm=sys/time.h
27541 fi
27542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27543 fi
27544 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27545 echo "${ECHO_T}$ac_cv_struct_tm" >&6
27546 if test $ac_cv_struct_tm = sys/time.h; then
27547
27548 cat >>confdefs.h <<\_ACEOF
27549 #define TM_IN_SYS_TIME 1
27550 _ACEOF
27551
27552 fi
27553
27554 echo "$as_me:$LINENO: checking for int64_t" >&5
27555 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27556 if test "${ac_cv_type_int64_t+set}" = set; then
27557   echo $ECHO_N "(cached) $ECHO_C" >&6
27558 else
27559   cat >conftest.$ac_ext <<_ACEOF
27560 /* confdefs.h.  */
27561 _ACEOF
27562 cat confdefs.h >>conftest.$ac_ext
27563 cat >>conftest.$ac_ext <<_ACEOF
27564 /* end confdefs.h.  */
27565 $ac_includes_default
27566 int
27567 main ()
27568 {
27569 if ((int64_t *) 0)
27570   return 0;
27571 if (sizeof (int64_t))
27572   return 0;
27573   ;
27574   return 0;
27575 }
27576 _ACEOF
27577 rm -f conftest.$ac_objext
27578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27579   (eval $ac_compile) 2>conftest.er1
27580   ac_status=$?
27581   grep -v '^ *+' conftest.er1 >conftest.err
27582   rm -f conftest.er1
27583   cat conftest.err >&5
27584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585   (exit $ac_status); } &&
27586          { ac_try='test -z "$ac_c_werror_flag"
27587                          || test ! -s conftest.err'
27588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27589   (eval $ac_try) 2>&5
27590   ac_status=$?
27591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27592   (exit $ac_status); }; } &&
27593          { ac_try='test -s conftest.$ac_objext'
27594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27595   (eval $ac_try) 2>&5
27596   ac_status=$?
27597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27598   (exit $ac_status); }; }; then
27599   ac_cv_type_int64_t=yes
27600 else
27601   echo "$as_me: failed program was:" >&5
27602 sed 's/^/| /' conftest.$ac_ext >&5
27603
27604 ac_cv_type_int64_t=no
27605 fi
27606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27607 fi
27608 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27609 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27610 if test $ac_cv_type_int64_t = yes; then
27611
27612 cat >>confdefs.h <<_ACEOF
27613 #define HAVE_INT64_T 1
27614 _ACEOF
27615
27616
27617 else
27618   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27619 echo "$as_me: error: Type int64_t required but not found" >&2;}
27620    { (exit 1); exit 1; }; }
27621 fi
27622
27623 echo "$as_me:$LINENO: checking for uint64_t" >&5
27624 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27625 if test "${ac_cv_type_uint64_t+set}" = set; then
27626   echo $ECHO_N "(cached) $ECHO_C" >&6
27627 else
27628   cat >conftest.$ac_ext <<_ACEOF
27629 /* confdefs.h.  */
27630 _ACEOF
27631 cat confdefs.h >>conftest.$ac_ext
27632 cat >>conftest.$ac_ext <<_ACEOF
27633 /* end confdefs.h.  */
27634 $ac_includes_default
27635 int
27636 main ()
27637 {
27638 if ((uint64_t *) 0)
27639   return 0;
27640 if (sizeof (uint64_t))
27641   return 0;
27642   ;
27643   return 0;
27644 }
27645 _ACEOF
27646 rm -f conftest.$ac_objext
27647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27648   (eval $ac_compile) 2>conftest.er1
27649   ac_status=$?
27650   grep -v '^ *+' conftest.er1 >conftest.err
27651   rm -f conftest.er1
27652   cat conftest.err >&5
27653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654   (exit $ac_status); } &&
27655          { ac_try='test -z "$ac_c_werror_flag"
27656                          || test ! -s conftest.err'
27657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27658   (eval $ac_try) 2>&5
27659   ac_status=$?
27660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661   (exit $ac_status); }; } &&
27662          { ac_try='test -s conftest.$ac_objext'
27663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27664   (eval $ac_try) 2>&5
27665   ac_status=$?
27666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667   (exit $ac_status); }; }; then
27668   ac_cv_type_uint64_t=yes
27669 else
27670   echo "$as_me: failed program was:" >&5
27671 sed 's/^/| /' conftest.$ac_ext >&5
27672
27673 ac_cv_type_uint64_t=no
27674 fi
27675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27676 fi
27677 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27678 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27679 if test $ac_cv_type_uint64_t = yes; then
27680
27681 cat >>confdefs.h <<_ACEOF
27682 #define HAVE_UINT64_T 1
27683 _ACEOF
27684
27685
27686 else
27687   echo "$as_me:$LINENO: checking for u_int64_t" >&5
27688 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27689 if test "${ac_cv_type_u_int64_t+set}" = set; then
27690   echo $ECHO_N "(cached) $ECHO_C" >&6
27691 else
27692   cat >conftest.$ac_ext <<_ACEOF
27693 /* confdefs.h.  */
27694 _ACEOF
27695 cat confdefs.h >>conftest.$ac_ext
27696 cat >>conftest.$ac_ext <<_ACEOF
27697 /* end confdefs.h.  */
27698 $ac_includes_default
27699 int
27700 main ()
27701 {
27702 if ((u_int64_t *) 0)
27703   return 0;
27704 if (sizeof (u_int64_t))
27705   return 0;
27706   ;
27707   return 0;
27708 }
27709 _ACEOF
27710 rm -f conftest.$ac_objext
27711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27712   (eval $ac_compile) 2>conftest.er1
27713   ac_status=$?
27714   grep -v '^ *+' conftest.er1 >conftest.err
27715   rm -f conftest.er1
27716   cat conftest.err >&5
27717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718   (exit $ac_status); } &&
27719          { ac_try='test -z "$ac_c_werror_flag"
27720                          || test ! -s conftest.err'
27721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27722   (eval $ac_try) 2>&5
27723   ac_status=$?
27724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725   (exit $ac_status); }; } &&
27726          { ac_try='test -s conftest.$ac_objext'
27727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27728   (eval $ac_try) 2>&5
27729   ac_status=$?
27730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731   (exit $ac_status); }; }; then
27732   ac_cv_type_u_int64_t=yes
27733 else
27734   echo "$as_me: failed program was:" >&5
27735 sed 's/^/| /' conftest.$ac_ext >&5
27736
27737 ac_cv_type_u_int64_t=no
27738 fi
27739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27740 fi
27741 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27742 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27743 if test $ac_cv_type_u_int64_t = yes; then
27744
27745 cat >>confdefs.h <<_ACEOF
27746 #define HAVE_U_INT64_T 1
27747 _ACEOF
27748
27749
27750 else
27751   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27752 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27753    { (exit 1); exit 1; }; }
27754 fi
27755
27756 fi
27757
27758
27759
27760
27761
27762
27763
27764
27765
27766
27767 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
27768 do
27769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27770 echo "$as_me:$LINENO: checking for $ac_func" >&5
27771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27772 if eval "test \"\${$as_ac_var+set}\" = set"; then
27773   echo $ECHO_N "(cached) $ECHO_C" >&6
27774 else
27775   cat >conftest.$ac_ext <<_ACEOF
27776 /* confdefs.h.  */
27777 _ACEOF
27778 cat confdefs.h >>conftest.$ac_ext
27779 cat >>conftest.$ac_ext <<_ACEOF
27780 /* end confdefs.h.  */
27781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27782    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27783 #define $ac_func innocuous_$ac_func
27784
27785 /* System header to define __stub macros and hopefully few prototypes,
27786     which can conflict with char $ac_func (); below.
27787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27788     <limits.h> exists even on freestanding compilers.  */
27789
27790 #ifdef __STDC__
27791 # include <limits.h>
27792 #else
27793 # include <assert.h>
27794 #endif
27795
27796 #undef $ac_func
27797
27798 /* Override any gcc2 internal prototype to avoid an error.  */
27799 #ifdef __cplusplus
27800 extern "C"
27801 {
27802 #endif
27803 /* We use char because int might match the return type of a gcc2
27804    builtin and then its argument prototype would still apply.  */
27805 char $ac_func ();
27806 /* The GNU C library defines this for functions which it implements
27807     to always fail with ENOSYS.  Some functions are actually named
27808     something starting with __ and the normal name is an alias.  */
27809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27810 choke me
27811 #else
27812 char (*f) () = $ac_func;
27813 #endif
27814 #ifdef __cplusplus
27815 }
27816 #endif
27817
27818 int
27819 main ()
27820 {
27821 return f != $ac_func;
27822   ;
27823   return 0;
27824 }
27825 _ACEOF
27826 rm -f conftest.$ac_objext conftest$ac_exeext
27827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27828   (eval $ac_link) 2>conftest.er1
27829   ac_status=$?
27830   grep -v '^ *+' conftest.er1 >conftest.err
27831   rm -f conftest.er1
27832   cat conftest.err >&5
27833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27834   (exit $ac_status); } &&
27835          { ac_try='test -z "$ac_c_werror_flag"
27836                          || test ! -s conftest.err'
27837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27838   (eval $ac_try) 2>&5
27839   ac_status=$?
27840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27841   (exit $ac_status); }; } &&
27842          { ac_try='test -s conftest$ac_exeext'
27843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27844   (eval $ac_try) 2>&5
27845   ac_status=$?
27846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847   (exit $ac_status); }; }; then
27848   eval "$as_ac_var=yes"
27849 else
27850   echo "$as_me: failed program was:" >&5
27851 sed 's/^/| /' conftest.$ac_ext >&5
27852
27853 eval "$as_ac_var=no"
27854 fi
27855 rm -f conftest.err conftest.$ac_objext \
27856       conftest$ac_exeext conftest.$ac_ext
27857 fi
27858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27859 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27860 if test `eval echo '${'$as_ac_var'}'` = yes; then
27861   cat >>confdefs.h <<_ACEOF
27862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27863 _ACEOF
27864
27865 fi
27866 done
27867
27868
27869
27870
27871
27872
27873
27874 for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
27875 do
27876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27877 echo "$as_me:$LINENO: checking for $ac_func" >&5
27878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27879 if eval "test \"\${$as_ac_var+set}\" = set"; then
27880   echo $ECHO_N "(cached) $ECHO_C" >&6
27881 else
27882   cat >conftest.$ac_ext <<_ACEOF
27883 /* confdefs.h.  */
27884 _ACEOF
27885 cat confdefs.h >>conftest.$ac_ext
27886 cat >>conftest.$ac_ext <<_ACEOF
27887 /* end confdefs.h.  */
27888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27890 #define $ac_func innocuous_$ac_func
27891
27892 /* System header to define __stub macros and hopefully few prototypes,
27893     which can conflict with char $ac_func (); below.
27894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27895     <limits.h> exists even on freestanding compilers.  */
27896
27897 #ifdef __STDC__
27898 # include <limits.h>
27899 #else
27900 # include <assert.h>
27901 #endif
27902
27903 #undef $ac_func
27904
27905 /* Override any gcc2 internal prototype to avoid an error.  */
27906 #ifdef __cplusplus
27907 extern "C"
27908 {
27909 #endif
27910 /* We use char because int might match the return type of a gcc2
27911    builtin and then its argument prototype would still apply.  */
27912 char $ac_func ();
27913 /* The GNU C library defines this for functions which it implements
27914     to always fail with ENOSYS.  Some functions are actually named
27915     something starting with __ and the normal name is an alias.  */
27916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27917 choke me
27918 #else
27919 char (*f) () = $ac_func;
27920 #endif
27921 #ifdef __cplusplus
27922 }
27923 #endif
27924
27925 int
27926 main ()
27927 {
27928 return f != $ac_func;
27929   ;
27930   return 0;
27931 }
27932 _ACEOF
27933 rm -f conftest.$ac_objext conftest$ac_exeext
27934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27935   (eval $ac_link) 2>conftest.er1
27936   ac_status=$?
27937   grep -v '^ *+' conftest.er1 >conftest.err
27938   rm -f conftest.er1
27939   cat conftest.err >&5
27940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27941   (exit $ac_status); } &&
27942          { ac_try='test -z "$ac_c_werror_flag"
27943                          || test ! -s conftest.err'
27944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27945   (eval $ac_try) 2>&5
27946   ac_status=$?
27947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948   (exit $ac_status); }; } &&
27949          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27955   eval "$as_ac_var=yes"
27956 else
27957   echo "$as_me: failed program was:" >&5
27958 sed 's/^/| /' conftest.$ac_ext >&5
27959
27960 eval "$as_ac_var=no"
27961 fi
27962 rm -f conftest.err conftest.$ac_objext \
27963       conftest$ac_exeext conftest.$ac_ext
27964 fi
27965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27967 if test `eval echo '${'$as_ac_var'}'` = yes; then
27968   cat >>confdefs.h <<_ACEOF
27969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27970 _ACEOF
27971
27972 fi
27973 done
27974
27975
27976
27977
27978
27979
27980
27981
27982 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
27983 do
27984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27985 echo "$as_me:$LINENO: checking for $ac_func" >&5
27986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27987 if eval "test \"\${$as_ac_var+set}\" = set"; then
27988   echo $ECHO_N "(cached) $ECHO_C" >&6
27989 else
27990   cat >conftest.$ac_ext <<_ACEOF
27991 /* confdefs.h.  */
27992 _ACEOF
27993 cat confdefs.h >>conftest.$ac_ext
27994 cat >>conftest.$ac_ext <<_ACEOF
27995 /* end confdefs.h.  */
27996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27997    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27998 #define $ac_func innocuous_$ac_func
27999
28000 /* System header to define __stub macros and hopefully few prototypes,
28001     which can conflict with char $ac_func (); below.
28002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28003     <limits.h> exists even on freestanding compilers.  */
28004
28005 #ifdef __STDC__
28006 # include <limits.h>
28007 #else
28008 # include <assert.h>
28009 #endif
28010
28011 #undef $ac_func
28012
28013 /* Override any gcc2 internal prototype to avoid an error.  */
28014 #ifdef __cplusplus
28015 extern "C"
28016 {
28017 #endif
28018 /* We use char because int might match the return type of a gcc2
28019    builtin and then its argument prototype would still apply.  */
28020 char $ac_func ();
28021 /* The GNU C library defines this for functions which it implements
28022     to always fail with ENOSYS.  Some functions are actually named
28023     something starting with __ and the normal name is an alias.  */
28024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28025 choke me
28026 #else
28027 char (*f) () = $ac_func;
28028 #endif
28029 #ifdef __cplusplus
28030 }
28031 #endif
28032
28033 int
28034 main ()
28035 {
28036 return f != $ac_func;
28037   ;
28038   return 0;
28039 }
28040 _ACEOF
28041 rm -f conftest.$ac_objext conftest$ac_exeext
28042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28043   (eval $ac_link) 2>conftest.er1
28044   ac_status=$?
28045   grep -v '^ *+' conftest.er1 >conftest.err
28046   rm -f conftest.er1
28047   cat conftest.err >&5
28048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28049   (exit $ac_status); } &&
28050          { ac_try='test -z "$ac_c_werror_flag"
28051                          || test ! -s conftest.err'
28052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28053   (eval $ac_try) 2>&5
28054   ac_status=$?
28055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056   (exit $ac_status); }; } &&
28057          { ac_try='test -s conftest$ac_exeext'
28058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28059   (eval $ac_try) 2>&5
28060   ac_status=$?
28061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28062   (exit $ac_status); }; }; then
28063   eval "$as_ac_var=yes"
28064 else
28065   echo "$as_me: failed program was:" >&5
28066 sed 's/^/| /' conftest.$ac_ext >&5
28067
28068 eval "$as_ac_var=no"
28069 fi
28070 rm -f conftest.err conftest.$ac_objext \
28071       conftest$ac_exeext conftest.$ac_ext
28072 fi
28073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28075 if test `eval echo '${'$as_ac_var'}'` = yes; then
28076   cat >>confdefs.h <<_ACEOF
28077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28078 _ACEOF
28079
28080 fi
28081 done
28082
28083
28084
28085
28086
28087 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
28088 do
28089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28090 echo "$as_me:$LINENO: checking for $ac_func" >&5
28091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28092 if eval "test \"\${$as_ac_var+set}\" = set"; then
28093   echo $ECHO_N "(cached) $ECHO_C" >&6
28094 else
28095   cat >conftest.$ac_ext <<_ACEOF
28096 /* confdefs.h.  */
28097 _ACEOF
28098 cat confdefs.h >>conftest.$ac_ext
28099 cat >>conftest.$ac_ext <<_ACEOF
28100 /* end confdefs.h.  */
28101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28103 #define $ac_func innocuous_$ac_func
28104
28105 /* System header to define __stub macros and hopefully few prototypes,
28106     which can conflict with char $ac_func (); below.
28107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28108     <limits.h> exists even on freestanding compilers.  */
28109
28110 #ifdef __STDC__
28111 # include <limits.h>
28112 #else
28113 # include <assert.h>
28114 #endif
28115
28116 #undef $ac_func
28117
28118 /* Override any gcc2 internal prototype to avoid an error.  */
28119 #ifdef __cplusplus
28120 extern "C"
28121 {
28122 #endif
28123 /* We use char because int might match the return type of a gcc2
28124    builtin and then its argument prototype would still apply.  */
28125 char $ac_func ();
28126 /* The GNU C library defines this for functions which it implements
28127     to always fail with ENOSYS.  Some functions are actually named
28128     something starting with __ and the normal name is an alias.  */
28129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28130 choke me
28131 #else
28132 char (*f) () = $ac_func;
28133 #endif
28134 #ifdef __cplusplus
28135 }
28136 #endif
28137
28138 int
28139 main ()
28140 {
28141 return f != $ac_func;
28142   ;
28143   return 0;
28144 }
28145 _ACEOF
28146 rm -f conftest.$ac_objext conftest$ac_exeext
28147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28148   (eval $ac_link) 2>conftest.er1
28149   ac_status=$?
28150   grep -v '^ *+' conftest.er1 >conftest.err
28151   rm -f conftest.er1
28152   cat conftest.err >&5
28153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154   (exit $ac_status); } &&
28155          { ac_try='test -z "$ac_c_werror_flag"
28156                          || test ! -s conftest.err'
28157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28158   (eval $ac_try) 2>&5
28159   ac_status=$?
28160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161   (exit $ac_status); }; } &&
28162          { ac_try='test -s conftest$ac_exeext'
28163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28164   (eval $ac_try) 2>&5
28165   ac_status=$?
28166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167   (exit $ac_status); }; }; then
28168   eval "$as_ac_var=yes"
28169 else
28170   echo "$as_me: failed program was:" >&5
28171 sed 's/^/| /' conftest.$ac_ext >&5
28172
28173 eval "$as_ac_var=no"
28174 fi
28175 rm -f conftest.err conftest.$ac_objext \
28176       conftest$ac_exeext conftest.$ac_ext
28177 fi
28178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28180 if test `eval echo '${'$as_ac_var'}'` = yes; then
28181   cat >>confdefs.h <<_ACEOF
28182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28183 _ACEOF
28184
28185 fi
28186 done
28187
28188 echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28189 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
28190 if test "${llvm_cv_c_printf_a+set}" = set; then
28191   echo $ECHO_N "(cached) $ECHO_C" >&6
28192 else
28193   ac_ext=c
28194 ac_cpp='$CPP $CPPFLAGS'
28195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28198
28199  if test "$cross_compiling" = yes; then
28200   llvmac_cv_c_printf_a=no
28201 else
28202   cat >conftest.$ac_ext <<_ACEOF
28203
28204   /* confdefs.h.  */
28205 _ACEOF
28206 cat confdefs.h >>conftest.$ac_ext
28207 cat >>conftest.$ac_ext <<_ACEOF
28208 /* end confdefs.h.  */
28209
28210 #include <stdio.h>
28211 #include <stdlib.h>
28212
28213 int
28214 main ()
28215 {
28216
28217 volatile double A, B;
28218 char Buffer[100];
28219 A = 1;
28220 A /= 10.0;
28221 sprintf(Buffer, "%a", A);
28222 B = atof(Buffer);
28223 if (A != B)
28224   return (1);
28225 if (A != 0x1.999999999999ap-4)
28226   return (1);
28227 return (0);
28228   ;
28229   return 0;
28230 }
28231 _ACEOF
28232 rm -f conftest$ac_exeext
28233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28234   (eval $ac_link) 2>&5
28235   ac_status=$?
28236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28239   (eval $ac_try) 2>&5
28240   ac_status=$?
28241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242   (exit $ac_status); }; }; then
28243   llvm_cv_c_printf_a=yes
28244 else
28245   echo "$as_me: program exited with status $ac_status" >&5
28246 echo "$as_me: failed program was:" >&5
28247 sed 's/^/| /' conftest.$ac_ext >&5
28248
28249 ( exit $ac_status )
28250 llvmac_cv_c_printf_a=no
28251 fi
28252 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28253 fi
28254  ac_ext=c
28255 ac_cpp='$CPP $CPPFLAGS'
28256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28259
28260 fi
28261 echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28262 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28263  if test "$llvm_cv_c_printf_a" = "yes"; then
28264
28265 cat >>confdefs.h <<\_ACEOF
28266 #define HAVE_PRINTF_A 1
28267 _ACEOF
28268
28269  fi
28270
28271 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28272 # for constant arguments.  Useless!
28273 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28274 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28275 if test "${ac_cv_working_alloca_h+set}" = set; then
28276   echo $ECHO_N "(cached) $ECHO_C" >&6
28277 else
28278   cat >conftest.$ac_ext <<_ACEOF
28279 /* confdefs.h.  */
28280 _ACEOF
28281 cat confdefs.h >>conftest.$ac_ext
28282 cat >>conftest.$ac_ext <<_ACEOF
28283 /* end confdefs.h.  */
28284 #include <alloca.h>
28285 int
28286 main ()
28287 {
28288 char *p = (char *) alloca (2 * sizeof (int));
28289   ;
28290   return 0;
28291 }
28292 _ACEOF
28293 rm -f conftest.$ac_objext conftest$ac_exeext
28294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28295   (eval $ac_link) 2>conftest.er1
28296   ac_status=$?
28297   grep -v '^ *+' conftest.er1 >conftest.err
28298   rm -f conftest.er1
28299   cat conftest.err >&5
28300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301   (exit $ac_status); } &&
28302          { ac_try='test -z "$ac_c_werror_flag"
28303                          || test ! -s conftest.err'
28304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28305   (eval $ac_try) 2>&5
28306   ac_status=$?
28307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308   (exit $ac_status); }; } &&
28309          { ac_try='test -s conftest$ac_exeext'
28310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28311   (eval $ac_try) 2>&5
28312   ac_status=$?
28313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28314   (exit $ac_status); }; }; then
28315   ac_cv_working_alloca_h=yes
28316 else
28317   echo "$as_me: failed program was:" >&5
28318 sed 's/^/| /' conftest.$ac_ext >&5
28319
28320 ac_cv_working_alloca_h=no
28321 fi
28322 rm -f conftest.err conftest.$ac_objext \
28323       conftest$ac_exeext conftest.$ac_ext
28324 fi
28325 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28326 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28327 if test $ac_cv_working_alloca_h = yes; then
28328
28329 cat >>confdefs.h <<\_ACEOF
28330 #define HAVE_ALLOCA_H 1
28331 _ACEOF
28332
28333 fi
28334
28335 echo "$as_me:$LINENO: checking for alloca" >&5
28336 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28337 if test "${ac_cv_func_alloca_works+set}" = set; then
28338   echo $ECHO_N "(cached) $ECHO_C" >&6
28339 else
28340   cat >conftest.$ac_ext <<_ACEOF
28341 /* confdefs.h.  */
28342 _ACEOF
28343 cat confdefs.h >>conftest.$ac_ext
28344 cat >>conftest.$ac_ext <<_ACEOF
28345 /* end confdefs.h.  */
28346 #ifdef __GNUC__
28347 # define alloca __builtin_alloca
28348 #else
28349 # ifdef _MSC_VER
28350 #  include <malloc.h>
28351 #  define alloca _alloca
28352 # else
28353 #  if HAVE_ALLOCA_H
28354 #   include <alloca.h>
28355 #  else
28356 #   ifdef _AIX
28357  #pragma alloca
28358 #   else
28359 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28360 char *alloca ();
28361 #    endif
28362 #   endif
28363 #  endif
28364 # endif
28365 #endif
28366
28367 int
28368 main ()
28369 {
28370 char *p = (char *) alloca (1);
28371   ;
28372   return 0;
28373 }
28374 _ACEOF
28375 rm -f conftest.$ac_objext conftest$ac_exeext
28376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28377   (eval $ac_link) 2>conftest.er1
28378   ac_status=$?
28379   grep -v '^ *+' conftest.er1 >conftest.err
28380   rm -f conftest.er1
28381   cat conftest.err >&5
28382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383   (exit $ac_status); } &&
28384          { ac_try='test -z "$ac_c_werror_flag"
28385                          || test ! -s conftest.err'
28386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28387   (eval $ac_try) 2>&5
28388   ac_status=$?
28389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390   (exit $ac_status); }; } &&
28391          { ac_try='test -s conftest$ac_exeext'
28392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28393   (eval $ac_try) 2>&5
28394   ac_status=$?
28395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396   (exit $ac_status); }; }; then
28397   ac_cv_func_alloca_works=yes
28398 else
28399   echo "$as_me: failed program was:" >&5
28400 sed 's/^/| /' conftest.$ac_ext >&5
28401
28402 ac_cv_func_alloca_works=no
28403 fi
28404 rm -f conftest.err conftest.$ac_objext \
28405       conftest$ac_exeext conftest.$ac_ext
28406 fi
28407 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28408 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28409
28410 if test $ac_cv_func_alloca_works = yes; then
28411
28412 cat >>confdefs.h <<\_ACEOF
28413 #define HAVE_ALLOCA 1
28414 _ACEOF
28415
28416 else
28417   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28418 # that cause trouble.  Some versions do not even contain alloca or
28419 # contain a buggy version.  If you still want to use their alloca,
28420 # use ar to extract alloca.o from them instead of compiling alloca.c.
28421
28422 ALLOCA=alloca.$ac_objext
28423
28424 cat >>confdefs.h <<\_ACEOF
28425 #define C_ALLOCA 1
28426 _ACEOF
28427
28428
28429 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28430 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28431 if test "${ac_cv_os_cray+set}" = set; then
28432   echo $ECHO_N "(cached) $ECHO_C" >&6
28433 else
28434   cat >conftest.$ac_ext <<_ACEOF
28435 /* confdefs.h.  */
28436 _ACEOF
28437 cat confdefs.h >>conftest.$ac_ext
28438 cat >>conftest.$ac_ext <<_ACEOF
28439 /* end confdefs.h.  */
28440 #if defined(CRAY) && ! defined(CRAY2)
28441 webecray
28442 #else
28443 wenotbecray
28444 #endif
28445
28446 _ACEOF
28447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28448   $EGREP "webecray" >/dev/null 2>&1; then
28449   ac_cv_os_cray=yes
28450 else
28451   ac_cv_os_cray=no
28452 fi
28453 rm -f conftest*
28454
28455 fi
28456 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28457 echo "${ECHO_T}$ac_cv_os_cray" >&6
28458 if test $ac_cv_os_cray = yes; then
28459   for ac_func in _getb67 GETB67 getb67; do
28460     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28461 echo "$as_me:$LINENO: checking for $ac_func" >&5
28462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28463 if eval "test \"\${$as_ac_var+set}\" = set"; then
28464   echo $ECHO_N "(cached) $ECHO_C" >&6
28465 else
28466   cat >conftest.$ac_ext <<_ACEOF
28467 /* confdefs.h.  */
28468 _ACEOF
28469 cat confdefs.h >>conftest.$ac_ext
28470 cat >>conftest.$ac_ext <<_ACEOF
28471 /* end confdefs.h.  */
28472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28473    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28474 #define $ac_func innocuous_$ac_func
28475
28476 /* System header to define __stub macros and hopefully few prototypes,
28477     which can conflict with char $ac_func (); below.
28478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28479     <limits.h> exists even on freestanding compilers.  */
28480
28481 #ifdef __STDC__
28482 # include <limits.h>
28483 #else
28484 # include <assert.h>
28485 #endif
28486
28487 #undef $ac_func
28488
28489 /* Override any gcc2 internal prototype to avoid an error.  */
28490 #ifdef __cplusplus
28491 extern "C"
28492 {
28493 #endif
28494 /* We use char because int might match the return type of a gcc2
28495    builtin and then its argument prototype would still apply.  */
28496 char $ac_func ();
28497 /* The GNU C library defines this for functions which it implements
28498     to always fail with ENOSYS.  Some functions are actually named
28499     something starting with __ and the normal name is an alias.  */
28500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28501 choke me
28502 #else
28503 char (*f) () = $ac_func;
28504 #endif
28505 #ifdef __cplusplus
28506 }
28507 #endif
28508
28509 int
28510 main ()
28511 {
28512 return f != $ac_func;
28513   ;
28514   return 0;
28515 }
28516 _ACEOF
28517 rm -f conftest.$ac_objext conftest$ac_exeext
28518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28519   (eval $ac_link) 2>conftest.er1
28520   ac_status=$?
28521   grep -v '^ *+' conftest.er1 >conftest.err
28522   rm -f conftest.er1
28523   cat conftest.err >&5
28524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525   (exit $ac_status); } &&
28526          { ac_try='test -z "$ac_c_werror_flag"
28527                          || test ! -s conftest.err'
28528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28529   (eval $ac_try) 2>&5
28530   ac_status=$?
28531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532   (exit $ac_status); }; } &&
28533          { ac_try='test -s conftest$ac_exeext'
28534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28535   (eval $ac_try) 2>&5
28536   ac_status=$?
28537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538   (exit $ac_status); }; }; then
28539   eval "$as_ac_var=yes"
28540 else
28541   echo "$as_me: failed program was:" >&5
28542 sed 's/^/| /' conftest.$ac_ext >&5
28543
28544 eval "$as_ac_var=no"
28545 fi
28546 rm -f conftest.err conftest.$ac_objext \
28547       conftest$ac_exeext conftest.$ac_ext
28548 fi
28549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28551 if test `eval echo '${'$as_ac_var'}'` = yes; then
28552
28553 cat >>confdefs.h <<_ACEOF
28554 #define CRAY_STACKSEG_END $ac_func
28555 _ACEOF
28556
28557     break
28558 fi
28559
28560   done
28561 fi
28562
28563 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28564 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28565 if test "${ac_cv_c_stack_direction+set}" = set; then
28566   echo $ECHO_N "(cached) $ECHO_C" >&6
28567 else
28568   if test "$cross_compiling" = yes; then
28569   ac_cv_c_stack_direction=0
28570 else
28571   cat >conftest.$ac_ext <<_ACEOF
28572 /* confdefs.h.  */
28573 _ACEOF
28574 cat confdefs.h >>conftest.$ac_ext
28575 cat >>conftest.$ac_ext <<_ACEOF
28576 /* end confdefs.h.  */
28577 int
28578 find_stack_direction ()
28579 {
28580   static char *addr = 0;
28581   auto char dummy;
28582   if (addr == 0)
28583     {
28584       addr = &dummy;
28585       return find_stack_direction ();
28586     }
28587   else
28588     return (&dummy > addr) ? 1 : -1;
28589 }
28590
28591 int
28592 main ()
28593 {
28594   exit (find_stack_direction () < 0);
28595 }
28596 _ACEOF
28597 rm -f conftest$ac_exeext
28598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28599   (eval $ac_link) 2>&5
28600   ac_status=$?
28601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28604   (eval $ac_try) 2>&5
28605   ac_status=$?
28606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607   (exit $ac_status); }; }; then
28608   ac_cv_c_stack_direction=1
28609 else
28610   echo "$as_me: program exited with status $ac_status" >&5
28611 echo "$as_me: failed program was:" >&5
28612 sed 's/^/| /' conftest.$ac_ext >&5
28613
28614 ( exit $ac_status )
28615 ac_cv_c_stack_direction=-1
28616 fi
28617 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28618 fi
28619 fi
28620 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28621 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28622
28623 cat >>confdefs.h <<_ACEOF
28624 #define STACK_DIRECTION $ac_cv_c_stack_direction
28625 _ACEOF
28626
28627
28628 fi
28629
28630
28631 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28632 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28633 if test "${ac_cv_func_rand48+set}" = set; then
28634   echo $ECHO_N "(cached) $ECHO_C" >&6
28635 else
28636   ac_ext=cc
28637 ac_cpp='$CXXCPP $CPPFLAGS'
28638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28641
28642    cat >conftest.$ac_ext <<_ACEOF
28643 /* confdefs.h.  */
28644 _ACEOF
28645 cat confdefs.h >>conftest.$ac_ext
28646 cat >>conftest.$ac_ext <<_ACEOF
28647 /* end confdefs.h.  */
28648 #include <stdlib.h>
28649 int
28650 main ()
28651 {
28652 srand48(0);lrand48();drand48();
28653   ;
28654   return 0;
28655 }
28656 _ACEOF
28657 rm -f conftest.$ac_objext
28658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28659   (eval $ac_compile) 2>conftest.er1
28660   ac_status=$?
28661   grep -v '^ *+' conftest.er1 >conftest.err
28662   rm -f conftest.er1
28663   cat conftest.err >&5
28664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665   (exit $ac_status); } &&
28666          { ac_try='test -z "$ac_cxx_werror_flag"
28667                          || test ! -s conftest.err'
28668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28669   (eval $ac_try) 2>&5
28670   ac_status=$?
28671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672   (exit $ac_status); }; } &&
28673          { ac_try='test -s conftest.$ac_objext'
28674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28675   (eval $ac_try) 2>&5
28676   ac_status=$?
28677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678   (exit $ac_status); }; }; then
28679   ac_cv_func_rand48=yes
28680 else
28681   echo "$as_me: failed program was:" >&5
28682 sed 's/^/| /' conftest.$ac_ext >&5
28683
28684 ac_cv_func_rand48=no
28685 fi
28686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28687   ac_ext=c
28688 ac_cpp='$CPP $CPPFLAGS'
28689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28692
28693 fi
28694 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28695 echo "${ECHO_T}$ac_cv_func_rand48" >&6
28696
28697 if test "$ac_cv_func_rand48" = "yes" ; then
28698
28699 cat >>confdefs.h <<\_ACEOF
28700 #define HAVE_RAND48 1
28701 _ACEOF
28702
28703 fi
28704
28705
28706 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28707 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28708 if test "${ac_cv_cxx_namespaces+set}" = set; then
28709   echo $ECHO_N "(cached) $ECHO_C" >&6
28710 else
28711   ac_ext=cc
28712 ac_cpp='$CXXCPP $CPPFLAGS'
28713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28716
28717  cat >conftest.$ac_ext <<_ACEOF
28718 /* confdefs.h.  */
28719 _ACEOF
28720 cat confdefs.h >>conftest.$ac_ext
28721 cat >>conftest.$ac_ext <<_ACEOF
28722 /* end confdefs.h.  */
28723 namespace Outer { namespace Inner { int i = 0; }}
28724 int
28725 main ()
28726 {
28727 using namespace Outer::Inner; return i;
28728   ;
28729   return 0;
28730 }
28731 _ACEOF
28732 rm -f conftest.$ac_objext
28733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28734   (eval $ac_compile) 2>conftest.er1
28735   ac_status=$?
28736   grep -v '^ *+' conftest.er1 >conftest.err
28737   rm -f conftest.er1
28738   cat conftest.err >&5
28739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740   (exit $ac_status); } &&
28741          { ac_try='test -z "$ac_cxx_werror_flag"
28742                          || test ! -s conftest.err'
28743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28744   (eval $ac_try) 2>&5
28745   ac_status=$?
28746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747   (exit $ac_status); }; } &&
28748          { ac_try='test -s conftest.$ac_objext'
28749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28750   (eval $ac_try) 2>&5
28751   ac_status=$?
28752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753   (exit $ac_status); }; }; then
28754   ac_cv_cxx_namespaces=yes
28755 else
28756   echo "$as_me: failed program was:" >&5
28757 sed 's/^/| /' conftest.$ac_ext >&5
28758
28759 ac_cv_cxx_namespaces=no
28760 fi
28761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28762  ac_ext=c
28763 ac_cpp='$CPP $CPPFLAGS'
28764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28767
28768
28769 fi
28770 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28771 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28772 if test "$ac_cv_cxx_namespaces" = yes; then
28773
28774 cat >>confdefs.h <<\_ACEOF
28775 #define HAVE_NAMESPACES
28776 _ACEOF
28777
28778 fi
28779
28780 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28781 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28782 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
28783   echo $ECHO_N "(cached) $ECHO_C" >&6
28784 else
28785
28786   ac_ext=cc
28787 ac_cpp='$CXXCPP $CPPFLAGS'
28788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28791
28792   cat >conftest.$ac_ext <<_ACEOF
28793 /* confdefs.h.  */
28794 _ACEOF
28795 cat confdefs.h >>conftest.$ac_ext
28796 cat >>conftest.$ac_ext <<_ACEOF
28797 /* end confdefs.h.  */
28798 #include <ext/hash_map>
28799 #ifdef HAVE_NAMESPACES
28800 using namespace std;
28801 #endif
28802 int
28803 main ()
28804 {
28805 hash_map<int, int> t;
28806   ;
28807   return 0;
28808 }
28809 _ACEOF
28810 rm -f conftest.$ac_objext
28811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28812   (eval $ac_compile) 2>conftest.er1
28813   ac_status=$?
28814   grep -v '^ *+' conftest.er1 >conftest.err
28815   rm -f conftest.er1
28816   cat conftest.err >&5
28817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818   (exit $ac_status); } &&
28819          { ac_try='test -z "$ac_cxx_werror_flag"
28820                          || test ! -s conftest.err'
28821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28822   (eval $ac_try) 2>&5
28823   ac_status=$?
28824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28825   (exit $ac_status); }; } &&
28826          { ac_try='test -s conftest.$ac_objext'
28827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28828   (eval $ac_try) 2>&5
28829   ac_status=$?
28830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28831   (exit $ac_status); }; }; then
28832   ac_cv_cxx_have_std_ext_hash_map=yes
28833 else
28834   echo "$as_me: failed program was:" >&5
28835 sed 's/^/| /' conftest.$ac_ext >&5
28836
28837 ac_cv_cxx_have_std_ext_hash_map=no
28838 fi
28839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28840   ac_ext=c
28841 ac_cpp='$CPP $CPPFLAGS'
28842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28845
28846 fi
28847 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28848 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
28849  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28850  then
28851
28852 cat >>confdefs.h <<\_ACEOF
28853 #define HAVE_STD_EXT_HASH_MAP 1
28854 _ACEOF
28855
28856  else
28857
28858 cat >>confdefs.h <<\_ACEOF
28859 #define HAVE_STD_EXT_HASH_MAP 0
28860 _ACEOF
28861
28862  fi
28863
28864  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28865 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28866 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28867   echo $ECHO_N "(cached) $ECHO_C" >&6
28868 else
28869
28870   ac_ext=cc
28871 ac_cpp='$CXXCPP $CPPFLAGS'
28872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28875
28876   cat >conftest.$ac_ext <<_ACEOF
28877 /* confdefs.h.  */
28878 _ACEOF
28879 cat confdefs.h >>conftest.$ac_ext
28880 cat >>conftest.$ac_ext <<_ACEOF
28881 /* end confdefs.h.  */
28882 #include <ext/hash_map>
28883 #ifdef HAVE_NAMESPACES
28884 using namespace __gnu_cxx;
28885 #endif
28886 int
28887 main ()
28888 {
28889 hash_map<int,int> t;
28890   ;
28891   return 0;
28892 }
28893 _ACEOF
28894 rm -f conftest.$ac_objext
28895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28896   (eval $ac_compile) 2>conftest.er1
28897   ac_status=$?
28898   grep -v '^ *+' conftest.er1 >conftest.err
28899   rm -f conftest.er1
28900   cat conftest.err >&5
28901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902   (exit $ac_status); } &&
28903          { ac_try='test -z "$ac_cxx_werror_flag"
28904                          || test ! -s conftest.err'
28905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28906   (eval $ac_try) 2>&5
28907   ac_status=$?
28908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909   (exit $ac_status); }; } &&
28910          { ac_try='test -s conftest.$ac_objext'
28911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28912   (eval $ac_try) 2>&5
28913   ac_status=$?
28914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915   (exit $ac_status); }; }; then
28916   ac_cv_cxx_have_gnu_ext_hash_map=yes
28917 else
28918   echo "$as_me: failed program was:" >&5
28919 sed 's/^/| /' conftest.$ac_ext >&5
28920
28921 ac_cv_cxx_have_gnu_ext_hash_map=no
28922 fi
28923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28924   ac_ext=c
28925 ac_cpp='$CPP $CPPFLAGS'
28926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28929
28930 fi
28931 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28932 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
28933  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28934  then
28935
28936 cat >>confdefs.h <<\_ACEOF
28937 #define HAVE_GNU_EXT_HASH_MAP 1
28938 _ACEOF
28939
28940  else
28941
28942 cat >>confdefs.h <<\_ACEOF
28943 #define HAVE_GNU_EXT_HASH_MAP 0
28944 _ACEOF
28945
28946  fi
28947
28948  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28949 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28950 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28951   echo $ECHO_N "(cached) $ECHO_C" >&6
28952 else
28953
28954   ac_ext=cc
28955 ac_cpp='$CXXCPP $CPPFLAGS'
28956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28959
28960   cat >conftest.$ac_ext <<_ACEOF
28961 /* confdefs.h.  */
28962 _ACEOF
28963 cat confdefs.h >>conftest.$ac_ext
28964 cat >>conftest.$ac_ext <<_ACEOF
28965 /* end confdefs.h.  */
28966 #include <hash_map>
28967 int
28968 main ()
28969 {
28970 hash_map<int,int> t;
28971   ;
28972   return 0;
28973 }
28974 _ACEOF
28975 rm -f conftest.$ac_objext
28976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28977   (eval $ac_compile) 2>conftest.er1
28978   ac_status=$?
28979   grep -v '^ *+' conftest.er1 >conftest.err
28980   rm -f conftest.er1
28981   cat conftest.err >&5
28982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28983   (exit $ac_status); } &&
28984          { ac_try='test -z "$ac_cxx_werror_flag"
28985                          || test ! -s conftest.err'
28986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28987   (eval $ac_try) 2>&5
28988   ac_status=$?
28989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990   (exit $ac_status); }; } &&
28991          { ac_try='test -s conftest.$ac_objext'
28992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28993   (eval $ac_try) 2>&5
28994   ac_status=$?
28995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996   (exit $ac_status); }; }; then
28997   ac_cv_cxx_have_global_hash_map=yes
28998 else
28999   echo "$as_me: failed program was:" >&5
29000 sed 's/^/| /' conftest.$ac_ext >&5
29001
29002 ac_cv_cxx_have_global_hash_map=no
29003 fi
29004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29005   ac_ext=c
29006 ac_cpp='$CPP $CPPFLAGS'
29007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29010
29011 fi
29012 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
29013 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
29014  if test "$ac_cv_cxx_have_global_hash_map" = yes
29015  then
29016
29017 cat >>confdefs.h <<\_ACEOF
29018 #define HAVE_GLOBAL_HASH_MAP 1
29019 _ACEOF
29020
29021  else
29022
29023 cat >>confdefs.h <<\_ACEOF
29024 #define HAVE_GLOBAL_HASH_MAP 0
29025 _ACEOF
29026
29027  fi
29028
29029 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29030 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29031 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
29032   echo $ECHO_N "(cached) $ECHO_C" >&6
29033 else
29034
29035   ac_ext=cc
29036 ac_cpp='$CXXCPP $CPPFLAGS'
29037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29040
29041   cat >conftest.$ac_ext <<_ACEOF
29042 /* confdefs.h.  */
29043 _ACEOF
29044 cat confdefs.h >>conftest.$ac_ext
29045 cat >>conftest.$ac_ext <<_ACEOF
29046 /* end confdefs.h.  */
29047 #include <ext/hash_set>
29048 #ifdef HAVE_NAMESPACES
29049 using namespace std;
29050 #endif
29051 int
29052 main ()
29053 {
29054 hash_set<int> t;
29055   ;
29056   return 0;
29057 }
29058 _ACEOF
29059 rm -f conftest.$ac_objext
29060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29061   (eval $ac_compile) 2>conftest.er1
29062   ac_status=$?
29063   grep -v '^ *+' conftest.er1 >conftest.err
29064   rm -f conftest.er1
29065   cat conftest.err >&5
29066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29067   (exit $ac_status); } &&
29068          { ac_try='test -z "$ac_cxx_werror_flag"
29069                          || test ! -s conftest.err'
29070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29071   (eval $ac_try) 2>&5
29072   ac_status=$?
29073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29074   (exit $ac_status); }; } &&
29075          { ac_try='test -s conftest.$ac_objext'
29076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29077   (eval $ac_try) 2>&5
29078   ac_status=$?
29079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080   (exit $ac_status); }; }; then
29081   ac_cv_cxx_have_std_ext_hash_set=yes
29082 else
29083   echo "$as_me: failed program was:" >&5
29084 sed 's/^/| /' conftest.$ac_ext >&5
29085
29086 ac_cv_cxx_have_std_ext_hash_set=no
29087 fi
29088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29089   ac_ext=c
29090 ac_cpp='$CPP $CPPFLAGS'
29091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29094
29095 fi
29096 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29097 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
29098  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29099  then
29100
29101 cat >>confdefs.h <<\_ACEOF
29102 #define HAVE_STD_EXT_HASH_SET 1
29103 _ACEOF
29104
29105  else
29106
29107 cat >>confdefs.h <<\_ACEOF
29108 #define HAVE_STD_EXT_HASH_SET 0
29109 _ACEOF
29110
29111  fi
29112
29113  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29114 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29115 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29116   echo $ECHO_N "(cached) $ECHO_C" >&6
29117 else
29118
29119   ac_ext=cc
29120 ac_cpp='$CXXCPP $CPPFLAGS'
29121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29124
29125   cat >conftest.$ac_ext <<_ACEOF
29126 /* confdefs.h.  */
29127 _ACEOF
29128 cat confdefs.h >>conftest.$ac_ext
29129 cat >>conftest.$ac_ext <<_ACEOF
29130 /* end confdefs.h.  */
29131 #include <ext/hash_set>
29132 #ifdef HAVE_NAMESPACES
29133 using namespace __gnu_cxx;
29134 #endif
29135 int
29136 main ()
29137 {
29138 hash_set<int> t;
29139   ;
29140   return 0;
29141 }
29142 _ACEOF
29143 rm -f conftest.$ac_objext
29144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29145   (eval $ac_compile) 2>conftest.er1
29146   ac_status=$?
29147   grep -v '^ *+' conftest.er1 >conftest.err
29148   rm -f conftest.er1
29149   cat conftest.err >&5
29150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151   (exit $ac_status); } &&
29152          { ac_try='test -z "$ac_cxx_werror_flag"
29153                          || test ! -s conftest.err'
29154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29155   (eval $ac_try) 2>&5
29156   ac_status=$?
29157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158   (exit $ac_status); }; } &&
29159          { ac_try='test -s conftest.$ac_objext'
29160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29161   (eval $ac_try) 2>&5
29162   ac_status=$?
29163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29164   (exit $ac_status); }; }; then
29165   ac_cv_cxx_have_gnu_ext_hash_set=yes
29166 else
29167   echo "$as_me: failed program was:" >&5
29168 sed 's/^/| /' conftest.$ac_ext >&5
29169
29170 ac_cv_cxx_have_gnu_ext_hash_set=no
29171 fi
29172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29173   ac_ext=c
29174 ac_cpp='$CPP $CPPFLAGS'
29175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29178
29179 fi
29180 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29181 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
29182  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29183  then
29184
29185 cat >>confdefs.h <<\_ACEOF
29186 #define HAVE_GNU_EXT_HASH_SET 1
29187 _ACEOF
29188
29189  else
29190
29191 cat >>confdefs.h <<\_ACEOF
29192 #define HAVE_GNU_EXT_HASH_SET 0
29193 _ACEOF
29194
29195  fi
29196
29197  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29198 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29199 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29200   echo $ECHO_N "(cached) $ECHO_C" >&6
29201 else
29202
29203   ac_ext=cc
29204 ac_cpp='$CXXCPP $CPPFLAGS'
29205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29208
29209   cat >conftest.$ac_ext <<_ACEOF
29210 /* confdefs.h.  */
29211 _ACEOF
29212 cat confdefs.h >>conftest.$ac_ext
29213 cat >>conftest.$ac_ext <<_ACEOF
29214 /* end confdefs.h.  */
29215 #include <hash_set>
29216 int
29217 main ()
29218 {
29219 hash_set<int> t; return 0;
29220   ;
29221   return 0;
29222 }
29223 _ACEOF
29224 rm -f conftest.$ac_objext
29225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29226   (eval $ac_compile) 2>conftest.er1
29227   ac_status=$?
29228   grep -v '^ *+' conftest.er1 >conftest.err
29229   rm -f conftest.er1
29230   cat conftest.err >&5
29231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232   (exit $ac_status); } &&
29233          { ac_try='test -z "$ac_cxx_werror_flag"
29234                          || test ! -s conftest.err'
29235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29236   (eval $ac_try) 2>&5
29237   ac_status=$?
29238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239   (exit $ac_status); }; } &&
29240          { ac_try='test -s conftest.$ac_objext'
29241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29242   (eval $ac_try) 2>&5
29243   ac_status=$?
29244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245   (exit $ac_status); }; }; then
29246   ac_cv_cxx_have_global_hash_set=yes
29247 else
29248   echo "$as_me: failed program was:" >&5
29249 sed 's/^/| /' conftest.$ac_ext >&5
29250
29251 ac_cv_cxx_have_global_hash_set=no
29252 fi
29253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29254   ac_ext=c
29255 ac_cpp='$CPP $CPPFLAGS'
29256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29259
29260 fi
29261 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29262 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
29263  if test "$ac_cv_cxx_have_global_hash_set" = yes
29264  then
29265
29266 cat >>confdefs.h <<\_ACEOF
29267 #define HAVE_GLOBAL_HASH_SET 1
29268 _ACEOF
29269
29270  else
29271
29272 cat >>confdefs.h <<\_ACEOF
29273 #define HAVE_GLOBAL_HASH_SET 0
29274 _ACEOF
29275
29276  fi
29277
29278 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29279 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29280 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29281   echo $ECHO_N "(cached) $ECHO_C" >&6
29282 else
29283
29284   ac_ext=cc
29285 ac_cpp='$CXXCPP $CPPFLAGS'
29286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29289
29290   cat >conftest.$ac_ext <<_ACEOF
29291 /* confdefs.h.  */
29292 _ACEOF
29293 cat confdefs.h >>conftest.$ac_ext
29294 cat >>conftest.$ac_ext <<_ACEOF
29295 /* end confdefs.h.  */
29296 #include <iterator>
29297 #ifdef HAVE_NAMESPACES
29298 using namespace std;
29299 #endif
29300 int
29301 main ()
29302 {
29303 iterator<int,int,int> t; return 0;
29304   ;
29305   return 0;
29306 }
29307 _ACEOF
29308 rm -f conftest.$ac_objext
29309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29310   (eval $ac_compile) 2>conftest.er1
29311   ac_status=$?
29312   grep -v '^ *+' conftest.er1 >conftest.err
29313   rm -f conftest.er1
29314   cat conftest.err >&5
29315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316   (exit $ac_status); } &&
29317          { ac_try='test -z "$ac_cxx_werror_flag"
29318                          || test ! -s conftest.err'
29319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29320   (eval $ac_try) 2>&5
29321   ac_status=$?
29322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323   (exit $ac_status); }; } &&
29324          { ac_try='test -s conftest.$ac_objext'
29325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29326   (eval $ac_try) 2>&5
29327   ac_status=$?
29328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329   (exit $ac_status); }; }; then
29330   ac_cv_cxx_have_std_iterator=yes
29331 else
29332   echo "$as_me: failed program was:" >&5
29333 sed 's/^/| /' conftest.$ac_ext >&5
29334
29335 ac_cv_cxx_have_std_iterator=no
29336 fi
29337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29338   ac_ext=c
29339 ac_cpp='$CPP $CPPFLAGS'
29340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29343
29344
29345 fi
29346 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29347 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
29348 if test "$ac_cv_cxx_have_std_iterator" = yes
29349 then
29350
29351 cat >>confdefs.h <<\_ACEOF
29352 #define HAVE_STD_ITERATOR 1
29353 _ACEOF
29354
29355 else
29356
29357 cat >>confdefs.h <<\_ACEOF
29358 #define HAVE_STD_ITERATOR 0
29359 _ACEOF
29360
29361 fi
29362
29363 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29364 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29365 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29366   echo $ECHO_N "(cached) $ECHO_C" >&6
29367 else
29368
29369   ac_ext=cc
29370 ac_cpp='$CXXCPP $CPPFLAGS'
29371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29374
29375   cat >conftest.$ac_ext <<_ACEOF
29376 /* confdefs.h.  */
29377 _ACEOF
29378 cat confdefs.h >>conftest.$ac_ext
29379 cat >>conftest.$ac_ext <<_ACEOF
29380 /* end confdefs.h.  */
29381 #include <iterator>
29382 #ifdef HAVE_NAMESPACES
29383 using namespace std;
29384 #endif
29385 int
29386 main ()
29387 {
29388 bidirectional_iterator<int,int> t; return 0;
29389   ;
29390   return 0;
29391 }
29392 _ACEOF
29393 rm -f conftest.$ac_objext
29394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29395   (eval $ac_compile) 2>conftest.er1
29396   ac_status=$?
29397   grep -v '^ *+' conftest.er1 >conftest.err
29398   rm -f conftest.er1
29399   cat conftest.err >&5
29400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401   (exit $ac_status); } &&
29402          { ac_try='test -z "$ac_cxx_werror_flag"
29403                          || test ! -s conftest.err'
29404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29405   (eval $ac_try) 2>&5
29406   ac_status=$?
29407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408   (exit $ac_status); }; } &&
29409          { ac_try='test -s conftest.$ac_objext'
29410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29411   (eval $ac_try) 2>&5
29412   ac_status=$?
29413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414   (exit $ac_status); }; }; then
29415   ac_cv_cxx_have_bi_iterator=yes
29416 else
29417   echo "$as_me: failed program was:" >&5
29418 sed 's/^/| /' conftest.$ac_ext >&5
29419
29420 ac_cv_cxx_have_bi_iterator=no
29421 fi
29422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29423   ac_ext=c
29424 ac_cpp='$CPP $CPPFLAGS'
29425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29428
29429
29430 fi
29431 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29432 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
29433 if test "$ac_cv_cxx_have_bi_iterator" = yes
29434 then
29435
29436 cat >>confdefs.h <<\_ACEOF
29437 #define HAVE_BI_ITERATOR 1
29438 _ACEOF
29439
29440 else
29441
29442 cat >>confdefs.h <<\_ACEOF
29443 #define HAVE_BI_ITERATOR 0
29444 _ACEOF
29445
29446 fi
29447
29448 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29449 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29450 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29451   echo $ECHO_N "(cached) $ECHO_C" >&6
29452 else
29453
29454   ac_ext=cc
29455 ac_cpp='$CXXCPP $CPPFLAGS'
29456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29459
29460   cat >conftest.$ac_ext <<_ACEOF
29461 /* confdefs.h.  */
29462 _ACEOF
29463 cat confdefs.h >>conftest.$ac_ext
29464 cat >>conftest.$ac_ext <<_ACEOF
29465 /* end confdefs.h.  */
29466 #include <iterator>
29467 #ifdef HAVE_NAMESPACES
29468 using namespace std;
29469 #endif
29470 int
29471 main ()
29472 {
29473 forward_iterator<int,int> t; return 0;
29474   ;
29475   return 0;
29476 }
29477 _ACEOF
29478 rm -f conftest.$ac_objext
29479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29480   (eval $ac_compile) 2>conftest.er1
29481   ac_status=$?
29482   grep -v '^ *+' conftest.er1 >conftest.err
29483   rm -f conftest.er1
29484   cat conftest.err >&5
29485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486   (exit $ac_status); } &&
29487          { ac_try='test -z "$ac_cxx_werror_flag"
29488                          || test ! -s conftest.err'
29489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29490   (eval $ac_try) 2>&5
29491   ac_status=$?
29492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493   (exit $ac_status); }; } &&
29494          { ac_try='test -s conftest.$ac_objext'
29495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29496   (eval $ac_try) 2>&5
29497   ac_status=$?
29498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499   (exit $ac_status); }; }; then
29500   ac_cv_cxx_have_fwd_iterator=yes
29501 else
29502   echo "$as_me: failed program was:" >&5
29503 sed 's/^/| /' conftest.$ac_ext >&5
29504
29505 ac_cv_cxx_have_fwd_iterator=no
29506 fi
29507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29508   ac_ext=c
29509 ac_cpp='$CPP $CPPFLAGS'
29510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29513
29514
29515 fi
29516 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29517 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
29518 if test "$ac_cv_cxx_have_fwd_iterator" = yes
29519 then
29520
29521 cat >>confdefs.h <<\_ACEOF
29522 #define HAVE_FWD_ITERATOR 1
29523 _ACEOF
29524
29525 else
29526
29527 cat >>confdefs.h <<\_ACEOF
29528 #define HAVE_FWD_ITERATOR 0
29529 _ACEOF
29530
29531 fi
29532
29533
29534 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29535 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29536 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29537   echo $ECHO_N "(cached) $ECHO_C" >&6
29538 else
29539   ac_ext=cc
29540 ac_cpp='$CXXCPP $CPPFLAGS'
29541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29544
29545    cat >conftest.$ac_ext <<_ACEOF
29546 /* confdefs.h.  */
29547 _ACEOF
29548 cat confdefs.h >>conftest.$ac_ext
29549 cat >>conftest.$ac_ext <<_ACEOF
29550 /* end confdefs.h.  */
29551 #include <math.h>
29552 int
29553 main ()
29554 {
29555 float f; isnan(f);
29556   ;
29557   return 0;
29558 }
29559 _ACEOF
29560 rm -f conftest.$ac_objext
29561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29562   (eval $ac_compile) 2>conftest.er1
29563   ac_status=$?
29564   grep -v '^ *+' conftest.er1 >conftest.err
29565   rm -f conftest.er1
29566   cat conftest.err >&5
29567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568   (exit $ac_status); } &&
29569          { ac_try='test -z "$ac_cxx_werror_flag"
29570                          || test ! -s conftest.err'
29571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29572   (eval $ac_try) 2>&5
29573   ac_status=$?
29574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29575   (exit $ac_status); }; } &&
29576          { ac_try='test -s conftest.$ac_objext'
29577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29578   (eval $ac_try) 2>&5
29579   ac_status=$?
29580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581   (exit $ac_status); }; }; then
29582   ac_cv_func_isnan_in_math_h=yes
29583 else
29584   echo "$as_me: failed program was:" >&5
29585 sed 's/^/| /' conftest.$ac_ext >&5
29586
29587 ac_cv_func_isnan_in_math_h=no
29588 fi
29589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29590   ac_ext=c
29591 ac_cpp='$CPP $CPPFLAGS'
29592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29595
29596 fi
29597 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29598 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
29599
29600
29601 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
29602
29603 cat >>confdefs.h <<\_ACEOF
29604 #define HAVE_ISNAN_IN_MATH_H 1
29605 _ACEOF
29606
29607 fi
29608
29609 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29610 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29611 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29612   echo $ECHO_N "(cached) $ECHO_C" >&6
29613 else
29614   ac_ext=cc
29615 ac_cpp='$CXXCPP $CPPFLAGS'
29616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29619
29620    cat >conftest.$ac_ext <<_ACEOF
29621 /* confdefs.h.  */
29622 _ACEOF
29623 cat confdefs.h >>conftest.$ac_ext
29624 cat >>conftest.$ac_ext <<_ACEOF
29625 /* end confdefs.h.  */
29626 #include <cmath>
29627 int
29628 main ()
29629 {
29630 float f; isnan(f);
29631   ;
29632   return 0;
29633 }
29634 _ACEOF
29635 rm -f conftest.$ac_objext
29636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29637   (eval $ac_compile) 2>conftest.er1
29638   ac_status=$?
29639   grep -v '^ *+' conftest.er1 >conftest.err
29640   rm -f conftest.er1
29641   cat conftest.err >&5
29642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643   (exit $ac_status); } &&
29644          { ac_try='test -z "$ac_cxx_werror_flag"
29645                          || test ! -s conftest.err'
29646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29647   (eval $ac_try) 2>&5
29648   ac_status=$?
29649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650   (exit $ac_status); }; } &&
29651          { ac_try='test -s conftest.$ac_objext'
29652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29653   (eval $ac_try) 2>&5
29654   ac_status=$?
29655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656   (exit $ac_status); }; }; then
29657   ac_cv_func_isnan_in_cmath=yes
29658 else
29659   echo "$as_me: failed program was:" >&5
29660 sed 's/^/| /' conftest.$ac_ext >&5
29661
29662 ac_cv_func_isnan_in_cmath=no
29663 fi
29664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29665   ac_ext=c
29666 ac_cpp='$CPP $CPPFLAGS'
29667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29670
29671 fi
29672 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29673 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
29674
29675 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
29676
29677 cat >>confdefs.h <<\_ACEOF
29678 #define HAVE_ISNAN_IN_CMATH 1
29679 _ACEOF
29680
29681 fi
29682
29683 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29684 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29685 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29686   echo $ECHO_N "(cached) $ECHO_C" >&6
29687 else
29688   ac_ext=cc
29689 ac_cpp='$CXXCPP $CPPFLAGS'
29690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29693
29694    cat >conftest.$ac_ext <<_ACEOF
29695 /* confdefs.h.  */
29696 _ACEOF
29697 cat confdefs.h >>conftest.$ac_ext
29698 cat >>conftest.$ac_ext <<_ACEOF
29699 /* end confdefs.h.  */
29700 #include <cmath>
29701 int
29702 main ()
29703 {
29704 float f; std::isnan(f);
29705   ;
29706   return 0;
29707 }
29708 _ACEOF
29709 rm -f conftest.$ac_objext
29710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29711   (eval $ac_compile) 2>conftest.er1
29712   ac_status=$?
29713   grep -v '^ *+' conftest.er1 >conftest.err
29714   rm -f conftest.er1
29715   cat conftest.err >&5
29716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717   (exit $ac_status); } &&
29718          { ac_try='test -z "$ac_cxx_werror_flag"
29719                          || test ! -s conftest.err'
29720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29721   (eval $ac_try) 2>&5
29722   ac_status=$?
29723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724   (exit $ac_status); }; } &&
29725          { ac_try='test -s conftest.$ac_objext'
29726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29727   (eval $ac_try) 2>&5
29728   ac_status=$?
29729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29730   (exit $ac_status); }; }; then
29731   ac_cv_func_std_isnan_in_cmath=yes
29732 else
29733   echo "$as_me: failed program was:" >&5
29734 sed 's/^/| /' conftest.$ac_ext >&5
29735
29736 ac_cv_func_std_isnan_in_cmath=no
29737 fi
29738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29739   ac_ext=c
29740 ac_cpp='$CPP $CPPFLAGS'
29741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29744
29745 fi
29746 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29747 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
29748
29749 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
29750
29751 cat >>confdefs.h <<\_ACEOF
29752 #define HAVE_STD_ISNAN_IN_CMATH 1
29753 _ACEOF
29754
29755 fi
29756
29757
29758 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29759 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29760 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29761   echo $ECHO_N "(cached) $ECHO_C" >&6
29762 else
29763   ac_ext=cc
29764 ac_cpp='$CXXCPP $CPPFLAGS'
29765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29768
29769    cat >conftest.$ac_ext <<_ACEOF
29770 /* confdefs.h.  */
29771 _ACEOF
29772 cat confdefs.h >>conftest.$ac_ext
29773 cat >>conftest.$ac_ext <<_ACEOF
29774 /* end confdefs.h.  */
29775 #include <math.h>
29776 int
29777 main ()
29778 {
29779 float f; isinf(f);
29780   ;
29781   return 0;
29782 }
29783 _ACEOF
29784 rm -f conftest.$ac_objext
29785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29786   (eval $ac_compile) 2>conftest.er1
29787   ac_status=$?
29788   grep -v '^ *+' conftest.er1 >conftest.err
29789   rm -f conftest.er1
29790   cat conftest.err >&5
29791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792   (exit $ac_status); } &&
29793          { ac_try='test -z "$ac_cxx_werror_flag"
29794                          || test ! -s conftest.err'
29795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29796   (eval $ac_try) 2>&5
29797   ac_status=$?
29798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29799   (exit $ac_status); }; } &&
29800          { ac_try='test -s conftest.$ac_objext'
29801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29802   (eval $ac_try) 2>&5
29803   ac_status=$?
29804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29805   (exit $ac_status); }; }; then
29806   ac_cv_func_isinf_in_math_h=yes
29807 else
29808   echo "$as_me: failed program was:" >&5
29809 sed 's/^/| /' conftest.$ac_ext >&5
29810
29811 ac_cv_func_isinf_in_math_h=no
29812 fi
29813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29814   ac_ext=c
29815 ac_cpp='$CPP $CPPFLAGS'
29816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29819
29820 fi
29821 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29822 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
29823
29824 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
29825
29826 cat >>confdefs.h <<\_ACEOF
29827 #define HAVE_ISINF_IN_MATH_H 1
29828 _ACEOF
29829
29830 fi
29831
29832 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29833 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29834 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29835   echo $ECHO_N "(cached) $ECHO_C" >&6
29836 else
29837   ac_ext=cc
29838 ac_cpp='$CXXCPP $CPPFLAGS'
29839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29842
29843    cat >conftest.$ac_ext <<_ACEOF
29844 /* confdefs.h.  */
29845 _ACEOF
29846 cat confdefs.h >>conftest.$ac_ext
29847 cat >>conftest.$ac_ext <<_ACEOF
29848 /* end confdefs.h.  */
29849 #include <cmath>
29850 int
29851 main ()
29852 {
29853 float f; isinf(f);
29854   ;
29855   return 0;
29856 }
29857 _ACEOF
29858 rm -f conftest.$ac_objext
29859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29860   (eval $ac_compile) 2>conftest.er1
29861   ac_status=$?
29862   grep -v '^ *+' conftest.er1 >conftest.err
29863   rm -f conftest.er1
29864   cat conftest.err >&5
29865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866   (exit $ac_status); } &&
29867          { ac_try='test -z "$ac_cxx_werror_flag"
29868                          || test ! -s conftest.err'
29869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29870   (eval $ac_try) 2>&5
29871   ac_status=$?
29872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873   (exit $ac_status); }; } &&
29874          { ac_try='test -s conftest.$ac_objext'
29875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29876   (eval $ac_try) 2>&5
29877   ac_status=$?
29878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879   (exit $ac_status); }; }; then
29880   ac_cv_func_isinf_in_cmath=yes
29881 else
29882   echo "$as_me: failed program was:" >&5
29883 sed 's/^/| /' conftest.$ac_ext >&5
29884
29885 ac_cv_func_isinf_in_cmath=no
29886 fi
29887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29888   ac_ext=c
29889 ac_cpp='$CPP $CPPFLAGS'
29890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29893
29894 fi
29895 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29896 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
29897
29898 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
29899
29900 cat >>confdefs.h <<\_ACEOF
29901 #define HAVE_ISINF_IN_CMATH 1
29902 _ACEOF
29903
29904 fi
29905
29906 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29907 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29908 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29909   echo $ECHO_N "(cached) $ECHO_C" >&6
29910 else
29911   ac_ext=cc
29912 ac_cpp='$CXXCPP $CPPFLAGS'
29913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29916
29917    cat >conftest.$ac_ext <<_ACEOF
29918 /* confdefs.h.  */
29919 _ACEOF
29920 cat confdefs.h >>conftest.$ac_ext
29921 cat >>conftest.$ac_ext <<_ACEOF
29922 /* end confdefs.h.  */
29923 #include <cmath>
29924 int
29925 main ()
29926 {
29927 float f; std::isinf(f)}
29928   ;
29929   return 0;
29930 }
29931 _ACEOF
29932 rm -f conftest.$ac_objext
29933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29934   (eval $ac_compile) 2>conftest.er1
29935   ac_status=$?
29936   grep -v '^ *+' conftest.er1 >conftest.err
29937   rm -f conftest.er1
29938   cat conftest.err >&5
29939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940   (exit $ac_status); } &&
29941          { ac_try='test -z "$ac_cxx_werror_flag"
29942                          || test ! -s conftest.err'
29943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29944   (eval $ac_try) 2>&5
29945   ac_status=$?
29946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947   (exit $ac_status); }; } &&
29948          { ac_try='test -s conftest.$ac_objext'
29949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29950   (eval $ac_try) 2>&5
29951   ac_status=$?
29952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953   (exit $ac_status); }; }; then
29954   ac_cv_func_std_isinf_in_cmath=yes
29955 else
29956   echo "$as_me: failed program was:" >&5
29957 sed 's/^/| /' conftest.$ac_ext >&5
29958
29959 ac_cv_func_std_isinf_in_cmath=no
29960 fi
29961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29962   ac_ext=c
29963 ac_cpp='$CPP $CPPFLAGS'
29964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29967
29968 fi
29969 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29970 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
29971
29972 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
29973
29974 cat >>confdefs.h <<\_ACEOF
29975 #define HAVE_STD_ISINF_IN_CMATH 1
29976 _ACEOF
29977
29978 fi
29979
29980 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29981 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29982 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29983   echo $ECHO_N "(cached) $ECHO_C" >&6
29984 else
29985   ac_ext=cc
29986 ac_cpp='$CXXCPP $CPPFLAGS'
29987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29990
29991    cat >conftest.$ac_ext <<_ACEOF
29992 /* confdefs.h.  */
29993 _ACEOF
29994 cat confdefs.h >>conftest.$ac_ext
29995 cat >>conftest.$ac_ext <<_ACEOF
29996 /* end confdefs.h.  */
29997 #include <ieeefp.h>
29998 int
29999 main ()
30000 {
30001 float f; finite(f);
30002   ;
30003   return 0;
30004 }
30005 _ACEOF
30006 rm -f conftest.$ac_objext
30007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30008   (eval $ac_compile) 2>conftest.er1
30009   ac_status=$?
30010   grep -v '^ *+' conftest.er1 >conftest.err
30011   rm -f conftest.er1
30012   cat conftest.err >&5
30013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014   (exit $ac_status); } &&
30015          { ac_try='test -z "$ac_cxx_werror_flag"
30016                          || test ! -s conftest.err'
30017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30018   (eval $ac_try) 2>&5
30019   ac_status=$?
30020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021   (exit $ac_status); }; } &&
30022          { ac_try='test -s conftest.$ac_objext'
30023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30024   (eval $ac_try) 2>&5
30025   ac_status=$?
30026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30027   (exit $ac_status); }; }; then
30028   ac_cv_func_finite_in_ieeefp_h=yes
30029 else
30030   echo "$as_me: failed program was:" >&5
30031 sed 's/^/| /' conftest.$ac_ext >&5
30032
30033 ac_cv_func_finite_in_ieeefp_h=no
30034 fi
30035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30036   ac_ext=c
30037 ac_cpp='$CPP $CPPFLAGS'
30038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30041
30042 fi
30043 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30044 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
30045
30046 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
30047
30048 cat >>confdefs.h <<\_ACEOF
30049 #define HAVE_FINITE_IN_IEEEFP_H 1
30050 _ACEOF
30051
30052 fi
30053
30054
30055
30056
30057
30058 for ac_header in stdlib.h unistd.h
30059 do
30060 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30062   echo "$as_me:$LINENO: checking for $ac_header" >&5
30063 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30065   echo $ECHO_N "(cached) $ECHO_C" >&6
30066 fi
30067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30069 else
30070   # Is the header compilable?
30071 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30073 cat >conftest.$ac_ext <<_ACEOF
30074 /* confdefs.h.  */
30075 _ACEOF
30076 cat confdefs.h >>conftest.$ac_ext
30077 cat >>conftest.$ac_ext <<_ACEOF
30078 /* end confdefs.h.  */
30079 $ac_includes_default
30080 #include <$ac_header>
30081 _ACEOF
30082 rm -f conftest.$ac_objext
30083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30084   (eval $ac_compile) 2>conftest.er1
30085   ac_status=$?
30086   grep -v '^ *+' conftest.er1 >conftest.err
30087   rm -f conftest.er1
30088   cat conftest.err >&5
30089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30090   (exit $ac_status); } &&
30091          { ac_try='test -z "$ac_c_werror_flag"
30092                          || test ! -s conftest.err'
30093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30094   (eval $ac_try) 2>&5
30095   ac_status=$?
30096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097   (exit $ac_status); }; } &&
30098          { ac_try='test -s conftest.$ac_objext'
30099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30100   (eval $ac_try) 2>&5
30101   ac_status=$?
30102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103   (exit $ac_status); }; }; then
30104   ac_header_compiler=yes
30105 else
30106   echo "$as_me: failed program was:" >&5
30107 sed 's/^/| /' conftest.$ac_ext >&5
30108
30109 ac_header_compiler=no
30110 fi
30111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30112 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30113 echo "${ECHO_T}$ac_header_compiler" >&6
30114
30115 # Is the header present?
30116 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30118 cat >conftest.$ac_ext <<_ACEOF
30119 /* confdefs.h.  */
30120 _ACEOF
30121 cat confdefs.h >>conftest.$ac_ext
30122 cat >>conftest.$ac_ext <<_ACEOF
30123 /* end confdefs.h.  */
30124 #include <$ac_header>
30125 _ACEOF
30126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30127   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30128   ac_status=$?
30129   grep -v '^ *+' conftest.er1 >conftest.err
30130   rm -f conftest.er1
30131   cat conftest.err >&5
30132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30133   (exit $ac_status); } >/dev/null; then
30134   if test -s conftest.err; then
30135     ac_cpp_err=$ac_c_preproc_warn_flag
30136     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30137   else
30138     ac_cpp_err=
30139   fi
30140 else
30141   ac_cpp_err=yes
30142 fi
30143 if test -z "$ac_cpp_err"; then
30144   ac_header_preproc=yes
30145 else
30146   echo "$as_me: failed program was:" >&5
30147 sed 's/^/| /' conftest.$ac_ext >&5
30148
30149   ac_header_preproc=no
30150 fi
30151 rm -f conftest.err conftest.$ac_ext
30152 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30153 echo "${ECHO_T}$ac_header_preproc" >&6
30154
30155 # So?  What about this header?
30156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30157   yes:no: )
30158     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30159 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30160     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30162     ac_header_preproc=yes
30163     ;;
30164   no:yes:* )
30165     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30167     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30168 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30169     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30170 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30171     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30172 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30173     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30175     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30176 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30177     (
30178       cat <<\_ASBOX
30179 ## ----------------------------------- ##
30180 ## Report this to llvmbugs@cs.uiuc.edu ##
30181 ## ----------------------------------- ##
30182 _ASBOX
30183     ) |
30184       sed "s/^/$as_me: WARNING:     /" >&2
30185     ;;
30186 esac
30187 echo "$as_me:$LINENO: checking for $ac_header" >&5
30188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30190   echo $ECHO_N "(cached) $ECHO_C" >&6
30191 else
30192   eval "$as_ac_Header=\$ac_header_preproc"
30193 fi
30194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30196
30197 fi
30198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30199   cat >>confdefs.h <<_ACEOF
30200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30201 _ACEOF
30202
30203 fi
30204
30205 done
30206
30207
30208 for ac_func in getpagesize
30209 do
30210 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30211 echo "$as_me:$LINENO: checking for $ac_func" >&5
30212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30213 if eval "test \"\${$as_ac_var+set}\" = set"; then
30214   echo $ECHO_N "(cached) $ECHO_C" >&6
30215 else
30216   cat >conftest.$ac_ext <<_ACEOF
30217 /* confdefs.h.  */
30218 _ACEOF
30219 cat confdefs.h >>conftest.$ac_ext
30220 cat >>conftest.$ac_ext <<_ACEOF
30221 /* end confdefs.h.  */
30222 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30223    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30224 #define $ac_func innocuous_$ac_func
30225
30226 /* System header to define __stub macros and hopefully few prototypes,
30227     which can conflict with char $ac_func (); below.
30228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30229     <limits.h> exists even on freestanding compilers.  */
30230
30231 #ifdef __STDC__
30232 # include <limits.h>
30233 #else
30234 # include <assert.h>
30235 #endif
30236
30237 #undef $ac_func
30238
30239 /* Override any gcc2 internal prototype to avoid an error.  */
30240 #ifdef __cplusplus
30241 extern "C"
30242 {
30243 #endif
30244 /* We use char because int might match the return type of a gcc2
30245    builtin and then its argument prototype would still apply.  */
30246 char $ac_func ();
30247 /* The GNU C library defines this for functions which it implements
30248     to always fail with ENOSYS.  Some functions are actually named
30249     something starting with __ and the normal name is an alias.  */
30250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30251 choke me
30252 #else
30253 char (*f) () = $ac_func;
30254 #endif
30255 #ifdef __cplusplus
30256 }
30257 #endif
30258
30259 int
30260 main ()
30261 {
30262 return f != $ac_func;
30263   ;
30264   return 0;
30265 }
30266 _ACEOF
30267 rm -f conftest.$ac_objext conftest$ac_exeext
30268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30269   (eval $ac_link) 2>conftest.er1
30270   ac_status=$?
30271   grep -v '^ *+' conftest.er1 >conftest.err
30272   rm -f conftest.er1
30273   cat conftest.err >&5
30274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275   (exit $ac_status); } &&
30276          { ac_try='test -z "$ac_c_werror_flag"
30277                          || test ! -s conftest.err'
30278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30279   (eval $ac_try) 2>&5
30280   ac_status=$?
30281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282   (exit $ac_status); }; } &&
30283          { ac_try='test -s conftest$ac_exeext'
30284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30285   (eval $ac_try) 2>&5
30286   ac_status=$?
30287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288   (exit $ac_status); }; }; then
30289   eval "$as_ac_var=yes"
30290 else
30291   echo "$as_me: failed program was:" >&5
30292 sed 's/^/| /' conftest.$ac_ext >&5
30293
30294 eval "$as_ac_var=no"
30295 fi
30296 rm -f conftest.err conftest.$ac_objext \
30297       conftest$ac_exeext conftest.$ac_ext
30298 fi
30299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30300 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30301 if test `eval echo '${'$as_ac_var'}'` = yes; then
30302   cat >>confdefs.h <<_ACEOF
30303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30304 _ACEOF
30305
30306 fi
30307 done
30308
30309 echo "$as_me:$LINENO: checking for working mmap" >&5
30310 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30311 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30312   echo $ECHO_N "(cached) $ECHO_C" >&6
30313 else
30314   if test "$cross_compiling" = yes; then
30315   ac_cv_func_mmap_fixed_mapped=no
30316 else
30317   cat >conftest.$ac_ext <<_ACEOF
30318 /* confdefs.h.  */
30319 _ACEOF
30320 cat confdefs.h >>conftest.$ac_ext
30321 cat >>conftest.$ac_ext <<_ACEOF
30322 /* end confdefs.h.  */
30323 $ac_includes_default
30324 /* malloc might have been renamed as rpl_malloc. */
30325 #undef malloc
30326
30327 /* Thanks to Mike Haertel and Jim Avera for this test.
30328    Here is a matrix of mmap possibilities:
30329         mmap private not fixed
30330         mmap private fixed at somewhere currently unmapped
30331         mmap private fixed at somewhere already mapped
30332         mmap shared not fixed
30333         mmap shared fixed at somewhere currently unmapped
30334         mmap shared fixed at somewhere already mapped
30335    For private mappings, we should verify that changes cannot be read()
30336    back from the file, nor mmap's back from the file at a different
30337    address.  (There have been systems where private was not correctly
30338    implemented like the infamous i386 svr4.0, and systems where the
30339    VM page cache was not coherent with the file system buffer cache
30340    like early versions of FreeBSD and possibly contemporary NetBSD.)
30341    For shared mappings, we should conversely verify that changes get
30342    propagated back to all the places they're supposed to be.
30343
30344    Grep wants private fixed already mapped.
30345    The main things grep needs to know about mmap are:
30346    * does it exist and is it safe to write into the mmap'd area
30347    * how to use it (BSD variants)  */
30348
30349 #include <fcntl.h>
30350 #include <sys/mman.h>
30351
30352 #if !STDC_HEADERS && !HAVE_STDLIB_H
30353 char *malloc ();
30354 #endif
30355
30356 /* This mess was copied from the GNU getpagesize.h.  */
30357 #if !HAVE_GETPAGESIZE
30358 /* Assume that all systems that can run configure have sys/param.h.  */
30359 # if !HAVE_SYS_PARAM_H
30360 #  define HAVE_SYS_PARAM_H 1
30361 # endif
30362
30363 # ifdef _SC_PAGESIZE
30364 #  define getpagesize() sysconf(_SC_PAGESIZE)
30365 # else /* no _SC_PAGESIZE */
30366 #  if HAVE_SYS_PARAM_H
30367 #   include <sys/param.h>
30368 #   ifdef EXEC_PAGESIZE
30369 #    define getpagesize() EXEC_PAGESIZE
30370 #   else /* no EXEC_PAGESIZE */
30371 #    ifdef NBPG
30372 #     define getpagesize() NBPG * CLSIZE
30373 #     ifndef CLSIZE
30374 #      define CLSIZE 1
30375 #     endif /* no CLSIZE */
30376 #    else /* no NBPG */
30377 #     ifdef NBPC
30378 #      define getpagesize() NBPC
30379 #     else /* no NBPC */
30380 #      ifdef PAGESIZE
30381 #       define getpagesize() PAGESIZE
30382 #      endif /* PAGESIZE */
30383 #     endif /* no NBPC */
30384 #    endif /* no NBPG */
30385 #   endif /* no EXEC_PAGESIZE */
30386 #  else /* no HAVE_SYS_PARAM_H */
30387 #   define getpagesize() 8192   /* punt totally */
30388 #  endif /* no HAVE_SYS_PARAM_H */
30389 # endif /* no _SC_PAGESIZE */
30390
30391 #endif /* no HAVE_GETPAGESIZE */
30392
30393 int
30394 main ()
30395 {
30396   char *data, *data2, *data3;
30397   int i, pagesize;
30398   int fd;
30399
30400   pagesize = getpagesize ();
30401
30402   /* First, make a file with some known garbage in it. */
30403   data = (char *) malloc (pagesize);
30404   if (!data)
30405     exit (1);
30406   for (i = 0; i < pagesize; ++i)
30407     *(data + i) = rand ();
30408   umask (0);
30409   fd = creat ("conftest.mmap", 0600);
30410   if (fd < 0)
30411     exit (1);
30412   if (write (fd, data, pagesize) != pagesize)
30413     exit (1);
30414   close (fd);
30415
30416   /* Next, try to mmap the file at a fixed address which already has
30417      something else allocated at it.  If we can, also make sure that
30418      we see the same garbage.  */
30419   fd = open ("conftest.mmap", O_RDWR);
30420   if (fd < 0)
30421     exit (1);
30422   data2 = (char *) malloc (2 * pagesize);
30423   if (!data2)
30424     exit (1);
30425   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30426   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30427                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
30428     exit (1);
30429   for (i = 0; i < pagesize; ++i)
30430     if (*(data + i) != *(data2 + i))
30431       exit (1);
30432
30433   /* Finally, make sure that changes to the mapped area do not
30434      percolate back to the file as seen by read().  (This is a bug on
30435      some variants of i386 svr4.0.)  */
30436   for (i = 0; i < pagesize; ++i)
30437     *(data2 + i) = *(data2 + i) + 1;
30438   data3 = (char *) malloc (pagesize);
30439   if (!data3)
30440     exit (1);
30441   if (read (fd, data3, pagesize) != pagesize)
30442     exit (1);
30443   for (i = 0; i < pagesize; ++i)
30444     if (*(data + i) != *(data3 + i))
30445       exit (1);
30446   close (fd);
30447   exit (0);
30448 }
30449 _ACEOF
30450 rm -f conftest$ac_exeext
30451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30452   (eval $ac_link) 2>&5
30453   ac_status=$?
30454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30455   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30457   (eval $ac_try) 2>&5
30458   ac_status=$?
30459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30460   (exit $ac_status); }; }; then
30461   ac_cv_func_mmap_fixed_mapped=yes
30462 else
30463   echo "$as_me: program exited with status $ac_status" >&5
30464 echo "$as_me: failed program was:" >&5
30465 sed 's/^/| /' conftest.$ac_ext >&5
30466
30467 ( exit $ac_status )
30468 ac_cv_func_mmap_fixed_mapped=no
30469 fi
30470 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30471 fi
30472 fi
30473 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30474 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30475 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30476
30477 cat >>confdefs.h <<\_ACEOF
30478 #define HAVE_MMAP 1
30479 _ACEOF
30480
30481 fi
30482 rm -f conftest.mmap
30483
30484 echo "$as_me:$LINENO: checking for mmap of files" >&5
30485 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30486 if test "${ac_cv_func_mmap_file+set}" = set; then
30487   echo $ECHO_N "(cached) $ECHO_C" >&6
30488 else
30489    ac_ext=c
30490 ac_cpp='$CPP $CPPFLAGS'
30491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30494
30495   if test "$cross_compiling" = yes; then
30496   ac_cv_func_mmap_file=no
30497 else
30498   cat >conftest.$ac_ext <<_ACEOF
30499
30500     /* confdefs.h.  */
30501 _ACEOF
30502 cat confdefs.h >>conftest.$ac_ext
30503 cat >>conftest.$ac_ext <<_ACEOF
30504 /* end confdefs.h.  */
30505
30506 #include <sys/types.h>
30507 #include <sys/mman.h>
30508 #include <fcntl.h>
30509
30510 int
30511 main ()
30512 {
30513
30514   int fd;
30515   fd = creat ("foo",0777);
30516   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30517   unlink ("foo");
30518   return (fd != (int) MAP_FAILED);
30519   ;
30520   return 0;
30521 }
30522 _ACEOF
30523 rm -f conftest$ac_exeext
30524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30525   (eval $ac_link) 2>&5
30526   ac_status=$?
30527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30530   (eval $ac_try) 2>&5
30531   ac_status=$?
30532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30533   (exit $ac_status); }; }; then
30534   ac_cv_func_mmap_file=yes
30535 else
30536   echo "$as_me: program exited with status $ac_status" >&5
30537 echo "$as_me: failed program was:" >&5
30538 sed 's/^/| /' conftest.$ac_ext >&5
30539
30540 ( exit $ac_status )
30541 ac_cv_func_mmap_file=no
30542 fi
30543 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30544 fi
30545   ac_ext=c
30546 ac_cpp='$CPP $CPPFLAGS'
30547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30550
30551
30552 fi
30553 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30554 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30555 if test "$ac_cv_func_mmap_file" = yes; then
30556
30557 cat >>confdefs.h <<\_ACEOF
30558 #define HAVE_MMAP_FILE
30559 _ACEOF
30560
30561    MMAP_FILE=yes
30562
30563 fi
30564
30565 echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30566 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30567 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30568   echo $ECHO_N "(cached) $ECHO_C" >&6
30569 else
30570   if test "$llvm_cv_os_type" = "Interix" ; then
30571    ac_cv_need_dev_zero_for_mmap=yes
30572  else
30573    ac_cv_need_dev_zero_for_mmap=no
30574  fi
30575
30576 fi
30577 echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30578 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30579 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30580
30581 cat >>confdefs.h <<\_ACEOF
30582 #define NEED_DEV_ZERO_FOR_MMAP 1
30583 _ACEOF
30584
30585 fi
30586 echo "$as_me:$LINENO: checking for mprotect" >&5
30587 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30588 if test "${ac_cv_func_mprotect+set}" = set; then
30589   echo $ECHO_N "(cached) $ECHO_C" >&6
30590 else
30591   cat >conftest.$ac_ext <<_ACEOF
30592 /* confdefs.h.  */
30593 _ACEOF
30594 cat confdefs.h >>conftest.$ac_ext
30595 cat >>conftest.$ac_ext <<_ACEOF
30596 /* end confdefs.h.  */
30597 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30598    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30599 #define mprotect innocuous_mprotect
30600
30601 /* System header to define __stub macros and hopefully few prototypes,
30602     which can conflict with char mprotect (); below.
30603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30604     <limits.h> exists even on freestanding compilers.  */
30605
30606 #ifdef __STDC__
30607 # include <limits.h>
30608 #else
30609 # include <assert.h>
30610 #endif
30611
30612 #undef mprotect
30613
30614 /* Override any gcc2 internal prototype to avoid an error.  */
30615 #ifdef __cplusplus
30616 extern "C"
30617 {
30618 #endif
30619 /* We use char because int might match the return type of a gcc2
30620    builtin and then its argument prototype would still apply.  */
30621 char mprotect ();
30622 /* The GNU C library defines this for functions which it implements
30623     to always fail with ENOSYS.  Some functions are actually named
30624     something starting with __ and the normal name is an alias.  */
30625 #if defined (__stub_mprotect) || defined (__stub___mprotect)
30626 choke me
30627 #else
30628 char (*f) () = mprotect;
30629 #endif
30630 #ifdef __cplusplus
30631 }
30632 #endif
30633
30634 int
30635 main ()
30636 {
30637 return f != mprotect;
30638   ;
30639   return 0;
30640 }
30641 _ACEOF
30642 rm -f conftest.$ac_objext conftest$ac_exeext
30643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30644   (eval $ac_link) 2>conftest.er1
30645   ac_status=$?
30646   grep -v '^ *+' conftest.er1 >conftest.err
30647   rm -f conftest.er1
30648   cat conftest.err >&5
30649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30650   (exit $ac_status); } &&
30651          { ac_try='test -z "$ac_c_werror_flag"
30652                          || test ! -s conftest.err'
30653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30654   (eval $ac_try) 2>&5
30655   ac_status=$?
30656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30657   (exit $ac_status); }; } &&
30658          { ac_try='test -s conftest$ac_exeext'
30659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30660   (eval $ac_try) 2>&5
30661   ac_status=$?
30662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30663   (exit $ac_status); }; }; then
30664   ac_cv_func_mprotect=yes
30665 else
30666   echo "$as_me: failed program was:" >&5
30667 sed 's/^/| /' conftest.$ac_ext >&5
30668
30669 ac_cv_func_mprotect=no
30670 fi
30671 rm -f conftest.err conftest.$ac_objext \
30672       conftest$ac_exeext conftest.$ac_ext
30673 fi
30674 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30675 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30676 if test $ac_cv_func_mprotect = yes; then
30677   :
30678 else
30679   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30680 echo "$as_me: error: Function mprotect() required but not found" >&2;}
30681    { (exit 1); exit 1; }; }
30682 fi
30683
30684
30685 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
30686 then
30687   { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30688 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
30689 fi
30690 if test "$ac_cv_func_mmap_file" = "no"
30691 then
30692   { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30693 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
30694 fi
30695
30696
30697 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30698 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
30699 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30700   echo $ECHO_N "(cached) $ECHO_C" >&6
30701 else
30702   llvm_cv_llvmgcc_sanity="no"
30703 if test -x "$LLVMGCC" ; then
30704   cp /dev/null conftest.c
30705   "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
30706   if test $? -eq 0 ; then
30707     llvm_cv_llvmgcc_sanity="yes"
30708   fi
30709   rm conftest.c
30710 fi
30711 fi
30712 echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30713 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30714
30715 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
30716   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
30717   LLVMCC1=$llvmcc1path
30718
30719   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
30720   LLVMCC1PLUS=$llvmcc1pluspath
30721
30722   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30723   LLVMGCCDIR=$llvmgccdir
30724
30725   llvmgccversion=`"$LLVMGCC" -v 2>&1 | grep '^gcc version' | sed 's/^gcc version \([0-9.]*\).*/\1/'`
30726   llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
30727   LLVMGCC_VERSION=$llvmgccversion
30728
30729   LLVMGCC_MAJVERS=$llvmgccmajvers
30730
30731 fi
30732
30733 SHLIBEXT=$libltdl_cv_shlibext
30734
30735
30736 # Translate the various configuration directories and other basic
30737 # information into substitutions that will end up in Makefile.config.in
30738 # that these configured values can be used by the makefiles
30739 eval LLVM_PREFIX="${prefix}";
30740 eval LLVM_BINDIR="${prefix}/bin";
30741 eval LLVM_LIBDIR="${prefix}/lib";
30742 eval LLVM_DATADIR="${prefix}/share/llvm";
30743 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30744 eval LLVM_ETCDIR="${prefix}/etc/llvm";
30745 eval LLVM_INCLUDEDIR="${prefix}/include";
30746 eval LLVM_INFODIR="${prefix}/info";
30747 eval LLVM_MANDIR="${prefix}/man";
30748 LLVM_CONFIGTIME=`date`
30749
30750
30751
30752
30753
30754
30755
30756
30757
30758
30759
30760 # Place the various directores into the config.h file as #defines so that we
30761 # can know about the installation paths within LLVM.
30762
30763 cat >>confdefs.h <<_ACEOF
30764 #define LLVM_PREFIX "$LLVM_PREFIX"
30765 _ACEOF
30766
30767
30768 cat >>confdefs.h <<_ACEOF
30769 #define LLVM_BINDIR "$LLVM_BINDIR"
30770 _ACEOF
30771
30772
30773 cat >>confdefs.h <<_ACEOF
30774 #define LLVM_LIBDIR "$LLVM_LIBDIR"
30775 _ACEOF
30776
30777
30778 cat >>confdefs.h <<_ACEOF
30779 #define LLVM_DATADIR "$LLVM_DATADIR"
30780 _ACEOF
30781
30782
30783 cat >>confdefs.h <<_ACEOF
30784 #define LLVM_DATADIR "$LLVM_DOCSDIR"
30785 _ACEOF
30786
30787
30788 cat >>confdefs.h <<_ACEOF
30789 #define LLVM_ETCDIR "$LLVM_ETCDIR"
30790 _ACEOF
30791
30792
30793 cat >>confdefs.h <<_ACEOF
30794 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30795 _ACEOF
30796
30797
30798 cat >>confdefs.h <<_ACEOF
30799 #define LLVM_INFODIR "$LLVM_INFODIR"
30800 _ACEOF
30801
30802
30803 cat >>confdefs.h <<_ACEOF
30804 #define LLVM_MANDIR "$LLVM_MANDIR"
30805 _ACEOF
30806
30807
30808 cat >>confdefs.h <<_ACEOF
30809 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30810 _ACEOF
30811
30812
30813
30814           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30815
30816           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30817
30818           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30819
30820           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30821
30822           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30823
30824
30825           ac_config_files="$ac_config_files Makefile.config"
30826
30827
30828           ac_config_files="$ac_config_files docs/doxygen.cfg"
30829
30830
30831           ac_config_files="$ac_config_files utils/llvm-config/llvm-config.in"
30832
30833
30834           ac_config_commands="$ac_config_commands setup"
30835
30836           ac_config_commands="$ac_config_commands Makefile"
30837
30838
30839           ac_config_commands="$ac_config_commands Makefile.common"
30840
30841
30842           ac_config_commands="$ac_config_commands examples/Makefile"
30843
30844
30845           ac_config_commands="$ac_config_commands lib/Makefile"
30846
30847
30848           ac_config_commands="$ac_config_commands runtime/Makefile"
30849
30850
30851           ac_config_commands="$ac_config_commands test/Makefile"
30852
30853
30854           ac_config_commands="$ac_config_commands test/Makefile.tests"
30855
30856
30857           ac_config_commands="$ac_config_commands tools/Makefile"
30858
30859
30860           ac_config_commands="$ac_config_commands utils/Makefile"
30861
30862
30863           ac_config_commands="$ac_config_commands projects/Makefile"
30864
30865
30866
30867 cat >confcache <<\_ACEOF
30868 # This file is a shell script that caches the results of configure
30869 # tests run on this system so they can be shared between configure
30870 # scripts and configure runs, see configure's option --config-cache.
30871 # It is not useful on other systems.  If it contains results you don't
30872 # want to keep, you may remove or edit it.
30873 #
30874 # config.status only pays attention to the cache file if you give it
30875 # the --recheck option to rerun configure.
30876 #
30877 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30878 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30879 # following values.
30880
30881 _ACEOF
30882
30883 # The following way of writing the cache mishandles newlines in values,
30884 # but we know of no workaround that is simple, portable, and efficient.
30885 # So, don't put newlines in cache variables' values.
30886 # Ultrix sh set writes to stderr and can't be redirected directly,
30887 # and sets the high bit in the cache file unless we assign to the vars.
30888 {
30889   (set) 2>&1 |
30890     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30891     *ac_space=\ *)
30892       # `set' does not quote correctly, so add quotes (double-quote
30893       # substitution turns \\\\ into \\, and sed turns \\ into \).
30894       sed -n \
30895         "s/'/'\\\\''/g;
30896           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30897       ;;
30898     *)
30899       # `set' quotes correctly as required by POSIX, so do not add quotes.
30900       sed -n \
30901         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30902       ;;
30903     esac;
30904 } |
30905   sed '
30906      t clear
30907      : clear
30908      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30909      t end
30910      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30911      : end' >>confcache
30912 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30913   if test -w $cache_file; then
30914     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30915     cat confcache >$cache_file
30916   else
30917     echo "not updating unwritable cache $cache_file"
30918   fi
30919 fi
30920 rm -f confcache
30921
30922 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30923 # Let make expand exec_prefix.
30924 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30925
30926 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30927 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30928 # trailing colons and then remove the whole line if VPATH becomes empty
30929 # (actually we leave an empty line to preserve line numbers).
30930 if test "x$srcdir" = x.; then
30931   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30932 s/:*\$(srcdir):*/:/;
30933 s/:*\${srcdir}:*/:/;
30934 s/:*@srcdir@:*/:/;
30935 s/^\([^=]*=[     ]*\):*/\1/;
30936 s/:*$//;
30937 s/^[^=]*=[       ]*$//;
30938 }'
30939 fi
30940
30941 DEFS=-DHAVE_CONFIG_H
30942
30943 ac_libobjs=
30944 ac_ltlibobjs=
30945 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30946   # 1. Remove the extension, and $U if already installed.
30947   ac_i=`echo "$ac_i" |
30948          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30949   # 2. Add them.
30950   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30951   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30952 done
30953 LIBOBJS=$ac_libobjs
30954
30955 LTLIBOBJS=$ac_ltlibobjs
30956
30957
30958 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30959   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30960 Usually this means the macro was only invoked conditionally." >&5
30961 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30962 Usually this means the macro was only invoked conditionally." >&2;}
30963    { (exit 1); exit 1; }; }
30964 fi
30965 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30966   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30967 Usually this means the macro was only invoked conditionally." >&5
30968 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30969 Usually this means the macro was only invoked conditionally." >&2;}
30970    { (exit 1); exit 1; }; }
30971 fi
30972
30973 : ${CONFIG_STATUS=./config.status}
30974 ac_clean_files_save=$ac_clean_files
30975 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30976 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30977 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30978 cat >$CONFIG_STATUS <<_ACEOF
30979 #! $SHELL
30980 # Generated by $as_me.
30981 # Run this file to recreate the current configuration.
30982 # Compiler output produced by configure, useful for debugging
30983 # configure, is in config.log if it exists.
30984
30985 debug=false
30986 ac_cs_recheck=false
30987 ac_cs_silent=false
30988 SHELL=\${CONFIG_SHELL-$SHELL}
30989 _ACEOF
30990
30991 cat >>$CONFIG_STATUS <<\_ACEOF
30992 ## --------------------- ##
30993 ## M4sh Initialization.  ##
30994 ## --------------------- ##
30995
30996 # Be Bourne compatible
30997 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30998   emulate sh
30999   NULLCMD=:
31000   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31001   # is contrary to our usage.  Disable this feature.
31002   alias -g '${1+"$@"}'='"$@"'
31003 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31004   set -o posix
31005 fi
31006 DUALCASE=1; export DUALCASE # for MKS sh
31007
31008 # Support unset when possible.
31009 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31010   as_unset=unset
31011 else
31012   as_unset=false
31013 fi
31014
31015
31016 # Work around bugs in pre-3.0 UWIN ksh.
31017 $as_unset ENV MAIL MAILPATH
31018 PS1='$ '
31019 PS2='> '
31020 PS4='+ '
31021
31022 # NLS nuisances.
31023 for as_var in \
31024   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31025   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31026   LC_TELEPHONE LC_TIME
31027 do
31028   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31029     eval $as_var=C; export $as_var
31030   else
31031     $as_unset $as_var
31032   fi
31033 done
31034
31035 # Required to use basename.
31036 if expr a : '\(a\)' >/dev/null 2>&1; then
31037   as_expr=expr
31038 else
31039   as_expr=false
31040 fi
31041
31042 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31043   as_basename=basename
31044 else
31045   as_basename=false
31046 fi
31047
31048
31049 # Name of the executable.
31050 as_me=`$as_basename "$0" ||
31051 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31052          X"$0" : 'X\(//\)$' \| \
31053          X"$0" : 'X\(/\)$' \| \
31054          .     : '\(.\)' 2>/dev/null ||
31055 echo X/"$0" |
31056     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31057           /^X\/\(\/\/\)$/{ s//\1/; q; }
31058           /^X\/\(\/\).*/{ s//\1/; q; }
31059           s/.*/./; q'`
31060
31061
31062 # PATH needs CR, and LINENO needs CR and PATH.
31063 # Avoid depending upon Character Ranges.
31064 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31065 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31066 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31067 as_cr_digits='0123456789'
31068 as_cr_alnum=$as_cr_Letters$as_cr_digits
31069
31070 # The user is always right.
31071 if test "${PATH_SEPARATOR+set}" != set; then
31072   echo "#! /bin/sh" >conf$$.sh
31073   echo  "exit 0"   >>conf$$.sh
31074   chmod +x conf$$.sh
31075   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31076     PATH_SEPARATOR=';'
31077   else
31078     PATH_SEPARATOR=:
31079   fi
31080   rm -f conf$$.sh
31081 fi
31082
31083
31084   as_lineno_1=$LINENO
31085   as_lineno_2=$LINENO
31086   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31087   test "x$as_lineno_1" != "x$as_lineno_2" &&
31088   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
31089   # Find who we are.  Look in the path if we contain no path at all
31090   # relative or not.
31091   case $0 in
31092     *[\\/]* ) as_myself=$0 ;;
31093     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31094 for as_dir in $PATH
31095 do
31096   IFS=$as_save_IFS
31097   test -z "$as_dir" && as_dir=.
31098   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31099 done
31100
31101        ;;
31102   esac
31103   # We did not find ourselves, most probably we were run as `sh COMMAND'
31104   # in which case we are not to be found in the path.
31105   if test "x$as_myself" = x; then
31106     as_myself=$0
31107   fi
31108   if test ! -f "$as_myself"; then
31109     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31110 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31111    { (exit 1); exit 1; }; }
31112   fi
31113   case $CONFIG_SHELL in
31114   '')
31115     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31116 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31117 do
31118   IFS=$as_save_IFS
31119   test -z "$as_dir" && as_dir=.
31120   for as_base in sh bash ksh sh5; do
31121          case $as_dir in
31122          /*)
31123            if ("$as_dir/$as_base" -c '
31124   as_lineno_1=$LINENO
31125   as_lineno_2=$LINENO
31126   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31127   test "x$as_lineno_1" != "x$as_lineno_2" &&
31128   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
31129              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31130              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31131              CONFIG_SHELL=$as_dir/$as_base
31132              export CONFIG_SHELL
31133              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31134            fi;;
31135          esac
31136        done
31137 done
31138 ;;
31139   esac
31140
31141   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31142   # uniformly replaced by the line number.  The first 'sed' inserts a
31143   # line-number line before each line; the second 'sed' does the real
31144   # work.  The second script uses 'N' to pair each line-number line
31145   # with the numbered line, and appends trailing '-' during
31146   # substitution so that $LINENO is not a special case at line end.
31147   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31148   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
31149   sed '=' <$as_myself |
31150     sed '
31151       N
31152       s,$,-,
31153       : loop
31154       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31155       t loop
31156       s,-$,,
31157       s,^['$as_cr_digits']*\n,,
31158     ' >$as_me.lineno &&
31159   chmod +x $as_me.lineno ||
31160     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31161 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31162    { (exit 1); exit 1; }; }
31163
31164   # Don't try to exec as it changes $[0], causing all sort of problems
31165   # (the dirname of $[0] is not the place where we might find the
31166   # original and so on.  Autoconf is especially sensible to this).
31167   . ./$as_me.lineno
31168   # Exit status is that of the last command.
31169   exit
31170 }
31171
31172
31173 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31174   *c*,-n*) ECHO_N= ECHO_C='
31175 ' ECHO_T='      ' ;;
31176   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31177   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
31178 esac
31179
31180 if expr a : '\(a\)' >/dev/null 2>&1; then
31181   as_expr=expr
31182 else
31183   as_expr=false
31184 fi
31185
31186 rm -f conf$$ conf$$.exe conf$$.file
31187 echo >conf$$.file
31188 if ln -s conf$$.file conf$$ 2>/dev/null; then
31189   # We could just check for DJGPP; but this test a) works b) is more generic
31190   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31191   if test -f conf$$.exe; then
31192     # Don't use ln at all; we don't have any links
31193     as_ln_s='cp -p'
31194   else
31195     as_ln_s='ln -s'
31196   fi
31197 elif ln conf$$.file conf$$ 2>/dev/null; then
31198   as_ln_s=ln
31199 else
31200   as_ln_s='cp -p'
31201 fi
31202 rm -f conf$$ conf$$.exe conf$$.file
31203
31204 if mkdir -p . 2>/dev/null; then
31205   as_mkdir_p=:
31206 else
31207   test -d ./-p && rmdir ./-p
31208   as_mkdir_p=false
31209 fi
31210
31211 as_executable_p="test -f"
31212
31213 # Sed expression to map a string onto a valid CPP name.
31214 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31215
31216 # Sed expression to map a string onto a valid variable name.
31217 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31218
31219
31220 # IFS
31221 # We need space, tab and new line, in precisely that order.
31222 as_nl='
31223 '
31224 IFS="   $as_nl"
31225
31226 # CDPATH.
31227 $as_unset CDPATH
31228
31229 exec 6>&1
31230
31231 # Open the log real soon, to keep \$[0] and so on meaningful, and to
31232 # report actual input values of CONFIG_FILES etc. instead of their
31233 # values after options handling.  Logging --version etc. is OK.
31234 exec 5>>config.log
31235 {
31236   echo
31237   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31238 ## Running $as_me. ##
31239 _ASBOX
31240 } >&5
31241 cat >&5 <<_CSEOF
31242
31243 This file was extended by llvm $as_me 1.8cvs, which was
31244 generated by GNU Autoconf 2.59.  Invocation command line was
31245
31246   CONFIG_FILES    = $CONFIG_FILES
31247   CONFIG_HEADERS  = $CONFIG_HEADERS
31248   CONFIG_LINKS    = $CONFIG_LINKS
31249   CONFIG_COMMANDS = $CONFIG_COMMANDS
31250   $ $0 $@
31251
31252 _CSEOF
31253 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31254 echo >&5
31255 _ACEOF
31256
31257 # Files that config.status was made for.
31258 if test -n "$ac_config_files"; then
31259   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31260 fi
31261
31262 if test -n "$ac_config_headers"; then
31263   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31264 fi
31265
31266 if test -n "$ac_config_links"; then
31267   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31268 fi
31269
31270 if test -n "$ac_config_commands"; then
31271   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31272 fi
31273
31274 cat >>$CONFIG_STATUS <<\_ACEOF
31275
31276 ac_cs_usage="\
31277 \`$as_me' instantiates files from templates according to the
31278 current configuration.
31279
31280 Usage: $0 [OPTIONS] [FILE]...
31281
31282   -h, --help       print this help, then exit
31283   -V, --version    print version number, then exit
31284   -q, --quiet      do not print progress messages
31285   -d, --debug      don't remove temporary files
31286       --recheck    update $as_me by reconfiguring in the same conditions
31287   --file=FILE[:TEMPLATE]
31288                    instantiate the configuration file FILE
31289   --header=FILE[:TEMPLATE]
31290                    instantiate the configuration header FILE
31291
31292 Configuration files:
31293 $config_files
31294
31295 Configuration headers:
31296 $config_headers
31297
31298 Configuration commands:
31299 $config_commands
31300
31301 Report bugs to <bug-autoconf@gnu.org>."
31302 _ACEOF
31303
31304 cat >>$CONFIG_STATUS <<_ACEOF
31305 ac_cs_version="\\
31306 llvm config.status 1.8cvs
31307 configured by $0, generated by GNU Autoconf 2.59,
31308   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31309
31310 Copyright (C) 2003 Free Software Foundation, Inc.
31311 This config.status script is free software; the Free Software Foundation
31312 gives unlimited permission to copy, distribute and modify it."
31313 srcdir=$srcdir
31314 INSTALL="$INSTALL"
31315 _ACEOF
31316
31317 cat >>$CONFIG_STATUS <<\_ACEOF
31318 # If no file are specified by the user, then we need to provide default
31319 # value.  By we need to know if files were specified by the user.
31320 ac_need_defaults=:
31321 while test $# != 0
31322 do
31323   case $1 in
31324   --*=*)
31325     ac_option=`expr "x$1" : 'x\([^=]*\)='`
31326     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31327     ac_shift=:
31328     ;;
31329   -*)
31330     ac_option=$1
31331     ac_optarg=$2
31332     ac_shift=shift
31333     ;;
31334   *) # This is not an option, so the user has probably given explicit
31335      # arguments.
31336      ac_option=$1
31337      ac_need_defaults=false;;
31338   esac
31339
31340   case $ac_option in
31341   # Handling of the options.
31342 _ACEOF
31343 cat >>$CONFIG_STATUS <<\_ACEOF
31344   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31345     ac_cs_recheck=: ;;
31346   --version | --vers* | -V )
31347     echo "$ac_cs_version"; exit 0 ;;
31348   --he | --h)
31349     # Conflict between --help and --header
31350     { { echo "$as_me:$LINENO: error: ambiguous option: $1
31351 Try \`$0 --help' for more information." >&5
31352 echo "$as_me: error: ambiguous option: $1
31353 Try \`$0 --help' for more information." >&2;}
31354    { (exit 1); exit 1; }; };;
31355   --help | --hel | -h )
31356     echo "$ac_cs_usage"; exit 0 ;;
31357   --debug | --d* | -d )
31358     debug=: ;;
31359   --file | --fil | --fi | --f )
31360     $ac_shift
31361     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31362     ac_need_defaults=false;;
31363   --header | --heade | --head | --hea )
31364     $ac_shift
31365     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31366     ac_need_defaults=false;;
31367   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31368   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31369     ac_cs_silent=: ;;
31370
31371   # This is an error.
31372   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31373 Try \`$0 --help' for more information." >&5
31374 echo "$as_me: error: unrecognized option: $1
31375 Try \`$0 --help' for more information." >&2;}
31376    { (exit 1); exit 1; }; } ;;
31377
31378   *) ac_config_targets="$ac_config_targets $1" ;;
31379
31380   esac
31381   shift
31382 done
31383
31384 ac_configure_extra_args=
31385
31386 if $ac_cs_silent; then
31387   exec 6>/dev/null
31388   ac_configure_extra_args="$ac_configure_extra_args --silent"
31389 fi
31390
31391 _ACEOF
31392 cat >>$CONFIG_STATUS <<_ACEOF
31393 if \$ac_cs_recheck; then
31394   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31395   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31396 fi
31397
31398 _ACEOF
31399
31400 cat >>$CONFIG_STATUS <<_ACEOF
31401 #
31402 # INIT-COMMANDS section.
31403 #
31404
31405 llvm_src="${srcdir}"
31406
31407 _ACEOF
31408
31409
31410
31411 cat >>$CONFIG_STATUS <<\_ACEOF
31412 for ac_config_target in $ac_config_targets
31413 do
31414   case "$ac_config_target" in
31415   # Handling of arguments.
31416   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
31417   "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
31418   "utils/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES utils/llvm-config/llvm-config.in" ;;
31419   "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
31420   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31421   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
31422   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
31423   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
31424   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
31425   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31426   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
31427   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
31428   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
31429   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
31430   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
31431   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
31432   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31433   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
31434   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
31435   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31436 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31437    { (exit 1); exit 1; }; };;
31438   esac
31439 done
31440
31441 # If the user did not use the arguments to specify the items to instantiate,
31442 # then the envvar interface is used.  Set only those that are not.
31443 # We use the long form for the default assignment because of an extremely
31444 # bizarre bug on SunOS 4.1.3.
31445 if $ac_need_defaults; then
31446   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31447   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31448   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31449 fi
31450
31451 # Have a temporary directory for convenience.  Make it in the build tree
31452 # simply because there is no reason to put it here, and in addition,
31453 # creating and moving files from /tmp can sometimes cause problems.
31454 # Create a temporary directory, and hook for its removal unless debugging.
31455 $debug ||
31456 {
31457   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31458   trap '{ (exit 1); exit 1; }' 1 2 13 15
31459 }
31460
31461 # Create a (secure) tmp directory for tmp files.
31462
31463 {
31464   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31465   test -n "$tmp" && test -d "$tmp"
31466 }  ||
31467 {
31468   tmp=./confstat$$-$RANDOM
31469   (umask 077 && mkdir $tmp)
31470 } ||
31471 {
31472    echo "$me: cannot create a temporary directory in ." >&2
31473    { (exit 1); exit 1; }
31474 }
31475
31476 _ACEOF
31477
31478 cat >>$CONFIG_STATUS <<_ACEOF
31479
31480 #
31481 # CONFIG_FILES section.
31482 #
31483
31484 # No need to generate the scripts if there are no CONFIG_FILES.
31485 # This happens for instance when ./config.status config.h
31486 if test -n "\$CONFIG_FILES"; then
31487   # Protect against being on the right side of a sed subst in config.status.
31488   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31489    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31490 s,@SHELL@,$SHELL,;t t
31491 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31492 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31493 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31494 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31495 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31496 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31497 s,@exec_prefix@,$exec_prefix,;t t
31498 s,@prefix@,$prefix,;t t
31499 s,@program_transform_name@,$program_transform_name,;t t
31500 s,@bindir@,$bindir,;t t
31501 s,@sbindir@,$sbindir,;t t
31502 s,@libexecdir@,$libexecdir,;t t
31503 s,@datadir@,$datadir,;t t
31504 s,@sysconfdir@,$sysconfdir,;t t
31505 s,@sharedstatedir@,$sharedstatedir,;t t
31506 s,@localstatedir@,$localstatedir,;t t
31507 s,@libdir@,$libdir,;t t
31508 s,@includedir@,$includedir,;t t
31509 s,@oldincludedir@,$oldincludedir,;t t
31510 s,@infodir@,$infodir,;t t
31511 s,@mandir@,$mandir,;t t
31512 s,@build_alias@,$build_alias,;t t
31513 s,@host_alias@,$host_alias,;t t
31514 s,@target_alias@,$target_alias,;t t
31515 s,@DEFS@,$DEFS,;t t
31516 s,@ECHO_C@,$ECHO_C,;t t
31517 s,@ECHO_N@,$ECHO_N,;t t
31518 s,@ECHO_T@,$ECHO_T,;t t
31519 s,@LIBS@,$LIBS,;t t
31520 s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
31521 s,@subdirs@,$subdirs,;t t
31522 s,@build@,$build,;t t
31523 s,@build_cpu@,$build_cpu,;t t
31524 s,@build_vendor@,$build_vendor,;t t
31525 s,@build_os@,$build_os,;t t
31526 s,@host@,$host,;t t
31527 s,@host_cpu@,$host_cpu,;t t
31528 s,@host_vendor@,$host_vendor,;t t
31529 s,@host_os@,$host_os,;t t
31530 s,@target@,$target,;t t
31531 s,@target_cpu@,$target_cpu,;t t
31532 s,@target_vendor@,$target_vendor,;t t
31533 s,@target_os@,$target_os,;t t
31534 s,@OS@,$OS,;t t
31535 s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31536 s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
31537 s,@ARCH@,$ARCH,;t t
31538 s,@ENDIAN@,$ENDIAN,;t t
31539 s,@CC@,$CC,;t t
31540 s,@CFLAGS@,$CFLAGS,;t t
31541 s,@LDFLAGS@,$LDFLAGS,;t t
31542 s,@CPPFLAGS@,$CPPFLAGS,;t t
31543 s,@ac_ct_CC@,$ac_ct_CC,;t t
31544 s,@EXEEXT@,$EXEEXT,;t t
31545 s,@OBJEXT@,$OBJEXT,;t t
31546 s,@CVSBUILD@,$CVSBUILD,;t t
31547 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
31548 s,@DISABLE_ASSERTIONS@,$DISABLE_ASSERTIONS,;t t
31549 s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
31550 s,@JIT@,$JIT,;t t
31551 s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
31552 s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
31553 s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
31554 s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
31555 s,@CPP@,$CPP,;t t
31556 s,@CXX@,$CXX,;t t
31557 s,@CXXFLAGS@,$CXXFLAGS,;t t
31558 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31559 s,@LEX@,$LEX,;t t
31560 s,@LEXLIB@,$LEXLIB,;t t
31561 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
31562 s,@FLEX@,$FLEX,;t t
31563 s,@YACC@,$YACC,;t t
31564 s,@BISON@,$BISON,;t t
31565 s,@ifGNUmake@,$ifGNUmake,;t t
31566 s,@LN_S@,$LN_S,;t t
31567 s,@CMP@,$CMP,;t t
31568 s,@CP@,$CP,;t t
31569 s,@DATE@,$DATE,;t t
31570 s,@FIND@,$FIND,;t t
31571 s,@GREP@,$GREP,;t t
31572 s,@MKDIR@,$MKDIR,;t t
31573 s,@MV@,$MV,;t t
31574 s,@RANLIB@,$RANLIB,;t t
31575 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31576 s,@RM@,$RM,;t t
31577 s,@SED@,$SED,;t t
31578 s,@TAR@,$TAR,;t t
31579 s,@GRAPHVIZ@,$GRAPHVIZ,;t t
31580 s,@GV@,$GV,;t t
31581 s,@PERL@,$PERL,;t t
31582 s,@HAVE_PERL@,$HAVE_PERL,;t t
31583 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31584 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31585 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31586 s,@BZIP2@,$BZIP2,;t t
31587 s,@DOT@,$DOT,;t t
31588 s,@DOXYGEN@,$DOXYGEN,;t t
31589 s,@ETAGS@,$ETAGS,;t t
31590 s,@GROFF@,$GROFF,;t t
31591 s,@GZIP@,$GZIP,;t t
31592 s,@POD2HTML@,$POD2HTML,;t t
31593 s,@POD2MAN@,$POD2MAN,;t t
31594 s,@RUNTEST@,$RUNTEST,;t t
31595 s,@TCLSH@,$TCLSH,;t t
31596 s,@ZIP@,$ZIP,;t t
31597 s,@EGREP@,$EGREP,;t t
31598 s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31599 s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31600 s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31601 s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31602 s,@LIBADD_DL@,$LIBADD_DL,;t t
31603 s,@ECHO@,$ECHO,;t t
31604 s,@AR@,$AR,;t t
31605 s,@ac_ct_AR@,$ac_ct_AR,;t t
31606 s,@STRIP@,$STRIP,;t t
31607 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31608 s,@CXXCPP@,$CXXCPP,;t t
31609 s,@F77@,$F77,;t t
31610 s,@FFLAGS@,$FFLAGS,;t t
31611 s,@ac_ct_F77@,$ac_ct_F77,;t t
31612 s,@LIBTOOL@,$LIBTOOL,;t t
31613 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
31614 s,@LLVMGCC@,$LLVMGCC,;t t
31615 s,@LLVMGXX@,$LLVMGXX,;t t
31616 s,@ALLOCA@,$ALLOCA,;t t
31617 s,@MMAP_FILE@,$MMAP_FILE,;t t
31618 s,@LLVMCC1@,$LLVMCC1,;t t
31619 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
31620 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
31621 s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
31622 s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
31623 s,@SHLIBEXT@,$SHLIBEXT,;t t
31624 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31625 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31626 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31627 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31628 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31629 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31630 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31631 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31632 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31633 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
31634 s,@LIBOBJS@,$LIBOBJS,;t t
31635 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31636 CEOF
31637
31638 _ACEOF
31639
31640   cat >>$CONFIG_STATUS <<\_ACEOF
31641   # Split the substitutions into bite-sized pieces for seds with
31642   # small command number limits, like on Digital OSF/1 and HP-UX.
31643   ac_max_sed_lines=48
31644   ac_sed_frag=1 # Number of current file.
31645   ac_beg=1 # First line for current file.
31646   ac_end=$ac_max_sed_lines # Line after last line for current file.
31647   ac_more_lines=:
31648   ac_sed_cmds=
31649   while $ac_more_lines; do
31650     if test $ac_beg -gt 1; then
31651       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31652     else
31653       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31654     fi
31655     if test ! -s $tmp/subs.frag; then
31656       ac_more_lines=false
31657     else
31658       # The purpose of the label and of the branching condition is to
31659       # speed up the sed processing (if there are no `@' at all, there
31660       # is no need to browse any of the substitutions).
31661       # These are the two extra sed commands mentioned above.
31662       (echo ':t
31663   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31664       if test -z "$ac_sed_cmds"; then
31665         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31666       else
31667         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31668       fi
31669       ac_sed_frag=`expr $ac_sed_frag + 1`
31670       ac_beg=$ac_end
31671       ac_end=`expr $ac_end + $ac_max_sed_lines`
31672     fi
31673   done
31674   if test -z "$ac_sed_cmds"; then
31675     ac_sed_cmds=cat
31676   fi
31677 fi # test -n "$CONFIG_FILES"
31678
31679 _ACEOF
31680 cat >>$CONFIG_STATUS <<\_ACEOF
31681 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31682   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31683   case $ac_file in
31684   - | *:- | *:-:* ) # input from stdin
31685         cat >$tmp/stdin
31686         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31687         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31688   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31689         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31690   * )   ac_file_in=$ac_file.in ;;
31691   esac
31692
31693   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31694   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31695 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31696          X"$ac_file" : 'X\(//\)[^/]' \| \
31697          X"$ac_file" : 'X\(//\)$' \| \
31698          X"$ac_file" : 'X\(/\)' \| \
31699          .     : '\(.\)' 2>/dev/null ||
31700 echo X"$ac_file" |
31701     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31702           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31703           /^X\(\/\/\)$/{ s//\1/; q; }
31704           /^X\(\/\).*/{ s//\1/; q; }
31705           s/.*/./; q'`
31706   { if $as_mkdir_p; then
31707     mkdir -p "$ac_dir"
31708   else
31709     as_dir="$ac_dir"
31710     as_dirs=
31711     while test ! -d "$as_dir"; do
31712       as_dirs="$as_dir $as_dirs"
31713       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31715          X"$as_dir" : 'X\(//\)[^/]' \| \
31716          X"$as_dir" : 'X\(//\)$' \| \
31717          X"$as_dir" : 'X\(/\)' \| \
31718          .     : '\(.\)' 2>/dev/null ||
31719 echo X"$as_dir" |
31720     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31721           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31722           /^X\(\/\/\)$/{ s//\1/; q; }
31723           /^X\(\/\).*/{ s//\1/; q; }
31724           s/.*/./; q'`
31725     done
31726     test ! -n "$as_dirs" || mkdir $as_dirs
31727   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31728 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31729    { (exit 1); exit 1; }; }; }
31730
31731   ac_builddir=.
31732
31733 if test "$ac_dir" != .; then
31734   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31735   # A "../" for each directory in $ac_dir_suffix.
31736   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31737 else
31738   ac_dir_suffix= ac_top_builddir=
31739 fi
31740
31741 case $srcdir in
31742   .)  # No --srcdir option.  We are building in place.
31743     ac_srcdir=.
31744     if test -z "$ac_top_builddir"; then
31745        ac_top_srcdir=.
31746     else
31747        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31748     fi ;;
31749   [\\/]* | ?:[\\/]* )  # Absolute path.
31750     ac_srcdir=$srcdir$ac_dir_suffix;
31751     ac_top_srcdir=$srcdir ;;
31752   *) # Relative path.
31753     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31754     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31755 esac
31756
31757 # Do not use `cd foo && pwd` to compute absolute paths, because
31758 # the directories may not exist.
31759 case `pwd` in
31760 .) ac_abs_builddir="$ac_dir";;
31761 *)
31762   case "$ac_dir" in
31763   .) ac_abs_builddir=`pwd`;;
31764   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31765   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31766   esac;;
31767 esac
31768 case $ac_abs_builddir in
31769 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31770 *)
31771   case ${ac_top_builddir}. in
31772   .) ac_abs_top_builddir=$ac_abs_builddir;;
31773   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31774   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31775   esac;;
31776 esac
31777 case $ac_abs_builddir in
31778 .) ac_abs_srcdir=$ac_srcdir;;
31779 *)
31780   case $ac_srcdir in
31781   .) ac_abs_srcdir=$ac_abs_builddir;;
31782   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31783   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31784   esac;;
31785 esac
31786 case $ac_abs_builddir in
31787 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31788 *)
31789   case $ac_top_srcdir in
31790   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31791   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31792   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31793   esac;;
31794 esac
31795
31796
31797   case $INSTALL in
31798   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31799   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31800   esac
31801
31802   if test x"$ac_file" != x-; then
31803     { echo "$as_me:$LINENO: creating $ac_file" >&5
31804 echo "$as_me: creating $ac_file" >&6;}
31805     rm -f "$ac_file"
31806   fi
31807   # Let's still pretend it is `configure' which instantiates (i.e., don't
31808   # use $as_me), people would be surprised to read:
31809   #    /* config.h.  Generated by config.status.  */
31810   if test x"$ac_file" = x-; then
31811     configure_input=
31812   else
31813     configure_input="$ac_file.  "
31814   fi
31815   configure_input=$configure_input"Generated from `echo $ac_file_in |
31816                                      sed 's,.*/,,'` by configure."
31817
31818   # First look for the input files in the build tree, otherwise in the
31819   # src tree.
31820   ac_file_inputs=`IFS=:
31821     for f in $ac_file_in; do
31822       case $f in
31823       -) echo $tmp/stdin ;;
31824       [\\/$]*)
31825          # Absolute (can't be DOS-style, as IFS=:)
31826          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31827 echo "$as_me: error: cannot find input file: $f" >&2;}
31828    { (exit 1); exit 1; }; }
31829          echo "$f";;
31830       *) # Relative
31831          if test -f "$f"; then
31832            # Build tree
31833            echo "$f"
31834          elif test -f "$srcdir/$f"; then
31835            # Source tree
31836            echo "$srcdir/$f"
31837          else
31838            # /dev/null tree
31839            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31840 echo "$as_me: error: cannot find input file: $f" >&2;}
31841    { (exit 1); exit 1; }; }
31842          fi;;
31843       esac
31844     done` || { (exit 1); exit 1; }
31845 _ACEOF
31846 cat >>$CONFIG_STATUS <<_ACEOF
31847   sed "$ac_vpsub
31848 $extrasub
31849 _ACEOF
31850 cat >>$CONFIG_STATUS <<\_ACEOF
31851 :t
31852 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31853 s,@configure_input@,$configure_input,;t t
31854 s,@srcdir@,$ac_srcdir,;t t
31855 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31856 s,@top_srcdir@,$ac_top_srcdir,;t t
31857 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31858 s,@builddir@,$ac_builddir,;t t
31859 s,@abs_builddir@,$ac_abs_builddir,;t t
31860 s,@top_builddir@,$ac_top_builddir,;t t
31861 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31862 s,@INSTALL@,$ac_INSTALL,;t t
31863 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31864   rm -f $tmp/stdin
31865   if test x"$ac_file" != x-; then
31866     mv $tmp/out $ac_file
31867   else
31868     cat $tmp/out
31869     rm -f $tmp/out
31870   fi
31871
31872 done
31873 _ACEOF
31874 cat >>$CONFIG_STATUS <<\_ACEOF
31875
31876 #
31877 # CONFIG_HEADER section.
31878 #
31879
31880 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31881 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31882 #
31883 # ac_d sets the value in "#define NAME VALUE" lines.
31884 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31885 ac_dB='[         ].*$,\1#\2'
31886 ac_dC=' '
31887 ac_dD=',;t'
31888 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31889 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31890 ac_uB='$,\1#\2define\3'
31891 ac_uC=' '
31892 ac_uD=',;t'
31893
31894 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31895   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31896   case $ac_file in
31897   - | *:- | *:-:* ) # input from stdin
31898         cat >$tmp/stdin
31899         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31900         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31901   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31902         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31903   * )   ac_file_in=$ac_file.in ;;
31904   esac
31905
31906   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31907 echo "$as_me: creating $ac_file" >&6;}
31908
31909   # First look for the input files in the build tree, otherwise in the
31910   # src tree.
31911   ac_file_inputs=`IFS=:
31912     for f in $ac_file_in; do
31913       case $f in
31914       -) echo $tmp/stdin ;;
31915       [\\/$]*)
31916          # Absolute (can't be DOS-style, as IFS=:)
31917          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31918 echo "$as_me: error: cannot find input file: $f" >&2;}
31919    { (exit 1); exit 1; }; }
31920          # Do quote $f, to prevent DOS paths from being IFS'd.
31921          echo "$f";;
31922       *) # Relative
31923          if test -f "$f"; then
31924            # Build tree
31925            echo "$f"
31926          elif test -f "$srcdir/$f"; then
31927            # Source tree
31928            echo "$srcdir/$f"
31929          else
31930            # /dev/null tree
31931            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31932 echo "$as_me: error: cannot find input file: $f" >&2;}
31933    { (exit 1); exit 1; }; }
31934          fi;;
31935       esac
31936     done` || { (exit 1); exit 1; }
31937   # Remove the trailing spaces.
31938   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31939
31940 _ACEOF
31941
31942 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31943 # `conftest.undefs', that substitutes the proper values into
31944 # config.h.in to produce config.h.  The first handles `#define'
31945 # templates, and the second `#undef' templates.
31946 # And first: Protect against being on the right side of a sed subst in
31947 # config.status.  Protect against being in an unquoted here document
31948 # in config.status.
31949 rm -f conftest.defines conftest.undefs
31950 # Using a here document instead of a string reduces the quoting nightmare.
31951 # Putting comments in sed scripts is not portable.
31952 #
31953 # `end' is used to avoid that the second main sed command (meant for
31954 # 0-ary CPP macros) applies to n-ary macro definitions.
31955 # See the Autoconf documentation for `clear'.
31956 cat >confdef2sed.sed <<\_ACEOF
31957 s/[\\&,]/\\&/g
31958 s,[\\$`],\\&,g
31959 t clear
31960 : clear
31961 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31962 t end
31963 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31964 : end
31965 _ACEOF
31966 # If some macros were called several times there might be several times
31967 # the same #defines, which is useless.  Nevertheless, we may not want to
31968 # sort them, since we want the *last* AC-DEFINE to be honored.
31969 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31970 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31971 rm -f confdef2sed.sed
31972
31973 # This sed command replaces #undef with comments.  This is necessary, for
31974 # example, in the case of _POSIX_SOURCE, which is predefined and required
31975 # on some systems where configure will not decide to define it.
31976 cat >>conftest.undefs <<\_ACEOF
31977 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31978 _ACEOF
31979
31980 # Break up conftest.defines because some shells have a limit on the size
31981 # of here documents, and old seds have small limits too (100 cmds).
31982 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31983 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31984 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31985 echo '  :' >>$CONFIG_STATUS
31986 rm -f conftest.tail
31987 while grep . conftest.defines >/dev/null
31988 do
31989   # Write a limited-size here document to $tmp/defines.sed.
31990   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31991   # Speed up: don't consider the non `#define' lines.
31992   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31993   # Work around the forget-to-reset-the-flag bug.
31994   echo 't clr' >>$CONFIG_STATUS
31995   echo ': clr' >>$CONFIG_STATUS
31996   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31997   echo 'CEOF
31998   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31999   rm -f $tmp/in
32000   mv $tmp/out $tmp/in
32001 ' >>$CONFIG_STATUS
32002   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32003   rm -f conftest.defines
32004   mv conftest.tail conftest.defines
32005 done
32006 rm -f conftest.defines
32007 echo '  fi # grep' >>$CONFIG_STATUS
32008 echo >>$CONFIG_STATUS
32009
32010 # Break up conftest.undefs because some shells have a limit on the size
32011 # of here documents, and old seds have small limits too (100 cmds).
32012 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
32013 rm -f conftest.tail
32014 while grep . conftest.undefs >/dev/null
32015 do
32016   # Write a limited-size here document to $tmp/undefs.sed.
32017   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32018   # Speed up: don't consider the non `#undef'
32019   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
32020   # Work around the forget-to-reset-the-flag bug.
32021   echo 't clr' >>$CONFIG_STATUS
32022   echo ': clr' >>$CONFIG_STATUS
32023   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32024   echo 'CEOF
32025   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32026   rm -f $tmp/in
32027   mv $tmp/out $tmp/in
32028 ' >>$CONFIG_STATUS
32029   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32030   rm -f conftest.undefs
32031   mv conftest.tail conftest.undefs
32032 done
32033 rm -f conftest.undefs
32034
32035 cat >>$CONFIG_STATUS <<\_ACEOF
32036   # Let's still pretend it is `configure' which instantiates (i.e., don't
32037   # use $as_me), people would be surprised to read:
32038   #    /* config.h.  Generated by config.status.  */
32039   if test x"$ac_file" = x-; then
32040     echo "/* Generated by configure.  */" >$tmp/config.h
32041   else
32042     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
32043   fi
32044   cat $tmp/in >>$tmp/config.h
32045   rm -f $tmp/in
32046   if test x"$ac_file" != x-; then
32047     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32048       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32049 echo "$as_me: $ac_file is unchanged" >&6;}
32050     else
32051       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32052 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32053          X"$ac_file" : 'X\(//\)[^/]' \| \
32054          X"$ac_file" : 'X\(//\)$' \| \
32055          X"$ac_file" : 'X\(/\)' \| \
32056          .     : '\(.\)' 2>/dev/null ||
32057 echo X"$ac_file" |
32058     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32059           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32060           /^X\(\/\/\)$/{ s//\1/; q; }
32061           /^X\(\/\).*/{ s//\1/; q; }
32062           s/.*/./; q'`
32063       { if $as_mkdir_p; then
32064     mkdir -p "$ac_dir"
32065   else
32066     as_dir="$ac_dir"
32067     as_dirs=
32068     while test ! -d "$as_dir"; do
32069       as_dirs="$as_dir $as_dirs"
32070       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32071 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32072          X"$as_dir" : 'X\(//\)[^/]' \| \
32073          X"$as_dir" : 'X\(//\)$' \| \
32074          X"$as_dir" : 'X\(/\)' \| \
32075          .     : '\(.\)' 2>/dev/null ||
32076 echo X"$as_dir" |
32077     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32078           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32079           /^X\(\/\/\)$/{ s//\1/; q; }
32080           /^X\(\/\).*/{ s//\1/; q; }
32081           s/.*/./; q'`
32082     done
32083     test ! -n "$as_dirs" || mkdir $as_dirs
32084   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32085 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32086    { (exit 1); exit 1; }; }; }
32087
32088       rm -f $ac_file
32089       mv $tmp/config.h $ac_file
32090     fi
32091   else
32092     cat $tmp/config.h
32093     rm -f $tmp/config.h
32094   fi
32095 done
32096 _ACEOF
32097 cat >>$CONFIG_STATUS <<\_ACEOF
32098
32099 #
32100 # CONFIG_COMMANDS section.
32101 #
32102 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32103   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32104   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32105   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32106 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32107          X"$ac_dest" : 'X\(//\)[^/]' \| \
32108          X"$ac_dest" : 'X\(//\)$' \| \
32109          X"$ac_dest" : 'X\(/\)' \| \
32110          .     : '\(.\)' 2>/dev/null ||
32111 echo X"$ac_dest" |
32112     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32113           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32114           /^X\(\/\/\)$/{ s//\1/; q; }
32115           /^X\(\/\).*/{ s//\1/; q; }
32116           s/.*/./; q'`
32117   { if $as_mkdir_p; then
32118     mkdir -p "$ac_dir"
32119   else
32120     as_dir="$ac_dir"
32121     as_dirs=
32122     while test ! -d "$as_dir"; do
32123       as_dirs="$as_dir $as_dirs"
32124       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32125 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32126          X"$as_dir" : 'X\(//\)[^/]' \| \
32127          X"$as_dir" : 'X\(//\)$' \| \
32128          X"$as_dir" : 'X\(/\)' \| \
32129          .     : '\(.\)' 2>/dev/null ||
32130 echo X"$as_dir" |
32131     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32132           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32133           /^X\(\/\/\)$/{ s//\1/; q; }
32134           /^X\(\/\).*/{ s//\1/; q; }
32135           s/.*/./; q'`
32136     done
32137     test ! -n "$as_dirs" || mkdir $as_dirs
32138   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32139 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32140    { (exit 1); exit 1; }; }; }
32141
32142   ac_builddir=.
32143
32144 if test "$ac_dir" != .; then
32145   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32146   # A "../" for each directory in $ac_dir_suffix.
32147   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32148 else
32149   ac_dir_suffix= ac_top_builddir=
32150 fi
32151
32152 case $srcdir in
32153   .)  # No --srcdir option.  We are building in place.
32154     ac_srcdir=.
32155     if test -z "$ac_top_builddir"; then
32156        ac_top_srcdir=.
32157     else
32158        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32159     fi ;;
32160   [\\/]* | ?:[\\/]* )  # Absolute path.
32161     ac_srcdir=$srcdir$ac_dir_suffix;
32162     ac_top_srcdir=$srcdir ;;
32163   *) # Relative path.
32164     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32165     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32166 esac
32167
32168 # Do not use `cd foo && pwd` to compute absolute paths, because
32169 # the directories may not exist.
32170 case `pwd` in
32171 .) ac_abs_builddir="$ac_dir";;
32172 *)
32173   case "$ac_dir" in
32174   .) ac_abs_builddir=`pwd`;;
32175   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32176   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32177   esac;;
32178 esac
32179 case $ac_abs_builddir in
32180 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32181 *)
32182   case ${ac_top_builddir}. in
32183   .) ac_abs_top_builddir=$ac_abs_builddir;;
32184   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32185   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32186   esac;;
32187 esac
32188 case $ac_abs_builddir in
32189 .) ac_abs_srcdir=$ac_srcdir;;
32190 *)
32191   case $ac_srcdir in
32192   .) ac_abs_srcdir=$ac_abs_builddir;;
32193   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32194   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32195   esac;;
32196 esac
32197 case $ac_abs_builddir in
32198 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32199 *)
32200   case $ac_top_srcdir in
32201   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32202   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32203   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32204   esac;;
32205 esac
32206
32207
32208   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32209 echo "$as_me: executing $ac_dest commands" >&6;}
32210   case $ac_dest in
32211     Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32212    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32213     Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32214    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32215     examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32216    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32217     lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32218    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32219     runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32220    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32221     test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32222    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32223     test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32224    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32225     tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32226    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32227     utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32228    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32229     projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32230    ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
32231   esac
32232 done
32233 _ACEOF
32234
32235 cat >>$CONFIG_STATUS <<\_ACEOF
32236
32237 { (exit 0); exit 0; }
32238 _ACEOF
32239 chmod +x $CONFIG_STATUS
32240 ac_clean_files=$ac_clean_files_save
32241
32242
32243 # configure is writing to config.log, and then calls config.status.
32244 # config.status does its own redirection, appending to config.log.
32245 # Unfortunately, on DOS this fails, as config.log is still kept open
32246 # by configure, so config.status won't be able to write to it; its
32247 # output is simply discarded.  So we exec the FD to /dev/null,
32248 # effectively closing config.log, so it can be properly (re)opened and
32249 # appended to by config.status.  When coming back to configure, we
32250 # need to make the FD available again.
32251 if test "$no_create" != yes; then
32252   ac_cs_success=:
32253   ac_config_status_args=
32254   test "$silent" = yes &&
32255     ac_config_status_args="$ac_config_status_args --quiet"
32256   exec 5>/dev/null
32257   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32258   exec 5>>config.log
32259   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32260   # would make configure fail if this is the last instruction.
32261   $ac_cs_success || { (exit 1); exit 1; }
32262 fi
32263
32264 #
32265 # CONFIG_SUBDIRS section.
32266 #
32267 if test "$no_recursion" != yes; then
32268
32269   # Remove --cache-file and --srcdir arguments so they do not pile up.
32270   ac_sub_configure_args=
32271   ac_prev=
32272   for ac_arg in $ac_configure_args; do
32273     if test -n "$ac_prev"; then
32274       ac_prev=
32275       continue
32276     fi
32277     case $ac_arg in
32278     -cache-file | --cache-file | --cache-fil | --cache-fi \
32279     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32280       ac_prev=cache_file ;;
32281     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32282     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32283     | --c=*)
32284       ;;
32285     --config-cache | -C)
32286       ;;
32287     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32288       ac_prev=srcdir ;;
32289     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32290       ;;
32291     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32292       ac_prev=prefix ;;
32293     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32294       ;;
32295     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32296     esac
32297   done
32298
32299   # Always prepend --prefix to ensure using the same prefix
32300   # in subdir configurations.
32301   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32302
32303   ac_popdir=`pwd`
32304   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32305
32306     # Do not complain, so a configure script can configure whichever
32307     # parts of a large source tree are present.
32308     test -d $srcdir/$ac_dir || continue
32309
32310     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32311 echo "$as_me: configuring in $ac_dir" >&6;}
32312     { if $as_mkdir_p; then
32313     mkdir -p "$ac_dir"
32314   else
32315     as_dir="$ac_dir"
32316     as_dirs=
32317     while test ! -d "$as_dir"; do
32318       as_dirs="$as_dir $as_dirs"
32319       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32321          X"$as_dir" : 'X\(//\)[^/]' \| \
32322          X"$as_dir" : 'X\(//\)$' \| \
32323          X"$as_dir" : 'X\(/\)' \| \
32324          .     : '\(.\)' 2>/dev/null ||
32325 echo X"$as_dir" |
32326     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32327           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32328           /^X\(\/\/\)$/{ s//\1/; q; }
32329           /^X\(\/\).*/{ s//\1/; q; }
32330           s/.*/./; q'`
32331     done
32332     test ! -n "$as_dirs" || mkdir $as_dirs
32333   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32334 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32335    { (exit 1); exit 1; }; }; }
32336
32337     ac_builddir=.
32338
32339 if test "$ac_dir" != .; then
32340   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32341   # A "../" for each directory in $ac_dir_suffix.
32342   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32343 else
32344   ac_dir_suffix= ac_top_builddir=
32345 fi
32346
32347 case $srcdir in
32348   .)  # No --srcdir option.  We are building in place.
32349     ac_srcdir=.
32350     if test -z "$ac_top_builddir"; then
32351        ac_top_srcdir=.
32352     else
32353        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32354     fi ;;
32355   [\\/]* | ?:[\\/]* )  # Absolute path.
32356     ac_srcdir=$srcdir$ac_dir_suffix;
32357     ac_top_srcdir=$srcdir ;;
32358   *) # Relative path.
32359     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32360     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32361 esac
32362
32363 # Do not use `cd foo && pwd` to compute absolute paths, because
32364 # the directories may not exist.
32365 case `pwd` in
32366 .) ac_abs_builddir="$ac_dir";;
32367 *)
32368   case "$ac_dir" in
32369   .) ac_abs_builddir=`pwd`;;
32370   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32371   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32372   esac;;
32373 esac
32374 case $ac_abs_builddir in
32375 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32376 *)
32377   case ${ac_top_builddir}. in
32378   .) ac_abs_top_builddir=$ac_abs_builddir;;
32379   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32380   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32381   esac;;
32382 esac
32383 case $ac_abs_builddir in
32384 .) ac_abs_srcdir=$ac_srcdir;;
32385 *)
32386   case $ac_srcdir in
32387   .) ac_abs_srcdir=$ac_abs_builddir;;
32388   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32389   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32390   esac;;
32391 esac
32392 case $ac_abs_builddir in
32393 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32394 *)
32395   case $ac_top_srcdir in
32396   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32397   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32398   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32399   esac;;
32400 esac
32401
32402
32403     cd $ac_dir
32404
32405     # Check for guested configure; otherwise get Cygnus style configure.
32406     if test -f $ac_srcdir/configure.gnu; then
32407       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32408     elif test -f $ac_srcdir/configure; then
32409       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32410     elif test -f $ac_srcdir/configure.in; then
32411       ac_sub_configure=$ac_configure
32412     else
32413       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32414 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32415       ac_sub_configure=
32416     fi
32417
32418     # The recursion is here.
32419     if test -n "$ac_sub_configure"; then
32420       # Make the cache file name correct relative to the subdirectory.
32421       case $cache_file in
32422       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32423       *) # Relative path.
32424         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32425       esac
32426
32427       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32428 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32429       # The eval makes quoting arguments work.
32430       eval $ac_sub_configure $ac_sub_configure_args \
32431            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32432         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32433 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32434    { (exit 1); exit 1; }; }
32435     fi
32436
32437     cd $ac_popdir
32438   done
32439 fi
32440
32441
32442 if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
32443  { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32444 echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
32445  { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32446 echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32447  { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32448 echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32449  { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32450 echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32451  { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32452 echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
32453 fi