Update list of failing SingleSource Benchmarks
[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.4.
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 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 echo=${ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $echo works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<EOF
276 $*
277 EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291        echo_test_string="`eval $cmd`" &&
292        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293     then
294       break
295     fi
296   done
297 fi
298
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301    test "X$echo_testing_string" = "X$echo_test_string"; then
302   :
303 else
304   # The Solaris, AIX, and Digital Unix default echo programs unquote
305   # backslashes.  This makes it impossible to quote backslashes using
306   #   echo "$something" | sed 's/\\/\\\\/g'
307   #
308   # So, first we look for a working echo in the user's PATH.
309
310   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311   for dir in $PATH /usr/ucb; do
312     IFS="$lt_save_ifs"
313     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316        test "X$echo_testing_string" = "X$echo_test_string"; then
317       echo="$dir/echo"
318       break
319     fi
320   done
321   IFS="$lt_save_ifs"
322
323   if test "X$echo" = Xecho; then
324     # We didn't find a better echo, so look for alternatives.
325     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327        test "X$echo_testing_string" = "X$echo_test_string"; then
328       # This shell has a builtin print -r that does the trick.
329       echo='print -r'
330     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331          test "X$CONFIG_SHELL" != X/bin/ksh; then
332       # If we have ksh, try running configure again with it.
333       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334       export ORIGINAL_CONFIG_SHELL
335       CONFIG_SHELL=/bin/ksh
336       export CONFIG_SHELL
337       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338     else
339       # Try using printf.
340       echo='printf %s\n'
341       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343          test "X$echo_testing_string" = "X$echo_test_string"; then
344         # Cool, printf works
345         :
346       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347            test "X$echo_testing_string" = 'X\t' &&
348            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349            test "X$echo_testing_string" = "X$echo_test_string"; then
350         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351         export CONFIG_SHELL
352         SHELL="$CONFIG_SHELL"
353         export SHELL
354         echo="$CONFIG_SHELL $0 --fallback-echo"
355       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356            test "X$echo_testing_string" = 'X\t' &&
357            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358            test "X$echo_testing_string" = "X$echo_test_string"; then
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       else
361         # maybe with a smaller string...
362         prev=:
363
364         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366           then
367             break
368           fi
369           prev="$cmd"
370         done
371
372         if test "$prev" != 'sed 50q "$0"'; then
373           echo_test_string=`eval $prev`
374           export echo_test_string
375           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376         else
377           # Oops.  We lost completely, so just stick with echo.
378           echo=echo
379         fi
380       fi
381     fi
382   fi
383 fi
384 fi
385
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
388 ECHO=$echo
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391 fi
392
393
394
395
396 tagnames=${tagnames+${tagnames},}CXX
397
398 tagnames=${tagnames+${tagnames},}F77
399
400 # Name of the host.
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405 exec 6>&1
406
407 #
408 # Initializations.
409 #
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
412 cross_compiling=no
413 subdirs=
414 MFLAGS=
415 MAKEFLAGS=
416 SHELL=${CONFIG_SHELL-/bin/sh}
417
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete.  It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
422
423 # Identity of this package.
424 PACKAGE_NAME='llvm'
425 PACKAGE_TARNAME='-llvm-'
426 PACKAGE_VERSION='1.4'
427 PACKAGE_STRING='llvm 1.4'
428 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429
430 ac_unique_file=""Makefile.config.in""
431 ac_subdirs_all="$ac_subdirs_all projects/sample"
432 ac_subdirs_all="$ac_subdirs_all projects/Stacker"
433 ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
434 ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
435 ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
436 ac_subdirs_all="$ac_subdirs_all projects/Java"
437 ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
438 ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
439 ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
440 # Factoring default headers for most tests.
441 ac_includes_default="\
442 #include <stdio.h>
443 #if HAVE_SYS_TYPES_H
444 # include <sys/types.h>
445 #endif
446 #if HAVE_SYS_STAT_H
447 # include <sys/stat.h>
448 #endif
449 #if STDC_HEADERS
450 # include <stdlib.h>
451 # include <stddef.h>
452 #else
453 # if HAVE_STDLIB_H
454 #  include <stdlib.h>
455 # endif
456 #endif
457 #if HAVE_STRING_H
458 # if !STDC_HEADERS && HAVE_MEMORY_H
459 #  include <memory.h>
460 # endif
461 # include <string.h>
462 #endif
463 #if HAVE_STRINGS_H
464 # include <strings.h>
465 #endif
466 #if HAVE_INTTYPES_H
467 # include <inttypes.h>
468 #else
469 # if HAVE_STDINT_H
470 #  include <stdint.h>
471 # endif
472 #endif
473 #if HAVE_UNISTD_H
474 # include <unistd.h>
475 #endif"
476
477 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 subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL TAR DOT ETAGS ETAGSFLAGS PYTHON QMTEST RUNTEST HAVE_ZLIB HAVE_BZIP2 ENDIAN ALLOCA MMAP_FILE ENABLE_OPTIMIZED JIT LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
478 ac_subst_files=''
479
480 # Initialize some variables set by options.
481 ac_init_help=
482 ac_init_version=false
483 # The variables have the same names as the options, with
484 # dashes changed to underlines.
485 cache_file=/dev/null
486 exec_prefix=NONE
487 no_create=
488 no_recursion=
489 prefix=NONE
490 program_prefix=NONE
491 program_suffix=NONE
492 program_transform_name=s,x,x,
493 silent=
494 site=
495 srcdir=
496 verbose=
497 x_includes=NONE
498 x_libraries=NONE
499
500 # Installation directory options.
501 # These are left unexpanded so users can "make install exec_prefix=/foo"
502 # and all the variables that are supposed to be based on exec_prefix
503 # by default will actually change.
504 # Use braces instead of parens because sh, perl, etc. also accept them.
505 bindir='${exec_prefix}/bin'
506 sbindir='${exec_prefix}/sbin'
507 libexecdir='${exec_prefix}/libexec'
508 datadir='${prefix}/share'
509 sysconfdir='${prefix}/etc'
510 sharedstatedir='${prefix}/com'
511 localstatedir='${prefix}/var'
512 libdir='${exec_prefix}/lib'
513 includedir='${prefix}/include'
514 oldincludedir='/usr/include'
515 infodir='${prefix}/info'
516 mandir='${prefix}/man'
517
518 ac_prev=
519 for ac_option
520 do
521   # If the previous option needs an argument, assign it.
522   if test -n "$ac_prev"; then
523     eval "$ac_prev=\$ac_option"
524     ac_prev=
525     continue
526   fi
527
528   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
529
530   # Accept the important Cygnus configure options, so we can diagnose typos.
531
532   case $ac_option in
533
534   -bindir | --bindir | --bindi | --bind | --bin | --bi)
535     ac_prev=bindir ;;
536   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
537     bindir=$ac_optarg ;;
538
539   -build | --build | --buil | --bui | --bu)
540     ac_prev=build_alias ;;
541   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
542     build_alias=$ac_optarg ;;
543
544   -cache-file | --cache-file | --cache-fil | --cache-fi \
545   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
546     ac_prev=cache_file ;;
547   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
548   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
549     cache_file=$ac_optarg ;;
550
551   --config-cache | -C)
552     cache_file=config.cache ;;
553
554   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
555     ac_prev=datadir ;;
556   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
557   | --da=*)
558     datadir=$ac_optarg ;;
559
560   -disable-* | --disable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     eval "enable_$ac_feature=no" ;;
568
569   -enable-* | --enable-*)
570     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
571     # Reject names that are not valid shell variable names.
572     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
573       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
574    { (exit 1); exit 1; }; }
575     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
576     case $ac_option in
577       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
578       *) ac_optarg=yes ;;
579     esac
580     eval "enable_$ac_feature='$ac_optarg'" ;;
581
582   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
583   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
584   | --exec | --exe | --ex)
585     ac_prev=exec_prefix ;;
586   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
587   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
588   | --exec=* | --exe=* | --ex=*)
589     exec_prefix=$ac_optarg ;;
590
591   -gas | --gas | --ga | --g)
592     # Obsolete; use --with-gas.
593     with_gas=yes ;;
594
595   -help | --help | --hel | --he | -h)
596     ac_init_help=long ;;
597   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
598     ac_init_help=recursive ;;
599   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
600     ac_init_help=short ;;
601
602   -host | --host | --hos | --ho)
603     ac_prev=host_alias ;;
604   -host=* | --host=* | --hos=* | --ho=*)
605     host_alias=$ac_optarg ;;
606
607   -includedir | --includedir | --includedi | --included | --include \
608   | --includ | --inclu | --incl | --inc)
609     ac_prev=includedir ;;
610   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
611   | --includ=* | --inclu=* | --incl=* | --inc=*)
612     includedir=$ac_optarg ;;
613
614   -infodir | --infodir | --infodi | --infod | --info | --inf)
615     ac_prev=infodir ;;
616   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
617     infodir=$ac_optarg ;;
618
619   -libdir | --libdir | --libdi | --libd)
620     ac_prev=libdir ;;
621   -libdir=* | --libdir=* | --libdi=* | --libd=*)
622     libdir=$ac_optarg ;;
623
624   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
625   | --libexe | --libex | --libe)
626     ac_prev=libexecdir ;;
627   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
628   | --libexe=* | --libex=* | --libe=*)
629     libexecdir=$ac_optarg ;;
630
631   -localstatedir | --localstatedir | --localstatedi | --localstated \
632   | --localstate | --localstat | --localsta | --localst \
633   | --locals | --local | --loca | --loc | --lo)
634     ac_prev=localstatedir ;;
635   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
636   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
637   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
638     localstatedir=$ac_optarg ;;
639
640   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
641     ac_prev=mandir ;;
642   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
643     mandir=$ac_optarg ;;
644
645   -nfp | --nfp | --nf)
646     # Obsolete; use --without-fp.
647     with_fp=no ;;
648
649   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
650   | --no-cr | --no-c | -n)
651     no_create=yes ;;
652
653   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
654   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
655     no_recursion=yes ;;
656
657   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
658   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
659   | --oldin | --oldi | --old | --ol | --o)
660     ac_prev=oldincludedir ;;
661   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
662   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
663   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
664     oldincludedir=$ac_optarg ;;
665
666   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
667     ac_prev=prefix ;;
668   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
669     prefix=$ac_optarg ;;
670
671   -program-prefix | --program-prefix | --program-prefi | --program-pref \
672   | --program-pre | --program-pr | --program-p)
673     ac_prev=program_prefix ;;
674   -program-prefix=* | --program-prefix=* | --program-prefi=* \
675   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
676     program_prefix=$ac_optarg ;;
677
678   -program-suffix | --program-suffix | --program-suffi | --program-suff \
679   | --program-suf | --program-su | --program-s)
680     ac_prev=program_suffix ;;
681   -program-suffix=* | --program-suffix=* | --program-suffi=* \
682   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
683     program_suffix=$ac_optarg ;;
684
685   -program-transform-name | --program-transform-name \
686   | --program-transform-nam | --program-transform-na \
687   | --program-transform-n | --program-transform- \
688   | --program-transform | --program-transfor \
689   | --program-transfo | --program-transf \
690   | --program-trans | --program-tran \
691   | --progr-tra | --program-tr | --program-t)
692     ac_prev=program_transform_name ;;
693   -program-transform-name=* | --program-transform-name=* \
694   | --program-transform-nam=* | --program-transform-na=* \
695   | --program-transform-n=* | --program-transform-=* \
696   | --program-transform=* | --program-transfor=* \
697   | --program-transfo=* | --program-transf=* \
698   | --program-trans=* | --program-tran=* \
699   | --progr-tra=* | --program-tr=* | --program-t=*)
700     program_transform_name=$ac_optarg ;;
701
702   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
703   | -silent | --silent | --silen | --sile | --sil)
704     silent=yes ;;
705
706   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
707     ac_prev=sbindir ;;
708   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
709   | --sbi=* | --sb=*)
710     sbindir=$ac_optarg ;;
711
712   -sharedstatedir | --sharedstatedir | --sharedstatedi \
713   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
714   | --sharedst | --shareds | --shared | --share | --shar \
715   | --sha | --sh)
716     ac_prev=sharedstatedir ;;
717   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
718   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
719   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
720   | --sha=* | --sh=*)
721     sharedstatedir=$ac_optarg ;;
722
723   -site | --site | --sit)
724     ac_prev=site ;;
725   -site=* | --site=* | --sit=*)
726     site=$ac_optarg ;;
727
728   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
729     ac_prev=srcdir ;;
730   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
731     srcdir=$ac_optarg ;;
732
733   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
734   | --syscon | --sysco | --sysc | --sys | --sy)
735     ac_prev=sysconfdir ;;
736   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
737   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
738     sysconfdir=$ac_optarg ;;
739
740   -target | --target | --targe | --targ | --tar | --ta | --t)
741     ac_prev=target_alias ;;
742   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
743     target_alias=$ac_optarg ;;
744
745   -v | -verbose | --verbose | --verbos | --verbo | --verb)
746     verbose=yes ;;
747
748   -version | --version | --versio | --versi | --vers | -V)
749     ac_init_version=: ;;
750
751   -with-* | --with-*)
752     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
753     # Reject names that are not valid shell variable names.
754     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
755       { echo "$as_me: error: invalid package name: $ac_package" >&2
756    { (exit 1); exit 1; }; }
757     ac_package=`echo $ac_package| sed 's/-/_/g'`
758     case $ac_option in
759       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
760       *) ac_optarg=yes ;;
761     esac
762     eval "with_$ac_package='$ac_optarg'" ;;
763
764   -without-* | --without-*)
765     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
766     # Reject names that are not valid shell variable names.
767     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
768       { echo "$as_me: error: invalid package name: $ac_package" >&2
769    { (exit 1); exit 1; }; }
770     ac_package=`echo $ac_package | sed 's/-/_/g'`
771     eval "with_$ac_package=no" ;;
772
773   --x)
774     # Obsolete; use --with-x.
775     with_x=yes ;;
776
777   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
778   | --x-incl | --x-inc | --x-in | --x-i)
779     ac_prev=x_includes ;;
780   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
781   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
782     x_includes=$ac_optarg ;;
783
784   -x-libraries | --x-libraries | --x-librarie | --x-librari \
785   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
786     ac_prev=x_libraries ;;
787   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
788   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
789     x_libraries=$ac_optarg ;;
790
791   -*) { echo "$as_me: error: unrecognized option: $ac_option
792 Try \`$0 --help' for more information." >&2
793    { (exit 1); exit 1; }; }
794     ;;
795
796   *=*)
797     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
798     # Reject names that are not valid shell variable names.
799     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
800       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
801    { (exit 1); exit 1; }; }
802     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
803     eval "$ac_envvar='$ac_optarg'"
804     export $ac_envvar ;;
805
806   *)
807     # FIXME: should be removed in autoconf 3.0.
808     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
809     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
810       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
811     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
812     ;;
813
814   esac
815 done
816
817 if test -n "$ac_prev"; then
818   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
819   { echo "$as_me: error: missing argument to $ac_option" >&2
820    { (exit 1); exit 1; }; }
821 fi
822
823 # Be sure to have absolute paths.
824 for ac_var in exec_prefix prefix
825 do
826   eval ac_val=$`echo $ac_var`
827   case $ac_val in
828     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
829     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830    { (exit 1); exit 1; }; };;
831   esac
832 done
833
834 # Be sure to have absolute paths.
835 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
836               localstatedir libdir includedir oldincludedir infodir mandir
837 do
838   eval ac_val=$`echo $ac_var`
839   case $ac_val in
840     [\\/$]* | ?:[\\/]* ) ;;
841     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
842    { (exit 1); exit 1; }; };;
843   esac
844 done
845
846 # There might be people who depend on the old broken behavior: `$host'
847 # used to hold the argument of --host etc.
848 # FIXME: To remove some day.
849 build=$build_alias
850 host=$host_alias
851 target=$target_alias
852
853 # FIXME: To remove some day.
854 if test "x$host_alias" != x; then
855   if test "x$build_alias" = x; then
856     cross_compiling=maybe
857     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
858     If a cross compiler is detected then cross compile mode will be used." >&2
859   elif test "x$build_alias" != "x$host_alias"; then
860     cross_compiling=yes
861   fi
862 fi
863
864 ac_tool_prefix=
865 test -n "$host_alias" && ac_tool_prefix=$host_alias-
866
867 test "$silent" = yes && exec 6>/dev/null
868
869
870 # Find the source files, if location was not specified.
871 if test -z "$srcdir"; then
872   ac_srcdir_defaulted=yes
873   # Try the directory containing this script, then its parent.
874   ac_confdir=`(dirname "$0") 2>/dev/null ||
875 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
876          X"$0" : 'X\(//\)[^/]' \| \
877          X"$0" : 'X\(//\)$' \| \
878          X"$0" : 'X\(/\)' \| \
879          .     : '\(.\)' 2>/dev/null ||
880 echo X"$0" |
881     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
882           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
883           /^X\(\/\/\)$/{ s//\1/; q; }
884           /^X\(\/\).*/{ s//\1/; q; }
885           s/.*/./; q'`
886   srcdir=$ac_confdir
887   if test ! -r $srcdir/$ac_unique_file; then
888     srcdir=..
889   fi
890 else
891   ac_srcdir_defaulted=no
892 fi
893 if test ! -r $srcdir/$ac_unique_file; then
894   if test "$ac_srcdir_defaulted" = yes; then
895     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
896    { (exit 1); exit 1; }; }
897   else
898     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
899    { (exit 1); exit 1; }; }
900   fi
901 fi
902 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
903   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
904    { (exit 1); exit 1; }; }
905 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
906 ac_env_build_alias_set=${build_alias+set}
907 ac_env_build_alias_value=$build_alias
908 ac_cv_env_build_alias_set=${build_alias+set}
909 ac_cv_env_build_alias_value=$build_alias
910 ac_env_host_alias_set=${host_alias+set}
911 ac_env_host_alias_value=$host_alias
912 ac_cv_env_host_alias_set=${host_alias+set}
913 ac_cv_env_host_alias_value=$host_alias
914 ac_env_target_alias_set=${target_alias+set}
915 ac_env_target_alias_value=$target_alias
916 ac_cv_env_target_alias_set=${target_alias+set}
917 ac_cv_env_target_alias_value=$target_alias
918 ac_env_CXX_set=${CXX+set}
919 ac_env_CXX_value=$CXX
920 ac_cv_env_CXX_set=${CXX+set}
921 ac_cv_env_CXX_value=$CXX
922 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
923 ac_env_CXXFLAGS_value=$CXXFLAGS
924 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
925 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
926 ac_env_LDFLAGS_set=${LDFLAGS+set}
927 ac_env_LDFLAGS_value=$LDFLAGS
928 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
929 ac_cv_env_LDFLAGS_value=$LDFLAGS
930 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
931 ac_env_CPPFLAGS_value=$CPPFLAGS
932 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
933 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
934 ac_env_CC_set=${CC+set}
935 ac_env_CC_value=$CC
936 ac_cv_env_CC_set=${CC+set}
937 ac_cv_env_CC_value=$CC
938 ac_env_CFLAGS_set=${CFLAGS+set}
939 ac_env_CFLAGS_value=$CFLAGS
940 ac_cv_env_CFLAGS_set=${CFLAGS+set}
941 ac_cv_env_CFLAGS_value=$CFLAGS
942 ac_env_CPP_set=${CPP+set}
943 ac_env_CPP_value=$CPP
944 ac_cv_env_CPP_set=${CPP+set}
945 ac_cv_env_CPP_value=$CPP
946 ac_env_CXXCPP_set=${CXXCPP+set}
947 ac_env_CXXCPP_value=$CXXCPP
948 ac_cv_env_CXXCPP_set=${CXXCPP+set}
949 ac_cv_env_CXXCPP_value=$CXXCPP
950 ac_env_F77_set=${F77+set}
951 ac_env_F77_value=$F77
952 ac_cv_env_F77_set=${F77+set}
953 ac_cv_env_F77_value=$F77
954 ac_env_FFLAGS_set=${FFLAGS+set}
955 ac_env_FFLAGS_value=$FFLAGS
956 ac_cv_env_FFLAGS_set=${FFLAGS+set}
957 ac_cv_env_FFLAGS_value=$FFLAGS
958
959 #
960 # Report the --help message.
961 #
962 if test "$ac_init_help" = "long"; then
963   # Omit some internal or obsolete options to make the list less imposing.
964   # This message is too long to be a string in the A/UX 3.1 sh.
965   cat <<_ACEOF
966 \`configure' configures llvm 1.4 to adapt to many kinds of systems.
967
968 Usage: $0 [OPTION]... [VAR=VALUE]...
969
970 To assign environment variables (e.g., CC, CFLAGS...), specify them as
971 VAR=VALUE.  See below for descriptions of some of the useful variables.
972
973 Defaults for the options are specified in brackets.
974
975 Configuration:
976   -h, --help              display this help and exit
977       --help=short        display options specific to this package
978       --help=recursive    display the short help of all the included packages
979   -V, --version           display version information and exit
980   -q, --quiet, --silent   do not print \`checking...' messages
981       --cache-file=FILE   cache test results in FILE [disabled]
982   -C, --config-cache      alias for \`--cache-file=config.cache'
983   -n, --no-create         do not create output files
984       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
985
986 _ACEOF
987
988   cat <<_ACEOF
989 Installation directories:
990   --prefix=PREFIX         install architecture-independent files in PREFIX
991                           [$ac_default_prefix]
992   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
993                           [PREFIX]
994
995 By default, \`make install' will install all the files in
996 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
997 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
998 for instance \`--prefix=\$HOME'.
999
1000 For better control, use the options below.
1001
1002 Fine tuning of the installation directories:
1003   --bindir=DIR           user executables [EPREFIX/bin]
1004   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1005   --libexecdir=DIR       program executables [EPREFIX/libexec]
1006   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1007   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1008   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1009   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1010   --libdir=DIR           object code libraries [EPREFIX/lib]
1011   --includedir=DIR       C header files [PREFIX/include]
1012   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1013   --infodir=DIR          info documentation [PREFIX/info]
1014   --mandir=DIR           man documentation [PREFIX/man]
1015 _ACEOF
1016
1017   cat <<\_ACEOF
1018
1019 System types:
1020   --build=BUILD     configure for building on BUILD [guessed]
1021   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1022   --target=TARGET   configure for building compilers for TARGET [HOST]
1023 _ACEOF
1024 fi
1025
1026 if test -n "$ac_init_help"; then
1027   case $ac_init_help in
1028      short | recursive ) echo "Configuration of llvm 1.4:";;
1029    esac
1030   cat <<\_ACEOF
1031
1032 Optional Features:
1033   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1034   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1035   --enable-shared[=PKGS]
1036                           build shared libraries [default=yes]
1037   --enable-static[=PKGS]
1038                           build static libraries [default=yes]
1039   --enable-fast-install[=PKGS]
1040                           optimize for fast installation [default=yes]
1041   --disable-libtool-lock  avoid locking (might break parallel builds)
1042   --enable-optimized      Compile with optimizations enabled (default is NO)
1043   --enable-jit            Enable Just In Time Compiling (default is YES)
1044
1045 Optional Packages:
1046   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1047   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1048   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1049   --with-pic              try to use only PIC/non-PIC objects [default=use
1050                           both]
1051   --with-tags[=TAGS]
1052                           include additional configurations [automatic]
1053   --with-llvmgccdir       Location of LLVM GCC front-end
1054
1055 Some influential environment variables:
1056   CXX         C++ compiler command
1057   CXXFLAGS    C++ compiler flags
1058   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1059               nonstandard directory <lib dir>
1060   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061               headers in a nonstandard directory <include dir>
1062   CC          C compiler command
1063   CFLAGS      C compiler flags
1064   CPP         C preprocessor
1065   CXXCPP      C++ preprocessor
1066   F77         Fortran 77 compiler command
1067   FFLAGS      Fortran 77 compiler flags
1068
1069 Use these variables to override the choices made by `configure' or to help
1070 it to find libraries and programs with nonstandard names/locations.
1071
1072 Report bugs to <llvmbugs@cs.uiuc.edu>.
1073 _ACEOF
1074 fi
1075
1076 if test "$ac_init_help" = "recursive"; then
1077   # If there are subdirs, report their specific --help.
1078   ac_popdir=`pwd`
1079   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080     test -d $ac_dir || continue
1081     ac_builddir=.
1082
1083 if test "$ac_dir" != .; then
1084   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085   # A "../" for each directory in $ac_dir_suffix.
1086   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087 else
1088   ac_dir_suffix= ac_top_builddir=
1089 fi
1090
1091 case $srcdir in
1092   .)  # No --srcdir option.  We are building in place.
1093     ac_srcdir=.
1094     if test -z "$ac_top_builddir"; then
1095        ac_top_srcdir=.
1096     else
1097        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098     fi ;;
1099   [\\/]* | ?:[\\/]* )  # Absolute path.
1100     ac_srcdir=$srcdir$ac_dir_suffix;
1101     ac_top_srcdir=$srcdir ;;
1102   *) # Relative path.
1103     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 esac
1106
1107 # Do not use `cd foo && pwd` to compute absolute paths, because
1108 # the directories may not exist.
1109 case `pwd` in
1110 .) ac_abs_builddir="$ac_dir";;
1111 *)
1112   case "$ac_dir" in
1113   .) ac_abs_builddir=`pwd`;;
1114   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116   esac;;
1117 esac
1118 case $ac_abs_builddir in
1119 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 *)
1121   case ${ac_top_builddir}. in
1122   .) ac_abs_top_builddir=$ac_abs_builddir;;
1123   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125   esac;;
1126 esac
1127 case $ac_abs_builddir in
1128 .) ac_abs_srcdir=$ac_srcdir;;
1129 *)
1130   case $ac_srcdir in
1131   .) ac_abs_srcdir=$ac_abs_builddir;;
1132   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134   esac;;
1135 esac
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 *)
1139   case $ac_top_srcdir in
1140   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143   esac;;
1144 esac
1145
1146     cd $ac_dir
1147     # Check for guested configure; otherwise get Cygnus style configure.
1148     if test -f $ac_srcdir/configure.gnu; then
1149       echo
1150       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1151     elif test -f $ac_srcdir/configure; then
1152       echo
1153       $SHELL $ac_srcdir/configure  --help=recursive
1154     elif test -f $ac_srcdir/configure.ac ||
1155            test -f $ac_srcdir/configure.in; then
1156       echo
1157       $ac_configure --help
1158     else
1159       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160     fi
1161     cd $ac_popdir
1162   done
1163 fi
1164
1165 test -n "$ac_init_help" && exit 0
1166 if $ac_init_version; then
1167   cat <<\_ACEOF
1168 llvm configure 1.4
1169 generated by GNU Autoconf 2.59
1170
1171 Copyright (C) 2003 Free Software Foundation, Inc.
1172 This configure script is free software; the Free Software Foundation
1173 gives unlimited permission to copy, distribute and modify it.
1174 _ACEOF
1175   exit 0
1176 fi
1177 exec 5>config.log
1178 cat >&5 <<_ACEOF
1179 This file contains any messages produced by compilers while
1180 running configure, to aid debugging if configure makes a mistake.
1181
1182 It was created by llvm $as_me 1.4, which was
1183 generated by GNU Autoconf 2.59.  Invocation command line was
1184
1185   $ $0 $@
1186
1187 _ACEOF
1188 {
1189 cat <<_ASUNAME
1190 ## --------- ##
1191 ## Platform. ##
1192 ## --------- ##
1193
1194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199
1200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1202
1203 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1204 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1207 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1208 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1209 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1210
1211 _ASUNAME
1212
1213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1214 for as_dir in $PATH
1215 do
1216   IFS=$as_save_IFS
1217   test -z "$as_dir" && as_dir=.
1218   echo "PATH: $as_dir"
1219 done
1220
1221 } >&5
1222
1223 cat >&5 <<_ACEOF
1224
1225
1226 ## ----------- ##
1227 ## Core tests. ##
1228 ## ----------- ##
1229
1230 _ACEOF
1231
1232
1233 # Keep a trace of the command line.
1234 # Strip out --no-create and --no-recursion so they do not pile up.
1235 # Strip out --silent because we don't want to record it for future runs.
1236 # Also quote any args containing shell meta-characters.
1237 # Make two passes to allow for proper duplicate-argument suppression.
1238 ac_configure_args=
1239 ac_configure_args0=
1240 ac_configure_args1=
1241 ac_sep=
1242 ac_must_keep_next=false
1243 for ac_pass in 1 2
1244 do
1245   for ac_arg
1246   do
1247     case $ac_arg in
1248     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250     | -silent | --silent | --silen | --sile | --sil)
1251       continue ;;
1252     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1254     esac
1255     case $ac_pass in
1256     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257     2)
1258       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259       if test $ac_must_keep_next = true; then
1260         ac_must_keep_next=false # Got value, back to normal.
1261       else
1262         case $ac_arg in
1263           *=* | --config-cache | -C | -disable-* | --disable-* \
1264           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266           | -with-* | --with-* | -without-* | --without-* | --x)
1267             case "$ac_configure_args0 " in
1268               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1269             esac
1270             ;;
1271           -* ) ac_must_keep_next=true ;;
1272         esac
1273       fi
1274       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275       # Get rid of the leading space.
1276       ac_sep=" "
1277       ;;
1278     esac
1279   done
1280 done
1281 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1283
1284 # When interrupted or exit'd, cleanup temporary files, and complete
1285 # config.log.  We remove comments because anyway the quotes in there
1286 # would cause problems or look ugly.
1287 # WARNING: Be sure not to use single quotes in there, as some shells,
1288 # such as our DU 5.0 friend, will then `close' the trap.
1289 trap 'exit_status=$?
1290   # Save into config.log some information that might help in debugging.
1291   {
1292     echo
1293
1294     cat <<\_ASBOX
1295 ## ---------------- ##
1296 ## Cache variables. ##
1297 ## ---------------- ##
1298 _ASBOX
1299     echo
1300     # The following way of writing the cache mishandles newlines in values,
1301 {
1302   (set) 2>&1 |
1303     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1304     *ac_space=\ *)
1305       sed -n \
1306         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1308       ;;
1309     *)
1310       sed -n \
1311         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1312       ;;
1313     esac;
1314 }
1315     echo
1316
1317     cat <<\_ASBOX
1318 ## ----------------- ##
1319 ## Output variables. ##
1320 ## ----------------- ##
1321 _ASBOX
1322     echo
1323     for ac_var in $ac_subst_vars
1324     do
1325       eval ac_val=$`echo $ac_var`
1326       echo "$ac_var='"'"'$ac_val'"'"'"
1327     done | sort
1328     echo
1329
1330     if test -n "$ac_subst_files"; then
1331       cat <<\_ASBOX
1332 ## ------------- ##
1333 ## Output files. ##
1334 ## ------------- ##
1335 _ASBOX
1336       echo
1337       for ac_var in $ac_subst_files
1338       do
1339         eval ac_val=$`echo $ac_var`
1340         echo "$ac_var='"'"'$ac_val'"'"'"
1341       done | sort
1342       echo
1343     fi
1344
1345     if test -s confdefs.h; then
1346       cat <<\_ASBOX
1347 ## ----------- ##
1348 ## confdefs.h. ##
1349 ## ----------- ##
1350 _ASBOX
1351       echo
1352       sed "/^$/d" confdefs.h | sort
1353       echo
1354     fi
1355     test "$ac_signal" != 0 &&
1356       echo "$as_me: caught signal $ac_signal"
1357     echo "$as_me: exit $exit_status"
1358   } >&5
1359   rm -f core *.core &&
1360   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1361     exit $exit_status
1362      ' 0
1363 for ac_signal in 1 2 13 15; do
1364   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1365 done
1366 ac_signal=0
1367
1368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1369 rm -rf conftest* confdefs.h
1370 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1371 echo >confdefs.h
1372
1373 # Predefined preprocessor variables.
1374
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_NAME "$PACKAGE_NAME"
1377 _ACEOF
1378
1379
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1382 _ACEOF
1383
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1387 _ACEOF
1388
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_STRING "$PACKAGE_STRING"
1392 _ACEOF
1393
1394
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1397 _ACEOF
1398
1399
1400 # Let the site file select an alternate cache file if it wants to.
1401 # Prefer explicitly selected file to automatically selected ones.
1402 if test -z "$CONFIG_SITE"; then
1403   if test "x$prefix" != xNONE; then
1404     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405   else
1406     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1407   fi
1408 fi
1409 for ac_site_file in $CONFIG_SITE; do
1410   if test -r "$ac_site_file"; then
1411     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412 echo "$as_me: loading site script $ac_site_file" >&6;}
1413     sed 's/^/| /' "$ac_site_file" >&5
1414     . "$ac_site_file"
1415   fi
1416 done
1417
1418 if test -r "$cache_file"; then
1419   # Some versions of bash will fail to source /dev/null (special
1420   # files actually), so we avoid doing that.
1421   if test -f "$cache_file"; then
1422     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423 echo "$as_me: loading cache $cache_file" >&6;}
1424     case $cache_file in
1425       [\\/]* | ?:[\\/]* ) . $cache_file;;
1426       *)                      . ./$cache_file;;
1427     esac
1428   fi
1429 else
1430   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431 echo "$as_me: creating cache $cache_file" >&6;}
1432   >$cache_file
1433 fi
1434
1435 # Check that the precious variables saved in the cache have kept the same
1436 # value.
1437 ac_cache_corrupted=false
1438 for ac_var in `(set) 2>&1 |
1439                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441   eval ac_new_set=\$ac_env_${ac_var}_set
1442   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443   eval ac_new_val="\$ac_env_${ac_var}_value"
1444   case $ac_old_set,$ac_new_set in
1445     set,)
1446       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448       ac_cache_corrupted=: ;;
1449     ,set)
1450       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452       ac_cache_corrupted=: ;;
1453     ,);;
1454     *)
1455       if test "x$ac_old_val" != "x$ac_new_val"; then
1456         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1459 echo "$as_me:   former value:  $ac_old_val" >&2;}
1460         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1461 echo "$as_me:   current value: $ac_new_val" >&2;}
1462         ac_cache_corrupted=:
1463       fi;;
1464   esac
1465   # Pass precious variables to config.status.
1466   if test "$ac_new_set" = set; then
1467     case $ac_new_val in
1468     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470     *) ac_arg=$ac_var=$ac_new_val ;;
1471     esac
1472     case " $ac_configure_args " in
1473       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1474       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475     esac
1476   fi
1477 done
1478 if $ac_cache_corrupted; then
1479   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483    { (exit 1); exit 1; }; }
1484 fi
1485
1486 ac_ext=c
1487 ac_cpp='$CPP $CPPFLAGS'
1488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519 ac_aux_dir=
1520 for ac_dir in autoconf $srcdir/autoconf; do
1521   if test -f $ac_dir/install-sh; then
1522     ac_aux_dir=$ac_dir
1523     ac_install_sh="$ac_aux_dir/install-sh -c"
1524     break
1525   elif test -f $ac_dir/install.sh; then
1526     ac_aux_dir=$ac_dir
1527     ac_install_sh="$ac_aux_dir/install.sh -c"
1528     break
1529   elif test -f $ac_dir/shtool; then
1530     ac_aux_dir=$ac_dir
1531     ac_install_sh="$ac_aux_dir/shtool install -c"
1532     break
1533   fi
1534 done
1535 if test -z "$ac_aux_dir"; then
1536   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1537 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1538    { (exit 1); exit 1; }; }
1539 fi
1540 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1543
1544
1545
1546 if test ${srcdir} != "." ; then
1547         if test -f ${srcdir}/include/llvm/Config/config.h ; then
1548                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1549 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1550    { (exit 1); exit 1; }; }
1551         fi
1552 fi
1553
1554 for i in `ls ${srcdir}/projects`
1555 do
1556   if test -d ${srcdir}/projects/${i} ; then
1557     case ${i} in
1558       "CVS") ;;
1559       "sample")
1560
1561 subdirs="$subdirs projects/sample"
1562     ;;
1563       "Stacker")
1564
1565 subdirs="$subdirs projects/Stacker"
1566    ;;
1567       "llvm-test")
1568
1569 subdirs="$subdirs projects/llvm-test"
1570  ;;
1571       "llvm-reopt")
1572
1573 subdirs="$subdirs projects/llvm-reopt"
1574 ;;
1575       "llvm-gcc")
1576
1577 subdirs="$subdirs projects/llvm-gcc"
1578   ;;
1579       "Java")
1580
1581 subdirs="$subdirs projects/Java"
1582       ;;
1583       "llvm-tv")
1584
1585 subdirs="$subdirs projects/llvm-tv"
1586    ;;
1587       "llvm-fefw")
1588
1589 subdirs="$subdirs projects/llvm-fefw"
1590  ;;
1591       "poolalloc")
1592
1593 subdirs="$subdirs projects/poolalloc"
1594  ;;
1595       *)
1596         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1597 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1598         ;;
1599     esac
1600   fi
1601 done
1602
1603           ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
1604
1605
1606           ac_config_files="$ac_config_files Makefile.config"
1607
1608           ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
1609
1610           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
1611
1612           ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
1613
1614           ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
1615
1616           ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
1617
1618
1619           ac_config_commands="$ac_config_commands Makefile"
1620
1621
1622           ac_config_commands="$ac_config_commands Makefile.common"
1623
1624
1625           ac_config_commands="$ac_config_commands examples/Makefile"
1626
1627
1628           ac_config_commands="$ac_config_commands lib/Makefile"
1629
1630
1631           ac_config_commands="$ac_config_commands runtime/Makefile"
1632
1633
1634           ac_config_commands="$ac_config_commands test/Makefile"
1635
1636
1637           ac_config_commands="$ac_config_commands test/Makefile.tests"
1638
1639
1640           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1641
1642
1643           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1644
1645
1646           ac_config_commands="$ac_config_commands tools/Makefile"
1647
1648
1649           ac_config_commands="$ac_config_commands tools/Makefile.JIT"
1650
1651
1652           ac_config_commands="$ac_config_commands utils/Makefile"
1653
1654
1655           ac_config_commands="$ac_config_commands projects/Makefile"
1656
1657
1658
1659 # Find a good install program.  We prefer a C program (faster),
1660 # so one script is as good as another.  But avoid the broken or
1661 # incompatible versions:
1662 # SysV /etc/install, /usr/sbin/install
1663 # SunOS /usr/etc/install
1664 # IRIX /sbin/install
1665 # AIX /bin/install
1666 # AmigaOS /C/install, which installs bootblocks on floppy discs
1667 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1668 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1669 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1670 # OS/2's system install, which has a completely different semantic
1671 # ./install, which can be erroneously created by make from ./install.sh.
1672 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1673 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1674 if test -z "$INSTALL"; then
1675 if test "${ac_cv_path_install+set}" = set; then
1676   echo $ECHO_N "(cached) $ECHO_C" >&6
1677 else
1678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 for as_dir in $PATH
1680 do
1681   IFS=$as_save_IFS
1682   test -z "$as_dir" && as_dir=.
1683   # Account for people who put trailing slashes in PATH elements.
1684 case $as_dir/ in
1685   ./ | .// | /cC/* | \
1686   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1687   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1688   /usr/ucb/* ) ;;
1689   *)
1690     # OSF1 and SCO ODT 3.0 have their own names for install.
1691     # Don't use installbsd from OSF since it installs stuff as root
1692     # by default.
1693     for ac_prog in ginstall scoinst install; do
1694       for ac_exec_ext in '' $ac_executable_extensions; do
1695         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1696           if test $ac_prog = install &&
1697             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1698             # AIX install.  It has an incompatible calling convention.
1699             :
1700           elif test $ac_prog = install &&
1701             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1702             # program-specific install script used by HP pwplus--don't use.
1703             :
1704           else
1705             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1706             break 3
1707           fi
1708         fi
1709       done
1710     done
1711     ;;
1712 esac
1713 done
1714
1715
1716 fi
1717   if test "${ac_cv_path_install+set}" = set; then
1718     INSTALL=$ac_cv_path_install
1719   else
1720     # As a last resort, use the slow shell script.  We don't cache a
1721     # path for INSTALL within a source directory, because that will
1722     # break other packages using the cache if that directory is
1723     # removed, or if the path is relative.
1724     INSTALL=$ac_install_sh
1725   fi
1726 fi
1727 echo "$as_me:$LINENO: result: $INSTALL" >&5
1728 echo "${ECHO_T}$INSTALL" >&6
1729
1730 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1731 # It thinks the first close brace ends the variable substitution.
1732 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1733
1734 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1735
1736 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1737
1738
1739 # Make sure we can run config.sub.
1740 $ac_config_sub sun4 >/dev/null 2>&1 ||
1741   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1742 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1743    { (exit 1); exit 1; }; }
1744
1745 echo "$as_me:$LINENO: checking build system type" >&5
1746 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1747 if test "${ac_cv_build+set}" = set; then
1748   echo $ECHO_N "(cached) $ECHO_C" >&6
1749 else
1750   ac_cv_build_alias=$build_alias
1751 test -z "$ac_cv_build_alias" &&
1752   ac_cv_build_alias=`$ac_config_guess`
1753 test -z "$ac_cv_build_alias" &&
1754   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1755 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1756    { (exit 1); exit 1; }; }
1757 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1758   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1759 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1760    { (exit 1); exit 1; }; }
1761
1762 fi
1763 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1764 echo "${ECHO_T}$ac_cv_build" >&6
1765 build=$ac_cv_build
1766 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1767 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1768 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1769
1770
1771 echo "$as_me:$LINENO: checking host system type" >&5
1772 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1773 if test "${ac_cv_host+set}" = set; then
1774   echo $ECHO_N "(cached) $ECHO_C" >&6
1775 else
1776   ac_cv_host_alias=$host_alias
1777 test -z "$ac_cv_host_alias" &&
1778   ac_cv_host_alias=$ac_cv_build_alias
1779 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1780   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1781 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1782    { (exit 1); exit 1; }; }
1783
1784 fi
1785 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1786 echo "${ECHO_T}$ac_cv_host" >&6
1787 host=$ac_cv_host
1788 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1789 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1790 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1791
1792
1793 echo "$as_me:$LINENO: checking target system type" >&5
1794 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1795 if test "${ac_cv_target+set}" = set; then
1796   echo $ECHO_N "(cached) $ECHO_C" >&6
1797 else
1798   ac_cv_target_alias=$target_alias
1799 test "x$ac_cv_target_alias" = "x" &&
1800   ac_cv_target_alias=$ac_cv_host_alias
1801 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1802   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1803 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1804    { (exit 1); exit 1; }; }
1805
1806 fi
1807 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1808 echo "${ECHO_T}$ac_cv_target" >&6
1809 target=$ac_cv_target
1810 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1811 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1812 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1813
1814
1815 # The aliases save the names the user supplied, while $host etc.
1816 # will get canonicalized.
1817 test -n "$target_alias" &&
1818   test "$program_prefix$program_suffix$program_transform_name" = \
1819     NONENONEs,x,x, &&
1820   program_prefix=${target_alias}-
1821
1822
1823 echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1824 echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
1825 case $build in
1826         *-*-aix*)
1827              OS=AIX
1828
1829              platform_type="AIX"
1830              ;;
1831         *-*-cygwin*)
1832              OS=Cygwin
1833
1834              platform_type="Cygwin"
1835              ;;
1836         *-*-darwin*)
1837              OS=Darwin
1838
1839              platform_type="Darwin"
1840              ;;
1841         *-*-freebsd*)
1842              OS=Linux
1843
1844              platform_type="FreeBSD"
1845              ;;
1846         *-*-interix*)
1847              OS=SunOS
1848
1849              platform_type="Interix"
1850              ;;
1851         *-*-linux*)
1852              OS=Linux
1853
1854              platform_type="Linux"
1855              if test -d /home/vadve/lattner/local/x86/llvm-gcc
1856              then
1857                LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1858
1859              fi
1860              ;;
1861         *-*-solaris*)
1862              OS=SunOS
1863
1864              platform_type="SunOS"
1865              if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1866              then
1867                LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1868
1869              fi
1870              ;;
1871         *-*-win32*)
1872              OS=Win32
1873
1874              platform_type="Win32"
1875              ;;
1876         *-*-mingw*)
1877              OS=Win32
1878
1879              platform_type="Win32"
1880              ;;
1881         *)
1882              OS=Unknown
1883
1884              platform_type="Unknown"
1885              ;;
1886 esac
1887
1888 if test "$platform_type" = "Unknown" ; then
1889   { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1890 echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1891    { (exit 1); exit 1; }; }
1892 fi
1893
1894           ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1895
1896
1897
1898 echo "$as_me:$LINENO: checking target architecture" >&5
1899 echo $ECHO_N "checking target architecture... $ECHO_C" >&6
1900 case $target in
1901         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1902
1903                             ;;
1904 esac
1905
1906 case $target in
1907         i*86-*)
1908           ARCH="x86"
1909           ARCH=x86
1910
1911           ;;
1912         sparc*-*)
1913           ARCH="Sparc"
1914           ARCH=Sparc
1915
1916           ;;
1917         powerpc*-*)
1918           ARCH="PowerPC"
1919           ARCH=PowerPC
1920
1921           ;;
1922         *)
1923           ARCH="Unknown"
1924           ARCH=Unknown
1925
1926           ;;
1927 esac
1928
1929 echo "$as_me:$LINENO: result: $ARCH" >&5
1930 echo "${ECHO_T}$ARCH" >&6
1931
1932 ac_ext=cc
1933 ac_cpp='$CXXCPP $CPPFLAGS'
1934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1937 if test -n "$ac_tool_prefix"; then
1938   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1939   do
1940     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1942 echo "$as_me:$LINENO: checking for $ac_word" >&5
1943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944 if test "${ac_cv_prog_CXX+set}" = set; then
1945   echo $ECHO_N "(cached) $ECHO_C" >&6
1946 else
1947   if test -n "$CXX"; then
1948   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1949 else
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 for as_dir in $PATH
1952 do
1953   IFS=$as_save_IFS
1954   test -z "$as_dir" && as_dir=.
1955   for ac_exec_ext in '' $ac_executable_extensions; do
1956   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959     break 2
1960   fi
1961 done
1962 done
1963
1964 fi
1965 fi
1966 CXX=$ac_cv_prog_CXX
1967 if test -n "$CXX"; then
1968   echo "$as_me:$LINENO: result: $CXX" >&5
1969 echo "${ECHO_T}$CXX" >&6
1970 else
1971   echo "$as_me:$LINENO: result: no" >&5
1972 echo "${ECHO_T}no" >&6
1973 fi
1974
1975     test -n "$CXX" && break
1976   done
1977 fi
1978 if test -z "$CXX"; then
1979   ac_ct_CXX=$CXX
1980   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1981 do
1982   # Extract the first word of "$ac_prog", so it can be a program name with args.
1983 set dummy $ac_prog; ac_word=$2
1984 echo "$as_me:$LINENO: checking for $ac_word" >&5
1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1986 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1987   echo $ECHO_N "(cached) $ECHO_C" >&6
1988 else
1989   if test -n "$ac_ct_CXX"; then
1990   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1991 else
1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 for as_dir in $PATH
1994 do
1995   IFS=$as_save_IFS
1996   test -z "$as_dir" && as_dir=.
1997   for ac_exec_ext in '' $ac_executable_extensions; do
1998   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999     ac_cv_prog_ac_ct_CXX="$ac_prog"
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 fi
2007 fi
2008 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2009 if test -n "$ac_ct_CXX"; then
2010   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2011 echo "${ECHO_T}$ac_ct_CXX" >&6
2012 else
2013   echo "$as_me:$LINENO: result: no" >&5
2014 echo "${ECHO_T}no" >&6
2015 fi
2016
2017   test -n "$ac_ct_CXX" && break
2018 done
2019 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2020
2021   CXX=$ac_ct_CXX
2022 fi
2023
2024
2025 # Provide some information about the compiler.
2026 echo "$as_me:$LINENO:" \
2027      "checking for C++ compiler version" >&5
2028 ac_compiler=`set X $ac_compile; echo $2`
2029 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2030   (eval $ac_compiler --version </dev/null >&5) 2>&5
2031   ac_status=$?
2032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033   (exit $ac_status); }
2034 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2035   (eval $ac_compiler -v </dev/null >&5) 2>&5
2036   ac_status=$?
2037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038   (exit $ac_status); }
2039 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2040   (eval $ac_compiler -V </dev/null >&5) 2>&5
2041   ac_status=$?
2042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043   (exit $ac_status); }
2044
2045 cat >conftest.$ac_ext <<_ACEOF
2046 /* confdefs.h.  */
2047 _ACEOF
2048 cat confdefs.h >>conftest.$ac_ext
2049 cat >>conftest.$ac_ext <<_ACEOF
2050 /* end confdefs.h.  */
2051
2052 int
2053 main ()
2054 {
2055
2056   ;
2057   return 0;
2058 }
2059 _ACEOF
2060 ac_clean_files_save=$ac_clean_files
2061 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2062 # Try to create an executable without -o first, disregard a.out.
2063 # It will help us diagnose broken compilers, and finding out an intuition
2064 # of exeext.
2065 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2066 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2067 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2068 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2069   (eval $ac_link_default) 2>&5
2070   ac_status=$?
2071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072   (exit $ac_status); }; then
2073   # Find the output, starting from the most likely.  This scheme is
2074 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2075 # resort.
2076
2077 # Be careful to initialize this variable, since it used to be cached.
2078 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2079 ac_cv_exeext=
2080 # b.out is created by i960 compilers.
2081 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2082 do
2083   test -f "$ac_file" || continue
2084   case $ac_file in
2085     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2086         ;;
2087     conftest.$ac_ext )
2088         # This is the source file.
2089         ;;
2090     [ab].out )
2091         # We found the default executable, but exeext='' is most
2092         # certainly right.
2093         break;;
2094     *.* )
2095         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2096         # FIXME: I believe we export ac_cv_exeext for Libtool,
2097         # but it would be cool to find out if it's true.  Does anybody
2098         # maintain Libtool? --akim.
2099         export ac_cv_exeext
2100         break;;
2101     * )
2102         break;;
2103   esac
2104 done
2105 else
2106   echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2108
2109 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2110 See \`config.log' for more details." >&5
2111 echo "$as_me: error: C++ compiler cannot create executables
2112 See \`config.log' for more details." >&2;}
2113    { (exit 77); exit 77; }; }
2114 fi
2115
2116 ac_exeext=$ac_cv_exeext
2117 echo "$as_me:$LINENO: result: $ac_file" >&5
2118 echo "${ECHO_T}$ac_file" >&6
2119
2120 # Check the compiler produces executables we can run.  If not, either
2121 # the compiler is broken, or we cross compile.
2122 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2123 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2124 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2125 # If not cross compiling, check that we can run a simple program.
2126 if test "$cross_compiling" != yes; then
2127   if { ac_try='./$ac_file'
2128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2129   (eval $ac_try) 2>&5
2130   ac_status=$?
2131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132   (exit $ac_status); }; }; then
2133     cross_compiling=no
2134   else
2135     if test "$cross_compiling" = maybe; then
2136         cross_compiling=yes
2137     else
2138         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2139 If you meant to cross compile, use \`--host'.
2140 See \`config.log' for more details." >&5
2141 echo "$as_me: error: cannot run C++ compiled programs.
2142 If you meant to cross compile, use \`--host'.
2143 See \`config.log' for more details." >&2;}
2144    { (exit 1); exit 1; }; }
2145     fi
2146   fi
2147 fi
2148 echo "$as_me:$LINENO: result: yes" >&5
2149 echo "${ECHO_T}yes" >&6
2150
2151 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2152 ac_clean_files=$ac_clean_files_save
2153 # Check the compiler produces executables we can run.  If not, either
2154 # the compiler is broken, or we cross compile.
2155 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2156 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2157 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2158 echo "${ECHO_T}$cross_compiling" >&6
2159
2160 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2161 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2163   (eval $ac_link) 2>&5
2164   ac_status=$?
2165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166   (exit $ac_status); }; then
2167   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2168 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2169 # work properly (i.e., refer to `conftest.exe'), while it won't with
2170 # `rm'.
2171 for ac_file in conftest.exe conftest conftest.*; do
2172   test -f "$ac_file" || continue
2173   case $ac_file in
2174     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2175     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2176           export ac_cv_exeext
2177           break;;
2178     * ) break;;
2179   esac
2180 done
2181 else
2182   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2183 See \`config.log' for more details." >&5
2184 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2185 See \`config.log' for more details." >&2;}
2186    { (exit 1); exit 1; }; }
2187 fi
2188
2189 rm -f conftest$ac_cv_exeext
2190 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2191 echo "${ECHO_T}$ac_cv_exeext" >&6
2192
2193 rm -f conftest.$ac_ext
2194 EXEEXT=$ac_cv_exeext
2195 ac_exeext=$EXEEXT
2196 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2197 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2198 if test "${ac_cv_objext+set}" = set; then
2199   echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201   cat >conftest.$ac_ext <<_ACEOF
2202 /* confdefs.h.  */
2203 _ACEOF
2204 cat confdefs.h >>conftest.$ac_ext
2205 cat >>conftest.$ac_ext <<_ACEOF
2206 /* end confdefs.h.  */
2207
2208 int
2209 main ()
2210 {
2211
2212   ;
2213   return 0;
2214 }
2215 _ACEOF
2216 rm -f conftest.o conftest.obj
2217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218   (eval $ac_compile) 2>&5
2219   ac_status=$?
2220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221   (exit $ac_status); }; then
2222   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2223   case $ac_file in
2224     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2225     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2226        break;;
2227   esac
2228 done
2229 else
2230   echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2232
2233 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2236 See \`config.log' for more details." >&2;}
2237    { (exit 1); exit 1; }; }
2238 fi
2239
2240 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2241 fi
2242 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2243 echo "${ECHO_T}$ac_cv_objext" >&6
2244 OBJEXT=$ac_cv_objext
2245 ac_objext=$OBJEXT
2246 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2247 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2248 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2249   echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251   cat >conftest.$ac_ext <<_ACEOF
2252 /* confdefs.h.  */
2253 _ACEOF
2254 cat confdefs.h >>conftest.$ac_ext
2255 cat >>conftest.$ac_ext <<_ACEOF
2256 /* end confdefs.h.  */
2257
2258 int
2259 main ()
2260 {
2261 #ifndef __GNUC__
2262        choke me
2263 #endif
2264
2265   ;
2266   return 0;
2267 }
2268 _ACEOF
2269 rm -f conftest.$ac_objext
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271   (eval $ac_compile) 2>conftest.er1
2272   ac_status=$?
2273   grep -v '^ *+' conftest.er1 >conftest.err
2274   rm -f conftest.er1
2275   cat conftest.err >&5
2276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277   (exit $ac_status); } &&
2278          { ac_try='test -z "$ac_cxx_werror_flag"
2279                          || test ! -s conftest.err'
2280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281   (eval $ac_try) 2>&5
2282   ac_status=$?
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); }; } &&
2285          { ac_try='test -s conftest.$ac_objext'
2286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287   (eval $ac_try) 2>&5
2288   ac_status=$?
2289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290   (exit $ac_status); }; }; then
2291   ac_compiler_gnu=yes
2292 else
2293   echo "$as_me: failed program was:" >&5
2294 sed 's/^/| /' conftest.$ac_ext >&5
2295
2296 ac_compiler_gnu=no
2297 fi
2298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2299 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2300
2301 fi
2302 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2303 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2304 GXX=`test $ac_compiler_gnu = yes && echo yes`
2305 ac_test_CXXFLAGS=${CXXFLAGS+set}
2306 ac_save_CXXFLAGS=$CXXFLAGS
2307 CXXFLAGS="-g"
2308 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2309 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2310 if test "${ac_cv_prog_cxx_g+set}" = set; then
2311   echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313   cat >conftest.$ac_ext <<_ACEOF
2314 /* confdefs.h.  */
2315 _ACEOF
2316 cat confdefs.h >>conftest.$ac_ext
2317 cat >>conftest.$ac_ext <<_ACEOF
2318 /* end confdefs.h.  */
2319
2320 int
2321 main ()
2322 {
2323
2324   ;
2325   return 0;
2326 }
2327 _ACEOF
2328 rm -f conftest.$ac_objext
2329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2330   (eval $ac_compile) 2>conftest.er1
2331   ac_status=$?
2332   grep -v '^ *+' conftest.er1 >conftest.err
2333   rm -f conftest.er1
2334   cat conftest.err >&5
2335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336   (exit $ac_status); } &&
2337          { ac_try='test -z "$ac_cxx_werror_flag"
2338                          || test ! -s conftest.err'
2339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340   (eval $ac_try) 2>&5
2341   ac_status=$?
2342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343   (exit $ac_status); }; } &&
2344          { ac_try='test -s conftest.$ac_objext'
2345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2346   (eval $ac_try) 2>&5
2347   ac_status=$?
2348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349   (exit $ac_status); }; }; then
2350   ac_cv_prog_cxx_g=yes
2351 else
2352   echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.$ac_ext >&5
2354
2355 ac_cv_prog_cxx_g=no
2356 fi
2357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2358 fi
2359 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2360 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2361 if test "$ac_test_CXXFLAGS" = set; then
2362   CXXFLAGS=$ac_save_CXXFLAGS
2363 elif test $ac_cv_prog_cxx_g = yes; then
2364   if test "$GXX" = yes; then
2365     CXXFLAGS="-g -O2"
2366   else
2367     CXXFLAGS="-g"
2368   fi
2369 else
2370   if test "$GXX" = yes; then
2371     CXXFLAGS="-O2"
2372   else
2373     CXXFLAGS=
2374   fi
2375 fi
2376 for ac_declaration in \
2377    '' \
2378    'extern "C" void std::exit (int) throw (); using std::exit;' \
2379    'extern "C" void std::exit (int); using std::exit;' \
2380    'extern "C" void exit (int) throw ();' \
2381    'extern "C" void exit (int);' \
2382    'void exit (int);'
2383 do
2384   cat >conftest.$ac_ext <<_ACEOF
2385 /* confdefs.h.  */
2386 _ACEOF
2387 cat confdefs.h >>conftest.$ac_ext
2388 cat >>conftest.$ac_ext <<_ACEOF
2389 /* end confdefs.h.  */
2390 $ac_declaration
2391 #include <stdlib.h>
2392 int
2393 main ()
2394 {
2395 exit (42);
2396   ;
2397   return 0;
2398 }
2399 _ACEOF
2400 rm -f conftest.$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402   (eval $ac_compile) 2>conftest.er1
2403   ac_status=$?
2404   grep -v '^ *+' conftest.er1 >conftest.err
2405   rm -f conftest.er1
2406   cat conftest.err >&5
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); } &&
2409          { ac_try='test -z "$ac_cxx_werror_flag"
2410                          || test ! -s conftest.err'
2411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412   (eval $ac_try) 2>&5
2413   ac_status=$?
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); }; } &&
2416          { ac_try='test -s conftest.$ac_objext'
2417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418   (eval $ac_try) 2>&5
2419   ac_status=$?
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); }; }; then
2422   :
2423 else
2424   echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426
2427 continue
2428 fi
2429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2430   cat >conftest.$ac_ext <<_ACEOF
2431 /* confdefs.h.  */
2432 _ACEOF
2433 cat confdefs.h >>conftest.$ac_ext
2434 cat >>conftest.$ac_ext <<_ACEOF
2435 /* end confdefs.h.  */
2436 $ac_declaration
2437 int
2438 main ()
2439 {
2440 exit (42);
2441   ;
2442   return 0;
2443 }
2444 _ACEOF
2445 rm -f conftest.$ac_objext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447   (eval $ac_compile) 2>conftest.er1
2448   ac_status=$?
2449   grep -v '^ *+' conftest.er1 >conftest.err
2450   rm -f conftest.er1
2451   cat conftest.err >&5
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); } &&
2454          { ac_try='test -z "$ac_cxx_werror_flag"
2455                          || test ! -s conftest.err'
2456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457   (eval $ac_try) 2>&5
2458   ac_status=$?
2459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460   (exit $ac_status); }; } &&
2461          { ac_try='test -s conftest.$ac_objext'
2462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463   (eval $ac_try) 2>&5
2464   ac_status=$?
2465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466   (exit $ac_status); }; }; then
2467   break
2468 else
2469   echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2471
2472 fi
2473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2474 done
2475 rm -f conftest*
2476 if test -n "$ac_declaration"; then
2477   echo '#ifdef __cplusplus' >>confdefs.h
2478   echo $ac_declaration      >>confdefs.h
2479   echo '#endif'             >>confdefs.h
2480 fi
2481
2482 ac_ext=c
2483 ac_cpp='$CPP $CPPFLAGS'
2484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2487
2488 ac_ext=c
2489 ac_cpp='$CPP $CPPFLAGS'
2490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2493 if test -n "$ac_tool_prefix"; then
2494   for ac_prog in gcc
2495   do
2496     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2498 echo "$as_me:$LINENO: checking for $ac_word" >&5
2499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2500 if test "${ac_cv_prog_CC+set}" = set; then
2501   echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503   if test -n "$CC"; then
2504   ac_cv_prog_CC="$CC" # Let the user override the test.
2505 else
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509   IFS=$as_save_IFS
2510   test -z "$as_dir" && as_dir=.
2511   for ac_exec_ext in '' $ac_executable_extensions; do
2512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2513     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515     break 2
2516   fi
2517 done
2518 done
2519
2520 fi
2521 fi
2522 CC=$ac_cv_prog_CC
2523 if test -n "$CC"; then
2524   echo "$as_me:$LINENO: result: $CC" >&5
2525 echo "${ECHO_T}$CC" >&6
2526 else
2527   echo "$as_me:$LINENO: result: no" >&5
2528 echo "${ECHO_T}no" >&6
2529 fi
2530
2531     test -n "$CC" && break
2532   done
2533 fi
2534 if test -z "$CC"; then
2535   ac_ct_CC=$CC
2536   for ac_prog in gcc
2537 do
2538   # Extract the first word of "$ac_prog", so it can be a program name with args.
2539 set dummy $ac_prog; ac_word=$2
2540 echo "$as_me:$LINENO: checking for $ac_word" >&5
2541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2542 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2543   echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545   if test -n "$ac_ct_CC"; then
2546   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551   IFS=$as_save_IFS
2552   test -z "$as_dir" && as_dir=.
2553   for ac_exec_ext in '' $ac_executable_extensions; do
2554   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555     ac_cv_prog_ac_ct_CC="$ac_prog"
2556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2557     break 2
2558   fi
2559 done
2560 done
2561
2562 fi
2563 fi
2564 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2565 if test -n "$ac_ct_CC"; then
2566   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2567 echo "${ECHO_T}$ac_ct_CC" >&6
2568 else
2569   echo "$as_me:$LINENO: result: no" >&5
2570 echo "${ECHO_T}no" >&6
2571 fi
2572
2573   test -n "$ac_ct_CC" && break
2574 done
2575
2576   CC=$ac_ct_CC
2577 fi
2578
2579
2580 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2581 See \`config.log' for more details." >&5
2582 echo "$as_me: error: no acceptable C compiler found in \$PATH
2583 See \`config.log' for more details." >&2;}
2584    { (exit 1); exit 1; }; }
2585
2586 # Provide some information about the compiler.
2587 echo "$as_me:$LINENO:" \
2588      "checking for C compiler version" >&5
2589 ac_compiler=`set X $ac_compile; echo $2`
2590 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2591   (eval $ac_compiler --version </dev/null >&5) 2>&5
2592   ac_status=$?
2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); }
2595 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2596   (eval $ac_compiler -v </dev/null >&5) 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }
2600 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2601   (eval $ac_compiler -V </dev/null >&5) 2>&5
2602   ac_status=$?
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); }
2605
2606 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2607 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2608 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2609   echo $ECHO_N "(cached) $ECHO_C" >&6
2610 else
2611   cat >conftest.$ac_ext <<_ACEOF
2612 /* confdefs.h.  */
2613 _ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h.  */
2617
2618 int
2619 main ()
2620 {
2621 #ifndef __GNUC__
2622        choke me
2623 #endif
2624
2625   ;
2626   return 0;
2627 }
2628 _ACEOF
2629 rm -f conftest.$ac_objext
2630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2631   (eval $ac_compile) 2>conftest.er1
2632   ac_status=$?
2633   grep -v '^ *+' conftest.er1 >conftest.err
2634   rm -f conftest.er1
2635   cat conftest.err >&5
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); } &&
2638          { ac_try='test -z "$ac_c_werror_flag"
2639                          || test ! -s conftest.err'
2640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641   (eval $ac_try) 2>&5
2642   ac_status=$?
2643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644   (exit $ac_status); }; } &&
2645          { ac_try='test -s conftest.$ac_objext'
2646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647   (eval $ac_try) 2>&5
2648   ac_status=$?
2649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650   (exit $ac_status); }; }; then
2651   ac_compiler_gnu=yes
2652 else
2653   echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2655
2656 ac_compiler_gnu=no
2657 fi
2658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2659 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2660
2661 fi
2662 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2663 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2664 GCC=`test $ac_compiler_gnu = yes && echo yes`
2665 ac_test_CFLAGS=${CFLAGS+set}
2666 ac_save_CFLAGS=$CFLAGS
2667 CFLAGS="-g"
2668 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2669 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2670 if test "${ac_cv_prog_cc_g+set}" = set; then
2671   echo $ECHO_N "(cached) $ECHO_C" >&6
2672 else
2673   cat >conftest.$ac_ext <<_ACEOF
2674 /* confdefs.h.  */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h.  */
2679
2680 int
2681 main ()
2682 {
2683
2684   ;
2685   return 0;
2686 }
2687 _ACEOF
2688 rm -f conftest.$ac_objext
2689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690   (eval $ac_compile) 2>conftest.er1
2691   ac_status=$?
2692   grep -v '^ *+' conftest.er1 >conftest.err
2693   rm -f conftest.er1
2694   cat conftest.err >&5
2695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696   (exit $ac_status); } &&
2697          { ac_try='test -z "$ac_c_werror_flag"
2698                          || test ! -s conftest.err'
2699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700   (eval $ac_try) 2>&5
2701   ac_status=$?
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); }; } &&
2704          { ac_try='test -s conftest.$ac_objext'
2705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706   (eval $ac_try) 2>&5
2707   ac_status=$?
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); }; }; then
2710   ac_cv_prog_cc_g=yes
2711 else
2712   echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2714
2715 ac_cv_prog_cc_g=no
2716 fi
2717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2718 fi
2719 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2720 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2721 if test "$ac_test_CFLAGS" = set; then
2722   CFLAGS=$ac_save_CFLAGS
2723 elif test $ac_cv_prog_cc_g = yes; then
2724   if test "$GCC" = yes; then
2725     CFLAGS="-g -O2"
2726   else
2727     CFLAGS="-g"
2728   fi
2729 else
2730   if test "$GCC" = yes; then
2731     CFLAGS="-O2"
2732   else
2733     CFLAGS=
2734   fi
2735 fi
2736 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2737 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2738 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2739   echo $ECHO_N "(cached) $ECHO_C" >&6
2740 else
2741   ac_cv_prog_cc_stdc=no
2742 ac_save_CC=$CC
2743 cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h.  */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h.  */
2749 #include <stdarg.h>
2750 #include <stdio.h>
2751 #include <sys/types.h>
2752 #include <sys/stat.h>
2753 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2754 struct buf { int x; };
2755 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2756 static char *e (p, i)
2757      char **p;
2758      int i;
2759 {
2760   return p[i];
2761 }
2762 static char *f (char * (*g) (char **, int), char **p, ...)
2763 {
2764   char *s;
2765   va_list v;
2766   va_start (v,p);
2767   s = g (p, va_arg (v,int));
2768   va_end (v);
2769   return s;
2770 }
2771
2772 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2773    function prototypes and stuff, but not '\xHH' hex character constants.
2774    These don't provoke an error unfortunately, instead are silently treated
2775    as 'x'.  The following induces an error, until -std1 is added to get
2776    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2777    array size at least.  It's necessary to write '\x00'==0 to get something
2778    that's true only with -std1.  */
2779 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2780
2781 int test (int i, double x);
2782 struct s1 {int (*f) (int a);};
2783 struct s2 {int (*f) (double a);};
2784 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2785 int argc;
2786 char **argv;
2787 int
2788 main ()
2789 {
2790 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2791   ;
2792   return 0;
2793 }
2794 _ACEOF
2795 # Don't try gcc -ansi; that turns off useful extensions and
2796 # breaks some systems' header files.
2797 # AIX                   -qlanglvl=ansi
2798 # Ultrix and OSF/1      -std1
2799 # HP-UX 10.20 and later -Ae
2800 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2801 # SVR4                  -Xc -D__EXTENSIONS__
2802 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2803 do
2804   CC="$ac_save_CC $ac_arg"
2805   rm -f conftest.$ac_objext
2806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2807   (eval $ac_compile) 2>conftest.er1
2808   ac_status=$?
2809   grep -v '^ *+' conftest.er1 >conftest.err
2810   rm -f conftest.er1
2811   cat conftest.err >&5
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); } &&
2814          { ac_try='test -z "$ac_c_werror_flag"
2815                          || test ! -s conftest.err'
2816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817   (eval $ac_try) 2>&5
2818   ac_status=$?
2819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820   (exit $ac_status); }; } &&
2821          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2827   ac_cv_prog_cc_stdc=$ac_arg
2828 break
2829 else
2830   echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2832
2833 fi
2834 rm -f conftest.err conftest.$ac_objext
2835 done
2836 rm -f conftest.$ac_ext conftest.$ac_objext
2837 CC=$ac_save_CC
2838
2839 fi
2840
2841 case "x$ac_cv_prog_cc_stdc" in
2842   x|xno)
2843     echo "$as_me:$LINENO: result: none needed" >&5
2844 echo "${ECHO_T}none needed" >&6 ;;
2845   *)
2846     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2847 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2848     CC="$CC $ac_cv_prog_cc_stdc" ;;
2849 esac
2850
2851 # Some people use a C++ compiler to compile C.  Since we use `exit',
2852 # in C++ we need to declare it.  In case someone uses the same compiler
2853 # for both compiling C and C++ we need to have the C++ compiler decide
2854 # the declaration of exit, since it's the most demanding environment.
2855 cat >conftest.$ac_ext <<_ACEOF
2856 #ifndef __cplusplus
2857   choke me
2858 #endif
2859 _ACEOF
2860 rm -f conftest.$ac_objext
2861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862   (eval $ac_compile) 2>conftest.er1
2863   ac_status=$?
2864   grep -v '^ *+' conftest.er1 >conftest.err
2865   rm -f conftest.er1
2866   cat conftest.err >&5
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); } &&
2869          { ac_try='test -z "$ac_c_werror_flag"
2870                          || test ! -s conftest.err'
2871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872   (eval $ac_try) 2>&5
2873   ac_status=$?
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); }; } &&
2876          { ac_try='test -s conftest.$ac_objext'
2877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878   (eval $ac_try) 2>&5
2879   ac_status=$?
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); }; }; then
2882   for ac_declaration in \
2883    '' \
2884    'extern "C" void std::exit (int) throw (); using std::exit;' \
2885    'extern "C" void std::exit (int); using std::exit;' \
2886    'extern "C" void exit (int) throw ();' \
2887    'extern "C" void exit (int);' \
2888    'void exit (int);'
2889 do
2890   cat >conftest.$ac_ext <<_ACEOF
2891 /* confdefs.h.  */
2892 _ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h.  */
2896 $ac_declaration
2897 #include <stdlib.h>
2898 int
2899 main ()
2900 {
2901 exit (42);
2902   ;
2903   return 0;
2904 }
2905 _ACEOF
2906 rm -f conftest.$ac_objext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2908   (eval $ac_compile) 2>conftest.er1
2909   ac_status=$?
2910   grep -v '^ *+' conftest.er1 >conftest.err
2911   rm -f conftest.er1
2912   cat conftest.err >&5
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); } &&
2915          { ac_try='test -z "$ac_c_werror_flag"
2916                          || test ! -s conftest.err'
2917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918   (eval $ac_try) 2>&5
2919   ac_status=$?
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); }; } &&
2922          { ac_try='test -s conftest.$ac_objext'
2923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924   (eval $ac_try) 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }; }; then
2928   :
2929 else
2930   echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2932
2933 continue
2934 fi
2935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2936   cat >conftest.$ac_ext <<_ACEOF
2937 /* confdefs.h.  */
2938 _ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h.  */
2942 $ac_declaration
2943 int
2944 main ()
2945 {
2946 exit (42);
2947   ;
2948   return 0;
2949 }
2950 _ACEOF
2951 rm -f conftest.$ac_objext
2952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2953   (eval $ac_compile) 2>conftest.er1
2954   ac_status=$?
2955   grep -v '^ *+' conftest.er1 >conftest.err
2956   rm -f conftest.er1
2957   cat conftest.err >&5
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); } &&
2960          { ac_try='test -z "$ac_c_werror_flag"
2961                          || test ! -s conftest.err'
2962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2963   (eval $ac_try) 2>&5
2964   ac_status=$?
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); }; } &&
2967          { ac_try='test -s conftest.$ac_objext'
2968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969   (eval $ac_try) 2>&5
2970   ac_status=$?
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); }; }; then
2973   break
2974 else
2975   echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2977
2978 fi
2979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2980 done
2981 rm -f conftest*
2982 if test -n "$ac_declaration"; then
2983   echo '#ifdef __cplusplus' >>confdefs.h
2984   echo $ac_declaration      >>confdefs.h
2985   echo '#endif'             >>confdefs.h
2986 fi
2987
2988 else
2989   echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2991
2992 fi
2993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2994 ac_ext=c
2995 ac_cpp='$CPP $CPPFLAGS'
2996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999
3000 if test "$GCC" != "yes"
3001 then
3002         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3003 echo "$as_me: error: gcc required but not found" >&2;}
3004    { (exit 1); exit 1; }; }
3005 fi
3006 ac_ext=c
3007 ac_cpp='$CPP $CPPFLAGS'
3008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3011 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3012 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3013 # On Suns, sometimes $CPP names a directory.
3014 if test -n "$CPP" && test -d "$CPP"; then
3015   CPP=
3016 fi
3017 if test -z "$CPP"; then
3018   if test "${ac_cv_prog_CPP+set}" = set; then
3019   echo $ECHO_N "(cached) $ECHO_C" >&6
3020 else
3021       # Double quotes because CPP needs to be expanded
3022     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3023     do
3024       ac_preproc_ok=false
3025 for ac_c_preproc_warn_flag in '' yes
3026 do
3027   # Use a header file that comes with gcc, so configuring glibc
3028   # with a fresh cross-compiler works.
3029   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3030   # <limits.h> exists even on freestanding compilers.
3031   # On the NeXT, cc -E runs the code through the compiler's parser,
3032   # not just through cpp. "Syntax error" is here to catch this case.
3033   cat >conftest.$ac_ext <<_ACEOF
3034 /* confdefs.h.  */
3035 _ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h.  */
3039 #ifdef __STDC__
3040 # include <limits.h>
3041 #else
3042 # include <assert.h>
3043 #endif
3044                      Syntax error
3045 _ACEOF
3046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3047   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3048   ac_status=$?
3049   grep -v '^ *+' conftest.er1 >conftest.err
3050   rm -f conftest.er1
3051   cat conftest.err >&5
3052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053   (exit $ac_status); } >/dev/null; then
3054   if test -s conftest.err; then
3055     ac_cpp_err=$ac_c_preproc_warn_flag
3056     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3057   else
3058     ac_cpp_err=
3059   fi
3060 else
3061   ac_cpp_err=yes
3062 fi
3063 if test -z "$ac_cpp_err"; then
3064   :
3065 else
3066   echo "$as_me: failed program was:" >&5
3067 sed 's/^/| /' conftest.$ac_ext >&5
3068
3069   # Broken: fails on valid input.
3070 continue
3071 fi
3072 rm -f conftest.err conftest.$ac_ext
3073
3074   # OK, works on sane cases.  Now check whether non-existent headers
3075   # can be detected and how.
3076   cat >conftest.$ac_ext <<_ACEOF
3077 /* confdefs.h.  */
3078 _ACEOF
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h.  */
3082 #include <ac_nonexistent.h>
3083 _ACEOF
3084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3085   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3086   ac_status=$?
3087   grep -v '^ *+' conftest.er1 >conftest.err
3088   rm -f conftest.er1
3089   cat conftest.err >&5
3090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091   (exit $ac_status); } >/dev/null; then
3092   if test -s conftest.err; then
3093     ac_cpp_err=$ac_c_preproc_warn_flag
3094     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3095   else
3096     ac_cpp_err=
3097   fi
3098 else
3099   ac_cpp_err=yes
3100 fi
3101 if test -z "$ac_cpp_err"; then
3102   # Broken: success on invalid input.
3103 continue
3104 else
3105   echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3107
3108   # Passes both tests.
3109 ac_preproc_ok=:
3110 break
3111 fi
3112 rm -f conftest.err conftest.$ac_ext
3113
3114 done
3115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3116 rm -f conftest.err conftest.$ac_ext
3117 if $ac_preproc_ok; then
3118   break
3119 fi
3120
3121     done
3122     ac_cv_prog_CPP=$CPP
3123
3124 fi
3125   CPP=$ac_cv_prog_CPP
3126 else
3127   ac_cv_prog_CPP=$CPP
3128 fi
3129 echo "$as_me:$LINENO: result: $CPP" >&5
3130 echo "${ECHO_T}$CPP" >&6
3131 ac_preproc_ok=false
3132 for ac_c_preproc_warn_flag in '' yes
3133 do
3134   # Use a header file that comes with gcc, so configuring glibc
3135   # with a fresh cross-compiler works.
3136   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3137   # <limits.h> exists even on freestanding compilers.
3138   # On the NeXT, cc -E runs the code through the compiler's parser,
3139   # not just through cpp. "Syntax error" is here to catch this case.
3140   cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h.  */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h.  */
3146 #ifdef __STDC__
3147 # include <limits.h>
3148 #else
3149 # include <assert.h>
3150 #endif
3151                      Syntax error
3152 _ACEOF
3153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3154   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3155   ac_status=$?
3156   grep -v '^ *+' conftest.er1 >conftest.err
3157   rm -f conftest.er1
3158   cat conftest.err >&5
3159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160   (exit $ac_status); } >/dev/null; then
3161   if test -s conftest.err; then
3162     ac_cpp_err=$ac_c_preproc_warn_flag
3163     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3164   else
3165     ac_cpp_err=
3166   fi
3167 else
3168   ac_cpp_err=yes
3169 fi
3170 if test -z "$ac_cpp_err"; then
3171   :
3172 else
3173   echo "$as_me: failed program was:" >&5
3174 sed 's/^/| /' conftest.$ac_ext >&5
3175
3176   # Broken: fails on valid input.
3177 continue
3178 fi
3179 rm -f conftest.err conftest.$ac_ext
3180
3181   # OK, works on sane cases.  Now check whether non-existent headers
3182   # can be detected and how.
3183   cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h.  */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h.  */
3189 #include <ac_nonexistent.h>
3190 _ACEOF
3191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3192   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3193   ac_status=$?
3194   grep -v '^ *+' conftest.er1 >conftest.err
3195   rm -f conftest.er1
3196   cat conftest.err >&5
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); } >/dev/null; then
3199   if test -s conftest.err; then
3200     ac_cpp_err=$ac_c_preproc_warn_flag
3201     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3202   else
3203     ac_cpp_err=
3204   fi
3205 else
3206   ac_cpp_err=yes
3207 fi
3208 if test -z "$ac_cpp_err"; then
3209   # Broken: success on invalid input.
3210 continue
3211 else
3212   echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3214
3215   # Passes both tests.
3216 ac_preproc_ok=:
3217 break
3218 fi
3219 rm -f conftest.err conftest.$ac_ext
3220
3221 done
3222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3223 rm -f conftest.err conftest.$ac_ext
3224 if $ac_preproc_ok; then
3225   :
3226 else
3227   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3228 See \`config.log' for more details." >&5
3229 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3230 See \`config.log' for more details." >&2;}
3231    { (exit 1); exit 1; }; }
3232 fi
3233
3234 ac_ext=c
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239
3240 if test "$GXX" != "yes"
3241 then
3242         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3243 echo "$as_me: error: g++ required but not found" >&2;}
3244    { (exit 1); exit 1; }; }
3245 fi
3246
3247 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3248 if test "$gccmajor" -lt "3"
3249 then
3250         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3251 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3252    { (exit 1); exit 1; }; }
3253 fi
3254
3255  echo "$as_me:$LINENO: checking for GNU make" >&5
3256 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3257 if test "${_cv_gnu_make_command+set}" = set; then
3258   echo $ECHO_N "(cached) $ECHO_C" >&6
3259 else
3260   _cv_gnu_make_command='' ;
3261                 for a in "$MAKE" make gmake gnumake ; do
3262                         if test -z "$a" ; then continue ; fi ;
3263                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3264                                 _cv_gnu_make_command=$a ;
3265                                 break;
3266                         fi
3267                 done ;
3268
3269 fi
3270 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3271 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3272         if test  "x$_cv_gnu_make_command" != "x"  ; then
3273                 ifGNUmake='' ;
3274         else
3275                 ifGNUmake='#' ;
3276                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3277 echo "${ECHO_T}\"Not found\"" >&6;
3278         fi
3279
3280
3281 if test -z "$_cv_gnu_make_command"
3282 then
3283         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3284 echo "$as_me: error: GNU Make required but not found" >&2;}
3285    { (exit 1); exit 1; }; }
3286 fi
3287
3288
3289 echo "$as_me:$LINENO: checking " >&5
3290 echo $ECHO_N "checking ... $ECHO_C" >&6
3291 if test "${ac_cv_has_flex+set}" = set; then
3292   echo $ECHO_N "(cached) $ECHO_C" >&6
3293 else
3294   for ac_prog in flex lex
3295 do
3296   # Extract the first word of "$ac_prog", so it can be a program name with args.
3297 set dummy $ac_prog; ac_word=$2
3298 echo "$as_me:$LINENO: checking for $ac_word" >&5
3299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3300 if test "${ac_cv_prog_LEX+set}" = set; then
3301   echo $ECHO_N "(cached) $ECHO_C" >&6
3302 else
3303   if test -n "$LEX"; then
3304   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3305 else
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3308 do
3309   IFS=$as_save_IFS
3310   test -z "$as_dir" && as_dir=.
3311   for ac_exec_ext in '' $ac_executable_extensions; do
3312   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313     ac_cv_prog_LEX="$ac_prog"
3314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315     break 2
3316   fi
3317 done
3318 done
3319
3320 fi
3321 fi
3322 LEX=$ac_cv_prog_LEX
3323 if test -n "$LEX"; then
3324   echo "$as_me:$LINENO: result: $LEX" >&5
3325 echo "${ECHO_T}$LEX" >&6
3326 else
3327   echo "$as_me:$LINENO: result: no" >&5
3328 echo "${ECHO_T}no" >&6
3329 fi
3330
3331   test -n "$LEX" && break
3332 done
3333 test -n "$LEX" || LEX=":"
3334
3335 if test -z "$LEXLIB"
3336 then
3337   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3338 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3339 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3340   echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342   ac_check_lib_save_LIBS=$LIBS
3343 LIBS="-lfl  $LIBS"
3344 cat >conftest.$ac_ext <<_ACEOF
3345 /* confdefs.h.  */
3346 _ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h.  */
3350
3351 /* Override any gcc2 internal prototype to avoid an error.  */
3352 #ifdef __cplusplus
3353 extern "C"
3354 #endif
3355 /* We use char because int might match the return type of a gcc2
3356    builtin and then its argument prototype would still apply.  */
3357 char yywrap ();
3358 int
3359 main ()
3360 {
3361 yywrap ();
3362   ;
3363   return 0;
3364 }
3365 _ACEOF
3366 rm -f conftest.$ac_objext conftest$ac_exeext
3367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3368   (eval $ac_link) 2>conftest.er1
3369   ac_status=$?
3370   grep -v '^ *+' conftest.er1 >conftest.err
3371   rm -f conftest.er1
3372   cat conftest.err >&5
3373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374   (exit $ac_status); } &&
3375          { ac_try='test -z "$ac_c_werror_flag"
3376                          || test ! -s conftest.err'
3377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378   (eval $ac_try) 2>&5
3379   ac_status=$?
3380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381   (exit $ac_status); }; } &&
3382          { ac_try='test -s conftest$ac_exeext'
3383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384   (eval $ac_try) 2>&5
3385   ac_status=$?
3386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387   (exit $ac_status); }; }; then
3388   ac_cv_lib_fl_yywrap=yes
3389 else
3390   echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3392
3393 ac_cv_lib_fl_yywrap=no
3394 fi
3395 rm -f conftest.err conftest.$ac_objext \
3396       conftest$ac_exeext conftest.$ac_ext
3397 LIBS=$ac_check_lib_save_LIBS
3398 fi
3399 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3400 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3401 if test $ac_cv_lib_fl_yywrap = yes; then
3402   LEXLIB="-lfl"
3403 else
3404   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3405 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3406 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3407   echo $ECHO_N "(cached) $ECHO_C" >&6
3408 else
3409   ac_check_lib_save_LIBS=$LIBS
3410 LIBS="-ll  $LIBS"
3411 cat >conftest.$ac_ext <<_ACEOF
3412 /* confdefs.h.  */
3413 _ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h.  */
3417
3418 /* Override any gcc2 internal prototype to avoid an error.  */
3419 #ifdef __cplusplus
3420 extern "C"
3421 #endif
3422 /* We use char because int might match the return type of a gcc2
3423    builtin and then its argument prototype would still apply.  */
3424 char yywrap ();
3425 int
3426 main ()
3427 {
3428 yywrap ();
3429   ;
3430   return 0;
3431 }
3432 _ACEOF
3433 rm -f conftest.$ac_objext conftest$ac_exeext
3434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3435   (eval $ac_link) 2>conftest.er1
3436   ac_status=$?
3437   grep -v '^ *+' conftest.er1 >conftest.err
3438   rm -f conftest.er1
3439   cat conftest.err >&5
3440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441   (exit $ac_status); } &&
3442          { ac_try='test -z "$ac_c_werror_flag"
3443                          || test ! -s conftest.err'
3444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445   (eval $ac_try) 2>&5
3446   ac_status=$?
3447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448   (exit $ac_status); }; } &&
3449          { ac_try='test -s conftest$ac_exeext'
3450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451   (eval $ac_try) 2>&5
3452   ac_status=$?
3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); }; }; then
3455   ac_cv_lib_l_yywrap=yes
3456 else
3457   echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3459
3460 ac_cv_lib_l_yywrap=no
3461 fi
3462 rm -f conftest.err conftest.$ac_objext \
3463       conftest$ac_exeext conftest.$ac_ext
3464 LIBS=$ac_check_lib_save_LIBS
3465 fi
3466 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3467 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3468 if test $ac_cv_lib_l_yywrap = yes; then
3469   LEXLIB="-ll"
3470 fi
3471
3472 fi
3473
3474 fi
3475
3476 if test "x$LEX" != "x:"; then
3477   echo "$as_me:$LINENO: checking lex output file root" >&5
3478 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3479 if test "${ac_cv_prog_lex_root+set}" = set; then
3480   echo $ECHO_N "(cached) $ECHO_C" >&6
3481 else
3482   # The minimal lex program is just a single line: %%.  But some broken lexes
3483 # (Solaris, I think it was) want two %% lines, so accommodate them.
3484 cat >conftest.l <<_ACEOF
3485 %%
3486 %%
3487 _ACEOF
3488 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3489   (eval $LEX conftest.l) 2>&5
3490   ac_status=$?
3491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492   (exit $ac_status); }
3493 if test -f lex.yy.c; then
3494   ac_cv_prog_lex_root=lex.yy
3495 elif test -f lexyy.c; then
3496   ac_cv_prog_lex_root=lexyy
3497 else
3498   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3499 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3500    { (exit 1); exit 1; }; }
3501 fi
3502 fi
3503 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3504 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3505 rm -f conftest.l
3506 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3507
3508 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3509 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3510 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3511   echo $ECHO_N "(cached) $ECHO_C" >&6
3512 else
3513   # POSIX says lex can declare yytext either as a pointer or an array; the
3514 # default is implementation-dependent. Figure out which it is, since
3515 # not all implementations provide the %pointer and %array declarations.
3516 ac_cv_prog_lex_yytext_pointer=no
3517 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3518 ac_save_LIBS=$LIBS
3519 LIBS="$LIBS $LEXLIB"
3520 cat >conftest.$ac_ext <<_ACEOF
3521 `cat $LEX_OUTPUT_ROOT.c`
3522 _ACEOF
3523 rm -f conftest.$ac_objext conftest$ac_exeext
3524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3525   (eval $ac_link) 2>conftest.er1
3526   ac_status=$?
3527   grep -v '^ *+' conftest.er1 >conftest.err
3528   rm -f conftest.er1
3529   cat conftest.err >&5
3530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); } &&
3532          { ac_try='test -z "$ac_c_werror_flag"
3533                          || test ! -s conftest.err'
3534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535   (eval $ac_try) 2>&5
3536   ac_status=$?
3537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538   (exit $ac_status); }; } &&
3539          { ac_try='test -s conftest$ac_exeext'
3540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541   (eval $ac_try) 2>&5
3542   ac_status=$?
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); }; }; then
3545   ac_cv_prog_lex_yytext_pointer=yes
3546 else
3547   echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3549
3550 fi
3551 rm -f conftest.err conftest.$ac_objext \
3552       conftest$ac_exeext conftest.$ac_ext
3553 LIBS=$ac_save_LIBS
3554 rm -f "${LEX_OUTPUT_ROOT}.c"
3555
3556 fi
3557 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3558 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3559 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3560
3561 cat >>confdefs.h <<\_ACEOF
3562 #define YYTEXT_POINTER 1
3563 _ACEOF
3564
3565 fi
3566
3567 fi
3568
3569 fi
3570 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3571 echo "${ECHO_T}$ac_cv_has_flex" >&6
3572 if test "$LEX" != "flex"; then
3573   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3574 echo "$as_me: error: flex not found but required" >&2;}
3575    { (exit 1); exit 1; }; }
3576 else
3577   FLEX=flex
3578
3579 fi
3580
3581 echo "$as_me:$LINENO: checking " >&5
3582 echo $ECHO_N "checking ... $ECHO_C" >&6
3583 if test "${ac_cv_has_bison+set}" = set; then
3584   echo $ECHO_N "(cached) $ECHO_C" >&6
3585 else
3586   for ac_prog in 'bison -y' byacc
3587 do
3588   # Extract the first word of "$ac_prog", so it can be a program name with args.
3589 set dummy $ac_prog; ac_word=$2
3590 echo "$as_me:$LINENO: checking for $ac_word" >&5
3591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3592 if test "${ac_cv_prog_YACC+set}" = set; then
3593   echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595   if test -n "$YACC"; then
3596   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601   IFS=$as_save_IFS
3602   test -z "$as_dir" && as_dir=.
3603   for ac_exec_ext in '' $ac_executable_extensions; do
3604   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605     ac_cv_prog_YACC="$ac_prog"
3606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3607     break 2
3608   fi
3609 done
3610 done
3611
3612 fi
3613 fi
3614 YACC=$ac_cv_prog_YACC
3615 if test -n "$YACC"; then
3616   echo "$as_me:$LINENO: result: $YACC" >&5
3617 echo "${ECHO_T}$YACC" >&6
3618 else
3619   echo "$as_me:$LINENO: result: no" >&5
3620 echo "${ECHO_T}no" >&6
3621 fi
3622
3623   test -n "$YACC" && break
3624 done
3625 test -n "$YACC" || YACC="yacc"
3626
3627
3628 fi
3629 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3630 echo "${ECHO_T}$ac_cv_has_bison" >&6
3631 if test "$YACC" != "bison -y"; then
3632   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3633 echo "$as_me: error: bison not found but required" >&2;}
3634    { (exit 1); exit 1; }; }
3635 else
3636   BISON=bison
3637
3638 fi
3639
3640 # Check whether --enable-shared or --disable-shared was given.
3641 if test "${enable_shared+set}" = set; then
3642   enableval="$enable_shared"
3643   p=${PACKAGE-default}
3644     case $enableval in
3645     yes) enable_shared=yes ;;
3646     no) enable_shared=no ;;
3647     *)
3648       enable_shared=no
3649       # Look at the argument we got.  We use all the common list separators.
3650       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3651       for pkg in $enableval; do
3652         IFS="$lt_save_ifs"
3653         if test "X$pkg" = "X$p"; then
3654           enable_shared=yes
3655         fi
3656       done
3657       IFS="$lt_save_ifs"
3658       ;;
3659     esac
3660 else
3661   enable_shared=yes
3662 fi;
3663
3664 # Check whether --enable-static or --disable-static was given.
3665 if test "${enable_static+set}" = set; then
3666   enableval="$enable_static"
3667   p=${PACKAGE-default}
3668     case $enableval in
3669     yes) enable_static=yes ;;
3670     no) enable_static=no ;;
3671     *)
3672      enable_static=no
3673       # Look at the argument we got.  We use all the common list separators.
3674       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3675       for pkg in $enableval; do
3676         IFS="$lt_save_ifs"
3677         if test "X$pkg" = "X$p"; then
3678           enable_static=yes
3679         fi
3680       done
3681       IFS="$lt_save_ifs"
3682       ;;
3683     esac
3684 else
3685   enable_static=yes
3686 fi;
3687
3688 # Check whether --enable-fast-install or --disable-fast-install was given.
3689 if test "${enable_fast_install+set}" = set; then
3690   enableval="$enable_fast_install"
3691   p=${PACKAGE-default}
3692     case $enableval in
3693     yes) enable_fast_install=yes ;;
3694     no) enable_fast_install=no ;;
3695     *)
3696       enable_fast_install=no
3697       # Look at the argument we got.  We use all the common list separators.
3698       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3699       for pkg in $enableval; do
3700         IFS="$lt_save_ifs"
3701         if test "X$pkg" = "X$p"; then
3702           enable_fast_install=yes
3703         fi
3704       done
3705       IFS="$lt_save_ifs"
3706       ;;
3707     esac
3708 else
3709   enable_fast_install=yes
3710 fi;
3711
3712 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3713 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3714 if test "${lt_cv_path_SED+set}" = set; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717   # Loop through the user's path and test for sed and gsed.
3718 # Then use that list of sed's as ones to test for truncation.
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH
3721 do
3722   IFS=$as_save_IFS
3723   test -z "$as_dir" && as_dir=.
3724   for lt_ac_prog in sed gsed; do
3725     for ac_exec_ext in '' $ac_executable_extensions; do
3726       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3727         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3728       fi
3729     done
3730   done
3731 done
3732 lt_ac_max=0
3733 lt_ac_count=0
3734 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3735 # along with /bin/sed that truncates output.
3736 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3737   test ! -f $lt_ac_sed && break
3738   cat /dev/null > conftest.in
3739   lt_ac_count=0
3740   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3741   # Check for GNU sed and select it if it is found.
3742   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3743     lt_cv_path_SED=$lt_ac_sed
3744     break
3745   fi
3746   while true; do
3747     cat conftest.in conftest.in >conftest.tmp
3748     mv conftest.tmp conftest.in
3749     cp conftest.in conftest.nl
3750     echo >>conftest.nl
3751     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3752     cmp -s conftest.out conftest.nl || break
3753     # 10000 chars as input seems more than enough
3754     test $lt_ac_count -gt 10 && break
3755     lt_ac_count=`expr $lt_ac_count + 1`
3756     if test $lt_ac_count -gt $lt_ac_max; then
3757       lt_ac_max=$lt_ac_count
3758       lt_cv_path_SED=$lt_ac_sed
3759     fi
3760   done
3761 done
3762
3763 fi
3764
3765 SED=$lt_cv_path_SED
3766 echo "$as_me:$LINENO: result: $SED" >&5
3767 echo "${ECHO_T}$SED" >&6
3768
3769 echo "$as_me:$LINENO: checking for egrep" >&5
3770 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3771 if test "${ac_cv_prog_egrep+set}" = set; then
3772   echo $ECHO_N "(cached) $ECHO_C" >&6
3773 else
3774   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3775     then ac_cv_prog_egrep='grep -E'
3776     else ac_cv_prog_egrep='egrep'
3777     fi
3778 fi
3779 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3780 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3781  EGREP=$ac_cv_prog_egrep
3782
3783
3784
3785 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3786 if test "${with_gnu_ld+set}" = set; then
3787   withval="$with_gnu_ld"
3788   test "$withval" = no || with_gnu_ld=yes
3789 else
3790   with_gnu_ld=no
3791 fi;
3792 ac_prog=ld
3793 if test "$GCC" = yes; then
3794   # Check if gcc -print-prog-name=ld gives a path.
3795   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3796 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3797   case $host in
3798   *-*-mingw*)
3799     # gcc leaves a trailing carriage return which upsets mingw
3800     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3801   *)
3802     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3803   esac
3804   case $ac_prog in
3805     # Accept absolute paths.
3806     [\\/]* | ?:[\\/]*)
3807       re_direlt='/[^/][^/]*/\.\./'
3808       # Canonicalize the pathname of ld
3809       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3810       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3811         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3812       done
3813       test -z "$LD" && LD="$ac_prog"
3814       ;;
3815   "")
3816     # If it fails, then pretend we aren't using GCC.
3817     ac_prog=ld
3818     ;;
3819   *)
3820     # If it is relative, then search for the first ld in PATH.
3821     with_gnu_ld=unknown
3822     ;;
3823   esac
3824 elif test "$with_gnu_ld" = yes; then
3825   echo "$as_me:$LINENO: checking for GNU ld" >&5
3826 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3827 else
3828   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3829 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3830 fi
3831 if test "${lt_cv_path_LD+set}" = set; then
3832   echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834   if test -z "$LD"; then
3835   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3836   for ac_dir in $PATH; do
3837     IFS="$lt_save_ifs"
3838     test -z "$ac_dir" && ac_dir=.
3839     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3840       lt_cv_path_LD="$ac_dir/$ac_prog"
3841       # Check to see if the program is GNU ld.  I'd rather use --version,
3842       # but apparently some GNU ld's only accept -v.
3843       # Break only if it was the GNU/non-GNU ld that we prefer.
3844       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3845       *GNU* | *'with BFD'*)
3846         test "$with_gnu_ld" != no && break
3847         ;;
3848       *)
3849         test "$with_gnu_ld" != yes && break
3850         ;;
3851       esac
3852     fi
3853   done
3854   IFS="$lt_save_ifs"
3855 else
3856   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3857 fi
3858 fi
3859
3860 LD="$lt_cv_path_LD"
3861 if test -n "$LD"; then
3862   echo "$as_me:$LINENO: result: $LD" >&5
3863 echo "${ECHO_T}$LD" >&6
3864 else
3865   echo "$as_me:$LINENO: result: no" >&5
3866 echo "${ECHO_T}no" >&6
3867 fi
3868 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3869 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3870    { (exit 1); exit 1; }; }
3871 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3872 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3873 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3874   echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3877 case `$LD -v 2>&1 </dev/null` in
3878 *GNU* | *'with BFD'*)
3879   lt_cv_prog_gnu_ld=yes
3880   ;;
3881 *)
3882   lt_cv_prog_gnu_ld=no
3883   ;;
3884 esac
3885 fi
3886 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3887 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3888 with_gnu_ld=$lt_cv_prog_gnu_ld
3889
3890
3891 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3892 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3893 if test "${lt_cv_ld_reload_flag+set}" = set; then
3894   echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896   lt_cv_ld_reload_flag='-r'
3897 fi
3898 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3899 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3900 reload_flag=$lt_cv_ld_reload_flag
3901 case $reload_flag in
3902 "" | " "*) ;;
3903 *) reload_flag=" $reload_flag" ;;
3904 esac
3905 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3906 case $host_os in
3907   darwin*)
3908     if test "$GCC" = yes; then
3909       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3910     else
3911       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3912     fi
3913     ;;
3914 esac
3915
3916 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3917 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3918 if test "${lt_cv_path_NM+set}" = set; then
3919   echo $ECHO_N "(cached) $ECHO_C" >&6
3920 else
3921   if test -n "$NM"; then
3922   # Let the user override the test.
3923   lt_cv_path_NM="$NM"
3924 else
3925   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3926   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3927     IFS="$lt_save_ifs"
3928     test -z "$ac_dir" && ac_dir=.
3929     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3930     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3931       # Check to see if the nm accepts a BSD-compat flag.
3932       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3933       #   nm: unknown option "B" ignored
3934       # Tru64's nm complains that /dev/null is an invalid object file
3935       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3936       */dev/null* | *'Invalid file or object type'*)
3937         lt_cv_path_NM="$tmp_nm -B"
3938         break
3939         ;;
3940       *)
3941         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3942         */dev/null*)
3943           lt_cv_path_NM="$tmp_nm -p"
3944           break
3945           ;;
3946         *)
3947           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3948           continue # so that we can try to find one that supports BSD flags
3949           ;;
3950         esac
3951       esac
3952     fi
3953   done
3954   IFS="$lt_save_ifs"
3955   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3956 fi
3957 fi
3958 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3959 echo "${ECHO_T}$lt_cv_path_NM" >&6
3960 NM="$lt_cv_path_NM"
3961
3962 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3963 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3964 LN_S=$as_ln_s
3965 if test "$LN_S" = "ln -s"; then
3966   echo "$as_me:$LINENO: result: yes" >&5
3967 echo "${ECHO_T}yes" >&6
3968 else
3969   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3970 echo "${ECHO_T}no, using $LN_S" >&6
3971 fi
3972
3973 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3974 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3975 if test "${lt_cv_deplibs_check_method+set}" = set; then
3976   echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978   lt_cv_file_magic_cmd='$MAGIC_CMD'
3979 lt_cv_file_magic_test_file=
3980 lt_cv_deplibs_check_method='unknown'
3981 # Need to set the preceding variable on all platforms that support
3982 # interlibrary dependencies.
3983 # 'none' -- dependencies not supported.
3984 # `unknown' -- same as none, but documents that we really don't know.
3985 # 'pass_all' -- all dependencies passed with no checks.
3986 # 'test_compile' -- check by making test program.
3987 # 'file_magic [[regex]]' -- check by looking for files in library path
3988 # which responds to the $file_magic_cmd with a given extended regex.
3989 # If you have `file' or equivalent on your system and you're not sure
3990 # whether `pass_all' will *always* work, you probably want this one.
3991
3992 case $host_os in
3993 aix4* | aix5*)
3994   lt_cv_deplibs_check_method=pass_all
3995   ;;
3996
3997 beos*)
3998   lt_cv_deplibs_check_method=pass_all
3999   ;;
4000
4001 bsdi[45]*)
4002   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4003   lt_cv_file_magic_cmd='/usr/bin/file -L'
4004   lt_cv_file_magic_test_file=/shlib/libc.so
4005   ;;
4006
4007 cygwin*)
4008   # func_win32_libid is a shell function defined in ltmain.sh
4009   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4010   lt_cv_file_magic_cmd='func_win32_libid'
4011   ;;
4012
4013 mingw* | pw32*)
4014   # Base MSYS/MinGW do not provide the 'file' command needed by
4015   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4016   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4017   lt_cv_file_magic_cmd='$OBJDUMP -f'
4018   ;;
4019
4020 darwin* | rhapsody*)
4021   lt_cv_deplibs_check_method=pass_all
4022   ;;
4023
4024 freebsd* | kfreebsd*-gnu)
4025   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4026     case $host_cpu in
4027     i*86 )
4028       # Not sure whether the presence of OpenBSD here was a mistake.
4029       # Let's accept both of them until this is cleared up.
4030       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4031       lt_cv_file_magic_cmd=/usr/bin/file
4032       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4033       ;;
4034     esac
4035   else
4036     lt_cv_deplibs_check_method=pass_all
4037   fi
4038   ;;
4039
4040 gnu*)
4041   lt_cv_deplibs_check_method=pass_all
4042   ;;
4043
4044 hpux10.20* | hpux11*)
4045   lt_cv_file_magic_cmd=/usr/bin/file
4046   case "$host_cpu" in
4047   ia64*)
4048     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4049     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4050     ;;
4051   hppa*64*)
4052     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]'
4053     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4054     ;;
4055   *)
4056     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4057     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4058     ;;
4059   esac
4060   ;;
4061
4062 irix5* | irix6* | nonstopux*)
4063   case $LD in
4064   *-32|*"-32 ") libmagic=32-bit;;
4065   *-n32|*"-n32 ") libmagic=N32;;
4066   *-64|*"-64 ") libmagic=64-bit;;
4067   *) libmagic=never-match;;
4068   esac
4069   lt_cv_deplibs_check_method=pass_all
4070   ;;
4071
4072 # This must be Linux ELF.
4073 linux*)
4074   lt_cv_deplibs_check_method=pass_all
4075   ;;
4076
4077 netbsd*)
4078   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4079     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4080   else
4081     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4082   fi
4083   ;;
4084
4085 newos6*)
4086   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4087   lt_cv_file_magic_cmd=/usr/bin/file
4088   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4089   ;;
4090
4091 nto-qnx*)
4092   lt_cv_deplibs_check_method=unknown
4093   ;;
4094
4095 openbsd*)
4096   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4097     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4098   else
4099     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4100   fi
4101   ;;
4102
4103 osf3* | osf4* | osf5*)
4104   lt_cv_deplibs_check_method=pass_all
4105   ;;
4106
4107 sco3.2v5*)
4108   lt_cv_deplibs_check_method=pass_all
4109   ;;
4110
4111 solaris*)
4112   lt_cv_deplibs_check_method=pass_all
4113   ;;
4114
4115 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4116   case $host_vendor in
4117   motorola)
4118     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]'
4119     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4120     ;;
4121   ncr)
4122     lt_cv_deplibs_check_method=pass_all
4123     ;;
4124   sequent)
4125     lt_cv_file_magic_cmd='/bin/file'
4126     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4127     ;;
4128   sni)
4129     lt_cv_file_magic_cmd='/bin/file'
4130     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4131     lt_cv_file_magic_test_file=/lib/libc.so
4132     ;;
4133   siemens)
4134     lt_cv_deplibs_check_method=pass_all
4135     ;;
4136   esac
4137   ;;
4138
4139 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4140   lt_cv_deplibs_check_method=pass_all
4141   ;;
4142 esac
4143
4144 fi
4145 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4146 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4147 file_magic_cmd=$lt_cv_file_magic_cmd
4148 deplibs_check_method=$lt_cv_deplibs_check_method
4149 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4150
4151
4152
4153
4154 # If no C compiler was specified, use CC.
4155 LTCC=${LTCC-"$CC"}
4156
4157 # Allow CC to be a program name with arguments.
4158 compiler=$CC
4159
4160 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4161 if test "${enable_libtool_lock+set}" = set; then
4162   enableval="$enable_libtool_lock"
4163
4164 fi;
4165 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4166
4167 # Some flags need to be propagated to the compiler or linker for good
4168 # libtool support.
4169 case $host in
4170 ia64-*-hpux*)
4171   # Find out which ABI we are using.
4172   echo 'int i;' > conftest.$ac_ext
4173   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4174   (eval $ac_compile) 2>&5
4175   ac_status=$?
4176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177   (exit $ac_status); }; then
4178     case `/usr/bin/file conftest.$ac_objext` in
4179     *ELF-32*)
4180       HPUX_IA64_MODE="32"
4181       ;;
4182     *ELF-64*)
4183       HPUX_IA64_MODE="64"
4184       ;;
4185     esac
4186   fi
4187   rm -rf conftest*
4188   ;;
4189 *-*-irix6*)
4190   # Find out which ABI we are using.
4191   echo '#line 4191 "configure"' > conftest.$ac_ext
4192   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4193   (eval $ac_compile) 2>&5
4194   ac_status=$?
4195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196   (exit $ac_status); }; then
4197    if test "$lt_cv_prog_gnu_ld" = yes; then
4198     case `/usr/bin/file conftest.$ac_objext` in
4199     *32-bit*)
4200       LD="${LD-ld} -melf32bsmip"
4201       ;;
4202     *N32*)
4203       LD="${LD-ld} -melf32bmipn32"
4204       ;;
4205     *64-bit*)
4206       LD="${LD-ld} -melf64bmip"
4207       ;;
4208     esac
4209    else
4210     case `/usr/bin/file conftest.$ac_objext` in
4211     *32-bit*)
4212       LD="${LD-ld} -32"
4213       ;;
4214     *N32*)
4215       LD="${LD-ld} -n32"
4216       ;;
4217     *64-bit*)
4218       LD="${LD-ld} -64"
4219       ;;
4220     esac
4221    fi
4222   fi
4223   rm -rf conftest*
4224   ;;
4225
4226 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4227   # Find out which ABI we are using.
4228   echo 'int i;' > conftest.$ac_ext
4229   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4230   (eval $ac_compile) 2>&5
4231   ac_status=$?
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); }; then
4234     case "`/usr/bin/file conftest.o`" in
4235     *32-bit*)
4236       case $host in
4237         x86_64-*linux*)
4238           LD="${LD-ld} -m elf_i386"
4239           ;;
4240         ppc64-*linux*|powerpc64-*linux*)
4241           LD="${LD-ld} -m elf32ppclinux"
4242           ;;
4243         s390x-*linux*)
4244           LD="${LD-ld} -m elf_s390"
4245           ;;
4246         sparc64-*linux*)
4247           LD="${LD-ld} -m elf32_sparc"
4248           ;;
4249       esac
4250       ;;
4251     *64-bit*)
4252       case $host in
4253         x86_64-*linux*)
4254           LD="${LD-ld} -m elf_x86_64"
4255           ;;
4256         ppc*-*linux*|powerpc*-*linux*)
4257           LD="${LD-ld} -m elf64ppc"
4258           ;;
4259         s390*-*linux*)
4260           LD="${LD-ld} -m elf64_s390"
4261           ;;
4262         sparc*-*linux*)
4263           LD="${LD-ld} -m elf64_sparc"
4264           ;;
4265       esac
4266       ;;
4267     esac
4268   fi
4269   rm -rf conftest*
4270   ;;
4271
4272 *-*-sco3.2v5*)
4273   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4274   SAVE_CFLAGS="$CFLAGS"
4275   CFLAGS="$CFLAGS -belf"
4276   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4277 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4278 if test "${lt_cv_cc_needs_belf+set}" = set; then
4279   echo $ECHO_N "(cached) $ECHO_C" >&6
4280 else
4281   ac_ext=c
4282 ac_cpp='$CPP $CPPFLAGS'
4283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4286
4287      cat >conftest.$ac_ext <<_ACEOF
4288 /* confdefs.h.  */
4289 _ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h.  */
4293
4294 _ACEOF
4295 rm -f conftest.$ac_objext conftest$ac_exeext
4296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4297   (eval $ac_link) 2>conftest.er1
4298   ac_status=$?
4299   grep -v '^ *+' conftest.er1 >conftest.err
4300   rm -f conftest.er1
4301   cat conftest.err >&5
4302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303   (exit $ac_status); } &&
4304          { ac_try='test -z "$ac_c_werror_flag"
4305                          || test ! -s conftest.err'
4306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307   (eval $ac_try) 2>&5
4308   ac_status=$?
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); }; } &&
4311          { ac_try='test -s conftest$ac_exeext'
4312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313   (eval $ac_try) 2>&5
4314   ac_status=$?
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); }; }; then
4317   lt_cv_cc_needs_belf=yes
4318 else
4319   echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4321
4322 lt_cv_cc_needs_belf=no
4323 fi
4324 rm -f conftest.err conftest.$ac_objext \
4325       conftest$ac_exeext conftest.$ac_ext
4326      ac_ext=c
4327 ac_cpp='$CPP $CPPFLAGS'
4328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331
4332 fi
4333 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4334 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4335   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4336     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4337     CFLAGS="$SAVE_CFLAGS"
4338   fi
4339   ;;
4340
4341 esac
4342
4343 need_locks="$enable_libtool_lock"
4344
4345
4346
4347 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4348 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4349 if test "${ac_cv_header_stdc+set}" = set; then
4350   echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352   cat >conftest.$ac_ext <<_ACEOF
4353 /* confdefs.h.  */
4354 _ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h.  */
4358 #include <stdlib.h>
4359 #include <stdarg.h>
4360 #include <string.h>
4361 #include <float.h>
4362
4363 int
4364 main ()
4365 {
4366
4367   ;
4368   return 0;
4369 }
4370 _ACEOF
4371 rm -f conftest.$ac_objext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373   (eval $ac_compile) 2>conftest.er1
4374   ac_status=$?
4375   grep -v '^ *+' conftest.er1 >conftest.err
4376   rm -f conftest.er1
4377   cat conftest.err >&5
4378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379   (exit $ac_status); } &&
4380          { ac_try='test -z "$ac_c_werror_flag"
4381                          || test ! -s conftest.err'
4382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4383   (eval $ac_try) 2>&5
4384   ac_status=$?
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); }; } &&
4387          { ac_try='test -s conftest.$ac_objext'
4388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389   (eval $ac_try) 2>&5
4390   ac_status=$?
4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392   (exit $ac_status); }; }; then
4393   ac_cv_header_stdc=yes
4394 else
4395   echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4397
4398 ac_cv_header_stdc=no
4399 fi
4400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4401
4402 if test $ac_cv_header_stdc = yes; then
4403   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4404   cat >conftest.$ac_ext <<_ACEOF
4405 /* confdefs.h.  */
4406 _ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h.  */
4410 #include <string.h>
4411
4412 _ACEOF
4413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4414   $EGREP "memchr" >/dev/null 2>&1; then
4415   :
4416 else
4417   ac_cv_header_stdc=no
4418 fi
4419 rm -f conftest*
4420
4421 fi
4422
4423 if test $ac_cv_header_stdc = yes; then
4424   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4425   cat >conftest.$ac_ext <<_ACEOF
4426 /* confdefs.h.  */
4427 _ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h.  */
4431 #include <stdlib.h>
4432
4433 _ACEOF
4434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4435   $EGREP "free" >/dev/null 2>&1; then
4436   :
4437 else
4438   ac_cv_header_stdc=no
4439 fi
4440 rm -f conftest*
4441
4442 fi
4443
4444 if test $ac_cv_header_stdc = yes; then
4445   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4446   if test "$cross_compiling" = yes; then
4447   :
4448 else
4449   cat >conftest.$ac_ext <<_ACEOF
4450 /* confdefs.h.  */
4451 _ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h.  */
4455 #include <ctype.h>
4456 #if ((' ' & 0x0FF) == 0x020)
4457 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4458 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4459 #else
4460 # define ISLOWER(c) \
4461                    (('a' <= (c) && (c) <= 'i') \
4462                      || ('j' <= (c) && (c) <= 'r') \
4463                      || ('s' <= (c) && (c) <= 'z'))
4464 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4465 #endif
4466
4467 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4468 int
4469 main ()
4470 {
4471   int i;
4472   for (i = 0; i < 256; i++)
4473     if (XOR (islower (i), ISLOWER (i))
4474         || toupper (i) != TOUPPER (i))
4475       exit(2);
4476   exit (0);
4477 }
4478 _ACEOF
4479 rm -f conftest$ac_exeext
4480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4481   (eval $ac_link) 2>&5
4482   ac_status=$?
4483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486   (eval $ac_try) 2>&5
4487   ac_status=$?
4488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489   (exit $ac_status); }; }; then
4490   :
4491 else
4492   echo "$as_me: program exited with status $ac_status" >&5
4493 echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4495
4496 ( exit $ac_status )
4497 ac_cv_header_stdc=no
4498 fi
4499 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4500 fi
4501 fi
4502 fi
4503 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4504 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4505 if test $ac_cv_header_stdc = yes; then
4506
4507 cat >>confdefs.h <<\_ACEOF
4508 #define STDC_HEADERS 1
4509 _ACEOF
4510
4511 fi
4512
4513 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4524                   inttypes.h stdint.h unistd.h
4525 do
4526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4527 echo "$as_me:$LINENO: checking for $ac_header" >&5
4528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4530   echo $ECHO_N "(cached) $ECHO_C" >&6
4531 else
4532   cat >conftest.$ac_ext <<_ACEOF
4533 /* confdefs.h.  */
4534 _ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h.  */
4538 $ac_includes_default
4539
4540 #include <$ac_header>
4541 _ACEOF
4542 rm -f conftest.$ac_objext
4543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4544   (eval $ac_compile) 2>conftest.er1
4545   ac_status=$?
4546   grep -v '^ *+' conftest.er1 >conftest.err
4547   rm -f conftest.er1
4548   cat conftest.err >&5
4549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550   (exit $ac_status); } &&
4551          { ac_try='test -z "$ac_c_werror_flag"
4552                          || test ! -s conftest.err'
4553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554   (eval $ac_try) 2>&5
4555   ac_status=$?
4556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); }; } &&
4558          { ac_try='test -s conftest.$ac_objext'
4559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560   (eval $ac_try) 2>&5
4561   ac_status=$?
4562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563   (exit $ac_status); }; }; then
4564   eval "$as_ac_Header=yes"
4565 else
4566   echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4568
4569 eval "$as_ac_Header=no"
4570 fi
4571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4572 fi
4573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4576   cat >>confdefs.h <<_ACEOF
4577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4578 _ACEOF
4579
4580 fi
4581
4582 done
4583
4584
4585
4586 for ac_header in dlfcn.h
4587 do
4588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4590   echo "$as_me:$LINENO: checking for $ac_header" >&5
4591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4592 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4593   echo $ECHO_N "(cached) $ECHO_C" >&6
4594 fi
4595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4597 else
4598   # Is the header compilable?
4599 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4601 cat >conftest.$ac_ext <<_ACEOF
4602 /* confdefs.h.  */
4603 _ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h.  */
4607 $ac_includes_default
4608 #include <$ac_header>
4609 _ACEOF
4610 rm -f conftest.$ac_objext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4612   (eval $ac_compile) 2>conftest.er1
4613   ac_status=$?
4614   grep -v '^ *+' conftest.er1 >conftest.err
4615   rm -f conftest.er1
4616   cat conftest.err >&5
4617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); } &&
4619          { ac_try='test -z "$ac_c_werror_flag"
4620                          || test ! -s conftest.err'
4621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622   (eval $ac_try) 2>&5
4623   ac_status=$?
4624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625   (exit $ac_status); }; } &&
4626          { ac_try='test -s conftest.$ac_objext'
4627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628   (eval $ac_try) 2>&5
4629   ac_status=$?
4630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); }; }; then
4632   ac_header_compiler=yes
4633 else
4634   echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4636
4637 ac_header_compiler=no
4638 fi
4639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4641 echo "${ECHO_T}$ac_header_compiler" >&6
4642
4643 # Is the header present?
4644 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4646 cat >conftest.$ac_ext <<_ACEOF
4647 /* confdefs.h.  */
4648 _ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h.  */
4652 #include <$ac_header>
4653 _ACEOF
4654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4655   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4656   ac_status=$?
4657   grep -v '^ *+' conftest.er1 >conftest.err
4658   rm -f conftest.er1
4659   cat conftest.err >&5
4660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661   (exit $ac_status); } >/dev/null; then
4662   if test -s conftest.err; then
4663     ac_cpp_err=$ac_c_preproc_warn_flag
4664     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4665   else
4666     ac_cpp_err=
4667   fi
4668 else
4669   ac_cpp_err=yes
4670 fi
4671 if test -z "$ac_cpp_err"; then
4672   ac_header_preproc=yes
4673 else
4674   echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.$ac_ext >&5
4676
4677   ac_header_preproc=no
4678 fi
4679 rm -f conftest.err conftest.$ac_ext
4680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4681 echo "${ECHO_T}$ac_header_preproc" >&6
4682
4683 # So?  What about this header?
4684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4685   yes:no: )
4686     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4688     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4690     ac_header_preproc=yes
4691     ;;
4692   no:yes:* )
4693     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4695     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4696 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4697     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4699     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4700 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4701     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4703     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4705     (
4706       cat <<\_ASBOX
4707 ## ----------------------------------- ##
4708 ## Report this to llvmbugs@cs.uiuc.edu ##
4709 ## ----------------------------------- ##
4710 _ASBOX
4711     ) |
4712       sed "s/^/$as_me: WARNING:     /" >&2
4713     ;;
4714 esac
4715 echo "$as_me:$LINENO: checking for $ac_header" >&5
4716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4718   echo $ECHO_N "(cached) $ECHO_C" >&6
4719 else
4720   eval "$as_ac_Header=\$ac_header_preproc"
4721 fi
4722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4724
4725 fi
4726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4727   cat >>confdefs.h <<_ACEOF
4728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4729 _ACEOF
4730
4731 fi
4732
4733 done
4734
4735
4736
4737 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4738     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4739     (test "X$CXX" != "Xg++"))) ; then
4740   ac_ext=cc
4741 ac_cpp='$CXXCPP $CPPFLAGS'
4742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4745 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4746 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4747 if test -z "$CXXCPP"; then
4748   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4749   echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4751       # Double quotes because CXXCPP needs to be expanded
4752     for CXXCPP in "$CXX -E" "/lib/cpp"
4753     do
4754       ac_preproc_ok=false
4755 for ac_cxx_preproc_warn_flag in '' yes
4756 do
4757   # Use a header file that comes with gcc, so configuring glibc
4758   # with a fresh cross-compiler works.
4759   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4760   # <limits.h> exists even on freestanding compilers.
4761   # On the NeXT, cc -E runs the code through the compiler's parser,
4762   # not just through cpp. "Syntax error" is here to catch this case.
4763   cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h.  */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h.  */
4769 #ifdef __STDC__
4770 # include <limits.h>
4771 #else
4772 # include <assert.h>
4773 #endif
4774                      Syntax error
4775 _ACEOF
4776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4777   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4778   ac_status=$?
4779   grep -v '^ *+' conftest.er1 >conftest.err
4780   rm -f conftest.er1
4781   cat conftest.err >&5
4782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783   (exit $ac_status); } >/dev/null; then
4784   if test -s conftest.err; then
4785     ac_cpp_err=$ac_cxx_preproc_warn_flag
4786     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4787   else
4788     ac_cpp_err=
4789   fi
4790 else
4791   ac_cpp_err=yes
4792 fi
4793 if test -z "$ac_cpp_err"; then
4794   :
4795 else
4796   echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4798
4799   # Broken: fails on valid input.
4800 continue
4801 fi
4802 rm -f conftest.err conftest.$ac_ext
4803
4804   # OK, works on sane cases.  Now check whether non-existent headers
4805   # can be detected and how.
4806   cat >conftest.$ac_ext <<_ACEOF
4807 /* confdefs.h.  */
4808 _ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h.  */
4812 #include <ac_nonexistent.h>
4813 _ACEOF
4814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4815   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4816   ac_status=$?
4817   grep -v '^ *+' conftest.er1 >conftest.err
4818   rm -f conftest.er1
4819   cat conftest.err >&5
4820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821   (exit $ac_status); } >/dev/null; then
4822   if test -s conftest.err; then
4823     ac_cpp_err=$ac_cxx_preproc_warn_flag
4824     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4825   else
4826     ac_cpp_err=
4827   fi
4828 else
4829   ac_cpp_err=yes
4830 fi
4831 if test -z "$ac_cpp_err"; then
4832   # Broken: success on invalid input.
4833 continue
4834 else
4835   echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4837
4838   # Passes both tests.
4839 ac_preproc_ok=:
4840 break
4841 fi
4842 rm -f conftest.err conftest.$ac_ext
4843
4844 done
4845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4846 rm -f conftest.err conftest.$ac_ext
4847 if $ac_preproc_ok; then
4848   break
4849 fi
4850
4851     done
4852     ac_cv_prog_CXXCPP=$CXXCPP
4853
4854 fi
4855   CXXCPP=$ac_cv_prog_CXXCPP
4856 else
4857   ac_cv_prog_CXXCPP=$CXXCPP
4858 fi
4859 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4860 echo "${ECHO_T}$CXXCPP" >&6
4861 ac_preproc_ok=false
4862 for ac_cxx_preproc_warn_flag in '' yes
4863 do
4864   # Use a header file that comes with gcc, so configuring glibc
4865   # with a fresh cross-compiler works.
4866   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4867   # <limits.h> exists even on freestanding compilers.
4868   # On the NeXT, cc -E runs the code through the compiler's parser,
4869   # not just through cpp. "Syntax error" is here to catch this case.
4870   cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h.  */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h.  */
4876 #ifdef __STDC__
4877 # include <limits.h>
4878 #else
4879 # include <assert.h>
4880 #endif
4881                      Syntax error
4882 _ACEOF
4883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4884   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4885   ac_status=$?
4886   grep -v '^ *+' conftest.er1 >conftest.err
4887   rm -f conftest.er1
4888   cat conftest.err >&5
4889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890   (exit $ac_status); } >/dev/null; then
4891   if test -s conftest.err; then
4892     ac_cpp_err=$ac_cxx_preproc_warn_flag
4893     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4894   else
4895     ac_cpp_err=
4896   fi
4897 else
4898   ac_cpp_err=yes
4899 fi
4900 if test -z "$ac_cpp_err"; then
4901   :
4902 else
4903   echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4905
4906   # Broken: fails on valid input.
4907 continue
4908 fi
4909 rm -f conftest.err conftest.$ac_ext
4910
4911   # OK, works on sane cases.  Now check whether non-existent headers
4912   # can be detected and how.
4913   cat >conftest.$ac_ext <<_ACEOF
4914 /* confdefs.h.  */
4915 _ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h.  */
4919 #include <ac_nonexistent.h>
4920 _ACEOF
4921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4922   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4923   ac_status=$?
4924   grep -v '^ *+' conftest.er1 >conftest.err
4925   rm -f conftest.er1
4926   cat conftest.err >&5
4927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928   (exit $ac_status); } >/dev/null; then
4929   if test -s conftest.err; then
4930     ac_cpp_err=$ac_cxx_preproc_warn_flag
4931     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4932   else
4933     ac_cpp_err=
4934   fi
4935 else
4936   ac_cpp_err=yes
4937 fi
4938 if test -z "$ac_cpp_err"; then
4939   # Broken: success on invalid input.
4940 continue
4941 else
4942   echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4944
4945   # Passes both tests.
4946 ac_preproc_ok=:
4947 break
4948 fi
4949 rm -f conftest.err conftest.$ac_ext
4950
4951 done
4952 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4953 rm -f conftest.err conftest.$ac_ext
4954 if $ac_preproc_ok; then
4955   :
4956 else
4957   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4958 See \`config.log' for more details." >&5
4959 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4960 See \`config.log' for more details." >&2;}
4961    { (exit 1); exit 1; }; }
4962 fi
4963
4964 ac_ext=cc
4965 ac_cpp='$CXXCPP $CPPFLAGS'
4966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4969
4970 fi
4971
4972
4973 ac_ext=f
4974 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4975 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4977 if test -n "$ac_tool_prefix"; then
4978   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4979   do
4980     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4982 echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4984 if test "${ac_cv_prog_F77+set}" = set; then
4985   echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987   if test -n "$F77"; then
4988   ac_cv_prog_F77="$F77" # Let the user override the test.
4989 else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4992 do
4993   IFS=$as_save_IFS
4994   test -z "$as_dir" && as_dir=.
4995   for ac_exec_ext in '' $ac_executable_extensions; do
4996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4997     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4999     break 2
5000   fi
5001 done
5002 done
5003
5004 fi
5005 fi
5006 F77=$ac_cv_prog_F77
5007 if test -n "$F77"; then
5008   echo "$as_me:$LINENO: result: $F77" >&5
5009 echo "${ECHO_T}$F77" >&6
5010 else
5011   echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6
5013 fi
5014
5015     test -n "$F77" && break
5016   done
5017 fi
5018 if test -z "$F77"; then
5019   ac_ct_F77=$F77
5020   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5021 do
5022   # Extract the first word of "$ac_prog", so it can be a program name with args.
5023 set dummy $ac_prog; ac_word=$2
5024 echo "$as_me:$LINENO: checking for $ac_word" >&5
5025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5026 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5027   echo $ECHO_N "(cached) $ECHO_C" >&6
5028 else
5029   if test -n "$ac_ct_F77"; then
5030   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5031 else
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5034 do
5035   IFS=$as_save_IFS
5036   test -z "$as_dir" && as_dir=.
5037   for ac_exec_ext in '' $ac_executable_extensions; do
5038   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039     ac_cv_prog_ac_ct_F77="$ac_prog"
5040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5041     break 2
5042   fi
5043 done
5044 done
5045
5046 fi
5047 fi
5048 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5049 if test -n "$ac_ct_F77"; then
5050   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5051 echo "${ECHO_T}$ac_ct_F77" >&6
5052 else
5053   echo "$as_me:$LINENO: result: no" >&5
5054 echo "${ECHO_T}no" >&6
5055 fi
5056
5057   test -n "$ac_ct_F77" && break
5058 done
5059
5060   F77=$ac_ct_F77
5061 fi
5062
5063
5064 # Provide some information about the compiler.
5065 echo "$as_me:5065:" \
5066      "checking for Fortran 77 compiler version" >&5
5067 ac_compiler=`set X $ac_compile; echo $2`
5068 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5069   (eval $ac_compiler --version </dev/null >&5) 2>&5
5070   ac_status=$?
5071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072   (exit $ac_status); }
5073 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5074   (eval $ac_compiler -v </dev/null >&5) 2>&5
5075   ac_status=$?
5076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077   (exit $ac_status); }
5078 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5079   (eval $ac_compiler -V </dev/null >&5) 2>&5
5080   ac_status=$?
5081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082   (exit $ac_status); }
5083 rm -f a.out
5084
5085 # If we don't use `.F' as extension, the preprocessor is not run on the
5086 # input file.  (Note that this only needs to work for GNU compilers.)
5087 ac_save_ext=$ac_ext
5088 ac_ext=F
5089 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5090 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5091 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5092   echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094   cat >conftest.$ac_ext <<_ACEOF
5095       program main
5096 #ifndef __GNUC__
5097        choke me
5098 #endif
5099
5100       end
5101 _ACEOF
5102 rm -f conftest.$ac_objext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5104   (eval $ac_compile) 2>conftest.er1
5105   ac_status=$?
5106   grep -v '^ *+' conftest.er1 >conftest.err
5107   rm -f conftest.er1
5108   cat conftest.err >&5
5109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110   (exit $ac_status); } &&
5111          { ac_try='test -z "$ac_f77_werror_flag"
5112                          || test ! -s conftest.err'
5113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114   (eval $ac_try) 2>&5
5115   ac_status=$?
5116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117   (exit $ac_status); }; } &&
5118          { ac_try='test -s conftest.$ac_objext'
5119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120   (eval $ac_try) 2>&5
5121   ac_status=$?
5122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123   (exit $ac_status); }; }; then
5124   ac_compiler_gnu=yes
5125 else
5126   echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5128
5129 ac_compiler_gnu=no
5130 fi
5131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5132 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5133
5134 fi
5135 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5136 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5137 ac_ext=$ac_save_ext
5138 ac_test_FFLAGS=${FFLAGS+set}
5139 ac_save_FFLAGS=$FFLAGS
5140 FFLAGS=
5141 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5142 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5143 if test "${ac_cv_prog_f77_g+set}" = set; then
5144   echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146   FFLAGS=-g
5147 cat >conftest.$ac_ext <<_ACEOF
5148       program main
5149
5150       end
5151 _ACEOF
5152 rm -f conftest.$ac_objext
5153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5154   (eval $ac_compile) 2>conftest.er1
5155   ac_status=$?
5156   grep -v '^ *+' conftest.er1 >conftest.err
5157   rm -f conftest.er1
5158   cat conftest.err >&5
5159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160   (exit $ac_status); } &&
5161          { ac_try='test -z "$ac_f77_werror_flag"
5162                          || test ! -s conftest.err'
5163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164   (eval $ac_try) 2>&5
5165   ac_status=$?
5166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167   (exit $ac_status); }; } &&
5168          { ac_try='test -s conftest.$ac_objext'
5169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170   (eval $ac_try) 2>&5
5171   ac_status=$?
5172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173   (exit $ac_status); }; }; then
5174   ac_cv_prog_f77_g=yes
5175 else
5176   echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5178
5179 ac_cv_prog_f77_g=no
5180 fi
5181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5182
5183 fi
5184 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5185 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5186 if test "$ac_test_FFLAGS" = set; then
5187   FFLAGS=$ac_save_FFLAGS
5188 elif test $ac_cv_prog_f77_g = yes; then
5189   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5190     FFLAGS="-g -O2"
5191   else
5192     FFLAGS="-g"
5193   fi
5194 else
5195   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5196     FFLAGS="-O2"
5197   else
5198     FFLAGS=
5199   fi
5200 fi
5201
5202 G77=`test $ac_compiler_gnu = yes && echo yes`
5203 ac_ext=c
5204 ac_cpp='$CPP $CPPFLAGS'
5205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5208
5209
5210
5211 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5212
5213 # find the maximum length of command line arguments
5214 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5215 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5216 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5217   echo $ECHO_N "(cached) $ECHO_C" >&6
5218 else
5219     i=0
5220   teststring="ABCD"
5221
5222   case $build_os in
5223   msdosdjgpp*)
5224     # On DJGPP, this test can blow up pretty badly due to problems in libc
5225     # (any single argument exceeding 2000 bytes causes a buffer overrun
5226     # during glob expansion).  Even if it were fixed, the result of this
5227     # check would be larger than it should be.
5228     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5229     ;;
5230
5231   gnu*)
5232     # Under GNU Hurd, this test is not required because there is
5233     # no limit to the length of command line arguments.
5234     # Libtool will interpret -1 as no limit whatsoever
5235     lt_cv_sys_max_cmd_len=-1;
5236     ;;
5237
5238   cygwin* | mingw*)
5239     # On Win9x/ME, this test blows up -- it succeeds, but takes
5240     # about 5 minutes as the teststring grows exponentially.
5241     # Worse, since 9x/ME are not pre-emptively multitasking,
5242     # you end up with a "frozen" computer, even though with patience
5243     # the test eventually succeeds (with a max line length of 256k).
5244     # Instead, let's just punt: use the minimum linelength reported by
5245     # all of the supported platforms: 8192 (on NT/2K/XP).
5246     lt_cv_sys_max_cmd_len=8192;
5247     ;;
5248
5249   amigaos*)
5250     # On AmigaOS with pdksh, this test takes hours, literally.
5251     # So we just punt and use a minimum line length of 8192.
5252     lt_cv_sys_max_cmd_len=8192;
5253     ;;
5254
5255   netbsd* | freebsd* | openbsd* | darwin* )
5256     # This has been around since 386BSD, at least.  Likely further.
5257     if test -x /sbin/sysctl; then
5258       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5259     elif test -x /usr/sbin/sysctl; then
5260       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5261     else
5262       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5263     fi
5264     # And add a safety zone
5265     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5266     ;;
5267
5268  *)
5269     # If test is not a shell built-in, we'll probably end up computing a
5270     # maximum length that is only half of the actual maximum length, but
5271     # we can't tell.
5272     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5273     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5274                = "XX$teststring") >/dev/null 2>&1 &&
5275             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5276             lt_cv_sys_max_cmd_len=$new_result &&
5277             test $i != 17 # 1/2 MB should be enough
5278     do
5279       i=`expr $i + 1`
5280       teststring=$teststring$teststring
5281     done
5282     teststring=
5283     # Add a significant safety factor because C++ compilers can tack on massive
5284     # amounts of additional arguments before passing them to the linker.
5285     # It appears as though 1/2 is a usable value.
5286     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5287     ;;
5288   esac
5289
5290 fi
5291
5292 if test -n $lt_cv_sys_max_cmd_len ; then
5293   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5294 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5295 else
5296   echo "$as_me:$LINENO: result: none" >&5
5297 echo "${ECHO_T}none" >&6
5298 fi
5299
5300
5301
5302
5303 # Check for command to grab the raw symbol name followed by C symbol from nm.
5304 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5305 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5306 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5307   echo $ECHO_N "(cached) $ECHO_C" >&6
5308 else
5309
5310 # These are sane defaults that work on at least a few old systems.
5311 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5312
5313 # Character class describing NM global symbol codes.
5314 symcode='[BCDEGRST]'
5315
5316 # Regexp to match symbols that can be accessed directly from C.
5317 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5318
5319 # Transform the above into a raw symbol and a C symbol.
5320 symxfrm='\1 \2\3 \3'
5321
5322 # Transform an extracted symbol line into a proper C declaration
5323 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5324
5325 # Transform an extracted symbol line into symbol name and symbol address
5326 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'"
5327
5328 # Define system-specific variables.
5329 case $host_os in
5330 aix*)
5331   symcode='[BCDT]'
5332   ;;
5333 cygwin* | mingw* | pw32*)
5334   symcode='[ABCDGISTW]'
5335   ;;
5336 hpux*) # Its linker distinguishes data from code symbols
5337   if test "$host_cpu" = ia64; then
5338     symcode='[ABCDEGRST]'
5339   fi
5340   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5341   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'"
5342   ;;
5343 linux*)
5344   if test "$host_cpu" = ia64; then
5345     symcode='[ABCDGIRSTW]'
5346     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5347     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'"
5348   fi
5349   ;;
5350 irix* | nonstopux*)
5351   symcode='[BCDEGRST]'
5352   ;;
5353 osf*)
5354   symcode='[BCDEGQRST]'
5355   ;;
5356 solaris* | sysv5*)
5357   symcode='[BDRT]'
5358   ;;
5359 sysv4)
5360   symcode='[DFNSTU]'
5361   ;;
5362 esac
5363
5364 # Handle CRLF in mingw tool chain
5365 opt_cr=
5366 case $build_os in
5367 mingw*)
5368   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5369   ;;
5370 esac
5371
5372 # If we're using GNU nm, then use its standard symbol codes.
5373 case `$NM -V 2>&1` in
5374 *GNU* | *'with BFD'*)
5375   symcode='[ABCDGIRSTW]' ;;
5376 esac
5377
5378 # Try without a prefix undercore, then with it.
5379 for ac_symprfx in "" "_"; do
5380
5381   # Write the raw and C identifiers.
5382   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5383
5384   # Check to see that the pipe works correctly.
5385   pipe_works=no
5386
5387   rm -f conftest*
5388   cat > conftest.$ac_ext <<EOF
5389 #ifdef __cplusplus
5390 extern "C" {
5391 #endif
5392 char nm_test_var;
5393 void nm_test_func(){}
5394 #ifdef __cplusplus
5395 }
5396 #endif
5397 int main(){nm_test_var='a';nm_test_func();return(0);}
5398 EOF
5399
5400   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5401   (eval $ac_compile) 2>&5
5402   ac_status=$?
5403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404   (exit $ac_status); }; then
5405     # Now try to grab the symbols.
5406     nlist=conftest.nm
5407     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5408   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5409   ac_status=$?
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); } && test -s "$nlist"; then
5412       # Try sorting and uniquifying the output.
5413       if sort "$nlist" | uniq > "$nlist"T; then
5414         mv -f "$nlist"T "$nlist"
5415       else
5416         rm -f "$nlist"T
5417       fi
5418
5419       # Make sure that we snagged all the symbols we need.
5420       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5421         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5422           cat <<EOF > conftest.$ac_ext
5423 #ifdef __cplusplus
5424 extern "C" {
5425 #endif
5426
5427 EOF
5428           # Now generate the symbol file.
5429           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5430
5431           cat <<EOF >> conftest.$ac_ext
5432 #if defined (__STDC__) && __STDC__
5433 # define lt_ptr_t void *
5434 #else
5435 # define lt_ptr_t char *
5436 # define const
5437 #endif
5438
5439 /* The mapping between symbol names and symbols. */
5440 const struct {
5441   const char *name;
5442   lt_ptr_t address;
5443 }
5444 lt_preloaded_symbols[] =
5445 {
5446 EOF
5447           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5448           cat <<\EOF >> conftest.$ac_ext
5449   {0, (lt_ptr_t) 0}
5450 };
5451
5452 #ifdef __cplusplus
5453 }
5454 #endif
5455 EOF
5456           # Now try linking the two files.
5457           mv conftest.$ac_objext conftstm.$ac_objext
5458           lt_save_LIBS="$LIBS"
5459           lt_save_CFLAGS="$CFLAGS"
5460           LIBS="conftstm.$ac_objext"
5461           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5462           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5463   (eval $ac_link) 2>&5
5464   ac_status=$?
5465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5467             pipe_works=yes
5468           fi
5469           LIBS="$lt_save_LIBS"
5470           CFLAGS="$lt_save_CFLAGS"
5471         else
5472           echo "cannot find nm_test_func in $nlist" >&5
5473         fi
5474       else
5475         echo "cannot find nm_test_var in $nlist" >&5
5476       fi
5477     else
5478       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5479     fi
5480   else
5481     echo "$progname: failed program was:" >&5
5482     cat conftest.$ac_ext >&5
5483   fi
5484   rm -f conftest* conftst*
5485
5486   # Do not use the global_symbol_pipe unless it works.
5487   if test "$pipe_works" = yes; then
5488     break
5489   else
5490     lt_cv_sys_global_symbol_pipe=
5491   fi
5492 done
5493
5494 fi
5495
5496 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5497   lt_cv_sys_global_symbol_to_cdecl=
5498 fi
5499 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5500   echo "$as_me:$LINENO: result: failed" >&5
5501 echo "${ECHO_T}failed" >&6
5502 else
5503   echo "$as_me:$LINENO: result: ok" >&5
5504 echo "${ECHO_T}ok" >&6
5505 fi
5506
5507 echo "$as_me:$LINENO: checking for objdir" >&5
5508 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5509 if test "${lt_cv_objdir+set}" = set; then
5510   echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512   rm -f .libs 2>/dev/null
5513 mkdir .libs 2>/dev/null
5514 if test -d .libs; then
5515   lt_cv_objdir=.libs
5516 else
5517   # MS-DOS does not allow filenames that begin with a dot.
5518   lt_cv_objdir=_libs
5519 fi
5520 rmdir .libs 2>/dev/null
5521 fi
5522 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5523 echo "${ECHO_T}$lt_cv_objdir" >&6
5524 objdir=$lt_cv_objdir
5525
5526
5527
5528
5529
5530 case $host_os in
5531 aix3*)
5532   # AIX sometimes has problems with the GCC collect2 program.  For some
5533   # reason, if we set the COLLECT_NAMES environment variable, the problems
5534   # vanish in a puff of smoke.
5535   if test "X${COLLECT_NAMES+set}" != Xset; then
5536     COLLECT_NAMES=
5537     export COLLECT_NAMES
5538   fi
5539   ;;
5540 esac
5541
5542 # Sed substitution that helps us do robust quoting.  It backslashifies
5543 # metacharacters that are still active within double-quoted strings.
5544 Xsed='sed -e s/^X//'
5545 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5546
5547 # Same as above, but do not quote variable references.
5548 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5549
5550 # Sed substitution to delay expansion of an escaped shell variable in a
5551 # double_quote_subst'ed string.
5552 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5553
5554 # Sed substitution to avoid accidental globbing in evaled expressions
5555 no_glob_subst='s/\*/\\\*/g'
5556
5557 # Constants:
5558 rm="rm -f"
5559
5560 # Global variables:
5561 default_ofile=mklib
5562 can_build_shared=yes
5563
5564 # All known linkers require a `.a' archive for static linking (except M$VC,
5565 # which needs '.lib').
5566 libext=a
5567 ltmain="$ac_aux_dir/ltmain.sh"
5568 ofile="$default_ofile"
5569 with_gnu_ld="$lt_cv_prog_gnu_ld"
5570
5571 if test -n "$ac_tool_prefix"; then
5572   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5573 set dummy ${ac_tool_prefix}ar; ac_word=$2
5574 echo "$as_me:$LINENO: checking for $ac_word" >&5
5575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5576 if test "${ac_cv_prog_AR+set}" = set; then
5577   echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579   if test -n "$AR"; then
5580   ac_cv_prog_AR="$AR" # Let the user override the test.
5581 else
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 for as_dir in $PATH
5584 do
5585   IFS=$as_save_IFS
5586   test -z "$as_dir" && as_dir=.
5587   for ac_exec_ext in '' $ac_executable_extensions; do
5588   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5589     ac_cv_prog_AR="${ac_tool_prefix}ar"
5590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5591     break 2
5592   fi
5593 done
5594 done
5595
5596 fi
5597 fi
5598 AR=$ac_cv_prog_AR
5599 if test -n "$AR"; then
5600   echo "$as_me:$LINENO: result: $AR" >&5
5601 echo "${ECHO_T}$AR" >&6
5602 else
5603   echo "$as_me:$LINENO: result: no" >&5
5604 echo "${ECHO_T}no" >&6
5605 fi
5606
5607 fi
5608 if test -z "$ac_cv_prog_AR"; then
5609   ac_ct_AR=$AR
5610   # Extract the first word of "ar", so it can be a program name with args.
5611 set dummy ar; ac_word=$2
5612 echo "$as_me:$LINENO: checking for $ac_word" >&5
5613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5614 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5615   echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617   if test -n "$ac_ct_AR"; then
5618   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5619 else
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH
5622 do
5623   IFS=$as_save_IFS
5624   test -z "$as_dir" && as_dir=.
5625   for ac_exec_ext in '' $ac_executable_extensions; do
5626   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5627     ac_cv_prog_ac_ct_AR="ar"
5628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5629     break 2
5630   fi
5631 done
5632 done
5633
5634   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5635 fi
5636 fi
5637 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5638 if test -n "$ac_ct_AR"; then
5639   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5640 echo "${ECHO_T}$ac_ct_AR" >&6
5641 else
5642   echo "$as_me:$LINENO: result: no" >&5
5643 echo "${ECHO_T}no" >&6
5644 fi
5645
5646   AR=$ac_ct_AR
5647 else
5648   AR="$ac_cv_prog_AR"
5649 fi
5650
5651 if test -n "$ac_tool_prefix"; then
5652   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5653 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5654 echo "$as_me:$LINENO: checking for $ac_word" >&5
5655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5656 if test "${ac_cv_prog_RANLIB+set}" = set; then
5657   echo $ECHO_N "(cached) $ECHO_C" >&6
5658 else
5659   if test -n "$RANLIB"; then
5660   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5661 else
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 for as_dir in $PATH
5664 do
5665   IFS=$as_save_IFS
5666   test -z "$as_dir" && as_dir=.
5667   for ac_exec_ext in '' $ac_executable_extensions; do
5668   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5669     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5671     break 2
5672   fi
5673 done
5674 done
5675
5676 fi
5677 fi
5678 RANLIB=$ac_cv_prog_RANLIB
5679 if test -n "$RANLIB"; then
5680   echo "$as_me:$LINENO: result: $RANLIB" >&5
5681 echo "${ECHO_T}$RANLIB" >&6
5682 else
5683   echo "$as_me:$LINENO: result: no" >&5
5684 echo "${ECHO_T}no" >&6
5685 fi
5686
5687 fi
5688 if test -z "$ac_cv_prog_RANLIB"; then
5689   ac_ct_RANLIB=$RANLIB
5690   # Extract the first word of "ranlib", so it can be a program name with args.
5691 set dummy ranlib; ac_word=$2
5692 echo "$as_me:$LINENO: checking for $ac_word" >&5
5693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5694 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5695   echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697   if test -n "$ac_ct_RANLIB"; then
5698   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5699 else
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 for as_dir in $PATH
5702 do
5703   IFS=$as_save_IFS
5704   test -z "$as_dir" && as_dir=.
5705   for ac_exec_ext in '' $ac_executable_extensions; do
5706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5707     ac_cv_prog_ac_ct_RANLIB="ranlib"
5708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5709     break 2
5710   fi
5711 done
5712 done
5713
5714   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5715 fi
5716 fi
5717 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5718 if test -n "$ac_ct_RANLIB"; then
5719   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5720 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5721 else
5722   echo "$as_me:$LINENO: result: no" >&5
5723 echo "${ECHO_T}no" >&6
5724 fi
5725
5726   RANLIB=$ac_ct_RANLIB
5727 else
5728   RANLIB="$ac_cv_prog_RANLIB"
5729 fi
5730
5731 if test -n "$ac_tool_prefix"; then
5732   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5733 set dummy ${ac_tool_prefix}strip; ac_word=$2
5734 echo "$as_me:$LINENO: checking for $ac_word" >&5
5735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5736 if test "${ac_cv_prog_STRIP+set}" = set; then
5737   echo $ECHO_N "(cached) $ECHO_C" >&6
5738 else
5739   if test -n "$STRIP"; then
5740   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5741 else
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH
5744 do
5745   IFS=$as_save_IFS
5746   test -z "$as_dir" && as_dir=.
5747   for ac_exec_ext in '' $ac_executable_extensions; do
5748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5749     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5751     break 2
5752   fi
5753 done
5754 done
5755
5756 fi
5757 fi
5758 STRIP=$ac_cv_prog_STRIP
5759 if test -n "$STRIP"; then
5760   echo "$as_me:$LINENO: result: $STRIP" >&5
5761 echo "${ECHO_T}$STRIP" >&6
5762 else
5763   echo "$as_me:$LINENO: result: no" >&5
5764 echo "${ECHO_T}no" >&6
5765 fi
5766
5767 fi
5768 if test -z "$ac_cv_prog_STRIP"; then
5769   ac_ct_STRIP=$STRIP
5770   # Extract the first word of "strip", so it can be a program name with args.
5771 set dummy strip; ac_word=$2
5772 echo "$as_me:$LINENO: checking for $ac_word" >&5
5773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5774 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5775   echo $ECHO_N "(cached) $ECHO_C" >&6
5776 else
5777   if test -n "$ac_ct_STRIP"; then
5778   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5779 else
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH
5782 do
5783   IFS=$as_save_IFS
5784   test -z "$as_dir" && as_dir=.
5785   for ac_exec_ext in '' $ac_executable_extensions; do
5786   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5787     ac_cv_prog_ac_ct_STRIP="strip"
5788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5789     break 2
5790   fi
5791 done
5792 done
5793
5794   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5795 fi
5796 fi
5797 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5798 if test -n "$ac_ct_STRIP"; then
5799   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5800 echo "${ECHO_T}$ac_ct_STRIP" >&6
5801 else
5802   echo "$as_me:$LINENO: result: no" >&5
5803 echo "${ECHO_T}no" >&6
5804 fi
5805
5806   STRIP=$ac_ct_STRIP
5807 else
5808   STRIP="$ac_cv_prog_STRIP"
5809 fi
5810
5811
5812 old_CC="$CC"
5813 old_CFLAGS="$CFLAGS"
5814
5815 # Set sane defaults for various variables
5816 test -z "$AR" && AR=ar
5817 test -z "$AR_FLAGS" && AR_FLAGS=cru
5818 test -z "$AS" && AS=as
5819 test -z "$CC" && CC=cc
5820 test -z "$LTCC" && LTCC=$CC
5821 test -z "$DLLTOOL" && DLLTOOL=dlltool
5822 test -z "$LD" && LD=ld
5823 test -z "$LN_S" && LN_S="ln -s"
5824 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5825 test -z "$NM" && NM=nm
5826 test -z "$SED" && SED=sed
5827 test -z "$OBJDUMP" && OBJDUMP=objdump
5828 test -z "$RANLIB" && RANLIB=:
5829 test -z "$STRIP" && STRIP=:
5830 test -z "$ac_objext" && ac_objext=o
5831
5832 # Determine commands to create old-style static archives.
5833 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5834 old_postinstall_cmds='chmod 644 $oldlib'
5835 old_postuninstall_cmds=
5836
5837 if test -n "$RANLIB"; then
5838   case $host_os in
5839   openbsd*)
5840     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5841     ;;
5842   *)
5843     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5844     ;;
5845   esac
5846   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5847 fi
5848
5849 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5850
5851 # Only perform the check for file, if the check method requires it
5852 case $deplibs_check_method in
5853 file_magic*)
5854   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5855     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5856 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5857 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5858   echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860   case $MAGIC_CMD in
5861 [\\/*] |  ?:[\\/]*)
5862   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5863   ;;
5864 *)
5865   lt_save_MAGIC_CMD="$MAGIC_CMD"
5866   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5867   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5868   for ac_dir in $ac_dummy; do
5869     IFS="$lt_save_ifs"
5870     test -z "$ac_dir" && ac_dir=.
5871     if test -f $ac_dir/${ac_tool_prefix}file; then
5872       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5873       if test -n "$file_magic_test_file"; then
5874         case $deplibs_check_method in
5875         "file_magic "*)
5876           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5877           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5878           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5879             $EGREP "$file_magic_regex" > /dev/null; then
5880             :
5881           else
5882             cat <<EOF 1>&2
5883
5884 *** Warning: the command libtool uses to detect shared libraries,
5885 *** $file_magic_cmd, produces output that libtool cannot recognize.
5886 *** The result is that libtool may fail to recognize shared libraries
5887 *** as such.  This will affect the creation of libtool libraries that
5888 *** depend on shared libraries, but programs linked with such libtool
5889 *** libraries will work regardless of this problem.  Nevertheless, you
5890 *** may want to report the problem to your system manager and/or to
5891 *** bug-libtool@gnu.org
5892
5893 EOF
5894           fi ;;
5895         esac
5896       fi
5897       break
5898     fi
5899   done
5900   IFS="$lt_save_ifs"
5901   MAGIC_CMD="$lt_save_MAGIC_CMD"
5902   ;;
5903 esac
5904 fi
5905
5906 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5907 if test -n "$MAGIC_CMD"; then
5908   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5909 echo "${ECHO_T}$MAGIC_CMD" >&6
5910 else
5911   echo "$as_me:$LINENO: result: no" >&5
5912 echo "${ECHO_T}no" >&6
5913 fi
5914
5915 if test -z "$lt_cv_path_MAGIC_CMD"; then
5916   if test -n "$ac_tool_prefix"; then
5917     echo "$as_me:$LINENO: checking for file" >&5
5918 echo $ECHO_N "checking for file... $ECHO_C" >&6
5919 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5920   echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922   case $MAGIC_CMD in
5923 [\\/*] |  ?:[\\/]*)
5924   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5925   ;;
5926 *)
5927   lt_save_MAGIC_CMD="$MAGIC_CMD"
5928   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5929   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5930   for ac_dir in $ac_dummy; do
5931     IFS="$lt_save_ifs"
5932     test -z "$ac_dir" && ac_dir=.
5933     if test -f $ac_dir/file; then
5934       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5935       if test -n "$file_magic_test_file"; then
5936         case $deplibs_check_method in
5937         "file_magic "*)
5938           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5939           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5940           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5941             $EGREP "$file_magic_regex" > /dev/null; then
5942             :
5943           else
5944             cat <<EOF 1>&2
5945
5946 *** Warning: the command libtool uses to detect shared libraries,
5947 *** $file_magic_cmd, produces output that libtool cannot recognize.
5948 *** The result is that libtool may fail to recognize shared libraries
5949 *** as such.  This will affect the creation of libtool libraries that
5950 *** depend on shared libraries, but programs linked with such libtool
5951 *** libraries will work regardless of this problem.  Nevertheless, you
5952 *** may want to report the problem to your system manager and/or to
5953 *** bug-libtool@gnu.org
5954
5955 EOF
5956           fi ;;
5957         esac
5958       fi
5959       break
5960     fi
5961   done
5962   IFS="$lt_save_ifs"
5963   MAGIC_CMD="$lt_save_MAGIC_CMD"
5964   ;;
5965 esac
5966 fi
5967
5968 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5969 if test -n "$MAGIC_CMD"; then
5970   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5971 echo "${ECHO_T}$MAGIC_CMD" >&6
5972 else
5973   echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6
5975 fi
5976
5977   else
5978     MAGIC_CMD=:
5979   fi
5980 fi
5981
5982   fi
5983   ;;
5984 esac
5985
5986 enable_dlopen=no
5987 enable_win32_dll=no
5988
5989 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5990 if test "${enable_libtool_lock+set}" = set; then
5991   enableval="$enable_libtool_lock"
5992
5993 fi;
5994 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5995
5996
5997 # Check whether --with-pic or --without-pic was given.
5998 if test "${with_pic+set}" = set; then
5999   withval="$with_pic"
6000   pic_mode="$withval"
6001 else
6002   pic_mode=default
6003 fi;
6004 test -z "$pic_mode" && pic_mode=default
6005
6006 # Use C for the default configuration in the libtool script
6007 tagname=
6008 lt_save_CC="$CC"
6009 ac_ext=c
6010 ac_cpp='$CPP $CPPFLAGS'
6011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6014
6015
6016 # Source file extension for C test sources.
6017 ac_ext=c
6018
6019 # Object file extension for compiled C test sources.
6020 objext=o
6021 objext=$objext
6022
6023 # Code to be used in simple compile tests
6024 lt_simple_compile_test_code="int some_variable = 0;\n"
6025
6026 # Code to be used in simple link tests
6027 lt_simple_link_test_code='int main(){return(0);}\n'
6028
6029
6030 # If no C compiler was specified, use CC.
6031 LTCC=${LTCC-"$CC"}
6032
6033 # Allow CC to be a program name with arguments.
6034 compiler=$CC
6035
6036
6037 #
6038 # Check for any special shared library compilation flags.
6039 #
6040 lt_prog_cc_shlib=
6041 if test "$GCC" = no; then
6042   case $host_os in
6043   sco3.2v5*)
6044     lt_prog_cc_shlib='-belf'
6045     ;;
6046   esac
6047 fi
6048 if test -n "$lt_prog_cc_shlib"; then
6049   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6050 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6051   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6052   else
6053     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6054 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6055     lt_cv_prog_cc_can_build_shared=no
6056   fi
6057 fi
6058
6059
6060 #
6061 # Check to make sure the static flag actually works.
6062 #
6063 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6064 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6065 if test "${lt_prog_compiler_static_works+set}" = set; then
6066   echo $ECHO_N "(cached) $ECHO_C" >&6
6067 else
6068   lt_prog_compiler_static_works=no
6069    save_LDFLAGS="$LDFLAGS"
6070    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6071    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6072    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6073      # The compiler can only warn and ignore the option if not recognized
6074      # So say no if there are warnings
6075      if test -s conftest.err; then
6076        # Append any errors to the config.log.
6077        cat conftest.err 1>&5
6078      else
6079        lt_prog_compiler_static_works=yes
6080      fi
6081    fi
6082    $rm conftest*
6083    LDFLAGS="$save_LDFLAGS"
6084
6085 fi
6086 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6087 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6088
6089 if test x"$lt_prog_compiler_static_works" = xyes; then
6090     :
6091 else
6092     lt_prog_compiler_static=
6093 fi
6094
6095
6096
6097
6098 lt_prog_compiler_no_builtin_flag=
6099
6100 if test "$GCC" = yes; then
6101   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6102
6103
6104 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6105 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6106 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6107   echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109   lt_cv_prog_compiler_rtti_exceptions=no
6110   ac_outfile=conftest.$ac_objext
6111    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6112    lt_compiler_flag="-fno-rtti -fno-exceptions"
6113    # Insert the option either (1) after the last *FLAGS variable, or
6114    # (2) before a word containing "conftest.", or (3) at the end.
6115    # Note that $ac_compile itself does not contain backslashes and begins
6116    # with a dollar sign (not a hyphen), so the echo should work correctly.
6117    # The option is referenced via a variable to avoid confusing sed.
6118    lt_compile=`echo "$ac_compile" | $SED \
6119    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6120    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6121    -e 's:$: $lt_compiler_flag:'`
6122    (eval echo "\"\$as_me:6122: $lt_compile\"" >&5)
6123    (eval "$lt_compile" 2>conftest.err)
6124    ac_status=$?
6125    cat conftest.err >&5
6126    echo "$as_me:6126: \$? = $ac_status" >&5
6127    if (exit $ac_status) && test -s "$ac_outfile"; then
6128      # The compiler can only warn and ignore the option if not recognized
6129      # So say no if there are warnings
6130      if test ! -s conftest.err; then
6131        lt_cv_prog_compiler_rtti_exceptions=yes
6132      fi
6133    fi
6134    $rm conftest*
6135
6136 fi
6137 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6138 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6139
6140 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6141     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6142 else
6143     :
6144 fi
6145
6146 fi
6147
6148 lt_prog_compiler_wl=
6149 lt_prog_compiler_pic=
6150 lt_prog_compiler_static=
6151
6152 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6153 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6154
6155   if test "$GCC" = yes; then
6156     lt_prog_compiler_wl='-Wl,'
6157     lt_prog_compiler_static='-static'
6158
6159     case $host_os in
6160       aix*)
6161       # All AIX code is PIC.
6162       if test "$host_cpu" = ia64; then
6163         # AIX 5 now supports IA64 processor
6164         lt_prog_compiler_static='-Bstatic'
6165       fi
6166       ;;
6167
6168     amigaos*)
6169       # FIXME: we need at least 68020 code to build shared libraries, but
6170       # adding the `-m68020' flag to GCC prevents building anything better,
6171       # like `-m68040'.
6172       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6173       ;;
6174
6175     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6176       # PIC is the default for these OSes.
6177       ;;
6178
6179     mingw* | pw32* | os2*)
6180       # This hack is so that the source file can tell whether it is being
6181       # built for inclusion in a dll (and should export symbols for example).
6182       lt_prog_compiler_pic='-DDLL_EXPORT'
6183       ;;
6184
6185     darwin* | rhapsody*)
6186       # PIC is the default on this platform
6187       # Common symbols not allowed in MH_DYLIB files
6188       lt_prog_compiler_pic='-fno-common'
6189       ;;
6190
6191     msdosdjgpp*)
6192       # Just because we use GCC doesn't mean we suddenly get shared libraries
6193       # on systems that don't support them.
6194       lt_prog_compiler_can_build_shared=no
6195       enable_shared=no
6196       ;;
6197
6198     sysv4*MP*)
6199       if test -d /usr/nec; then
6200         lt_prog_compiler_pic=-Kconform_pic
6201       fi
6202       ;;
6203
6204     hpux*)
6205       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6206       # not for PA HP-UX.
6207       case "$host_cpu" in
6208       hppa*64*|ia64*)
6209         # +Z the default
6210         ;;
6211       *)
6212         lt_prog_compiler_pic='-fPIC'
6213         ;;
6214       esac
6215       ;;
6216
6217     *)
6218       lt_prog_compiler_pic='-fPIC'
6219       ;;
6220     esac
6221   else
6222     # PORTME Check for flag to pass linker flags through the system compiler.
6223     case $host_os in
6224     aix*)
6225       lt_prog_compiler_wl='-Wl,'
6226       if test "$host_cpu" = ia64; then
6227         # AIX 5 now supports IA64 processor
6228         lt_prog_compiler_static='-Bstatic'
6229       else
6230         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6231       fi
6232       ;;
6233       darwin*)
6234         # PIC is the default on this platform
6235         # Common symbols not allowed in MH_DYLIB files
6236        case "$cc_basename" in
6237          xlc*)
6238          lt_prog_compiler_pic='-qnocommon'
6239          lt_prog_compiler_wl='-Wl,'
6240          ;;
6241        esac
6242        ;;
6243
6244     mingw* | pw32* | os2*)
6245       # This hack is so that the source file can tell whether it is being
6246       # built for inclusion in a dll (and should export symbols for example).
6247       lt_prog_compiler_pic='-DDLL_EXPORT'
6248       ;;
6249
6250     hpux9* | hpux10* | hpux11*)
6251       lt_prog_compiler_wl='-Wl,'
6252       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6253       # not for PA HP-UX.
6254       case "$host_cpu" in
6255       hppa*64*|ia64*)
6256         # +Z the default
6257         ;;
6258       *)
6259         lt_prog_compiler_pic='+Z'
6260         ;;
6261       esac
6262       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6263       lt_prog_compiler_static='${wl}-a ${wl}archive'
6264       ;;
6265
6266     irix5* | irix6* | nonstopux*)
6267       lt_prog_compiler_wl='-Wl,'
6268       # PIC (with -KPIC) is the default.
6269       lt_prog_compiler_static='-non_shared'
6270       ;;
6271
6272     newsos6)
6273       lt_prog_compiler_pic='-KPIC'
6274       lt_prog_compiler_static='-Bstatic'
6275       ;;
6276
6277     linux*)
6278       case $CC in
6279       icc* | ecc*)
6280         lt_prog_compiler_wl='-Wl,'
6281         lt_prog_compiler_pic='-KPIC'
6282         lt_prog_compiler_static='-static'
6283         ;;
6284       ccc*)
6285         lt_prog_compiler_wl='-Wl,'
6286         # All Alpha code is PIC.
6287         lt_prog_compiler_static='-non_shared'
6288         ;;
6289       esac
6290       ;;
6291
6292     osf3* | osf4* | osf5*)
6293       lt_prog_compiler_wl='-Wl,'
6294       # All OSF/1 code is PIC.
6295       lt_prog_compiler_static='-non_shared'
6296       ;;
6297
6298     sco3.2v5*)
6299       lt_prog_compiler_pic='-Kpic'
6300       lt_prog_compiler_static='-dn'
6301       ;;
6302
6303     solaris*)
6304       lt_prog_compiler_wl='-Wl,'
6305       lt_prog_compiler_pic='-KPIC'
6306       lt_prog_compiler_static='-Bstatic'
6307       ;;
6308
6309     sunos4*)
6310       lt_prog_compiler_wl='-Qoption ld '
6311       lt_prog_compiler_pic='-PIC'
6312       lt_prog_compiler_static='-Bstatic'
6313       ;;
6314
6315     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6316       lt_prog_compiler_wl='-Wl,'
6317       lt_prog_compiler_pic='-KPIC'
6318       lt_prog_compiler_static='-Bstatic'
6319       ;;
6320
6321     sysv4*MP*)
6322       if test -d /usr/nec ;then
6323         lt_prog_compiler_pic='-Kconform_pic'
6324         lt_prog_compiler_static='-Bstatic'
6325       fi
6326       ;;
6327
6328     uts4*)
6329       lt_prog_compiler_pic='-pic'
6330       lt_prog_compiler_static='-Bstatic'
6331       ;;
6332
6333     *)
6334       lt_prog_compiler_can_build_shared=no
6335       ;;
6336     esac
6337   fi
6338
6339 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6340 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6341
6342 #
6343 # Check to make sure the PIC flag actually works.
6344 #
6345 if test -n "$lt_prog_compiler_pic"; then
6346
6347 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6348 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6349 if test "${lt_prog_compiler_pic_works+set}" = set; then
6350   echo $ECHO_N "(cached) $ECHO_C" >&6
6351 else
6352   lt_prog_compiler_pic_works=no
6353   ac_outfile=conftest.$ac_objext
6354    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6355    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6356    # Insert the option either (1) after the last *FLAGS variable, or
6357    # (2) before a word containing "conftest.", or (3) at the end.
6358    # Note that $ac_compile itself does not contain backslashes and begins
6359    # with a dollar sign (not a hyphen), so the echo should work correctly.
6360    # The option is referenced via a variable to avoid confusing sed.
6361    lt_compile=`echo "$ac_compile" | $SED \
6362    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6363    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6364    -e 's:$: $lt_compiler_flag:'`
6365    (eval echo "\"\$as_me:6365: $lt_compile\"" >&5)
6366    (eval "$lt_compile" 2>conftest.err)
6367    ac_status=$?
6368    cat conftest.err >&5
6369    echo "$as_me:6369: \$? = $ac_status" >&5
6370    if (exit $ac_status) && test -s "$ac_outfile"; then
6371      # The compiler can only warn and ignore the option if not recognized
6372      # So say no if there are warnings
6373      if test ! -s conftest.err; then
6374        lt_prog_compiler_pic_works=yes
6375      fi
6376    fi
6377    $rm conftest*
6378
6379 fi
6380 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6381 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6382
6383 if test x"$lt_prog_compiler_pic_works" = xyes; then
6384     case $lt_prog_compiler_pic in
6385      "" | " "*) ;;
6386      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6387      esac
6388 else
6389     lt_prog_compiler_pic=
6390      lt_prog_compiler_can_build_shared=no
6391 fi
6392
6393 fi
6394 case "$host_os" in
6395   # For platforms which do not support PIC, -DPIC is meaningless:
6396   *djgpp*)
6397     lt_prog_compiler_pic=
6398     ;;
6399   *)
6400     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6401     ;;
6402 esac
6403
6404 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6405 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6406 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6407   echo $ECHO_N "(cached) $ECHO_C" >&6
6408 else
6409   lt_cv_prog_compiler_c_o=no
6410    $rm -r conftest 2>/dev/null
6411    mkdir conftest
6412    cd conftest
6413    mkdir out
6414    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6415
6416    lt_compiler_flag="-o out/conftest2.$ac_objext"
6417    # Insert the option either (1) after the last *FLAGS variable, or
6418    # (2) before a word containing "conftest.", or (3) at the end.
6419    # Note that $ac_compile itself does not contain backslashes and begins
6420    # with a dollar sign (not a hyphen), so the echo should work correctly.
6421    lt_compile=`echo "$ac_compile" | $SED \
6422    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6423    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6424    -e 's:$: $lt_compiler_flag:'`
6425    (eval echo "\"\$as_me:6425: $lt_compile\"" >&5)
6426    (eval "$lt_compile" 2>out/conftest.err)
6427    ac_status=$?
6428    cat out/conftest.err >&5
6429    echo "$as_me:6429: \$? = $ac_status" >&5
6430    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6431    then
6432      # The compiler can only warn and ignore the option if not recognized
6433      # So say no if there are warnings
6434      if test ! -s out/conftest.err; then
6435        lt_cv_prog_compiler_c_o=yes
6436      fi
6437    fi
6438    chmod u+w .
6439    $rm conftest*
6440    # SGI C++ compiler will create directory out/ii_files/ for
6441    # template instantiation
6442    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6443    $rm out/* && rmdir out
6444    cd ..
6445    rmdir conftest
6446    $rm conftest*
6447
6448 fi
6449 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6450 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6451
6452
6453 hard_links="nottested"
6454 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6455   # do not overwrite the value of need_locks provided by the user
6456   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6457 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6458   hard_links=yes
6459   $rm conftest*
6460   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6461   touch conftest.a
6462   ln conftest.a conftest.b 2>&5 || hard_links=no
6463   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6464   echo "$as_me:$LINENO: result: $hard_links" >&5
6465 echo "${ECHO_T}$hard_links" >&6
6466   if test "$hard_links" = no; then
6467     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6468 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6469     need_locks=warn
6470   fi
6471 else
6472   need_locks=no
6473 fi
6474
6475 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6476 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6477
6478   runpath_var=
6479   allow_undefined_flag=
6480   enable_shared_with_static_runtimes=no
6481   archive_cmds=
6482   archive_expsym_cmds=
6483   old_archive_From_new_cmds=
6484   old_archive_from_expsyms_cmds=
6485   export_dynamic_flag_spec=
6486   whole_archive_flag_spec=
6487   thread_safe_flag_spec=
6488   hardcode_libdir_flag_spec=
6489   hardcode_libdir_flag_spec_ld=
6490   hardcode_libdir_separator=
6491   hardcode_direct=no
6492   hardcode_minus_L=no
6493   hardcode_shlibpath_var=unsupported
6494   link_all_deplibs=unknown
6495   hardcode_automatic=no
6496   module_cmds=
6497   module_expsym_cmds=
6498   always_export_symbols=no
6499   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6500   # include_expsyms should be a list of space-separated symbols to be *always*
6501   # included in the symbol list
6502   include_expsyms=
6503   # exclude_expsyms can be an extended regexp of symbols to exclude
6504   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6505   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6506   # as well as any symbol that contains `d'.
6507   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6508   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6509   # platforms (ab)use it in PIC code, but their linkers get confused if
6510   # the symbol is explicitly referenced.  Since portable code cannot
6511   # rely on this symbol name, it's probably fine to never include it in
6512   # preloaded symbol tables.
6513   extract_expsyms_cmds=
6514
6515   case $host_os in
6516   cygwin* | mingw* | pw32*)
6517     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6518     # When not using gcc, we currently assume that we are using
6519     # Microsoft Visual C++.
6520     if test "$GCC" != yes; then
6521       with_gnu_ld=no
6522     fi
6523     ;;
6524   openbsd*)
6525     with_gnu_ld=no
6526     ;;
6527   esac
6528
6529   ld_shlibs=yes
6530   if test "$with_gnu_ld" = yes; then
6531     # If archive_cmds runs LD, not CC, wlarc should be empty
6532     wlarc='${wl}'
6533
6534     # See if GNU ld supports shared libraries.
6535     case $host_os in
6536     aix3* | aix4* | aix5*)
6537       # On AIX/PPC, the GNU linker is very broken
6538       if test "$host_cpu" != ia64; then
6539         ld_shlibs=no
6540         cat <<EOF 1>&2
6541
6542 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6543 *** to be unable to reliably create shared libraries on AIX.
6544 *** Therefore, libtool is disabling shared libraries support.  If you
6545 *** really care for shared libraries, you may want to modify your PATH
6546 *** so that a non-GNU linker is found, and then restart.
6547
6548 EOF
6549       fi
6550       ;;
6551
6552     amigaos*)
6553       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)'
6554       hardcode_libdir_flag_spec='-L$libdir'
6555       hardcode_minus_L=yes
6556
6557       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6558       # that the semantics of dynamic libraries on AmigaOS, at least up
6559       # to version 4, is to share data among multiple programs linked
6560       # with the same dynamic library.  Since this doesn't match the
6561       # behavior of shared libraries on other platforms, we can't use
6562       # them.
6563       ld_shlibs=no
6564       ;;
6565
6566     beos*)
6567       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6568         allow_undefined_flag=unsupported
6569         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6570         # support --undefined.  This deserves some investigation.  FIXME
6571         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6572       else
6573         ld_shlibs=no
6574       fi
6575       ;;
6576
6577     cygwin* | mingw* | pw32*)
6578       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6579       # as there is no search path for DLLs.
6580       hardcode_libdir_flag_spec='-L$libdir'
6581       allow_undefined_flag=unsupported
6582       always_export_symbols=no
6583       enable_shared_with_static_runtimes=yes
6584       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6585
6586       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6587         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6588         # If the export-symbols file already is a .def file (1st line
6589         # is EXPORTS), use it as is; otherwise, prepend...
6590         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6591           cp $export_symbols $output_objdir/$soname.def;
6592         else
6593           echo EXPORTS > $output_objdir/$soname.def;
6594           cat $export_symbols >> $output_objdir/$soname.def;
6595         fi~
6596         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6597       else
6598         ld_shlibs=no
6599       fi
6600       ;;
6601
6602     netbsd*)
6603       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6604         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6605         wlarc=
6606       else
6607         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6608         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6609       fi
6610       ;;
6611
6612     solaris* | sysv5*)
6613       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6614         ld_shlibs=no
6615         cat <<EOF 1>&2
6616
6617 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6618 *** create shared libraries on Solaris systems.  Therefore, libtool
6619 *** is disabling shared libraries support.  We urge you to upgrade GNU
6620 *** binutils to release 2.9.1 or newer.  Another option is to modify
6621 *** your PATH or compiler configuration so that the native linker is
6622 *** used, and then restart.
6623
6624 EOF
6625       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6626         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6627         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6628       else
6629         ld_shlibs=no
6630       fi
6631       ;;
6632
6633     sunos4*)
6634       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6635       wlarc=
6636       hardcode_direct=yes
6637       hardcode_shlibpath_var=no
6638       ;;
6639
6640   linux*)
6641     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6642         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6643         archive_cmds="$tmp_archive_cmds"
6644       supports_anon_versioning=no
6645       case `$LD -v 2>/dev/null` in
6646         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6647         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6648         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6649         *\ 2.11.*) ;; # other 2.11 versions
6650         *) supports_anon_versioning=yes ;;
6651       esac
6652       if test $supports_anon_versioning = yes; then
6653         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6654 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6655 $echo "local: *; };" >> $output_objdir/$libname.ver~
6656         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6657       else
6658         archive_expsym_cmds="$tmp_archive_cmds"
6659       fi
6660     else
6661       ld_shlibs=no
6662     fi
6663     ;;
6664
6665     *)
6666       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6667         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6668         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6669       else
6670         ld_shlibs=no
6671       fi
6672       ;;
6673     esac
6674
6675     if test "$ld_shlibs" = yes; then
6676       runpath_var=LD_RUN_PATH
6677       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6678       export_dynamic_flag_spec='${wl}--export-dynamic'
6679       # ancient GNU ld didn't support --whole-archive et. al.
6680       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6681         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6682       else
6683         whole_archive_flag_spec=
6684       fi
6685     fi
6686   else
6687     # PORTME fill in a description of your system's linker (not GNU ld)
6688     case $host_os in
6689     aix3*)
6690       allow_undefined_flag=unsupported
6691       always_export_symbols=yes
6692       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'
6693       # Note: this linker hardcodes the directories in LIBPATH if there
6694       # are no directories specified by -L.
6695       hardcode_minus_L=yes
6696       if test "$GCC" = yes && test -z "$link_static_flag"; then
6697         # Neither direct hardcoding nor static linking is supported with a
6698         # broken collect2.
6699         hardcode_direct=unsupported
6700       fi
6701       ;;
6702
6703     aix4* | aix5*)
6704       if test "$host_cpu" = ia64; then
6705         # On IA64, the linker does run time linking by default, so we don't
6706         # have to do anything special.
6707         aix_use_runtimelinking=no
6708         exp_sym_flag='-Bexport'
6709         no_entry_flag=""
6710       else
6711         # If we're using GNU nm, then we don't want the "-C" option.
6712         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6713         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6714           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'
6715         else
6716           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'
6717         fi
6718         aix_use_runtimelinking=no
6719
6720         # Test if we are trying to use run time linking or normal
6721         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6722         # need to do runtime linking.
6723         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6724           for ld_flag in $LDFLAGS; do
6725           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6726             aix_use_runtimelinking=yes
6727             break
6728           fi
6729           done
6730         esac
6731
6732         exp_sym_flag='-bexport'
6733         no_entry_flag='-bnoentry'
6734       fi
6735
6736       # When large executables or shared objects are built, AIX ld can
6737       # have problems creating the table of contents.  If linking a library
6738       # or program results in "error TOC overflow" add -mminimal-toc to
6739       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6740       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6741
6742       archive_cmds=''
6743       hardcode_direct=yes
6744       hardcode_libdir_separator=':'
6745       link_all_deplibs=yes
6746
6747       if test "$GCC" = yes; then
6748         case $host_os in aix4.012|aix4.012.*)
6749         # We only want to do this on AIX 4.2 and lower, the check
6750         # below for broken collect2 doesn't work under 4.3+
6751           collect2name=`${CC} -print-prog-name=collect2`
6752           if test -f "$collect2name" && \
6753            strings "$collect2name" | grep resolve_lib_name >/dev/null
6754           then
6755           # We have reworked collect2
6756           hardcode_direct=yes
6757           else
6758           # We have old collect2
6759           hardcode_direct=unsupported
6760           # It fails to find uninstalled libraries when the uninstalled
6761           # path is not listed in the libpath.  Setting hardcode_minus_L
6762           # to unsupported forces relinking
6763           hardcode_minus_L=yes
6764           hardcode_libdir_flag_spec='-L$libdir'
6765           hardcode_libdir_separator=
6766           fi
6767         esac
6768         shared_flag='-shared'
6769       else
6770         # not using gcc
6771         if test "$host_cpu" = ia64; then
6772         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6773         # chokes on -Wl,-G. The following line is correct:
6774           shared_flag='-G'
6775         else
6776         if test "$aix_use_runtimelinking" = yes; then
6777             shared_flag='${wl}-G'
6778           else
6779             shared_flag='${wl}-bM:SRE'
6780         fi
6781         fi
6782       fi
6783
6784       # It seems that -bexpall does not export symbols beginning with
6785       # underscore (_), so it is better to generate a list of symbols to export.
6786       always_export_symbols=yes
6787       if test "$aix_use_runtimelinking" = yes; then
6788         # Warning - without using the other runtime loading flags (-brtl),
6789         # -berok will link without error, but may produce a broken library.
6790         allow_undefined_flag='-berok'
6791        # Determine the default libpath from the value encoded in an empty executable.
6792        cat >conftest.$ac_ext <<_ACEOF
6793 /* confdefs.h.  */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h.  */
6798
6799 int
6800 main ()
6801 {
6802
6803   ;
6804   return 0;
6805 }
6806 _ACEOF
6807 rm -f conftest.$ac_objext conftest$ac_exeext
6808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6809   (eval $ac_link) 2>conftest.er1
6810   ac_status=$?
6811   grep -v '^ *+' conftest.er1 >conftest.err
6812   rm -f conftest.er1
6813   cat conftest.err >&5
6814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815   (exit $ac_status); } &&
6816          { ac_try='test -z "$ac_c_werror_flag"
6817                          || test ! -s conftest.err'
6818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819   (eval $ac_try) 2>&5
6820   ac_status=$?
6821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822   (exit $ac_status); }; } &&
6823          { ac_try='test -s conftest$ac_exeext'
6824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825   (eval $ac_try) 2>&5
6826   ac_status=$?
6827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828   (exit $ac_status); }; }; then
6829
6830 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6831 }'`
6832 # Check for a 64-bit object if we didn't find anything.
6833 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; }
6834 }'`; fi
6835 else
6836   echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6838
6839 fi
6840 rm -f conftest.err conftest.$ac_objext \
6841       conftest$ac_exeext conftest.$ac_ext
6842 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6843
6844        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6845         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"
6846        else
6847         if test "$host_cpu" = ia64; then
6848           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6849           allow_undefined_flag="-z nodefs"
6850           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"
6851         else
6852          # Determine the default libpath from the value encoded in an empty executable.
6853          cat >conftest.$ac_ext <<_ACEOF
6854 /* confdefs.h.  */
6855 _ACEOF
6856 cat confdefs.h >>conftest.$ac_ext
6857 cat >>conftest.$ac_ext <<_ACEOF
6858 /* end confdefs.h.  */
6859
6860 int
6861 main ()
6862 {
6863
6864   ;
6865   return 0;
6866 }
6867 _ACEOF
6868 rm -f conftest.$ac_objext conftest$ac_exeext
6869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6870   (eval $ac_link) 2>conftest.er1
6871   ac_status=$?
6872   grep -v '^ *+' conftest.er1 >conftest.err
6873   rm -f conftest.er1
6874   cat conftest.err >&5
6875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876   (exit $ac_status); } &&
6877          { ac_try='test -z "$ac_c_werror_flag"
6878                          || test ! -s conftest.err'
6879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880   (eval $ac_try) 2>&5
6881   ac_status=$?
6882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883   (exit $ac_status); }; } &&
6884          { ac_try='test -s conftest$ac_exeext'
6885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886   (eval $ac_try) 2>&5
6887   ac_status=$?
6888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889   (exit $ac_status); }; }; then
6890
6891 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6892 }'`
6893 # Check for a 64-bit object if we didn't find anything.
6894 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; }
6895 }'`; fi
6896 else
6897   echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6899
6900 fi
6901 rm -f conftest.err conftest.$ac_objext \
6902       conftest$ac_exeext conftest.$ac_ext
6903 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6904
6905          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6906           # Warning - without using the other run time loading flags,
6907           # -berok will link without error, but may produce a broken library.
6908           no_undefined_flag=' ${wl}-bernotok'
6909           allow_undefined_flag=' ${wl}-berok'
6910           # -bexpall does not export symbols beginning with underscore (_)
6911           always_export_symbols=yes
6912           # Exported symbols can be pulled into shared objects from archives
6913           whole_archive_flag_spec=' '
6914           archive_cmds_need_lc=yes
6915           # This is similar to how AIX traditionally builds it's shared libraries.
6916           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'
6917         fi
6918       fi
6919       ;;
6920
6921     amigaos*)
6922       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)'
6923       hardcode_libdir_flag_spec='-L$libdir'
6924       hardcode_minus_L=yes
6925       # see comment about different semantics on the GNU ld section
6926       ld_shlibs=no
6927       ;;
6928
6929     bsdi[45]*)
6930       export_dynamic_flag_spec=-rdynamic
6931       ;;
6932
6933     cygwin* | mingw* | pw32*)
6934       # When not using gcc, we currently assume that we are using
6935       # Microsoft Visual C++.
6936       # hardcode_libdir_flag_spec is actually meaningless, as there is
6937       # no search path for DLLs.
6938       hardcode_libdir_flag_spec=' '
6939       allow_undefined_flag=unsupported
6940       # Tell ltmain to make .lib files, not .a files.
6941       libext=lib
6942       # Tell ltmain to make .dll files, not .so files.
6943       shrext_cmds=".dll"
6944       # FIXME: Setting linknames here is a bad hack.
6945       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6946       # The linker will automatically build a .lib file if we build a DLL.
6947       old_archive_From_new_cmds='true'
6948       # FIXME: Should let the user specify the lib program.
6949       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6950       fix_srcfile_path='`cygpath -w "$srcfile"`'
6951       enable_shared_with_static_runtimes=yes
6952       ;;
6953
6954     darwin* | rhapsody*)
6955       case "$host_os" in
6956         rhapsody* | darwin1.[012])
6957          allow_undefined_flag='${wl}-undefined ${wl}suppress'
6958          ;;
6959        *) # Darwin 1.3 on
6960          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6961            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6962          else
6963            case ${MACOSX_DEPLOYMENT_TARGET} in
6964              10.[012])
6965                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6966                ;;
6967              10.*)
6968                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6969                ;;
6970            esac
6971          fi
6972          ;;
6973       esac
6974       archive_cmds_need_lc=no
6975       hardcode_direct=no
6976       hardcode_automatic=yes
6977       hardcode_shlibpath_var=unsupported
6978       whole_archive_flag_spec=''
6979       link_all_deplibs=yes
6980     if test "$GCC" = yes ; then
6981         output_verbose_link_cmd='echo'
6982         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6983       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6984       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6985       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}'
6986       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}'
6987     else
6988       case "$cc_basename" in
6989         xlc*)
6990          output_verbose_link_cmd='echo'
6991          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6992          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6993           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6994          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}'
6995           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}'
6996           ;;
6997        *)
6998          ld_shlibs=no
6999           ;;
7000       esac
7001     fi
7002       ;;
7003
7004     dgux*)
7005       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7006       hardcode_libdir_flag_spec='-L$libdir'
7007       hardcode_shlibpath_var=no
7008       ;;
7009
7010     freebsd1*)
7011       ld_shlibs=no
7012       ;;
7013
7014     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7015     # support.  Future versions do this automatically, but an explicit c++rt0.o
7016     # does not break anything, and helps significantly (at the cost of a little
7017     # extra space).
7018     freebsd2.2*)
7019       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7020       hardcode_libdir_flag_spec='-R$libdir'
7021       hardcode_direct=yes
7022       hardcode_shlibpath_var=no
7023       ;;
7024
7025     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7026     freebsd2*)
7027       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7028       hardcode_direct=yes
7029       hardcode_minus_L=yes
7030       hardcode_shlibpath_var=no
7031       ;;
7032
7033     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7034     freebsd* | kfreebsd*-gnu)
7035       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7036       hardcode_libdir_flag_spec='-R$libdir'
7037       hardcode_direct=yes
7038       hardcode_shlibpath_var=no
7039       ;;
7040
7041     hpux9*)
7042       if test "$GCC" = yes; then
7043         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'
7044       else
7045         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'
7046       fi
7047       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7048       hardcode_libdir_separator=:
7049       hardcode_direct=yes
7050
7051       # hardcode_minus_L: Not really in the search PATH,
7052       # but as the default location of the library.
7053       hardcode_minus_L=yes
7054       export_dynamic_flag_spec='${wl}-E'
7055       ;;
7056
7057     hpux10* | hpux11*)
7058       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7059         case "$host_cpu" in
7060         hppa*64*|ia64*)
7061           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7062           ;;
7063         *)
7064           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7065           ;;
7066         esac
7067       else
7068         case "$host_cpu" in
7069         hppa*64*|ia64*)
7070           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7071           ;;
7072         *)
7073           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7074           ;;
7075         esac
7076       fi
7077       if test "$with_gnu_ld" = no; then
7078         case "$host_cpu" in
7079         hppa*64*)
7080           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7081           hardcode_libdir_flag_spec_ld='+b $libdir'
7082           hardcode_libdir_separator=:
7083           hardcode_direct=no
7084           hardcode_shlibpath_var=no
7085           ;;
7086         ia64*)
7087           hardcode_libdir_flag_spec='-L$libdir'
7088           hardcode_direct=no
7089           hardcode_shlibpath_var=no
7090
7091           # hardcode_minus_L: Not really in the search PATH,
7092           # but as the default location of the library.
7093           hardcode_minus_L=yes
7094           ;;
7095         *)
7096           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7097           hardcode_libdir_separator=:
7098           hardcode_direct=yes
7099           export_dynamic_flag_spec='${wl}-E'
7100
7101           # hardcode_minus_L: Not really in the search PATH,
7102           # but as the default location of the library.
7103           hardcode_minus_L=yes
7104           ;;
7105         esac
7106       fi
7107       ;;
7108
7109     irix5* | irix6* | nonstopux*)
7110       if test "$GCC" = yes; then
7111         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'
7112       else
7113         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'
7114         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7115       fi
7116       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7117       hardcode_libdir_separator=:
7118       link_all_deplibs=yes
7119       ;;
7120
7121     netbsd*)
7122       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7123         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7124       else
7125         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7126       fi
7127       hardcode_libdir_flag_spec='-R$libdir'
7128       hardcode_direct=yes
7129       hardcode_shlibpath_var=no
7130       ;;
7131
7132     newsos6)
7133       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7134       hardcode_direct=yes
7135       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7136       hardcode_libdir_separator=:
7137       hardcode_shlibpath_var=no
7138       ;;
7139
7140     openbsd*)
7141       hardcode_direct=yes
7142       hardcode_shlibpath_var=no
7143       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7144         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7145         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7146         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7147         export_dynamic_flag_spec='${wl}-E'
7148       else
7149        case $host_os in
7150          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7151            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7152            hardcode_libdir_flag_spec='-R$libdir'
7153            ;;
7154          *)
7155            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7156            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7157            ;;
7158        esac
7159       fi
7160       ;;
7161
7162     os2*)
7163       hardcode_libdir_flag_spec='-L$libdir'
7164       hardcode_minus_L=yes
7165       allow_undefined_flag=unsupported
7166       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'
7167       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7168       ;;
7169
7170     osf3*)
7171       if test "$GCC" = yes; then
7172         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7173         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'
7174       else
7175         allow_undefined_flag=' -expect_unresolved \*'
7176         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'
7177       fi
7178       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7179       hardcode_libdir_separator=:
7180       ;;
7181
7182     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7183       if test "$GCC" = yes; then
7184         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7185         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'
7186         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7187       else
7188         allow_undefined_flag=' -expect_unresolved \*'
7189         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'
7190         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7191         $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'
7192
7193         # Both c and cxx compiler support -rpath directly
7194         hardcode_libdir_flag_spec='-rpath $libdir'
7195       fi
7196       hardcode_libdir_separator=:
7197       ;;
7198
7199     sco3.2v5*)
7200       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7201       hardcode_shlibpath_var=no
7202       export_dynamic_flag_spec='${wl}-Bexport'
7203       runpath_var=LD_RUN_PATH
7204       hardcode_runpath_var=yes
7205       ;;
7206
7207     solaris*)
7208       no_undefined_flag=' -z text'
7209       if test "$GCC" = yes; then
7210         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7211         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7212           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7213       else
7214         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7215         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7216         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7217       fi
7218       hardcode_libdir_flag_spec='-R$libdir'
7219       hardcode_shlibpath_var=no
7220       case $host_os in
7221       solaris2.[0-5] | solaris2.[0-5].*) ;;
7222       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7223         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7224       esac
7225       link_all_deplibs=yes
7226       ;;
7227
7228     sunos4*)
7229       if test "x$host_vendor" = xsequent; then
7230         # Use $CC to link under sequent, because it throws in some extra .o
7231         # files that make .init and .fini sections work.
7232         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7233       else
7234         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7235       fi
7236       hardcode_libdir_flag_spec='-L$libdir'
7237       hardcode_direct=yes
7238       hardcode_minus_L=yes
7239       hardcode_shlibpath_var=no
7240       ;;
7241
7242     sysv4)
7243       case $host_vendor in
7244         sni)
7245           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7246           hardcode_direct=yes # is this really true???
7247         ;;
7248         siemens)
7249           ## LD is ld it makes a PLAMLIB
7250           ## CC just makes a GrossModule.
7251           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7252           reload_cmds='$CC -r -o $output$reload_objs'
7253           hardcode_direct=no
7254         ;;
7255         motorola)
7256           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7257           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7258         ;;
7259       esac
7260       runpath_var='LD_RUN_PATH'
7261       hardcode_shlibpath_var=no
7262       ;;
7263
7264     sysv4.3*)
7265       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7266       hardcode_shlibpath_var=no
7267       export_dynamic_flag_spec='-Bexport'
7268       ;;
7269
7270     sysv4*MP*)
7271       if test -d /usr/nec; then
7272         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7273         hardcode_shlibpath_var=no
7274         runpath_var=LD_RUN_PATH
7275         hardcode_runpath_var=yes
7276         ld_shlibs=yes
7277       fi
7278       ;;
7279
7280     sysv4.2uw2*)
7281       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7282       hardcode_direct=yes
7283       hardcode_minus_L=no
7284       hardcode_shlibpath_var=no
7285       hardcode_runpath_var=yes
7286       runpath_var=LD_RUN_PATH
7287       ;;
7288
7289    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7290       no_undefined_flag='${wl}-z ${wl}text'
7291       if test "$GCC" = yes; then
7292         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7293       else
7294         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7295       fi
7296       runpath_var='LD_RUN_PATH'
7297       hardcode_shlibpath_var=no
7298       ;;
7299
7300     sysv5*)
7301       no_undefined_flag=' -z text'
7302       # $CC -shared without GNU ld will not create a library from C++
7303       # object files and a static libstdc++, better avoid it by now
7304       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7305       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7306                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7307       hardcode_libdir_flag_spec=
7308       hardcode_shlibpath_var=no
7309       runpath_var='LD_RUN_PATH'
7310       ;;
7311
7312     uts4*)
7313       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7314       hardcode_libdir_flag_spec='-L$libdir'
7315       hardcode_shlibpath_var=no
7316       ;;
7317
7318     *)
7319       ld_shlibs=no
7320       ;;
7321     esac
7322   fi
7323
7324 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7325 echo "${ECHO_T}$ld_shlibs" >&6
7326 test "$ld_shlibs" = no && can_build_shared=no
7327
7328 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7329 if test "$GCC" = yes; then
7330   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7331 fi
7332
7333 #
7334 # Do we need to explicitly link libc?
7335 #
7336 case "x$archive_cmds_need_lc" in
7337 x|xyes)
7338   # Assume -lc should be added
7339   archive_cmds_need_lc=yes
7340
7341   if test "$enable_shared" = yes && test "$GCC" = yes; then
7342     case $archive_cmds in
7343     *'~'*)
7344       # FIXME: we may have to deal with multi-command sequences.
7345       ;;
7346     '$CC '*)
7347       # Test whether the compiler implicitly links with -lc since on some
7348       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7349       # to ld, don't add -lc before -lgcc.
7350       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7351 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7352       $rm conftest*
7353       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7354
7355       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7356   (eval $ac_compile) 2>&5
7357   ac_status=$?
7358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359   (exit $ac_status); } 2>conftest.err; then
7360         soname=conftest
7361         lib=conftest
7362         libobjs=conftest.$ac_objext
7363         deplibs=
7364         wl=$lt_prog_compiler_wl
7365         compiler_flags=-v
7366         linker_flags=-v
7367         verstring=
7368         output_objdir=.
7369         libname=conftest
7370         lt_save_allow_undefined_flag=$allow_undefined_flag
7371         allow_undefined_flag=
7372         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7373   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7374   ac_status=$?
7375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376   (exit $ac_status); }
7377         then
7378           archive_cmds_need_lc=no
7379         else
7380           archive_cmds_need_lc=yes
7381         fi
7382         allow_undefined_flag=$lt_save_allow_undefined_flag
7383       else
7384         cat conftest.err 1>&5
7385       fi
7386       $rm conftest*
7387       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7388 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7389       ;;
7390     esac
7391   fi
7392   ;;
7393 esac
7394
7395 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7396 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7397 library_names_spec=
7398 libname_spec='lib$name'
7399 soname_spec=
7400 shrext_cmds=".so"
7401 postinstall_cmds=
7402 postuninstall_cmds=
7403 finish_cmds=
7404 finish_eval=
7405 shlibpath_var=
7406 shlibpath_overrides_runpath=unknown
7407 version_type=none
7408 dynamic_linker="$host_os ld.so"
7409 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7410 if test "$GCC" = yes; then
7411   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7412   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7413     # if the path contains ";" then we assume it to be the separator
7414     # otherwise default to the standard path separator (i.e. ":") - it is
7415     # assumed that no part of a normal pathname contains ";" but that should
7416     # okay in the real world where ";" in dirpaths is itself problematic.
7417     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7418   else
7419     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7420   fi
7421 else
7422   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7423 fi
7424 need_lib_prefix=unknown
7425 hardcode_into_libs=no
7426
7427 # when you set need_version to no, make sure it does not cause -set_version
7428 # flags to be left without arguments
7429 need_version=unknown
7430
7431 case $host_os in
7432 aix3*)
7433   version_type=linux
7434   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7435   shlibpath_var=LIBPATH
7436
7437   # AIX 3 has no versioning support, so we append a major version to the name.
7438   soname_spec='${libname}${release}${shared_ext}$major'
7439   ;;
7440
7441 aix4* | aix5*)
7442   version_type=linux
7443   need_lib_prefix=no
7444   need_version=no
7445   hardcode_into_libs=yes
7446   if test "$host_cpu" = ia64; then
7447     # AIX 5 supports IA64
7448     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7449     shlibpath_var=LD_LIBRARY_PATH
7450   else
7451     # With GCC up to 2.95.x, collect2 would create an import file
7452     # for dependence libraries.  The import file would start with
7453     # the line `#! .'.  This would cause the generated library to
7454     # depend on `.', always an invalid library.  This was fixed in
7455     # development snapshots of GCC prior to 3.0.
7456     case $host_os in
7457       aix4 | aix4.[01] | aix4.[01].*)
7458       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7459            echo ' yes '
7460            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7461         :
7462       else
7463         can_build_shared=no
7464       fi
7465       ;;
7466     esac
7467     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7468     # soname into executable. Probably we can add versioning support to
7469     # collect2, so additional links can be useful in future.
7470     if test "$aix_use_runtimelinking" = yes; then
7471       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7472       # instead of lib<name>.a to let people know that these are not
7473       # typical AIX shared libraries.
7474       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7475     else
7476       # We preserve .a as extension for shared libraries through AIX4.2
7477       # and later when we are not doing run time linking.
7478       library_names_spec='${libname}${release}.a $libname.a'
7479       soname_spec='${libname}${release}${shared_ext}$major'
7480     fi
7481     shlibpath_var=LIBPATH
7482   fi
7483   ;;
7484
7485 amigaos*)
7486   library_names_spec='$libname.ixlibrary $libname.a'
7487   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7488   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'
7489   ;;
7490
7491 beos*)
7492   library_names_spec='${libname}${shared_ext}'
7493   dynamic_linker="$host_os ld.so"
7494   shlibpath_var=LIBRARY_PATH
7495   ;;
7496
7497 bsdi[45]*)
7498   version_type=linux
7499   need_version=no
7500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7501   soname_spec='${libname}${release}${shared_ext}$major'
7502   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7503   shlibpath_var=LD_LIBRARY_PATH
7504   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7505   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7506   # the default ld.so.conf also contains /usr/contrib/lib and
7507   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7508   # libtool to hard-code these into programs
7509   ;;
7510
7511 cygwin* | mingw* | pw32*)
7512   version_type=windows
7513   shrext_cmds=".dll"
7514   need_version=no
7515   need_lib_prefix=no
7516
7517   case $GCC,$host_os in
7518   yes,cygwin* | yes,mingw* | yes,pw32*)
7519     library_names_spec='$libname.dll.a'
7520     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7521     postinstall_cmds='base_file=`basename \${file}`~
7522       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7523       dldir=$destdir/`dirname \$dlpath`~
7524       test -d \$dldir || mkdir -p \$dldir~
7525       $install_prog $dir/$dlname \$dldir/$dlname'
7526     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7527       dlpath=$dir/\$dldll~
7528        $rm \$dlpath'
7529     shlibpath_overrides_runpath=yes
7530
7531     case $host_os in
7532     cygwin*)
7533       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7534       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7535       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7536       ;;
7537     mingw*)
7538       # MinGW DLLs use traditional 'lib' prefix
7539       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7540       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7541       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7542         # It is most probably a Windows format PATH printed by
7543         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7544         # path with ; separators, and with drive letters. We can handle the
7545         # drive letters (cygwin fileutils understands them), so leave them,
7546         # especially as we might pass files found there to a mingw objdump,
7547         # which wouldn't understand a cygwinified path. Ahh.
7548         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7549       else
7550         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7551       fi
7552       ;;
7553     pw32*)
7554       # pw32 DLLs use 'pw' prefix rather than 'lib'
7555       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7556       ;;
7557     esac
7558     ;;
7559
7560   *)
7561     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7562     ;;
7563   esac
7564   dynamic_linker='Win32 ld.exe'
7565   # FIXME: first we should search . and the directory the executable is in
7566   shlibpath_var=PATH
7567   ;;
7568
7569 darwin* | rhapsody*)
7570   dynamic_linker="$host_os dyld"
7571   version_type=darwin
7572   need_lib_prefix=no
7573   need_version=no
7574   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7575   soname_spec='${libname}${release}${major}$shared_ext'
7576   shlibpath_overrides_runpath=yes
7577   shlibpath_var=DYLD_LIBRARY_PATH
7578   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7579   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7580   if test "$GCC" = yes; then
7581     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"`
7582   else
7583     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7584   fi
7585   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7586   ;;
7587
7588 dgux*)
7589   version_type=linux
7590   need_lib_prefix=no
7591   need_version=no
7592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7593   soname_spec='${libname}${release}${shared_ext}$major'
7594   shlibpath_var=LD_LIBRARY_PATH
7595   ;;
7596
7597 freebsd1*)
7598   dynamic_linker=no
7599   ;;
7600
7601 kfreebsd*-gnu)
7602   version_type=linux
7603   need_lib_prefix=no
7604   need_version=no
7605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7606   soname_spec='${libname}${release}${shared_ext}$major'
7607   shlibpath_var=LD_LIBRARY_PATH
7608   shlibpath_overrides_runpath=no
7609   hardcode_into_libs=yes
7610   dynamic_linker='GNU ld.so'
7611   ;;
7612
7613 freebsd*)
7614   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7615   version_type=freebsd-$objformat
7616   case $version_type in
7617     freebsd-elf*)
7618       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7619       need_version=no
7620       need_lib_prefix=no
7621       ;;
7622     freebsd-*)
7623       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7624       need_version=yes
7625       ;;
7626   esac
7627   shlibpath_var=LD_LIBRARY_PATH
7628   case $host_os in
7629   freebsd2*)
7630     shlibpath_overrides_runpath=yes
7631     ;;
7632   freebsd3.01* | freebsdelf3.01*)
7633     shlibpath_overrides_runpath=yes
7634     hardcode_into_libs=yes
7635     ;;
7636   *) # from 3.2 on
7637     shlibpath_overrides_runpath=no
7638     hardcode_into_libs=yes
7639     ;;
7640   esac
7641   ;;
7642
7643 gnu*)
7644   version_type=linux
7645   need_lib_prefix=no
7646   need_version=no
7647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7648   soname_spec='${libname}${release}${shared_ext}$major'
7649   shlibpath_var=LD_LIBRARY_PATH
7650   hardcode_into_libs=yes
7651   ;;
7652
7653 hpux9* | hpux10* | hpux11*)
7654   # Give a soname corresponding to the major version so that dld.sl refuses to
7655   # link against other versions.
7656   version_type=sunos
7657   need_lib_prefix=no
7658   need_version=no
7659   case "$host_cpu" in
7660   ia64*)
7661     shrext_cmds='.so'
7662     hardcode_into_libs=yes
7663     dynamic_linker="$host_os dld.so"
7664     shlibpath_var=LD_LIBRARY_PATH
7665     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7666     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7667     soname_spec='${libname}${release}${shared_ext}$major'
7668     if test "X$HPUX_IA64_MODE" = X32; then
7669       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7670     else
7671       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7672     fi
7673     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7674     ;;
7675    hppa*64*)
7676      shrext_cmds='.sl'
7677      hardcode_into_libs=yes
7678      dynamic_linker="$host_os dld.sl"
7679      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7680      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7681      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7682      soname_spec='${libname}${release}${shared_ext}$major'
7683      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7684      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7685      ;;
7686    *)
7687     shrext_cmds='.sl'
7688     dynamic_linker="$host_os dld.sl"
7689     shlibpath_var=SHLIB_PATH
7690     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7691     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7692     soname_spec='${libname}${release}${shared_ext}$major'
7693     ;;
7694   esac
7695   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7696   postinstall_cmds='chmod 555 $lib'
7697   ;;
7698
7699 irix5* | irix6* | nonstopux*)
7700   case $host_os in
7701     nonstopux*) version_type=nonstopux ;;
7702     *)
7703         if test "$lt_cv_prog_gnu_ld" = yes; then
7704                 version_type=linux
7705         else
7706                 version_type=irix
7707         fi ;;
7708   esac
7709   need_lib_prefix=no
7710   need_version=no
7711   soname_spec='${libname}${release}${shared_ext}$major'
7712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7713   case $host_os in
7714   irix5* | nonstopux*)
7715     libsuff= shlibsuff=
7716     ;;
7717   *)
7718     case $LD in # libtool.m4 will add one of these switches to LD
7719     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7720       libsuff= shlibsuff= libmagic=32-bit;;
7721     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7722       libsuff=32 shlibsuff=N32 libmagic=N32;;
7723     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7724       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7725     *) libsuff= shlibsuff= libmagic=never-match;;
7726     esac
7727     ;;
7728   esac
7729   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7730   shlibpath_overrides_runpath=no
7731   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7732   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7733   hardcode_into_libs=yes
7734   ;;
7735
7736 # No shared lib support for Linux oldld, aout, or coff.
7737 linux*oldld* | linux*aout* | linux*coff*)
7738   dynamic_linker=no
7739   ;;
7740
7741 # This must be Linux ELF.
7742 linux*)
7743   version_type=linux
7744   need_lib_prefix=no
7745   need_version=no
7746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7747   soname_spec='${libname}${release}${shared_ext}$major'
7748   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7749   shlibpath_var=LD_LIBRARY_PATH
7750   shlibpath_overrides_runpath=no
7751   # This implies no fast_install, which is unacceptable.
7752   # Some rework will be needed to allow for fast_install
7753   # before this can be enabled.
7754   hardcode_into_libs=yes
7755
7756   # Append ld.so.conf contents to the search path
7757   if test -f /etc/ld.so.conf; then
7758     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7759     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7760   fi
7761
7762   # We used to test for /lib/ld.so.1 and disable shared libraries on
7763   # powerpc, because MkLinux only supported shared libraries with the
7764   # GNU dynamic linker.  Since this was broken with cross compilers,
7765   # most powerpc-linux boxes support dynamic linking these days and
7766   # people can always --disable-shared, the test was removed, and we
7767   # assume the GNU/Linux dynamic linker is in use.
7768   dynamic_linker='GNU/Linux ld.so'
7769   ;;
7770
7771 knetbsd*-gnu)
7772   version_type=linux
7773   need_lib_prefix=no
7774   need_version=no
7775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7776   soname_spec='${libname}${release}${shared_ext}$major'
7777   shlibpath_var=LD_LIBRARY_PATH
7778   shlibpath_overrides_runpath=no
7779   hardcode_into_libs=yes
7780   dynamic_linker='GNU ld.so'
7781   ;;
7782
7783 netbsd*)
7784   version_type=sunos
7785   need_lib_prefix=no
7786   need_version=no
7787   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7788     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7789     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7790     dynamic_linker='NetBSD (a.out) ld.so'
7791   else
7792     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7793     soname_spec='${libname}${release}${shared_ext}$major'
7794     dynamic_linker='NetBSD ld.elf_so'
7795   fi
7796   shlibpath_var=LD_LIBRARY_PATH
7797   shlibpath_overrides_runpath=yes
7798   hardcode_into_libs=yes
7799   ;;
7800
7801 newsos6)
7802   version_type=linux
7803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7804   shlibpath_var=LD_LIBRARY_PATH
7805   shlibpath_overrides_runpath=yes
7806   ;;
7807
7808 nto-qnx*)
7809   version_type=linux
7810   need_lib_prefix=no
7811   need_version=no
7812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7813   soname_spec='${libname}${release}${shared_ext}$major'
7814   shlibpath_var=LD_LIBRARY_PATH
7815   shlibpath_overrides_runpath=yes
7816   ;;
7817
7818 openbsd*)
7819   version_type=sunos
7820   need_lib_prefix=no
7821   need_version=no
7822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7823   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7824   shlibpath_var=LD_LIBRARY_PATH
7825   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7826     case $host_os in
7827       openbsd2.[89] | openbsd2.[89].*)
7828         shlibpath_overrides_runpath=no
7829         ;;
7830       *)
7831         shlibpath_overrides_runpath=yes
7832         ;;
7833       esac
7834   else
7835     shlibpath_overrides_runpath=yes
7836   fi
7837   ;;
7838
7839 os2*)
7840   libname_spec='$name'
7841   shrext_cmds=".dll"
7842   need_lib_prefix=no
7843   library_names_spec='$libname${shared_ext} $libname.a'
7844   dynamic_linker='OS/2 ld.exe'
7845   shlibpath_var=LIBPATH
7846   ;;
7847
7848 osf3* | osf4* | osf5*)
7849   version_type=osf
7850   need_lib_prefix=no
7851   need_version=no
7852   soname_spec='${libname}${release}${shared_ext}$major'
7853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7854   shlibpath_var=LD_LIBRARY_PATH
7855   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7856   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7857   ;;
7858
7859 sco3.2v5*)
7860   version_type=osf
7861   soname_spec='${libname}${release}${shared_ext}$major'
7862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7863   shlibpath_var=LD_LIBRARY_PATH
7864   ;;
7865
7866 solaris*)
7867   version_type=linux
7868   need_lib_prefix=no
7869   need_version=no
7870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7871   soname_spec='${libname}${release}${shared_ext}$major'
7872   shlibpath_var=LD_LIBRARY_PATH
7873   shlibpath_overrides_runpath=yes
7874   hardcode_into_libs=yes
7875   # ldd complains unless libraries are executable
7876   postinstall_cmds='chmod +x $lib'
7877   ;;
7878
7879 sunos4*)
7880   version_type=sunos
7881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7882   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7883   shlibpath_var=LD_LIBRARY_PATH
7884   shlibpath_overrides_runpath=yes
7885   if test "$with_gnu_ld" = yes; then
7886     need_lib_prefix=no
7887   fi
7888   need_version=yes
7889   ;;
7890
7891 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7892   version_type=linux
7893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7894   soname_spec='${libname}${release}${shared_ext}$major'
7895   shlibpath_var=LD_LIBRARY_PATH
7896   case $host_vendor in
7897     sni)
7898       shlibpath_overrides_runpath=no
7899       need_lib_prefix=no
7900       export_dynamic_flag_spec='${wl}-Blargedynsym'
7901       runpath_var=LD_RUN_PATH
7902       ;;
7903     siemens)
7904       need_lib_prefix=no
7905       ;;
7906     motorola)
7907       need_lib_prefix=no
7908       need_version=no
7909       shlibpath_overrides_runpath=no
7910       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7911       ;;
7912   esac
7913   ;;
7914
7915 sysv4*MP*)
7916   if test -d /usr/nec ;then
7917     version_type=linux
7918     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7919     soname_spec='$libname${shared_ext}.$major'
7920     shlibpath_var=LD_LIBRARY_PATH
7921   fi
7922   ;;
7923
7924 uts4*)
7925   version_type=linux
7926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7927   soname_spec='${libname}${release}${shared_ext}$major'
7928   shlibpath_var=LD_LIBRARY_PATH
7929   ;;
7930
7931 *)
7932   dynamic_linker=no
7933   ;;
7934 esac
7935 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7936 echo "${ECHO_T}$dynamic_linker" >&6
7937 test "$dynamic_linker" = no && can_build_shared=no
7938
7939 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7940 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7941 hardcode_action=
7942 if test -n "$hardcode_libdir_flag_spec" || \
7943    test -n "$runpath_var" || \
7944    test "X$hardcode_automatic" = "Xyes" ; then
7945
7946   # We can hardcode non-existant directories.
7947   if test "$hardcode_direct" != no &&
7948      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7949      # have to relink, otherwise we might link with an installed library
7950      # when we should be linking with a yet-to-be-installed one
7951      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7952      test "$hardcode_minus_L" != no; then
7953     # Linking always hardcodes the temporary library directory.
7954     hardcode_action=relink
7955   else
7956     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7957     hardcode_action=immediate
7958   fi
7959 else
7960   # We cannot hardcode anything, or else we can only hardcode existing
7961   # directories.
7962   hardcode_action=unsupported
7963 fi
7964 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7965 echo "${ECHO_T}$hardcode_action" >&6
7966
7967 if test "$hardcode_action" = relink; then
7968   # Fast installation is not supported
7969   enable_fast_install=no
7970 elif test "$shlibpath_overrides_runpath" = yes ||
7971      test "$enable_shared" = no; then
7972   # Fast installation is not necessary
7973   enable_fast_install=needless
7974 fi
7975
7976 striplib=
7977 old_striplib=
7978 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7979 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7980 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7981   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7982   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7983   echo "$as_me:$LINENO: result: yes" >&5
7984 echo "${ECHO_T}yes" >&6
7985 else
7986 # FIXME - insert some real tests, host_os isn't really good enough
7987   case $host_os in
7988    darwin*)
7989        if test -n "$STRIP" ; then
7990          striplib="$STRIP -x"
7991          echo "$as_me:$LINENO: result: yes" >&5
7992 echo "${ECHO_T}yes" >&6
7993        else
7994   echo "$as_me:$LINENO: result: no" >&5
7995 echo "${ECHO_T}no" >&6
7996 fi
7997        ;;
7998    *)
7999   echo "$as_me:$LINENO: result: no" >&5
8000 echo "${ECHO_T}no" >&6
8001     ;;
8002   esac
8003 fi
8004
8005 if test "x$enable_dlopen" != xyes; then
8006   enable_dlopen=unknown
8007   enable_dlopen_self=unknown
8008   enable_dlopen_self_static=unknown
8009 else
8010   lt_cv_dlopen=no
8011   lt_cv_dlopen_libs=
8012
8013   case $host_os in
8014   beos*)
8015     lt_cv_dlopen="load_add_on"
8016     lt_cv_dlopen_libs=
8017     lt_cv_dlopen_self=yes
8018     ;;
8019
8020   mingw* | pw32*)
8021     lt_cv_dlopen="LoadLibrary"
8022     lt_cv_dlopen_libs=
8023    ;;
8024
8025   cygwin*)
8026     lt_cv_dlopen="dlopen"
8027     lt_cv_dlopen_libs=
8028    ;;
8029
8030   darwin*)
8031   # if libdl is installed we need to link against it
8032     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8033 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8034 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8035   echo $ECHO_N "(cached) $ECHO_C" >&6
8036 else
8037   ac_check_lib_save_LIBS=$LIBS
8038 LIBS="-ldl  $LIBS"
8039 cat >conftest.$ac_ext <<_ACEOF
8040 /* confdefs.h.  */
8041 _ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h.  */
8045
8046 /* Override any gcc2 internal prototype to avoid an error.  */
8047 #ifdef __cplusplus
8048 extern "C"
8049 #endif
8050 /* We use char because int might match the return type of a gcc2
8051    builtin and then its argument prototype would still apply.  */
8052 char dlopen ();
8053 int
8054 main ()
8055 {
8056 dlopen ();
8057   ;
8058   return 0;
8059 }
8060 _ACEOF
8061 rm -f conftest.$ac_objext conftest$ac_exeext
8062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8063   (eval $ac_link) 2>conftest.er1
8064   ac_status=$?
8065   grep -v '^ *+' conftest.er1 >conftest.err
8066   rm -f conftest.er1
8067   cat conftest.err >&5
8068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069   (exit $ac_status); } &&
8070          { ac_try='test -z "$ac_c_werror_flag"
8071                          || test ! -s conftest.err'
8072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073   (eval $ac_try) 2>&5
8074   ac_status=$?
8075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076   (exit $ac_status); }; } &&
8077          { ac_try='test -s conftest$ac_exeext'
8078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079   (eval $ac_try) 2>&5
8080   ac_status=$?
8081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); }; }; then
8083   ac_cv_lib_dl_dlopen=yes
8084 else
8085   echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8087
8088 ac_cv_lib_dl_dlopen=no
8089 fi
8090 rm -f conftest.err conftest.$ac_objext \
8091       conftest$ac_exeext conftest.$ac_ext
8092 LIBS=$ac_check_lib_save_LIBS
8093 fi
8094 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8095 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8096 if test $ac_cv_lib_dl_dlopen = yes; then
8097   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8098 else
8099
8100     lt_cv_dlopen="dyld"
8101     lt_cv_dlopen_libs=
8102     lt_cv_dlopen_self=yes
8103
8104 fi
8105
8106    ;;
8107
8108   *)
8109     echo "$as_me:$LINENO: checking for shl_load" >&5
8110 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8111 if test "${ac_cv_func_shl_load+set}" = set; then
8112   echo $ECHO_N "(cached) $ECHO_C" >&6
8113 else
8114   cat >conftest.$ac_ext <<_ACEOF
8115 /* confdefs.h.  */
8116 _ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h.  */
8120 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8121    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8122 #define shl_load innocuous_shl_load
8123
8124 /* System header to define __stub macros and hopefully few prototypes,
8125     which can conflict with char shl_load (); below.
8126     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8127     <limits.h> exists even on freestanding compilers.  */
8128
8129 #ifdef __STDC__
8130 # include <limits.h>
8131 #else
8132 # include <assert.h>
8133 #endif
8134
8135 #undef shl_load
8136
8137 /* Override any gcc2 internal prototype to avoid an error.  */
8138 #ifdef __cplusplus
8139 extern "C"
8140 {
8141 #endif
8142 /* We use char because int might match the return type of a gcc2
8143    builtin and then its argument prototype would still apply.  */
8144 char shl_load ();
8145 /* The GNU C library defines this for functions which it implements
8146     to always fail with ENOSYS.  Some functions are actually named
8147     something starting with __ and the normal name is an alias.  */
8148 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8149 choke me
8150 #else
8151 char (*f) () = shl_load;
8152 #endif
8153 #ifdef __cplusplus
8154 }
8155 #endif
8156
8157 int
8158 main ()
8159 {
8160 return f != shl_load;
8161   ;
8162   return 0;
8163 }
8164 _ACEOF
8165 rm -f conftest.$ac_objext conftest$ac_exeext
8166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8167   (eval $ac_link) 2>conftest.er1
8168   ac_status=$?
8169   grep -v '^ *+' conftest.er1 >conftest.err
8170   rm -f conftest.er1
8171   cat conftest.err >&5
8172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173   (exit $ac_status); } &&
8174          { ac_try='test -z "$ac_c_werror_flag"
8175                          || test ! -s conftest.err'
8176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177   (eval $ac_try) 2>&5
8178   ac_status=$?
8179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180   (exit $ac_status); }; } &&
8181          { ac_try='test -s conftest$ac_exeext'
8182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183   (eval $ac_try) 2>&5
8184   ac_status=$?
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); }; }; then
8187   ac_cv_func_shl_load=yes
8188 else
8189   echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8191
8192 ac_cv_func_shl_load=no
8193 fi
8194 rm -f conftest.err conftest.$ac_objext \
8195       conftest$ac_exeext conftest.$ac_ext
8196 fi
8197 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8198 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8199 if test $ac_cv_func_shl_load = yes; then
8200   lt_cv_dlopen="shl_load"
8201 else
8202   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8203 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8204 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8205   echo $ECHO_N "(cached) $ECHO_C" >&6
8206 else
8207   ac_check_lib_save_LIBS=$LIBS
8208 LIBS="-ldld  $LIBS"
8209 cat >conftest.$ac_ext <<_ACEOF
8210 /* confdefs.h.  */
8211 _ACEOF
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h.  */
8215
8216 /* Override any gcc2 internal prototype to avoid an error.  */
8217 #ifdef __cplusplus
8218 extern "C"
8219 #endif
8220 /* We use char because int might match the return type of a gcc2
8221    builtin and then its argument prototype would still apply.  */
8222 char shl_load ();
8223 int
8224 main ()
8225 {
8226 shl_load ();
8227   ;
8228   return 0;
8229 }
8230 _ACEOF
8231 rm -f conftest.$ac_objext conftest$ac_exeext
8232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8233   (eval $ac_link) 2>conftest.er1
8234   ac_status=$?
8235   grep -v '^ *+' conftest.er1 >conftest.err
8236   rm -f conftest.er1
8237   cat conftest.err >&5
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); } &&
8240          { ac_try='test -z "$ac_c_werror_flag"
8241                          || test ! -s conftest.err'
8242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243   (eval $ac_try) 2>&5
8244   ac_status=$?
8245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246   (exit $ac_status); }; } &&
8247          { ac_try='test -s conftest$ac_exeext'
8248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8249   (eval $ac_try) 2>&5
8250   ac_status=$?
8251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252   (exit $ac_status); }; }; then
8253   ac_cv_lib_dld_shl_load=yes
8254 else
8255   echo "$as_me: failed program was:" >&5
8256 sed 's/^/| /' conftest.$ac_ext >&5
8257
8258 ac_cv_lib_dld_shl_load=no
8259 fi
8260 rm -f conftest.err conftest.$ac_objext \
8261       conftest$ac_exeext conftest.$ac_ext
8262 LIBS=$ac_check_lib_save_LIBS
8263 fi
8264 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8265 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8266 if test $ac_cv_lib_dld_shl_load = yes; then
8267   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8268 else
8269   echo "$as_me:$LINENO: checking for dlopen" >&5
8270 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8271 if test "${ac_cv_func_dlopen+set}" = set; then
8272   echo $ECHO_N "(cached) $ECHO_C" >&6
8273 else
8274   cat >conftest.$ac_ext <<_ACEOF
8275 /* confdefs.h.  */
8276 _ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h.  */
8280 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8282 #define dlopen innocuous_dlopen
8283
8284 /* System header to define __stub macros and hopefully few prototypes,
8285     which can conflict with char dlopen (); below.
8286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8287     <limits.h> exists even on freestanding compilers.  */
8288
8289 #ifdef __STDC__
8290 # include <limits.h>
8291 #else
8292 # include <assert.h>
8293 #endif
8294
8295 #undef dlopen
8296
8297 /* Override any gcc2 internal prototype to avoid an error.  */
8298 #ifdef __cplusplus
8299 extern "C"
8300 {
8301 #endif
8302 /* We use char because int might match the return type of a gcc2
8303    builtin and then its argument prototype would still apply.  */
8304 char dlopen ();
8305 /* The GNU C library defines this for functions which it implements
8306     to always fail with ENOSYS.  Some functions are actually named
8307     something starting with __ and the normal name is an alias.  */
8308 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8309 choke me
8310 #else
8311 char (*f) () = dlopen;
8312 #endif
8313 #ifdef __cplusplus
8314 }
8315 #endif
8316
8317 int
8318 main ()
8319 {
8320 return f != dlopen;
8321   ;
8322   return 0;
8323 }
8324 _ACEOF
8325 rm -f conftest.$ac_objext conftest$ac_exeext
8326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8327   (eval $ac_link) 2>conftest.er1
8328   ac_status=$?
8329   grep -v '^ *+' conftest.er1 >conftest.err
8330   rm -f conftest.er1
8331   cat conftest.err >&5
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   (exit $ac_status); } &&
8334          { ac_try='test -z "$ac_c_werror_flag"
8335                          || test ! -s conftest.err'
8336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337   (eval $ac_try) 2>&5
8338   ac_status=$?
8339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340   (exit $ac_status); }; } &&
8341          { ac_try='test -s conftest$ac_exeext'
8342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343   (eval $ac_try) 2>&5
8344   ac_status=$?
8345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346   (exit $ac_status); }; }; then
8347   ac_cv_func_dlopen=yes
8348 else
8349   echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8351
8352 ac_cv_func_dlopen=no
8353 fi
8354 rm -f conftest.err conftest.$ac_objext \
8355       conftest$ac_exeext conftest.$ac_ext
8356 fi
8357 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8358 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8359 if test $ac_cv_func_dlopen = yes; then
8360   lt_cv_dlopen="dlopen"
8361 else
8362   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8363 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8364 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8365   echo $ECHO_N "(cached) $ECHO_C" >&6
8366 else
8367   ac_check_lib_save_LIBS=$LIBS
8368 LIBS="-ldl  $LIBS"
8369 cat >conftest.$ac_ext <<_ACEOF
8370 /* confdefs.h.  */
8371 _ACEOF
8372 cat confdefs.h >>conftest.$ac_ext
8373 cat >>conftest.$ac_ext <<_ACEOF
8374 /* end confdefs.h.  */
8375
8376 /* Override any gcc2 internal prototype to avoid an error.  */
8377 #ifdef __cplusplus
8378 extern "C"
8379 #endif
8380 /* We use char because int might match the return type of a gcc2
8381    builtin and then its argument prototype would still apply.  */
8382 char dlopen ();
8383 int
8384 main ()
8385 {
8386 dlopen ();
8387   ;
8388   return 0;
8389 }
8390 _ACEOF
8391 rm -f conftest.$ac_objext conftest$ac_exeext
8392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8393   (eval $ac_link) 2>conftest.er1
8394   ac_status=$?
8395   grep -v '^ *+' conftest.er1 >conftest.err
8396   rm -f conftest.er1
8397   cat conftest.err >&5
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); } &&
8400          { ac_try='test -z "$ac_c_werror_flag"
8401                          || test ! -s conftest.err'
8402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403   (eval $ac_try) 2>&5
8404   ac_status=$?
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); }; } &&
8407          { ac_try='test -s conftest$ac_exeext'
8408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409   (eval $ac_try) 2>&5
8410   ac_status=$?
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); }; }; then
8413   ac_cv_lib_dl_dlopen=yes
8414 else
8415   echo "$as_me: failed program was:" >&5
8416 sed 's/^/| /' conftest.$ac_ext >&5
8417
8418 ac_cv_lib_dl_dlopen=no
8419 fi
8420 rm -f conftest.err conftest.$ac_objext \
8421       conftest$ac_exeext conftest.$ac_ext
8422 LIBS=$ac_check_lib_save_LIBS
8423 fi
8424 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8425 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8426 if test $ac_cv_lib_dl_dlopen = yes; then
8427   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8428 else
8429   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8430 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8431 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8432   echo $ECHO_N "(cached) $ECHO_C" >&6
8433 else
8434   ac_check_lib_save_LIBS=$LIBS
8435 LIBS="-lsvld  $LIBS"
8436 cat >conftest.$ac_ext <<_ACEOF
8437 /* confdefs.h.  */
8438 _ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h.  */
8442
8443 /* Override any gcc2 internal prototype to avoid an error.  */
8444 #ifdef __cplusplus
8445 extern "C"
8446 #endif
8447 /* We use char because int might match the return type of a gcc2
8448    builtin and then its argument prototype would still apply.  */
8449 char dlopen ();
8450 int
8451 main ()
8452 {
8453 dlopen ();
8454   ;
8455   return 0;
8456 }
8457 _ACEOF
8458 rm -f conftest.$ac_objext conftest$ac_exeext
8459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8460   (eval $ac_link) 2>conftest.er1
8461   ac_status=$?
8462   grep -v '^ *+' conftest.er1 >conftest.err
8463   rm -f conftest.er1
8464   cat conftest.err >&5
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); } &&
8467          { ac_try='test -z "$ac_c_werror_flag"
8468                          || test ! -s conftest.err'
8469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470   (eval $ac_try) 2>&5
8471   ac_status=$?
8472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473   (exit $ac_status); }; } &&
8474          { ac_try='test -s conftest$ac_exeext'
8475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476   (eval $ac_try) 2>&5
8477   ac_status=$?
8478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479   (exit $ac_status); }; }; then
8480   ac_cv_lib_svld_dlopen=yes
8481 else
8482   echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8484
8485 ac_cv_lib_svld_dlopen=no
8486 fi
8487 rm -f conftest.err conftest.$ac_objext \
8488       conftest$ac_exeext conftest.$ac_ext
8489 LIBS=$ac_check_lib_save_LIBS
8490 fi
8491 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8492 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8493 if test $ac_cv_lib_svld_dlopen = yes; then
8494   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8495 else
8496   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8497 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8498 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8499   echo $ECHO_N "(cached) $ECHO_C" >&6
8500 else
8501   ac_check_lib_save_LIBS=$LIBS
8502 LIBS="-ldld  $LIBS"
8503 cat >conftest.$ac_ext <<_ACEOF
8504 /* confdefs.h.  */
8505 _ACEOF
8506 cat confdefs.h >>conftest.$ac_ext
8507 cat >>conftest.$ac_ext <<_ACEOF
8508 /* end confdefs.h.  */
8509
8510 /* Override any gcc2 internal prototype to avoid an error.  */
8511 #ifdef __cplusplus
8512 extern "C"
8513 #endif
8514 /* We use char because int might match the return type of a gcc2
8515    builtin and then its argument prototype would still apply.  */
8516 char dld_link ();
8517 int
8518 main ()
8519 {
8520 dld_link ();
8521   ;
8522   return 0;
8523 }
8524 _ACEOF
8525 rm -f conftest.$ac_objext conftest$ac_exeext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8527   (eval $ac_link) 2>conftest.er1
8528   ac_status=$?
8529   grep -v '^ *+' conftest.er1 >conftest.err
8530   rm -f conftest.er1
8531   cat conftest.err >&5
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); } &&
8534          { ac_try='test -z "$ac_c_werror_flag"
8535                          || test ! -s conftest.err'
8536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537   (eval $ac_try) 2>&5
8538   ac_status=$?
8539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540   (exit $ac_status); }; } &&
8541          { ac_try='test -s conftest$ac_exeext'
8542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543   (eval $ac_try) 2>&5
8544   ac_status=$?
8545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546   (exit $ac_status); }; }; then
8547   ac_cv_lib_dld_dld_link=yes
8548 else
8549   echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8551
8552 ac_cv_lib_dld_dld_link=no
8553 fi
8554 rm -f conftest.err conftest.$ac_objext \
8555       conftest$ac_exeext conftest.$ac_ext
8556 LIBS=$ac_check_lib_save_LIBS
8557 fi
8558 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8559 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8560 if test $ac_cv_lib_dld_dld_link = yes; then
8561   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8562 fi
8563
8564
8565 fi
8566
8567
8568 fi
8569
8570
8571 fi
8572
8573
8574 fi
8575
8576
8577 fi
8578
8579     ;;
8580   esac
8581
8582   if test "x$lt_cv_dlopen" != xno; then
8583     enable_dlopen=yes
8584   else
8585     enable_dlopen=no
8586   fi
8587
8588   case $lt_cv_dlopen in
8589   dlopen)
8590     save_CPPFLAGS="$CPPFLAGS"
8591     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8592
8593     save_LDFLAGS="$LDFLAGS"
8594     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8595
8596     save_LIBS="$LIBS"
8597     LIBS="$lt_cv_dlopen_libs $LIBS"
8598
8599     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8600 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8601 if test "${lt_cv_dlopen_self+set}" = set; then
8602   echo $ECHO_N "(cached) $ECHO_C" >&6
8603 else
8604           if test "$cross_compiling" = yes; then :
8605   lt_cv_dlopen_self=cross
8606 else
8607   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8608   lt_status=$lt_dlunknown
8609   cat > conftest.$ac_ext <<EOF
8610 #line 8610 "configure"
8611 #include "confdefs.h"
8612
8613 #if HAVE_DLFCN_H
8614 #include <dlfcn.h>
8615 #endif
8616
8617 #include <stdio.h>
8618
8619 #ifdef RTLD_GLOBAL
8620 #  define LT_DLGLOBAL           RTLD_GLOBAL
8621 #else
8622 #  ifdef DL_GLOBAL
8623 #    define LT_DLGLOBAL         DL_GLOBAL
8624 #  else
8625 #    define LT_DLGLOBAL         0
8626 #  endif
8627 #endif
8628
8629 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8630    find out it does not work in some platform. */
8631 #ifndef LT_DLLAZY_OR_NOW
8632 #  ifdef RTLD_LAZY
8633 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8634 #  else
8635 #    ifdef DL_LAZY
8636 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8637 #    else
8638 #      ifdef RTLD_NOW
8639 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8640 #      else
8641 #        ifdef DL_NOW
8642 #          define LT_DLLAZY_OR_NOW      DL_NOW
8643 #        else
8644 #          define LT_DLLAZY_OR_NOW      0
8645 #        endif
8646 #      endif
8647 #    endif
8648 #  endif
8649 #endif
8650
8651 #ifdef __cplusplus
8652 extern "C" void exit (int);
8653 #endif
8654
8655 void fnord() { int i=42;}
8656 int main ()
8657 {
8658   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8659   int status = $lt_dlunknown;
8660
8661   if (self)
8662     {
8663       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8664       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8665       /* dlclose (self); */
8666     }
8667
8668     exit (status);
8669 }
8670 EOF
8671   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8672   (eval $ac_link) 2>&5
8673   ac_status=$?
8674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8676     (./conftest; exit; ) 2>/dev/null
8677     lt_status=$?
8678     case x$lt_status in
8679       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8680       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8681       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8682     esac
8683   else :
8684     # compilation failed
8685     lt_cv_dlopen_self=no
8686   fi
8687 fi
8688 rm -fr conftest*
8689
8690
8691 fi
8692 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8693 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8694
8695     if test "x$lt_cv_dlopen_self" = xyes; then
8696       LDFLAGS="$LDFLAGS $link_static_flag"
8697       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8698 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8699 if test "${lt_cv_dlopen_self_static+set}" = set; then
8700   echo $ECHO_N "(cached) $ECHO_C" >&6
8701 else
8702           if test "$cross_compiling" = yes; then :
8703   lt_cv_dlopen_self_static=cross
8704 else
8705   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8706   lt_status=$lt_dlunknown
8707   cat > conftest.$ac_ext <<EOF
8708 #line 8708 "configure"
8709 #include "confdefs.h"
8710
8711 #if HAVE_DLFCN_H
8712 #include <dlfcn.h>
8713 #endif
8714
8715 #include <stdio.h>
8716
8717 #ifdef RTLD_GLOBAL
8718 #  define LT_DLGLOBAL           RTLD_GLOBAL
8719 #else
8720 #  ifdef DL_GLOBAL
8721 #    define LT_DLGLOBAL         DL_GLOBAL
8722 #  else
8723 #    define LT_DLGLOBAL         0
8724 #  endif
8725 #endif
8726
8727 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8728    find out it does not work in some platform. */
8729 #ifndef LT_DLLAZY_OR_NOW
8730 #  ifdef RTLD_LAZY
8731 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8732 #  else
8733 #    ifdef DL_LAZY
8734 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8735 #    else
8736 #      ifdef RTLD_NOW
8737 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8738 #      else
8739 #        ifdef DL_NOW
8740 #          define LT_DLLAZY_OR_NOW      DL_NOW
8741 #        else
8742 #          define LT_DLLAZY_OR_NOW      0
8743 #        endif
8744 #      endif
8745 #    endif
8746 #  endif
8747 #endif
8748
8749 #ifdef __cplusplus
8750 extern "C" void exit (int);
8751 #endif
8752
8753 void fnord() { int i=42;}
8754 int main ()
8755 {
8756   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8757   int status = $lt_dlunknown;
8758
8759   if (self)
8760     {
8761       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8762       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8763       /* dlclose (self); */
8764     }
8765
8766     exit (status);
8767 }
8768 EOF
8769   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8770   (eval $ac_link) 2>&5
8771   ac_status=$?
8772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8774     (./conftest; exit; ) 2>/dev/null
8775     lt_status=$?
8776     case x$lt_status in
8777       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8778       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8779       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8780     esac
8781   else :
8782     # compilation failed
8783     lt_cv_dlopen_self_static=no
8784   fi
8785 fi
8786 rm -fr conftest*
8787
8788
8789 fi
8790 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8791 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8792     fi
8793
8794     CPPFLAGS="$save_CPPFLAGS"
8795     LDFLAGS="$save_LDFLAGS"
8796     LIBS="$save_LIBS"
8797     ;;
8798   esac
8799
8800   case $lt_cv_dlopen_self in
8801   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8802   *) enable_dlopen_self=unknown ;;
8803   esac
8804
8805   case $lt_cv_dlopen_self_static in
8806   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8807   *) enable_dlopen_self_static=unknown ;;
8808   esac
8809 fi
8810
8811
8812 # Report which librarie types wil actually be built
8813 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8814 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8815 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8816 echo "${ECHO_T}$can_build_shared" >&6
8817
8818 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8819 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8820 test "$can_build_shared" = "no" && enable_shared=no
8821
8822 # On AIX, shared libraries and static libraries use the same namespace, and
8823 # are all built from PIC.
8824 case "$host_os" in
8825 aix3*)
8826   test "$enable_shared" = yes && enable_static=no
8827   if test -n "$RANLIB"; then
8828     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8829     postinstall_cmds='$RANLIB $lib'
8830   fi
8831   ;;
8832
8833 aix4* | aix5*)
8834   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8835     test "$enable_shared" = yes && enable_static=no
8836   fi
8837     ;;
8838 esac
8839 echo "$as_me:$LINENO: result: $enable_shared" >&5
8840 echo "${ECHO_T}$enable_shared" >&6
8841
8842 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8843 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8844 # Make sure either enable_shared or enable_static is yes.
8845 test "$enable_shared" = yes || enable_static=yes
8846 echo "$as_me:$LINENO: result: $enable_static" >&5
8847 echo "${ECHO_T}$enable_static" >&6
8848
8849 # The else clause should only fire when bootstrapping the
8850 # libtool distribution, otherwise you forgot to ship ltmain.sh
8851 # with your package, and you will get complaints that there are
8852 # no rules to generate ltmain.sh.
8853 if test -f "$ltmain"; then
8854   # See if we are running on zsh, and set the options which allow our commands through
8855   # without removal of \ escapes.
8856   if test -n "${ZSH_VERSION+set}" ; then
8857     setopt NO_GLOB_SUBST
8858   fi
8859   # Now quote all the things that may contain metacharacters while being
8860   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8861   # variables and quote the copies for generation of the libtool script.
8862   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8863     SED SHELL STRIP \
8864     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8865     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8866     deplibs_check_method reload_flag reload_cmds need_locks \
8867     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8868     lt_cv_sys_global_symbol_to_c_name_address \
8869     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8870     old_postinstall_cmds old_postuninstall_cmds \
8871     compiler \
8872     CC \
8873     LD \
8874     lt_prog_compiler_wl \
8875     lt_prog_compiler_pic \
8876     lt_prog_compiler_static \
8877     lt_prog_compiler_no_builtin_flag \
8878     export_dynamic_flag_spec \
8879     thread_safe_flag_spec \
8880     whole_archive_flag_spec \
8881     enable_shared_with_static_runtimes \
8882     old_archive_cmds \
8883     old_archive_from_new_cmds \
8884     predep_objects \
8885     postdep_objects \
8886     predeps \
8887     postdeps \
8888     compiler_lib_search_path \
8889     archive_cmds \
8890     archive_expsym_cmds \
8891     postinstall_cmds \
8892     postuninstall_cmds \
8893     old_archive_from_expsyms_cmds \
8894     allow_undefined_flag \
8895     no_undefined_flag \
8896     export_symbols_cmds \
8897     hardcode_libdir_flag_spec \
8898     hardcode_libdir_flag_spec_ld \
8899     hardcode_libdir_separator \
8900     hardcode_automatic \
8901     module_cmds \
8902     module_expsym_cmds \
8903     lt_cv_prog_compiler_c_o \
8904     exclude_expsyms \
8905     include_expsyms; do
8906
8907     case $var in
8908     old_archive_cmds | \
8909     old_archive_from_new_cmds | \
8910     archive_cmds | \
8911     archive_expsym_cmds | \
8912     module_cmds | \
8913     module_expsym_cmds | \
8914     old_archive_from_expsyms_cmds | \
8915     export_symbols_cmds | \
8916     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8917     postinstall_cmds | postuninstall_cmds | \
8918     old_postinstall_cmds | old_postuninstall_cmds | \
8919     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8920       # Double-quote double-evaled strings.
8921       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8922       ;;
8923     *)
8924       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8925       ;;
8926     esac
8927   done
8928
8929   case $lt_echo in
8930   *'\$0 --fallback-echo"')
8931     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8932     ;;
8933   esac
8934
8935 cfgfile="${ofile}T"
8936   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8937   $rm -f "$cfgfile"
8938   { echo "$as_me:$LINENO: creating $ofile" >&5
8939 echo "$as_me: creating $ofile" >&6;}
8940
8941   cat <<__EOF__ >> "$cfgfile"
8942 #! $SHELL
8943
8944 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8945 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8946 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8947 #
8948 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8949 # Free Software Foundation, Inc.
8950 #
8951 # This file is part of GNU Libtool:
8952 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8953 #
8954 # This program is free software; you can redistribute it and/or modify
8955 # it under the terms of the GNU General Public License as published by
8956 # the Free Software Foundation; either version 2 of the License, or
8957 # (at your option) any later version.
8958 #
8959 # This program is distributed in the hope that it will be useful, but
8960 # WITHOUT ANY WARRANTY; without even the implied warranty of
8961 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8962 # General Public License for more details.
8963 #
8964 # You should have received a copy of the GNU General Public License
8965 # along with this program; if not, write to the Free Software
8966 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8967 #
8968 # As a special exception to the GNU General Public License, if you
8969 # distribute this file as part of a program that contains a
8970 # configuration script generated by Autoconf, you may include it under
8971 # the same distribution terms that you use for the rest of that program.
8972
8973 # A sed program that does not truncate output.
8974 SED=$lt_SED
8975
8976 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8977 Xsed="$SED -e s/^X//"
8978
8979 # The HP-UX ksh and POSIX shell print the target directory to stdout
8980 # if CDPATH is set.
8981 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8982
8983 # The names of the tagged configurations supported by this script.
8984 available_tags=
8985
8986 # ### BEGIN LIBTOOL CONFIG
8987
8988 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8989
8990 # Shell to use when invoking shell scripts.
8991 SHELL=$lt_SHELL
8992
8993 # Whether or not to build shared libraries.
8994 build_libtool_libs=$enable_shared
8995
8996 # Whether or not to build static libraries.
8997 build_old_libs=$enable_static
8998
8999 # Whether or not to add -lc for building shared libraries.
9000 build_libtool_need_lc=$archive_cmds_need_lc
9001
9002 # Whether or not to disallow shared libs when runtime libs are static
9003 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9004
9005 # Whether or not to optimize for fast installation.
9006 fast_install=$enable_fast_install
9007
9008 # The host system.
9009 host_alias=$host_alias
9010 host=$host
9011
9012 # An echo program that does not interpret backslashes.
9013 echo=$lt_echo
9014
9015 # The archiver.
9016 AR=$lt_AR
9017 AR_FLAGS=$lt_AR_FLAGS
9018
9019 # A C compiler.
9020 LTCC=$lt_LTCC
9021
9022 # A language-specific compiler.
9023 CC=$lt_compiler
9024
9025 # Is the compiler the GNU C compiler?
9026 with_gcc=$GCC
9027
9028 # An ERE matcher.
9029 EGREP=$lt_EGREP
9030
9031 # The linker used to build libraries.
9032 LD=$lt_LD
9033
9034 # Whether we need hard or soft links.
9035 LN_S=$lt_LN_S
9036
9037 # A BSD-compatible nm program.
9038 NM=$lt_NM
9039
9040 # A symbol stripping program
9041 STRIP=$lt_STRIP
9042
9043 # Used to examine libraries when file_magic_cmd begins "file"
9044 MAGIC_CMD=$MAGIC_CMD
9045
9046 # Used on cygwin: DLL creation program.
9047 DLLTOOL="$DLLTOOL"
9048
9049 # Used on cygwin: object dumper.
9050 OBJDUMP="$OBJDUMP"
9051
9052 # Used on cygwin: assembler.
9053 AS="$AS"
9054
9055 # The name of the directory that contains temporary libtool files.
9056 objdir=$objdir
9057
9058 # How to create reloadable object files.
9059 reload_flag=$lt_reload_flag
9060 reload_cmds=$lt_reload_cmds
9061
9062 # How to pass a linker flag through the compiler.
9063 wl=$lt_lt_prog_compiler_wl
9064
9065 # Object file suffix (normally "o").
9066 objext="$ac_objext"
9067
9068 # Old archive suffix (normally "a").
9069 libext="$libext"
9070
9071 # Shared library suffix (normally ".so").
9072 shrext_cmds='$shrext_cmds'
9073
9074 # Executable file suffix (normally "").
9075 exeext="$exeext"
9076
9077 # Additional compiler flags for building library objects.
9078 pic_flag=$lt_lt_prog_compiler_pic
9079 pic_mode=$pic_mode
9080
9081 # What is the maximum length of a command?
9082 max_cmd_len=$lt_cv_sys_max_cmd_len
9083
9084 # Does compiler simultaneously support -c and -o options?
9085 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9086
9087 # Must we lock files when doing compilation ?
9088 need_locks=$lt_need_locks
9089
9090 # Do we need the lib prefix for modules?
9091 need_lib_prefix=$need_lib_prefix
9092
9093 # Do we need a version for libraries?
9094 need_version=$need_version
9095
9096 # Whether dlopen is supported.
9097 dlopen_support=$enable_dlopen
9098
9099 # Whether dlopen of programs is supported.
9100 dlopen_self=$enable_dlopen_self
9101
9102 # Whether dlopen of statically linked programs is supported.
9103 dlopen_self_static=$enable_dlopen_self_static
9104
9105 # Compiler flag to prevent dynamic linking.
9106 link_static_flag=$lt_lt_prog_compiler_static
9107
9108 # Compiler flag to turn off builtin functions.
9109 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9110
9111 # Compiler flag to allow reflexive dlopens.
9112 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9113
9114 # Compiler flag to generate shared objects directly from archives.
9115 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9116
9117 # Compiler flag to generate thread-safe objects.
9118 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9119
9120 # Library versioning type.
9121 version_type=$version_type
9122
9123 # Format of library name prefix.
9124 libname_spec=$lt_libname_spec
9125
9126 # List of archive names.  First name is the real one, the rest are links.
9127 # The last name is the one that the linker finds with -lNAME.
9128 library_names_spec=$lt_library_names_spec
9129
9130 # The coded name of the library, if different from the real name.
9131 soname_spec=$lt_soname_spec
9132
9133 # Commands used to build and install an old-style archive.
9134 RANLIB=$lt_RANLIB
9135 old_archive_cmds=$lt_old_archive_cmds
9136 old_postinstall_cmds=$lt_old_postinstall_cmds
9137 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9138
9139 # Create an old-style archive from a shared archive.
9140 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9141
9142 # Create a temporary old-style archive to link instead of a shared archive.
9143 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9144
9145 # Commands used to build and install a shared archive.
9146 archive_cmds=$lt_archive_cmds
9147 archive_expsym_cmds=$lt_archive_expsym_cmds
9148 postinstall_cmds=$lt_postinstall_cmds
9149 postuninstall_cmds=$lt_postuninstall_cmds
9150
9151 # Commands used to build a loadable module (assumed same as above if empty)
9152 module_cmds=$lt_module_cmds
9153 module_expsym_cmds=$lt_module_expsym_cmds
9154
9155 # Commands to strip libraries.
9156 old_striplib=$lt_old_striplib
9157 striplib=$lt_striplib
9158
9159 # Dependencies to place before the objects being linked to create a
9160 # shared library.
9161 predep_objects=$lt_predep_objects
9162
9163 # Dependencies to place after the objects being linked to create a
9164 # shared library.
9165 postdep_objects=$lt_postdep_objects
9166
9167 # Dependencies to place before the objects being linked to create a
9168 # shared library.
9169 predeps=$lt_predeps
9170
9171 # Dependencies to place after the objects being linked to create a
9172 # shared library.
9173 postdeps=$lt_postdeps
9174
9175 # The library search path used internally by the compiler when linking
9176 # a shared library.
9177 compiler_lib_search_path=$lt_compiler_lib_search_path
9178
9179 # Method to check whether dependent libraries are shared objects.
9180 deplibs_check_method=$lt_deplibs_check_method
9181
9182 # Command to use when deplibs_check_method == file_magic.
9183 file_magic_cmd=$lt_file_magic_cmd
9184
9185 # Flag that allows shared libraries with undefined symbols to be built.
9186 allow_undefined_flag=$lt_allow_undefined_flag
9187
9188 # Flag that forces no undefined symbols.
9189 no_undefined_flag=$lt_no_undefined_flag
9190
9191 # Commands used to finish a libtool library installation in a directory.
9192 finish_cmds=$lt_finish_cmds
9193
9194 # Same as above, but a single script fragment to be evaled but not shown.
9195 finish_eval=$lt_finish_eval
9196
9197 # Take the output of nm and produce a listing of raw symbols and C names.
9198 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9199
9200 # Transform the output of nm in a proper C declaration
9201 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9202
9203 # Transform the output of nm in a C name address pair
9204 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9205
9206 # This is the shared library runtime path variable.
9207 runpath_var=$runpath_var
9208
9209 # This is the shared library path variable.
9210 shlibpath_var=$shlibpath_var
9211
9212 # Is shlibpath searched before the hard-coded library search path?
9213 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9214
9215 # How to hardcode a shared library path into an executable.
9216 hardcode_action=$hardcode_action
9217
9218 # Whether we should hardcode library paths into libraries.
9219 hardcode_into_libs=$hardcode_into_libs
9220
9221 # Flag to hardcode \$libdir into a binary during linking.
9222 # This must work even if \$libdir does not exist.
9223 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9224
9225 # If ld is used when linking, flag to hardcode \$libdir into
9226 # a binary during linking. This must work even if \$libdir does
9227 # not exist.
9228 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9229
9230 # Whether we need a single -rpath flag with a separated argument.
9231 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9232
9233 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9234 # resulting binary.
9235 hardcode_direct=$hardcode_direct
9236
9237 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9238 # resulting binary.
9239 hardcode_minus_L=$hardcode_minus_L
9240
9241 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9242 # the resulting binary.
9243 hardcode_shlibpath_var=$hardcode_shlibpath_var
9244
9245 # Set to yes if building a shared library automatically hardcodes DIR into the library
9246 # and all subsequent libraries and executables linked against it.
9247 hardcode_automatic=$hardcode_automatic
9248
9249 # Variables whose values should be saved in libtool wrapper scripts and
9250 # restored at relink time.
9251 variables_saved_for_relink="$variables_saved_for_relink"
9252
9253 # Whether libtool must link a program against all its dependency libraries.
9254 link_all_deplibs=$link_all_deplibs
9255
9256 # Compile-time system search path for libraries
9257 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9258
9259 # Run-time system search path for libraries
9260 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9261
9262 # Fix the shell variable \$srcfile for the compiler.
9263 fix_srcfile_path="$fix_srcfile_path"
9264
9265 # Set to yes if exported symbols are required.
9266 always_export_symbols=$always_export_symbols
9267
9268 # The commands to list exported symbols.
9269 export_symbols_cmds=$lt_export_symbols_cmds
9270
9271 # The commands to extract the exported symbol list from a shared archive.
9272 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9273
9274 # Symbols that should not be listed in the preloaded symbols.
9275 exclude_expsyms=$lt_exclude_expsyms
9276
9277 # Symbols that must always be exported.
9278 include_expsyms=$lt_include_expsyms
9279
9280 # ### END LIBTOOL CONFIG
9281
9282 __EOF__
9283
9284
9285   case $host_os in
9286   aix3*)
9287     cat <<\EOF >> "$cfgfile"
9288
9289 # AIX sometimes has problems with the GCC collect2 program.  For some
9290 # reason, if we set the COLLECT_NAMES environment variable, the problems
9291 # vanish in a puff of smoke.
9292 if test "X${COLLECT_NAMES+set}" != Xset; then
9293   COLLECT_NAMES=
9294   export COLLECT_NAMES
9295 fi
9296 EOF
9297     ;;
9298   esac
9299
9300   # We use sed instead of cat because bash on DJGPP gets confused if
9301   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9302   # text mode, it properly converts lines to CR/LF.  This bash problem
9303   # is reportedly fixed, but why not run on old versions too?
9304   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9305
9306   mv -f "$cfgfile" "$ofile" || \
9307     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9308   chmod +x "$ofile"
9309
9310 else
9311   # If there is no Makefile yet, we rely on a make rule to execute
9312   # `config.status --recheck' to rerun these tests and create the
9313   # libtool script then.
9314   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9315   if test -f "$ltmain_in"; then
9316     test -f Makefile && make "$ltmain"
9317   fi
9318 fi
9319
9320
9321 ac_ext=c
9322 ac_cpp='$CPP $CPPFLAGS'
9323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9326
9327 CC="$lt_save_CC"
9328
9329
9330 # Check whether --with-tags or --without-tags was given.
9331 if test "${with_tags+set}" = set; then
9332   withval="$with_tags"
9333   tagnames="$withval"
9334 fi;
9335
9336 if test -f "$ltmain" && test -n "$tagnames"; then
9337   if test ! -f "${ofile}"; then
9338     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9339 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9340   fi
9341
9342   if test -z "$LTCC"; then
9343     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9344     if test -z "$LTCC"; then
9345       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9346 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9347     else
9348       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9349 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9350     fi
9351   fi
9352
9353   # Extract list of available tagged configurations in $ofile.
9354   # Note that this assumes the entire list is on one line.
9355   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9356
9357   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9358   for tagname in $tagnames; do
9359     IFS="$lt_save_ifs"
9360     # Check whether tagname contains only valid characters
9361     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9362     "") ;;
9363     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9364 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9365    { (exit 1); exit 1; }; }
9366         ;;
9367     esac
9368
9369     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9370     then
9371       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9372 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9373    { (exit 1); exit 1; }; }
9374     fi
9375
9376     # Update the list of available tags.
9377     if test -n "$tagname"; then
9378       echo appending configuration tag "$tagname" to $ofile
9379
9380       case $tagname in
9381       CXX)
9382         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9383             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9384             (test "X$CXX" != "Xg++"))) ; then
9385           ac_ext=cc
9386 ac_cpp='$CXXCPP $CPPFLAGS'
9387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9390
9391
9392
9393
9394 archive_cmds_need_lc_CXX=no
9395 allow_undefined_flag_CXX=
9396 always_export_symbols_CXX=no
9397 archive_expsym_cmds_CXX=
9398 export_dynamic_flag_spec_CXX=
9399 hardcode_direct_CXX=no
9400 hardcode_libdir_flag_spec_CXX=
9401 hardcode_libdir_flag_spec_ld_CXX=
9402 hardcode_libdir_separator_CXX=
9403 hardcode_minus_L_CXX=no
9404 hardcode_automatic_CXX=no
9405 module_cmds_CXX=
9406 module_expsym_cmds_CXX=
9407 link_all_deplibs_CXX=unknown
9408 old_archive_cmds_CXX=$old_archive_cmds
9409 no_undefined_flag_CXX=
9410 whole_archive_flag_spec_CXX=
9411 enable_shared_with_static_runtimes_CXX=no
9412
9413 # Dependencies to place before and after the object being linked:
9414 predep_objects_CXX=
9415 postdep_objects_CXX=
9416 predeps_CXX=
9417 postdeps_CXX=
9418 compiler_lib_search_path_CXX=
9419
9420 # Source file extension for C++ test sources.
9421 ac_ext=cc
9422
9423 # Object file extension for compiled C++ test sources.
9424 objext=o
9425 objext_CXX=$objext
9426
9427 # Code to be used in simple compile tests
9428 lt_simple_compile_test_code="int some_variable = 0;\n"
9429
9430 # Code to be used in simple link tests
9431 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9432
9433 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9434
9435 # If no C compiler was specified, use CC.
9436 LTCC=${LTCC-"$CC"}
9437
9438 # Allow CC to be a program name with arguments.
9439 compiler=$CC
9440
9441
9442 # Allow CC to be a program name with arguments.
9443 lt_save_CC=$CC
9444 lt_save_LD=$LD
9445 lt_save_GCC=$GCC
9446 GCC=$GXX
9447 lt_save_with_gnu_ld=$with_gnu_ld
9448 lt_save_path_LD=$lt_cv_path_LD
9449 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9450   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9451 else
9452   unset lt_cv_prog_gnu_ld
9453 fi
9454 if test -n "${lt_cv_path_LDCXX+set}"; then
9455   lt_cv_path_LD=$lt_cv_path_LDCXX
9456 else
9457   unset lt_cv_path_LD
9458 fi
9459 test -z "${LDCXX+set}" || LD=$LDCXX
9460 CC=${CXX-"c++"}
9461 compiler=$CC
9462 compiler_CXX=$CC
9463 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9464
9465 # We don't want -fno-exception wen compiling C++ code, so set the
9466 # no_builtin_flag separately
9467 if test "$GXX" = yes; then
9468   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9469 else
9470   lt_prog_compiler_no_builtin_flag_CXX=
9471 fi
9472
9473 if test "$GXX" = yes; then
9474   # Set up default GNU C++ configuration
9475
9476
9477 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9478 if test "${with_gnu_ld+set}" = set; then
9479   withval="$with_gnu_ld"
9480   test "$withval" = no || with_gnu_ld=yes
9481 else
9482   with_gnu_ld=no
9483 fi;
9484 ac_prog=ld
9485 if test "$GCC" = yes; then
9486   # Check if gcc -print-prog-name=ld gives a path.
9487   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9488 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9489   case $host in
9490   *-*-mingw*)
9491     # gcc leaves a trailing carriage return which upsets mingw
9492     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9493   *)
9494     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9495   esac
9496   case $ac_prog in
9497     # Accept absolute paths.
9498     [\\/]* | ?:[\\/]*)
9499       re_direlt='/[^/][^/]*/\.\./'
9500       # Canonicalize the pathname of ld
9501       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9502       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9503         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9504       done
9505       test -z "$LD" && LD="$ac_prog"
9506       ;;
9507   "")
9508     # If it fails, then pretend we aren't using GCC.
9509     ac_prog=ld
9510     ;;
9511   *)
9512     # If it is relative, then search for the first ld in PATH.
9513     with_gnu_ld=unknown
9514     ;;
9515   esac
9516 elif test "$with_gnu_ld" = yes; then
9517   echo "$as_me:$LINENO: checking for GNU ld" >&5
9518 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9519 else
9520   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9521 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9522 fi
9523 if test "${lt_cv_path_LD+set}" = set; then
9524   echo $ECHO_N "(cached) $ECHO_C" >&6
9525 else
9526   if test -z "$LD"; then
9527   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9528   for ac_dir in $PATH; do
9529     IFS="$lt_save_ifs"
9530     test -z "$ac_dir" && ac_dir=.
9531     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9532       lt_cv_path_LD="$ac_dir/$ac_prog"
9533       # Check to see if the program is GNU ld.  I'd rather use --version,
9534       # but apparently some GNU ld's only accept -v.
9535       # Break only if it was the GNU/non-GNU ld that we prefer.
9536       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9537       *GNU* | *'with BFD'*)
9538         test "$with_gnu_ld" != no && break
9539         ;;
9540       *)
9541         test "$with_gnu_ld" != yes && break
9542         ;;
9543       esac
9544     fi
9545   done
9546   IFS="$lt_save_ifs"
9547 else
9548   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9549 fi
9550 fi
9551
9552 LD="$lt_cv_path_LD"
9553 if test -n "$LD"; then
9554   echo "$as_me:$LINENO: result: $LD" >&5
9555 echo "${ECHO_T}$LD" >&6
9556 else
9557   echo "$as_me:$LINENO: result: no" >&5
9558 echo "${ECHO_T}no" >&6
9559 fi
9560 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9561 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9562    { (exit 1); exit 1; }; }
9563 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9564 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9565 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9566   echo $ECHO_N "(cached) $ECHO_C" >&6
9567 else
9568   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9569 case `$LD -v 2>&1 </dev/null` in
9570 *GNU* | *'with BFD'*)
9571   lt_cv_prog_gnu_ld=yes
9572   ;;
9573 *)
9574   lt_cv_prog_gnu_ld=no
9575   ;;
9576 esac
9577 fi
9578 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9579 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9580 with_gnu_ld=$lt_cv_prog_gnu_ld
9581
9582
9583
9584   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9585   # archiving commands below assume that GNU ld is being used.
9586   if test "$with_gnu_ld" = yes; then
9587     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9588     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'
9589
9590     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9591     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9592
9593     # If archive_cmds runs LD, not CC, wlarc should be empty
9594     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9595     #     investigate it a little bit more. (MM)
9596     wlarc='${wl}'
9597
9598     # ancient GNU ld didn't support --whole-archive et. al.
9599     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9600         grep 'no-whole-archive' > /dev/null; then
9601       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9602     else
9603       whole_archive_flag_spec_CXX=
9604     fi
9605   else
9606     with_gnu_ld=no
9607     wlarc=
9608
9609     # A generic and very simple default shared library creation
9610     # command for GNU C++ for the case where it uses the native
9611     # linker, instead of GNU ld.  If possible, this setting should
9612     # overridden to take advantage of the native linker features on
9613     # the platform it is being used on.
9614     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9615   fi
9616
9617   # Commands to make compiler produce verbose output that lists
9618   # what "hidden" libraries, object files and flags are used when
9619   # linking a shared library.
9620   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9621
9622 else
9623   GXX=no
9624   with_gnu_ld=no
9625   wlarc=
9626 fi
9627
9628 # PORTME: fill in a description of your system's C++ link characteristics
9629 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9630 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9631 ld_shlibs_CXX=yes
9632 case $host_os in
9633   aix3*)
9634     # FIXME: insert proper C++ library support
9635     ld_shlibs_CXX=no
9636     ;;
9637   aix4* | aix5*)
9638     if test "$host_cpu" = ia64; then
9639       # On IA64, the linker does run time linking by default, so we don't
9640       # have to do anything special.
9641       aix_use_runtimelinking=no
9642       exp_sym_flag='-Bexport'
9643       no_entry_flag=""
9644     else
9645       aix_use_runtimelinking=no
9646
9647       # Test if we are trying to use run time linking or normal
9648       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9649       # need to do runtime linking.
9650       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9651         for ld_flag in $LDFLAGS; do
9652           case $ld_flag in
9653           *-brtl*)
9654             aix_use_runtimelinking=yes
9655             break
9656             ;;
9657           esac
9658         done
9659       esac
9660
9661       exp_sym_flag='-bexport'
9662       no_entry_flag='-bnoentry'
9663     fi
9664
9665     # When large executables or shared objects are built, AIX ld can
9666     # have problems creating the table of contents.  If linking a library
9667     # or program results in "error TOC overflow" add -mminimal-toc to
9668     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9669     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9670
9671     archive_cmds_CXX=''
9672     hardcode_direct_CXX=yes
9673     hardcode_libdir_separator_CXX=':'
9674     link_all_deplibs_CXX=yes
9675
9676     if test "$GXX" = yes; then
9677       case $host_os in aix4.012|aix4.012.*)
9678       # We only want to do this on AIX 4.2 and lower, the check
9679       # below for broken collect2 doesn't work under 4.3+
9680         collect2name=`${CC} -print-prog-name=collect2`
9681         if test -f "$collect2name" && \
9682            strings "$collect2name" | grep resolve_lib_name >/dev/null
9683         then
9684           # We have reworked collect2
9685           hardcode_direct_CXX=yes
9686         else
9687           # We have old collect2
9688           hardcode_direct_CXX=unsupported
9689           # It fails to find uninstalled libraries when the uninstalled
9690           # path is not listed in the libpath.  Setting hardcode_minus_L
9691           # to unsupported forces relinking
9692           hardcode_minus_L_CXX=yes
9693           hardcode_libdir_flag_spec_CXX='-L$libdir'
9694           hardcode_libdir_separator_CXX=
9695         fi
9696       esac
9697       shared_flag='-shared'
9698     else
9699       # not using gcc
9700       if test "$host_cpu" = ia64; then
9701         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9702         # chokes on -Wl,-G. The following line is correct:
9703         shared_flag='-G'
9704       else
9705         if test "$aix_use_runtimelinking" = yes; then
9706           shared_flag='${wl}-G'
9707         else
9708           shared_flag='${wl}-bM:SRE'
9709         fi
9710       fi
9711     fi
9712
9713     # It seems that -bexpall does not export symbols beginning with
9714     # underscore (_), so it is better to generate a list of symbols to export.
9715     always_export_symbols_CXX=yes
9716     if test "$aix_use_runtimelinking" = yes; then
9717       # Warning - without using the other runtime loading flags (-brtl),
9718       # -berok will link without error, but may produce a broken library.
9719       allow_undefined_flag_CXX='-berok'
9720       # Determine the default libpath from the value encoded in an empty executable.
9721       cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h.  */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h.  */
9727
9728 int
9729 main ()
9730 {
9731
9732   ;
9733   return 0;
9734 }
9735 _ACEOF
9736 rm -f conftest.$ac_objext conftest$ac_exeext
9737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9738   (eval $ac_link) 2>conftest.er1
9739   ac_status=$?
9740   grep -v '^ *+' conftest.er1 >conftest.err
9741   rm -f conftest.er1
9742   cat conftest.err >&5
9743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744   (exit $ac_status); } &&
9745          { ac_try='test -z "$ac_cxx_werror_flag"
9746                          || test ! -s conftest.err'
9747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748   (eval $ac_try) 2>&5
9749   ac_status=$?
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); }; } &&
9752          { ac_try='test -s conftest$ac_exeext'
9753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754   (eval $ac_try) 2>&5
9755   ac_status=$?
9756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757   (exit $ac_status); }; }; then
9758
9759 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9760 }'`
9761 # Check for a 64-bit object if we didn't find anything.
9762 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; }
9763 }'`; fi
9764 else
9765   echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9767
9768 fi
9769 rm -f conftest.err conftest.$ac_objext \
9770       conftest$ac_exeext conftest.$ac_ext
9771 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9772
9773       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9774
9775       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"
9776      else
9777       if test "$host_cpu" = ia64; then
9778         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9779         allow_undefined_flag_CXX="-z nodefs"
9780         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"
9781       else
9782         # Determine the default libpath from the value encoded in an empty executable.
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
9790 int
9791 main ()
9792 {
9793
9794   ;
9795   return 0;
9796 }
9797 _ACEOF
9798 rm -f conftest.$ac_objext conftest$ac_exeext
9799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9800   (eval $ac_link) 2>conftest.er1
9801   ac_status=$?
9802   grep -v '^ *+' conftest.er1 >conftest.err
9803   rm -f conftest.er1
9804   cat conftest.err >&5
9805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806   (exit $ac_status); } &&
9807          { ac_try='test -z "$ac_cxx_werror_flag"
9808                          || test ! -s conftest.err'
9809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810   (eval $ac_try) 2>&5
9811   ac_status=$?
9812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813   (exit $ac_status); }; } &&
9814          { ac_try='test -s conftest$ac_exeext'
9815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816   (eval $ac_try) 2>&5
9817   ac_status=$?
9818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819   (exit $ac_status); }; }; then
9820
9821 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9822 }'`
9823 # Check for a 64-bit object if we didn't find anything.
9824 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; }
9825 }'`; fi
9826 else
9827   echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9829
9830 fi
9831 rm -f conftest.err conftest.$ac_objext \
9832       conftest$ac_exeext conftest.$ac_ext
9833 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9834
9835         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9836         # Warning - without using the other run time loading flags,
9837         # -berok will link without error, but may produce a broken library.
9838         no_undefined_flag_CXX=' ${wl}-bernotok'
9839         allow_undefined_flag_CXX=' ${wl}-berok'
9840         # -bexpall does not export symbols beginning with underscore (_)
9841         always_export_symbols_CXX=yes
9842         # Exported symbols can be pulled into shared objects from archives
9843         whole_archive_flag_spec_CXX=' '
9844         archive_cmds_need_lc_CXX=yes
9845         # This is similar to how AIX traditionally builds it's shared libraries.
9846         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'
9847       fi
9848     fi
9849     ;;
9850   chorus*)
9851     case $cc_basename in
9852       *)
9853         # FIXME: insert proper C++ library support
9854         ld_shlibs_CXX=no
9855         ;;
9856     esac
9857     ;;
9858
9859
9860   cygwin* | mingw* | pw32*)
9861     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9862     # as there is no search path for DLLs.
9863     hardcode_libdir_flag_spec_CXX='-L$libdir'
9864     allow_undefined_flag_CXX=unsupported
9865     always_export_symbols_CXX=no
9866     enable_shared_with_static_runtimes_CXX=yes
9867
9868     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9869       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'
9870       # If the export-symbols file already is a .def file (1st line
9871       # is EXPORTS), use it as is; otherwise, prepend...
9872       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9873         cp $export_symbols $output_objdir/$soname.def;
9874       else
9875         echo EXPORTS > $output_objdir/$soname.def;
9876         cat $export_symbols >> $output_objdir/$soname.def;
9877       fi~
9878       $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'
9879     else
9880       ld_shlibs_CXX=no
9881     fi
9882   ;;
9883       darwin* | rhapsody*)
9884         case "$host_os" in
9885         rhapsody* | darwin1.[012])
9886          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9887          ;;
9888        *) # Darwin 1.3 on
9889          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9890            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9891          else
9892            case ${MACOSX_DEPLOYMENT_TARGET} in
9893              10.[012])
9894                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9895                ;;
9896              10.*)
9897                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9898                ;;
9899            esac
9900          fi
9901          ;;
9902         esac
9903       archive_cmds_need_lc_CXX=no
9904       hardcode_direct_CXX=no
9905       hardcode_automatic_CXX=yes
9906       hardcode_shlibpath_var_CXX=unsupported
9907       whole_archive_flag_spec_CXX=''
9908       link_all_deplibs_CXX=yes
9909
9910     if test "$GXX" = yes ; then
9911       lt_int_apple_cc_single_mod=no
9912       output_verbose_link_cmd='echo'
9913       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9914        lt_int_apple_cc_single_mod=yes
9915       fi
9916       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9917        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9918       else
9919           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'
9920         fi
9921         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9922         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9923           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9924             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}'
9925           else
9926             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}'
9927           fi
9928             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}'
9929       else
9930       case "$cc_basename" in
9931         xlc*)
9932          output_verbose_link_cmd='echo'
9933           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'
9934           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9935           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9936           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}'
9937           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}'
9938           ;;
9939        *)
9940          ld_shlibs_CXX=no
9941           ;;
9942       esac
9943       fi
9944         ;;
9945
9946   dgux*)
9947     case $cc_basename in
9948       ec++)
9949         # FIXME: insert proper C++ library support
9950         ld_shlibs_CXX=no
9951         ;;
9952       ghcx)
9953         # Green Hills C++ Compiler
9954         # FIXME: insert proper C++ library support
9955         ld_shlibs_CXX=no
9956         ;;
9957       *)
9958         # FIXME: insert proper C++ library support
9959         ld_shlibs_CXX=no
9960         ;;
9961     esac
9962     ;;
9963   freebsd12*)
9964     # C++ shared libraries reported to be fairly broken before switch to ELF
9965     ld_shlibs_CXX=no
9966     ;;
9967   freebsd-elf*)
9968     archive_cmds_need_lc_CXX=no
9969     ;;
9970   freebsd* | kfreebsd*-gnu)
9971     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9972     # conventions
9973     ld_shlibs_CXX=yes
9974     ;;
9975   gnu*)
9976     ;;
9977   hpux9*)
9978     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9979     hardcode_libdir_separator_CXX=:
9980     export_dynamic_flag_spec_CXX='${wl}-E'
9981     hardcode_direct_CXX=yes
9982     hardcode_minus_L_CXX=yes # Not in the search PATH,
9983                                 # but as the default
9984                                 # location of the library.
9985
9986     case $cc_basename in
9987     CC)
9988       # FIXME: insert proper C++ library support
9989       ld_shlibs_CXX=no
9990       ;;
9991     aCC)
9992       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'
9993       # Commands to make compiler produce verbose output that lists
9994       # what "hidden" libraries, object files and flags are used when
9995       # linking a shared library.
9996       #
9997       # There doesn't appear to be a way to prevent this compiler from
9998       # explicitly linking system object files so we need to strip them
9999       # from the output so that they don't get included in the library
10000       # dependencies.
10001       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'
10002       ;;
10003     *)
10004       if test "$GXX" = yes; then
10005         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'
10006       else
10007         # FIXME: insert proper C++ library support
10008         ld_shlibs_CXX=no
10009       fi
10010       ;;
10011     esac
10012     ;;
10013   hpux10*|hpux11*)
10014     if test $with_gnu_ld = no; then
10015       case "$host_cpu" in
10016       hppa*64*)
10017         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10018         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10019         hardcode_libdir_separator_CXX=:
10020         ;;
10021       ia64*)
10022         hardcode_libdir_flag_spec_CXX='-L$libdir'
10023         ;;
10024       *)
10025         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10026         hardcode_libdir_separator_CXX=:
10027         export_dynamic_flag_spec_CXX='${wl}-E'
10028         ;;
10029       esac
10030     fi
10031     case "$host_cpu" in
10032     hppa*64*)
10033       hardcode_direct_CXX=no
10034       hardcode_shlibpath_var_CXX=no
10035       ;;
10036     ia64*)
10037       hardcode_direct_CXX=no
10038       hardcode_shlibpath_var_CXX=no
10039       hardcode_minus_L_CXX=yes # Not in the search PATH,
10040                                               # but as the default
10041                                               # location of the library.
10042       ;;
10043     *)
10044       hardcode_direct_CXX=yes
10045       hardcode_minus_L_CXX=yes # Not in the search PATH,
10046                                               # but as the default
10047                                               # location of the library.
10048       ;;
10049     esac
10050
10051     case $cc_basename in
10052       CC)
10053         # FIXME: insert proper C++ library support
10054         ld_shlibs_CXX=no
10055         ;;
10056       aCC)
10057         case "$host_cpu" in
10058         hppa*64*|ia64*)
10059           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10060           ;;
10061         *)
10062           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10063           ;;
10064         esac
10065         # Commands to make compiler produce verbose output that lists
10066         # what "hidden" libraries, object files and flags are used when
10067         # linking a shared library.
10068         #
10069         # There doesn't appear to be a way to prevent this compiler from
10070         # explicitly linking system object files so we need to strip them
10071         # from the output so that they don't get included in the library
10072         # dependencies.
10073         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'
10074         ;;
10075       *)
10076         if test "$GXX" = yes; then
10077           if test $with_gnu_ld = no; then
10078             case "$host_cpu" in
10079             ia64*|hppa*64*)
10080               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10081               ;;
10082             *)
10083               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'
10084               ;;
10085             esac
10086           fi
10087         else
10088           # FIXME: insert proper C++ library support
10089           ld_shlibs_CXX=no
10090         fi
10091         ;;
10092     esac
10093     ;;
10094   irix5* | irix6*)
10095     case $cc_basename in
10096       CC)
10097         # SGI C++
10098         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'
10099
10100         # Archives containing C++ object files must be created using
10101         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10102         # necessary to make sure instantiated templates are included
10103         # in the archive.
10104         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10105         ;;
10106       *)
10107         if test "$GXX" = yes; then
10108           if test "$with_gnu_ld" = no; then
10109             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'
10110           else
10111             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'
10112           fi
10113         fi
10114         link_all_deplibs_CXX=yes
10115         ;;
10116     esac
10117     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10118     hardcode_libdir_separator_CXX=:
10119     ;;
10120   linux*)
10121     case $cc_basename in
10122       KCC)
10123         # Kuck and Associates, Inc. (KAI) C++ Compiler
10124
10125         # KCC will only create a shared library if the output file
10126         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10127         # to its proper name (with version) after linking.
10128         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'
10129         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'
10130         # Commands to make compiler produce verbose output that lists
10131         # what "hidden" libraries, object files and flags are used when
10132         # linking a shared library.
10133         #
10134         # There doesn't appear to be a way to prevent this compiler from
10135         # explicitly linking system object files so we need to strip them
10136         # from the output so that they don't get included in the library
10137         # dependencies.
10138         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'
10139
10140         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10141         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10142
10143         # Archives containing C++ object files must be created using
10144         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10145         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10146         ;;
10147       icpc)
10148         # Intel C++
10149         with_gnu_ld=yes
10150         # version 8.0 and above of icpc choke on multiply defined symbols
10151         # if we add $predep_objects and $postdep_objects, however 7.1 and
10152         # earlier do not add the objects themselves.
10153         case `$CC -V 2>&1` in
10154         *"Version 7."*)
10155           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10156           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'
10157           ;;
10158         *)  # Version 8.0 or newer
10159           archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10160         archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10161           ;;
10162         esac
10163         archive_cmds_need_lc_CXX=no
10164         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10165         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10166         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10167         ;;
10168       cxx)
10169         # Compaq C++
10170         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10171         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'
10172
10173         runpath_var=LD_RUN_PATH
10174         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10175         hardcode_libdir_separator_CXX=:
10176
10177         # Commands to make compiler produce verbose output that lists
10178         # what "hidden" libraries, object files and flags are used when
10179         # linking a shared library.
10180         #
10181         # There doesn't appear to be a way to prevent this compiler from
10182         # explicitly linking system object files so we need to strip them
10183         # from the output so that they don't get included in the library
10184         # dependencies.
10185         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'
10186         ;;
10187     esac
10188     ;;
10189   lynxos*)
10190     # FIXME: insert proper C++ library support
10191     ld_shlibs_CXX=no
10192     ;;
10193   m88k*)
10194     # FIXME: insert proper C++ library support
10195     ld_shlibs_CXX=no
10196     ;;
10197   mvs*)
10198     case $cc_basename in
10199       cxx)
10200         # FIXME: insert proper C++ library support
10201         ld_shlibs_CXX=no
10202         ;;
10203       *)
10204         # FIXME: insert proper C++ library support
10205         ld_shlibs_CXX=no
10206         ;;
10207     esac
10208     ;;
10209   netbsd*)
10210     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10211       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10212       wlarc=
10213       hardcode_libdir_flag_spec_CXX='-R$libdir'
10214       hardcode_direct_CXX=yes
10215       hardcode_shlibpath_var_CXX=no
10216     fi
10217     # Workaround some broken pre-1.5 toolchains
10218     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10219     ;;
10220   openbsd2*)
10221     # C++ shared libraries are fairly broken
10222     ld_shlibs_CXX=no
10223     ;;
10224   openbsd*)
10225     hardcode_direct_CXX=yes
10226     hardcode_shlibpath_var_CXX=no
10227     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10228     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10229     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10230       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10231       export_dynamic_flag_spec_CXX='${wl}-E'
10232       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10233     fi
10234     output_verbose_link_cmd='echo'
10235     ;;
10236   osf3*)
10237     case $cc_basename in
10238       KCC)
10239         # Kuck and Associates, Inc. (KAI) C++ Compiler
10240
10241         # KCC will only create a shared library if the output file
10242         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10243         # to its proper name (with version) after linking.
10244         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'
10245
10246         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10247         hardcode_libdir_separator_CXX=:
10248
10249         # Archives containing C++ object files must be created using
10250         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10251         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10252
10253         ;;
10254       RCC)
10255         # Rational C++ 2.4.1
10256         # FIXME: insert proper C++ library support
10257         ld_shlibs_CXX=no
10258         ;;
10259       cxx)
10260         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10261         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'
10262
10263         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10264         hardcode_libdir_separator_CXX=:
10265
10266         # Commands to make compiler produce verbose output that lists
10267         # what "hidden" libraries, object files and flags are used when
10268         # linking a shared library.
10269         #
10270         # There doesn't appear to be a way to prevent this compiler from
10271         # explicitly linking system object files so we need to strip them
10272         # from the output so that they don't get included in the library
10273         # dependencies.
10274         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'
10275         ;;
10276       *)
10277         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10278           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10279           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'
10280
10281           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10282           hardcode_libdir_separator_CXX=:
10283
10284           # Commands to make compiler produce verbose output that lists
10285           # what "hidden" libraries, object files and flags are used when
10286           # linking a shared library.
10287           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10288
10289         else
10290           # FIXME: insert proper C++ library support
10291           ld_shlibs_CXX=no
10292         fi
10293         ;;
10294     esac
10295     ;;
10296   osf4* | osf5*)
10297     case $cc_basename in
10298       KCC)
10299         # Kuck and Associates, Inc. (KAI) C++ Compiler
10300
10301         # KCC will only create a shared library if the output file
10302         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10303         # to its proper name (with version) after linking.
10304         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'
10305
10306         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10307         hardcode_libdir_separator_CXX=:
10308
10309         # Archives containing C++ object files must be created using
10310         # the KAI C++ compiler.
10311         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10312         ;;
10313       RCC)
10314         # Rational C++ 2.4.1
10315         # FIXME: insert proper C++ library support
10316         ld_shlibs_CXX=no
10317         ;;
10318       cxx)
10319         allow_undefined_flag_CXX=' -expect_unresolved \*'
10320         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'
10321         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10322           echo "-hidden">> $lib.exp~
10323           $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~
10324           $rm $lib.exp'
10325
10326         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10327         hardcode_libdir_separator_CXX=:
10328
10329         # Commands to make compiler produce verbose output that lists
10330         # what "hidden" libraries, object files and flags are used when
10331         # linking a shared library.
10332         #
10333         # There doesn't appear to be a way to prevent this compiler from
10334         # explicitly linking system object files so we need to strip them
10335         # from the output so that they don't get included in the library
10336         # dependencies.
10337         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'
10338         ;;
10339       *)
10340         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10341           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10342          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'
10343
10344           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10345           hardcode_libdir_separator_CXX=:
10346
10347           # Commands to make compiler produce verbose output that lists
10348           # what "hidden" libraries, object files and flags are used when
10349           # linking a shared library.
10350           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10351
10352         else
10353           # FIXME: insert proper C++ library support
10354           ld_shlibs_CXX=no
10355         fi
10356         ;;
10357     esac
10358     ;;
10359   psos*)
10360     # FIXME: insert proper C++ library support
10361     ld_shlibs_CXX=no
10362     ;;
10363   sco*)
10364     archive_cmds_need_lc_CXX=no
10365     case $cc_basename in
10366       CC)
10367         # FIXME: insert proper C++ library support
10368         ld_shlibs_CXX=no
10369         ;;
10370       *)
10371         # FIXME: insert proper C++ library support
10372         ld_shlibs_CXX=no
10373         ;;
10374     esac
10375     ;;
10376   sunos4*)
10377     case $cc_basename in
10378       CC)
10379         # Sun C++ 4.x
10380         # FIXME: insert proper C++ library support
10381         ld_shlibs_CXX=no
10382         ;;
10383       lcc)
10384         # Lucid
10385         # FIXME: insert proper C++ library support
10386         ld_shlibs_CXX=no
10387         ;;
10388       *)
10389         # FIXME: insert proper C++ library support
10390         ld_shlibs_CXX=no
10391         ;;
10392     esac
10393     ;;
10394   solaris*)
10395     case $cc_basename in
10396       CC)
10397         # Sun C++ 4.2, 5.x and Centerline C++
10398         no_undefined_flag_CXX=' -zdefs'
10399         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10400         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10401         $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'
10402
10403         hardcode_libdir_flag_spec_CXX='-R$libdir'
10404         hardcode_shlibpath_var_CXX=no
10405         case $host_os in
10406           solaris2.0-5 | solaris2.0-5.*) ;;
10407           *)
10408             # The C++ compiler is used as linker so we must use $wl
10409             # flag to pass the commands to the underlying system
10410             # linker.
10411             # Supported since Solaris 2.6 (maybe 2.5.1?)
10412             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10413             ;;
10414         esac
10415         link_all_deplibs_CXX=yes
10416
10417         # Commands to make compiler produce verbose output that lists
10418         # what "hidden" libraries, object files and flags are used when
10419         # linking a shared library.
10420         #
10421         # There doesn't appear to be a way to prevent this compiler from
10422         # explicitly linking system object files so we need to strip them
10423         # from the output so that they don't get included in the library
10424         # dependencies.
10425         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'
10426
10427         # Archives containing C++ object files must be created using
10428         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10429         # necessary to make sure instantiated templates are included
10430         # in the archive.
10431         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10432         ;;
10433       gcx)
10434         # Green Hills C++ Compiler
10435         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10436
10437         # The C++ compiler must be used to create the archive.
10438         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10439         ;;
10440       *)
10441         # GNU C++ compiler with Solaris linker
10442         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10443           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10444           if $CC --version | grep -v '^2\.7' > /dev/null; then
10445             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10446             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10447                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10448
10449             # Commands to make compiler produce verbose output that lists
10450             # what "hidden" libraries, object files and flags are used when
10451             # linking a shared library.
10452             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10453           else
10454             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10455             # platform.
10456             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10457             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10458                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10459
10460             # Commands to make compiler produce verbose output that lists
10461             # what "hidden" libraries, object files and flags are used when
10462             # linking a shared library.
10463             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10464           fi
10465
10466           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10467         fi
10468         ;;
10469     esac
10470     ;;
10471   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10472     archive_cmds_need_lc_CXX=no
10473     ;;
10474   tandem*)
10475     case $cc_basename in
10476       NCC)
10477         # NonStop-UX NCC 3.20
10478         # FIXME: insert proper C++ library support
10479         ld_shlibs_CXX=no
10480         ;;
10481       *)
10482         # FIXME: insert proper C++ library support
10483         ld_shlibs_CXX=no
10484         ;;
10485     esac
10486     ;;
10487   vxworks*)
10488     # FIXME: insert proper C++ library support
10489     ld_shlibs_CXX=no
10490     ;;
10491   *)
10492     # FIXME: insert proper C++ library support
10493     ld_shlibs_CXX=no
10494     ;;
10495 esac
10496 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10497 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10498 test "$ld_shlibs_CXX" = no && can_build_shared=no
10499
10500 GCC_CXX="$GXX"
10501 LD_CXX="$LD"
10502
10503
10504 cat > conftest.$ac_ext <<EOF
10505 class Foo
10506 {
10507 public:
10508   Foo (void) { a = 0; }
10509 private:
10510   int a;
10511 };
10512 EOF
10513
10514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10515   (eval $ac_compile) 2>&5
10516   ac_status=$?
10517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518   (exit $ac_status); }; then
10519   # Parse the compiler output and extract the necessary
10520   # objects, libraries and library flags.
10521
10522   # Sentinel used to keep track of whether or not we are before
10523   # the conftest object file.
10524   pre_test_object_deps_done=no
10525
10526   # The `*' in the case matches for architectures that use `case' in
10527   # $output_verbose_cmd can trigger glob expansion during the loop
10528   # eval without this substitution.
10529   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10530
10531   for p in `eval $output_verbose_link_cmd`; do
10532     case $p in
10533
10534     -L* | -R* | -l*)
10535        # Some compilers place space between "-{L,R}" and the path.
10536        # Remove the space.
10537        if test $p = "-L" \
10538           || test $p = "-R"; then
10539          prev=$p
10540          continue
10541        else
10542          prev=
10543        fi
10544
10545        if test "$pre_test_object_deps_done" = no; then
10546          case $p in
10547          -L* | -R*)
10548            # Internal compiler library paths should come after those
10549            # provided the user.  The postdeps already come after the
10550            # user supplied libs so there is no need to process them.
10551            if test -z "$compiler_lib_search_path_CXX"; then
10552              compiler_lib_search_path_CXX="${prev}${p}"
10553            else
10554              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10555            fi
10556            ;;
10557          # The "-l" case would never come before the object being
10558          # linked, so don't bother handling this case.
10559          esac
10560        else
10561          if test -z "$postdeps_CXX"; then
10562            postdeps_CXX="${prev}${p}"
10563          else
10564            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10565          fi
10566        fi
10567        ;;
10568
10569     *.$objext)
10570        # This assumes that the test object file only shows up
10571        # once in the compiler output.
10572        if test "$p" = "conftest.$objext"; then
10573          pre_test_object_deps_done=yes
10574          continue
10575        fi
10576
10577        if test "$pre_test_object_deps_done" = no; then
10578          if test -z "$predep_objects_CXX"; then
10579            predep_objects_CXX="$p"
10580          else
10581            predep_objects_CXX="$predep_objects_CXX $p"
10582          fi
10583        else
10584          if test -z "$postdep_objects_CXX"; then
10585            postdep_objects_CXX="$p"
10586          else
10587            postdep_objects_CXX="$postdep_objects_CXX $p"
10588          fi
10589        fi
10590        ;;
10591
10592     *) ;; # Ignore the rest.
10593
10594     esac
10595   done
10596
10597   # Clean up.
10598   rm -f a.out a.exe
10599 else
10600   echo "libtool.m4: error: problem compiling CXX test program"
10601 fi
10602
10603 $rm -f confest.$objext
10604
10605 case " $postdeps_CXX " in
10606 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10607 esac
10608
10609 lt_prog_compiler_wl_CXX=
10610 lt_prog_compiler_pic_CXX=
10611 lt_prog_compiler_static_CXX=
10612
10613 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10614 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10615
10616   # C++ specific cases for pic, static, wl, etc.
10617   if test "$GXX" = yes; then
10618     lt_prog_compiler_wl_CXX='-Wl,'
10619     lt_prog_compiler_static_CXX='-static'
10620
10621     case $host_os in
10622     aix*)
10623       # All AIX code is PIC.
10624       if test "$host_cpu" = ia64; then
10625         # AIX 5 now supports IA64 processor
10626         lt_prog_compiler_static_CXX='-Bstatic'
10627       fi
10628       ;;
10629     amigaos*)
10630       # FIXME: we need at least 68020 code to build shared libraries, but
10631       # adding the `-m68020' flag to GCC prevents building anything better,
10632       # like `-m68040'.
10633       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10634       ;;
10635     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10636       # PIC is the default for these OSes.
10637       ;;
10638     mingw* | os2* | pw32*)
10639       # This hack is so that the source file can tell whether it is being
10640       # built for inclusion in a dll (and should export symbols for example).
10641       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10642       ;;
10643     darwin* | rhapsody*)
10644       # PIC is the default on this platform
10645       # Common symbols not allowed in MH_DYLIB files
10646       lt_prog_compiler_pic_CXX='-fno-common'
10647       ;;
10648     *djgpp*)
10649       # DJGPP does not support shared libraries at all
10650       lt_prog_compiler_pic_CXX=
10651       ;;
10652     sysv4*MP*)
10653       if test -d /usr/nec; then
10654         lt_prog_compiler_pic_CXX=-Kconform_pic
10655       fi
10656       ;;
10657     hpux*)
10658       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10659       # not for PA HP-UX.
10660       case "$host_cpu" in
10661       hppa*64*|ia64*)
10662         ;;
10663       *)
10664         lt_prog_compiler_pic_CXX='-fPIC'
10665         ;;
10666       esac
10667       ;;
10668     *)
10669       lt_prog_compiler_pic_CXX='-fPIC'
10670       ;;
10671     esac
10672   else
10673     case $host_os in
10674       aix4* | aix5*)
10675         # All AIX code is PIC.
10676         if test "$host_cpu" = ia64; then
10677           # AIX 5 now supports IA64 processor
10678           lt_prog_compiler_static_CXX='-Bstatic'
10679         else
10680           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10681         fi
10682         ;;
10683       chorus*)
10684         case $cc_basename in
10685         cxch68)
10686           # Green Hills C++ Compiler
10687           # _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"
10688           ;;
10689         esac
10690         ;;
10691        darwin*)
10692          # PIC is the default on this platform
10693          # Common symbols not allowed in MH_DYLIB files
10694          case "$cc_basename" in
10695            xlc*)
10696            lt_prog_compiler_pic_CXX='-qnocommon'
10697            lt_prog_compiler_wl_CXX='-Wl,'
10698            ;;
10699          esac
10700        ;;
10701       dgux*)
10702         case $cc_basename in
10703           ec++)
10704             lt_prog_compiler_pic_CXX='-KPIC'
10705             ;;
10706           ghcx)
10707             # Green Hills C++ Compiler
10708             lt_prog_compiler_pic_CXX='-pic'
10709             ;;
10710           *)
10711             ;;
10712         esac
10713         ;;
10714       freebsd* | kfreebsd*-gnu)
10715         # FreeBSD uses GNU C++
10716         ;;
10717       hpux9* | hpux10* | hpux11*)
10718         case $cc_basename in
10719           CC)
10720             lt_prog_compiler_wl_CXX='-Wl,'
10721             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10722             if test "$host_cpu" != ia64; then
10723               lt_prog_compiler_pic_CXX='+Z'
10724             fi
10725             ;;
10726           aCC)
10727             lt_prog_compiler_wl_CXX='-Wl,'
10728             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10729             case "$host_cpu" in
10730             hppa*64*|ia64*)
10731               # +Z the default
10732               ;;
10733             *)
10734               lt_prog_compiler_pic_CXX='+Z'
10735               ;;
10736             esac
10737             ;;
10738           *)
10739             ;;
10740         esac
10741         ;;
10742       irix5* | irix6* | nonstopux*)
10743         case $cc_basename in
10744           CC)
10745             lt_prog_compiler_wl_CXX='-Wl,'
10746             lt_prog_compiler_static_CXX='-non_shared'
10747             # CC pic flag -KPIC is the default.
10748             ;;
10749           *)
10750             ;;
10751         esac
10752         ;;
10753       linux*)
10754         case $cc_basename in
10755           KCC)
10756             # KAI C++ Compiler
10757             lt_prog_compiler_wl_CXX='--backend -Wl,'
10758             lt_prog_compiler_pic_CXX='-fPIC'
10759             ;;
10760           icpc)
10761             # Intel C++
10762             lt_prog_compiler_wl_CXX='-Wl,'
10763             lt_prog_compiler_pic_CXX='-KPIC'
10764             lt_prog_compiler_static_CXX='-static'
10765             ;;
10766           cxx)
10767             # Compaq C++
10768             # Make sure the PIC flag is empty.  It appears that all Alpha
10769             # Linux and Compaq Tru64 Unix objects are PIC.
10770             lt_prog_compiler_pic_CXX=
10771             lt_prog_compiler_static_CXX='-non_shared'
10772             ;;
10773           *)
10774             ;;
10775         esac
10776         ;;
10777       lynxos*)
10778         ;;
10779       m88k*)
10780         ;;
10781       mvs*)
10782         case $cc_basename in
10783           cxx)
10784             lt_prog_compiler_pic_CXX='-W c,exportall'
10785             ;;
10786           *)
10787             ;;
10788         esac
10789         ;;
10790       netbsd*)
10791         ;;
10792       osf3* | osf4* | osf5*)
10793         case $cc_basename in
10794           KCC)
10795             lt_prog_compiler_wl_CXX='--backend -Wl,'
10796             ;;
10797           RCC)
10798             # Rational C++ 2.4.1
10799             lt_prog_compiler_pic_CXX='-pic'
10800             ;;
10801           cxx)
10802             # Digital/Compaq C++
10803             lt_prog_compiler_wl_CXX='-Wl,'
10804             # Make sure the PIC flag is empty.  It appears that all Alpha
10805             # Linux and Compaq Tru64 Unix objects are PIC.
10806             lt_prog_compiler_pic_CXX=
10807             lt_prog_compiler_static_CXX='-non_shared'
10808             ;;
10809           *)
10810             ;;
10811         esac
10812         ;;
10813       psos*)
10814         ;;
10815       sco*)
10816         case $cc_basename in
10817           CC)
10818             lt_prog_compiler_pic_CXX='-fPIC'
10819             ;;
10820           *)
10821             ;;
10822         esac
10823         ;;
10824       solaris*)
10825         case $cc_basename in
10826           CC)
10827             # Sun C++ 4.2, 5.x and Centerline C++
10828             lt_prog_compiler_pic_CXX='-KPIC'
10829             lt_prog_compiler_static_CXX='-Bstatic'
10830             lt_prog_compiler_wl_CXX='-Qoption ld '
10831             ;;
10832           gcx)
10833             # Green Hills C++ Compiler
10834             lt_prog_compiler_pic_CXX='-PIC'
10835             ;;
10836           *)
10837             ;;
10838         esac
10839         ;;
10840       sunos4*)
10841         case $cc_basename in
10842           CC)
10843             # Sun C++ 4.x
10844             lt_prog_compiler_pic_CXX='-pic'
10845             lt_prog_compiler_static_CXX='-Bstatic'
10846             ;;
10847           lcc)
10848             # Lucid
10849             lt_prog_compiler_pic_CXX='-pic'
10850             ;;
10851           *)
10852             ;;
10853         esac
10854         ;;
10855       tandem*)
10856         case $cc_basename in
10857           NCC)
10858             # NonStop-UX NCC 3.20
10859             lt_prog_compiler_pic_CXX='-KPIC'
10860             ;;
10861           *)
10862             ;;
10863         esac
10864         ;;
10865       unixware*)
10866         ;;
10867       vxworks*)
10868         ;;
10869       *)
10870         lt_prog_compiler_can_build_shared_CXX=no
10871         ;;
10872     esac
10873   fi
10874
10875 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10876 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10877
10878 #
10879 # Check to make sure the PIC flag actually works.
10880 #
10881 if test -n "$lt_prog_compiler_pic_CXX"; then
10882
10883 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10884 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10885 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10886   echo $ECHO_N "(cached) $ECHO_C" >&6
10887 else
10888   lt_prog_compiler_pic_works_CXX=no
10889   ac_outfile=conftest.$ac_objext
10890    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10891    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10892    # Insert the option either (1) after the last *FLAGS variable, or
10893    # (2) before a word containing "conftest.", or (3) at the end.
10894    # Note that $ac_compile itself does not contain backslashes and begins
10895    # with a dollar sign (not a hyphen), so the echo should work correctly.
10896    # The option is referenced via a variable to avoid confusing sed.
10897    lt_compile=`echo "$ac_compile" | $SED \
10898    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10899    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10900    -e 's:$: $lt_compiler_flag:'`
10901    (eval echo "\"\$as_me:10901: $lt_compile\"" >&5)
10902    (eval "$lt_compile" 2>conftest.err)
10903    ac_status=$?
10904    cat conftest.err >&5
10905    echo "$as_me:10905: \$? = $ac_status" >&5
10906    if (exit $ac_status) && test -s "$ac_outfile"; then
10907      # The compiler can only warn and ignore the option if not recognized
10908      # So say no if there are warnings
10909      if test ! -s conftest.err; then
10910        lt_prog_compiler_pic_works_CXX=yes
10911      fi
10912    fi
10913    $rm conftest*
10914
10915 fi
10916 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10917 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10918
10919 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10920     case $lt_prog_compiler_pic_CXX in
10921      "" | " "*) ;;
10922      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10923      esac
10924 else
10925     lt_prog_compiler_pic_CXX=
10926      lt_prog_compiler_can_build_shared_CXX=no
10927 fi
10928
10929 fi
10930 case "$host_os" in
10931   # For platforms which do not support PIC, -DPIC is meaningless:
10932   *djgpp*)
10933     lt_prog_compiler_pic_CXX=
10934     ;;
10935   *)
10936     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10937     ;;
10938 esac
10939
10940 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10941 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10942 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10943   echo $ECHO_N "(cached) $ECHO_C" >&6
10944 else
10945   lt_cv_prog_compiler_c_o_CXX=no
10946    $rm -r conftest 2>/dev/null
10947    mkdir conftest
10948    cd conftest
10949    mkdir out
10950    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10951
10952    lt_compiler_flag="-o out/conftest2.$ac_objext"
10953    # Insert the option either (1) after the last *FLAGS variable, or
10954    # (2) before a word containing "conftest.", or (3) at the end.
10955    # Note that $ac_compile itself does not contain backslashes and begins
10956    # with a dollar sign (not a hyphen), so the echo should work correctly.
10957    lt_compile=`echo "$ac_compile" | $SED \
10958    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10959    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10960    -e 's:$: $lt_compiler_flag:'`
10961    (eval echo "\"\$as_me:10961: $lt_compile\"" >&5)
10962    (eval "$lt_compile" 2>out/conftest.err)
10963    ac_status=$?
10964    cat out/conftest.err >&5
10965    echo "$as_me:10965: \$? = $ac_status" >&5
10966    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10967    then
10968      # The compiler can only warn and ignore the option if not recognized
10969      # So say no if there are warnings
10970      if test ! -s out/conftest.err; then
10971        lt_cv_prog_compiler_c_o_CXX=yes
10972      fi
10973    fi
10974    chmod u+w .
10975    $rm conftest*
10976    # SGI C++ compiler will create directory out/ii_files/ for
10977    # template instantiation
10978    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10979    $rm out/* && rmdir out
10980    cd ..
10981    rmdir conftest
10982    $rm conftest*
10983
10984 fi
10985 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10986 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10987
10988
10989 hard_links="nottested"
10990 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10991   # do not overwrite the value of need_locks provided by the user
10992   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10993 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10994   hard_links=yes
10995   $rm conftest*
10996   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10997   touch conftest.a
10998   ln conftest.a conftest.b 2>&5 || hard_links=no
10999   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11000   echo "$as_me:$LINENO: result: $hard_links" >&5
11001 echo "${ECHO_T}$hard_links" >&6
11002   if test "$hard_links" = no; then
11003     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11004 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11005     need_locks=warn
11006   fi
11007 else
11008   need_locks=no
11009 fi
11010
11011 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11012 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11013
11014   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11015   case $host_os in
11016   aix4* | aix5*)
11017     # If we're using GNU nm, then we don't want the "-C" option.
11018     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11019     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11020       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'
11021     else
11022       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'
11023     fi
11024     ;;
11025   pw32*)
11026     export_symbols_cmds_CXX="$ltdll_cmds"
11027   ;;
11028   cygwin* | mingw*)
11029     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11030   ;;
11031   *)
11032     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11033   ;;
11034   esac
11035
11036 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11037 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11038 test "$ld_shlibs_CXX" = no && can_build_shared=no
11039
11040 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11041 if test "$GCC" = yes; then
11042   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11043 fi
11044
11045 #
11046 # Do we need to explicitly link libc?
11047 #
11048 case "x$archive_cmds_need_lc_CXX" in
11049 x|xyes)
11050   # Assume -lc should be added
11051   archive_cmds_need_lc_CXX=yes
11052
11053   if test "$enable_shared" = yes && test "$GCC" = yes; then
11054     case $archive_cmds_CXX in
11055     *'~'*)
11056       # FIXME: we may have to deal with multi-command sequences.
11057       ;;
11058     '$CC '*)
11059       # Test whether the compiler implicitly links with -lc since on some
11060       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11061       # to ld, don't add -lc before -lgcc.
11062       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11063 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11064       $rm conftest*
11065       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11066
11067       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11068   (eval $ac_compile) 2>&5
11069   ac_status=$?
11070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071   (exit $ac_status); } 2>conftest.err; then
11072         soname=conftest
11073         lib=conftest
11074         libobjs=conftest.$ac_objext
11075         deplibs=
11076         wl=$lt_prog_compiler_wl_CXX
11077         compiler_flags=-v
11078         linker_flags=-v
11079         verstring=
11080         output_objdir=.
11081         libname=conftest
11082         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11083         allow_undefined_flag_CXX=
11084         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11085   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11086   ac_status=$?
11087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088   (exit $ac_status); }
11089         then
11090           archive_cmds_need_lc_CXX=no
11091         else
11092           archive_cmds_need_lc_CXX=yes
11093         fi
11094         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11095       else
11096         cat conftest.err 1>&5
11097       fi
11098       $rm conftest*
11099       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11100 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11101       ;;
11102     esac
11103   fi
11104   ;;
11105 esac
11106
11107 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11108 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11109 library_names_spec=
11110 libname_spec='lib$name'
11111 soname_spec=
11112 shrext_cmds=".so"
11113 postinstall_cmds=
11114 postuninstall_cmds=
11115 finish_cmds=
11116 finish_eval=
11117 shlibpath_var=
11118 shlibpath_overrides_runpath=unknown
11119 version_type=none
11120 dynamic_linker="$host_os ld.so"
11121 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11122 if test "$GCC" = yes; then
11123   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11124   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11125     # if the path contains ";" then we assume it to be the separator
11126     # otherwise default to the standard path separator (i.e. ":") - it is
11127     # assumed that no part of a normal pathname contains ";" but that should
11128     # okay in the real world where ";" in dirpaths is itself problematic.
11129     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11130   else
11131     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11132   fi
11133 else
11134   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11135 fi
11136 need_lib_prefix=unknown
11137 hardcode_into_libs=no
11138
11139 # when you set need_version to no, make sure it does not cause -set_version
11140 # flags to be left without arguments
11141 need_version=unknown
11142
11143 case $host_os in
11144 aix3*)
11145   version_type=linux
11146   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11147   shlibpath_var=LIBPATH
11148
11149   # AIX 3 has no versioning support, so we append a major version to the name.
11150   soname_spec='${libname}${release}${shared_ext}$major'
11151   ;;
11152
11153 aix4* | aix5*)
11154   version_type=linux
11155   need_lib_prefix=no
11156   need_version=no
11157   hardcode_into_libs=yes
11158   if test "$host_cpu" = ia64; then
11159     # AIX 5 supports IA64
11160     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11161     shlibpath_var=LD_LIBRARY_PATH
11162   else
11163     # With GCC up to 2.95.x, collect2 would create an import file
11164     # for dependence libraries.  The import file would start with
11165     # the line `#! .'.  This would cause the generated library to
11166     # depend on `.', always an invalid library.  This was fixed in
11167     # development snapshots of GCC prior to 3.0.
11168     case $host_os in
11169       aix4 | aix4.[01] | aix4.[01].*)
11170       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11171            echo ' yes '
11172            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11173         :
11174       else
11175         can_build_shared=no
11176       fi
11177       ;;
11178     esac
11179     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11180     # soname into executable. Probably we can add versioning support to
11181     # collect2, so additional links can be useful in future.
11182     if test "$aix_use_runtimelinking" = yes; then
11183       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11184       # instead of lib<name>.a to let people know that these are not
11185       # typical AIX shared libraries.
11186       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11187     else
11188       # We preserve .a as extension for shared libraries through AIX4.2
11189       # and later when we are not doing run time linking.
11190       library_names_spec='${libname}${release}.a $libname.a'
11191       soname_spec='${libname}${release}${shared_ext}$major'
11192     fi
11193     shlibpath_var=LIBPATH
11194   fi
11195   ;;
11196
11197 amigaos*)
11198   library_names_spec='$libname.ixlibrary $libname.a'
11199   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11200   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'
11201   ;;
11202
11203 beos*)
11204   library_names_spec='${libname}${shared_ext}'
11205   dynamic_linker="$host_os ld.so"
11206   shlibpath_var=LIBRARY_PATH
11207   ;;
11208
11209 bsdi[45]*)
11210   version_type=linux
11211   need_version=no
11212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11213   soname_spec='${libname}${release}${shared_ext}$major'
11214   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11215   shlibpath_var=LD_LIBRARY_PATH
11216   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11217   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11218   # the default ld.so.conf also contains /usr/contrib/lib and
11219   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11220   # libtool to hard-code these into programs
11221   ;;
11222
11223 cygwin* | mingw* | pw32*)
11224   version_type=windows
11225   shrext_cmds=".dll"
11226   need_version=no
11227   need_lib_prefix=no
11228
11229   case $GCC,$host_os in
11230   yes,cygwin* | yes,mingw* | yes,pw32*)
11231     library_names_spec='$libname.dll.a'
11232     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11233     postinstall_cmds='base_file=`basename \${file}`~
11234       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11235       dldir=$destdir/`dirname \$dlpath`~
11236       test -d \$dldir || mkdir -p \$dldir~
11237       $install_prog $dir/$dlname \$dldir/$dlname'
11238     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11239       dlpath=$dir/\$dldll~
11240        $rm \$dlpath'
11241     shlibpath_overrides_runpath=yes
11242
11243     case $host_os in
11244     cygwin*)
11245       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11246       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11247       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11248       ;;
11249     mingw*)
11250       # MinGW DLLs use traditional 'lib' prefix
11251       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11252       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11253       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11254         # It is most probably a Windows format PATH printed by
11255         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11256         # path with ; separators, and with drive letters. We can handle the
11257         # drive letters (cygwin fileutils understands them), so leave them,
11258         # especially as we might pass files found there to a mingw objdump,
11259         # which wouldn't understand a cygwinified path. Ahh.
11260         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11261       else
11262         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11263       fi
11264       ;;
11265     pw32*)
11266       # pw32 DLLs use 'pw' prefix rather than 'lib'
11267       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11268       ;;
11269     esac
11270     ;;
11271
11272   *)
11273     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11274     ;;
11275   esac
11276   dynamic_linker='Win32 ld.exe'
11277   # FIXME: first we should search . and the directory the executable is in
11278   shlibpath_var=PATH
11279   ;;
11280
11281 darwin* | rhapsody*)
11282   dynamic_linker="$host_os dyld"
11283   version_type=darwin
11284   need_lib_prefix=no
11285   need_version=no
11286   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11287   soname_spec='${libname}${release}${major}$shared_ext'
11288   shlibpath_overrides_runpath=yes
11289   shlibpath_var=DYLD_LIBRARY_PATH
11290   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11291   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11292   if test "$GCC" = yes; then
11293     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"`
11294   else
11295     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11296   fi
11297   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11298   ;;
11299
11300 dgux*)
11301   version_type=linux
11302   need_lib_prefix=no
11303   need_version=no
11304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11305   soname_spec='${libname}${release}${shared_ext}$major'
11306   shlibpath_var=LD_LIBRARY_PATH
11307   ;;
11308
11309 freebsd1*)
11310   dynamic_linker=no
11311   ;;
11312
11313 kfreebsd*-gnu)
11314   version_type=linux
11315   need_lib_prefix=no
11316   need_version=no
11317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11318   soname_spec='${libname}${release}${shared_ext}$major'
11319   shlibpath_var=LD_LIBRARY_PATH
11320   shlibpath_overrides_runpath=no
11321   hardcode_into_libs=yes
11322   dynamic_linker='GNU ld.so'
11323   ;;
11324
11325 freebsd*)
11326   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11327   version_type=freebsd-$objformat
11328   case $version_type in
11329     freebsd-elf*)
11330       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11331       need_version=no
11332       need_lib_prefix=no
11333       ;;
11334     freebsd-*)
11335       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11336       need_version=yes
11337       ;;
11338   esac
11339   shlibpath_var=LD_LIBRARY_PATH
11340   case $host_os in
11341   freebsd2*)
11342     shlibpath_overrides_runpath=yes
11343     ;;
11344   freebsd3.01* | freebsdelf3.01*)
11345     shlibpath_overrides_runpath=yes
11346     hardcode_into_libs=yes
11347     ;;
11348   *) # from 3.2 on
11349     shlibpath_overrides_runpath=no
11350     hardcode_into_libs=yes
11351     ;;
11352   esac
11353   ;;
11354
11355 gnu*)
11356   version_type=linux
11357   need_lib_prefix=no
11358   need_version=no
11359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11360   soname_spec='${libname}${release}${shared_ext}$major'
11361   shlibpath_var=LD_LIBRARY_PATH
11362   hardcode_into_libs=yes
11363   ;;
11364
11365 hpux9* | hpux10* | hpux11*)
11366   # Give a soname corresponding to the major version so that dld.sl refuses to
11367   # link against other versions.
11368   version_type=sunos
11369   need_lib_prefix=no
11370   need_version=no
11371   case "$host_cpu" in
11372   ia64*)
11373     shrext_cmds='.so'
11374     hardcode_into_libs=yes
11375     dynamic_linker="$host_os dld.so"
11376     shlibpath_var=LD_LIBRARY_PATH
11377     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11378     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11379     soname_spec='${libname}${release}${shared_ext}$major'
11380     if test "X$HPUX_IA64_MODE" = X32; then
11381       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11382     else
11383       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11384     fi
11385     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11386     ;;
11387    hppa*64*)
11388      shrext_cmds='.sl'
11389      hardcode_into_libs=yes
11390      dynamic_linker="$host_os dld.sl"
11391      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11392      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11393      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11394      soname_spec='${libname}${release}${shared_ext}$major'
11395      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11396      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11397      ;;
11398    *)
11399     shrext_cmds='.sl'
11400     dynamic_linker="$host_os dld.sl"
11401     shlibpath_var=SHLIB_PATH
11402     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11403     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11404     soname_spec='${libname}${release}${shared_ext}$major'
11405     ;;
11406   esac
11407   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11408   postinstall_cmds='chmod 555 $lib'
11409   ;;
11410
11411 irix5* | irix6* | nonstopux*)
11412   case $host_os in
11413     nonstopux*) version_type=nonstopux ;;
11414     *)
11415         if test "$lt_cv_prog_gnu_ld" = yes; then
11416                 version_type=linux
11417         else
11418                 version_type=irix
11419         fi ;;
11420   esac
11421   need_lib_prefix=no
11422   need_version=no
11423   soname_spec='${libname}${release}${shared_ext}$major'
11424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11425   case $host_os in
11426   irix5* | nonstopux*)
11427     libsuff= shlibsuff=
11428     ;;
11429   *)
11430     case $LD in # libtool.m4 will add one of these switches to LD
11431     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11432       libsuff= shlibsuff= libmagic=32-bit;;
11433     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11434       libsuff=32 shlibsuff=N32 libmagic=N32;;
11435     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11436       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11437     *) libsuff= shlibsuff= libmagic=never-match;;
11438     esac
11439     ;;
11440   esac
11441   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11442   shlibpath_overrides_runpath=no
11443   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11444   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11445   hardcode_into_libs=yes
11446   ;;
11447
11448 # No shared lib support for Linux oldld, aout, or coff.
11449 linux*oldld* | linux*aout* | linux*coff*)
11450   dynamic_linker=no
11451   ;;
11452
11453 # This must be Linux ELF.
11454 linux*)
11455   version_type=linux
11456   need_lib_prefix=no
11457   need_version=no
11458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11459   soname_spec='${libname}${release}${shared_ext}$major'
11460   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11461   shlibpath_var=LD_LIBRARY_PATH
11462   shlibpath_overrides_runpath=no
11463   # This implies no fast_install, which is unacceptable.
11464   # Some rework will be needed to allow for fast_install
11465   # before this can be enabled.
11466   hardcode_into_libs=yes
11467
11468   # Append ld.so.conf contents to the search path
11469   if test -f /etc/ld.so.conf; then
11470     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11471     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11472   fi
11473
11474   # We used to test for /lib/ld.so.1 and disable shared libraries on
11475   # powerpc, because MkLinux only supported shared libraries with the
11476   # GNU dynamic linker.  Since this was broken with cross compilers,
11477   # most powerpc-linux boxes support dynamic linking these days and
11478   # people can always --disable-shared, the test was removed, and we
11479   # assume the GNU/Linux dynamic linker is in use.
11480   dynamic_linker='GNU/Linux ld.so'
11481   ;;
11482
11483 knetbsd*-gnu)
11484   version_type=linux
11485   need_lib_prefix=no
11486   need_version=no
11487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11488   soname_spec='${libname}${release}${shared_ext}$major'
11489   shlibpath_var=LD_LIBRARY_PATH
11490   shlibpath_overrides_runpath=no
11491   hardcode_into_libs=yes
11492   dynamic_linker='GNU ld.so'
11493   ;;
11494
11495 netbsd*)
11496   version_type=sunos
11497   need_lib_prefix=no
11498   need_version=no
11499   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11500     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11501     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11502     dynamic_linker='NetBSD (a.out) ld.so'
11503   else
11504     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11505     soname_spec='${libname}${release}${shared_ext}$major'
11506     dynamic_linker='NetBSD ld.elf_so'
11507   fi
11508   shlibpath_var=LD_LIBRARY_PATH
11509   shlibpath_overrides_runpath=yes
11510   hardcode_into_libs=yes
11511   ;;
11512
11513 newsos6)
11514   version_type=linux
11515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11516   shlibpath_var=LD_LIBRARY_PATH
11517   shlibpath_overrides_runpath=yes
11518   ;;
11519
11520 nto-qnx*)
11521   version_type=linux
11522   need_lib_prefix=no
11523   need_version=no
11524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525   soname_spec='${libname}${release}${shared_ext}$major'
11526   shlibpath_var=LD_LIBRARY_PATH
11527   shlibpath_overrides_runpath=yes
11528   ;;
11529
11530 openbsd*)
11531   version_type=sunos
11532   need_lib_prefix=no
11533   need_version=no
11534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11535   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11536   shlibpath_var=LD_LIBRARY_PATH
11537   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11538     case $host_os in
11539       openbsd2.[89] | openbsd2.[89].*)
11540         shlibpath_overrides_runpath=no
11541         ;;
11542       *)
11543         shlibpath_overrides_runpath=yes
11544         ;;
11545       esac
11546   else
11547     shlibpath_overrides_runpath=yes
11548   fi
11549   ;;
11550
11551 os2*)
11552   libname_spec='$name'
11553   shrext_cmds=".dll"
11554   need_lib_prefix=no
11555   library_names_spec='$libname${shared_ext} $libname.a'
11556   dynamic_linker='OS/2 ld.exe'
11557   shlibpath_var=LIBPATH
11558   ;;
11559
11560 osf3* | osf4* | osf5*)
11561   version_type=osf
11562   need_lib_prefix=no
11563   need_version=no
11564   soname_spec='${libname}${release}${shared_ext}$major'
11565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11566   shlibpath_var=LD_LIBRARY_PATH
11567   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11568   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11569   ;;
11570
11571 sco3.2v5*)
11572   version_type=osf
11573   soname_spec='${libname}${release}${shared_ext}$major'
11574   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11575   shlibpath_var=LD_LIBRARY_PATH
11576   ;;
11577
11578 solaris*)
11579   version_type=linux
11580   need_lib_prefix=no
11581   need_version=no
11582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11583   soname_spec='${libname}${release}${shared_ext}$major'
11584   shlibpath_var=LD_LIBRARY_PATH
11585   shlibpath_overrides_runpath=yes
11586   hardcode_into_libs=yes
11587   # ldd complains unless libraries are executable
11588   postinstall_cmds='chmod +x $lib'
11589   ;;
11590
11591 sunos4*)
11592   version_type=sunos
11593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11594   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11595   shlibpath_var=LD_LIBRARY_PATH
11596   shlibpath_overrides_runpath=yes
11597   if test "$with_gnu_ld" = yes; then
11598     need_lib_prefix=no
11599   fi
11600   need_version=yes
11601   ;;
11602
11603 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11604   version_type=linux
11605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11606   soname_spec='${libname}${release}${shared_ext}$major'
11607   shlibpath_var=LD_LIBRARY_PATH
11608   case $host_vendor in
11609     sni)
11610       shlibpath_overrides_runpath=no
11611       need_lib_prefix=no
11612       export_dynamic_flag_spec='${wl}-Blargedynsym'
11613       runpath_var=LD_RUN_PATH
11614       ;;
11615     siemens)
11616       need_lib_prefix=no
11617       ;;
11618     motorola)
11619       need_lib_prefix=no
11620       need_version=no
11621       shlibpath_overrides_runpath=no
11622       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11623       ;;
11624   esac
11625   ;;
11626
11627 sysv4*MP*)
11628   if test -d /usr/nec ;then
11629     version_type=linux
11630     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11631     soname_spec='$libname${shared_ext}.$major'
11632     shlibpath_var=LD_LIBRARY_PATH
11633   fi
11634   ;;
11635
11636 uts4*)
11637   version_type=linux
11638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639   soname_spec='${libname}${release}${shared_ext}$major'
11640   shlibpath_var=LD_LIBRARY_PATH
11641   ;;
11642
11643 *)
11644   dynamic_linker=no
11645   ;;
11646 esac
11647 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11648 echo "${ECHO_T}$dynamic_linker" >&6
11649 test "$dynamic_linker" = no && can_build_shared=no
11650
11651 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11652 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11653 hardcode_action_CXX=
11654 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11655    test -n "$runpath_var_CXX" || \
11656    test "X$hardcode_automatic_CXX" = "Xyes" ; then
11657
11658   # We can hardcode non-existant directories.
11659   if test "$hardcode_direct_CXX" != no &&
11660      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11661      # have to relink, otherwise we might link with an installed library
11662      # when we should be linking with a yet-to-be-installed one
11663      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11664      test "$hardcode_minus_L_CXX" != no; then
11665     # Linking always hardcodes the temporary library directory.
11666     hardcode_action_CXX=relink
11667   else
11668     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11669     hardcode_action_CXX=immediate
11670   fi
11671 else
11672   # We cannot hardcode anything, or else we can only hardcode existing
11673   # directories.
11674   hardcode_action_CXX=unsupported
11675 fi
11676 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11677 echo "${ECHO_T}$hardcode_action_CXX" >&6
11678
11679 if test "$hardcode_action_CXX" = relink; then
11680   # Fast installation is not supported
11681   enable_fast_install=no
11682 elif test "$shlibpath_overrides_runpath" = yes ||
11683      test "$enable_shared" = no; then
11684   # Fast installation is not necessary
11685   enable_fast_install=needless
11686 fi
11687
11688 striplib=
11689 old_striplib=
11690 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11691 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11692 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11693   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11694   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11695   echo "$as_me:$LINENO: result: yes" >&5
11696 echo "${ECHO_T}yes" >&6
11697 else
11698 # FIXME - insert some real tests, host_os isn't really good enough
11699   case $host_os in
11700    darwin*)
11701        if test -n "$STRIP" ; then
11702          striplib="$STRIP -x"
11703          echo "$as_me:$LINENO: result: yes" >&5
11704 echo "${ECHO_T}yes" >&6
11705        else
11706   echo "$as_me:$LINENO: result: no" >&5
11707 echo "${ECHO_T}no" >&6
11708 fi
11709        ;;
11710    *)
11711   echo "$as_me:$LINENO: result: no" >&5
11712 echo "${ECHO_T}no" >&6
11713     ;;
11714   esac
11715 fi
11716
11717 if test "x$enable_dlopen" != xyes; then
11718   enable_dlopen=unknown
11719   enable_dlopen_self=unknown
11720   enable_dlopen_self_static=unknown
11721 else
11722   lt_cv_dlopen=no
11723   lt_cv_dlopen_libs=
11724
11725   case $host_os in
11726   beos*)
11727     lt_cv_dlopen="load_add_on"
11728     lt_cv_dlopen_libs=
11729     lt_cv_dlopen_self=yes
11730     ;;
11731
11732   mingw* | pw32*)
11733     lt_cv_dlopen="LoadLibrary"
11734     lt_cv_dlopen_libs=
11735    ;;
11736
11737   cygwin*)
11738     lt_cv_dlopen="dlopen"
11739     lt_cv_dlopen_libs=
11740    ;;
11741
11742   darwin*)
11743   # if libdl is installed we need to link against it
11744     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11745 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11746 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11747   echo $ECHO_N "(cached) $ECHO_C" >&6
11748 else
11749   ac_check_lib_save_LIBS=$LIBS
11750 LIBS="-ldl  $LIBS"
11751 cat >conftest.$ac_ext <<_ACEOF
11752 /* confdefs.h.  */
11753 _ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h.  */
11757
11758 /* Override any gcc2 internal prototype to avoid an error.  */
11759 #ifdef __cplusplus
11760 extern "C"
11761 #endif
11762 /* We use char because int might match the return type of a gcc2
11763    builtin and then its argument prototype would still apply.  */
11764 char dlopen ();
11765 int
11766 main ()
11767 {
11768 dlopen ();
11769   ;
11770   return 0;
11771 }
11772 _ACEOF
11773 rm -f conftest.$ac_objext conftest$ac_exeext
11774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11775   (eval $ac_link) 2>conftest.er1
11776   ac_status=$?
11777   grep -v '^ *+' conftest.er1 >conftest.err
11778   rm -f conftest.er1
11779   cat conftest.err >&5
11780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781   (exit $ac_status); } &&
11782          { ac_try='test -z "$ac_cxx_werror_flag"
11783                          || test ! -s conftest.err'
11784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785   (eval $ac_try) 2>&5
11786   ac_status=$?
11787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788   (exit $ac_status); }; } &&
11789          { ac_try='test -s conftest$ac_exeext'
11790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791   (eval $ac_try) 2>&5
11792   ac_status=$?
11793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794   (exit $ac_status); }; }; then
11795   ac_cv_lib_dl_dlopen=yes
11796 else
11797   echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11799
11800 ac_cv_lib_dl_dlopen=no
11801 fi
11802 rm -f conftest.err conftest.$ac_objext \
11803       conftest$ac_exeext conftest.$ac_ext
11804 LIBS=$ac_check_lib_save_LIBS
11805 fi
11806 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11807 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11808 if test $ac_cv_lib_dl_dlopen = yes; then
11809   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11810 else
11811
11812     lt_cv_dlopen="dyld"
11813     lt_cv_dlopen_libs=
11814     lt_cv_dlopen_self=yes
11815
11816 fi
11817
11818    ;;
11819
11820   *)
11821     echo "$as_me:$LINENO: checking for shl_load" >&5
11822 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11823 if test "${ac_cv_func_shl_load+set}" = set; then
11824   echo $ECHO_N "(cached) $ECHO_C" >&6
11825 else
11826   cat >conftest.$ac_ext <<_ACEOF
11827 /* confdefs.h.  */
11828 _ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h.  */
11832 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11833    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11834 #define shl_load innocuous_shl_load
11835
11836 /* System header to define __stub macros and hopefully few prototypes,
11837     which can conflict with char shl_load (); below.
11838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11839     <limits.h> exists even on freestanding compilers.  */
11840
11841 #ifdef __STDC__
11842 # include <limits.h>
11843 #else
11844 # include <assert.h>
11845 #endif
11846
11847 #undef shl_load
11848
11849 /* Override any gcc2 internal prototype to avoid an error.  */
11850 #ifdef __cplusplus
11851 extern "C"
11852 {
11853 #endif
11854 /* We use char because int might match the return type of a gcc2
11855    builtin and then its argument prototype would still apply.  */
11856 char shl_load ();
11857 /* The GNU C library defines this for functions which it implements
11858     to always fail with ENOSYS.  Some functions are actually named
11859     something starting with __ and the normal name is an alias.  */
11860 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11861 choke me
11862 #else
11863 char (*f) () = shl_load;
11864 #endif
11865 #ifdef __cplusplus
11866 }
11867 #endif
11868
11869 int
11870 main ()
11871 {
11872 return f != shl_load;
11873   ;
11874   return 0;
11875 }
11876 _ACEOF
11877 rm -f conftest.$ac_objext conftest$ac_exeext
11878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11879   (eval $ac_link) 2>conftest.er1
11880   ac_status=$?
11881   grep -v '^ *+' conftest.er1 >conftest.err
11882   rm -f conftest.er1
11883   cat conftest.err >&5
11884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885   (exit $ac_status); } &&
11886          { ac_try='test -z "$ac_cxx_werror_flag"
11887                          || test ! -s conftest.err'
11888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889   (eval $ac_try) 2>&5
11890   ac_status=$?
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); }; } &&
11893          { ac_try='test -s conftest$ac_exeext'
11894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895   (eval $ac_try) 2>&5
11896   ac_status=$?
11897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); }; }; then
11899   ac_cv_func_shl_load=yes
11900 else
11901   echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11903
11904 ac_cv_func_shl_load=no
11905 fi
11906 rm -f conftest.err conftest.$ac_objext \
11907       conftest$ac_exeext conftest.$ac_ext
11908 fi
11909 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11910 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11911 if test $ac_cv_func_shl_load = yes; then
11912   lt_cv_dlopen="shl_load"
11913 else
11914   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11915 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11916 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11917   echo $ECHO_N "(cached) $ECHO_C" >&6
11918 else
11919   ac_check_lib_save_LIBS=$LIBS
11920 LIBS="-ldld  $LIBS"
11921 cat >conftest.$ac_ext <<_ACEOF
11922 /* confdefs.h.  */
11923 _ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h.  */
11927
11928 /* Override any gcc2 internal prototype to avoid an error.  */
11929 #ifdef __cplusplus
11930 extern "C"
11931 #endif
11932 /* We use char because int might match the return type of a gcc2
11933    builtin and then its argument prototype would still apply.  */
11934 char shl_load ();
11935 int
11936 main ()
11937 {
11938 shl_load ();
11939   ;
11940   return 0;
11941 }
11942 _ACEOF
11943 rm -f conftest.$ac_objext conftest$ac_exeext
11944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11945   (eval $ac_link) 2>conftest.er1
11946   ac_status=$?
11947   grep -v '^ *+' conftest.er1 >conftest.err
11948   rm -f conftest.er1
11949   cat conftest.err >&5
11950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951   (exit $ac_status); } &&
11952          { ac_try='test -z "$ac_cxx_werror_flag"
11953                          || test ! -s conftest.err'
11954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955   (eval $ac_try) 2>&5
11956   ac_status=$?
11957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958   (exit $ac_status); }; } &&
11959          { ac_try='test -s conftest$ac_exeext'
11960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961   (eval $ac_try) 2>&5
11962   ac_status=$?
11963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964   (exit $ac_status); }; }; then
11965   ac_cv_lib_dld_shl_load=yes
11966 else
11967   echo "$as_me: failed program was:" >&5
11968 sed 's/^/| /' conftest.$ac_ext >&5
11969
11970 ac_cv_lib_dld_shl_load=no
11971 fi
11972 rm -f conftest.err conftest.$ac_objext \
11973       conftest$ac_exeext conftest.$ac_ext
11974 LIBS=$ac_check_lib_save_LIBS
11975 fi
11976 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11977 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11978 if test $ac_cv_lib_dld_shl_load = yes; then
11979   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11980 else
11981   echo "$as_me:$LINENO: checking for dlopen" >&5
11982 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11983 if test "${ac_cv_func_dlopen+set}" = set; then
11984   echo $ECHO_N "(cached) $ECHO_C" >&6
11985 else
11986   cat >conftest.$ac_ext <<_ACEOF
11987 /* confdefs.h.  */
11988 _ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h.  */
11992 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11993    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11994 #define dlopen innocuous_dlopen
11995
11996 /* System header to define __stub macros and hopefully few prototypes,
11997     which can conflict with char dlopen (); below.
11998     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11999     <limits.h> exists even on freestanding compilers.  */
12000
12001 #ifdef __STDC__
12002 # include <limits.h>
12003 #else
12004 # include <assert.h>
12005 #endif
12006
12007 #undef dlopen
12008
12009 /* Override any gcc2 internal prototype to avoid an error.  */
12010 #ifdef __cplusplus
12011 extern "C"
12012 {
12013 #endif
12014 /* We use char because int might match the return type of a gcc2
12015    builtin and then its argument prototype would still apply.  */
12016 char dlopen ();
12017 /* The GNU C library defines this for functions which it implements
12018     to always fail with ENOSYS.  Some functions are actually named
12019     something starting with __ and the normal name is an alias.  */
12020 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12021 choke me
12022 #else
12023 char (*f) () = dlopen;
12024 #endif
12025 #ifdef __cplusplus
12026 }
12027 #endif
12028
12029 int
12030 main ()
12031 {
12032 return f != dlopen;
12033   ;
12034   return 0;
12035 }
12036 _ACEOF
12037 rm -f conftest.$ac_objext conftest$ac_exeext
12038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12039   (eval $ac_link) 2>conftest.er1
12040   ac_status=$?
12041   grep -v '^ *+' conftest.er1 >conftest.err
12042   rm -f conftest.er1
12043   cat conftest.err >&5
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); } &&
12046          { ac_try='test -z "$ac_cxx_werror_flag"
12047                          || test ! -s conftest.err'
12048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049   (eval $ac_try) 2>&5
12050   ac_status=$?
12051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052   (exit $ac_status); }; } &&
12053          { ac_try='test -s conftest$ac_exeext'
12054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055   (eval $ac_try) 2>&5
12056   ac_status=$?
12057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058   (exit $ac_status); }; }; then
12059   ac_cv_func_dlopen=yes
12060 else
12061   echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.$ac_ext >&5
12063
12064 ac_cv_func_dlopen=no
12065 fi
12066 rm -f conftest.err conftest.$ac_objext \
12067       conftest$ac_exeext conftest.$ac_ext
12068 fi
12069 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12070 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12071 if test $ac_cv_func_dlopen = yes; then
12072   lt_cv_dlopen="dlopen"
12073 else
12074   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12075 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12076 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12077   echo $ECHO_N "(cached) $ECHO_C" >&6
12078 else
12079   ac_check_lib_save_LIBS=$LIBS
12080 LIBS="-ldl  $LIBS"
12081 cat >conftest.$ac_ext <<_ACEOF
12082 /* confdefs.h.  */
12083 _ACEOF
12084 cat confdefs.h >>conftest.$ac_ext
12085 cat >>conftest.$ac_ext <<_ACEOF
12086 /* end confdefs.h.  */
12087
12088 /* Override any gcc2 internal prototype to avoid an error.  */
12089 #ifdef __cplusplus
12090 extern "C"
12091 #endif
12092 /* We use char because int might match the return type of a gcc2
12093    builtin and then its argument prototype would still apply.  */
12094 char dlopen ();
12095 int
12096 main ()
12097 {
12098 dlopen ();
12099   ;
12100   return 0;
12101 }
12102 _ACEOF
12103 rm -f conftest.$ac_objext conftest$ac_exeext
12104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12105   (eval $ac_link) 2>conftest.er1
12106   ac_status=$?
12107   grep -v '^ *+' conftest.er1 >conftest.err
12108   rm -f conftest.er1
12109   cat conftest.err >&5
12110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111   (exit $ac_status); } &&
12112          { ac_try='test -z "$ac_cxx_werror_flag"
12113                          || test ! -s conftest.err'
12114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115   (eval $ac_try) 2>&5
12116   ac_status=$?
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); }; } &&
12119          { ac_try='test -s conftest$ac_exeext'
12120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121   (eval $ac_try) 2>&5
12122   ac_status=$?
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); }; }; then
12125   ac_cv_lib_dl_dlopen=yes
12126 else
12127   echo "$as_me: failed program was:" >&5
12128 sed 's/^/| /' conftest.$ac_ext >&5
12129
12130 ac_cv_lib_dl_dlopen=no
12131 fi
12132 rm -f conftest.err conftest.$ac_objext \
12133       conftest$ac_exeext conftest.$ac_ext
12134 LIBS=$ac_check_lib_save_LIBS
12135 fi
12136 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12137 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12138 if test $ac_cv_lib_dl_dlopen = yes; then
12139   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12140 else
12141   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12142 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12143 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12144   echo $ECHO_N "(cached) $ECHO_C" >&6
12145 else
12146   ac_check_lib_save_LIBS=$LIBS
12147 LIBS="-lsvld  $LIBS"
12148 cat >conftest.$ac_ext <<_ACEOF
12149 /* confdefs.h.  */
12150 _ACEOF
12151 cat confdefs.h >>conftest.$ac_ext
12152 cat >>conftest.$ac_ext <<_ACEOF
12153 /* end confdefs.h.  */
12154
12155 /* Override any gcc2 internal prototype to avoid an error.  */
12156 #ifdef __cplusplus
12157 extern "C"
12158 #endif
12159 /* We use char because int might match the return type of a gcc2
12160    builtin and then its argument prototype would still apply.  */
12161 char dlopen ();
12162 int
12163 main ()
12164 {
12165 dlopen ();
12166   ;
12167   return 0;
12168 }
12169 _ACEOF
12170 rm -f conftest.$ac_objext conftest$ac_exeext
12171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12172   (eval $ac_link) 2>conftest.er1
12173   ac_status=$?
12174   grep -v '^ *+' conftest.er1 >conftest.err
12175   rm -f conftest.er1
12176   cat conftest.err >&5
12177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178   (exit $ac_status); } &&
12179          { ac_try='test -z "$ac_cxx_werror_flag"
12180                          || test ! -s conftest.err'
12181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182   (eval $ac_try) 2>&5
12183   ac_status=$?
12184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185   (exit $ac_status); }; } &&
12186          { ac_try='test -s conftest$ac_exeext'
12187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188   (eval $ac_try) 2>&5
12189   ac_status=$?
12190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191   (exit $ac_status); }; }; then
12192   ac_cv_lib_svld_dlopen=yes
12193 else
12194   echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12196
12197 ac_cv_lib_svld_dlopen=no
12198 fi
12199 rm -f conftest.err conftest.$ac_objext \
12200       conftest$ac_exeext conftest.$ac_ext
12201 LIBS=$ac_check_lib_save_LIBS
12202 fi
12203 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12204 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12205 if test $ac_cv_lib_svld_dlopen = yes; then
12206   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12207 else
12208   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12209 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12210 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12211   echo $ECHO_N "(cached) $ECHO_C" >&6
12212 else
12213   ac_check_lib_save_LIBS=$LIBS
12214 LIBS="-ldld  $LIBS"
12215 cat >conftest.$ac_ext <<_ACEOF
12216 /* confdefs.h.  */
12217 _ACEOF
12218 cat confdefs.h >>conftest.$ac_ext
12219 cat >>conftest.$ac_ext <<_ACEOF
12220 /* end confdefs.h.  */
12221
12222 /* Override any gcc2 internal prototype to avoid an error.  */
12223 #ifdef __cplusplus
12224 extern "C"
12225 #endif
12226 /* We use char because int might match the return type of a gcc2
12227    builtin and then its argument prototype would still apply.  */
12228 char dld_link ();
12229 int
12230 main ()
12231 {
12232 dld_link ();
12233   ;
12234   return 0;
12235 }
12236 _ACEOF
12237 rm -f conftest.$ac_objext conftest$ac_exeext
12238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12239   (eval $ac_link) 2>conftest.er1
12240   ac_status=$?
12241   grep -v '^ *+' conftest.er1 >conftest.err
12242   rm -f conftest.er1
12243   cat conftest.err >&5
12244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245   (exit $ac_status); } &&
12246          { ac_try='test -z "$ac_cxx_werror_flag"
12247                          || test ! -s conftest.err'
12248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12249   (eval $ac_try) 2>&5
12250   ac_status=$?
12251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252   (exit $ac_status); }; } &&
12253          { ac_try='test -s conftest$ac_exeext'
12254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12255   (eval $ac_try) 2>&5
12256   ac_status=$?
12257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258   (exit $ac_status); }; }; then
12259   ac_cv_lib_dld_dld_link=yes
12260 else
12261   echo "$as_me: failed program was:" >&5
12262 sed 's/^/| /' conftest.$ac_ext >&5
12263
12264 ac_cv_lib_dld_dld_link=no
12265 fi
12266 rm -f conftest.err conftest.$ac_objext \
12267       conftest$ac_exeext conftest.$ac_ext
12268 LIBS=$ac_check_lib_save_LIBS
12269 fi
12270 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12271 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12272 if test $ac_cv_lib_dld_dld_link = yes; then
12273   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12274 fi
12275
12276
12277 fi
12278
12279
12280 fi
12281
12282
12283 fi
12284
12285
12286 fi
12287
12288
12289 fi
12290
12291     ;;
12292   esac
12293
12294   if test "x$lt_cv_dlopen" != xno; then
12295     enable_dlopen=yes
12296   else
12297     enable_dlopen=no
12298   fi
12299
12300   case $lt_cv_dlopen in
12301   dlopen)
12302     save_CPPFLAGS="$CPPFLAGS"
12303     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12304
12305     save_LDFLAGS="$LDFLAGS"
12306     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12307
12308     save_LIBS="$LIBS"
12309     LIBS="$lt_cv_dlopen_libs $LIBS"
12310
12311     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12312 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12313 if test "${lt_cv_dlopen_self+set}" = set; then
12314   echo $ECHO_N "(cached) $ECHO_C" >&6
12315 else
12316           if test "$cross_compiling" = yes; then :
12317   lt_cv_dlopen_self=cross
12318 else
12319   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12320   lt_status=$lt_dlunknown
12321   cat > conftest.$ac_ext <<EOF
12322 #line 12322 "configure"
12323 #include "confdefs.h"
12324
12325 #if HAVE_DLFCN_H
12326 #include <dlfcn.h>
12327 #endif
12328
12329 #include <stdio.h>
12330
12331 #ifdef RTLD_GLOBAL
12332 #  define LT_DLGLOBAL           RTLD_GLOBAL
12333 #else
12334 #  ifdef DL_GLOBAL
12335 #    define LT_DLGLOBAL         DL_GLOBAL
12336 #  else
12337 #    define LT_DLGLOBAL         0
12338 #  endif
12339 #endif
12340
12341 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12342    find out it does not work in some platform. */
12343 #ifndef LT_DLLAZY_OR_NOW
12344 #  ifdef RTLD_LAZY
12345 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12346 #  else
12347 #    ifdef DL_LAZY
12348 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12349 #    else
12350 #      ifdef RTLD_NOW
12351 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12352 #      else
12353 #        ifdef DL_NOW
12354 #          define LT_DLLAZY_OR_NOW      DL_NOW
12355 #        else
12356 #          define LT_DLLAZY_OR_NOW      0
12357 #        endif
12358 #      endif
12359 #    endif
12360 #  endif
12361 #endif
12362
12363 #ifdef __cplusplus
12364 extern "C" void exit (int);
12365 #endif
12366
12367 void fnord() { int i=42;}
12368 int main ()
12369 {
12370   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12371   int status = $lt_dlunknown;
12372
12373   if (self)
12374     {
12375       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12376       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12377       /* dlclose (self); */
12378     }
12379
12380     exit (status);
12381 }
12382 EOF
12383   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12384   (eval $ac_link) 2>&5
12385   ac_status=$?
12386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12388     (./conftest; exit; ) 2>/dev/null
12389     lt_status=$?
12390     case x$lt_status in
12391       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12392       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12393       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12394     esac
12395   else :
12396     # compilation failed
12397     lt_cv_dlopen_self=no
12398   fi
12399 fi
12400 rm -fr conftest*
12401
12402
12403 fi
12404 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12405 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12406
12407     if test "x$lt_cv_dlopen_self" = xyes; then
12408       LDFLAGS="$LDFLAGS $link_static_flag"
12409       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12410 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12411 if test "${lt_cv_dlopen_self_static+set}" = set; then
12412   echo $ECHO_N "(cached) $ECHO_C" >&6
12413 else
12414           if test "$cross_compiling" = yes; then :
12415   lt_cv_dlopen_self_static=cross
12416 else
12417   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12418   lt_status=$lt_dlunknown
12419   cat > conftest.$ac_ext <<EOF
12420 #line 12420 "configure"
12421 #include "confdefs.h"
12422
12423 #if HAVE_DLFCN_H
12424 #include <dlfcn.h>
12425 #endif
12426
12427 #include <stdio.h>
12428
12429 #ifdef RTLD_GLOBAL
12430 #  define LT_DLGLOBAL           RTLD_GLOBAL
12431 #else
12432 #  ifdef DL_GLOBAL
12433 #    define LT_DLGLOBAL         DL_GLOBAL
12434 #  else
12435 #    define LT_DLGLOBAL         0
12436 #  endif
12437 #endif
12438
12439 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12440    find out it does not work in some platform. */
12441 #ifndef LT_DLLAZY_OR_NOW
12442 #  ifdef RTLD_LAZY
12443 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12444 #  else
12445 #    ifdef DL_LAZY
12446 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12447 #    else
12448 #      ifdef RTLD_NOW
12449 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12450 #      else
12451 #        ifdef DL_NOW
12452 #          define LT_DLLAZY_OR_NOW      DL_NOW
12453 #        else
12454 #          define LT_DLLAZY_OR_NOW      0
12455 #        endif
12456 #      endif
12457 #    endif
12458 #  endif
12459 #endif
12460
12461 #ifdef __cplusplus
12462 extern "C" void exit (int);
12463 #endif
12464
12465 void fnord() { int i=42;}
12466 int main ()
12467 {
12468   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12469   int status = $lt_dlunknown;
12470
12471   if (self)
12472     {
12473       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12474       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12475       /* dlclose (self); */
12476     }
12477
12478     exit (status);
12479 }
12480 EOF
12481   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12482   (eval $ac_link) 2>&5
12483   ac_status=$?
12484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12486     (./conftest; exit; ) 2>/dev/null
12487     lt_status=$?
12488     case x$lt_status in
12489       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12490       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12491       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12492     esac
12493   else :
12494     # compilation failed
12495     lt_cv_dlopen_self_static=no
12496   fi
12497 fi
12498 rm -fr conftest*
12499
12500
12501 fi
12502 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12503 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12504     fi
12505
12506     CPPFLAGS="$save_CPPFLAGS"
12507     LDFLAGS="$save_LDFLAGS"
12508     LIBS="$save_LIBS"
12509     ;;
12510   esac
12511
12512   case $lt_cv_dlopen_self in
12513   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12514   *) enable_dlopen_self=unknown ;;
12515   esac
12516
12517   case $lt_cv_dlopen_self_static in
12518   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12519   *) enable_dlopen_self_static=unknown ;;
12520   esac
12521 fi
12522
12523
12524 # The else clause should only fire when bootstrapping the
12525 # libtool distribution, otherwise you forgot to ship ltmain.sh
12526 # with your package, and you will get complaints that there are
12527 # no rules to generate ltmain.sh.
12528 if test -f "$ltmain"; then
12529   # See if we are running on zsh, and set the options which allow our commands through
12530   # without removal of \ escapes.
12531   if test -n "${ZSH_VERSION+set}" ; then
12532     setopt NO_GLOB_SUBST
12533   fi
12534   # Now quote all the things that may contain metacharacters while being
12535   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12536   # variables and quote the copies for generation of the libtool script.
12537   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12538     SED SHELL STRIP \
12539     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12540     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12541     deplibs_check_method reload_flag reload_cmds need_locks \
12542     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12543     lt_cv_sys_global_symbol_to_c_name_address \
12544     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12545     old_postinstall_cmds old_postuninstall_cmds \
12546     compiler_CXX \
12547     CC_CXX \
12548     LD_CXX \
12549     lt_prog_compiler_wl_CXX \
12550     lt_prog_compiler_pic_CXX \
12551     lt_prog_compiler_static_CXX \
12552     lt_prog_compiler_no_builtin_flag_CXX \
12553     export_dynamic_flag_spec_CXX \
12554     thread_safe_flag_spec_CXX \
12555     whole_archive_flag_spec_CXX \
12556     enable_shared_with_static_runtimes_CXX \
12557     old_archive_cmds_CXX \
12558     old_archive_from_new_cmds_CXX \
12559     predep_objects_CXX \
12560     postdep_objects_CXX \
12561     predeps_CXX \
12562     postdeps_CXX \
12563     compiler_lib_search_path_CXX \
12564     archive_cmds_CXX \
12565     archive_expsym_cmds_CXX \
12566     postinstall_cmds_CXX \
12567     postuninstall_cmds_CXX \
12568     old_archive_from_expsyms_cmds_CXX \
12569     allow_undefined_flag_CXX \
12570     no_undefined_flag_CXX \
12571     export_symbols_cmds_CXX \
12572     hardcode_libdir_flag_spec_CXX \
12573     hardcode_libdir_flag_spec_ld_CXX \
12574     hardcode_libdir_separator_CXX \
12575     hardcode_automatic_CXX \
12576     module_cmds_CXX \
12577     module_expsym_cmds_CXX \
12578     lt_cv_prog_compiler_c_o_CXX \
12579     exclude_expsyms_CXX \
12580     include_expsyms_CXX; do
12581
12582     case $var in
12583     old_archive_cmds_CXX | \
12584     old_archive_from_new_cmds_CXX | \
12585     archive_cmds_CXX | \
12586     archive_expsym_cmds_CXX | \
12587     module_cmds_CXX | \
12588     module_expsym_cmds_CXX | \
12589     old_archive_from_expsyms_cmds_CXX | \
12590     export_symbols_cmds_CXX | \
12591     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12592     postinstall_cmds | postuninstall_cmds | \
12593     old_postinstall_cmds | old_postuninstall_cmds | \
12594     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12595       # Double-quote double-evaled strings.
12596       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12597       ;;
12598     *)
12599       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12600       ;;
12601     esac
12602   done
12603
12604   case $lt_echo in
12605   *'\$0 --fallback-echo"')
12606     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12607     ;;
12608   esac
12609
12610 cfgfile="$ofile"
12611
12612   cat <<__EOF__ >> "$cfgfile"
12613 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12614
12615 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12616
12617 # Shell to use when invoking shell scripts.
12618 SHELL=$lt_SHELL
12619
12620 # Whether or not to build shared libraries.
12621 build_libtool_libs=$enable_shared
12622
12623 # Whether or not to build static libraries.
12624 build_old_libs=$enable_static
12625
12626 # Whether or not to add -lc for building shared libraries.
12627 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12628
12629 # Whether or not to disallow shared libs when runtime libs are static
12630 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12631
12632 # Whether or not to optimize for fast installation.
12633 fast_install=$enable_fast_install
12634
12635 # The host system.
12636 host_alias=$host_alias
12637 host=$host
12638
12639 # An echo program that does not interpret backslashes.
12640 echo=$lt_echo
12641
12642 # The archiver.
12643 AR=$lt_AR
12644 AR_FLAGS=$lt_AR_FLAGS
12645
12646 # A C compiler.
12647 LTCC=$lt_LTCC
12648
12649 # A language-specific compiler.
12650 CC=$lt_compiler_CXX
12651
12652 # Is the compiler the GNU C compiler?
12653 with_gcc=$GCC_CXX
12654
12655 # An ERE matcher.
12656 EGREP=$lt_EGREP
12657
12658 # The linker used to build libraries.
12659 LD=$lt_LD_CXX
12660
12661 # Whether we need hard or soft links.
12662 LN_S=$lt_LN_S
12663
12664 # A BSD-compatible nm program.
12665 NM=$lt_NM
12666
12667 # A symbol stripping program
12668 STRIP=$lt_STRIP
12669
12670 # Used to examine libraries when file_magic_cmd begins "file"
12671 MAGIC_CMD=$MAGIC_CMD
12672
12673 # Used on cygwin: DLL creation program.
12674 DLLTOOL="$DLLTOOL"
12675
12676 # Used on cygwin: object dumper.
12677 OBJDUMP="$OBJDUMP"
12678
12679 # Used on cygwin: assembler.
12680 AS="$AS"
12681
12682 # The name of the directory that contains temporary libtool files.
12683 objdir=$objdir
12684
12685 # How to create reloadable object files.
12686 reload_flag=$lt_reload_flag
12687 reload_cmds=$lt_reload_cmds
12688
12689 # How to pass a linker flag through the compiler.
12690 wl=$lt_lt_prog_compiler_wl_CXX
12691
12692 # Object file suffix (normally "o").
12693 objext="$ac_objext"
12694
12695 # Old archive suffix (normally "a").
12696 libext="$libext"
12697
12698 # Shared library suffix (normally ".so").
12699 shrext_cmds='$shrext_cmds'
12700
12701 # Executable file suffix (normally "").
12702 exeext="$exeext"
12703
12704 # Additional compiler flags for building library objects.
12705 pic_flag=$lt_lt_prog_compiler_pic_CXX
12706 pic_mode=$pic_mode
12707
12708 # What is the maximum length of a command?
12709 max_cmd_len=$lt_cv_sys_max_cmd_len
12710
12711 # Does compiler simultaneously support -c and -o options?
12712 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12713
12714 # Must we lock files when doing compilation ?
12715 need_locks=$lt_need_locks
12716
12717 # Do we need the lib prefix for modules?
12718 need_lib_prefix=$need_lib_prefix
12719
12720 # Do we need a version for libraries?
12721 need_version=$need_version
12722
12723 # Whether dlopen is supported.
12724 dlopen_support=$enable_dlopen
12725
12726 # Whether dlopen of programs is supported.
12727 dlopen_self=$enable_dlopen_self
12728
12729 # Whether dlopen of statically linked programs is supported.
12730 dlopen_self_static=$enable_dlopen_self_static
12731
12732 # Compiler flag to prevent dynamic linking.
12733 link_static_flag=$lt_lt_prog_compiler_static_CXX
12734
12735 # Compiler flag to turn off builtin functions.
12736 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12737
12738 # Compiler flag to allow reflexive dlopens.
12739 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12740
12741 # Compiler flag to generate shared objects directly from archives.
12742 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12743
12744 # Compiler flag to generate thread-safe objects.
12745 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12746
12747 # Library versioning type.
12748 version_type=$version_type
12749
12750 # Format of library name prefix.
12751 libname_spec=$lt_libname_spec
12752
12753 # List of archive names.  First name is the real one, the rest are links.
12754 # The last name is the one that the linker finds with -lNAME.
12755 library_names_spec=$lt_library_names_spec
12756
12757 # The coded name of the library, if different from the real name.
12758 soname_spec=$lt_soname_spec
12759
12760 # Commands used to build and install an old-style archive.
12761 RANLIB=$lt_RANLIB
12762 old_archive_cmds=$lt_old_archive_cmds_CXX
12763 old_postinstall_cmds=$lt_old_postinstall_cmds
12764 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12765
12766 # Create an old-style archive from a shared archive.
12767 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12768
12769 # Create a temporary old-style archive to link instead of a shared archive.
12770 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12771
12772 # Commands used to build and install a shared archive.
12773 archive_cmds=$lt_archive_cmds_CXX
12774 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12775 postinstall_cmds=$lt_postinstall_cmds
12776 postuninstall_cmds=$lt_postuninstall_cmds
12777
12778 # Commands used to build a loadable module (assumed same as above if empty)
12779 module_cmds=$lt_module_cmds_CXX
12780 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12781
12782 # Commands to strip libraries.
12783 old_striplib=$lt_old_striplib
12784 striplib=$lt_striplib
12785
12786 # Dependencies to place before the objects being linked to create a
12787 # shared library.
12788 predep_objects=$lt_predep_objects_CXX
12789
12790 # Dependencies to place after the objects being linked to create a
12791 # shared library.
12792 postdep_objects=$lt_postdep_objects_CXX
12793
12794 # Dependencies to place before the objects being linked to create a
12795 # shared library.
12796 predeps=$lt_predeps_CXX
12797
12798 # Dependencies to place after the objects being linked to create a
12799 # shared library.
12800 postdeps=$lt_postdeps_CXX
12801
12802 # The library search path used internally by the compiler when linking
12803 # a shared library.
12804 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12805
12806 # Method to check whether dependent libraries are shared objects.
12807 deplibs_check_method=$lt_deplibs_check_method
12808
12809 # Command to use when deplibs_check_method == file_magic.
12810 file_magic_cmd=$lt_file_magic_cmd
12811
12812 # Flag that allows shared libraries with undefined symbols to be built.
12813 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12814
12815 # Flag that forces no undefined symbols.
12816 no_undefined_flag=$lt_no_undefined_flag_CXX
12817
12818 # Commands used to finish a libtool library installation in a directory.
12819 finish_cmds=$lt_finish_cmds
12820
12821 # Same as above, but a single script fragment to be evaled but not shown.
12822 finish_eval=$lt_finish_eval
12823
12824 # Take the output of nm and produce a listing of raw symbols and C names.
12825 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12826
12827 # Transform the output of nm in a proper C declaration
12828 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12829
12830 # Transform the output of nm in a C name address pair
12831 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12832
12833 # This is the shared library runtime path variable.
12834 runpath_var=$runpath_var
12835
12836 # This is the shared library path variable.
12837 shlibpath_var=$shlibpath_var
12838
12839 # Is shlibpath searched before the hard-coded library search path?
12840 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12841
12842 # How to hardcode a shared library path into an executable.
12843 hardcode_action=$hardcode_action_CXX
12844
12845 # Whether we should hardcode library paths into libraries.
12846 hardcode_into_libs=$hardcode_into_libs
12847
12848 # Flag to hardcode \$libdir into a binary during linking.
12849 # This must work even if \$libdir does not exist.
12850 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12851
12852 # If ld is used when linking, flag to hardcode \$libdir into
12853 # a binary during linking. This must work even if \$libdir does
12854 # not exist.
12855 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12856
12857 # Whether we need a single -rpath flag with a separated argument.
12858 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12859
12860 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12861 # resulting binary.
12862 hardcode_direct=$hardcode_direct_CXX
12863
12864 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12865 # resulting binary.
12866 hardcode_minus_L=$hardcode_minus_L_CXX
12867
12868 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12869 # the resulting binary.
12870 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12871
12872 # Set to yes if building a shared library automatically hardcodes DIR into the library
12873 # and all subsequent libraries and executables linked against it.
12874 hardcode_automatic=$hardcode_automatic_CXX
12875
12876 # Variables whose values should be saved in libtool wrapper scripts and
12877 # restored at relink time.
12878 variables_saved_for_relink="$variables_saved_for_relink"
12879
12880 # Whether libtool must link a program against all its dependency libraries.
12881 link_all_deplibs=$link_all_deplibs_CXX
12882
12883 # Compile-time system search path for libraries
12884 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12885
12886 # Run-time system search path for libraries
12887 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12888
12889 # Fix the shell variable \$srcfile for the compiler.
12890 fix_srcfile_path="$fix_srcfile_path_CXX"
12891
12892 # Set to yes if exported symbols are required.
12893 always_export_symbols=$always_export_symbols_CXX
12894
12895 # The commands to list exported symbols.
12896 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12897
12898 # The commands to extract the exported symbol list from a shared archive.
12899 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12900
12901 # Symbols that should not be listed in the preloaded symbols.
12902 exclude_expsyms=$lt_exclude_expsyms_CXX
12903
12904 # Symbols that must always be exported.
12905 include_expsyms=$lt_include_expsyms_CXX
12906
12907 # ### END LIBTOOL TAG CONFIG: $tagname
12908
12909 __EOF__
12910
12911
12912 else
12913   # If there is no Makefile yet, we rely on a make rule to execute
12914   # `config.status --recheck' to rerun these tests and create the
12915   # libtool script then.
12916   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12917   if test -f "$ltmain_in"; then
12918     test -f Makefile && make "$ltmain"
12919   fi
12920 fi
12921
12922
12923 ac_ext=c
12924 ac_cpp='$CPP $CPPFLAGS'
12925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12928
12929 CC=$lt_save_CC
12930 LDCXX=$LD
12931 LD=$lt_save_LD
12932 GCC=$lt_save_GCC
12933 with_gnu_ldcxx=$with_gnu_ld
12934 with_gnu_ld=$lt_save_with_gnu_ld
12935 lt_cv_path_LDCXX=$lt_cv_path_LD
12936 lt_cv_path_LD=$lt_save_path_LD
12937 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12938 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12939
12940         else
12941           tagname=""
12942         fi
12943         ;;
12944
12945       F77)
12946         if test -n "$F77" && test "X$F77" != "Xno"; then
12947
12948 ac_ext=f
12949 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12950 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12951 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12952
12953
12954 archive_cmds_need_lc_F77=no
12955 allow_undefined_flag_F77=
12956 always_export_symbols_F77=no
12957 archive_expsym_cmds_F77=
12958 export_dynamic_flag_spec_F77=
12959 hardcode_direct_F77=no
12960 hardcode_libdir_flag_spec_F77=
12961 hardcode_libdir_flag_spec_ld_F77=
12962 hardcode_libdir_separator_F77=
12963 hardcode_minus_L_F77=no
12964 hardcode_automatic_F77=no
12965 module_cmds_F77=
12966 module_expsym_cmds_F77=
12967 link_all_deplibs_F77=unknown
12968 old_archive_cmds_F77=$old_archive_cmds
12969 no_undefined_flag_F77=
12970 whole_archive_flag_spec_F77=
12971 enable_shared_with_static_runtimes_F77=no
12972
12973 # Source file extension for f77 test sources.
12974 ac_ext=f
12975
12976 # Object file extension for compiled f77 test sources.
12977 objext=o
12978 objext_F77=$objext
12979
12980 # Code to be used in simple compile tests
12981 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12982
12983 # Code to be used in simple link tests
12984 lt_simple_link_test_code="      program t\n      end\n"
12985
12986 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12987
12988 # If no C compiler was specified, use CC.
12989 LTCC=${LTCC-"$CC"}
12990
12991 # Allow CC to be a program name with arguments.
12992 compiler=$CC
12993
12994
12995 # Allow CC to be a program name with arguments.
12996 lt_save_CC="$CC"
12997 CC=${F77-"f77"}
12998 compiler=$CC
12999 compiler_F77=$CC
13000 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13001
13002 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13003 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13004 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13005 echo "${ECHO_T}$can_build_shared" >&6
13006
13007 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13008 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13009 test "$can_build_shared" = "no" && enable_shared=no
13010
13011 # On AIX, shared libraries and static libraries use the same namespace, and
13012 # are all built from PIC.
13013 case "$host_os" in
13014 aix3*)
13015   test "$enable_shared" = yes && enable_static=no
13016   if test -n "$RANLIB"; then
13017     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13018     postinstall_cmds='$RANLIB $lib'
13019   fi
13020   ;;
13021 aix4* | aix5*)
13022   test "$enable_shared" = yes && enable_static=no
13023   ;;
13024 esac
13025 echo "$as_me:$LINENO: result: $enable_shared" >&5
13026 echo "${ECHO_T}$enable_shared" >&6
13027
13028 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13029 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13030 # Make sure either enable_shared or enable_static is yes.
13031 test "$enable_shared" = yes || enable_static=yes
13032 echo "$as_me:$LINENO: result: $enable_static" >&5
13033 echo "${ECHO_T}$enable_static" >&6
13034
13035 test "$ld_shlibs_F77" = no && can_build_shared=no
13036
13037 GCC_F77="$G77"
13038 LD_F77="$LD"
13039
13040 lt_prog_compiler_wl_F77=
13041 lt_prog_compiler_pic_F77=
13042 lt_prog_compiler_static_F77=
13043
13044 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13045 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13046
13047   if test "$GCC" = yes; then
13048     lt_prog_compiler_wl_F77='-Wl,'
13049     lt_prog_compiler_static_F77='-static'
13050
13051     case $host_os in
13052       aix*)
13053       # All AIX code is PIC.
13054       if test "$host_cpu" = ia64; then
13055         # AIX 5 now supports IA64 processor
13056         lt_prog_compiler_static_F77='-Bstatic'
13057       fi
13058       ;;
13059
13060     amigaos*)
13061       # FIXME: we need at least 68020 code to build shared libraries, but
13062       # adding the `-m68020' flag to GCC prevents building anything better,
13063       # like `-m68040'.
13064       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13065       ;;
13066
13067     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13068       # PIC is the default for these OSes.
13069       ;;
13070
13071     mingw* | pw32* | os2*)
13072       # This hack is so that the source file can tell whether it is being
13073       # built for inclusion in a dll (and should export symbols for example).
13074       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13075       ;;
13076
13077     darwin* | rhapsody*)
13078       # PIC is the default on this platform
13079       # Common symbols not allowed in MH_DYLIB files
13080       lt_prog_compiler_pic_F77='-fno-common'
13081       ;;
13082
13083     msdosdjgpp*)
13084       # Just because we use GCC doesn't mean we suddenly get shared libraries
13085       # on systems that don't support them.
13086       lt_prog_compiler_can_build_shared_F77=no
13087       enable_shared=no
13088       ;;
13089
13090     sysv4*MP*)
13091       if test -d /usr/nec; then
13092         lt_prog_compiler_pic_F77=-Kconform_pic
13093       fi
13094       ;;
13095
13096     hpux*)
13097       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13098       # not for PA HP-UX.
13099       case "$host_cpu" in
13100       hppa*64*|ia64*)
13101         # +Z the default
13102         ;;
13103       *)
13104         lt_prog_compiler_pic_F77='-fPIC'
13105         ;;
13106       esac
13107       ;;
13108
13109     *)
13110       lt_prog_compiler_pic_F77='-fPIC'
13111       ;;
13112     esac
13113   else
13114     # PORTME Check for flag to pass linker flags through the system compiler.
13115     case $host_os in
13116     aix*)
13117       lt_prog_compiler_wl_F77='-Wl,'
13118       if test "$host_cpu" = ia64; then
13119         # AIX 5 now supports IA64 processor
13120         lt_prog_compiler_static_F77='-Bstatic'
13121       else
13122         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13123       fi
13124       ;;
13125       darwin*)
13126         # PIC is the default on this platform
13127         # Common symbols not allowed in MH_DYLIB files
13128        case "$cc_basename" in
13129          xlc*)
13130          lt_prog_compiler_pic_F77='-qnocommon'
13131          lt_prog_compiler_wl_F77='-Wl,'
13132          ;;
13133        esac
13134        ;;
13135
13136     mingw* | pw32* | os2*)
13137       # This hack is so that the source file can tell whether it is being
13138       # built for inclusion in a dll (and should export symbols for example).
13139       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13140       ;;
13141
13142     hpux9* | hpux10* | hpux11*)
13143       lt_prog_compiler_wl_F77='-Wl,'
13144       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13145       # not for PA HP-UX.
13146       case "$host_cpu" in
13147       hppa*64*|ia64*)
13148         # +Z the default
13149         ;;
13150       *)
13151         lt_prog_compiler_pic_F77='+Z'
13152         ;;
13153       esac
13154       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13155       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13156       ;;
13157
13158     irix5* | irix6* | nonstopux*)
13159       lt_prog_compiler_wl_F77='-Wl,'
13160       # PIC (with -KPIC) is the default.
13161       lt_prog_compiler_static_F77='-non_shared'
13162       ;;
13163
13164     newsos6)
13165       lt_prog_compiler_pic_F77='-KPIC'
13166       lt_prog_compiler_static_F77='-Bstatic'
13167       ;;
13168
13169     linux*)
13170       case $CC in
13171       icc* | ecc*)
13172         lt_prog_compiler_wl_F77='-Wl,'
13173         lt_prog_compiler_pic_F77='-KPIC'
13174         lt_prog_compiler_static_F77='-static'
13175         ;;
13176       ccc*)
13177         lt_prog_compiler_wl_F77='-Wl,'
13178         # All Alpha code is PIC.
13179         lt_prog_compiler_static_F77='-non_shared'
13180         ;;
13181       esac
13182       ;;
13183
13184     osf3* | osf4* | osf5*)
13185       lt_prog_compiler_wl_F77='-Wl,'
13186       # All OSF/1 code is PIC.
13187       lt_prog_compiler_static_F77='-non_shared'
13188       ;;
13189
13190     sco3.2v5*)
13191       lt_prog_compiler_pic_F77='-Kpic'
13192       lt_prog_compiler_static_F77='-dn'
13193       ;;
13194
13195     solaris*)
13196       lt_prog_compiler_wl_F77='-Wl,'
13197       lt_prog_compiler_pic_F77='-KPIC'
13198       lt_prog_compiler_static_F77='-Bstatic'
13199       ;;
13200
13201     sunos4*)
13202       lt_prog_compiler_wl_F77='-Qoption ld '
13203       lt_prog_compiler_pic_F77='-PIC'
13204       lt_prog_compiler_static_F77='-Bstatic'
13205       ;;
13206
13207     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13208       lt_prog_compiler_wl_F77='-Wl,'
13209       lt_prog_compiler_pic_F77='-KPIC'
13210       lt_prog_compiler_static_F77='-Bstatic'
13211       ;;
13212
13213     sysv4*MP*)
13214       if test -d /usr/nec ;then
13215         lt_prog_compiler_pic_F77='-Kconform_pic'
13216         lt_prog_compiler_static_F77='-Bstatic'
13217       fi
13218       ;;
13219
13220     uts4*)
13221       lt_prog_compiler_pic_F77='-pic'
13222       lt_prog_compiler_static_F77='-Bstatic'
13223       ;;
13224
13225     *)
13226       lt_prog_compiler_can_build_shared_F77=no
13227       ;;
13228     esac
13229   fi
13230
13231 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13232 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13233
13234 #
13235 # Check to make sure the PIC flag actually works.
13236 #
13237 if test -n "$lt_prog_compiler_pic_F77"; then
13238
13239 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13240 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13241 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13242   echo $ECHO_N "(cached) $ECHO_C" >&6
13243 else
13244   lt_prog_compiler_pic_works_F77=no
13245   ac_outfile=conftest.$ac_objext
13246    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13247    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13248    # Insert the option either (1) after the last *FLAGS variable, or
13249    # (2) before a word containing "conftest.", or (3) at the end.
13250    # Note that $ac_compile itself does not contain backslashes and begins
13251    # with a dollar sign (not a hyphen), so the echo should work correctly.
13252    # The option is referenced via a variable to avoid confusing sed.
13253    lt_compile=`echo "$ac_compile" | $SED \
13254    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13255    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13256    -e 's:$: $lt_compiler_flag:'`
13257    (eval echo "\"\$as_me:13257: $lt_compile\"" >&5)
13258    (eval "$lt_compile" 2>conftest.err)
13259    ac_status=$?
13260    cat conftest.err >&5
13261    echo "$as_me:13261: \$? = $ac_status" >&5
13262    if (exit $ac_status) && test -s "$ac_outfile"; then
13263      # The compiler can only warn and ignore the option if not recognized
13264      # So say no if there are warnings
13265      if test ! -s conftest.err; then
13266        lt_prog_compiler_pic_works_F77=yes
13267      fi
13268    fi
13269    $rm conftest*
13270
13271 fi
13272 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13273 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13274
13275 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13276     case $lt_prog_compiler_pic_F77 in
13277      "" | " "*) ;;
13278      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13279      esac
13280 else
13281     lt_prog_compiler_pic_F77=
13282      lt_prog_compiler_can_build_shared_F77=no
13283 fi
13284
13285 fi
13286 case "$host_os" in
13287   # For platforms which do not support PIC, -DPIC is meaningless:
13288   *djgpp*)
13289     lt_prog_compiler_pic_F77=
13290     ;;
13291   *)
13292     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13293     ;;
13294 esac
13295
13296 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13297 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13298 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13299   echo $ECHO_N "(cached) $ECHO_C" >&6
13300 else
13301   lt_cv_prog_compiler_c_o_F77=no
13302    $rm -r conftest 2>/dev/null
13303    mkdir conftest
13304    cd conftest
13305    mkdir out
13306    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13307
13308    lt_compiler_flag="-o out/conftest2.$ac_objext"
13309    # Insert the option either (1) after the last *FLAGS variable, or
13310    # (2) before a word containing "conftest.", or (3) at the end.
13311    # Note that $ac_compile itself does not contain backslashes and begins
13312    # with a dollar sign (not a hyphen), so the echo should work correctly.
13313    lt_compile=`echo "$ac_compile" | $SED \
13314    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13315    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13316    -e 's:$: $lt_compiler_flag:'`
13317    (eval echo "\"\$as_me:13317: $lt_compile\"" >&5)
13318    (eval "$lt_compile" 2>out/conftest.err)
13319    ac_status=$?
13320    cat out/conftest.err >&5
13321    echo "$as_me:13321: \$? = $ac_status" >&5
13322    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13323    then
13324      # The compiler can only warn and ignore the option if not recognized
13325      # So say no if there are warnings
13326      if test ! -s out/conftest.err; then
13327        lt_cv_prog_compiler_c_o_F77=yes
13328      fi
13329    fi
13330    chmod u+w .
13331    $rm conftest*
13332    # SGI C++ compiler will create directory out/ii_files/ for
13333    # template instantiation
13334    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13335    $rm out/* && rmdir out
13336    cd ..
13337    rmdir conftest
13338    $rm conftest*
13339
13340 fi
13341 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13342 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13343
13344
13345 hard_links="nottested"
13346 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13347   # do not overwrite the value of need_locks provided by the user
13348   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13349 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13350   hard_links=yes
13351   $rm conftest*
13352   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13353   touch conftest.a
13354   ln conftest.a conftest.b 2>&5 || hard_links=no
13355   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13356   echo "$as_me:$LINENO: result: $hard_links" >&5
13357 echo "${ECHO_T}$hard_links" >&6
13358   if test "$hard_links" = no; then
13359     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13360 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13361     need_locks=warn
13362   fi
13363 else
13364   need_locks=no
13365 fi
13366
13367 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13368 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13369
13370   runpath_var=
13371   allow_undefined_flag_F77=
13372   enable_shared_with_static_runtimes_F77=no
13373   archive_cmds_F77=
13374   archive_expsym_cmds_F77=
13375   old_archive_From_new_cmds_F77=
13376   old_archive_from_expsyms_cmds_F77=
13377   export_dynamic_flag_spec_F77=
13378   whole_archive_flag_spec_F77=
13379   thread_safe_flag_spec_F77=
13380   hardcode_libdir_flag_spec_F77=
13381   hardcode_libdir_flag_spec_ld_F77=
13382   hardcode_libdir_separator_F77=
13383   hardcode_direct_F77=no
13384   hardcode_minus_L_F77=no
13385   hardcode_shlibpath_var_F77=unsupported
13386   link_all_deplibs_F77=unknown
13387   hardcode_automatic_F77=no
13388   module_cmds_F77=
13389   module_expsym_cmds_F77=
13390   always_export_symbols_F77=no
13391   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13392   # include_expsyms should be a list of space-separated symbols to be *always*
13393   # included in the symbol list
13394   include_expsyms_F77=
13395   # exclude_expsyms can be an extended regexp of symbols to exclude
13396   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13397   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13398   # as well as any symbol that contains `d'.
13399   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13400   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13401   # platforms (ab)use it in PIC code, but their linkers get confused if
13402   # the symbol is explicitly referenced.  Since portable code cannot
13403   # rely on this symbol name, it's probably fine to never include it in
13404   # preloaded symbol tables.
13405   extract_expsyms_cmds=
13406
13407   case $host_os in
13408   cygwin* | mingw* | pw32*)
13409     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13410     # When not using gcc, we currently assume that we are using
13411     # Microsoft Visual C++.
13412     if test "$GCC" != yes; then
13413       with_gnu_ld=no
13414     fi
13415     ;;
13416   openbsd*)
13417     with_gnu_ld=no
13418     ;;
13419   esac
13420
13421   ld_shlibs_F77=yes
13422   if test "$with_gnu_ld" = yes; then
13423     # If archive_cmds runs LD, not CC, wlarc should be empty
13424     wlarc='${wl}'
13425
13426     # See if GNU ld supports shared libraries.
13427     case $host_os in
13428     aix3* | aix4* | aix5*)
13429       # On AIX/PPC, the GNU linker is very broken
13430       if test "$host_cpu" != ia64; then
13431         ld_shlibs_F77=no
13432         cat <<EOF 1>&2
13433
13434 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13435 *** to be unable to reliably create shared libraries on AIX.
13436 *** Therefore, libtool is disabling shared libraries support.  If you
13437 *** really care for shared libraries, you may want to modify your PATH
13438 *** so that a non-GNU linker is found, and then restart.
13439
13440 EOF
13441       fi
13442       ;;
13443
13444     amigaos*)
13445       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)'
13446       hardcode_libdir_flag_spec_F77='-L$libdir'
13447       hardcode_minus_L_F77=yes
13448
13449       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13450       # that the semantics of dynamic libraries on AmigaOS, at least up
13451       # to version 4, is to share data among multiple programs linked
13452       # with the same dynamic library.  Since this doesn't match the
13453       # behavior of shared libraries on other platforms, we can't use
13454       # them.
13455       ld_shlibs_F77=no
13456       ;;
13457
13458     beos*)
13459       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13460         allow_undefined_flag_F77=unsupported
13461         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13462         # support --undefined.  This deserves some investigation.  FIXME
13463         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13464       else
13465         ld_shlibs_F77=no
13466       fi
13467       ;;
13468
13469     cygwin* | mingw* | pw32*)
13470       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13471       # as there is no search path for DLLs.
13472       hardcode_libdir_flag_spec_F77='-L$libdir'
13473       allow_undefined_flag_F77=unsupported
13474       always_export_symbols_F77=no
13475       enable_shared_with_static_runtimes_F77=yes
13476       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13477
13478       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13479         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13480         # If the export-symbols file already is a .def file (1st line
13481         # is EXPORTS), use it as is; otherwise, prepend...
13482         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13483           cp $export_symbols $output_objdir/$soname.def;
13484         else
13485           echo EXPORTS > $output_objdir/$soname.def;
13486           cat $export_symbols >> $output_objdir/$soname.def;
13487         fi~
13488         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13489       else
13490         ld_shlibs=no
13491       fi
13492       ;;
13493
13494     netbsd*)
13495       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13496         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13497         wlarc=
13498       else
13499         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13500         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13501       fi
13502       ;;
13503
13504     solaris* | sysv5*)
13505       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13506         ld_shlibs_F77=no
13507         cat <<EOF 1>&2
13508
13509 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13510 *** create shared libraries on Solaris systems.  Therefore, libtool
13511 *** is disabling shared libraries support.  We urge you to upgrade GNU
13512 *** binutils to release 2.9.1 or newer.  Another option is to modify
13513 *** your PATH or compiler configuration so that the native linker is
13514 *** used, and then restart.
13515
13516 EOF
13517       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13518         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13519         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13520       else
13521         ld_shlibs_F77=no
13522       fi
13523       ;;
13524
13525     sunos4*)
13526       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13527       wlarc=
13528       hardcode_direct_F77=yes
13529       hardcode_shlibpath_var_F77=no
13530       ;;
13531
13532   linux*)
13533     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13534         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13535         archive_cmds_F77="$tmp_archive_cmds"
13536       supports_anon_versioning=no
13537       case `$LD -v 2>/dev/null` in
13538         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13539         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13540         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13541         *\ 2.11.*) ;; # other 2.11 versions
13542         *) supports_anon_versioning=yes ;;
13543       esac
13544       if test $supports_anon_versioning = yes; then
13545         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13546 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13547 $echo "local: *; };" >> $output_objdir/$libname.ver~
13548         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13549       else
13550         archive_expsym_cmds_F77="$tmp_archive_cmds"
13551       fi
13552     else
13553       ld_shlibs_F77=no
13554     fi
13555     ;;
13556
13557     *)
13558       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13559         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13560         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13561       else
13562         ld_shlibs_F77=no
13563       fi
13564       ;;
13565     esac
13566
13567     if test "$ld_shlibs_F77" = yes; then
13568       runpath_var=LD_RUN_PATH
13569       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13570       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13571       # ancient GNU ld didn't support --whole-archive et. al.
13572       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13573         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13574       else
13575         whole_archive_flag_spec_F77=
13576       fi
13577     fi
13578   else
13579     # PORTME fill in a description of your system's linker (not GNU ld)
13580     case $host_os in
13581     aix3*)
13582       allow_undefined_flag_F77=unsupported
13583       always_export_symbols_F77=yes
13584       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'
13585       # Note: this linker hardcodes the directories in LIBPATH if there
13586       # are no directories specified by -L.
13587       hardcode_minus_L_F77=yes
13588       if test "$GCC" = yes && test -z "$link_static_flag"; then
13589         # Neither direct hardcoding nor static linking is supported with a
13590         # broken collect2.
13591         hardcode_direct_F77=unsupported
13592       fi
13593       ;;
13594
13595     aix4* | aix5*)
13596       if test "$host_cpu" = ia64; then
13597         # On IA64, the linker does run time linking by default, so we don't
13598         # have to do anything special.
13599         aix_use_runtimelinking=no
13600         exp_sym_flag='-Bexport'
13601         no_entry_flag=""
13602       else
13603         # If we're using GNU nm, then we don't want the "-C" option.
13604         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13605         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13606           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'
13607         else
13608           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'
13609         fi
13610         aix_use_runtimelinking=no
13611
13612         # Test if we are trying to use run time linking or normal
13613         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13614         # need to do runtime linking.
13615         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13616           for ld_flag in $LDFLAGS; do
13617           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13618             aix_use_runtimelinking=yes
13619             break
13620           fi
13621           done
13622         esac
13623
13624         exp_sym_flag='-bexport'
13625         no_entry_flag='-bnoentry'
13626       fi
13627
13628       # When large executables or shared objects are built, AIX ld can
13629       # have problems creating the table of contents.  If linking a library
13630       # or program results in "error TOC overflow" add -mminimal-toc to
13631       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13632       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13633
13634       archive_cmds_F77=''
13635       hardcode_direct_F77=yes
13636       hardcode_libdir_separator_F77=':'
13637       link_all_deplibs_F77=yes
13638
13639       if test "$GCC" = yes; then
13640         case $host_os in aix4.012|aix4.012.*)
13641         # We only want to do this on AIX 4.2 and lower, the check
13642         # below for broken collect2 doesn't work under 4.3+
13643           collect2name=`${CC} -print-prog-name=collect2`
13644           if test -f "$collect2name" && \
13645            strings "$collect2name" | grep resolve_lib_name >/dev/null
13646           then
13647           # We have reworked collect2
13648           hardcode_direct_F77=yes
13649           else
13650           # We have old collect2
13651           hardcode_direct_F77=unsupported
13652           # It fails to find uninstalled libraries when the uninstalled
13653           # path is not listed in the libpath.  Setting hardcode_minus_L
13654           # to unsupported forces relinking
13655           hardcode_minus_L_F77=yes
13656           hardcode_libdir_flag_spec_F77='-L$libdir'
13657           hardcode_libdir_separator_F77=
13658           fi
13659         esac
13660         shared_flag='-shared'
13661       else
13662         # not using gcc
13663         if test "$host_cpu" = ia64; then
13664         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13665         # chokes on -Wl,-G. The following line is correct:
13666           shared_flag='-G'
13667         else
13668         if test "$aix_use_runtimelinking" = yes; then
13669             shared_flag='${wl}-G'
13670           else
13671             shared_flag='${wl}-bM:SRE'
13672         fi
13673         fi
13674       fi
13675
13676       # It seems that -bexpall does not export symbols beginning with
13677       # underscore (_), so it is better to generate a list of symbols to export.
13678       always_export_symbols_F77=yes
13679       if test "$aix_use_runtimelinking" = yes; then
13680         # Warning - without using the other runtime loading flags (-brtl),
13681         # -berok will link without error, but may produce a broken library.
13682         allow_undefined_flag_F77='-berok'
13683        # Determine the default libpath from the value encoded in an empty executable.
13684        cat >conftest.$ac_ext <<_ACEOF
13685       program main
13686
13687       end
13688 _ACEOF
13689 rm -f conftest.$ac_objext conftest$ac_exeext
13690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13691   (eval $ac_link) 2>conftest.er1
13692   ac_status=$?
13693   grep -v '^ *+' conftest.er1 >conftest.err
13694   rm -f conftest.er1
13695   cat conftest.err >&5
13696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697   (exit $ac_status); } &&
13698          { ac_try='test -z "$ac_f77_werror_flag"
13699                          || test ! -s conftest.err'
13700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701   (eval $ac_try) 2>&5
13702   ac_status=$?
13703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704   (exit $ac_status); }; } &&
13705          { ac_try='test -s conftest$ac_exeext'
13706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707   (eval $ac_try) 2>&5
13708   ac_status=$?
13709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710   (exit $ac_status); }; }; then
13711
13712 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13713 }'`
13714 # Check for a 64-bit object if we didn't find anything.
13715 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; }
13716 }'`; fi
13717 else
13718   echo "$as_me: failed program was:" >&5
13719 sed 's/^/| /' conftest.$ac_ext >&5
13720
13721 fi
13722 rm -f conftest.err conftest.$ac_objext \
13723       conftest$ac_exeext conftest.$ac_ext
13724 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13725
13726        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13727         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"
13728        else
13729         if test "$host_cpu" = ia64; then
13730           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13731           allow_undefined_flag_F77="-z nodefs"
13732           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"
13733         else
13734          # Determine the default libpath from the value encoded in an empty executable.
13735          cat >conftest.$ac_ext <<_ACEOF
13736       program main
13737
13738       end
13739 _ACEOF
13740 rm -f conftest.$ac_objext conftest$ac_exeext
13741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13742   (eval $ac_link) 2>conftest.er1
13743   ac_status=$?
13744   grep -v '^ *+' conftest.er1 >conftest.err
13745   rm -f conftest.er1
13746   cat conftest.err >&5
13747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748   (exit $ac_status); } &&
13749          { ac_try='test -z "$ac_f77_werror_flag"
13750                          || test ! -s conftest.err'
13751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13752   (eval $ac_try) 2>&5
13753   ac_status=$?
13754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755   (exit $ac_status); }; } &&
13756          { ac_try='test -s conftest$ac_exeext'
13757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758   (eval $ac_try) 2>&5
13759   ac_status=$?
13760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761   (exit $ac_status); }; }; then
13762
13763 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13764 }'`
13765 # Check for a 64-bit object if we didn't find anything.
13766 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; }
13767 }'`; fi
13768 else
13769   echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13771
13772 fi
13773 rm -f conftest.err conftest.$ac_objext \
13774       conftest$ac_exeext conftest.$ac_ext
13775 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13776
13777          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13778           # Warning - without using the other run time loading flags,
13779           # -berok will link without error, but may produce a broken library.
13780           no_undefined_flag_F77=' ${wl}-bernotok'
13781           allow_undefined_flag_F77=' ${wl}-berok'
13782           # -bexpall does not export symbols beginning with underscore (_)
13783           always_export_symbols_F77=yes
13784           # Exported symbols can be pulled into shared objects from archives
13785           whole_archive_flag_spec_F77=' '
13786           archive_cmds_need_lc_F77=yes
13787           # This is similar to how AIX traditionally builds it's shared libraries.
13788           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'
13789         fi
13790       fi
13791       ;;
13792
13793     amigaos*)
13794       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)'
13795       hardcode_libdir_flag_spec_F77='-L$libdir'
13796       hardcode_minus_L_F77=yes
13797       # see comment about different semantics on the GNU ld section
13798       ld_shlibs_F77=no
13799       ;;
13800
13801     bsdi[45]*)
13802       export_dynamic_flag_spec_F77=-rdynamic
13803       ;;
13804
13805     cygwin* | mingw* | pw32*)
13806       # When not using gcc, we currently assume that we are using
13807       # Microsoft Visual C++.
13808       # hardcode_libdir_flag_spec is actually meaningless, as there is
13809       # no search path for DLLs.
13810       hardcode_libdir_flag_spec_F77=' '
13811       allow_undefined_flag_F77=unsupported
13812       # Tell ltmain to make .lib files, not .a files.
13813       libext=lib
13814       # Tell ltmain to make .dll files, not .so files.
13815       shrext_cmds=".dll"
13816       # FIXME: Setting linknames here is a bad hack.
13817       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13818       # The linker will automatically build a .lib file if we build a DLL.
13819       old_archive_From_new_cmds_F77='true'
13820       # FIXME: Should let the user specify the lib program.
13821       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13822       fix_srcfile_path='`cygpath -w "$srcfile"`'
13823       enable_shared_with_static_runtimes_F77=yes
13824       ;;
13825
13826     darwin* | rhapsody*)
13827       case "$host_os" in
13828         rhapsody* | darwin1.[012])
13829          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13830          ;;
13831        *) # Darwin 1.3 on
13832          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13833            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13834          else
13835            case ${MACOSX_DEPLOYMENT_TARGET} in
13836              10.[012])
13837                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13838                ;;
13839              10.*)
13840                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13841                ;;
13842            esac
13843          fi
13844          ;;
13845       esac
13846       archive_cmds_need_lc_F77=no
13847       hardcode_direct_F77=no
13848       hardcode_automatic_F77=yes
13849       hardcode_shlibpath_var_F77=unsupported
13850       whole_archive_flag_spec_F77=''
13851       link_all_deplibs_F77=yes
13852     if test "$GCC" = yes ; then
13853         output_verbose_link_cmd='echo'
13854         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13855       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13856       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13857       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}'
13858       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}'
13859     else
13860       case "$cc_basename" in
13861         xlc*)
13862          output_verbose_link_cmd='echo'
13863          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13864          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13865           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13866          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}'
13867           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}'
13868           ;;
13869        *)
13870          ld_shlibs_F77=no
13871           ;;
13872       esac
13873     fi
13874       ;;
13875
13876     dgux*)
13877       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13878       hardcode_libdir_flag_spec_F77='-L$libdir'
13879       hardcode_shlibpath_var_F77=no
13880       ;;
13881
13882     freebsd1*)
13883       ld_shlibs_F77=no
13884       ;;
13885
13886     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13887     # support.  Future versions do this automatically, but an explicit c++rt0.o
13888     # does not break anything, and helps significantly (at the cost of a little
13889     # extra space).
13890     freebsd2.2*)
13891       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13892       hardcode_libdir_flag_spec_F77='-R$libdir'
13893       hardcode_direct_F77=yes
13894       hardcode_shlibpath_var_F77=no
13895       ;;
13896
13897     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13898     freebsd2*)
13899       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13900       hardcode_direct_F77=yes
13901       hardcode_minus_L_F77=yes
13902       hardcode_shlibpath_var_F77=no
13903       ;;
13904
13905     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13906     freebsd* | kfreebsd*-gnu)
13907       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13908       hardcode_libdir_flag_spec_F77='-R$libdir'
13909       hardcode_direct_F77=yes
13910       hardcode_shlibpath_var_F77=no
13911       ;;
13912
13913     hpux9*)
13914       if test "$GCC" = yes; then
13915         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'
13916       else
13917         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'
13918       fi
13919       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13920       hardcode_libdir_separator_F77=:
13921       hardcode_direct_F77=yes
13922
13923       # hardcode_minus_L: Not really in the search PATH,
13924       # but as the default location of the library.
13925       hardcode_minus_L_F77=yes
13926       export_dynamic_flag_spec_F77='${wl}-E'
13927       ;;
13928
13929     hpux10* | hpux11*)
13930       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13931         case "$host_cpu" in
13932         hppa*64*|ia64*)
13933           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13934           ;;
13935         *)
13936           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13937           ;;
13938         esac
13939       else
13940         case "$host_cpu" in
13941         hppa*64*|ia64*)
13942           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13943           ;;
13944         *)
13945           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13946           ;;
13947         esac
13948       fi
13949       if test "$with_gnu_ld" = no; then
13950         case "$host_cpu" in
13951         hppa*64*)
13952           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13953           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13954           hardcode_libdir_separator_F77=:
13955           hardcode_direct_F77=no
13956           hardcode_shlibpath_var_F77=no
13957           ;;
13958         ia64*)
13959           hardcode_libdir_flag_spec_F77='-L$libdir'
13960           hardcode_direct_F77=no
13961           hardcode_shlibpath_var_F77=no
13962
13963           # hardcode_minus_L: Not really in the search PATH,
13964           # but as the default location of the library.
13965           hardcode_minus_L_F77=yes
13966           ;;
13967         *)
13968           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13969           hardcode_libdir_separator_F77=:
13970           hardcode_direct_F77=yes
13971           export_dynamic_flag_spec_F77='${wl}-E'
13972
13973           # hardcode_minus_L: Not really in the search PATH,
13974           # but as the default location of the library.
13975           hardcode_minus_L_F77=yes
13976           ;;
13977         esac
13978       fi
13979       ;;
13980
13981     irix5* | irix6* | nonstopux*)
13982       if test "$GCC" = yes; then
13983         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'
13984       else
13985         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'
13986         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13987       fi
13988       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13989       hardcode_libdir_separator_F77=:
13990       link_all_deplibs_F77=yes
13991       ;;
13992
13993     netbsd*)
13994       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13995         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13996       else
13997         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13998       fi
13999       hardcode_libdir_flag_spec_F77='-R$libdir'
14000       hardcode_direct_F77=yes
14001       hardcode_shlibpath_var_F77=no
14002       ;;
14003
14004     newsos6)
14005       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14006       hardcode_direct_F77=yes
14007       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14008       hardcode_libdir_separator_F77=:
14009       hardcode_shlibpath_var_F77=no
14010       ;;
14011
14012     openbsd*)
14013       hardcode_direct_F77=yes
14014       hardcode_shlibpath_var_F77=no
14015       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14016         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14017         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14018         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14019         export_dynamic_flag_spec_F77='${wl}-E'
14020       else
14021        case $host_os in
14022          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14023            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14024            hardcode_libdir_flag_spec_F77='-R$libdir'
14025            ;;
14026          *)
14027            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14028            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14029            ;;
14030        esac
14031       fi
14032       ;;
14033
14034     os2*)
14035       hardcode_libdir_flag_spec_F77='-L$libdir'
14036       hardcode_minus_L_F77=yes
14037       allow_undefined_flag_F77=unsupported
14038       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'
14039       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14040       ;;
14041
14042     osf3*)
14043       if test "$GCC" = yes; then
14044         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14045         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'
14046       else
14047         allow_undefined_flag_F77=' -expect_unresolved \*'
14048         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'
14049       fi
14050       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14051       hardcode_libdir_separator_F77=:
14052       ;;
14053
14054     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14055       if test "$GCC" = yes; then
14056         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14057         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'
14058         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14059       else
14060         allow_undefined_flag_F77=' -expect_unresolved \*'
14061         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'
14062         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~
14063         $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'
14064
14065         # Both c and cxx compiler support -rpath directly
14066         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14067       fi
14068       hardcode_libdir_separator_F77=:
14069       ;;
14070
14071     sco3.2v5*)
14072       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14073       hardcode_shlibpath_var_F77=no
14074       export_dynamic_flag_spec_F77='${wl}-Bexport'
14075       runpath_var=LD_RUN_PATH
14076       hardcode_runpath_var=yes
14077       ;;
14078
14079     solaris*)
14080       no_undefined_flag_F77=' -z text'
14081       if test "$GCC" = yes; then
14082         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14083         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14084           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14085       else
14086         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14087         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14088         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14089       fi
14090       hardcode_libdir_flag_spec_F77='-R$libdir'
14091       hardcode_shlibpath_var_F77=no
14092       case $host_os in
14093       solaris2.[0-5] | solaris2.[0-5].*) ;;
14094       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14095         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14096       esac
14097       link_all_deplibs_F77=yes
14098       ;;
14099
14100     sunos4*)
14101       if test "x$host_vendor" = xsequent; then
14102         # Use $CC to link under sequent, because it throws in some extra .o
14103         # files that make .init and .fini sections work.
14104         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14105       else
14106         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14107       fi
14108       hardcode_libdir_flag_spec_F77='-L$libdir'
14109       hardcode_direct_F77=yes
14110       hardcode_minus_L_F77=yes
14111       hardcode_shlibpath_var_F77=no
14112       ;;
14113
14114     sysv4)
14115       case $host_vendor in
14116         sni)
14117           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14118           hardcode_direct_F77=yes # is this really true???
14119         ;;
14120         siemens)
14121           ## LD is ld it makes a PLAMLIB
14122           ## CC just makes a GrossModule.
14123           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14124           reload_cmds_F77='$CC -r -o $output$reload_objs'
14125           hardcode_direct_F77=no
14126         ;;
14127         motorola)
14128           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14129           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14130         ;;
14131       esac
14132       runpath_var='LD_RUN_PATH'
14133       hardcode_shlibpath_var_F77=no
14134       ;;
14135
14136     sysv4.3*)
14137       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14138       hardcode_shlibpath_var_F77=no
14139       export_dynamic_flag_spec_F77='-Bexport'
14140       ;;
14141
14142     sysv4*MP*)
14143       if test -d /usr/nec; then
14144         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14145         hardcode_shlibpath_var_F77=no
14146         runpath_var=LD_RUN_PATH
14147         hardcode_runpath_var=yes
14148         ld_shlibs_F77=yes
14149       fi
14150       ;;
14151
14152     sysv4.2uw2*)
14153       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14154       hardcode_direct_F77=yes
14155       hardcode_minus_L_F77=no
14156       hardcode_shlibpath_var_F77=no
14157       hardcode_runpath_var=yes
14158       runpath_var=LD_RUN_PATH
14159       ;;
14160
14161    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14162       no_undefined_flag_F77='${wl}-z ${wl}text'
14163       if test "$GCC" = yes; then
14164         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14165       else
14166         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14167       fi
14168       runpath_var='LD_RUN_PATH'
14169       hardcode_shlibpath_var_F77=no
14170       ;;
14171
14172     sysv5*)
14173       no_undefined_flag_F77=' -z text'
14174       # $CC -shared without GNU ld will not create a library from C++
14175       # object files and a static libstdc++, better avoid it by now
14176       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14177       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14178                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14179       hardcode_libdir_flag_spec_F77=
14180       hardcode_shlibpath_var_F77=no
14181       runpath_var='LD_RUN_PATH'
14182       ;;
14183
14184     uts4*)
14185       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14186       hardcode_libdir_flag_spec_F77='-L$libdir'
14187       hardcode_shlibpath_var_F77=no
14188       ;;
14189
14190     *)
14191       ld_shlibs_F77=no
14192       ;;
14193     esac
14194   fi
14195
14196 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14197 echo "${ECHO_T}$ld_shlibs_F77" >&6
14198 test "$ld_shlibs_F77" = no && can_build_shared=no
14199
14200 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14201 if test "$GCC" = yes; then
14202   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14203 fi
14204
14205 #
14206 # Do we need to explicitly link libc?
14207 #
14208 case "x$archive_cmds_need_lc_F77" in
14209 x|xyes)
14210   # Assume -lc should be added
14211   archive_cmds_need_lc_F77=yes
14212
14213   if test "$enable_shared" = yes && test "$GCC" = yes; then
14214     case $archive_cmds_F77 in
14215     *'~'*)
14216       # FIXME: we may have to deal with multi-command sequences.
14217       ;;
14218     '$CC '*)
14219       # Test whether the compiler implicitly links with -lc since on some
14220       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14221       # to ld, don't add -lc before -lgcc.
14222       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14223 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14224       $rm conftest*
14225       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14226
14227       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14228   (eval $ac_compile) 2>&5
14229   ac_status=$?
14230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231   (exit $ac_status); } 2>conftest.err; then
14232         soname=conftest
14233         lib=conftest
14234         libobjs=conftest.$ac_objext
14235         deplibs=
14236         wl=$lt_prog_compiler_wl_F77
14237         compiler_flags=-v
14238         linker_flags=-v
14239         verstring=
14240         output_objdir=.
14241         libname=conftest
14242         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14243         allow_undefined_flag_F77=
14244         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14245   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14246   ac_status=$?
14247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); }
14249         then
14250           archive_cmds_need_lc_F77=no
14251         else
14252           archive_cmds_need_lc_F77=yes
14253         fi
14254         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14255       else
14256         cat conftest.err 1>&5
14257       fi
14258       $rm conftest*
14259       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14260 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14261       ;;
14262     esac
14263   fi
14264   ;;
14265 esac
14266
14267 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14268 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14269 library_names_spec=
14270 libname_spec='lib$name'
14271 soname_spec=
14272 shrext_cmds=".so"
14273 postinstall_cmds=
14274 postuninstall_cmds=
14275 finish_cmds=
14276 finish_eval=
14277 shlibpath_var=
14278 shlibpath_overrides_runpath=unknown
14279 version_type=none
14280 dynamic_linker="$host_os ld.so"
14281 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14282 if test "$GCC" = yes; then
14283   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14284   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14285     # if the path contains ";" then we assume it to be the separator
14286     # otherwise default to the standard path separator (i.e. ":") - it is
14287     # assumed that no part of a normal pathname contains ";" but that should
14288     # okay in the real world where ";" in dirpaths is itself problematic.
14289     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14290   else
14291     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14292   fi
14293 else
14294   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14295 fi
14296 need_lib_prefix=unknown
14297 hardcode_into_libs=no
14298
14299 # when you set need_version to no, make sure it does not cause -set_version
14300 # flags to be left without arguments
14301 need_version=unknown
14302
14303 case $host_os in
14304 aix3*)
14305   version_type=linux
14306   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14307   shlibpath_var=LIBPATH
14308
14309   # AIX 3 has no versioning support, so we append a major version to the name.
14310   soname_spec='${libname}${release}${shared_ext}$major'
14311   ;;
14312
14313 aix4* | aix5*)
14314   version_type=linux
14315   need_lib_prefix=no
14316   need_version=no
14317   hardcode_into_libs=yes
14318   if test "$host_cpu" = ia64; then
14319     # AIX 5 supports IA64
14320     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14321     shlibpath_var=LD_LIBRARY_PATH
14322   else
14323     # With GCC up to 2.95.x, collect2 would create an import file
14324     # for dependence libraries.  The import file would start with
14325     # the line `#! .'.  This would cause the generated library to
14326     # depend on `.', always an invalid library.  This was fixed in
14327     # development snapshots of GCC prior to 3.0.
14328     case $host_os in
14329       aix4 | aix4.[01] | aix4.[01].*)
14330       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14331            echo ' yes '
14332            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14333         :
14334       else
14335         can_build_shared=no
14336       fi
14337       ;;
14338     esac
14339     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14340     # soname into executable. Probably we can add versioning support to
14341     # collect2, so additional links can be useful in future.
14342     if test "$aix_use_runtimelinking" = yes; then
14343       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14344       # instead of lib<name>.a to let people know that these are not
14345       # typical AIX shared libraries.
14346       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14347     else
14348       # We preserve .a as extension for shared libraries through AIX4.2
14349       # and later when we are not doing run time linking.
14350       library_names_spec='${libname}${release}.a $libname.a'
14351       soname_spec='${libname}${release}${shared_ext}$major'
14352     fi
14353     shlibpath_var=LIBPATH
14354   fi
14355   ;;
14356
14357 amigaos*)
14358   library_names_spec='$libname.ixlibrary $libname.a'
14359   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14360   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'
14361   ;;
14362
14363 beos*)
14364   library_names_spec='${libname}${shared_ext}'
14365   dynamic_linker="$host_os ld.so"
14366   shlibpath_var=LIBRARY_PATH
14367   ;;
14368
14369 bsdi[45]*)
14370   version_type=linux
14371   need_version=no
14372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14373   soname_spec='${libname}${release}${shared_ext}$major'
14374   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14375   shlibpath_var=LD_LIBRARY_PATH
14376   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14377   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14378   # the default ld.so.conf also contains /usr/contrib/lib and
14379   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14380   # libtool to hard-code these into programs
14381   ;;
14382
14383 cygwin* | mingw* | pw32*)
14384   version_type=windows
14385   shrext_cmds=".dll"
14386   need_version=no
14387   need_lib_prefix=no
14388
14389   case $GCC,$host_os in
14390   yes,cygwin* | yes,mingw* | yes,pw32*)
14391     library_names_spec='$libname.dll.a'
14392     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14393     postinstall_cmds='base_file=`basename \${file}`~
14394       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14395       dldir=$destdir/`dirname \$dlpath`~
14396       test -d \$dldir || mkdir -p \$dldir~
14397       $install_prog $dir/$dlname \$dldir/$dlname'
14398     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14399       dlpath=$dir/\$dldll~
14400        $rm \$dlpath'
14401     shlibpath_overrides_runpath=yes
14402
14403     case $host_os in
14404     cygwin*)
14405       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14406       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14407       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14408       ;;
14409     mingw*)
14410       # MinGW DLLs use traditional 'lib' prefix
14411       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14412       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14413       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14414         # It is most probably a Windows format PATH printed by
14415         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14416         # path with ; separators, and with drive letters. We can handle the
14417         # drive letters (cygwin fileutils understands them), so leave them,
14418         # especially as we might pass files found there to a mingw objdump,
14419         # which wouldn't understand a cygwinified path. Ahh.
14420         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14421       else
14422         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14423       fi
14424       ;;
14425     pw32*)
14426       # pw32 DLLs use 'pw' prefix rather than 'lib'
14427       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14428       ;;
14429     esac
14430     ;;
14431
14432   *)
14433     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14434     ;;
14435   esac
14436   dynamic_linker='Win32 ld.exe'
14437   # FIXME: first we should search . and the directory the executable is in
14438   shlibpath_var=PATH
14439   ;;
14440
14441 darwin* | rhapsody*)
14442   dynamic_linker="$host_os dyld"
14443   version_type=darwin
14444   need_lib_prefix=no
14445   need_version=no
14446   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14447   soname_spec='${libname}${release}${major}$shared_ext'
14448   shlibpath_overrides_runpath=yes
14449   shlibpath_var=DYLD_LIBRARY_PATH
14450   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14451   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14452   if test "$GCC" = yes; then
14453     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"`
14454   else
14455     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14456   fi
14457   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14458   ;;
14459
14460 dgux*)
14461   version_type=linux
14462   need_lib_prefix=no
14463   need_version=no
14464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14465   soname_spec='${libname}${release}${shared_ext}$major'
14466   shlibpath_var=LD_LIBRARY_PATH
14467   ;;
14468
14469 freebsd1*)
14470   dynamic_linker=no
14471   ;;
14472
14473 kfreebsd*-gnu)
14474   version_type=linux
14475   need_lib_prefix=no
14476   need_version=no
14477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14478   soname_spec='${libname}${release}${shared_ext}$major'
14479   shlibpath_var=LD_LIBRARY_PATH
14480   shlibpath_overrides_runpath=no
14481   hardcode_into_libs=yes
14482   dynamic_linker='GNU ld.so'
14483   ;;
14484
14485 freebsd*)
14486   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14487   version_type=freebsd-$objformat
14488   case $version_type in
14489     freebsd-elf*)
14490       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14491       need_version=no
14492       need_lib_prefix=no
14493       ;;
14494     freebsd-*)
14495       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14496       need_version=yes
14497       ;;
14498   esac
14499   shlibpath_var=LD_LIBRARY_PATH
14500   case $host_os in
14501   freebsd2*)
14502     shlibpath_overrides_runpath=yes
14503     ;;
14504   freebsd3.01* | freebsdelf3.01*)
14505     shlibpath_overrides_runpath=yes
14506     hardcode_into_libs=yes
14507     ;;
14508   *) # from 3.2 on
14509     shlibpath_overrides_runpath=no
14510     hardcode_into_libs=yes
14511     ;;
14512   esac
14513   ;;
14514
14515 gnu*)
14516   version_type=linux
14517   need_lib_prefix=no
14518   need_version=no
14519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14520   soname_spec='${libname}${release}${shared_ext}$major'
14521   shlibpath_var=LD_LIBRARY_PATH
14522   hardcode_into_libs=yes
14523   ;;
14524
14525 hpux9* | hpux10* | hpux11*)
14526   # Give a soname corresponding to the major version so that dld.sl refuses to
14527   # link against other versions.
14528   version_type=sunos
14529   need_lib_prefix=no
14530   need_version=no
14531   case "$host_cpu" in
14532   ia64*)
14533     shrext_cmds='.so'
14534     hardcode_into_libs=yes
14535     dynamic_linker="$host_os dld.so"
14536     shlibpath_var=LD_LIBRARY_PATH
14537     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14538     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14539     soname_spec='${libname}${release}${shared_ext}$major'
14540     if test "X$HPUX_IA64_MODE" = X32; then
14541       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14542     else
14543       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14544     fi
14545     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14546     ;;
14547    hppa*64*)
14548      shrext_cmds='.sl'
14549      hardcode_into_libs=yes
14550      dynamic_linker="$host_os dld.sl"
14551      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14552      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14553      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14554      soname_spec='${libname}${release}${shared_ext}$major'
14555      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14556      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14557      ;;
14558    *)
14559     shrext_cmds='.sl'
14560     dynamic_linker="$host_os dld.sl"
14561     shlibpath_var=SHLIB_PATH
14562     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14563     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14564     soname_spec='${libname}${release}${shared_ext}$major'
14565     ;;
14566   esac
14567   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14568   postinstall_cmds='chmod 555 $lib'
14569   ;;
14570
14571 irix5* | irix6* | nonstopux*)
14572   case $host_os in
14573     nonstopux*) version_type=nonstopux ;;
14574     *)
14575         if test "$lt_cv_prog_gnu_ld" = yes; then
14576                 version_type=linux
14577         else
14578                 version_type=irix
14579         fi ;;
14580   esac
14581   need_lib_prefix=no
14582   need_version=no
14583   soname_spec='${libname}${release}${shared_ext}$major'
14584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14585   case $host_os in
14586   irix5* | nonstopux*)
14587     libsuff= shlibsuff=
14588     ;;
14589   *)
14590     case $LD in # libtool.m4 will add one of these switches to LD
14591     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14592       libsuff= shlibsuff= libmagic=32-bit;;
14593     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14594       libsuff=32 shlibsuff=N32 libmagic=N32;;
14595     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14596       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14597     *) libsuff= shlibsuff= libmagic=never-match;;
14598     esac
14599     ;;
14600   esac
14601   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14602   shlibpath_overrides_runpath=no
14603   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14604   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14605   hardcode_into_libs=yes
14606   ;;
14607
14608 # No shared lib support for Linux oldld, aout, or coff.
14609 linux*oldld* | linux*aout* | linux*coff*)
14610   dynamic_linker=no
14611   ;;
14612
14613 # This must be Linux ELF.
14614 linux*)
14615   version_type=linux
14616   need_lib_prefix=no
14617   need_version=no
14618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14619   soname_spec='${libname}${release}${shared_ext}$major'
14620   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14621   shlibpath_var=LD_LIBRARY_PATH
14622   shlibpath_overrides_runpath=no
14623   # This implies no fast_install, which is unacceptable.
14624   # Some rework will be needed to allow for fast_install
14625   # before this can be enabled.
14626   hardcode_into_libs=yes
14627
14628   # Append ld.so.conf contents to the search path
14629   if test -f /etc/ld.so.conf; then
14630     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14631     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14632   fi
14633
14634   # We used to test for /lib/ld.so.1 and disable shared libraries on
14635   # powerpc, because MkLinux only supported shared libraries with the
14636   # GNU dynamic linker.  Since this was broken with cross compilers,
14637   # most powerpc-linux boxes support dynamic linking these days and
14638   # people can always --disable-shared, the test was removed, and we
14639   # assume the GNU/Linux dynamic linker is in use.
14640   dynamic_linker='GNU/Linux ld.so'
14641   ;;
14642
14643 knetbsd*-gnu)
14644   version_type=linux
14645   need_lib_prefix=no
14646   need_version=no
14647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14648   soname_spec='${libname}${release}${shared_ext}$major'
14649   shlibpath_var=LD_LIBRARY_PATH
14650   shlibpath_overrides_runpath=no
14651   hardcode_into_libs=yes
14652   dynamic_linker='GNU ld.so'
14653   ;;
14654
14655 netbsd*)
14656   version_type=sunos
14657   need_lib_prefix=no
14658   need_version=no
14659   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14660     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14661     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14662     dynamic_linker='NetBSD (a.out) ld.so'
14663   else
14664     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14665     soname_spec='${libname}${release}${shared_ext}$major'
14666     dynamic_linker='NetBSD ld.elf_so'
14667   fi
14668   shlibpath_var=LD_LIBRARY_PATH
14669   shlibpath_overrides_runpath=yes
14670   hardcode_into_libs=yes
14671   ;;
14672
14673 newsos6)
14674   version_type=linux
14675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14676   shlibpath_var=LD_LIBRARY_PATH
14677   shlibpath_overrides_runpath=yes
14678   ;;
14679
14680 nto-qnx*)
14681   version_type=linux
14682   need_lib_prefix=no
14683   need_version=no
14684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14685   soname_spec='${libname}${release}${shared_ext}$major'
14686   shlibpath_var=LD_LIBRARY_PATH
14687   shlibpath_overrides_runpath=yes
14688   ;;
14689
14690 openbsd*)
14691   version_type=sunos
14692   need_lib_prefix=no
14693   need_version=no
14694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14695   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14696   shlibpath_var=LD_LIBRARY_PATH
14697   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14698     case $host_os in
14699       openbsd2.[89] | openbsd2.[89].*)
14700         shlibpath_overrides_runpath=no
14701         ;;
14702       *)
14703         shlibpath_overrides_runpath=yes
14704         ;;
14705       esac
14706   else
14707     shlibpath_overrides_runpath=yes
14708   fi
14709   ;;
14710
14711 os2*)
14712   libname_spec='$name'
14713   shrext_cmds=".dll"
14714   need_lib_prefix=no
14715   library_names_spec='$libname${shared_ext} $libname.a'
14716   dynamic_linker='OS/2 ld.exe'
14717   shlibpath_var=LIBPATH
14718   ;;
14719
14720 osf3* | osf4* | osf5*)
14721   version_type=osf
14722   need_lib_prefix=no
14723   need_version=no
14724   soname_spec='${libname}${release}${shared_ext}$major'
14725   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14726   shlibpath_var=LD_LIBRARY_PATH
14727   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14728   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14729   ;;
14730
14731 sco3.2v5*)
14732   version_type=osf
14733   soname_spec='${libname}${release}${shared_ext}$major'
14734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14735   shlibpath_var=LD_LIBRARY_PATH
14736   ;;
14737
14738 solaris*)
14739   version_type=linux
14740   need_lib_prefix=no
14741   need_version=no
14742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14743   soname_spec='${libname}${release}${shared_ext}$major'
14744   shlibpath_var=LD_LIBRARY_PATH
14745   shlibpath_overrides_runpath=yes
14746   hardcode_into_libs=yes
14747   # ldd complains unless libraries are executable
14748   postinstall_cmds='chmod +x $lib'
14749   ;;
14750
14751 sunos4*)
14752   version_type=sunos
14753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14754   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14755   shlibpath_var=LD_LIBRARY_PATH
14756   shlibpath_overrides_runpath=yes
14757   if test "$with_gnu_ld" = yes; then
14758     need_lib_prefix=no
14759   fi
14760   need_version=yes
14761   ;;
14762
14763 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14764   version_type=linux
14765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14766   soname_spec='${libname}${release}${shared_ext}$major'
14767   shlibpath_var=LD_LIBRARY_PATH
14768   case $host_vendor in
14769     sni)
14770       shlibpath_overrides_runpath=no
14771       need_lib_prefix=no
14772       export_dynamic_flag_spec='${wl}-Blargedynsym'
14773       runpath_var=LD_RUN_PATH
14774       ;;
14775     siemens)
14776       need_lib_prefix=no
14777       ;;
14778     motorola)
14779       need_lib_prefix=no
14780       need_version=no
14781       shlibpath_overrides_runpath=no
14782       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14783       ;;
14784   esac
14785   ;;
14786
14787 sysv4*MP*)
14788   if test -d /usr/nec ;then
14789     version_type=linux
14790     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14791     soname_spec='$libname${shared_ext}.$major'
14792     shlibpath_var=LD_LIBRARY_PATH
14793   fi
14794   ;;
14795
14796 uts4*)
14797   version_type=linux
14798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14799   soname_spec='${libname}${release}${shared_ext}$major'
14800   shlibpath_var=LD_LIBRARY_PATH
14801   ;;
14802
14803 *)
14804   dynamic_linker=no
14805   ;;
14806 esac
14807 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14808 echo "${ECHO_T}$dynamic_linker" >&6
14809 test "$dynamic_linker" = no && can_build_shared=no
14810
14811 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14812 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14813 hardcode_action_F77=
14814 if test -n "$hardcode_libdir_flag_spec_F77" || \
14815    test -n "$runpath_var_F77" || \
14816    test "X$hardcode_automatic_F77" = "Xyes" ; then
14817
14818   # We can hardcode non-existant directories.
14819   if test "$hardcode_direct_F77" != no &&
14820      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14821      # have to relink, otherwise we might link with an installed library
14822      # when we should be linking with a yet-to-be-installed one
14823      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14824      test "$hardcode_minus_L_F77" != no; then
14825     # Linking always hardcodes the temporary library directory.
14826     hardcode_action_F77=relink
14827   else
14828     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14829     hardcode_action_F77=immediate
14830   fi
14831 else
14832   # We cannot hardcode anything, or else we can only hardcode existing
14833   # directories.
14834   hardcode_action_F77=unsupported
14835 fi
14836 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14837 echo "${ECHO_T}$hardcode_action_F77" >&6
14838
14839 if test "$hardcode_action_F77" = relink; then
14840   # Fast installation is not supported
14841   enable_fast_install=no
14842 elif test "$shlibpath_overrides_runpath" = yes ||
14843      test "$enable_shared" = no; then
14844   # Fast installation is not necessary
14845   enable_fast_install=needless
14846 fi
14847
14848 striplib=
14849 old_striplib=
14850 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14851 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14852 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14853   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14854   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14855   echo "$as_me:$LINENO: result: yes" >&5
14856 echo "${ECHO_T}yes" >&6
14857 else
14858 # FIXME - insert some real tests, host_os isn't really good enough
14859   case $host_os in
14860    darwin*)
14861        if test -n "$STRIP" ; then
14862          striplib="$STRIP -x"
14863          echo "$as_me:$LINENO: result: yes" >&5
14864 echo "${ECHO_T}yes" >&6
14865        else
14866   echo "$as_me:$LINENO: result: no" >&5
14867 echo "${ECHO_T}no" >&6
14868 fi
14869        ;;
14870    *)
14871   echo "$as_me:$LINENO: result: no" >&5
14872 echo "${ECHO_T}no" >&6
14873     ;;
14874   esac
14875 fi
14876
14877
14878
14879 # The else clause should only fire when bootstrapping the
14880 # libtool distribution, otherwise you forgot to ship ltmain.sh
14881 # with your package, and you will get complaints that there are
14882 # no rules to generate ltmain.sh.
14883 if test -f "$ltmain"; then
14884   # See if we are running on zsh, and set the options which allow our commands through
14885   # without removal of \ escapes.
14886   if test -n "${ZSH_VERSION+set}" ; then
14887     setopt NO_GLOB_SUBST
14888   fi
14889   # Now quote all the things that may contain metacharacters while being
14890   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14891   # variables and quote the copies for generation of the libtool script.
14892   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14893     SED SHELL STRIP \
14894     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14895     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14896     deplibs_check_method reload_flag reload_cmds need_locks \
14897     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14898     lt_cv_sys_global_symbol_to_c_name_address \
14899     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14900     old_postinstall_cmds old_postuninstall_cmds \
14901     compiler_F77 \
14902     CC_F77 \
14903     LD_F77 \
14904     lt_prog_compiler_wl_F77 \
14905     lt_prog_compiler_pic_F77 \
14906     lt_prog_compiler_static_F77 \
14907     lt_prog_compiler_no_builtin_flag_F77 \
14908     export_dynamic_flag_spec_F77 \
14909     thread_safe_flag_spec_F77 \
14910     whole_archive_flag_spec_F77 \
14911     enable_shared_with_static_runtimes_F77 \
14912     old_archive_cmds_F77 \
14913     old_archive_from_new_cmds_F77 \
14914     predep_objects_F77 \
14915     postdep_objects_F77 \
14916     predeps_F77 \
14917     postdeps_F77 \
14918     compiler_lib_search_path_F77 \
14919     archive_cmds_F77 \
14920     archive_expsym_cmds_F77 \
14921     postinstall_cmds_F77 \
14922     postuninstall_cmds_F77 \
14923     old_archive_from_expsyms_cmds_F77 \
14924     allow_undefined_flag_F77 \
14925     no_undefined_flag_F77 \
14926     export_symbols_cmds_F77 \
14927     hardcode_libdir_flag_spec_F77 \
14928     hardcode_libdir_flag_spec_ld_F77 \
14929     hardcode_libdir_separator_F77 \
14930     hardcode_automatic_F77 \
14931     module_cmds_F77 \
14932     module_expsym_cmds_F77 \
14933     lt_cv_prog_compiler_c_o_F77 \
14934     exclude_expsyms_F77 \
14935     include_expsyms_F77; do
14936
14937     case $var in
14938     old_archive_cmds_F77 | \
14939     old_archive_from_new_cmds_F77 | \
14940     archive_cmds_F77 | \
14941     archive_expsym_cmds_F77 | \
14942     module_cmds_F77 | \
14943     module_expsym_cmds_F77 | \
14944     old_archive_from_expsyms_cmds_F77 | \
14945     export_symbols_cmds_F77 | \
14946     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14947     postinstall_cmds | postuninstall_cmds | \
14948     old_postinstall_cmds | old_postuninstall_cmds | \
14949     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14950       # Double-quote double-evaled strings.
14951       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14952       ;;
14953     *)
14954       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14955       ;;
14956     esac
14957   done
14958
14959   case $lt_echo in
14960   *'\$0 --fallback-echo"')
14961     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14962     ;;
14963   esac
14964
14965 cfgfile="$ofile"
14966
14967   cat <<__EOF__ >> "$cfgfile"
14968 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14969
14970 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14971
14972 # Shell to use when invoking shell scripts.
14973 SHELL=$lt_SHELL
14974
14975 # Whether or not to build shared libraries.
14976 build_libtool_libs=$enable_shared
14977
14978 # Whether or not to build static libraries.
14979 build_old_libs=$enable_static
14980
14981 # Whether or not to add -lc for building shared libraries.
14982 build_libtool_need_lc=$archive_cmds_need_lc_F77
14983
14984 # Whether or not to disallow shared libs when runtime libs are static
14985 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14986
14987 # Whether or not to optimize for fast installation.
14988 fast_install=$enable_fast_install
14989
14990 # The host system.
14991 host_alias=$host_alias
14992 host=$host
14993
14994 # An echo program that does not interpret backslashes.
14995 echo=$lt_echo
14996
14997 # The archiver.
14998 AR=$lt_AR
14999 AR_FLAGS=$lt_AR_FLAGS
15000
15001 # A C compiler.
15002 LTCC=$lt_LTCC
15003
15004 # A language-specific compiler.
15005 CC=$lt_compiler_F77
15006
15007 # Is the compiler the GNU C compiler?
15008 with_gcc=$GCC_F77
15009
15010 # An ERE matcher.
15011 EGREP=$lt_EGREP
15012
15013 # The linker used to build libraries.
15014 LD=$lt_LD_F77
15015
15016 # Whether we need hard or soft links.
15017 LN_S=$lt_LN_S
15018
15019 # A BSD-compatible nm program.
15020 NM=$lt_NM
15021
15022 # A symbol stripping program
15023 STRIP=$lt_STRIP
15024
15025 # Used to examine libraries when file_magic_cmd begins "file"
15026 MAGIC_CMD=$MAGIC_CMD
15027
15028 # Used on cygwin: DLL creation program.
15029 DLLTOOL="$DLLTOOL"
15030
15031 # Used on cygwin: object dumper.
15032 OBJDUMP="$OBJDUMP"
15033
15034 # Used on cygwin: assembler.
15035 AS="$AS"
15036
15037 # The name of the directory that contains temporary libtool files.
15038 objdir=$objdir
15039
15040 # How to create reloadable object files.
15041 reload_flag=$lt_reload_flag
15042 reload_cmds=$lt_reload_cmds
15043
15044 # How to pass a linker flag through the compiler.
15045 wl=$lt_lt_prog_compiler_wl_F77
15046
15047 # Object file suffix (normally "o").
15048 objext="$ac_objext"
15049
15050 # Old archive suffix (normally "a").
15051 libext="$libext"
15052
15053 # Shared library suffix (normally ".so").
15054 shrext_cmds='$shrext_cmds'
15055
15056 # Executable file suffix (normally "").
15057 exeext="$exeext"
15058
15059 # Additional compiler flags for building library objects.
15060 pic_flag=$lt_lt_prog_compiler_pic_F77
15061 pic_mode=$pic_mode
15062
15063 # What is the maximum length of a command?
15064 max_cmd_len=$lt_cv_sys_max_cmd_len
15065
15066 # Does compiler simultaneously support -c and -o options?
15067 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15068
15069 # Must we lock files when doing compilation ?
15070 need_locks=$lt_need_locks
15071
15072 # Do we need the lib prefix for modules?
15073 need_lib_prefix=$need_lib_prefix
15074
15075 # Do we need a version for libraries?
15076 need_version=$need_version
15077
15078 # Whether dlopen is supported.
15079 dlopen_support=$enable_dlopen
15080
15081 # Whether dlopen of programs is supported.
15082 dlopen_self=$enable_dlopen_self
15083
15084 # Whether dlopen of statically linked programs is supported.
15085 dlopen_self_static=$enable_dlopen_self_static
15086
15087 # Compiler flag to prevent dynamic linking.
15088 link_static_flag=$lt_lt_prog_compiler_static_F77
15089
15090 # Compiler flag to turn off builtin functions.
15091 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15092
15093 # Compiler flag to allow reflexive dlopens.
15094 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15095
15096 # Compiler flag to generate shared objects directly from archives.
15097 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15098
15099 # Compiler flag to generate thread-safe objects.
15100 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15101
15102 # Library versioning type.
15103 version_type=$version_type
15104
15105 # Format of library name prefix.
15106 libname_spec=$lt_libname_spec
15107
15108 # List of archive names.  First name is the real one, the rest are links.
15109 # The last name is the one that the linker finds with -lNAME.
15110 library_names_spec=$lt_library_names_spec
15111
15112 # The coded name of the library, if different from the real name.
15113 soname_spec=$lt_soname_spec
15114
15115 # Commands used to build and install an old-style archive.
15116 RANLIB=$lt_RANLIB
15117 old_archive_cmds=$lt_old_archive_cmds_F77
15118 old_postinstall_cmds=$lt_old_postinstall_cmds
15119 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15120
15121 # Create an old-style archive from a shared archive.
15122 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15123
15124 # Create a temporary old-style archive to link instead of a shared archive.
15125 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15126
15127 # Commands used to build and install a shared archive.
15128 archive_cmds=$lt_archive_cmds_F77
15129 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15130 postinstall_cmds=$lt_postinstall_cmds
15131 postuninstall_cmds=$lt_postuninstall_cmds
15132
15133 # Commands used to build a loadable module (assumed same as above if empty)
15134 module_cmds=$lt_module_cmds_F77
15135 module_expsym_cmds=$lt_module_expsym_cmds_F77
15136
15137 # Commands to strip libraries.
15138 old_striplib=$lt_old_striplib
15139 striplib=$lt_striplib
15140
15141 # Dependencies to place before the objects being linked to create a
15142 # shared library.
15143 predep_objects=$lt_predep_objects_F77
15144
15145 # Dependencies to place after the objects being linked to create a
15146 # shared library.
15147 postdep_objects=$lt_postdep_objects_F77
15148
15149 # Dependencies to place before the objects being linked to create a
15150 # shared library.
15151 predeps=$lt_predeps_F77
15152
15153 # Dependencies to place after the objects being linked to create a
15154 # shared library.
15155 postdeps=$lt_postdeps_F77
15156
15157 # The library search path used internally by the compiler when linking
15158 # a shared library.
15159 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15160
15161 # Method to check whether dependent libraries are shared objects.
15162 deplibs_check_method=$lt_deplibs_check_method
15163
15164 # Command to use when deplibs_check_method == file_magic.
15165 file_magic_cmd=$lt_file_magic_cmd
15166
15167 # Flag that allows shared libraries with undefined symbols to be built.
15168 allow_undefined_flag=$lt_allow_undefined_flag_F77
15169
15170 # Flag that forces no undefined symbols.
15171 no_undefined_flag=$lt_no_undefined_flag_F77
15172
15173 # Commands used to finish a libtool library installation in a directory.
15174 finish_cmds=$lt_finish_cmds
15175
15176 # Same as above, but a single script fragment to be evaled but not shown.
15177 finish_eval=$lt_finish_eval
15178
15179 # Take the output of nm and produce a listing of raw symbols and C names.
15180 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15181
15182 # Transform the output of nm in a proper C declaration
15183 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15184
15185 # Transform the output of nm in a C name address pair
15186 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15187
15188 # This is the shared library runtime path variable.
15189 runpath_var=$runpath_var
15190
15191 # This is the shared library path variable.
15192 shlibpath_var=$shlibpath_var
15193
15194 # Is shlibpath searched before the hard-coded library search path?
15195 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15196
15197 # How to hardcode a shared library path into an executable.
15198 hardcode_action=$hardcode_action_F77
15199
15200 # Whether we should hardcode library paths into libraries.
15201 hardcode_into_libs=$hardcode_into_libs
15202
15203 # Flag to hardcode \$libdir into a binary during linking.
15204 # This must work even if \$libdir does not exist.
15205 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15206
15207 # If ld is used when linking, flag to hardcode \$libdir into
15208 # a binary during linking. This must work even if \$libdir does
15209 # not exist.
15210 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15211
15212 # Whether we need a single -rpath flag with a separated argument.
15213 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15214
15215 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15216 # resulting binary.
15217 hardcode_direct=$hardcode_direct_F77
15218
15219 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15220 # resulting binary.
15221 hardcode_minus_L=$hardcode_minus_L_F77
15222
15223 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15224 # the resulting binary.
15225 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15226
15227 # Set to yes if building a shared library automatically hardcodes DIR into the library
15228 # and all subsequent libraries and executables linked against it.
15229 hardcode_automatic=$hardcode_automatic_F77
15230
15231 # Variables whose values should be saved in libtool wrapper scripts and
15232 # restored at relink time.
15233 variables_saved_for_relink="$variables_saved_for_relink"
15234
15235 # Whether libtool must link a program against all its dependency libraries.
15236 link_all_deplibs=$link_all_deplibs_F77
15237
15238 # Compile-time system search path for libraries
15239 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15240
15241 # Run-time system search path for libraries
15242 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15243
15244 # Fix the shell variable \$srcfile for the compiler.
15245 fix_srcfile_path="$fix_srcfile_path_F77"
15246
15247 # Set to yes if exported symbols are required.
15248 always_export_symbols=$always_export_symbols_F77
15249
15250 # The commands to list exported symbols.
15251 export_symbols_cmds=$lt_export_symbols_cmds_F77
15252
15253 # The commands to extract the exported symbol list from a shared archive.
15254 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15255
15256 # Symbols that should not be listed in the preloaded symbols.
15257 exclude_expsyms=$lt_exclude_expsyms_F77
15258
15259 # Symbols that must always be exported.
15260 include_expsyms=$lt_include_expsyms_F77
15261
15262 # ### END LIBTOOL TAG CONFIG: $tagname
15263
15264 __EOF__
15265
15266
15267 else
15268   # If there is no Makefile yet, we rely on a make rule to execute
15269   # `config.status --recheck' to rerun these tests and create the
15270   # libtool script then.
15271   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15272   if test -f "$ltmain_in"; then
15273     test -f Makefile && make "$ltmain"
15274   fi
15275 fi
15276
15277
15278 ac_ext=c
15279 ac_cpp='$CPP $CPPFLAGS'
15280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15283
15284 CC="$lt_save_CC"
15285
15286         else
15287           tagname=""
15288         fi
15289         ;;
15290
15291       GCJ)
15292         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15293           ac_ext=c
15294 ac_cpp='$CPP $CPPFLAGS'
15295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15298
15299
15300 # Source file extension for Java test sources.
15301 ac_ext=java
15302
15303 # Object file extension for compiled Java test sources.
15304 objext=o
15305 objext_GCJ=$objext
15306
15307 # Code to be used in simple compile tests
15308 lt_simple_compile_test_code="class foo {}\n"
15309
15310 # Code to be used in simple link tests
15311 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15312
15313 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15314
15315 # If no C compiler was specified, use CC.
15316 LTCC=${LTCC-"$CC"}
15317
15318 # Allow CC to be a program name with arguments.
15319 compiler=$CC
15320
15321
15322 # Allow CC to be a program name with arguments.
15323 lt_save_CC="$CC"
15324 CC=${GCJ-"gcj"}
15325 compiler=$CC
15326 compiler_GCJ=$CC
15327
15328 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15329 archive_cmds_need_lc_GCJ=no
15330
15331
15332 lt_prog_compiler_no_builtin_flag_GCJ=
15333
15334 if test "$GCC" = yes; then
15335   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15336
15337
15338 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15339 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15340 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15341   echo $ECHO_N "(cached) $ECHO_C" >&6
15342 else
15343   lt_cv_prog_compiler_rtti_exceptions=no
15344   ac_outfile=conftest.$ac_objext
15345    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15346    lt_compiler_flag="-fno-rtti -fno-exceptions"
15347    # Insert the option either (1) after the last *FLAGS variable, or
15348    # (2) before a word containing "conftest.", or (3) at the end.
15349    # Note that $ac_compile itself does not contain backslashes and begins
15350    # with a dollar sign (not a hyphen), so the echo should work correctly.
15351    # The option is referenced via a variable to avoid confusing sed.
15352    lt_compile=`echo "$ac_compile" | $SED \
15353    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15354    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15355    -e 's:$: $lt_compiler_flag:'`
15356    (eval echo "\"\$as_me:15356: $lt_compile\"" >&5)
15357    (eval "$lt_compile" 2>conftest.err)
15358    ac_status=$?
15359    cat conftest.err >&5
15360    echo "$as_me:15360: \$? = $ac_status" >&5
15361    if (exit $ac_status) && test -s "$ac_outfile"; then
15362      # The compiler can only warn and ignore the option if not recognized
15363      # So say no if there are warnings
15364      if test ! -s conftest.err; then
15365        lt_cv_prog_compiler_rtti_exceptions=yes
15366      fi
15367    fi
15368    $rm conftest*
15369
15370 fi
15371 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15372 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15373
15374 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15375     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15376 else
15377     :
15378 fi
15379
15380 fi
15381
15382 lt_prog_compiler_wl_GCJ=
15383 lt_prog_compiler_pic_GCJ=
15384 lt_prog_compiler_static_GCJ=
15385
15386 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15387 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15388
15389   if test "$GCC" = yes; then
15390     lt_prog_compiler_wl_GCJ='-Wl,'
15391     lt_prog_compiler_static_GCJ='-static'
15392
15393     case $host_os in
15394       aix*)
15395       # All AIX code is PIC.
15396       if test "$host_cpu" = ia64; then
15397         # AIX 5 now supports IA64 processor
15398         lt_prog_compiler_static_GCJ='-Bstatic'
15399       fi
15400       ;;
15401
15402     amigaos*)
15403       # FIXME: we need at least 68020 code to build shared libraries, but
15404       # adding the `-m68020' flag to GCC prevents building anything better,
15405       # like `-m68040'.
15406       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15407       ;;
15408
15409     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15410       # PIC is the default for these OSes.
15411       ;;
15412
15413     mingw* | pw32* | os2*)
15414       # This hack is so that the source file can tell whether it is being
15415       # built for inclusion in a dll (and should export symbols for example).
15416       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15417       ;;
15418
15419     darwin* | rhapsody*)
15420       # PIC is the default on this platform
15421       # Common symbols not allowed in MH_DYLIB files
15422       lt_prog_compiler_pic_GCJ='-fno-common'
15423       ;;
15424
15425     msdosdjgpp*)
15426       # Just because we use GCC doesn't mean we suddenly get shared libraries
15427       # on systems that don't support them.
15428       lt_prog_compiler_can_build_shared_GCJ=no
15429       enable_shared=no
15430       ;;
15431
15432     sysv4*MP*)
15433       if test -d /usr/nec; then
15434         lt_prog_compiler_pic_GCJ=-Kconform_pic
15435       fi
15436       ;;
15437
15438     hpux*)
15439       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15440       # not for PA HP-UX.
15441       case "$host_cpu" in
15442       hppa*64*|ia64*)
15443         # +Z the default
15444         ;;
15445       *)
15446         lt_prog_compiler_pic_GCJ='-fPIC'
15447         ;;
15448       esac
15449       ;;
15450
15451     *)
15452       lt_prog_compiler_pic_GCJ='-fPIC'
15453       ;;
15454     esac
15455   else
15456     # PORTME Check for flag to pass linker flags through the system compiler.
15457     case $host_os in
15458     aix*)
15459       lt_prog_compiler_wl_GCJ='-Wl,'
15460       if test "$host_cpu" = ia64; then
15461         # AIX 5 now supports IA64 processor
15462         lt_prog_compiler_static_GCJ='-Bstatic'
15463       else
15464         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15465       fi
15466       ;;
15467       darwin*)
15468         # PIC is the default on this platform
15469         # Common symbols not allowed in MH_DYLIB files
15470        case "$cc_basename" in
15471          xlc*)
15472          lt_prog_compiler_pic_GCJ='-qnocommon'
15473          lt_prog_compiler_wl_GCJ='-Wl,'
15474          ;;
15475        esac
15476        ;;
15477
15478     mingw* | pw32* | os2*)
15479       # This hack is so that the source file can tell whether it is being
15480       # built for inclusion in a dll (and should export symbols for example).
15481       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15482       ;;
15483
15484     hpux9* | hpux10* | hpux11*)
15485       lt_prog_compiler_wl_GCJ='-Wl,'
15486       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15487       # not for PA HP-UX.
15488       case "$host_cpu" in
15489       hppa*64*|ia64*)
15490         # +Z the default
15491         ;;
15492       *)
15493         lt_prog_compiler_pic_GCJ='+Z'
15494         ;;
15495       esac
15496       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15497       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15498       ;;
15499
15500     irix5* | irix6* | nonstopux*)
15501       lt_prog_compiler_wl_GCJ='-Wl,'
15502       # PIC (with -KPIC) is the default.
15503       lt_prog_compiler_static_GCJ='-non_shared'
15504       ;;
15505
15506     newsos6)
15507       lt_prog_compiler_pic_GCJ='-KPIC'
15508       lt_prog_compiler_static_GCJ='-Bstatic'
15509       ;;
15510
15511     linux*)
15512       case $CC in
15513       icc* | ecc*)
15514         lt_prog_compiler_wl_GCJ='-Wl,'
15515         lt_prog_compiler_pic_GCJ='-KPIC'
15516         lt_prog_compiler_static_GCJ='-static'
15517         ;;
15518       ccc*)
15519         lt_prog_compiler_wl_GCJ='-Wl,'
15520         # All Alpha code is PIC.
15521         lt_prog_compiler_static_GCJ='-non_shared'
15522         ;;
15523       esac
15524       ;;
15525
15526     osf3* | osf4* | osf5*)
15527       lt_prog_compiler_wl_GCJ='-Wl,'
15528       # All OSF/1 code is PIC.
15529       lt_prog_compiler_static_GCJ='-non_shared'
15530       ;;
15531
15532     sco3.2v5*)
15533       lt_prog_compiler_pic_GCJ='-Kpic'
15534       lt_prog_compiler_static_GCJ='-dn'
15535       ;;
15536
15537     solaris*)
15538       lt_prog_compiler_wl_GCJ='-Wl,'
15539       lt_prog_compiler_pic_GCJ='-KPIC'
15540       lt_prog_compiler_static_GCJ='-Bstatic'
15541       ;;
15542
15543     sunos4*)
15544       lt_prog_compiler_wl_GCJ='-Qoption ld '
15545       lt_prog_compiler_pic_GCJ='-PIC'
15546       lt_prog_compiler_static_GCJ='-Bstatic'
15547       ;;
15548
15549     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15550       lt_prog_compiler_wl_GCJ='-Wl,'
15551       lt_prog_compiler_pic_GCJ='-KPIC'
15552       lt_prog_compiler_static_GCJ='-Bstatic'
15553       ;;
15554
15555     sysv4*MP*)
15556       if test -d /usr/nec ;then
15557         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15558         lt_prog_compiler_static_GCJ='-Bstatic'
15559       fi
15560       ;;
15561
15562     uts4*)
15563       lt_prog_compiler_pic_GCJ='-pic'
15564       lt_prog_compiler_static_GCJ='-Bstatic'
15565       ;;
15566
15567     *)
15568       lt_prog_compiler_can_build_shared_GCJ=no
15569       ;;
15570     esac
15571   fi
15572
15573 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15574 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15575
15576 #
15577 # Check to make sure the PIC flag actually works.
15578 #
15579 if test -n "$lt_prog_compiler_pic_GCJ"; then
15580
15581 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15582 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15583 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15584   echo $ECHO_N "(cached) $ECHO_C" >&6
15585 else
15586   lt_prog_compiler_pic_works_GCJ=no
15587   ac_outfile=conftest.$ac_objext
15588    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15589    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15590    # Insert the option either (1) after the last *FLAGS variable, or
15591    # (2) before a word containing "conftest.", or (3) at the end.
15592    # Note that $ac_compile itself does not contain backslashes and begins
15593    # with a dollar sign (not a hyphen), so the echo should work correctly.
15594    # The option is referenced via a variable to avoid confusing sed.
15595    lt_compile=`echo "$ac_compile" | $SED \
15596    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15597    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15598    -e 's:$: $lt_compiler_flag:'`
15599    (eval echo "\"\$as_me:15599: $lt_compile\"" >&5)
15600    (eval "$lt_compile" 2>conftest.err)
15601    ac_status=$?
15602    cat conftest.err >&5
15603    echo "$as_me:15603: \$? = $ac_status" >&5
15604    if (exit $ac_status) && test -s "$ac_outfile"; then
15605      # The compiler can only warn and ignore the option if not recognized
15606      # So say no if there are warnings
15607      if test ! -s conftest.err; then
15608        lt_prog_compiler_pic_works_GCJ=yes
15609      fi
15610    fi
15611    $rm conftest*
15612
15613 fi
15614 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15615 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15616
15617 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15618     case $lt_prog_compiler_pic_GCJ in
15619      "" | " "*) ;;
15620      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15621      esac
15622 else
15623     lt_prog_compiler_pic_GCJ=
15624      lt_prog_compiler_can_build_shared_GCJ=no
15625 fi
15626
15627 fi
15628 case "$host_os" in
15629   # For platforms which do not support PIC, -DPIC is meaningless:
15630   *djgpp*)
15631     lt_prog_compiler_pic_GCJ=
15632     ;;
15633   *)
15634     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15635     ;;
15636 esac
15637
15638 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15639 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15640 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15641   echo $ECHO_N "(cached) $ECHO_C" >&6
15642 else
15643   lt_cv_prog_compiler_c_o_GCJ=no
15644    $rm -r conftest 2>/dev/null
15645    mkdir conftest
15646    cd conftest
15647    mkdir out
15648    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15649
15650    lt_compiler_flag="-o out/conftest2.$ac_objext"
15651    # Insert the option either (1) after the last *FLAGS variable, or
15652    # (2) before a word containing "conftest.", or (3) at the end.
15653    # Note that $ac_compile itself does not contain backslashes and begins
15654    # with a dollar sign (not a hyphen), so the echo should work correctly.
15655    lt_compile=`echo "$ac_compile" | $SED \
15656    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15657    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15658    -e 's:$: $lt_compiler_flag:'`
15659    (eval echo "\"\$as_me:15659: $lt_compile\"" >&5)
15660    (eval "$lt_compile" 2>out/conftest.err)
15661    ac_status=$?
15662    cat out/conftest.err >&5
15663    echo "$as_me:15663: \$? = $ac_status" >&5
15664    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15665    then
15666      # The compiler can only warn and ignore the option if not recognized
15667      # So say no if there are warnings
15668      if test ! -s out/conftest.err; then
15669        lt_cv_prog_compiler_c_o_GCJ=yes
15670      fi
15671    fi
15672    chmod u+w .
15673    $rm conftest*
15674    # SGI C++ compiler will create directory out/ii_files/ for
15675    # template instantiation
15676    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15677    $rm out/* && rmdir out
15678    cd ..
15679    rmdir conftest
15680    $rm conftest*
15681
15682 fi
15683 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15684 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15685
15686
15687 hard_links="nottested"
15688 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15689   # do not overwrite the value of need_locks provided by the user
15690   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15691 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15692   hard_links=yes
15693   $rm conftest*
15694   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15695   touch conftest.a
15696   ln conftest.a conftest.b 2>&5 || hard_links=no
15697   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15698   echo "$as_me:$LINENO: result: $hard_links" >&5
15699 echo "${ECHO_T}$hard_links" >&6
15700   if test "$hard_links" = no; then
15701     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15702 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15703     need_locks=warn
15704   fi
15705 else
15706   need_locks=no
15707 fi
15708
15709 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15710 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15711
15712   runpath_var=
15713   allow_undefined_flag_GCJ=
15714   enable_shared_with_static_runtimes_GCJ=no
15715   archive_cmds_GCJ=
15716   archive_expsym_cmds_GCJ=
15717   old_archive_From_new_cmds_GCJ=
15718   old_archive_from_expsyms_cmds_GCJ=
15719   export_dynamic_flag_spec_GCJ=
15720   whole_archive_flag_spec_GCJ=
15721   thread_safe_flag_spec_GCJ=
15722   hardcode_libdir_flag_spec_GCJ=
15723   hardcode_libdir_flag_spec_ld_GCJ=
15724   hardcode_libdir_separator_GCJ=
15725   hardcode_direct_GCJ=no
15726   hardcode_minus_L_GCJ=no
15727   hardcode_shlibpath_var_GCJ=unsupported
15728   link_all_deplibs_GCJ=unknown
15729   hardcode_automatic_GCJ=no
15730   module_cmds_GCJ=
15731   module_expsym_cmds_GCJ=
15732   always_export_symbols_GCJ=no
15733   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15734   # include_expsyms should be a list of space-separated symbols to be *always*
15735   # included in the symbol list
15736   include_expsyms_GCJ=
15737   # exclude_expsyms can be an extended regexp of symbols to exclude
15738   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15739   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15740   # as well as any symbol that contains `d'.
15741   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15742   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15743   # platforms (ab)use it in PIC code, but their linkers get confused if
15744   # the symbol is explicitly referenced.  Since portable code cannot
15745   # rely on this symbol name, it's probably fine to never include it in
15746   # preloaded symbol tables.
15747   extract_expsyms_cmds=
15748
15749   case $host_os in
15750   cygwin* | mingw* | pw32*)
15751     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15752     # When not using gcc, we currently assume that we are using
15753     # Microsoft Visual C++.
15754     if test "$GCC" != yes; then
15755       with_gnu_ld=no
15756     fi
15757     ;;
15758   openbsd*)
15759     with_gnu_ld=no
15760     ;;
15761   esac
15762
15763   ld_shlibs_GCJ=yes
15764   if test "$with_gnu_ld" = yes; then
15765     # If archive_cmds runs LD, not CC, wlarc should be empty
15766     wlarc='${wl}'
15767
15768     # See if GNU ld supports shared libraries.
15769     case $host_os in
15770     aix3* | aix4* | aix5*)
15771       # On AIX/PPC, the GNU linker is very broken
15772       if test "$host_cpu" != ia64; then
15773         ld_shlibs_GCJ=no
15774         cat <<EOF 1>&2
15775
15776 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15777 *** to be unable to reliably create shared libraries on AIX.
15778 *** Therefore, libtool is disabling shared libraries support.  If you
15779 *** really care for shared libraries, you may want to modify your PATH
15780 *** so that a non-GNU linker is found, and then restart.
15781
15782 EOF
15783       fi
15784       ;;
15785
15786     amigaos*)
15787       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)'
15788       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15789       hardcode_minus_L_GCJ=yes
15790
15791       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15792       # that the semantics of dynamic libraries on AmigaOS, at least up
15793       # to version 4, is to share data among multiple programs linked
15794       # with the same dynamic library.  Since this doesn't match the
15795       # behavior of shared libraries on other platforms, we can't use
15796       # them.
15797       ld_shlibs_GCJ=no
15798       ;;
15799
15800     beos*)
15801       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15802         allow_undefined_flag_GCJ=unsupported
15803         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15804         # support --undefined.  This deserves some investigation.  FIXME
15805         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15806       else
15807         ld_shlibs_GCJ=no
15808       fi
15809       ;;
15810
15811     cygwin* | mingw* | pw32*)
15812       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15813       # as there is no search path for DLLs.
15814       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15815       allow_undefined_flag_GCJ=unsupported
15816       always_export_symbols_GCJ=no
15817       enable_shared_with_static_runtimes_GCJ=yes
15818       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15819
15820       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15821         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15822         # If the export-symbols file already is a .def file (1st line
15823         # is EXPORTS), use it as is; otherwise, prepend...
15824         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15825           cp $export_symbols $output_objdir/$soname.def;
15826         else
15827           echo EXPORTS > $output_objdir/$soname.def;
15828           cat $export_symbols >> $output_objdir/$soname.def;
15829         fi~
15830         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15831       else
15832         ld_shlibs=no
15833       fi
15834       ;;
15835
15836     netbsd*)
15837       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15838         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15839         wlarc=
15840       else
15841         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15842         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15843       fi
15844       ;;
15845
15846     solaris* | sysv5*)
15847       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15848         ld_shlibs_GCJ=no
15849         cat <<EOF 1>&2
15850
15851 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15852 *** create shared libraries on Solaris systems.  Therefore, libtool
15853 *** is disabling shared libraries support.  We urge you to upgrade GNU
15854 *** binutils to release 2.9.1 or newer.  Another option is to modify
15855 *** your PATH or compiler configuration so that the native linker is
15856 *** used, and then restart.
15857
15858 EOF
15859       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15860         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15861         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15862       else
15863         ld_shlibs_GCJ=no
15864       fi
15865       ;;
15866
15867     sunos4*)
15868       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15869       wlarc=
15870       hardcode_direct_GCJ=yes
15871       hardcode_shlibpath_var_GCJ=no
15872       ;;
15873
15874   linux*)
15875     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15876         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15877         archive_cmds_GCJ="$tmp_archive_cmds"
15878       supports_anon_versioning=no
15879       case `$LD -v 2>/dev/null` in
15880         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15881         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15882         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15883         *\ 2.11.*) ;; # other 2.11 versions
15884         *) supports_anon_versioning=yes ;;
15885       esac
15886       if test $supports_anon_versioning = yes; then
15887         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15888 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15889 $echo "local: *; };" >> $output_objdir/$libname.ver~
15890         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15891       else
15892         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15893       fi
15894     else
15895       ld_shlibs_GCJ=no
15896     fi
15897     ;;
15898
15899     *)
15900       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15901         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15902         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15903       else
15904         ld_shlibs_GCJ=no
15905       fi
15906       ;;
15907     esac
15908
15909     if test "$ld_shlibs_GCJ" = yes; then
15910       runpath_var=LD_RUN_PATH
15911       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15912       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15913       # ancient GNU ld didn't support --whole-archive et. al.
15914       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15915         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15916       else
15917         whole_archive_flag_spec_GCJ=
15918       fi
15919     fi
15920   else
15921     # PORTME fill in a description of your system's linker (not GNU ld)
15922     case $host_os in
15923     aix3*)
15924       allow_undefined_flag_GCJ=unsupported
15925       always_export_symbols_GCJ=yes
15926       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'
15927       # Note: this linker hardcodes the directories in LIBPATH if there
15928       # are no directories specified by -L.
15929       hardcode_minus_L_GCJ=yes
15930       if test "$GCC" = yes && test -z "$link_static_flag"; then
15931         # Neither direct hardcoding nor static linking is supported with a
15932         # broken collect2.
15933         hardcode_direct_GCJ=unsupported
15934       fi
15935       ;;
15936
15937     aix4* | aix5*)
15938       if test "$host_cpu" = ia64; then
15939         # On IA64, the linker does run time linking by default, so we don't
15940         # have to do anything special.
15941         aix_use_runtimelinking=no
15942         exp_sym_flag='-Bexport'
15943         no_entry_flag=""
15944       else
15945         # If we're using GNU nm, then we don't want the "-C" option.
15946         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15947         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15948           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'
15949         else
15950           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'
15951         fi
15952         aix_use_runtimelinking=no
15953
15954         # Test if we are trying to use run time linking or normal
15955         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15956         # need to do runtime linking.
15957         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15958           for ld_flag in $LDFLAGS; do
15959           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15960             aix_use_runtimelinking=yes
15961             break
15962           fi
15963           done
15964         esac
15965
15966         exp_sym_flag='-bexport'
15967         no_entry_flag='-bnoentry'
15968       fi
15969
15970       # When large executables or shared objects are built, AIX ld can
15971       # have problems creating the table of contents.  If linking a library
15972       # or program results in "error TOC overflow" add -mminimal-toc to
15973       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15974       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15975
15976       archive_cmds_GCJ=''
15977       hardcode_direct_GCJ=yes
15978       hardcode_libdir_separator_GCJ=':'
15979       link_all_deplibs_GCJ=yes
15980
15981       if test "$GCC" = yes; then
15982         case $host_os in aix4.012|aix4.012.*)
15983         # We only want to do this on AIX 4.2 and lower, the check
15984         # below for broken collect2 doesn't work under 4.3+
15985           collect2name=`${CC} -print-prog-name=collect2`
15986           if test -f "$collect2name" && \
15987            strings "$collect2name" | grep resolve_lib_name >/dev/null
15988           then
15989           # We have reworked collect2
15990           hardcode_direct_GCJ=yes
15991           else
15992           # We have old collect2
15993           hardcode_direct_GCJ=unsupported
15994           # It fails to find uninstalled libraries when the uninstalled
15995           # path is not listed in the libpath.  Setting hardcode_minus_L
15996           # to unsupported forces relinking
15997           hardcode_minus_L_GCJ=yes
15998           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15999           hardcode_libdir_separator_GCJ=
16000           fi
16001         esac
16002         shared_flag='-shared'
16003       else
16004         # not using gcc
16005         if test "$host_cpu" = ia64; then
16006         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16007         # chokes on -Wl,-G. The following line is correct:
16008           shared_flag='-G'
16009         else
16010         if test "$aix_use_runtimelinking" = yes; then
16011             shared_flag='${wl}-G'
16012           else
16013             shared_flag='${wl}-bM:SRE'
16014         fi
16015         fi
16016       fi
16017
16018       # It seems that -bexpall does not export symbols beginning with
16019       # underscore (_), so it is better to generate a list of symbols to export.
16020       always_export_symbols_GCJ=yes
16021       if test "$aix_use_runtimelinking" = yes; then
16022         # Warning - without using the other runtime loading flags (-brtl),
16023         # -berok will link without error, but may produce a broken library.
16024         allow_undefined_flag_GCJ='-berok'
16025        # Determine the default libpath from the value encoded in an empty executable.
16026        cat >conftest.$ac_ext <<_ACEOF
16027 /* confdefs.h.  */
16028 _ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h.  */
16032
16033 int
16034 main ()
16035 {
16036
16037   ;
16038   return 0;
16039 }
16040 _ACEOF
16041 rm -f conftest.$ac_objext conftest$ac_exeext
16042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16043   (eval $ac_link) 2>conftest.er1
16044   ac_status=$?
16045   grep -v '^ *+' conftest.er1 >conftest.err
16046   rm -f conftest.er1
16047   cat conftest.err >&5
16048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049   (exit $ac_status); } &&
16050          { ac_try='test -z "$ac_c_werror_flag"
16051                          || test ! -s conftest.err'
16052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053   (eval $ac_try) 2>&5
16054   ac_status=$?
16055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056   (exit $ac_status); }; } &&
16057          { ac_try='test -s conftest$ac_exeext'
16058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16059   (eval $ac_try) 2>&5
16060   ac_status=$?
16061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062   (exit $ac_status); }; }; then
16063
16064 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16065 }'`
16066 # Check for a 64-bit object if we didn't find anything.
16067 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; }
16068 }'`; fi
16069 else
16070   echo "$as_me: failed program was:" >&5
16071 sed 's/^/| /' conftest.$ac_ext >&5
16072
16073 fi
16074 rm -f conftest.err conftest.$ac_objext \
16075       conftest$ac_exeext conftest.$ac_ext
16076 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16077
16078        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16079         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"
16080        else
16081         if test "$host_cpu" = ia64; then
16082           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16083           allow_undefined_flag_GCJ="-z nodefs"
16084           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"
16085         else
16086          # Determine the default libpath from the value encoded in an empty executable.
16087          cat >conftest.$ac_ext <<_ACEOF
16088 /* confdefs.h.  */
16089 _ACEOF
16090 cat confdefs.h >>conftest.$ac_ext
16091 cat >>conftest.$ac_ext <<_ACEOF
16092 /* end confdefs.h.  */
16093
16094 int
16095 main ()
16096 {
16097
16098   ;
16099   return 0;
16100 }
16101 _ACEOF
16102 rm -f conftest.$ac_objext conftest$ac_exeext
16103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16104   (eval $ac_link) 2>conftest.er1
16105   ac_status=$?
16106   grep -v '^ *+' conftest.er1 >conftest.err
16107   rm -f conftest.er1
16108   cat conftest.err >&5
16109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110   (exit $ac_status); } &&
16111          { ac_try='test -z "$ac_c_werror_flag"
16112                          || test ! -s conftest.err'
16113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114   (eval $ac_try) 2>&5
16115   ac_status=$?
16116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117   (exit $ac_status); }; } &&
16118          { ac_try='test -s conftest$ac_exeext'
16119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120   (eval $ac_try) 2>&5
16121   ac_status=$?
16122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123   (exit $ac_status); }; }; then
16124
16125 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16126 }'`
16127 # Check for a 64-bit object if we didn't find anything.
16128 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; }
16129 }'`; fi
16130 else
16131   echo "$as_me: failed program was:" >&5
16132 sed 's/^/| /' conftest.$ac_ext >&5
16133
16134 fi
16135 rm -f conftest.err conftest.$ac_objext \
16136       conftest$ac_exeext conftest.$ac_ext
16137 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16138
16139          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16140           # Warning - without using the other run time loading flags,
16141           # -berok will link without error, but may produce a broken library.
16142           no_undefined_flag_GCJ=' ${wl}-bernotok'
16143           allow_undefined_flag_GCJ=' ${wl}-berok'
16144           # -bexpall does not export symbols beginning with underscore (_)
16145           always_export_symbols_GCJ=yes
16146           # Exported symbols can be pulled into shared objects from archives
16147           whole_archive_flag_spec_GCJ=' '
16148           archive_cmds_need_lc_GCJ=yes
16149           # This is similar to how AIX traditionally builds it's shared libraries.
16150           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'
16151         fi
16152       fi
16153       ;;
16154
16155     amigaos*)
16156       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)'
16157       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16158       hardcode_minus_L_GCJ=yes
16159       # see comment about different semantics on the GNU ld section
16160       ld_shlibs_GCJ=no
16161       ;;
16162
16163     bsdi[45]*)
16164       export_dynamic_flag_spec_GCJ=-rdynamic
16165       ;;
16166
16167     cygwin* | mingw* | pw32*)
16168       # When not using gcc, we currently assume that we are using
16169       # Microsoft Visual C++.
16170       # hardcode_libdir_flag_spec is actually meaningless, as there is
16171       # no search path for DLLs.
16172       hardcode_libdir_flag_spec_GCJ=' '
16173       allow_undefined_flag_GCJ=unsupported
16174       # Tell ltmain to make .lib files, not .a files.
16175       libext=lib
16176       # Tell ltmain to make .dll files, not .so files.
16177       shrext_cmds=".dll"
16178       # FIXME: Setting linknames here is a bad hack.
16179       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16180       # The linker will automatically build a .lib file if we build a DLL.
16181       old_archive_From_new_cmds_GCJ='true'
16182       # FIXME: Should let the user specify the lib program.
16183       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16184       fix_srcfile_path='`cygpath -w "$srcfile"`'
16185       enable_shared_with_static_runtimes_GCJ=yes
16186       ;;
16187
16188     darwin* | rhapsody*)
16189       case "$host_os" in
16190         rhapsody* | darwin1.[012])
16191          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16192          ;;
16193        *) # Darwin 1.3 on
16194          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16195            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16196          else
16197            case ${MACOSX_DEPLOYMENT_TARGET} in
16198              10.[012])
16199                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16200                ;;
16201              10.*)
16202                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16203                ;;
16204            esac
16205          fi
16206          ;;
16207       esac
16208       archive_cmds_need_lc_GCJ=no
16209       hardcode_direct_GCJ=no
16210       hardcode_automatic_GCJ=yes
16211       hardcode_shlibpath_var_GCJ=unsupported
16212       whole_archive_flag_spec_GCJ=''
16213       link_all_deplibs_GCJ=yes
16214     if test "$GCC" = yes ; then
16215         output_verbose_link_cmd='echo'
16216         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16217       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16218       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16219       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}'
16220       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}'
16221     else
16222       case "$cc_basename" in
16223         xlc*)
16224          output_verbose_link_cmd='echo'
16225          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16226          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16227           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16228          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}'
16229           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}'
16230           ;;
16231        *)
16232          ld_shlibs_GCJ=no
16233           ;;
16234       esac
16235     fi
16236       ;;
16237
16238     dgux*)
16239       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16240       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16241       hardcode_shlibpath_var_GCJ=no
16242       ;;
16243
16244     freebsd1*)
16245       ld_shlibs_GCJ=no
16246       ;;
16247
16248     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16249     # support.  Future versions do this automatically, but an explicit c++rt0.o
16250     # does not break anything, and helps significantly (at the cost of a little
16251     # extra space).
16252     freebsd2.2*)
16253       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16254       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16255       hardcode_direct_GCJ=yes
16256       hardcode_shlibpath_var_GCJ=no
16257       ;;
16258
16259     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16260     freebsd2*)
16261       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16262       hardcode_direct_GCJ=yes
16263       hardcode_minus_L_GCJ=yes
16264       hardcode_shlibpath_var_GCJ=no
16265       ;;
16266
16267     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16268     freebsd* | kfreebsd*-gnu)
16269       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16270       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16271       hardcode_direct_GCJ=yes
16272       hardcode_shlibpath_var_GCJ=no
16273       ;;
16274
16275     hpux9*)
16276       if test "$GCC" = yes; then
16277         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'
16278       else
16279         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'
16280       fi
16281       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16282       hardcode_libdir_separator_GCJ=:
16283       hardcode_direct_GCJ=yes
16284
16285       # hardcode_minus_L: Not really in the search PATH,
16286       # but as the default location of the library.
16287       hardcode_minus_L_GCJ=yes
16288       export_dynamic_flag_spec_GCJ='${wl}-E'
16289       ;;
16290
16291     hpux10* | hpux11*)
16292       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16293         case "$host_cpu" in
16294         hppa*64*|ia64*)
16295           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16296           ;;
16297         *)
16298           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16299           ;;
16300         esac
16301       else
16302         case "$host_cpu" in
16303         hppa*64*|ia64*)
16304           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16305           ;;
16306         *)
16307           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16308           ;;
16309         esac
16310       fi
16311       if test "$with_gnu_ld" = no; then
16312         case "$host_cpu" in
16313         hppa*64*)
16314           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16315           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16316           hardcode_libdir_separator_GCJ=:
16317           hardcode_direct_GCJ=no
16318           hardcode_shlibpath_var_GCJ=no
16319           ;;
16320         ia64*)
16321           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16322           hardcode_direct_GCJ=no
16323           hardcode_shlibpath_var_GCJ=no
16324
16325           # hardcode_minus_L: Not really in the search PATH,
16326           # but as the default location of the library.
16327           hardcode_minus_L_GCJ=yes
16328           ;;
16329         *)
16330           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16331           hardcode_libdir_separator_GCJ=:
16332           hardcode_direct_GCJ=yes
16333           export_dynamic_flag_spec_GCJ='${wl}-E'
16334
16335           # hardcode_minus_L: Not really in the search PATH,
16336           # but as the default location of the library.
16337           hardcode_minus_L_GCJ=yes
16338           ;;
16339         esac
16340       fi
16341       ;;
16342
16343     irix5* | irix6* | nonstopux*)
16344       if test "$GCC" = yes; then
16345         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'
16346       else
16347         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'
16348         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16349       fi
16350       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16351       hardcode_libdir_separator_GCJ=:
16352       link_all_deplibs_GCJ=yes
16353       ;;
16354
16355     netbsd*)
16356       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16357         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16358       else
16359         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16360       fi
16361       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16362       hardcode_direct_GCJ=yes
16363       hardcode_shlibpath_var_GCJ=no
16364       ;;
16365
16366     newsos6)
16367       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16368       hardcode_direct_GCJ=yes
16369       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16370       hardcode_libdir_separator_GCJ=:
16371       hardcode_shlibpath_var_GCJ=no
16372       ;;
16373
16374     openbsd*)
16375       hardcode_direct_GCJ=yes
16376       hardcode_shlibpath_var_GCJ=no
16377       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16378         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16379         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16380         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16381         export_dynamic_flag_spec_GCJ='${wl}-E'
16382       else
16383        case $host_os in
16384          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16385            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16386            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16387            ;;
16388          *)
16389            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16390            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16391            ;;
16392        esac
16393       fi
16394       ;;
16395
16396     os2*)
16397       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16398       hardcode_minus_L_GCJ=yes
16399       allow_undefined_flag_GCJ=unsupported
16400       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'
16401       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16402       ;;
16403
16404     osf3*)
16405       if test "$GCC" = yes; then
16406         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16407         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'
16408       else
16409         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16410         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'
16411       fi
16412       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16413       hardcode_libdir_separator_GCJ=:
16414       ;;
16415
16416     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16417       if test "$GCC" = yes; then
16418         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16419         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'
16420         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16421       else
16422         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16423         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'
16424         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~
16425         $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'
16426
16427         # Both c and cxx compiler support -rpath directly
16428         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16429       fi
16430       hardcode_libdir_separator_GCJ=:
16431       ;;
16432
16433     sco3.2v5*)
16434       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16435       hardcode_shlibpath_var_GCJ=no
16436       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16437       runpath_var=LD_RUN_PATH
16438       hardcode_runpath_var=yes
16439       ;;
16440
16441     solaris*)
16442       no_undefined_flag_GCJ=' -z text'
16443       if test "$GCC" = yes; then
16444         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16445         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16446           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16447       else
16448         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16449         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16450         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16451       fi
16452       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16453       hardcode_shlibpath_var_GCJ=no
16454       case $host_os in
16455       solaris2.[0-5] | solaris2.[0-5].*) ;;
16456       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16457         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16458       esac
16459       link_all_deplibs_GCJ=yes
16460       ;;
16461
16462     sunos4*)
16463       if test "x$host_vendor" = xsequent; then
16464         # Use $CC to link under sequent, because it throws in some extra .o
16465         # files that make .init and .fini sections work.
16466         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16467       else
16468         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16469       fi
16470       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16471       hardcode_direct_GCJ=yes
16472       hardcode_minus_L_GCJ=yes
16473       hardcode_shlibpath_var_GCJ=no
16474       ;;
16475
16476     sysv4)
16477       case $host_vendor in
16478         sni)
16479           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16480           hardcode_direct_GCJ=yes # is this really true???
16481         ;;
16482         siemens)
16483           ## LD is ld it makes a PLAMLIB
16484           ## CC just makes a GrossModule.
16485           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16486           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16487           hardcode_direct_GCJ=no
16488         ;;
16489         motorola)
16490           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16491           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16492         ;;
16493       esac
16494       runpath_var='LD_RUN_PATH'
16495       hardcode_shlibpath_var_GCJ=no
16496       ;;
16497
16498     sysv4.3*)
16499       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16500       hardcode_shlibpath_var_GCJ=no
16501       export_dynamic_flag_spec_GCJ='-Bexport'
16502       ;;
16503
16504     sysv4*MP*)
16505       if test -d /usr/nec; then
16506         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16507         hardcode_shlibpath_var_GCJ=no
16508         runpath_var=LD_RUN_PATH
16509         hardcode_runpath_var=yes
16510         ld_shlibs_GCJ=yes
16511       fi
16512       ;;
16513
16514     sysv4.2uw2*)
16515       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16516       hardcode_direct_GCJ=yes
16517       hardcode_minus_L_GCJ=no
16518       hardcode_shlibpath_var_GCJ=no
16519       hardcode_runpath_var=yes
16520       runpath_var=LD_RUN_PATH
16521       ;;
16522
16523    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16524       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16525       if test "$GCC" = yes; then
16526         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16527       else
16528         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16529       fi
16530       runpath_var='LD_RUN_PATH'
16531       hardcode_shlibpath_var_GCJ=no
16532       ;;
16533
16534     sysv5*)
16535       no_undefined_flag_GCJ=' -z text'
16536       # $CC -shared without GNU ld will not create a library from C++
16537       # object files and a static libstdc++, better avoid it by now
16538       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16539       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16540                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16541       hardcode_libdir_flag_spec_GCJ=
16542       hardcode_shlibpath_var_GCJ=no
16543       runpath_var='LD_RUN_PATH'
16544       ;;
16545
16546     uts4*)
16547       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16548       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16549       hardcode_shlibpath_var_GCJ=no
16550       ;;
16551
16552     *)
16553       ld_shlibs_GCJ=no
16554       ;;
16555     esac
16556   fi
16557
16558 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16559 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16560 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16561
16562 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16563 if test "$GCC" = yes; then
16564   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16565 fi
16566
16567 #
16568 # Do we need to explicitly link libc?
16569 #
16570 case "x$archive_cmds_need_lc_GCJ" in
16571 x|xyes)
16572   # Assume -lc should be added
16573   archive_cmds_need_lc_GCJ=yes
16574
16575   if test "$enable_shared" = yes && test "$GCC" = yes; then
16576     case $archive_cmds_GCJ in
16577     *'~'*)
16578       # FIXME: we may have to deal with multi-command sequences.
16579       ;;
16580     '$CC '*)
16581       # Test whether the compiler implicitly links with -lc since on some
16582       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16583       # to ld, don't add -lc before -lgcc.
16584       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16585 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16586       $rm conftest*
16587       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16588
16589       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16590   (eval $ac_compile) 2>&5
16591   ac_status=$?
16592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593   (exit $ac_status); } 2>conftest.err; then
16594         soname=conftest
16595         lib=conftest
16596         libobjs=conftest.$ac_objext
16597         deplibs=
16598         wl=$lt_prog_compiler_wl_GCJ
16599         compiler_flags=-v
16600         linker_flags=-v
16601         verstring=
16602         output_objdir=.
16603         libname=conftest
16604         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16605         allow_undefined_flag_GCJ=
16606         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16607   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16608   ac_status=$?
16609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610   (exit $ac_status); }
16611         then
16612           archive_cmds_need_lc_GCJ=no
16613         else
16614           archive_cmds_need_lc_GCJ=yes
16615         fi
16616         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16617       else
16618         cat conftest.err 1>&5
16619       fi
16620       $rm conftest*
16621       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16622 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16623       ;;
16624     esac
16625   fi
16626   ;;
16627 esac
16628
16629 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16630 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16631 library_names_spec=
16632 libname_spec='lib$name'
16633 soname_spec=
16634 shrext_cmds=".so"
16635 postinstall_cmds=
16636 postuninstall_cmds=
16637 finish_cmds=
16638 finish_eval=
16639 shlibpath_var=
16640 shlibpath_overrides_runpath=unknown
16641 version_type=none
16642 dynamic_linker="$host_os ld.so"
16643 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16644 if test "$GCC" = yes; then
16645   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16646   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16647     # if the path contains ";" then we assume it to be the separator
16648     # otherwise default to the standard path separator (i.e. ":") - it is
16649     # assumed that no part of a normal pathname contains ";" but that should
16650     # okay in the real world where ";" in dirpaths is itself problematic.
16651     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16652   else
16653     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16654   fi
16655 else
16656   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16657 fi
16658 need_lib_prefix=unknown
16659 hardcode_into_libs=no
16660
16661 # when you set need_version to no, make sure it does not cause -set_version
16662 # flags to be left without arguments
16663 need_version=unknown
16664
16665 case $host_os in
16666 aix3*)
16667   version_type=linux
16668   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16669   shlibpath_var=LIBPATH
16670
16671   # AIX 3 has no versioning support, so we append a major version to the name.
16672   soname_spec='${libname}${release}${shared_ext}$major'
16673   ;;
16674
16675 aix4* | aix5*)
16676   version_type=linux
16677   need_lib_prefix=no
16678   need_version=no
16679   hardcode_into_libs=yes
16680   if test "$host_cpu" = ia64; then
16681     # AIX 5 supports IA64
16682     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16683     shlibpath_var=LD_LIBRARY_PATH
16684   else
16685     # With GCC up to 2.95.x, collect2 would create an import file
16686     # for dependence libraries.  The import file would start with
16687     # the line `#! .'.  This would cause the generated library to
16688     # depend on `.', always an invalid library.  This was fixed in
16689     # development snapshots of GCC prior to 3.0.
16690     case $host_os in
16691       aix4 | aix4.[01] | aix4.[01].*)
16692       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16693            echo ' yes '
16694            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16695         :
16696       else
16697         can_build_shared=no
16698       fi
16699       ;;
16700     esac
16701     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16702     # soname into executable. Probably we can add versioning support to
16703     # collect2, so additional links can be useful in future.
16704     if test "$aix_use_runtimelinking" = yes; then
16705       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16706       # instead of lib<name>.a to let people know that these are not
16707       # typical AIX shared libraries.
16708       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16709     else
16710       # We preserve .a as extension for shared libraries through AIX4.2
16711       # and later when we are not doing run time linking.
16712       library_names_spec='${libname}${release}.a $libname.a'
16713       soname_spec='${libname}${release}${shared_ext}$major'
16714     fi
16715     shlibpath_var=LIBPATH
16716   fi
16717   ;;
16718
16719 amigaos*)
16720   library_names_spec='$libname.ixlibrary $libname.a'
16721   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16722   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'
16723   ;;
16724
16725 beos*)
16726   library_names_spec='${libname}${shared_ext}'
16727   dynamic_linker="$host_os ld.so"
16728   shlibpath_var=LIBRARY_PATH
16729   ;;
16730
16731 bsdi[45]*)
16732   version_type=linux
16733   need_version=no
16734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16735   soname_spec='${libname}${release}${shared_ext}$major'
16736   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16737   shlibpath_var=LD_LIBRARY_PATH
16738   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16739   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16740   # the default ld.so.conf also contains /usr/contrib/lib and
16741   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16742   # libtool to hard-code these into programs
16743   ;;
16744
16745 cygwin* | mingw* | pw32*)
16746   version_type=windows
16747   shrext_cmds=".dll"
16748   need_version=no
16749   need_lib_prefix=no
16750
16751   case $GCC,$host_os in
16752   yes,cygwin* | yes,mingw* | yes,pw32*)
16753     library_names_spec='$libname.dll.a'
16754     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16755     postinstall_cmds='base_file=`basename \${file}`~
16756       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16757       dldir=$destdir/`dirname \$dlpath`~
16758       test -d \$dldir || mkdir -p \$dldir~
16759       $install_prog $dir/$dlname \$dldir/$dlname'
16760     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16761       dlpath=$dir/\$dldll~
16762        $rm \$dlpath'
16763     shlibpath_overrides_runpath=yes
16764
16765     case $host_os in
16766     cygwin*)
16767       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16768       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16769       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16770       ;;
16771     mingw*)
16772       # MinGW DLLs use traditional 'lib' prefix
16773       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16774       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16775       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16776         # It is most probably a Windows format PATH printed by
16777         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16778         # path with ; separators, and with drive letters. We can handle the
16779         # drive letters (cygwin fileutils understands them), so leave them,
16780         # especially as we might pass files found there to a mingw objdump,
16781         # which wouldn't understand a cygwinified path. Ahh.
16782         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16783       else
16784         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16785       fi
16786       ;;
16787     pw32*)
16788       # pw32 DLLs use 'pw' prefix rather than 'lib'
16789       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16790       ;;
16791     esac
16792     ;;
16793
16794   *)
16795     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16796     ;;
16797   esac
16798   dynamic_linker='Win32 ld.exe'
16799   # FIXME: first we should search . and the directory the executable is in
16800   shlibpath_var=PATH
16801   ;;
16802
16803 darwin* | rhapsody*)
16804   dynamic_linker="$host_os dyld"
16805   version_type=darwin
16806   need_lib_prefix=no
16807   need_version=no
16808   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16809   soname_spec='${libname}${release}${major}$shared_ext'
16810   shlibpath_overrides_runpath=yes
16811   shlibpath_var=DYLD_LIBRARY_PATH
16812   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16813   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16814   if test "$GCC" = yes; then
16815     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"`
16816   else
16817     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16818   fi
16819   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16820   ;;
16821
16822 dgux*)
16823   version_type=linux
16824   need_lib_prefix=no
16825   need_version=no
16826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16827   soname_spec='${libname}${release}${shared_ext}$major'
16828   shlibpath_var=LD_LIBRARY_PATH
16829   ;;
16830
16831 freebsd1*)
16832   dynamic_linker=no
16833   ;;
16834
16835 kfreebsd*-gnu)
16836   version_type=linux
16837   need_lib_prefix=no
16838   need_version=no
16839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16840   soname_spec='${libname}${release}${shared_ext}$major'
16841   shlibpath_var=LD_LIBRARY_PATH
16842   shlibpath_overrides_runpath=no
16843   hardcode_into_libs=yes
16844   dynamic_linker='GNU ld.so'
16845   ;;
16846
16847 freebsd*)
16848   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16849   version_type=freebsd-$objformat
16850   case $version_type in
16851     freebsd-elf*)
16852       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16853       need_version=no
16854       need_lib_prefix=no
16855       ;;
16856     freebsd-*)
16857       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16858       need_version=yes
16859       ;;
16860   esac
16861   shlibpath_var=LD_LIBRARY_PATH
16862   case $host_os in
16863   freebsd2*)
16864     shlibpath_overrides_runpath=yes
16865     ;;
16866   freebsd3.01* | freebsdelf3.01*)
16867     shlibpath_overrides_runpath=yes
16868     hardcode_into_libs=yes
16869     ;;
16870   *) # from 3.2 on
16871     shlibpath_overrides_runpath=no
16872     hardcode_into_libs=yes
16873     ;;
16874   esac
16875   ;;
16876
16877 gnu*)
16878   version_type=linux
16879   need_lib_prefix=no
16880   need_version=no
16881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16882   soname_spec='${libname}${release}${shared_ext}$major'
16883   shlibpath_var=LD_LIBRARY_PATH
16884   hardcode_into_libs=yes
16885   ;;
16886
16887 hpux9* | hpux10* | hpux11*)
16888   # Give a soname corresponding to the major version so that dld.sl refuses to
16889   # link against other versions.
16890   version_type=sunos
16891   need_lib_prefix=no
16892   need_version=no
16893   case "$host_cpu" in
16894   ia64*)
16895     shrext_cmds='.so'
16896     hardcode_into_libs=yes
16897     dynamic_linker="$host_os dld.so"
16898     shlibpath_var=LD_LIBRARY_PATH
16899     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16900     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16901     soname_spec='${libname}${release}${shared_ext}$major'
16902     if test "X$HPUX_IA64_MODE" = X32; then
16903       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16904     else
16905       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16906     fi
16907     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16908     ;;
16909    hppa*64*)
16910      shrext_cmds='.sl'
16911      hardcode_into_libs=yes
16912      dynamic_linker="$host_os dld.sl"
16913      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16914      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16915      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16916      soname_spec='${libname}${release}${shared_ext}$major'
16917      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16918      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16919      ;;
16920    *)
16921     shrext_cmds='.sl'
16922     dynamic_linker="$host_os dld.sl"
16923     shlibpath_var=SHLIB_PATH
16924     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16925     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16926     soname_spec='${libname}${release}${shared_ext}$major'
16927     ;;
16928   esac
16929   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16930   postinstall_cmds='chmod 555 $lib'
16931   ;;
16932
16933 irix5* | irix6* | nonstopux*)
16934   case $host_os in
16935     nonstopux*) version_type=nonstopux ;;
16936     *)
16937         if test "$lt_cv_prog_gnu_ld" = yes; then
16938                 version_type=linux
16939         else
16940                 version_type=irix
16941         fi ;;
16942   esac
16943   need_lib_prefix=no
16944   need_version=no
16945   soname_spec='${libname}${release}${shared_ext}$major'
16946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16947   case $host_os in
16948   irix5* | nonstopux*)
16949     libsuff= shlibsuff=
16950     ;;
16951   *)
16952     case $LD in # libtool.m4 will add one of these switches to LD
16953     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16954       libsuff= shlibsuff= libmagic=32-bit;;
16955     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16956       libsuff=32 shlibsuff=N32 libmagic=N32;;
16957     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16958       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16959     *) libsuff= shlibsuff= libmagic=never-match;;
16960     esac
16961     ;;
16962   esac
16963   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16964   shlibpath_overrides_runpath=no
16965   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16966   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16967   hardcode_into_libs=yes
16968   ;;
16969
16970 # No shared lib support for Linux oldld, aout, or coff.
16971 linux*oldld* | linux*aout* | linux*coff*)
16972   dynamic_linker=no
16973   ;;
16974
16975 # This must be Linux ELF.
16976 linux*)
16977   version_type=linux
16978   need_lib_prefix=no
16979   need_version=no
16980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16981   soname_spec='${libname}${release}${shared_ext}$major'
16982   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16983   shlibpath_var=LD_LIBRARY_PATH
16984   shlibpath_overrides_runpath=no
16985   # This implies no fast_install, which is unacceptable.
16986   # Some rework will be needed to allow for fast_install
16987   # before this can be enabled.
16988   hardcode_into_libs=yes
16989
16990   # Append ld.so.conf contents to the search path
16991   if test -f /etc/ld.so.conf; then
16992     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16993     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16994   fi
16995
16996   # We used to test for /lib/ld.so.1 and disable shared libraries on
16997   # powerpc, because MkLinux only supported shared libraries with the
16998   # GNU dynamic linker.  Since this was broken with cross compilers,
16999   # most powerpc-linux boxes support dynamic linking these days and
17000   # people can always --disable-shared, the test was removed, and we
17001   # assume the GNU/Linux dynamic linker is in use.
17002   dynamic_linker='GNU/Linux ld.so'
17003   ;;
17004
17005 knetbsd*-gnu)
17006   version_type=linux
17007   need_lib_prefix=no
17008   need_version=no
17009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17010   soname_spec='${libname}${release}${shared_ext}$major'
17011   shlibpath_var=LD_LIBRARY_PATH
17012   shlibpath_overrides_runpath=no
17013   hardcode_into_libs=yes
17014   dynamic_linker='GNU ld.so'
17015   ;;
17016
17017 netbsd*)
17018   version_type=sunos
17019   need_lib_prefix=no
17020   need_version=no
17021   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17022     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17023     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17024     dynamic_linker='NetBSD (a.out) ld.so'
17025   else
17026     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17027     soname_spec='${libname}${release}${shared_ext}$major'
17028     dynamic_linker='NetBSD ld.elf_so'
17029   fi
17030   shlibpath_var=LD_LIBRARY_PATH
17031   shlibpath_overrides_runpath=yes
17032   hardcode_into_libs=yes
17033   ;;
17034
17035 newsos6)
17036   version_type=linux
17037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17038   shlibpath_var=LD_LIBRARY_PATH
17039   shlibpath_overrides_runpath=yes
17040   ;;
17041
17042 nto-qnx*)
17043   version_type=linux
17044   need_lib_prefix=no
17045   need_version=no
17046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17047   soname_spec='${libname}${release}${shared_ext}$major'
17048   shlibpath_var=LD_LIBRARY_PATH
17049   shlibpath_overrides_runpath=yes
17050   ;;
17051
17052 openbsd*)
17053   version_type=sunos
17054   need_lib_prefix=no
17055   need_version=no
17056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17057   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17058   shlibpath_var=LD_LIBRARY_PATH
17059   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17060     case $host_os in
17061       openbsd2.[89] | openbsd2.[89].*)
17062         shlibpath_overrides_runpath=no
17063         ;;
17064       *)
17065         shlibpath_overrides_runpath=yes
17066         ;;
17067       esac
17068   else
17069     shlibpath_overrides_runpath=yes
17070   fi
17071   ;;
17072
17073 os2*)
17074   libname_spec='$name'
17075   shrext_cmds=".dll"
17076   need_lib_prefix=no
17077   library_names_spec='$libname${shared_ext} $libname.a'
17078   dynamic_linker='OS/2 ld.exe'
17079   shlibpath_var=LIBPATH
17080   ;;
17081
17082 osf3* | osf4* | osf5*)
17083   version_type=osf
17084   need_lib_prefix=no
17085   need_version=no
17086   soname_spec='${libname}${release}${shared_ext}$major'
17087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17088   shlibpath_var=LD_LIBRARY_PATH
17089   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17090   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17091   ;;
17092
17093 sco3.2v5*)
17094   version_type=osf
17095   soname_spec='${libname}${release}${shared_ext}$major'
17096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17097   shlibpath_var=LD_LIBRARY_PATH
17098   ;;
17099
17100 solaris*)
17101   version_type=linux
17102   need_lib_prefix=no
17103   need_version=no
17104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17105   soname_spec='${libname}${release}${shared_ext}$major'
17106   shlibpath_var=LD_LIBRARY_PATH
17107   shlibpath_overrides_runpath=yes
17108   hardcode_into_libs=yes
17109   # ldd complains unless libraries are executable
17110   postinstall_cmds='chmod +x $lib'
17111   ;;
17112
17113 sunos4*)
17114   version_type=sunos
17115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17116   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17117   shlibpath_var=LD_LIBRARY_PATH
17118   shlibpath_overrides_runpath=yes
17119   if test "$with_gnu_ld" = yes; then
17120     need_lib_prefix=no
17121   fi
17122   need_version=yes
17123   ;;
17124
17125 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17126   version_type=linux
17127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17128   soname_spec='${libname}${release}${shared_ext}$major'
17129   shlibpath_var=LD_LIBRARY_PATH
17130   case $host_vendor in
17131     sni)
17132       shlibpath_overrides_runpath=no
17133       need_lib_prefix=no
17134       export_dynamic_flag_spec='${wl}-Blargedynsym'
17135       runpath_var=LD_RUN_PATH
17136       ;;
17137     siemens)
17138       need_lib_prefix=no
17139       ;;
17140     motorola)
17141       need_lib_prefix=no
17142       need_version=no
17143       shlibpath_overrides_runpath=no
17144       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17145       ;;
17146   esac
17147   ;;
17148
17149 sysv4*MP*)
17150   if test -d /usr/nec ;then
17151     version_type=linux
17152     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17153     soname_spec='$libname${shared_ext}.$major'
17154     shlibpath_var=LD_LIBRARY_PATH
17155   fi
17156   ;;
17157
17158 uts4*)
17159   version_type=linux
17160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17161   soname_spec='${libname}${release}${shared_ext}$major'
17162   shlibpath_var=LD_LIBRARY_PATH
17163   ;;
17164
17165 *)
17166   dynamic_linker=no
17167   ;;
17168 esac
17169 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17170 echo "${ECHO_T}$dynamic_linker" >&6
17171 test "$dynamic_linker" = no && can_build_shared=no
17172
17173 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17174 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17175 hardcode_action_GCJ=
17176 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17177    test -n "$runpath_var_GCJ" || \
17178    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17179
17180   # We can hardcode non-existant directories.
17181   if test "$hardcode_direct_GCJ" != no &&
17182      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17183      # have to relink, otherwise we might link with an installed library
17184      # when we should be linking with a yet-to-be-installed one
17185      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17186      test "$hardcode_minus_L_GCJ" != no; then
17187     # Linking always hardcodes the temporary library directory.
17188     hardcode_action_GCJ=relink
17189   else
17190     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17191     hardcode_action_GCJ=immediate
17192   fi
17193 else
17194   # We cannot hardcode anything, or else we can only hardcode existing
17195   # directories.
17196   hardcode_action_GCJ=unsupported
17197 fi
17198 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17199 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17200
17201 if test "$hardcode_action_GCJ" = relink; then
17202   # Fast installation is not supported
17203   enable_fast_install=no
17204 elif test "$shlibpath_overrides_runpath" = yes ||
17205      test "$enable_shared" = no; then
17206   # Fast installation is not necessary
17207   enable_fast_install=needless
17208 fi
17209
17210 striplib=
17211 old_striplib=
17212 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17213 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17214 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17215   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17216   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17217   echo "$as_me:$LINENO: result: yes" >&5
17218 echo "${ECHO_T}yes" >&6
17219 else
17220 # FIXME - insert some real tests, host_os isn't really good enough
17221   case $host_os in
17222    darwin*)
17223        if test -n "$STRIP" ; then
17224          striplib="$STRIP -x"
17225          echo "$as_me:$LINENO: result: yes" >&5
17226 echo "${ECHO_T}yes" >&6
17227        else
17228   echo "$as_me:$LINENO: result: no" >&5
17229 echo "${ECHO_T}no" >&6
17230 fi
17231        ;;
17232    *)
17233   echo "$as_me:$LINENO: result: no" >&5
17234 echo "${ECHO_T}no" >&6
17235     ;;
17236   esac
17237 fi
17238
17239 if test "x$enable_dlopen" != xyes; then
17240   enable_dlopen=unknown
17241   enable_dlopen_self=unknown
17242   enable_dlopen_self_static=unknown
17243 else
17244   lt_cv_dlopen=no
17245   lt_cv_dlopen_libs=
17246
17247   case $host_os in
17248   beos*)
17249     lt_cv_dlopen="load_add_on"
17250     lt_cv_dlopen_libs=
17251     lt_cv_dlopen_self=yes
17252     ;;
17253
17254   mingw* | pw32*)
17255     lt_cv_dlopen="LoadLibrary"
17256     lt_cv_dlopen_libs=
17257    ;;
17258
17259   cygwin*)
17260     lt_cv_dlopen="dlopen"
17261     lt_cv_dlopen_libs=
17262    ;;
17263
17264   darwin*)
17265   # if libdl is installed we need to link against it
17266     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17267 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17268 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17269   echo $ECHO_N "(cached) $ECHO_C" >&6
17270 else
17271   ac_check_lib_save_LIBS=$LIBS
17272 LIBS="-ldl  $LIBS"
17273 cat >conftest.$ac_ext <<_ACEOF
17274 /* confdefs.h.  */
17275 _ACEOF
17276 cat confdefs.h >>conftest.$ac_ext
17277 cat >>conftest.$ac_ext <<_ACEOF
17278 /* end confdefs.h.  */
17279
17280 /* Override any gcc2 internal prototype to avoid an error.  */
17281 #ifdef __cplusplus
17282 extern "C"
17283 #endif
17284 /* We use char because int might match the return type of a gcc2
17285    builtin and then its argument prototype would still apply.  */
17286 char dlopen ();
17287 int
17288 main ()
17289 {
17290 dlopen ();
17291   ;
17292   return 0;
17293 }
17294 _ACEOF
17295 rm -f conftest.$ac_objext conftest$ac_exeext
17296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17297   (eval $ac_link) 2>conftest.er1
17298   ac_status=$?
17299   grep -v '^ *+' conftest.er1 >conftest.err
17300   rm -f conftest.er1
17301   cat conftest.err >&5
17302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303   (exit $ac_status); } &&
17304          { ac_try='test -z "$ac_c_werror_flag"
17305                          || test ! -s conftest.err'
17306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307   (eval $ac_try) 2>&5
17308   ac_status=$?
17309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310   (exit $ac_status); }; } &&
17311          { ac_try='test -s conftest$ac_exeext'
17312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17313   (eval $ac_try) 2>&5
17314   ac_status=$?
17315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316   (exit $ac_status); }; }; then
17317   ac_cv_lib_dl_dlopen=yes
17318 else
17319   echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17321
17322 ac_cv_lib_dl_dlopen=no
17323 fi
17324 rm -f conftest.err conftest.$ac_objext \
17325       conftest$ac_exeext conftest.$ac_ext
17326 LIBS=$ac_check_lib_save_LIBS
17327 fi
17328 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17329 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17330 if test $ac_cv_lib_dl_dlopen = yes; then
17331   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17332 else
17333
17334     lt_cv_dlopen="dyld"
17335     lt_cv_dlopen_libs=
17336     lt_cv_dlopen_self=yes
17337
17338 fi
17339
17340    ;;
17341
17342   *)
17343     echo "$as_me:$LINENO: checking for shl_load" >&5
17344 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17345 if test "${ac_cv_func_shl_load+set}" = set; then
17346   echo $ECHO_N "(cached) $ECHO_C" >&6
17347 else
17348   cat >conftest.$ac_ext <<_ACEOF
17349 /* confdefs.h.  */
17350 _ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h.  */
17354 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17355    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17356 #define shl_load innocuous_shl_load
17357
17358 /* System header to define __stub macros and hopefully few prototypes,
17359     which can conflict with char shl_load (); below.
17360     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17361     <limits.h> exists even on freestanding compilers.  */
17362
17363 #ifdef __STDC__
17364 # include <limits.h>
17365 #else
17366 # include <assert.h>
17367 #endif
17368
17369 #undef shl_load
17370
17371 /* Override any gcc2 internal prototype to avoid an error.  */
17372 #ifdef __cplusplus
17373 extern "C"
17374 {
17375 #endif
17376 /* We use char because int might match the return type of a gcc2
17377    builtin and then its argument prototype would still apply.  */
17378 char shl_load ();
17379 /* The GNU C library defines this for functions which it implements
17380     to always fail with ENOSYS.  Some functions are actually named
17381     something starting with __ and the normal name is an alias.  */
17382 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17383 choke me
17384 #else
17385 char (*f) () = shl_load;
17386 #endif
17387 #ifdef __cplusplus
17388 }
17389 #endif
17390
17391 int
17392 main ()
17393 {
17394 return f != shl_load;
17395   ;
17396   return 0;
17397 }
17398 _ACEOF
17399 rm -f conftest.$ac_objext conftest$ac_exeext
17400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17401   (eval $ac_link) 2>conftest.er1
17402   ac_status=$?
17403   grep -v '^ *+' conftest.er1 >conftest.err
17404   rm -f conftest.er1
17405   cat conftest.err >&5
17406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407   (exit $ac_status); } &&
17408          { ac_try='test -z "$ac_c_werror_flag"
17409                          || test ! -s conftest.err'
17410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411   (eval $ac_try) 2>&5
17412   ac_status=$?
17413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414   (exit $ac_status); }; } &&
17415          { ac_try='test -s conftest$ac_exeext'
17416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417   (eval $ac_try) 2>&5
17418   ac_status=$?
17419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420   (exit $ac_status); }; }; then
17421   ac_cv_func_shl_load=yes
17422 else
17423   echo "$as_me: failed program was:" >&5
17424 sed 's/^/| /' conftest.$ac_ext >&5
17425
17426 ac_cv_func_shl_load=no
17427 fi
17428 rm -f conftest.err conftest.$ac_objext \
17429       conftest$ac_exeext conftest.$ac_ext
17430 fi
17431 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17432 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17433 if test $ac_cv_func_shl_load = yes; then
17434   lt_cv_dlopen="shl_load"
17435 else
17436   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17437 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17438 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17439   echo $ECHO_N "(cached) $ECHO_C" >&6
17440 else
17441   ac_check_lib_save_LIBS=$LIBS
17442 LIBS="-ldld  $LIBS"
17443 cat >conftest.$ac_ext <<_ACEOF
17444 /* confdefs.h.  */
17445 _ACEOF
17446 cat confdefs.h >>conftest.$ac_ext
17447 cat >>conftest.$ac_ext <<_ACEOF
17448 /* end confdefs.h.  */
17449
17450 /* Override any gcc2 internal prototype to avoid an error.  */
17451 #ifdef __cplusplus
17452 extern "C"
17453 #endif
17454 /* We use char because int might match the return type of a gcc2
17455    builtin and then its argument prototype would still apply.  */
17456 char shl_load ();
17457 int
17458 main ()
17459 {
17460 shl_load ();
17461   ;
17462   return 0;
17463 }
17464 _ACEOF
17465 rm -f conftest.$ac_objext conftest$ac_exeext
17466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17467   (eval $ac_link) 2>conftest.er1
17468   ac_status=$?
17469   grep -v '^ *+' conftest.er1 >conftest.err
17470   rm -f conftest.er1
17471   cat conftest.err >&5
17472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473   (exit $ac_status); } &&
17474          { ac_try='test -z "$ac_c_werror_flag"
17475                          || test ! -s conftest.err'
17476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477   (eval $ac_try) 2>&5
17478   ac_status=$?
17479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480   (exit $ac_status); }; } &&
17481          { ac_try='test -s conftest$ac_exeext'
17482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483   (eval $ac_try) 2>&5
17484   ac_status=$?
17485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486   (exit $ac_status); }; }; then
17487   ac_cv_lib_dld_shl_load=yes
17488 else
17489   echo "$as_me: failed program was:" >&5
17490 sed 's/^/| /' conftest.$ac_ext >&5
17491
17492 ac_cv_lib_dld_shl_load=no
17493 fi
17494 rm -f conftest.err conftest.$ac_objext \
17495       conftest$ac_exeext conftest.$ac_ext
17496 LIBS=$ac_check_lib_save_LIBS
17497 fi
17498 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17499 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17500 if test $ac_cv_lib_dld_shl_load = yes; then
17501   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17502 else
17503   echo "$as_me:$LINENO: checking for dlopen" >&5
17504 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17505 if test "${ac_cv_func_dlopen+set}" = set; then
17506   echo $ECHO_N "(cached) $ECHO_C" >&6
17507 else
17508   cat >conftest.$ac_ext <<_ACEOF
17509 /* confdefs.h.  */
17510 _ACEOF
17511 cat confdefs.h >>conftest.$ac_ext
17512 cat >>conftest.$ac_ext <<_ACEOF
17513 /* end confdefs.h.  */
17514 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17516 #define dlopen innocuous_dlopen
17517
17518 /* System header to define __stub macros and hopefully few prototypes,
17519     which can conflict with char dlopen (); below.
17520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17521     <limits.h> exists even on freestanding compilers.  */
17522
17523 #ifdef __STDC__
17524 # include <limits.h>
17525 #else
17526 # include <assert.h>
17527 #endif
17528
17529 #undef dlopen
17530
17531 /* Override any gcc2 internal prototype to avoid an error.  */
17532 #ifdef __cplusplus
17533 extern "C"
17534 {
17535 #endif
17536 /* We use char because int might match the return type of a gcc2
17537    builtin and then its argument prototype would still apply.  */
17538 char dlopen ();
17539 /* The GNU C library defines this for functions which it implements
17540     to always fail with ENOSYS.  Some functions are actually named
17541     something starting with __ and the normal name is an alias.  */
17542 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17543 choke me
17544 #else
17545 char (*f) () = dlopen;
17546 #endif
17547 #ifdef __cplusplus
17548 }
17549 #endif
17550
17551 int
17552 main ()
17553 {
17554 return f != dlopen;
17555   ;
17556   return 0;
17557 }
17558 _ACEOF
17559 rm -f conftest.$ac_objext conftest$ac_exeext
17560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17561   (eval $ac_link) 2>conftest.er1
17562   ac_status=$?
17563   grep -v '^ *+' conftest.er1 >conftest.err
17564   rm -f conftest.er1
17565   cat conftest.err >&5
17566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567   (exit $ac_status); } &&
17568          { ac_try='test -z "$ac_c_werror_flag"
17569                          || test ! -s conftest.err'
17570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17571   (eval $ac_try) 2>&5
17572   ac_status=$?
17573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574   (exit $ac_status); }; } &&
17575          { ac_try='test -s conftest$ac_exeext'
17576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17577   (eval $ac_try) 2>&5
17578   ac_status=$?
17579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580   (exit $ac_status); }; }; then
17581   ac_cv_func_dlopen=yes
17582 else
17583   echo "$as_me: failed program was:" >&5
17584 sed 's/^/| /' conftest.$ac_ext >&5
17585
17586 ac_cv_func_dlopen=no
17587 fi
17588 rm -f conftest.err conftest.$ac_objext \
17589       conftest$ac_exeext conftest.$ac_ext
17590 fi
17591 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17592 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17593 if test $ac_cv_func_dlopen = yes; then
17594   lt_cv_dlopen="dlopen"
17595 else
17596   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17597 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17598 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17599   echo $ECHO_N "(cached) $ECHO_C" >&6
17600 else
17601   ac_check_lib_save_LIBS=$LIBS
17602 LIBS="-ldl  $LIBS"
17603 cat >conftest.$ac_ext <<_ACEOF
17604 /* confdefs.h.  */
17605 _ACEOF
17606 cat confdefs.h >>conftest.$ac_ext
17607 cat >>conftest.$ac_ext <<_ACEOF
17608 /* end confdefs.h.  */
17609
17610 /* Override any gcc2 internal prototype to avoid an error.  */
17611 #ifdef __cplusplus
17612 extern "C"
17613 #endif
17614 /* We use char because int might match the return type of a gcc2
17615    builtin and then its argument prototype would still apply.  */
17616 char dlopen ();
17617 int
17618 main ()
17619 {
17620 dlopen ();
17621   ;
17622   return 0;
17623 }
17624 _ACEOF
17625 rm -f conftest.$ac_objext conftest$ac_exeext
17626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17627   (eval $ac_link) 2>conftest.er1
17628   ac_status=$?
17629   grep -v '^ *+' conftest.er1 >conftest.err
17630   rm -f conftest.er1
17631   cat conftest.err >&5
17632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633   (exit $ac_status); } &&
17634          { ac_try='test -z "$ac_c_werror_flag"
17635                          || test ! -s conftest.err'
17636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17637   (eval $ac_try) 2>&5
17638   ac_status=$?
17639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640   (exit $ac_status); }; } &&
17641          { ac_try='test -s conftest$ac_exeext'
17642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17643   (eval $ac_try) 2>&5
17644   ac_status=$?
17645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646   (exit $ac_status); }; }; then
17647   ac_cv_lib_dl_dlopen=yes
17648 else
17649   echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17651
17652 ac_cv_lib_dl_dlopen=no
17653 fi
17654 rm -f conftest.err conftest.$ac_objext \
17655       conftest$ac_exeext conftest.$ac_ext
17656 LIBS=$ac_check_lib_save_LIBS
17657 fi
17658 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17659 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17660 if test $ac_cv_lib_dl_dlopen = yes; then
17661   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17662 else
17663   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17664 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17665 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17666   echo $ECHO_N "(cached) $ECHO_C" >&6
17667 else
17668   ac_check_lib_save_LIBS=$LIBS
17669 LIBS="-lsvld  $LIBS"
17670 cat >conftest.$ac_ext <<_ACEOF
17671 /* confdefs.h.  */
17672 _ACEOF
17673 cat confdefs.h >>conftest.$ac_ext
17674 cat >>conftest.$ac_ext <<_ACEOF
17675 /* end confdefs.h.  */
17676
17677 /* Override any gcc2 internal prototype to avoid an error.  */
17678 #ifdef __cplusplus
17679 extern "C"
17680 #endif
17681 /* We use char because int might match the return type of a gcc2
17682    builtin and then its argument prototype would still apply.  */
17683 char dlopen ();
17684 int
17685 main ()
17686 {
17687 dlopen ();
17688   ;
17689   return 0;
17690 }
17691 _ACEOF
17692 rm -f conftest.$ac_objext conftest$ac_exeext
17693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17694   (eval $ac_link) 2>conftest.er1
17695   ac_status=$?
17696   grep -v '^ *+' conftest.er1 >conftest.err
17697   rm -f conftest.er1
17698   cat conftest.err >&5
17699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700   (exit $ac_status); } &&
17701          { ac_try='test -z "$ac_c_werror_flag"
17702                          || test ! -s conftest.err'
17703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704   (eval $ac_try) 2>&5
17705   ac_status=$?
17706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707   (exit $ac_status); }; } &&
17708          { ac_try='test -s conftest$ac_exeext'
17709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710   (eval $ac_try) 2>&5
17711   ac_status=$?
17712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713   (exit $ac_status); }; }; then
17714   ac_cv_lib_svld_dlopen=yes
17715 else
17716   echo "$as_me: failed program was:" >&5
17717 sed 's/^/| /' conftest.$ac_ext >&5
17718
17719 ac_cv_lib_svld_dlopen=no
17720 fi
17721 rm -f conftest.err conftest.$ac_objext \
17722       conftest$ac_exeext conftest.$ac_ext
17723 LIBS=$ac_check_lib_save_LIBS
17724 fi
17725 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17726 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17727 if test $ac_cv_lib_svld_dlopen = yes; then
17728   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17729 else
17730   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17731 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17732 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17733   echo $ECHO_N "(cached) $ECHO_C" >&6
17734 else
17735   ac_check_lib_save_LIBS=$LIBS
17736 LIBS="-ldld  $LIBS"
17737 cat >conftest.$ac_ext <<_ACEOF
17738 /* confdefs.h.  */
17739 _ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h.  */
17743
17744 /* Override any gcc2 internal prototype to avoid an error.  */
17745 #ifdef __cplusplus
17746 extern "C"
17747 #endif
17748 /* We use char because int might match the return type of a gcc2
17749    builtin and then its argument prototype would still apply.  */
17750 char dld_link ();
17751 int
17752 main ()
17753 {
17754 dld_link ();
17755   ;
17756   return 0;
17757 }
17758 _ACEOF
17759 rm -f conftest.$ac_objext conftest$ac_exeext
17760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17761   (eval $ac_link) 2>conftest.er1
17762   ac_status=$?
17763   grep -v '^ *+' conftest.er1 >conftest.err
17764   rm -f conftest.er1
17765   cat conftest.err >&5
17766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767   (exit $ac_status); } &&
17768          { ac_try='test -z "$ac_c_werror_flag"
17769                          || test ! -s conftest.err'
17770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771   (eval $ac_try) 2>&5
17772   ac_status=$?
17773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774   (exit $ac_status); }; } &&
17775          { ac_try='test -s conftest$ac_exeext'
17776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17777   (eval $ac_try) 2>&5
17778   ac_status=$?
17779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780   (exit $ac_status); }; }; then
17781   ac_cv_lib_dld_dld_link=yes
17782 else
17783   echo "$as_me: failed program was:" >&5
17784 sed 's/^/| /' conftest.$ac_ext >&5
17785
17786 ac_cv_lib_dld_dld_link=no
17787 fi
17788 rm -f conftest.err conftest.$ac_objext \
17789       conftest$ac_exeext conftest.$ac_ext
17790 LIBS=$ac_check_lib_save_LIBS
17791 fi
17792 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17793 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17794 if test $ac_cv_lib_dld_dld_link = yes; then
17795   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17796 fi
17797
17798
17799 fi
17800
17801
17802 fi
17803
17804
17805 fi
17806
17807
17808 fi
17809
17810
17811 fi
17812
17813     ;;
17814   esac
17815
17816   if test "x$lt_cv_dlopen" != xno; then
17817     enable_dlopen=yes
17818   else
17819     enable_dlopen=no
17820   fi
17821
17822   case $lt_cv_dlopen in
17823   dlopen)
17824     save_CPPFLAGS="$CPPFLAGS"
17825     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17826
17827     save_LDFLAGS="$LDFLAGS"
17828     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17829
17830     save_LIBS="$LIBS"
17831     LIBS="$lt_cv_dlopen_libs $LIBS"
17832
17833     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17834 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17835 if test "${lt_cv_dlopen_self+set}" = set; then
17836   echo $ECHO_N "(cached) $ECHO_C" >&6
17837 else
17838           if test "$cross_compiling" = yes; then :
17839   lt_cv_dlopen_self=cross
17840 else
17841   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17842   lt_status=$lt_dlunknown
17843   cat > conftest.$ac_ext <<EOF
17844 #line 17844 "configure"
17845 #include "confdefs.h"
17846
17847 #if HAVE_DLFCN_H
17848 #include <dlfcn.h>
17849 #endif
17850
17851 #include <stdio.h>
17852
17853 #ifdef RTLD_GLOBAL
17854 #  define LT_DLGLOBAL           RTLD_GLOBAL
17855 #else
17856 #  ifdef DL_GLOBAL
17857 #    define LT_DLGLOBAL         DL_GLOBAL
17858 #  else
17859 #    define LT_DLGLOBAL         0
17860 #  endif
17861 #endif
17862
17863 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17864    find out it does not work in some platform. */
17865 #ifndef LT_DLLAZY_OR_NOW
17866 #  ifdef RTLD_LAZY
17867 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17868 #  else
17869 #    ifdef DL_LAZY
17870 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17871 #    else
17872 #      ifdef RTLD_NOW
17873 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17874 #      else
17875 #        ifdef DL_NOW
17876 #          define LT_DLLAZY_OR_NOW      DL_NOW
17877 #        else
17878 #          define LT_DLLAZY_OR_NOW      0
17879 #        endif
17880 #      endif
17881 #    endif
17882 #  endif
17883 #endif
17884
17885 #ifdef __cplusplus
17886 extern "C" void exit (int);
17887 #endif
17888
17889 void fnord() { int i=42;}
17890 int main ()
17891 {
17892   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17893   int status = $lt_dlunknown;
17894
17895   if (self)
17896     {
17897       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17898       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17899       /* dlclose (self); */
17900     }
17901
17902     exit (status);
17903 }
17904 EOF
17905   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17906   (eval $ac_link) 2>&5
17907   ac_status=$?
17908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17910     (./conftest; exit; ) 2>/dev/null
17911     lt_status=$?
17912     case x$lt_status in
17913       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17914       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17915       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17916     esac
17917   else :
17918     # compilation failed
17919     lt_cv_dlopen_self=no
17920   fi
17921 fi
17922 rm -fr conftest*
17923
17924
17925 fi
17926 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17927 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17928
17929     if test "x$lt_cv_dlopen_self" = xyes; then
17930       LDFLAGS="$LDFLAGS $link_static_flag"
17931       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17932 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17933 if test "${lt_cv_dlopen_self_static+set}" = set; then
17934   echo $ECHO_N "(cached) $ECHO_C" >&6
17935 else
17936           if test "$cross_compiling" = yes; then :
17937   lt_cv_dlopen_self_static=cross
17938 else
17939   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17940   lt_status=$lt_dlunknown
17941   cat > conftest.$ac_ext <<EOF
17942 #line 17942 "configure"
17943 #include "confdefs.h"
17944
17945 #if HAVE_DLFCN_H
17946 #include <dlfcn.h>
17947 #endif
17948
17949 #include <stdio.h>
17950
17951 #ifdef RTLD_GLOBAL
17952 #  define LT_DLGLOBAL           RTLD_GLOBAL
17953 #else
17954 #  ifdef DL_GLOBAL
17955 #    define LT_DLGLOBAL         DL_GLOBAL
17956 #  else
17957 #    define LT_DLGLOBAL         0
17958 #  endif
17959 #endif
17960
17961 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17962    find out it does not work in some platform. */
17963 #ifndef LT_DLLAZY_OR_NOW
17964 #  ifdef RTLD_LAZY
17965 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17966 #  else
17967 #    ifdef DL_LAZY
17968 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17969 #    else
17970 #      ifdef RTLD_NOW
17971 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17972 #      else
17973 #        ifdef DL_NOW
17974 #          define LT_DLLAZY_OR_NOW      DL_NOW
17975 #        else
17976 #          define LT_DLLAZY_OR_NOW      0
17977 #        endif
17978 #      endif
17979 #    endif
17980 #  endif
17981 #endif
17982
17983 #ifdef __cplusplus
17984 extern "C" void exit (int);
17985 #endif
17986
17987 void fnord() { int i=42;}
17988 int main ()
17989 {
17990   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17991   int status = $lt_dlunknown;
17992
17993   if (self)
17994     {
17995       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17996       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17997       /* dlclose (self); */
17998     }
17999
18000     exit (status);
18001 }
18002 EOF
18003   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18004   (eval $ac_link) 2>&5
18005   ac_status=$?
18006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18008     (./conftest; exit; ) 2>/dev/null
18009     lt_status=$?
18010     case x$lt_status in
18011       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18012       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18013       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18014     esac
18015   else :
18016     # compilation failed
18017     lt_cv_dlopen_self_static=no
18018   fi
18019 fi
18020 rm -fr conftest*
18021
18022
18023 fi
18024 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18025 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18026     fi
18027
18028     CPPFLAGS="$save_CPPFLAGS"
18029     LDFLAGS="$save_LDFLAGS"
18030     LIBS="$save_LIBS"
18031     ;;
18032   esac
18033
18034   case $lt_cv_dlopen_self in
18035   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18036   *) enable_dlopen_self=unknown ;;
18037   esac
18038
18039   case $lt_cv_dlopen_self_static in
18040   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18041   *) enable_dlopen_self_static=unknown ;;
18042   esac
18043 fi
18044
18045
18046 # The else clause should only fire when bootstrapping the
18047 # libtool distribution, otherwise you forgot to ship ltmain.sh
18048 # with your package, and you will get complaints that there are
18049 # no rules to generate ltmain.sh.
18050 if test -f "$ltmain"; then
18051   # See if we are running on zsh, and set the options which allow our commands through
18052   # without removal of \ escapes.
18053   if test -n "${ZSH_VERSION+set}" ; then
18054     setopt NO_GLOB_SUBST
18055   fi
18056   # Now quote all the things that may contain metacharacters while being
18057   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18058   # variables and quote the copies for generation of the libtool script.
18059   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18060     SED SHELL STRIP \
18061     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18062     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18063     deplibs_check_method reload_flag reload_cmds need_locks \
18064     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18065     lt_cv_sys_global_symbol_to_c_name_address \
18066     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18067     old_postinstall_cmds old_postuninstall_cmds \
18068     compiler_GCJ \
18069     CC_GCJ \
18070     LD_GCJ \
18071     lt_prog_compiler_wl_GCJ \
18072     lt_prog_compiler_pic_GCJ \
18073     lt_prog_compiler_static_GCJ \
18074     lt_prog_compiler_no_builtin_flag_GCJ \
18075     export_dynamic_flag_spec_GCJ \
18076     thread_safe_flag_spec_GCJ \
18077     whole_archive_flag_spec_GCJ \
18078     enable_shared_with_static_runtimes_GCJ \
18079     old_archive_cmds_GCJ \
18080     old_archive_from_new_cmds_GCJ \
18081     predep_objects_GCJ \
18082     postdep_objects_GCJ \
18083     predeps_GCJ \
18084     postdeps_GCJ \
18085     compiler_lib_search_path_GCJ \
18086     archive_cmds_GCJ \
18087     archive_expsym_cmds_GCJ \
18088     postinstall_cmds_GCJ \
18089     postuninstall_cmds_GCJ \
18090     old_archive_from_expsyms_cmds_GCJ \
18091     allow_undefined_flag_GCJ \
18092     no_undefined_flag_GCJ \
18093     export_symbols_cmds_GCJ \
18094     hardcode_libdir_flag_spec_GCJ \
18095     hardcode_libdir_flag_spec_ld_GCJ \
18096     hardcode_libdir_separator_GCJ \
18097     hardcode_automatic_GCJ \
18098     module_cmds_GCJ \
18099     module_expsym_cmds_GCJ \
18100     lt_cv_prog_compiler_c_o_GCJ \
18101     exclude_expsyms_GCJ \
18102     include_expsyms_GCJ; do
18103
18104     case $var in
18105     old_archive_cmds_GCJ | \
18106     old_archive_from_new_cmds_GCJ | \
18107     archive_cmds_GCJ | \
18108     archive_expsym_cmds_GCJ | \
18109     module_cmds_GCJ | \
18110     module_expsym_cmds_GCJ | \
18111     old_archive_from_expsyms_cmds_GCJ | \
18112     export_symbols_cmds_GCJ | \
18113     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18114     postinstall_cmds | postuninstall_cmds | \
18115     old_postinstall_cmds | old_postuninstall_cmds | \
18116     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18117       # Double-quote double-evaled strings.
18118       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18119       ;;
18120     *)
18121       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18122       ;;
18123     esac
18124   done
18125
18126   case $lt_echo in
18127   *'\$0 --fallback-echo"')
18128     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18129     ;;
18130   esac
18131
18132 cfgfile="$ofile"
18133
18134   cat <<__EOF__ >> "$cfgfile"
18135 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18136
18137 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18138
18139 # Shell to use when invoking shell scripts.
18140 SHELL=$lt_SHELL
18141
18142 # Whether or not to build shared libraries.
18143 build_libtool_libs=$enable_shared
18144
18145 # Whether or not to build static libraries.
18146 build_old_libs=$enable_static
18147
18148 # Whether or not to add -lc for building shared libraries.
18149 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18150
18151 # Whether or not to disallow shared libs when runtime libs are static
18152 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18153
18154 # Whether or not to optimize for fast installation.
18155 fast_install=$enable_fast_install
18156
18157 # The host system.
18158 host_alias=$host_alias
18159 host=$host
18160
18161 # An echo program that does not interpret backslashes.
18162 echo=$lt_echo
18163
18164 # The archiver.
18165 AR=$lt_AR
18166 AR_FLAGS=$lt_AR_FLAGS
18167
18168 # A C compiler.
18169 LTCC=$lt_LTCC
18170
18171 # A language-specific compiler.
18172 CC=$lt_compiler_GCJ
18173
18174 # Is the compiler the GNU C compiler?
18175 with_gcc=$GCC_GCJ
18176
18177 # An ERE matcher.
18178 EGREP=$lt_EGREP
18179
18180 # The linker used to build libraries.
18181 LD=$lt_LD_GCJ
18182
18183 # Whether we need hard or soft links.
18184 LN_S=$lt_LN_S
18185
18186 # A BSD-compatible nm program.
18187 NM=$lt_NM
18188
18189 # A symbol stripping program
18190 STRIP=$lt_STRIP
18191
18192 # Used to examine libraries when file_magic_cmd begins "file"
18193 MAGIC_CMD=$MAGIC_CMD
18194
18195 # Used on cygwin: DLL creation program.
18196 DLLTOOL="$DLLTOOL"
18197
18198 # Used on cygwin: object dumper.
18199 OBJDUMP="$OBJDUMP"
18200
18201 # Used on cygwin: assembler.
18202 AS="$AS"
18203
18204 # The name of the directory that contains temporary libtool files.
18205 objdir=$objdir
18206
18207 # How to create reloadable object files.
18208 reload_flag=$lt_reload_flag
18209 reload_cmds=$lt_reload_cmds
18210
18211 # How to pass a linker flag through the compiler.
18212 wl=$lt_lt_prog_compiler_wl_GCJ
18213
18214 # Object file suffix (normally "o").
18215 objext="$ac_objext"
18216
18217 # Old archive suffix (normally "a").
18218 libext="$libext"
18219
18220 # Shared library suffix (normally ".so").
18221 shrext_cmds='$shrext_cmds'
18222
18223 # Executable file suffix (normally "").
18224 exeext="$exeext"
18225
18226 # Additional compiler flags for building library objects.
18227 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18228 pic_mode=$pic_mode
18229
18230 # What is the maximum length of a command?
18231 max_cmd_len=$lt_cv_sys_max_cmd_len
18232
18233 # Does compiler simultaneously support -c and -o options?
18234 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18235
18236 # Must we lock files when doing compilation ?
18237 need_locks=$lt_need_locks
18238
18239 # Do we need the lib prefix for modules?
18240 need_lib_prefix=$need_lib_prefix
18241
18242 # Do we need a version for libraries?
18243 need_version=$need_version
18244
18245 # Whether dlopen is supported.
18246 dlopen_support=$enable_dlopen
18247
18248 # Whether dlopen of programs is supported.
18249 dlopen_self=$enable_dlopen_self
18250
18251 # Whether dlopen of statically linked programs is supported.
18252 dlopen_self_static=$enable_dlopen_self_static
18253
18254 # Compiler flag to prevent dynamic linking.
18255 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18256
18257 # Compiler flag to turn off builtin functions.
18258 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18259
18260 # Compiler flag to allow reflexive dlopens.
18261 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18262
18263 # Compiler flag to generate shared objects directly from archives.
18264 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18265
18266 # Compiler flag to generate thread-safe objects.
18267 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18268
18269 # Library versioning type.
18270 version_type=$version_type
18271
18272 # Format of library name prefix.
18273 libname_spec=$lt_libname_spec
18274
18275 # List of archive names.  First name is the real one, the rest are links.
18276 # The last name is the one that the linker finds with -lNAME.
18277 library_names_spec=$lt_library_names_spec
18278
18279 # The coded name of the library, if different from the real name.
18280 soname_spec=$lt_soname_spec
18281
18282 # Commands used to build and install an old-style archive.
18283 RANLIB=$lt_RANLIB
18284 old_archive_cmds=$lt_old_archive_cmds_GCJ
18285 old_postinstall_cmds=$lt_old_postinstall_cmds
18286 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18287
18288 # Create an old-style archive from a shared archive.
18289 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18290
18291 # Create a temporary old-style archive to link instead of a shared archive.
18292 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18293
18294 # Commands used to build and install a shared archive.
18295 archive_cmds=$lt_archive_cmds_GCJ
18296 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18297 postinstall_cmds=$lt_postinstall_cmds
18298 postuninstall_cmds=$lt_postuninstall_cmds
18299
18300 # Commands used to build a loadable module (assumed same as above if empty)
18301 module_cmds=$lt_module_cmds_GCJ
18302 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18303
18304 # Commands to strip libraries.
18305 old_striplib=$lt_old_striplib
18306 striplib=$lt_striplib
18307
18308 # Dependencies to place before the objects being linked to create a
18309 # shared library.
18310 predep_objects=$lt_predep_objects_GCJ
18311
18312 # Dependencies to place after the objects being linked to create a
18313 # shared library.
18314 postdep_objects=$lt_postdep_objects_GCJ
18315
18316 # Dependencies to place before the objects being linked to create a
18317 # shared library.
18318 predeps=$lt_predeps_GCJ
18319
18320 # Dependencies to place after the objects being linked to create a
18321 # shared library.
18322 postdeps=$lt_postdeps_GCJ
18323
18324 # The library search path used internally by the compiler when linking
18325 # a shared library.
18326 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18327
18328 # Method to check whether dependent libraries are shared objects.
18329 deplibs_check_method=$lt_deplibs_check_method
18330
18331 # Command to use when deplibs_check_method == file_magic.
18332 file_magic_cmd=$lt_file_magic_cmd
18333
18334 # Flag that allows shared libraries with undefined symbols to be built.
18335 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18336
18337 # Flag that forces no undefined symbols.
18338 no_undefined_flag=$lt_no_undefined_flag_GCJ
18339
18340 # Commands used to finish a libtool library installation in a directory.
18341 finish_cmds=$lt_finish_cmds
18342
18343 # Same as above, but a single script fragment to be evaled but not shown.
18344 finish_eval=$lt_finish_eval
18345
18346 # Take the output of nm and produce a listing of raw symbols and C names.
18347 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18348
18349 # Transform the output of nm in a proper C declaration
18350 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18351
18352 # Transform the output of nm in a C name address pair
18353 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18354
18355 # This is the shared library runtime path variable.
18356 runpath_var=$runpath_var
18357
18358 # This is the shared library path variable.
18359 shlibpath_var=$shlibpath_var
18360
18361 # Is shlibpath searched before the hard-coded library search path?
18362 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18363
18364 # How to hardcode a shared library path into an executable.
18365 hardcode_action=$hardcode_action_GCJ
18366
18367 # Whether we should hardcode library paths into libraries.
18368 hardcode_into_libs=$hardcode_into_libs
18369
18370 # Flag to hardcode \$libdir into a binary during linking.
18371 # This must work even if \$libdir does not exist.
18372 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18373
18374 # If ld is used when linking, flag to hardcode \$libdir into
18375 # a binary during linking. This must work even if \$libdir does
18376 # not exist.
18377 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18378
18379 # Whether we need a single -rpath flag with a separated argument.
18380 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18381
18382 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18383 # resulting binary.
18384 hardcode_direct=$hardcode_direct_GCJ
18385
18386 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18387 # resulting binary.
18388 hardcode_minus_L=$hardcode_minus_L_GCJ
18389
18390 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18391 # the resulting binary.
18392 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18393
18394 # Set to yes if building a shared library automatically hardcodes DIR into the library
18395 # and all subsequent libraries and executables linked against it.
18396 hardcode_automatic=$hardcode_automatic_GCJ
18397
18398 # Variables whose values should be saved in libtool wrapper scripts and
18399 # restored at relink time.
18400 variables_saved_for_relink="$variables_saved_for_relink"
18401
18402 # Whether libtool must link a program against all its dependency libraries.
18403 link_all_deplibs=$link_all_deplibs_GCJ
18404
18405 # Compile-time system search path for libraries
18406 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18407
18408 # Run-time system search path for libraries
18409 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18410
18411 # Fix the shell variable \$srcfile for the compiler.
18412 fix_srcfile_path="$fix_srcfile_path_GCJ"
18413
18414 # Set to yes if exported symbols are required.
18415 always_export_symbols=$always_export_symbols_GCJ
18416
18417 # The commands to list exported symbols.
18418 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18419
18420 # The commands to extract the exported symbol list from a shared archive.
18421 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18422
18423 # Symbols that should not be listed in the preloaded symbols.
18424 exclude_expsyms=$lt_exclude_expsyms_GCJ
18425
18426 # Symbols that must always be exported.
18427 include_expsyms=$lt_include_expsyms_GCJ
18428
18429 # ### END LIBTOOL TAG CONFIG: $tagname
18430
18431 __EOF__
18432
18433
18434 else
18435   # If there is no Makefile yet, we rely on a make rule to execute
18436   # `config.status --recheck' to rerun these tests and create the
18437   # libtool script then.
18438   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18439   if test -f "$ltmain_in"; then
18440     test -f Makefile && make "$ltmain"
18441   fi
18442 fi
18443
18444
18445 ac_ext=c
18446 ac_cpp='$CPP $CPPFLAGS'
18447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18450
18451 CC="$lt_save_CC"
18452
18453         else
18454           tagname=""
18455         fi
18456         ;;
18457
18458       RC)
18459         ac_ext=c
18460 ac_cpp='$CPP $CPPFLAGS'
18461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18464
18465
18466 # Source file extension for RC test sources.
18467 ac_ext=rc
18468
18469 # Object file extension for compiled RC test sources.
18470 objext=o
18471 objext_RC=$objext
18472
18473 # Code to be used in simple compile tests
18474 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18475
18476 # Code to be used in simple link tests
18477 lt_simple_link_test_code="$lt_simple_compile_test_code"
18478
18479 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18480
18481 # If no C compiler was specified, use CC.
18482 LTCC=${LTCC-"$CC"}
18483
18484 # Allow CC to be a program name with arguments.
18485 compiler=$CC
18486
18487
18488 # Allow CC to be a program name with arguments.
18489 lt_save_CC="$CC"
18490 CC=${RC-"windres"}
18491 compiler=$CC
18492 compiler_RC=$CC
18493 lt_cv_prog_compiler_c_o_RC=yes
18494
18495 # The else clause should only fire when bootstrapping the
18496 # libtool distribution, otherwise you forgot to ship ltmain.sh
18497 # with your package, and you will get complaints that there are
18498 # no rules to generate ltmain.sh.
18499 if test -f "$ltmain"; then
18500   # See if we are running on zsh, and set the options which allow our commands through
18501   # without removal of \ escapes.
18502   if test -n "${ZSH_VERSION+set}" ; then
18503     setopt NO_GLOB_SUBST
18504   fi
18505   # Now quote all the things that may contain metacharacters while being
18506   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18507   # variables and quote the copies for generation of the libtool script.
18508   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18509     SED SHELL STRIP \
18510     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18511     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18512     deplibs_check_method reload_flag reload_cmds need_locks \
18513     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18514     lt_cv_sys_global_symbol_to_c_name_address \
18515     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18516     old_postinstall_cmds old_postuninstall_cmds \
18517     compiler_RC \
18518     CC_RC \
18519     LD_RC \
18520     lt_prog_compiler_wl_RC \
18521     lt_prog_compiler_pic_RC \
18522     lt_prog_compiler_static_RC \
18523     lt_prog_compiler_no_builtin_flag_RC \
18524     export_dynamic_flag_spec_RC \
18525     thread_safe_flag_spec_RC \
18526     whole_archive_flag_spec_RC \
18527     enable_shared_with_static_runtimes_RC \
18528     old_archive_cmds_RC \
18529     old_archive_from_new_cmds_RC \
18530     predep_objects_RC \
18531     postdep_objects_RC \
18532     predeps_RC \
18533     postdeps_RC \
18534     compiler_lib_search_path_RC \
18535     archive_cmds_RC \
18536     archive_expsym_cmds_RC \
18537     postinstall_cmds_RC \
18538     postuninstall_cmds_RC \
18539     old_archive_from_expsyms_cmds_RC \
18540     allow_undefined_flag_RC \
18541     no_undefined_flag_RC \
18542     export_symbols_cmds_RC \
18543     hardcode_libdir_flag_spec_RC \
18544     hardcode_libdir_flag_spec_ld_RC \
18545     hardcode_libdir_separator_RC \
18546     hardcode_automatic_RC \
18547     module_cmds_RC \
18548     module_expsym_cmds_RC \
18549     lt_cv_prog_compiler_c_o_RC \
18550     exclude_expsyms_RC \
18551     include_expsyms_RC; do
18552
18553     case $var in
18554     old_archive_cmds_RC | \
18555     old_archive_from_new_cmds_RC | \
18556     archive_cmds_RC | \
18557     archive_expsym_cmds_RC | \
18558     module_cmds_RC | \
18559     module_expsym_cmds_RC | \
18560     old_archive_from_expsyms_cmds_RC | \
18561     export_symbols_cmds_RC | \
18562     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18563     postinstall_cmds | postuninstall_cmds | \
18564     old_postinstall_cmds | old_postuninstall_cmds | \
18565     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18566       # Double-quote double-evaled strings.
18567       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18568       ;;
18569     *)
18570       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18571       ;;
18572     esac
18573   done
18574
18575   case $lt_echo in
18576   *'\$0 --fallback-echo"')
18577     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18578     ;;
18579   esac
18580
18581 cfgfile="$ofile"
18582
18583   cat <<__EOF__ >> "$cfgfile"
18584 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18585
18586 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18587
18588 # Shell to use when invoking shell scripts.
18589 SHELL=$lt_SHELL
18590
18591 # Whether or not to build shared libraries.
18592 build_libtool_libs=$enable_shared
18593
18594 # Whether or not to build static libraries.
18595 build_old_libs=$enable_static
18596
18597 # Whether or not to add -lc for building shared libraries.
18598 build_libtool_need_lc=$archive_cmds_need_lc_RC
18599
18600 # Whether or not to disallow shared libs when runtime libs are static
18601 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18602
18603 # Whether or not to optimize for fast installation.
18604 fast_install=$enable_fast_install
18605
18606 # The host system.
18607 host_alias=$host_alias
18608 host=$host
18609
18610 # An echo program that does not interpret backslashes.
18611 echo=$lt_echo
18612
18613 # The archiver.
18614 AR=$lt_AR
18615 AR_FLAGS=$lt_AR_FLAGS
18616
18617 # A C compiler.
18618 LTCC=$lt_LTCC
18619
18620 # A language-specific compiler.
18621 CC=$lt_compiler_RC
18622
18623 # Is the compiler the GNU C compiler?
18624 with_gcc=$GCC_RC
18625
18626 # An ERE matcher.
18627 EGREP=$lt_EGREP
18628
18629 # The linker used to build libraries.
18630 LD=$lt_LD_RC
18631
18632 # Whether we need hard or soft links.
18633 LN_S=$lt_LN_S
18634
18635 # A BSD-compatible nm program.
18636 NM=$lt_NM
18637
18638 # A symbol stripping program
18639 STRIP=$lt_STRIP
18640
18641 # Used to examine libraries when file_magic_cmd begins "file"
18642 MAGIC_CMD=$MAGIC_CMD
18643
18644 # Used on cygwin: DLL creation program.
18645 DLLTOOL="$DLLTOOL"
18646
18647 # Used on cygwin: object dumper.
18648 OBJDUMP="$OBJDUMP"
18649
18650 # Used on cygwin: assembler.
18651 AS="$AS"
18652
18653 # The name of the directory that contains temporary libtool files.
18654 objdir=$objdir
18655
18656 # How to create reloadable object files.
18657 reload_flag=$lt_reload_flag
18658 reload_cmds=$lt_reload_cmds
18659
18660 # How to pass a linker flag through the compiler.
18661 wl=$lt_lt_prog_compiler_wl_RC
18662
18663 # Object file suffix (normally "o").
18664 objext="$ac_objext"
18665
18666 # Old archive suffix (normally "a").
18667 libext="$libext"
18668
18669 # Shared library suffix (normally ".so").
18670 shrext_cmds='$shrext_cmds'
18671
18672 # Executable file suffix (normally "").
18673 exeext="$exeext"
18674
18675 # Additional compiler flags for building library objects.
18676 pic_flag=$lt_lt_prog_compiler_pic_RC
18677 pic_mode=$pic_mode
18678
18679 # What is the maximum length of a command?
18680 max_cmd_len=$lt_cv_sys_max_cmd_len
18681
18682 # Does compiler simultaneously support -c and -o options?
18683 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18684
18685 # Must we lock files when doing compilation ?
18686 need_locks=$lt_need_locks
18687
18688 # Do we need the lib prefix for modules?
18689 need_lib_prefix=$need_lib_prefix
18690
18691 # Do we need a version for libraries?
18692 need_version=$need_version
18693
18694 # Whether dlopen is supported.
18695 dlopen_support=$enable_dlopen
18696
18697 # Whether dlopen of programs is supported.
18698 dlopen_self=$enable_dlopen_self
18699
18700 # Whether dlopen of statically linked programs is supported.
18701 dlopen_self_static=$enable_dlopen_self_static
18702
18703 # Compiler flag to prevent dynamic linking.
18704 link_static_flag=$lt_lt_prog_compiler_static_RC
18705
18706 # Compiler flag to turn off builtin functions.
18707 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18708
18709 # Compiler flag to allow reflexive dlopens.
18710 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18711
18712 # Compiler flag to generate shared objects directly from archives.
18713 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18714
18715 # Compiler flag to generate thread-safe objects.
18716 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18717
18718 # Library versioning type.
18719 version_type=$version_type
18720
18721 # Format of library name prefix.
18722 libname_spec=$lt_libname_spec
18723
18724 # List of archive names.  First name is the real one, the rest are links.
18725 # The last name is the one that the linker finds with -lNAME.
18726 library_names_spec=$lt_library_names_spec
18727
18728 # The coded name of the library, if different from the real name.
18729 soname_spec=$lt_soname_spec
18730
18731 # Commands used to build and install an old-style archive.
18732 RANLIB=$lt_RANLIB
18733 old_archive_cmds=$lt_old_archive_cmds_RC
18734 old_postinstall_cmds=$lt_old_postinstall_cmds
18735 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18736
18737 # Create an old-style archive from a shared archive.
18738 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18739
18740 # Create a temporary old-style archive to link instead of a shared archive.
18741 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18742
18743 # Commands used to build and install a shared archive.
18744 archive_cmds=$lt_archive_cmds_RC
18745 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18746 postinstall_cmds=$lt_postinstall_cmds
18747 postuninstall_cmds=$lt_postuninstall_cmds
18748
18749 # Commands used to build a loadable module (assumed same as above if empty)
18750 module_cmds=$lt_module_cmds_RC
18751 module_expsym_cmds=$lt_module_expsym_cmds_RC
18752
18753 # Commands to strip libraries.
18754 old_striplib=$lt_old_striplib
18755 striplib=$lt_striplib
18756
18757 # Dependencies to place before the objects being linked to create a
18758 # shared library.
18759 predep_objects=$lt_predep_objects_RC
18760
18761 # Dependencies to place after the objects being linked to create a
18762 # shared library.
18763 postdep_objects=$lt_postdep_objects_RC
18764
18765 # Dependencies to place before the objects being linked to create a
18766 # shared library.
18767 predeps=$lt_predeps_RC
18768
18769 # Dependencies to place after the objects being linked to create a
18770 # shared library.
18771 postdeps=$lt_postdeps_RC
18772
18773 # The library search path used internally by the compiler when linking
18774 # a shared library.
18775 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18776
18777 # Method to check whether dependent libraries are shared objects.
18778 deplibs_check_method=$lt_deplibs_check_method
18779
18780 # Command to use when deplibs_check_method == file_magic.
18781 file_magic_cmd=$lt_file_magic_cmd
18782
18783 # Flag that allows shared libraries with undefined symbols to be built.
18784 allow_undefined_flag=$lt_allow_undefined_flag_RC
18785
18786 # Flag that forces no undefined symbols.
18787 no_undefined_flag=$lt_no_undefined_flag_RC
18788
18789 # Commands used to finish a libtool library installation in a directory.
18790 finish_cmds=$lt_finish_cmds
18791
18792 # Same as above, but a single script fragment to be evaled but not shown.
18793 finish_eval=$lt_finish_eval
18794
18795 # Take the output of nm and produce a listing of raw symbols and C names.
18796 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18797
18798 # Transform the output of nm in a proper C declaration
18799 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18800
18801 # Transform the output of nm in a C name address pair
18802 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18803
18804 # This is the shared library runtime path variable.
18805 runpath_var=$runpath_var
18806
18807 # This is the shared library path variable.
18808 shlibpath_var=$shlibpath_var
18809
18810 # Is shlibpath searched before the hard-coded library search path?
18811 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18812
18813 # How to hardcode a shared library path into an executable.
18814 hardcode_action=$hardcode_action_RC
18815
18816 # Whether we should hardcode library paths into libraries.
18817 hardcode_into_libs=$hardcode_into_libs
18818
18819 # Flag to hardcode \$libdir into a binary during linking.
18820 # This must work even if \$libdir does not exist.
18821 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18822
18823 # If ld is used when linking, flag to hardcode \$libdir into
18824 # a binary during linking. This must work even if \$libdir does
18825 # not exist.
18826 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18827
18828 # Whether we need a single -rpath flag with a separated argument.
18829 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18830
18831 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18832 # resulting binary.
18833 hardcode_direct=$hardcode_direct_RC
18834
18835 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18836 # resulting binary.
18837 hardcode_minus_L=$hardcode_minus_L_RC
18838
18839 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18840 # the resulting binary.
18841 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18842
18843 # Set to yes if building a shared library automatically hardcodes DIR into the library
18844 # and all subsequent libraries and executables linked against it.
18845 hardcode_automatic=$hardcode_automatic_RC
18846
18847 # Variables whose values should be saved in libtool wrapper scripts and
18848 # restored at relink time.
18849 variables_saved_for_relink="$variables_saved_for_relink"
18850
18851 # Whether libtool must link a program against all its dependency libraries.
18852 link_all_deplibs=$link_all_deplibs_RC
18853
18854 # Compile-time system search path for libraries
18855 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18856
18857 # Run-time system search path for libraries
18858 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18859
18860 # Fix the shell variable \$srcfile for the compiler.
18861 fix_srcfile_path="$fix_srcfile_path_RC"
18862
18863 # Set to yes if exported symbols are required.
18864 always_export_symbols=$always_export_symbols_RC
18865
18866 # The commands to list exported symbols.
18867 export_symbols_cmds=$lt_export_symbols_cmds_RC
18868
18869 # The commands to extract the exported symbol list from a shared archive.
18870 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18871
18872 # Symbols that should not be listed in the preloaded symbols.
18873 exclude_expsyms=$lt_exclude_expsyms_RC
18874
18875 # Symbols that must always be exported.
18876 include_expsyms=$lt_include_expsyms_RC
18877
18878 # ### END LIBTOOL TAG CONFIG: $tagname
18879
18880 __EOF__
18881
18882
18883 else
18884   # If there is no Makefile yet, we rely on a make rule to execute
18885   # `config.status --recheck' to rerun these tests and create the
18886   # libtool script then.
18887   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18888   if test -f "$ltmain_in"; then
18889     test -f Makefile && make "$ltmain"
18890   fi
18891 fi
18892
18893
18894 ac_ext=c
18895 ac_cpp='$CPP $CPPFLAGS'
18896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18899
18900 CC="$lt_save_CC"
18901
18902         ;;
18903
18904       *)
18905         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18906 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18907    { (exit 1); exit 1; }; }
18908         ;;
18909       esac
18910
18911       # Append the new tag name to the list of available tags.
18912       if test -n "$tagname" ; then
18913       available_tags="$available_tags $tagname"
18914     fi
18915     fi
18916   done
18917   IFS="$lt_save_ifs"
18918
18919   # Now substitute the updated list of available tags.
18920   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18921     mv "${ofile}T" "$ofile"
18922     chmod +x "$ofile"
18923   else
18924     rm -f "${ofile}T"
18925     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18926 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18927    { (exit 1); exit 1; }; }
18928   fi
18929 fi
18930
18931
18932
18933 # This can be used to rebuild libtool when needed
18934 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18935
18936 # Always use our own libtool.
18937 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18938
18939 # Prevent multiple expansion
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960 # Extract the first word of "tar", so it can be a program name with args.
18961 set dummy tar; ac_word=$2
18962 echo "$as_me:$LINENO: checking for $ac_word" >&5
18963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18964 if test "${ac_cv_path_TAR+set}" = set; then
18965   echo $ECHO_N "(cached) $ECHO_C" >&6
18966 else
18967   case $TAR in
18968   [\\/]* | ?:[\\/]*)
18969   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
18970   ;;
18971   *)
18972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18973 for as_dir in $PATH
18974 do
18975   IFS=$as_save_IFS
18976   test -z "$as_dir" && as_dir=.
18977   for ac_exec_ext in '' $ac_executable_extensions; do
18978   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18979     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
18980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18981     break 2
18982   fi
18983 done
18984 done
18985
18986   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
18987   ;;
18988 esac
18989 fi
18990 TAR=$ac_cv_path_TAR
18991
18992 if test -n "$TAR"; then
18993   echo "$as_me:$LINENO: result: $TAR" >&5
18994 echo "${ECHO_T}$TAR" >&6
18995 else
18996   echo "$as_me:$LINENO: result: no" >&5
18997 echo "${ECHO_T}no" >&6
18998 fi
18999
19000
19001 # Extract the first word of "dot", so it can be a program name with args.
19002 set dummy dot; ac_word=$2
19003 echo "$as_me:$LINENO: checking for $ac_word" >&5
19004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19005 if test "${ac_cv_path_DOT+set}" = set; then
19006   echo $ECHO_N "(cached) $ECHO_C" >&6
19007 else
19008   case $DOT in
19009   [\\/]* | ?:[\\/]*)
19010   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
19011   ;;
19012   *)
19013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19014 for as_dir in $PATH
19015 do
19016   IFS=$as_save_IFS
19017   test -z "$as_dir" && as_dir=.
19018   for ac_exec_ext in '' $ac_executable_extensions; do
19019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19020     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
19021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19022     break 2
19023   fi
19024 done
19025 done
19026
19027   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
19028   ;;
19029 esac
19030 fi
19031 DOT=$ac_cv_path_DOT
19032
19033 if test -n "$DOT"; then
19034   echo "$as_me:$LINENO: result: $DOT" >&5
19035 echo "${ECHO_T}$DOT" >&6
19036 else
19037   echo "$as_me:$LINENO: result: no" >&5
19038 echo "${ECHO_T}no" >&6
19039 fi
19040
19041 # Extract the first word of "etags", so it can be a program name with args.
19042 set dummy etags; ac_word=$2
19043 echo "$as_me:$LINENO: checking for $ac_word" >&5
19044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19045 if test "${ac_cv_path_ETAGS+set}" = set; then
19046   echo $ECHO_N "(cached) $ECHO_C" >&6
19047 else
19048   case $ETAGS in
19049   [\\/]* | ?:[\\/]*)
19050   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
19051   ;;
19052   *)
19053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19054 for as_dir in $PATH
19055 do
19056   IFS=$as_save_IFS
19057   test -z "$as_dir" && as_dir=.
19058   for ac_exec_ext in '' $ac_executable_extensions; do
19059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19060     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
19061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19062     break 2
19063   fi
19064 done
19065 done
19066
19067   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
19068   ;;
19069 esac
19070 fi
19071 ETAGS=$ac_cv_path_ETAGS
19072
19073 if test -n "$ETAGS"; then
19074   echo "$as_me:$LINENO: result: $ETAGS" >&5
19075 echo "${ECHO_T}$ETAGS" >&6
19076 else
19077   echo "$as_me:$LINENO: result: no" >&5
19078 echo "${ECHO_T}no" >&6
19079 fi
19080
19081 etags_version=`$ETAGS --version 2>&1`
19082 case "$etags_version" in
19083         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
19084         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
19085         *) ETAGSFLAGS="" ;;
19086 esac
19087 ETAGSFLAGS=$ETAGSFLAGS
19088
19089 # Extract the first word of "python", so it can be a program name with args.
19090 set dummy python; ac_word=$2
19091 echo "$as_me:$LINENO: checking for $ac_word" >&5
19092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19093 if test "${ac_cv_path_PYTHON+set}" = set; then
19094   echo $ECHO_N "(cached) $ECHO_C" >&6
19095 else
19096   case $PYTHON in
19097   [\\/]* | ?:[\\/]*)
19098   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19099   ;;
19100   *)
19101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19102 for as_dir in $PATH
19103 do
19104   IFS=$as_save_IFS
19105   test -z "$as_dir" && as_dir=.
19106   for ac_exec_ext in '' $ac_executable_extensions; do
19107   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19108     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19110     break 2
19111   fi
19112 done
19113 done
19114
19115   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
19116   ;;
19117 esac
19118 fi
19119 PYTHON=$ac_cv_path_PYTHON
19120
19121 if test -n "$PYTHON"; then
19122   echo "$as_me:$LINENO: result: $PYTHON" >&5
19123 echo "${ECHO_T}$PYTHON" >&6
19124 else
19125   echo "$as_me:$LINENO: result: no" >&5
19126 echo "${ECHO_T}no" >&6
19127 fi
19128
19129 if test "$PYTHON" = "false" ; then
19130         { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
19131 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
19132 fi
19133 # Extract the first word of "qmtest", so it can be a program name with args.
19134 set dummy qmtest; ac_word=$2
19135 echo "$as_me:$LINENO: checking for $ac_word" >&5
19136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19137 if test "${ac_cv_path_QMTEST+set}" = set; then
19138   echo $ECHO_N "(cached) $ECHO_C" >&6
19139 else
19140   case $QMTEST in
19141   [\\/]* | ?:[\\/]*)
19142   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19143   ;;
19144   *)
19145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19146 for as_dir in $PATH
19147 do
19148   IFS=$as_save_IFS
19149   test -z "$as_dir" && as_dir=.
19150   for ac_exec_ext in '' $ac_executable_extensions; do
19151   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19152     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19154     break 2
19155   fi
19156 done
19157 done
19158
19159   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
19160   ;;
19161 esac
19162 fi
19163 QMTEST=$ac_cv_path_QMTEST
19164
19165 if test -n "$QMTEST"; then
19166   echo "$as_me:$LINENO: result: $QMTEST" >&5
19167 echo "${ECHO_T}$QMTEST" >&6
19168 else
19169   echo "$as_me:$LINENO: result: no" >&5
19170 echo "${ECHO_T}no" >&6
19171 fi
19172
19173 if test "$QMTEST" = "false" ; then
19174         { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
19175 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
19176 fi
19177 # Extract the first word of "runtest", so it can be a program name with args.
19178 set dummy runtest; ac_word=$2
19179 echo "$as_me:$LINENO: checking for $ac_word" >&5
19180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19181 if test "${ac_cv_path_RUNTEST+set}" = set; then
19182   echo $ECHO_N "(cached) $ECHO_C" >&6
19183 else
19184   case $RUNTEST in
19185   [\\/]* | ?:[\\/]*)
19186   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
19187   ;;
19188   *)
19189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19190 for as_dir in $PATH
19191 do
19192   IFS=$as_save_IFS
19193   test -z "$as_dir" && as_dir=.
19194   for ac_exec_ext in '' $ac_executable_extensions; do
19195   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19196     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
19197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19198     break 2
19199   fi
19200 done
19201 done
19202
19203   test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
19204   ;;
19205 esac
19206 fi
19207 RUNTEST=$ac_cv_path_RUNTEST
19208
19209 if test -n "$RUNTEST"; then
19210   echo "$as_me:$LINENO: result: $RUNTEST" >&5
19211 echo "${ECHO_T}$RUNTEST" >&6
19212 else
19213   echo "$as_me:$LINENO: result: no" >&5
19214 echo "${ECHO_T}no" >&6
19215 fi
19216
19217 if test "$RUNTEST" = "false" ; then
19218   { echo "$as_me:$LINENO: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&5
19219 echo "$as_me: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&2;}
19220 fi
19221
19222 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
19223 pymajor=`echo $pyversion | cut -d. -f1`
19224 pyminor=`echo $pyversion | cut -d. -f2`
19225
19226 if test "$pymajor" -ge "2"
19227 then
19228         if test "$pymajor" -eq "2"
19229         then
19230                 if test "$pyminor" -lt "2"
19231                 then
19232                         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19233 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19234                 fi
19235         fi
19236 else
19237         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19238 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
19239 fi
19240
19241
19242 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19243 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19244 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19245   echo $ECHO_N "(cached) $ECHO_C" >&6
19246 else
19247   ac_check_lib_save_LIBS=$LIBS
19248 LIBS="-lelf  $LIBS"
19249 cat >conftest.$ac_ext <<_ACEOF
19250 /* confdefs.h.  */
19251 _ACEOF
19252 cat confdefs.h >>conftest.$ac_ext
19253 cat >>conftest.$ac_ext <<_ACEOF
19254 /* end confdefs.h.  */
19255
19256 /* Override any gcc2 internal prototype to avoid an error.  */
19257 #ifdef __cplusplus
19258 extern "C"
19259 #endif
19260 /* We use char because int might match the return type of a gcc2
19261    builtin and then its argument prototype would still apply.  */
19262 char elf_begin ();
19263 int
19264 main ()
19265 {
19266 elf_begin ();
19267   ;
19268   return 0;
19269 }
19270 _ACEOF
19271 rm -f conftest.$ac_objext conftest$ac_exeext
19272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19273   (eval $ac_link) 2>conftest.er1
19274   ac_status=$?
19275   grep -v '^ *+' conftest.er1 >conftest.err
19276   rm -f conftest.er1
19277   cat conftest.err >&5
19278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279   (exit $ac_status); } &&
19280          { ac_try='test -z "$ac_c_werror_flag"
19281                          || test ! -s conftest.err'
19282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19283   (eval $ac_try) 2>&5
19284   ac_status=$?
19285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286   (exit $ac_status); }; } &&
19287          { ac_try='test -s conftest$ac_exeext'
19288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19289   (eval $ac_try) 2>&5
19290   ac_status=$?
19291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292   (exit $ac_status); }; }; then
19293   ac_cv_lib_elf_elf_begin=yes
19294 else
19295   echo "$as_me: failed program was:" >&5
19296 sed 's/^/| /' conftest.$ac_ext >&5
19297
19298 ac_cv_lib_elf_elf_begin=no
19299 fi
19300 rm -f conftest.err conftest.$ac_objext \
19301       conftest$ac_exeext conftest.$ac_ext
19302 LIBS=$ac_check_lib_save_LIBS
19303 fi
19304 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19305 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19306 if test $ac_cv_lib_elf_elf_begin = yes; then
19307   cat >>confdefs.h <<_ACEOF
19308 #define HAVE_LIBELF 1
19309 _ACEOF
19310
19311   LIBS="-lelf $LIBS"
19312
19313 fi
19314
19315
19316 echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5
19317 echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6
19318 if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then
19319   echo $ECHO_N "(cached) $ECHO_C" >&6
19320 else
19321   ac_check_lib_save_LIBS=$LIBS
19322 LIBS="-lbz2  $LIBS"
19323 cat >conftest.$ac_ext <<_ACEOF
19324 /* confdefs.h.  */
19325 _ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h.  */
19329
19330 /* Override any gcc2 internal prototype to avoid an error.  */
19331 #ifdef __cplusplus
19332 extern "C"
19333 #endif
19334 /* We use char because int might match the return type of a gcc2
19335    builtin and then its argument prototype would still apply.  */
19336 char BZ2_bzCompressInit ();
19337 int
19338 main ()
19339 {
19340 BZ2_bzCompressInit ();
19341   ;
19342   return 0;
19343 }
19344 _ACEOF
19345 rm -f conftest.$ac_objext conftest$ac_exeext
19346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19347   (eval $ac_link) 2>conftest.er1
19348   ac_status=$?
19349   grep -v '^ *+' conftest.er1 >conftest.err
19350   rm -f conftest.er1
19351   cat conftest.err >&5
19352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353   (exit $ac_status); } &&
19354          { ac_try='test -z "$ac_c_werror_flag"
19355                          || test ! -s conftest.err'
19356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357   (eval $ac_try) 2>&5
19358   ac_status=$?
19359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360   (exit $ac_status); }; } &&
19361          { ac_try='test -s conftest$ac_exeext'
19362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363   (eval $ac_try) 2>&5
19364   ac_status=$?
19365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366   (exit $ac_status); }; }; then
19367   ac_cv_lib_bz2_BZ2_bzCompressInit=yes
19368 else
19369   echo "$as_me: failed program was:" >&5
19370 sed 's/^/| /' conftest.$ac_ext >&5
19371
19372 ac_cv_lib_bz2_BZ2_bzCompressInit=no
19373 fi
19374 rm -f conftest.err conftest.$ac_objext \
19375       conftest$ac_exeext conftest.$ac_ext
19376 LIBS=$ac_check_lib_save_LIBS
19377 fi
19378 echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
19379 echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6
19380 if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then
19381   bzip2_found=1
19382 else
19383   bzip2_found=0
19384 fi
19385
19386
19387 for ac_header in bzlib.h
19388 do
19389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19391   echo "$as_me:$LINENO: checking for $ac_header" >&5
19392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19394   echo $ECHO_N "(cached) $ECHO_C" >&6
19395 fi
19396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19398 else
19399   # Is the header compilable?
19400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19402 cat >conftest.$ac_ext <<_ACEOF
19403 /* confdefs.h.  */
19404 _ACEOF
19405 cat confdefs.h >>conftest.$ac_ext
19406 cat >>conftest.$ac_ext <<_ACEOF
19407 /* end confdefs.h.  */
19408 $ac_includes_default
19409 #include <$ac_header>
19410 _ACEOF
19411 rm -f conftest.$ac_objext
19412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19413   (eval $ac_compile) 2>conftest.er1
19414   ac_status=$?
19415   grep -v '^ *+' conftest.er1 >conftest.err
19416   rm -f conftest.er1
19417   cat conftest.err >&5
19418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419   (exit $ac_status); } &&
19420          { ac_try='test -z "$ac_c_werror_flag"
19421                          || test ! -s conftest.err'
19422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19423   (eval $ac_try) 2>&5
19424   ac_status=$?
19425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426   (exit $ac_status); }; } &&
19427          { ac_try='test -s conftest.$ac_objext'
19428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19429   (eval $ac_try) 2>&5
19430   ac_status=$?
19431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432   (exit $ac_status); }; }; then
19433   ac_header_compiler=yes
19434 else
19435   echo "$as_me: failed program was:" >&5
19436 sed 's/^/| /' conftest.$ac_ext >&5
19437
19438 ac_header_compiler=no
19439 fi
19440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19442 echo "${ECHO_T}$ac_header_compiler" >&6
19443
19444 # Is the header present?
19445 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19447 cat >conftest.$ac_ext <<_ACEOF
19448 /* confdefs.h.  */
19449 _ACEOF
19450 cat confdefs.h >>conftest.$ac_ext
19451 cat >>conftest.$ac_ext <<_ACEOF
19452 /* end confdefs.h.  */
19453 #include <$ac_header>
19454 _ACEOF
19455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19456   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19457   ac_status=$?
19458   grep -v '^ *+' conftest.er1 >conftest.err
19459   rm -f conftest.er1
19460   cat conftest.err >&5
19461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462   (exit $ac_status); } >/dev/null; then
19463   if test -s conftest.err; then
19464     ac_cpp_err=$ac_c_preproc_warn_flag
19465     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19466   else
19467     ac_cpp_err=
19468   fi
19469 else
19470   ac_cpp_err=yes
19471 fi
19472 if test -z "$ac_cpp_err"; then
19473   ac_header_preproc=yes
19474 else
19475   echo "$as_me: failed program was:" >&5
19476 sed 's/^/| /' conftest.$ac_ext >&5
19477
19478   ac_header_preproc=no
19479 fi
19480 rm -f conftest.err conftest.$ac_ext
19481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19482 echo "${ECHO_T}$ac_header_preproc" >&6
19483
19484 # So?  What about this header?
19485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19486   yes:no: )
19487     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19491     ac_header_preproc=yes
19492     ;;
19493   no:yes:* )
19494     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19496     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19497 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19498     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19500     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19501 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19504     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19506     (
19507       cat <<\_ASBOX
19508 ## ----------------------------------- ##
19509 ## Report this to llvmbugs@cs.uiuc.edu ##
19510 ## ----------------------------------- ##
19511 _ASBOX
19512     ) |
19513       sed "s/^/$as_me: WARNING:     /" >&2
19514     ;;
19515 esac
19516 echo "$as_me:$LINENO: checking for $ac_header" >&5
19517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19519   echo $ECHO_N "(cached) $ECHO_C" >&6
19520 else
19521   eval "$as_ac_Header=\$ac_header_preproc"
19522 fi
19523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19525
19526 fi
19527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19528   cat >>confdefs.h <<_ACEOF
19529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19530 _ACEOF
19531  bzlib_h_found=1
19532 else
19533   bzlib_h_found=0
19534 fi
19535
19536 done
19537
19538 echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
19539 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
19540 if test "${ac_cv_lib_z_gzopen+set}" = set; then
19541   echo $ECHO_N "(cached) $ECHO_C" >&6
19542 else
19543   ac_check_lib_save_LIBS=$LIBS
19544 LIBS="-lz  $LIBS"
19545 cat >conftest.$ac_ext <<_ACEOF
19546 /* confdefs.h.  */
19547 _ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h.  */
19551
19552 /* Override any gcc2 internal prototype to avoid an error.  */
19553 #ifdef __cplusplus
19554 extern "C"
19555 #endif
19556 /* We use char because int might match the return type of a gcc2
19557    builtin and then its argument prototype would still apply.  */
19558 char gzopen ();
19559 int
19560 main ()
19561 {
19562 gzopen ();
19563   ;
19564   return 0;
19565 }
19566 _ACEOF
19567 rm -f conftest.$ac_objext conftest$ac_exeext
19568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19569   (eval $ac_link) 2>conftest.er1
19570   ac_status=$?
19571   grep -v '^ *+' conftest.er1 >conftest.err
19572   rm -f conftest.er1
19573   cat conftest.err >&5
19574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575   (exit $ac_status); } &&
19576          { ac_try='test -z "$ac_c_werror_flag"
19577                          || test ! -s conftest.err'
19578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579   (eval $ac_try) 2>&5
19580   ac_status=$?
19581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582   (exit $ac_status); }; } &&
19583          { ac_try='test -s conftest$ac_exeext'
19584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585   (eval $ac_try) 2>&5
19586   ac_status=$?
19587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588   (exit $ac_status); }; }; then
19589   ac_cv_lib_z_gzopen=yes
19590 else
19591   echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19593
19594 ac_cv_lib_z_gzopen=no
19595 fi
19596 rm -f conftest.err conftest.$ac_objext \
19597       conftest$ac_exeext conftest.$ac_ext
19598 LIBS=$ac_check_lib_save_LIBS
19599 fi
19600 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
19601 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
19602 if test $ac_cv_lib_z_gzopen = yes; then
19603   zlib_found=1
19604 else
19605   zlib_found=0
19606 fi
19607
19608
19609 for ac_header in zlib.h
19610 do
19611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19613   echo "$as_me:$LINENO: checking for $ac_header" >&5
19614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19616   echo $ECHO_N "(cached) $ECHO_C" >&6
19617 fi
19618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19620 else
19621   # Is the header compilable?
19622 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19624 cat >conftest.$ac_ext <<_ACEOF
19625 /* confdefs.h.  */
19626 _ACEOF
19627 cat confdefs.h >>conftest.$ac_ext
19628 cat >>conftest.$ac_ext <<_ACEOF
19629 /* end confdefs.h.  */
19630 $ac_includes_default
19631 #include <$ac_header>
19632 _ACEOF
19633 rm -f conftest.$ac_objext
19634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19635   (eval $ac_compile) 2>conftest.er1
19636   ac_status=$?
19637   grep -v '^ *+' conftest.er1 >conftest.err
19638   rm -f conftest.er1
19639   cat conftest.err >&5
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); } &&
19642          { ac_try='test -z "$ac_c_werror_flag"
19643                          || test ! -s conftest.err'
19644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19645   (eval $ac_try) 2>&5
19646   ac_status=$?
19647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648   (exit $ac_status); }; } &&
19649          { ac_try='test -s conftest.$ac_objext'
19650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651   (eval $ac_try) 2>&5
19652   ac_status=$?
19653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654   (exit $ac_status); }; }; then
19655   ac_header_compiler=yes
19656 else
19657   echo "$as_me: failed program was:" >&5
19658 sed 's/^/| /' conftest.$ac_ext >&5
19659
19660 ac_header_compiler=no
19661 fi
19662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19663 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19664 echo "${ECHO_T}$ac_header_compiler" >&6
19665
19666 # Is the header present?
19667 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19669 cat >conftest.$ac_ext <<_ACEOF
19670 /* confdefs.h.  */
19671 _ACEOF
19672 cat confdefs.h >>conftest.$ac_ext
19673 cat >>conftest.$ac_ext <<_ACEOF
19674 /* end confdefs.h.  */
19675 #include <$ac_header>
19676 _ACEOF
19677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19678   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19679   ac_status=$?
19680   grep -v '^ *+' conftest.er1 >conftest.err
19681   rm -f conftest.er1
19682   cat conftest.err >&5
19683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684   (exit $ac_status); } >/dev/null; then
19685   if test -s conftest.err; then
19686     ac_cpp_err=$ac_c_preproc_warn_flag
19687     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19688   else
19689     ac_cpp_err=
19690   fi
19691 else
19692   ac_cpp_err=yes
19693 fi
19694 if test -z "$ac_cpp_err"; then
19695   ac_header_preproc=yes
19696 else
19697   echo "$as_me: failed program was:" >&5
19698 sed 's/^/| /' conftest.$ac_ext >&5
19699
19700   ac_header_preproc=no
19701 fi
19702 rm -f conftest.err conftest.$ac_ext
19703 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19704 echo "${ECHO_T}$ac_header_preproc" >&6
19705
19706 # So?  What about this header?
19707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19708   yes:no: )
19709     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19711     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19713     ac_header_preproc=yes
19714     ;;
19715   no:yes:* )
19716     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19718     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19719 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19720     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19722     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19723 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19724     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19726     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19728     (
19729       cat <<\_ASBOX
19730 ## ----------------------------------- ##
19731 ## Report this to llvmbugs@cs.uiuc.edu ##
19732 ## ----------------------------------- ##
19733 _ASBOX
19734     ) |
19735       sed "s/^/$as_me: WARNING:     /" >&2
19736     ;;
19737 esac
19738 echo "$as_me:$LINENO: checking for $ac_header" >&5
19739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19741   echo $ECHO_N "(cached) $ECHO_C" >&6
19742 else
19743   eval "$as_ac_Header=\$ac_header_preproc"
19744 fi
19745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19747
19748 fi
19749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19750   cat >>confdefs.h <<_ACEOF
19751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19752 _ACEOF
19753  zlib_h_found=1
19754 else
19755   zlib_h_found=0
19756 fi
19757
19758 done
19759
19760 if test $zlib_found -eq 1 -a $zlib_h_found -eq 1; then
19761
19762 cat >>confdefs.h <<\_ACEOF
19763 #define HAVE_ZLIB 1
19764 _ACEOF
19765
19766   HAVE_ZLIB=1
19767
19768 else
19769   HAVE_ZLIB=0
19770
19771 fi
19772 if test $bzip2_found -eq 1 -a $bzlib_h_found -eq 1 ; then
19773
19774 cat >>confdefs.h <<\_ACEOF
19775 #define HAVE_BZIP2 1
19776 _ACEOF
19777
19778   HAVE_BZIP2=1
19779
19780 else
19781   HAVE_BZIP2=0
19782
19783 fi
19784 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19785 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19786 if test "${ac_cv_search_dlopen+set}" = set; then
19787   echo $ECHO_N "(cached) $ECHO_C" >&6
19788 else
19789   ac_func_search_save_LIBS=$LIBS
19790 ac_cv_search_dlopen=no
19791 cat >conftest.$ac_ext <<_ACEOF
19792 /* confdefs.h.  */
19793 _ACEOF
19794 cat confdefs.h >>conftest.$ac_ext
19795 cat >>conftest.$ac_ext <<_ACEOF
19796 /* end confdefs.h.  */
19797
19798 /* Override any gcc2 internal prototype to avoid an error.  */
19799 #ifdef __cplusplus
19800 extern "C"
19801 #endif
19802 /* We use char because int might match the return type of a gcc2
19803    builtin and then its argument prototype would still apply.  */
19804 char dlopen ();
19805 int
19806 main ()
19807 {
19808 dlopen ();
19809   ;
19810   return 0;
19811 }
19812 _ACEOF
19813 rm -f conftest.$ac_objext conftest$ac_exeext
19814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19815   (eval $ac_link) 2>conftest.er1
19816   ac_status=$?
19817   grep -v '^ *+' conftest.er1 >conftest.err
19818   rm -f conftest.er1
19819   cat conftest.err >&5
19820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821   (exit $ac_status); } &&
19822          { ac_try='test -z "$ac_c_werror_flag"
19823                          || test ! -s conftest.err'
19824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19825   (eval $ac_try) 2>&5
19826   ac_status=$?
19827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828   (exit $ac_status); }; } &&
19829          { ac_try='test -s conftest$ac_exeext'
19830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19831   (eval $ac_try) 2>&5
19832   ac_status=$?
19833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834   (exit $ac_status); }; }; then
19835   ac_cv_search_dlopen="none required"
19836 else
19837   echo "$as_me: failed program was:" >&5
19838 sed 's/^/| /' conftest.$ac_ext >&5
19839
19840 fi
19841 rm -f conftest.err conftest.$ac_objext \
19842       conftest$ac_exeext conftest.$ac_ext
19843 if test "$ac_cv_search_dlopen" = no; then
19844   for ac_lib in dl; do
19845     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19846     cat >conftest.$ac_ext <<_ACEOF
19847 /* confdefs.h.  */
19848 _ACEOF
19849 cat confdefs.h >>conftest.$ac_ext
19850 cat >>conftest.$ac_ext <<_ACEOF
19851 /* end confdefs.h.  */
19852
19853 /* Override any gcc2 internal prototype to avoid an error.  */
19854 #ifdef __cplusplus
19855 extern "C"
19856 #endif
19857 /* We use char because int might match the return type of a gcc2
19858    builtin and then its argument prototype would still apply.  */
19859 char dlopen ();
19860 int
19861 main ()
19862 {
19863 dlopen ();
19864   ;
19865   return 0;
19866 }
19867 _ACEOF
19868 rm -f conftest.$ac_objext conftest$ac_exeext
19869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19870   (eval $ac_link) 2>conftest.er1
19871   ac_status=$?
19872   grep -v '^ *+' conftest.er1 >conftest.err
19873   rm -f conftest.er1
19874   cat conftest.err >&5
19875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876   (exit $ac_status); } &&
19877          { ac_try='test -z "$ac_c_werror_flag"
19878                          || test ! -s conftest.err'
19879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880   (eval $ac_try) 2>&5
19881   ac_status=$?
19882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883   (exit $ac_status); }; } &&
19884          { ac_try='test -s conftest$ac_exeext'
19885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19886   (eval $ac_try) 2>&5
19887   ac_status=$?
19888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889   (exit $ac_status); }; }; then
19890   ac_cv_search_dlopen="-l$ac_lib"
19891 break
19892 else
19893   echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19895
19896 fi
19897 rm -f conftest.err conftest.$ac_objext \
19898       conftest$ac_exeext conftest.$ac_ext
19899   done
19900 fi
19901 LIBS=$ac_func_search_save_LIBS
19902 fi
19903 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19904 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19905 if test "$ac_cv_search_dlopen" != no; then
19906   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19907
19908 cat >>confdefs.h <<\_ACEOF
19909 #define HAVE_DLOPEN 1
19910 _ACEOF
19911
19912 else
19913   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19914 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19915 fi
19916
19917
19918 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19919 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19920 if test "${ac_cv_search_mallinfo+set}" = set; then
19921   echo $ECHO_N "(cached) $ECHO_C" >&6
19922 else
19923   ac_func_search_save_LIBS=$LIBS
19924 ac_cv_search_mallinfo=no
19925 cat >conftest.$ac_ext <<_ACEOF
19926 /* confdefs.h.  */
19927 _ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h.  */
19931
19932 /* Override any gcc2 internal prototype to avoid an error.  */
19933 #ifdef __cplusplus
19934 extern "C"
19935 #endif
19936 /* We use char because int might match the return type of a gcc2
19937    builtin and then its argument prototype would still apply.  */
19938 char mallinfo ();
19939 int
19940 main ()
19941 {
19942 mallinfo ();
19943   ;
19944   return 0;
19945 }
19946 _ACEOF
19947 rm -f conftest.$ac_objext conftest$ac_exeext
19948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19949   (eval $ac_link) 2>conftest.er1
19950   ac_status=$?
19951   grep -v '^ *+' conftest.er1 >conftest.err
19952   rm -f conftest.er1
19953   cat conftest.err >&5
19954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955   (exit $ac_status); } &&
19956          { ac_try='test -z "$ac_c_werror_flag"
19957                          || test ! -s conftest.err'
19958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959   (eval $ac_try) 2>&5
19960   ac_status=$?
19961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962   (exit $ac_status); }; } &&
19963          { ac_try='test -s conftest$ac_exeext'
19964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965   (eval $ac_try) 2>&5
19966   ac_status=$?
19967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968   (exit $ac_status); }; }; then
19969   ac_cv_search_mallinfo="none required"
19970 else
19971   echo "$as_me: failed program was:" >&5
19972 sed 's/^/| /' conftest.$ac_ext >&5
19973
19974 fi
19975 rm -f conftest.err conftest.$ac_objext \
19976       conftest$ac_exeext conftest.$ac_ext
19977 if test "$ac_cv_search_mallinfo" = no; then
19978   for ac_lib in malloc; do
19979     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19980     cat >conftest.$ac_ext <<_ACEOF
19981 /* confdefs.h.  */
19982 _ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h.  */
19986
19987 /* Override any gcc2 internal prototype to avoid an error.  */
19988 #ifdef __cplusplus
19989 extern "C"
19990 #endif
19991 /* We use char because int might match the return type of a gcc2
19992    builtin and then its argument prototype would still apply.  */
19993 char mallinfo ();
19994 int
19995 main ()
19996 {
19997 mallinfo ();
19998   ;
19999   return 0;
20000 }
20001 _ACEOF
20002 rm -f conftest.$ac_objext conftest$ac_exeext
20003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20004   (eval $ac_link) 2>conftest.er1
20005   ac_status=$?
20006   grep -v '^ *+' conftest.er1 >conftest.err
20007   rm -f conftest.er1
20008   cat conftest.err >&5
20009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010   (exit $ac_status); } &&
20011          { ac_try='test -z "$ac_c_werror_flag"
20012                          || test ! -s conftest.err'
20013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20014   (eval $ac_try) 2>&5
20015   ac_status=$?
20016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017   (exit $ac_status); }; } &&
20018          { ac_try='test -s conftest$ac_exeext'
20019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020   (eval $ac_try) 2>&5
20021   ac_status=$?
20022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023   (exit $ac_status); }; }; then
20024   ac_cv_search_mallinfo="-l$ac_lib"
20025 break
20026 else
20027   echo "$as_me: failed program was:" >&5
20028 sed 's/^/| /' conftest.$ac_ext >&5
20029
20030 fi
20031 rm -f conftest.err conftest.$ac_objext \
20032       conftest$ac_exeext conftest.$ac_ext
20033   done
20034 fi
20035 LIBS=$ac_func_search_save_LIBS
20036 fi
20037 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
20038 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
20039 if test "$ac_cv_search_mallinfo" != no; then
20040   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
20041
20042 cat >>confdefs.h <<\_ACEOF
20043 #define HAVE_MALLINFO 1
20044 _ACEOF
20045
20046 fi
20047
20048
20049 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
20050 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
20051 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
20052   echo $ECHO_N "(cached) $ECHO_C" >&6
20053 else
20054   ac_func_search_save_LIBS=$LIBS
20055 ac_cv_search_pthread_mutex_lock=no
20056 cat >conftest.$ac_ext <<_ACEOF
20057 /* confdefs.h.  */
20058 _ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h.  */
20062
20063 /* Override any gcc2 internal prototype to avoid an error.  */
20064 #ifdef __cplusplus
20065 extern "C"
20066 #endif
20067 /* We use char because int might match the return type of a gcc2
20068    builtin and then its argument prototype would still apply.  */
20069 char pthread_mutex_lock ();
20070 int
20071 main ()
20072 {
20073 pthread_mutex_lock ();
20074   ;
20075   return 0;
20076 }
20077 _ACEOF
20078 rm -f conftest.$ac_objext conftest$ac_exeext
20079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20080   (eval $ac_link) 2>conftest.er1
20081   ac_status=$?
20082   grep -v '^ *+' conftest.er1 >conftest.err
20083   rm -f conftest.er1
20084   cat conftest.err >&5
20085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086   (exit $ac_status); } &&
20087          { ac_try='test -z "$ac_c_werror_flag"
20088                          || test ! -s conftest.err'
20089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090   (eval $ac_try) 2>&5
20091   ac_status=$?
20092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093   (exit $ac_status); }; } &&
20094          { ac_try='test -s conftest$ac_exeext'
20095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096   (eval $ac_try) 2>&5
20097   ac_status=$?
20098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099   (exit $ac_status); }; }; then
20100   ac_cv_search_pthread_mutex_lock="none required"
20101 else
20102   echo "$as_me: failed program was:" >&5
20103 sed 's/^/| /' conftest.$ac_ext >&5
20104
20105 fi
20106 rm -f conftest.err conftest.$ac_objext \
20107       conftest$ac_exeext conftest.$ac_ext
20108 if test "$ac_cv_search_pthread_mutex_lock" = no; then
20109   for ac_lib in pthread; do
20110     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20111     cat >conftest.$ac_ext <<_ACEOF
20112 /* confdefs.h.  */
20113 _ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h.  */
20117
20118 /* Override any gcc2 internal prototype to avoid an error.  */
20119 #ifdef __cplusplus
20120 extern "C"
20121 #endif
20122 /* We use char because int might match the return type of a gcc2
20123    builtin and then its argument prototype would still apply.  */
20124 char pthread_mutex_lock ();
20125 int
20126 main ()
20127 {
20128 pthread_mutex_lock ();
20129   ;
20130   return 0;
20131 }
20132 _ACEOF
20133 rm -f conftest.$ac_objext conftest$ac_exeext
20134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20135   (eval $ac_link) 2>conftest.er1
20136   ac_status=$?
20137   grep -v '^ *+' conftest.er1 >conftest.err
20138   rm -f conftest.er1
20139   cat conftest.err >&5
20140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141   (exit $ac_status); } &&
20142          { ac_try='test -z "$ac_c_werror_flag"
20143                          || test ! -s conftest.err'
20144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20145   (eval $ac_try) 2>&5
20146   ac_status=$?
20147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148   (exit $ac_status); }; } &&
20149          { ac_try='test -s conftest$ac_exeext'
20150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151   (eval $ac_try) 2>&5
20152   ac_status=$?
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); }; }; then
20155   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
20156 break
20157 else
20158   echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20160
20161 fi
20162 rm -f conftest.err conftest.$ac_objext \
20163       conftest$ac_exeext conftest.$ac_ext
20164   done
20165 fi
20166 LIBS=$ac_func_search_save_LIBS
20167 fi
20168 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
20169 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
20170 if test "$ac_cv_search_pthread_mutex_lock" != no; then
20171   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
20172
20173 cat >>confdefs.h <<\_ACEOF
20174 #define HAVE_PTHREAD_MUTEX_LOCK 1
20175 _ACEOF
20176
20177 fi
20178
20179
20180 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20181 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20182 if test "${ac_cv_header_stdc+set}" = set; then
20183   echo $ECHO_N "(cached) $ECHO_C" >&6
20184 else
20185   cat >conftest.$ac_ext <<_ACEOF
20186 /* confdefs.h.  */
20187 _ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h.  */
20191 #include <stdlib.h>
20192 #include <stdarg.h>
20193 #include <string.h>
20194 #include <float.h>
20195
20196 int
20197 main ()
20198 {
20199
20200   ;
20201   return 0;
20202 }
20203 _ACEOF
20204 rm -f conftest.$ac_objext
20205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20206   (eval $ac_compile) 2>conftest.er1
20207   ac_status=$?
20208   grep -v '^ *+' conftest.er1 >conftest.err
20209   rm -f conftest.er1
20210   cat conftest.err >&5
20211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212   (exit $ac_status); } &&
20213          { ac_try='test -z "$ac_c_werror_flag"
20214                          || test ! -s conftest.err'
20215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20216   (eval $ac_try) 2>&5
20217   ac_status=$?
20218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219   (exit $ac_status); }; } &&
20220          { ac_try='test -s conftest.$ac_objext'
20221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20222   (eval $ac_try) 2>&5
20223   ac_status=$?
20224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225   (exit $ac_status); }; }; then
20226   ac_cv_header_stdc=yes
20227 else
20228   echo "$as_me: failed program was:" >&5
20229 sed 's/^/| /' conftest.$ac_ext >&5
20230
20231 ac_cv_header_stdc=no
20232 fi
20233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20234
20235 if test $ac_cv_header_stdc = yes; then
20236   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20237   cat >conftest.$ac_ext <<_ACEOF
20238 /* confdefs.h.  */
20239 _ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h.  */
20243 #include <string.h>
20244
20245 _ACEOF
20246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20247   $EGREP "memchr" >/dev/null 2>&1; then
20248   :
20249 else
20250   ac_cv_header_stdc=no
20251 fi
20252 rm -f conftest*
20253
20254 fi
20255
20256 if test $ac_cv_header_stdc = yes; then
20257   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20258   cat >conftest.$ac_ext <<_ACEOF
20259 /* confdefs.h.  */
20260 _ACEOF
20261 cat confdefs.h >>conftest.$ac_ext
20262 cat >>conftest.$ac_ext <<_ACEOF
20263 /* end confdefs.h.  */
20264 #include <stdlib.h>
20265
20266 _ACEOF
20267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20268   $EGREP "free" >/dev/null 2>&1; then
20269   :
20270 else
20271   ac_cv_header_stdc=no
20272 fi
20273 rm -f conftest*
20274
20275 fi
20276
20277 if test $ac_cv_header_stdc = yes; then
20278   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20279   if test "$cross_compiling" = yes; then
20280   :
20281 else
20282   cat >conftest.$ac_ext <<_ACEOF
20283 /* confdefs.h.  */
20284 _ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h.  */
20288 #include <ctype.h>
20289 #if ((' ' & 0x0FF) == 0x020)
20290 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20291 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20292 #else
20293 # define ISLOWER(c) \
20294                    (('a' <= (c) && (c) <= 'i') \
20295                      || ('j' <= (c) && (c) <= 'r') \
20296                      || ('s' <= (c) && (c) <= 'z'))
20297 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20298 #endif
20299
20300 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20301 int
20302 main ()
20303 {
20304   int i;
20305   for (i = 0; i < 256; i++)
20306     if (XOR (islower (i), ISLOWER (i))
20307         || toupper (i) != TOUPPER (i))
20308       exit(2);
20309   exit (0);
20310 }
20311 _ACEOF
20312 rm -f conftest$ac_exeext
20313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20314   (eval $ac_link) 2>&5
20315   ac_status=$?
20316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20319   (eval $ac_try) 2>&5
20320   ac_status=$?
20321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322   (exit $ac_status); }; }; then
20323   :
20324 else
20325   echo "$as_me: program exited with status $ac_status" >&5
20326 echo "$as_me: failed program was:" >&5
20327 sed 's/^/| /' conftest.$ac_ext >&5
20328
20329 ( exit $ac_status )
20330 ac_cv_header_stdc=no
20331 fi
20332 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20333 fi
20334 fi
20335 fi
20336 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20337 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20338 if test $ac_cv_header_stdc = yes; then
20339
20340 cat >>confdefs.h <<\_ACEOF
20341 #define STDC_HEADERS 1
20342 _ACEOF
20343
20344 fi
20345
20346 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20347 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20348 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20349   echo $ECHO_N "(cached) $ECHO_C" >&6
20350 else
20351   cat >conftest.$ac_ext <<_ACEOF
20352 /* confdefs.h.  */
20353 _ACEOF
20354 cat confdefs.h >>conftest.$ac_ext
20355 cat >>conftest.$ac_ext <<_ACEOF
20356 /* end confdefs.h.  */
20357 #include <sys/types.h>
20358 #include <sys/wait.h>
20359 #ifndef WEXITSTATUS
20360 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20361 #endif
20362 #ifndef WIFEXITED
20363 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20364 #endif
20365
20366 int
20367 main ()
20368 {
20369   int s;
20370   wait (&s);
20371   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20372   ;
20373   return 0;
20374 }
20375 _ACEOF
20376 rm -f conftest.$ac_objext
20377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20378   (eval $ac_compile) 2>conftest.er1
20379   ac_status=$?
20380   grep -v '^ *+' conftest.er1 >conftest.err
20381   rm -f conftest.er1
20382   cat conftest.err >&5
20383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384   (exit $ac_status); } &&
20385          { ac_try='test -z "$ac_c_werror_flag"
20386                          || test ! -s conftest.err'
20387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20388   (eval $ac_try) 2>&5
20389   ac_status=$?
20390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391   (exit $ac_status); }; } &&
20392          { ac_try='test -s conftest.$ac_objext'
20393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20394   (eval $ac_try) 2>&5
20395   ac_status=$?
20396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397   (exit $ac_status); }; }; then
20398   ac_cv_header_sys_wait_h=yes
20399 else
20400   echo "$as_me: failed program was:" >&5
20401 sed 's/^/| /' conftest.$ac_ext >&5
20402
20403 ac_cv_header_sys_wait_h=no
20404 fi
20405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20406 fi
20407 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20408 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20409 if test $ac_cv_header_sys_wait_h = yes; then
20410
20411 cat >>confdefs.h <<\_ACEOF
20412 #define HAVE_SYS_WAIT_H 1
20413 _ACEOF
20414
20415 fi
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429 for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h
20430 do
20431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20433   echo "$as_me:$LINENO: checking for $ac_header" >&5
20434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20436   echo $ECHO_N "(cached) $ECHO_C" >&6
20437 fi
20438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20440 else
20441   # Is the header compilable?
20442 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20444 cat >conftest.$ac_ext <<_ACEOF
20445 /* confdefs.h.  */
20446 _ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h.  */
20450 $ac_includes_default
20451 #include <$ac_header>
20452 _ACEOF
20453 rm -f conftest.$ac_objext
20454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20455   (eval $ac_compile) 2>conftest.er1
20456   ac_status=$?
20457   grep -v '^ *+' conftest.er1 >conftest.err
20458   rm -f conftest.er1
20459   cat conftest.err >&5
20460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461   (exit $ac_status); } &&
20462          { ac_try='test -z "$ac_c_werror_flag"
20463                          || test ! -s conftest.err'
20464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20465   (eval $ac_try) 2>&5
20466   ac_status=$?
20467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468   (exit $ac_status); }; } &&
20469          { ac_try='test -s conftest.$ac_objext'
20470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20471   (eval $ac_try) 2>&5
20472   ac_status=$?
20473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474   (exit $ac_status); }; }; then
20475   ac_header_compiler=yes
20476 else
20477   echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20479
20480 ac_header_compiler=no
20481 fi
20482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20483 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20484 echo "${ECHO_T}$ac_header_compiler" >&6
20485
20486 # Is the header present?
20487 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20489 cat >conftest.$ac_ext <<_ACEOF
20490 /* confdefs.h.  */
20491 _ACEOF
20492 cat confdefs.h >>conftest.$ac_ext
20493 cat >>conftest.$ac_ext <<_ACEOF
20494 /* end confdefs.h.  */
20495 #include <$ac_header>
20496 _ACEOF
20497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20498   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20499   ac_status=$?
20500   grep -v '^ *+' conftest.er1 >conftest.err
20501   rm -f conftest.er1
20502   cat conftest.err >&5
20503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504   (exit $ac_status); } >/dev/null; then
20505   if test -s conftest.err; then
20506     ac_cpp_err=$ac_c_preproc_warn_flag
20507     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20508   else
20509     ac_cpp_err=
20510   fi
20511 else
20512   ac_cpp_err=yes
20513 fi
20514 if test -z "$ac_cpp_err"; then
20515   ac_header_preproc=yes
20516 else
20517   echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20519
20520   ac_header_preproc=no
20521 fi
20522 rm -f conftest.err conftest.$ac_ext
20523 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20524 echo "${ECHO_T}$ac_header_preproc" >&6
20525
20526 # So?  What about this header?
20527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20528   yes:no: )
20529     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20532 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20533     ac_header_preproc=yes
20534     ;;
20535   no:yes:* )
20536     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20537 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20538     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20539 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20540     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20541 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20542     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20543 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20544     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20546     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20547 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20548     (
20549       cat <<\_ASBOX
20550 ## ----------------------------------- ##
20551 ## Report this to llvmbugs@cs.uiuc.edu ##
20552 ## ----------------------------------- ##
20553 _ASBOX
20554     ) |
20555       sed "s/^/$as_me: WARNING:     /" >&2
20556     ;;
20557 esac
20558 echo "$as_me:$LINENO: checking for $ac_header" >&5
20559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20561   echo $ECHO_N "(cached) $ECHO_C" >&6
20562 else
20563   eval "$as_ac_Header=\$ac_header_preproc"
20564 fi
20565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20567
20568 fi
20569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20570   cat >>confdefs.h <<_ACEOF
20571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20572 _ACEOF
20573
20574 fi
20575
20576 done
20577
20578
20579 if test "${ac_cv_header_sys_types_h+set}" = set; then
20580   echo "$as_me:$LINENO: checking for sys/types.h" >&5
20581 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20582 if test "${ac_cv_header_sys_types_h+set}" = set; then
20583   echo $ECHO_N "(cached) $ECHO_C" >&6
20584 fi
20585 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20586 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20587 else
20588   # Is the header compilable?
20589 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20590 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
20591 cat >conftest.$ac_ext <<_ACEOF
20592 /* confdefs.h.  */
20593 _ACEOF
20594 cat confdefs.h >>conftest.$ac_ext
20595 cat >>conftest.$ac_ext <<_ACEOF
20596 /* end confdefs.h.  */
20597 $ac_includes_default
20598 #include <sys/types.h>
20599 _ACEOF
20600 rm -f conftest.$ac_objext
20601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20602   (eval $ac_compile) 2>conftest.er1
20603   ac_status=$?
20604   grep -v '^ *+' conftest.er1 >conftest.err
20605   rm -f conftest.er1
20606   cat conftest.err >&5
20607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608   (exit $ac_status); } &&
20609          { ac_try='test -z "$ac_c_werror_flag"
20610                          || test ! -s conftest.err'
20611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612   (eval $ac_try) 2>&5
20613   ac_status=$?
20614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615   (exit $ac_status); }; } &&
20616          { ac_try='test -s conftest.$ac_objext'
20617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618   (eval $ac_try) 2>&5
20619   ac_status=$?
20620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621   (exit $ac_status); }; }; then
20622   ac_header_compiler=yes
20623 else
20624   echo "$as_me: failed program was:" >&5
20625 sed 's/^/| /' conftest.$ac_ext >&5
20626
20627 ac_header_compiler=no
20628 fi
20629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20630 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20631 echo "${ECHO_T}$ac_header_compiler" >&6
20632
20633 # Is the header present?
20634 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20635 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
20636 cat >conftest.$ac_ext <<_ACEOF
20637 /* confdefs.h.  */
20638 _ACEOF
20639 cat confdefs.h >>conftest.$ac_ext
20640 cat >>conftest.$ac_ext <<_ACEOF
20641 /* end confdefs.h.  */
20642 #include <sys/types.h>
20643 _ACEOF
20644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20645   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20646   ac_status=$?
20647   grep -v '^ *+' conftest.er1 >conftest.err
20648   rm -f conftest.er1
20649   cat conftest.err >&5
20650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651   (exit $ac_status); } >/dev/null; then
20652   if test -s conftest.err; then
20653     ac_cpp_err=$ac_c_preproc_warn_flag
20654     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20655   else
20656     ac_cpp_err=
20657   fi
20658 else
20659   ac_cpp_err=yes
20660 fi
20661 if test -z "$ac_cpp_err"; then
20662   ac_header_preproc=yes
20663 else
20664   echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20666
20667   ac_header_preproc=no
20668 fi
20669 rm -f conftest.err conftest.$ac_ext
20670 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20671 echo "${ECHO_T}$ac_header_preproc" >&6
20672
20673 # So?  What about this header?
20674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20675   yes:no: )
20676     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20677 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20678     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20679 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20680     ac_header_preproc=yes
20681     ;;
20682   no:yes:* )
20683     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20684 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20685     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
20686 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
20687     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20688 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20689     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
20690 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20691     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20692 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20693     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20694 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20695     (
20696       cat <<\_ASBOX
20697 ## ----------------------------------- ##
20698 ## Report this to llvmbugs@cs.uiuc.edu ##
20699 ## ----------------------------------- ##
20700 _ASBOX
20701     ) |
20702       sed "s/^/$as_me: WARNING:     /" >&2
20703     ;;
20704 esac
20705 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20706 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20707 if test "${ac_cv_header_sys_types_h+set}" = set; then
20708   echo $ECHO_N "(cached) $ECHO_C" >&6
20709 else
20710   ac_cv_header_sys_types_h=$ac_header_preproc
20711 fi
20712 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20713 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20714
20715 fi
20716
20717
20718 if test "${ac_cv_header_inttypes_h+set}" = set; then
20719   echo "$as_me:$LINENO: checking for inttypes.h" >&5
20720 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20721 if test "${ac_cv_header_inttypes_h+set}" = set; then
20722   echo $ECHO_N "(cached) $ECHO_C" >&6
20723 fi
20724 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20725 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20726 else
20727   # Is the header compilable?
20728 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20729 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
20730 cat >conftest.$ac_ext <<_ACEOF
20731 /* confdefs.h.  */
20732 _ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h.  */
20736 $ac_includes_default
20737 #include <inttypes.h>
20738 _ACEOF
20739 rm -f conftest.$ac_objext
20740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20741   (eval $ac_compile) 2>conftest.er1
20742   ac_status=$?
20743   grep -v '^ *+' conftest.er1 >conftest.err
20744   rm -f conftest.er1
20745   cat conftest.err >&5
20746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747   (exit $ac_status); } &&
20748          { ac_try='test -z "$ac_c_werror_flag"
20749                          || test ! -s conftest.err'
20750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751   (eval $ac_try) 2>&5
20752   ac_status=$?
20753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754   (exit $ac_status); }; } &&
20755          { ac_try='test -s conftest.$ac_objext'
20756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20757   (eval $ac_try) 2>&5
20758   ac_status=$?
20759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760   (exit $ac_status); }; }; then
20761   ac_header_compiler=yes
20762 else
20763   echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20765
20766 ac_header_compiler=no
20767 fi
20768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20769 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20770 echo "${ECHO_T}$ac_header_compiler" >&6
20771
20772 # Is the header present?
20773 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20774 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
20775 cat >conftest.$ac_ext <<_ACEOF
20776 /* confdefs.h.  */
20777 _ACEOF
20778 cat confdefs.h >>conftest.$ac_ext
20779 cat >>conftest.$ac_ext <<_ACEOF
20780 /* end confdefs.h.  */
20781 #include <inttypes.h>
20782 _ACEOF
20783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20784   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20785   ac_status=$?
20786   grep -v '^ *+' conftest.er1 >conftest.err
20787   rm -f conftest.er1
20788   cat conftest.err >&5
20789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790   (exit $ac_status); } >/dev/null; then
20791   if test -s conftest.err; then
20792     ac_cpp_err=$ac_c_preproc_warn_flag
20793     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20794   else
20795     ac_cpp_err=
20796   fi
20797 else
20798   ac_cpp_err=yes
20799 fi
20800 if test -z "$ac_cpp_err"; then
20801   ac_header_preproc=yes
20802 else
20803   echo "$as_me: failed program was:" >&5
20804 sed 's/^/| /' conftest.$ac_ext >&5
20805
20806   ac_header_preproc=no
20807 fi
20808 rm -f conftest.err conftest.$ac_ext
20809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20810 echo "${ECHO_T}$ac_header_preproc" >&6
20811
20812 # So?  What about this header?
20813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20814   yes:no: )
20815     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20816 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20817     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20818 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20819     ac_header_preproc=yes
20820     ;;
20821   no:yes:* )
20822     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20823 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20824     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
20825 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
20826     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20827 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20828     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
20829 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20830     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20831 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20832     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20833 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20834     (
20835       cat <<\_ASBOX
20836 ## ----------------------------------- ##
20837 ## Report this to llvmbugs@cs.uiuc.edu ##
20838 ## ----------------------------------- ##
20839 _ASBOX
20840     ) |
20841       sed "s/^/$as_me: WARNING:     /" >&2
20842     ;;
20843 esac
20844 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20845 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20846 if test "${ac_cv_header_inttypes_h+set}" = set; then
20847   echo $ECHO_N "(cached) $ECHO_C" >&6
20848 else
20849   ac_cv_header_inttypes_h=$ac_header_preproc
20850 fi
20851 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20852 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20853
20854 fi
20855
20856
20857 if test "${ac_cv_header_stdint_h+set}" = set; then
20858   echo "$as_me:$LINENO: checking for stdint.h" >&5
20859 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20860 if test "${ac_cv_header_stdint_h+set}" = set; then
20861   echo $ECHO_N "(cached) $ECHO_C" >&6
20862 fi
20863 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20864 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20865 else
20866   # Is the header compilable?
20867 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20868 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20869 cat >conftest.$ac_ext <<_ACEOF
20870 /* confdefs.h.  */
20871 _ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h.  */
20875 $ac_includes_default
20876 #include <stdint.h>
20877 _ACEOF
20878 rm -f conftest.$ac_objext
20879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20880   (eval $ac_compile) 2>conftest.er1
20881   ac_status=$?
20882   grep -v '^ *+' conftest.er1 >conftest.err
20883   rm -f conftest.er1
20884   cat conftest.err >&5
20885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886   (exit $ac_status); } &&
20887          { ac_try='test -z "$ac_c_werror_flag"
20888                          || test ! -s conftest.err'
20889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890   (eval $ac_try) 2>&5
20891   ac_status=$?
20892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893   (exit $ac_status); }; } &&
20894          { ac_try='test -s conftest.$ac_objext'
20895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896   (eval $ac_try) 2>&5
20897   ac_status=$?
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); }; }; then
20900   ac_header_compiler=yes
20901 else
20902   echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20904
20905 ac_header_compiler=no
20906 fi
20907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20909 echo "${ECHO_T}$ac_header_compiler" >&6
20910
20911 # Is the header present?
20912 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20913 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20914 cat >conftest.$ac_ext <<_ACEOF
20915 /* confdefs.h.  */
20916 _ACEOF
20917 cat confdefs.h >>conftest.$ac_ext
20918 cat >>conftest.$ac_ext <<_ACEOF
20919 /* end confdefs.h.  */
20920 #include <stdint.h>
20921 _ACEOF
20922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20923   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20924   ac_status=$?
20925   grep -v '^ *+' conftest.er1 >conftest.err
20926   rm -f conftest.er1
20927   cat conftest.err >&5
20928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929   (exit $ac_status); } >/dev/null; then
20930   if test -s conftest.err; then
20931     ac_cpp_err=$ac_c_preproc_warn_flag
20932     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20933   else
20934     ac_cpp_err=
20935   fi
20936 else
20937   ac_cpp_err=yes
20938 fi
20939 if test -z "$ac_cpp_err"; then
20940   ac_header_preproc=yes
20941 else
20942   echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.$ac_ext >&5
20944
20945   ac_header_preproc=no
20946 fi
20947 rm -f conftest.err conftest.$ac_ext
20948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20949 echo "${ECHO_T}$ac_header_preproc" >&6
20950
20951 # So?  What about this header?
20952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20953   yes:no: )
20954     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20955 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20956     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20957 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20958     ac_header_preproc=yes
20959     ;;
20960   no:yes:* )
20961     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20962 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20963     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
20964 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
20965     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20966 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20967     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
20968 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20969     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20970 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20971     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20972 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20973     (
20974       cat <<\_ASBOX
20975 ## ----------------------------------- ##
20976 ## Report this to llvmbugs@cs.uiuc.edu ##
20977 ## ----------------------------------- ##
20978 _ASBOX
20979     ) |
20980       sed "s/^/$as_me: WARNING:     /" >&2
20981     ;;
20982 esac
20983 echo "$as_me:$LINENO: checking for stdint.h" >&5
20984 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20985 if test "${ac_cv_header_stdint_h+set}" = set; then
20986   echo $ECHO_N "(cached) $ECHO_C" >&6
20987 else
20988   ac_cv_header_stdint_h=$ac_header_preproc
20989 fi
20990 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20991 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20992
20993 fi
20994
20995
20996
20997 echo "$as_me:$LINENO: checking for pid_t" >&5
20998 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20999 if test "${ac_cv_type_pid_t+set}" = set; then
21000   echo $ECHO_N "(cached) $ECHO_C" >&6
21001 else
21002   cat >conftest.$ac_ext <<_ACEOF
21003 /* confdefs.h.  */
21004 _ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h.  */
21008 $ac_includes_default
21009 int
21010 main ()
21011 {
21012 if ((pid_t *) 0)
21013   return 0;
21014 if (sizeof (pid_t))
21015   return 0;
21016   ;
21017   return 0;
21018 }
21019 _ACEOF
21020 rm -f conftest.$ac_objext
21021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21022   (eval $ac_compile) 2>conftest.er1
21023   ac_status=$?
21024   grep -v '^ *+' conftest.er1 >conftest.err
21025   rm -f conftest.er1
21026   cat conftest.err >&5
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); } &&
21029          { ac_try='test -z "$ac_c_werror_flag"
21030                          || test ! -s conftest.err'
21031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032   (eval $ac_try) 2>&5
21033   ac_status=$?
21034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035   (exit $ac_status); }; } &&
21036          { ac_try='test -s conftest.$ac_objext'
21037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038   (eval $ac_try) 2>&5
21039   ac_status=$?
21040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041   (exit $ac_status); }; }; then
21042   ac_cv_type_pid_t=yes
21043 else
21044   echo "$as_me: failed program was:" >&5
21045 sed 's/^/| /' conftest.$ac_ext >&5
21046
21047 ac_cv_type_pid_t=no
21048 fi
21049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21050 fi
21051 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21052 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21053 if test $ac_cv_type_pid_t = yes; then
21054   :
21055 else
21056
21057 cat >>confdefs.h <<_ACEOF
21058 #define pid_t int
21059 _ACEOF
21060
21061 fi
21062
21063 echo "$as_me:$LINENO: checking for size_t" >&5
21064 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21065 if test "${ac_cv_type_size_t+set}" = set; then
21066   echo $ECHO_N "(cached) $ECHO_C" >&6
21067 else
21068   cat >conftest.$ac_ext <<_ACEOF
21069 /* confdefs.h.  */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h.  */
21074 $ac_includes_default
21075 int
21076 main ()
21077 {
21078 if ((size_t *) 0)
21079   return 0;
21080 if (sizeof (size_t))
21081   return 0;
21082   ;
21083   return 0;
21084 }
21085 _ACEOF
21086 rm -f conftest.$ac_objext
21087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21088   (eval $ac_compile) 2>conftest.er1
21089   ac_status=$?
21090   grep -v '^ *+' conftest.er1 >conftest.err
21091   rm -f conftest.er1
21092   cat conftest.err >&5
21093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094   (exit $ac_status); } &&
21095          { ac_try='test -z "$ac_c_werror_flag"
21096                          || test ! -s conftest.err'
21097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21098   (eval $ac_try) 2>&5
21099   ac_status=$?
21100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101   (exit $ac_status); }; } &&
21102          { ac_try='test -s conftest.$ac_objext'
21103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104   (eval $ac_try) 2>&5
21105   ac_status=$?
21106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107   (exit $ac_status); }; }; then
21108   ac_cv_type_size_t=yes
21109 else
21110   echo "$as_me: failed program was:" >&5
21111 sed 's/^/| /' conftest.$ac_ext >&5
21112
21113 ac_cv_type_size_t=no
21114 fi
21115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21116 fi
21117 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21118 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21119 if test $ac_cv_type_size_t = yes; then
21120   :
21121 else
21122
21123 cat >>confdefs.h <<_ACEOF
21124 #define size_t unsigned
21125 _ACEOF
21126
21127 fi
21128
21129 echo "$as_me:$LINENO: checking for int64_t" >&5
21130 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
21131 if test "${ac_cv_type_int64_t+set}" = set; then
21132   echo $ECHO_N "(cached) $ECHO_C" >&6
21133 else
21134   cat >conftest.$ac_ext <<_ACEOF
21135 /* confdefs.h.  */
21136 _ACEOF
21137 cat confdefs.h >>conftest.$ac_ext
21138 cat >>conftest.$ac_ext <<_ACEOF
21139 /* end confdefs.h.  */
21140 $ac_includes_default
21141 int
21142 main ()
21143 {
21144 if ((int64_t *) 0)
21145   return 0;
21146 if (sizeof (int64_t))
21147   return 0;
21148   ;
21149   return 0;
21150 }
21151 _ACEOF
21152 rm -f conftest.$ac_objext
21153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21154   (eval $ac_compile) 2>conftest.er1
21155   ac_status=$?
21156   grep -v '^ *+' conftest.er1 >conftest.err
21157   rm -f conftest.er1
21158   cat conftest.err >&5
21159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160   (exit $ac_status); } &&
21161          { ac_try='test -z "$ac_c_werror_flag"
21162                          || test ! -s conftest.err'
21163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21164   (eval $ac_try) 2>&5
21165   ac_status=$?
21166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167   (exit $ac_status); }; } &&
21168          { ac_try='test -s conftest.$ac_objext'
21169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170   (eval $ac_try) 2>&5
21171   ac_status=$?
21172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173   (exit $ac_status); }; }; then
21174   ac_cv_type_int64_t=yes
21175 else
21176   echo "$as_me: failed program was:" >&5
21177 sed 's/^/| /' conftest.$ac_ext >&5
21178
21179 ac_cv_type_int64_t=no
21180 fi
21181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21182 fi
21183 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
21184 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
21185 if test $ac_cv_type_int64_t = yes; then
21186
21187 cat >>confdefs.h <<_ACEOF
21188 #define HAVE_INT64_T 1
21189 _ACEOF
21190
21191
21192 else
21193   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
21194 echo "$as_me: error: Type int64_t required but not found" >&2;}
21195    { (exit 1); exit 1; }; }
21196 fi
21197
21198 echo "$as_me:$LINENO: checking for uint64_t" >&5
21199 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
21200 if test "${ac_cv_type_uint64_t+set}" = set; then
21201   echo $ECHO_N "(cached) $ECHO_C" >&6
21202 else
21203   cat >conftest.$ac_ext <<_ACEOF
21204 /* confdefs.h.  */
21205 _ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h.  */
21209 $ac_includes_default
21210 int
21211 main ()
21212 {
21213 if ((uint64_t *) 0)
21214   return 0;
21215 if (sizeof (uint64_t))
21216   return 0;
21217   ;
21218   return 0;
21219 }
21220 _ACEOF
21221 rm -f conftest.$ac_objext
21222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21223   (eval $ac_compile) 2>conftest.er1
21224   ac_status=$?
21225   grep -v '^ *+' conftest.er1 >conftest.err
21226   rm -f conftest.er1
21227   cat conftest.err >&5
21228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229   (exit $ac_status); } &&
21230          { ac_try='test -z "$ac_c_werror_flag"
21231                          || test ! -s conftest.err'
21232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21233   (eval $ac_try) 2>&5
21234   ac_status=$?
21235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236   (exit $ac_status); }; } &&
21237          { ac_try='test -s conftest.$ac_objext'
21238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239   (eval $ac_try) 2>&5
21240   ac_status=$?
21241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242   (exit $ac_status); }; }; then
21243   ac_cv_type_uint64_t=yes
21244 else
21245   echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21247
21248 ac_cv_type_uint64_t=no
21249 fi
21250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21251 fi
21252 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
21253 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
21254 if test $ac_cv_type_uint64_t = yes; then
21255
21256 cat >>confdefs.h <<_ACEOF
21257 #define HAVE_UINT64_T 1
21258 _ACEOF
21259
21260
21261 else
21262   echo "$as_me:$LINENO: checking for u_int64_t" >&5
21263 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
21264 if test "${ac_cv_type_u_int64_t+set}" = set; then
21265   echo $ECHO_N "(cached) $ECHO_C" >&6
21266 else
21267   cat >conftest.$ac_ext <<_ACEOF
21268 /* confdefs.h.  */
21269 _ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h.  */
21273 $ac_includes_default
21274 int
21275 main ()
21276 {
21277 if ((u_int64_t *) 0)
21278   return 0;
21279 if (sizeof (u_int64_t))
21280   return 0;
21281   ;
21282   return 0;
21283 }
21284 _ACEOF
21285 rm -f conftest.$ac_objext
21286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21287   (eval $ac_compile) 2>conftest.er1
21288   ac_status=$?
21289   grep -v '^ *+' conftest.er1 >conftest.err
21290   rm -f conftest.er1
21291   cat conftest.err >&5
21292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293   (exit $ac_status); } &&
21294          { ac_try='test -z "$ac_c_werror_flag"
21295                          || test ! -s conftest.err'
21296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297   (eval $ac_try) 2>&5
21298   ac_status=$?
21299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300   (exit $ac_status); }; } &&
21301          { ac_try='test -s conftest.$ac_objext'
21302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21303   (eval $ac_try) 2>&5
21304   ac_status=$?
21305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306   (exit $ac_status); }; }; then
21307   ac_cv_type_u_int64_t=yes
21308 else
21309   echo "$as_me: failed program was:" >&5
21310 sed 's/^/| /' conftest.$ac_ext >&5
21311
21312 ac_cv_type_u_int64_t=no
21313 fi
21314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21315 fi
21316 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
21317 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
21318 if test $ac_cv_type_u_int64_t = yes; then
21319
21320 cat >>confdefs.h <<_ACEOF
21321 #define HAVE_U_INT64_T 1
21322 _ACEOF
21323
21324
21325 else
21326   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
21327 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
21328    { (exit 1); exit 1; }; }
21329 fi
21330
21331 fi
21332
21333 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21334 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21335 if test "${ac_cv_header_time+set}" = set; then
21336   echo $ECHO_N "(cached) $ECHO_C" >&6
21337 else
21338   cat >conftest.$ac_ext <<_ACEOF
21339 /* confdefs.h.  */
21340 _ACEOF
21341 cat confdefs.h >>conftest.$ac_ext
21342 cat >>conftest.$ac_ext <<_ACEOF
21343 /* end confdefs.h.  */
21344 #include <sys/types.h>
21345 #include <sys/time.h>
21346 #include <time.h>
21347
21348 int
21349 main ()
21350 {
21351 if ((struct tm *) 0)
21352 return 0;
21353   ;
21354   return 0;
21355 }
21356 _ACEOF
21357 rm -f conftest.$ac_objext
21358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21359   (eval $ac_compile) 2>conftest.er1
21360   ac_status=$?
21361   grep -v '^ *+' conftest.er1 >conftest.err
21362   rm -f conftest.er1
21363   cat conftest.err >&5
21364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365   (exit $ac_status); } &&
21366          { ac_try='test -z "$ac_c_werror_flag"
21367                          || test ! -s conftest.err'
21368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21369   (eval $ac_try) 2>&5
21370   ac_status=$?
21371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372   (exit $ac_status); }; } &&
21373          { ac_try='test -s conftest.$ac_objext'
21374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21375   (eval $ac_try) 2>&5
21376   ac_status=$?
21377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378   (exit $ac_status); }; }; then
21379   ac_cv_header_time=yes
21380 else
21381   echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21383
21384 ac_cv_header_time=no
21385 fi
21386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21387 fi
21388 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21389 echo "${ECHO_T}$ac_cv_header_time" >&6
21390 if test $ac_cv_header_time = yes; then
21391
21392 cat >>confdefs.h <<\_ACEOF
21393 #define TIME_WITH_SYS_TIME 1
21394 _ACEOF
21395
21396 fi
21397
21398 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21399 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21400 if test "${ac_cv_struct_tm+set}" = set; then
21401   echo $ECHO_N "(cached) $ECHO_C" >&6
21402 else
21403   cat >conftest.$ac_ext <<_ACEOF
21404 /* confdefs.h.  */
21405 _ACEOF
21406 cat confdefs.h >>conftest.$ac_ext
21407 cat >>conftest.$ac_ext <<_ACEOF
21408 /* end confdefs.h.  */
21409 #include <sys/types.h>
21410 #include <time.h>
21411
21412 int
21413 main ()
21414 {
21415 struct tm *tp; tp->tm_sec;
21416   ;
21417   return 0;
21418 }
21419 _ACEOF
21420 rm -f conftest.$ac_objext
21421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21422   (eval $ac_compile) 2>conftest.er1
21423   ac_status=$?
21424   grep -v '^ *+' conftest.er1 >conftest.err
21425   rm -f conftest.er1
21426   cat conftest.err >&5
21427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428   (exit $ac_status); } &&
21429          { ac_try='test -z "$ac_c_werror_flag"
21430                          || test ! -s conftest.err'
21431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432   (eval $ac_try) 2>&5
21433   ac_status=$?
21434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435   (exit $ac_status); }; } &&
21436          { ac_try='test -s conftest.$ac_objext'
21437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21438   (eval $ac_try) 2>&5
21439   ac_status=$?
21440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441   (exit $ac_status); }; }; then
21442   ac_cv_struct_tm=time.h
21443 else
21444   echo "$as_me: failed program was:" >&5
21445 sed 's/^/| /' conftest.$ac_ext >&5
21446
21447 ac_cv_struct_tm=sys/time.h
21448 fi
21449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21450 fi
21451 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21452 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21453 if test $ac_cv_struct_tm = sys/time.h; then
21454
21455 cat >>confdefs.h <<\_ACEOF
21456 #define TM_IN_SYS_TIME 1
21457 _ACEOF
21458
21459 fi
21460
21461
21462
21463   echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
21464 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
21465   ac_ext=c
21466 ac_cpp='$CPP $CPPFLAGS'
21467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21470
21471   if test "$cross_compiling" = yes; then
21472   ac_c_printf_a=no
21473 else
21474   cat >conftest.$ac_ext <<_ACEOF
21475
21476     /* confdefs.h.  */
21477 _ACEOF
21478 cat confdefs.h >>conftest.$ac_ext
21479 cat >>conftest.$ac_ext <<_ACEOF
21480 /* end confdefs.h.  */
21481
21482 #include <stdio.h>
21483 #include <stdlib.h>
21484
21485 int
21486 main ()
21487 {
21488
21489 volatile double A, B;
21490 char Buffer[100];
21491 A = 1;
21492 A /= 10.0;
21493 sprintf(Buffer, "%a", A);
21494 B = atof(Buffer);
21495 if (A != B)
21496   return (1);
21497 if (A != 0x1.999999999999ap-4)
21498   return (1);
21499 return (0);
21500   ;
21501   return 0;
21502 }
21503 _ACEOF
21504 rm -f conftest$ac_exeext
21505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21506   (eval $ac_link) 2>&5
21507   ac_status=$?
21508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21511   (eval $ac_try) 2>&5
21512   ac_status=$?
21513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514   (exit $ac_status); }; }; then
21515   ac_c_printf_a=yes
21516 else
21517   echo "$as_me: program exited with status $ac_status" >&5
21518 echo "$as_me: failed program was:" >&5
21519 sed 's/^/| /' conftest.$ac_ext >&5
21520
21521 ( exit $ac_status )
21522 ac_c_printf_a=no
21523 fi
21524 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21525 fi
21526  ac_ext=c
21527 ac_cpp='$CPP $CPPFLAGS'
21528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21531
21532  echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
21533 echo "${ECHO_T}$ac_c_printf_a" >&6
21534  if test "$ac_c_printf_a" = "yes"; then
21535
21536 cat >>confdefs.h <<\_ACEOF
21537 #define HAVE_PRINTF_A 1
21538 _ACEOF
21539
21540  fi
21541
21542
21543 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21544 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21545 if test "${ac_cv_c_bigendian+set}" = set; then
21546   echo $ECHO_N "(cached) $ECHO_C" >&6
21547 else
21548   # See if sys/param.h defines the BYTE_ORDER macro.
21549 cat >conftest.$ac_ext <<_ACEOF
21550 /* confdefs.h.  */
21551 _ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h.  */
21555 #include <sys/types.h>
21556 #include <sys/param.h>
21557
21558 int
21559 main ()
21560 {
21561 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21562  bogus endian macros
21563 #endif
21564
21565   ;
21566   return 0;
21567 }
21568 _ACEOF
21569 rm -f conftest.$ac_objext
21570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21571   (eval $ac_compile) 2>conftest.er1
21572   ac_status=$?
21573   grep -v '^ *+' conftest.er1 >conftest.err
21574   rm -f conftest.er1
21575   cat conftest.err >&5
21576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577   (exit $ac_status); } &&
21578          { ac_try='test -z "$ac_c_werror_flag"
21579                          || test ! -s conftest.err'
21580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21581   (eval $ac_try) 2>&5
21582   ac_status=$?
21583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584   (exit $ac_status); }; } &&
21585          { ac_try='test -s conftest.$ac_objext'
21586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21587   (eval $ac_try) 2>&5
21588   ac_status=$?
21589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590   (exit $ac_status); }; }; then
21591   # It does; now see whether it defined to BIG_ENDIAN or not.
21592 cat >conftest.$ac_ext <<_ACEOF
21593 /* confdefs.h.  */
21594 _ACEOF
21595 cat confdefs.h >>conftest.$ac_ext
21596 cat >>conftest.$ac_ext <<_ACEOF
21597 /* end confdefs.h.  */
21598 #include <sys/types.h>
21599 #include <sys/param.h>
21600
21601 int
21602 main ()
21603 {
21604 #if BYTE_ORDER != BIG_ENDIAN
21605  not big endian
21606 #endif
21607
21608   ;
21609   return 0;
21610 }
21611 _ACEOF
21612 rm -f conftest.$ac_objext
21613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21614   (eval $ac_compile) 2>conftest.er1
21615   ac_status=$?
21616   grep -v '^ *+' conftest.er1 >conftest.err
21617   rm -f conftest.er1
21618   cat conftest.err >&5
21619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620   (exit $ac_status); } &&
21621          { ac_try='test -z "$ac_c_werror_flag"
21622                          || test ! -s conftest.err'
21623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21624   (eval $ac_try) 2>&5
21625   ac_status=$?
21626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627   (exit $ac_status); }; } &&
21628          { ac_try='test -s conftest.$ac_objext'
21629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21630   (eval $ac_try) 2>&5
21631   ac_status=$?
21632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633   (exit $ac_status); }; }; then
21634   ac_cv_c_bigendian=yes
21635 else
21636   echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21638
21639 ac_cv_c_bigendian=no
21640 fi
21641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21642 else
21643   echo "$as_me: failed program was:" >&5
21644 sed 's/^/| /' conftest.$ac_ext >&5
21645
21646 # It does not; compile a test program.
21647 if test "$cross_compiling" = yes; then
21648   # try to guess the endianness by grepping values into an object file
21649   ac_cv_c_bigendian=unknown
21650   cat >conftest.$ac_ext <<_ACEOF
21651 /* confdefs.h.  */
21652 _ACEOF
21653 cat confdefs.h >>conftest.$ac_ext
21654 cat >>conftest.$ac_ext <<_ACEOF
21655 /* end confdefs.h.  */
21656 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21657 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21658 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21659 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21660 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21661 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21662 int
21663 main ()
21664 {
21665  _ascii (); _ebcdic ();
21666   ;
21667   return 0;
21668 }
21669 _ACEOF
21670 rm -f conftest.$ac_objext
21671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21672   (eval $ac_compile) 2>conftest.er1
21673   ac_status=$?
21674   grep -v '^ *+' conftest.er1 >conftest.err
21675   rm -f conftest.er1
21676   cat conftest.err >&5
21677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678   (exit $ac_status); } &&
21679          { ac_try='test -z "$ac_c_werror_flag"
21680                          || test ! -s conftest.err'
21681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21682   (eval $ac_try) 2>&5
21683   ac_status=$?
21684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685   (exit $ac_status); }; } &&
21686          { ac_try='test -s conftest.$ac_objext'
21687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688   (eval $ac_try) 2>&5
21689   ac_status=$?
21690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691   (exit $ac_status); }; }; then
21692   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21693   ac_cv_c_bigendian=yes
21694 fi
21695 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21696   if test "$ac_cv_c_bigendian" = unknown; then
21697     ac_cv_c_bigendian=no
21698   else
21699     # finding both strings is unlikely to happen, but who knows?
21700     ac_cv_c_bigendian=unknown
21701   fi
21702 fi
21703 else
21704   echo "$as_me: failed program was:" >&5
21705 sed 's/^/| /' conftest.$ac_ext >&5
21706
21707 fi
21708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21709 else
21710   cat >conftest.$ac_ext <<_ACEOF
21711 /* confdefs.h.  */
21712 _ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h.  */
21716 int
21717 main ()
21718 {
21719   /* Are we little or big endian?  From Harbison&Steele.  */
21720   union
21721   {
21722     long l;
21723     char c[sizeof (long)];
21724   } u;
21725   u.l = 1;
21726   exit (u.c[sizeof (long) - 1] == 1);
21727 }
21728 _ACEOF
21729 rm -f conftest$ac_exeext
21730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21731   (eval $ac_link) 2>&5
21732   ac_status=$?
21733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21736   (eval $ac_try) 2>&5
21737   ac_status=$?
21738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739   (exit $ac_status); }; }; then
21740   ac_cv_c_bigendian=no
21741 else
21742   echo "$as_me: program exited with status $ac_status" >&5
21743 echo "$as_me: failed program was:" >&5
21744 sed 's/^/| /' conftest.$ac_ext >&5
21745
21746 ( exit $ac_status )
21747 ac_cv_c_bigendian=yes
21748 fi
21749 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21750 fi
21751 fi
21752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21753 fi
21754 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21755 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21756 case $ac_cv_c_bigendian in
21757   yes)
21758     ENDIAN=big
21759  ;;
21760   no)
21761     ENDIAN=little
21762  ;;
21763   *)
21764     { { echo "$as_me:$LINENO: error: unknown endianness
21765 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21766 echo "$as_me: error: unknown endianness
21767 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21768    { (exit 1); exit 1; }; } ;;
21769 esac
21770
21771
21772 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21773 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21774 if test "${ac_cv_cxx_namespaces+set}" = set; then
21775   echo $ECHO_N "(cached) $ECHO_C" >&6
21776 else
21777   ac_ext=cc
21778 ac_cpp='$CXXCPP $CPPFLAGS'
21779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21782
21783  cat >conftest.$ac_ext <<_ACEOF
21784 /* confdefs.h.  */
21785 _ACEOF
21786 cat confdefs.h >>conftest.$ac_ext
21787 cat >>conftest.$ac_ext <<_ACEOF
21788 /* end confdefs.h.  */
21789 namespace Outer { namespace Inner { int i = 0; }}
21790 int
21791 main ()
21792 {
21793 using namespace Outer::Inner; return i;
21794   ;
21795   return 0;
21796 }
21797 _ACEOF
21798 rm -f conftest.$ac_objext
21799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21800   (eval $ac_compile) 2>conftest.er1
21801   ac_status=$?
21802   grep -v '^ *+' conftest.er1 >conftest.err
21803   rm -f conftest.er1
21804   cat conftest.err >&5
21805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806   (exit $ac_status); } &&
21807          { ac_try='test -z "$ac_cxx_werror_flag"
21808                          || test ! -s conftest.err'
21809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21810   (eval $ac_try) 2>&5
21811   ac_status=$?
21812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813   (exit $ac_status); }; } &&
21814          { ac_try='test -s conftest.$ac_objext'
21815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21816   (eval $ac_try) 2>&5
21817   ac_status=$?
21818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819   (exit $ac_status); }; }; then
21820   ac_cv_cxx_namespaces=yes
21821 else
21822   echo "$as_me: failed program was:" >&5
21823 sed 's/^/| /' conftest.$ac_ext >&5
21824
21825 ac_cv_cxx_namespaces=no
21826 fi
21827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21828  ac_ext=c
21829 ac_cpp='$CPP $CPPFLAGS'
21830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21833
21834
21835 fi
21836 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21837 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21838 if test "$ac_cv_cxx_namespaces" = yes; then
21839
21840 cat >>confdefs.h <<\_ACEOF
21841 #define HAVE_NAMESPACES
21842 _ACEOF
21843
21844 fi
21845
21846 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21847 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21848 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
21849   echo $ECHO_N "(cached) $ECHO_C" >&6
21850 else
21851
21852   ac_ext=cc
21853 ac_cpp='$CXXCPP $CPPFLAGS'
21854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21857
21858   cat >conftest.$ac_ext <<_ACEOF
21859 /* confdefs.h.  */
21860 _ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h.  */
21864 #include <ext/hash_map>
21865 #ifdef HAVE_NAMESPACES
21866 using namespace std;
21867 #endif
21868 int
21869 main ()
21870 {
21871 hash_map<int, int> t;
21872   ;
21873   return 0;
21874 }
21875 _ACEOF
21876 rm -f conftest.$ac_objext
21877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21878   (eval $ac_compile) 2>conftest.er1
21879   ac_status=$?
21880   grep -v '^ *+' conftest.er1 >conftest.err
21881   rm -f conftest.er1
21882   cat conftest.err >&5
21883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884   (exit $ac_status); } &&
21885          { ac_try='test -z "$ac_cxx_werror_flag"
21886                          || test ! -s conftest.err'
21887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888   (eval $ac_try) 2>&5
21889   ac_status=$?
21890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891   (exit $ac_status); }; } &&
21892          { ac_try='test -s conftest.$ac_objext'
21893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21894   (eval $ac_try) 2>&5
21895   ac_status=$?
21896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897   (exit $ac_status); }; }; then
21898   ac_cv_cxx_have_std_ext_hash_map=yes
21899 else
21900   echo "$as_me: failed program was:" >&5
21901 sed 's/^/| /' conftest.$ac_ext >&5
21902
21903 ac_cv_cxx_have_std_ext_hash_map=no
21904 fi
21905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21906   ac_ext=c
21907 ac_cpp='$CPP $CPPFLAGS'
21908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21911
21912 fi
21913 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21914 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21915  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21916  then
21917
21918 cat >>confdefs.h <<\_ACEOF
21919 #define HAVE_STD_EXT_HASH_MAP 1
21920 _ACEOF
21921
21922  else
21923
21924 cat >>confdefs.h <<\_ACEOF
21925 #define HAVE_STD_EXT_HASH_MAP 0
21926 _ACEOF
21927
21928  fi
21929
21930  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21931 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21932 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21933   echo $ECHO_N "(cached) $ECHO_C" >&6
21934 else
21935
21936   ac_ext=cc
21937 ac_cpp='$CXXCPP $CPPFLAGS'
21938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21941
21942   cat >conftest.$ac_ext <<_ACEOF
21943 /* confdefs.h.  */
21944 _ACEOF
21945 cat confdefs.h >>conftest.$ac_ext
21946 cat >>conftest.$ac_ext <<_ACEOF
21947 /* end confdefs.h.  */
21948 #include <ext/hash_map>
21949 #ifdef HAVE_NAMESPACES
21950 using namespace __gnu_cxx;
21951 #endif
21952 int
21953 main ()
21954 {
21955 hash_map<int,int> t;
21956   ;
21957   return 0;
21958 }
21959 _ACEOF
21960 rm -f conftest.$ac_objext
21961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21962   (eval $ac_compile) 2>conftest.er1
21963   ac_status=$?
21964   grep -v '^ *+' conftest.er1 >conftest.err
21965   rm -f conftest.er1
21966   cat conftest.err >&5
21967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968   (exit $ac_status); } &&
21969          { ac_try='test -z "$ac_cxx_werror_flag"
21970                          || test ! -s conftest.err'
21971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21972   (eval $ac_try) 2>&5
21973   ac_status=$?
21974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975   (exit $ac_status); }; } &&
21976          { ac_try='test -s conftest.$ac_objext'
21977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21978   (eval $ac_try) 2>&5
21979   ac_status=$?
21980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981   (exit $ac_status); }; }; then
21982   ac_cv_cxx_have_gnu_ext_hash_map=yes
21983 else
21984   echo "$as_me: failed program was:" >&5
21985 sed 's/^/| /' conftest.$ac_ext >&5
21986
21987 ac_cv_cxx_have_gnu_ext_hash_map=no
21988 fi
21989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21990   ac_ext=c
21991 ac_cpp='$CPP $CPPFLAGS'
21992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21995
21996 fi
21997 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21998 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21999  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
22000  then
22001
22002 cat >>confdefs.h <<\_ACEOF
22003 #define HAVE_GNU_EXT_HASH_MAP 1
22004 _ACEOF
22005
22006  else
22007
22008 cat >>confdefs.h <<\_ACEOF
22009 #define HAVE_GNU_EXT_HASH_MAP 0
22010 _ACEOF
22011
22012  fi
22013
22014  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
22015 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
22016 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
22017   echo $ECHO_N "(cached) $ECHO_C" >&6
22018 else
22019
22020   ac_ext=cc
22021 ac_cpp='$CXXCPP $CPPFLAGS'
22022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22025
22026   cat >conftest.$ac_ext <<_ACEOF
22027 /* confdefs.h.  */
22028 _ACEOF
22029 cat confdefs.h >>conftest.$ac_ext
22030 cat >>conftest.$ac_ext <<_ACEOF
22031 /* end confdefs.h.  */
22032 #include <hash_map>
22033 int
22034 main ()
22035 {
22036 hash_map<int,int> t;
22037   ;
22038   return 0;
22039 }
22040 _ACEOF
22041 rm -f conftest.$ac_objext
22042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22043   (eval $ac_compile) 2>conftest.er1
22044   ac_status=$?
22045   grep -v '^ *+' conftest.er1 >conftest.err
22046   rm -f conftest.er1
22047   cat conftest.err >&5
22048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049   (exit $ac_status); } &&
22050          { ac_try='test -z "$ac_cxx_werror_flag"
22051                          || test ! -s conftest.err'
22052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22053   (eval $ac_try) 2>&5
22054   ac_status=$?
22055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056   (exit $ac_status); }; } &&
22057          { ac_try='test -s conftest.$ac_objext'
22058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22059   (eval $ac_try) 2>&5
22060   ac_status=$?
22061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062   (exit $ac_status); }; }; then
22063   ac_cv_cxx_have_global_hash_map=yes
22064 else
22065   echo "$as_me: failed program was:" >&5
22066 sed 's/^/| /' conftest.$ac_ext >&5
22067
22068 ac_cv_cxx_have_global_hash_map=no
22069 fi
22070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22071   ac_ext=c
22072 ac_cpp='$CPP $CPPFLAGS'
22073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22076
22077 fi
22078 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
22079 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
22080  if test "$ac_cv_cxx_have_global_hash_map" = yes
22081  then
22082
22083 cat >>confdefs.h <<\_ACEOF
22084 #define HAVE_GLOBAL_HASH_MAP 1
22085 _ACEOF
22086
22087  else
22088
22089 cat >>confdefs.h <<\_ACEOF
22090 #define HAVE_GLOBAL_HASH_MAP 0
22091 _ACEOF
22092
22093  fi
22094
22095 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
22096 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
22097 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
22098   echo $ECHO_N "(cached) $ECHO_C" >&6
22099 else
22100
22101   ac_ext=cc
22102 ac_cpp='$CXXCPP $CPPFLAGS'
22103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22106
22107   cat >conftest.$ac_ext <<_ACEOF
22108 /* confdefs.h.  */
22109 _ACEOF
22110 cat confdefs.h >>conftest.$ac_ext
22111 cat >>conftest.$ac_ext <<_ACEOF
22112 /* end confdefs.h.  */
22113 #include <ext/hash_set>
22114 #ifdef HAVE_NAMESPACES
22115 using namespace std;
22116 #endif
22117 int
22118 main ()
22119 {
22120 hash_set<int> t;
22121   ;
22122   return 0;
22123 }
22124 _ACEOF
22125 rm -f conftest.$ac_objext
22126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22127   (eval $ac_compile) 2>conftest.er1
22128   ac_status=$?
22129   grep -v '^ *+' conftest.er1 >conftest.err
22130   rm -f conftest.er1
22131   cat conftest.err >&5
22132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133   (exit $ac_status); } &&
22134          { ac_try='test -z "$ac_cxx_werror_flag"
22135                          || test ! -s conftest.err'
22136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22137   (eval $ac_try) 2>&5
22138   ac_status=$?
22139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140   (exit $ac_status); }; } &&
22141          { ac_try='test -s conftest.$ac_objext'
22142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22143   (eval $ac_try) 2>&5
22144   ac_status=$?
22145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146   (exit $ac_status); }; }; then
22147   ac_cv_cxx_have_std_ext_hash_set=yes
22148 else
22149   echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22151
22152 ac_cv_cxx_have_std_ext_hash_set=no
22153 fi
22154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22155   ac_ext=c
22156 ac_cpp='$CPP $CPPFLAGS'
22157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22160
22161 fi
22162 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
22163 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
22164  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
22165  then
22166
22167 cat >>confdefs.h <<\_ACEOF
22168 #define HAVE_STD_EXT_HASH_SET 1
22169 _ACEOF
22170
22171  else
22172
22173 cat >>confdefs.h <<\_ACEOF
22174 #define HAVE_STD_EXT_HASH_SET 0
22175 _ACEOF
22176
22177  fi
22178
22179  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
22180 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
22181 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
22182   echo $ECHO_N "(cached) $ECHO_C" >&6
22183 else
22184
22185   ac_ext=cc
22186 ac_cpp='$CXXCPP $CPPFLAGS'
22187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22190
22191   cat >conftest.$ac_ext <<_ACEOF
22192 /* confdefs.h.  */
22193 _ACEOF
22194 cat confdefs.h >>conftest.$ac_ext
22195 cat >>conftest.$ac_ext <<_ACEOF
22196 /* end confdefs.h.  */
22197 #include <ext/hash_set>
22198 #ifdef HAVE_NAMESPACES
22199 using namespace __gnu_cxx;
22200 #endif
22201 int
22202 main ()
22203 {
22204 hash_set<int> t;
22205   ;
22206   return 0;
22207 }
22208 _ACEOF
22209 rm -f conftest.$ac_objext
22210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22211   (eval $ac_compile) 2>conftest.er1
22212   ac_status=$?
22213   grep -v '^ *+' conftest.er1 >conftest.err
22214   rm -f conftest.er1
22215   cat conftest.err >&5
22216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217   (exit $ac_status); } &&
22218          { ac_try='test -z "$ac_cxx_werror_flag"
22219                          || test ! -s conftest.err'
22220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22221   (eval $ac_try) 2>&5
22222   ac_status=$?
22223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224   (exit $ac_status); }; } &&
22225          { ac_try='test -s conftest.$ac_objext'
22226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22227   (eval $ac_try) 2>&5
22228   ac_status=$?
22229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230   (exit $ac_status); }; }; then
22231   ac_cv_cxx_have_gnu_ext_hash_set=yes
22232 else
22233   echo "$as_me: failed program was:" >&5
22234 sed 's/^/| /' conftest.$ac_ext >&5
22235
22236 ac_cv_cxx_have_gnu_ext_hash_set=no
22237 fi
22238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22239   ac_ext=c
22240 ac_cpp='$CPP $CPPFLAGS'
22241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22244
22245 fi
22246 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
22247 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
22248  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
22249  then
22250
22251 cat >>confdefs.h <<\_ACEOF
22252 #define HAVE_GNU_EXT_HASH_SET 1
22253 _ACEOF
22254
22255  else
22256
22257 cat >>confdefs.h <<\_ACEOF
22258 #define HAVE_GNU_EXT_HASH_SET 0
22259 _ACEOF
22260
22261  fi
22262
22263  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
22264 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
22265 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
22266   echo $ECHO_N "(cached) $ECHO_C" >&6
22267 else
22268
22269   ac_ext=cc
22270 ac_cpp='$CXXCPP $CPPFLAGS'
22271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22274
22275   cat >conftest.$ac_ext <<_ACEOF
22276 /* confdefs.h.  */
22277 _ACEOF
22278 cat confdefs.h >>conftest.$ac_ext
22279 cat >>conftest.$ac_ext <<_ACEOF
22280 /* end confdefs.h.  */
22281 #include <hash_set>
22282 int
22283 main ()
22284 {
22285 hash_set<int> t; return 0;
22286   ;
22287   return 0;
22288 }
22289 _ACEOF
22290 rm -f conftest.$ac_objext
22291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22292   (eval $ac_compile) 2>conftest.er1
22293   ac_status=$?
22294   grep -v '^ *+' conftest.er1 >conftest.err
22295   rm -f conftest.er1
22296   cat conftest.err >&5
22297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298   (exit $ac_status); } &&
22299          { ac_try='test -z "$ac_cxx_werror_flag"
22300                          || test ! -s conftest.err'
22301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22302   (eval $ac_try) 2>&5
22303   ac_status=$?
22304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305   (exit $ac_status); }; } &&
22306          { ac_try='test -s conftest.$ac_objext'
22307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308   (eval $ac_try) 2>&5
22309   ac_status=$?
22310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311   (exit $ac_status); }; }; then
22312   ac_cv_cxx_have_global_hash_set=yes
22313 else
22314   echo "$as_me: failed program was:" >&5
22315 sed 's/^/| /' conftest.$ac_ext >&5
22316
22317 ac_cv_cxx_have_global_hash_set=no
22318 fi
22319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22320   ac_ext=c
22321 ac_cpp='$CPP $CPPFLAGS'
22322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22325
22326 fi
22327 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
22328 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
22329  if test "$ac_cv_cxx_have_global_hash_set" = yes
22330  then
22331
22332 cat >>confdefs.h <<\_ACEOF
22333 #define HAVE_GLOBAL_HASH_SET 1
22334 _ACEOF
22335
22336  else
22337
22338 cat >>confdefs.h <<\_ACEOF
22339 #define HAVE_GLOBAL_HASH_SET 0
22340 _ACEOF
22341
22342  fi
22343
22344 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
22345 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
22346 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
22347   echo $ECHO_N "(cached) $ECHO_C" >&6
22348 else
22349
22350   ac_ext=cc
22351 ac_cpp='$CXXCPP $CPPFLAGS'
22352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22355
22356   cat >conftest.$ac_ext <<_ACEOF
22357 /* confdefs.h.  */
22358 _ACEOF
22359 cat confdefs.h >>conftest.$ac_ext
22360 cat >>conftest.$ac_ext <<_ACEOF
22361 /* end confdefs.h.  */
22362 #include <iterator>
22363 #ifdef HAVE_NAMESPACES
22364 using namespace std;
22365 #endif
22366 int
22367 main ()
22368 {
22369 iterator<int,int,int> t; return 0;
22370   ;
22371   return 0;
22372 }
22373 _ACEOF
22374 rm -f conftest.$ac_objext
22375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22376   (eval $ac_compile) 2>conftest.er1
22377   ac_status=$?
22378   grep -v '^ *+' conftest.er1 >conftest.err
22379   rm -f conftest.er1
22380   cat conftest.err >&5
22381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382   (exit $ac_status); } &&
22383          { ac_try='test -z "$ac_cxx_werror_flag"
22384                          || test ! -s conftest.err'
22385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386   (eval $ac_try) 2>&5
22387   ac_status=$?
22388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389   (exit $ac_status); }; } &&
22390          { ac_try='test -s conftest.$ac_objext'
22391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392   (eval $ac_try) 2>&5
22393   ac_status=$?
22394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395   (exit $ac_status); }; }; then
22396   ac_cv_cxx_have_std_iterator=yes
22397 else
22398   echo "$as_me: failed program was:" >&5
22399 sed 's/^/| /' conftest.$ac_ext >&5
22400
22401 ac_cv_cxx_have_std_iterator=no
22402 fi
22403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22404   ac_ext=c
22405 ac_cpp='$CPP $CPPFLAGS'
22406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22409
22410
22411 fi
22412 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
22413 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
22414 if test "$ac_cv_cxx_have_std_iterator" = yes
22415 then
22416
22417 cat >>confdefs.h <<\_ACEOF
22418 #define HAVE_STD_ITERATOR 1
22419 _ACEOF
22420
22421 else
22422
22423 cat >>confdefs.h <<\_ACEOF
22424 #define HAVE_STD_ITERATOR 0
22425 _ACEOF
22426
22427 fi
22428
22429 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
22430 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
22431 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
22432   echo $ECHO_N "(cached) $ECHO_C" >&6
22433 else
22434
22435   ac_ext=cc
22436 ac_cpp='$CXXCPP $CPPFLAGS'
22437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22440
22441   cat >conftest.$ac_ext <<_ACEOF
22442 /* confdefs.h.  */
22443 _ACEOF
22444 cat confdefs.h >>conftest.$ac_ext
22445 cat >>conftest.$ac_ext <<_ACEOF
22446 /* end confdefs.h.  */
22447 #include <iterator>
22448 #ifdef HAVE_NAMESPACES
22449 using namespace std;
22450 #endif
22451 int
22452 main ()
22453 {
22454 bidirectional_iterator<int,int> t; return 0;
22455   ;
22456   return 0;
22457 }
22458 _ACEOF
22459 rm -f conftest.$ac_objext
22460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22461   (eval $ac_compile) 2>conftest.er1
22462   ac_status=$?
22463   grep -v '^ *+' conftest.er1 >conftest.err
22464   rm -f conftest.er1
22465   cat conftest.err >&5
22466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467   (exit $ac_status); } &&
22468          { ac_try='test -z "$ac_cxx_werror_flag"
22469                          || test ! -s conftest.err'
22470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22471   (eval $ac_try) 2>&5
22472   ac_status=$?
22473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474   (exit $ac_status); }; } &&
22475          { ac_try='test -s conftest.$ac_objext'
22476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22477   (eval $ac_try) 2>&5
22478   ac_status=$?
22479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480   (exit $ac_status); }; }; then
22481   ac_cv_cxx_have_bi_iterator=yes
22482 else
22483   echo "$as_me: failed program was:" >&5
22484 sed 's/^/| /' conftest.$ac_ext >&5
22485
22486 ac_cv_cxx_have_bi_iterator=no
22487 fi
22488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22489   ac_ext=c
22490 ac_cpp='$CPP $CPPFLAGS'
22491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22494
22495
22496 fi
22497 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
22498 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
22499 if test "$ac_cv_cxx_have_bi_iterator" = yes
22500 then
22501
22502 cat >>confdefs.h <<\_ACEOF
22503 #define HAVE_BI_ITERATOR 1
22504 _ACEOF
22505
22506 else
22507
22508 cat >>confdefs.h <<\_ACEOF
22509 #define HAVE_BI_ITERATOR 0
22510 _ACEOF
22511
22512 fi
22513
22514 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
22515 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
22516 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
22517   echo $ECHO_N "(cached) $ECHO_C" >&6
22518 else
22519
22520   ac_ext=cc
22521 ac_cpp='$CXXCPP $CPPFLAGS'
22522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22525
22526   cat >conftest.$ac_ext <<_ACEOF
22527 /* confdefs.h.  */
22528 _ACEOF
22529 cat confdefs.h >>conftest.$ac_ext
22530 cat >>conftest.$ac_ext <<_ACEOF
22531 /* end confdefs.h.  */
22532 #include <iterator>
22533 #ifdef HAVE_NAMESPACES
22534 using namespace std;
22535 #endif
22536 int
22537 main ()
22538 {
22539 forward_iterator<int,int> t; return 0;
22540   ;
22541   return 0;
22542 }
22543 _ACEOF
22544 rm -f conftest.$ac_objext
22545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22546   (eval $ac_compile) 2>conftest.er1
22547   ac_status=$?
22548   grep -v '^ *+' conftest.er1 >conftest.err
22549   rm -f conftest.er1
22550   cat conftest.err >&5
22551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552   (exit $ac_status); } &&
22553          { ac_try='test -z "$ac_cxx_werror_flag"
22554                          || test ! -s conftest.err'
22555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22556   (eval $ac_try) 2>&5
22557   ac_status=$?
22558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559   (exit $ac_status); }; } &&
22560          { ac_try='test -s conftest.$ac_objext'
22561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22562   (eval $ac_try) 2>&5
22563   ac_status=$?
22564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565   (exit $ac_status); }; }; then
22566   ac_cv_cxx_have_fwd_iterator=yes
22567 else
22568   echo "$as_me: failed program was:" >&5
22569 sed 's/^/| /' conftest.$ac_ext >&5
22570
22571 ac_cv_cxx_have_fwd_iterator=no
22572 fi
22573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22574   ac_ext=c
22575 ac_cpp='$CPP $CPPFLAGS'
22576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22579
22580
22581 fi
22582 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
22583 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
22584 if test "$ac_cv_cxx_have_fwd_iterator" = yes
22585 then
22586
22587 cat >>confdefs.h <<\_ACEOF
22588 #define HAVE_FWD_ITERATOR 1
22589 _ACEOF
22590
22591 else
22592
22593 cat >>confdefs.h <<\_ACEOF
22594 #define HAVE_FWD_ITERATOR 0
22595 _ACEOF
22596
22597 fi
22598
22599
22600
22601 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
22602 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
22603 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
22604   echo $ECHO_N "(cached) $ECHO_C" >&6
22605 else
22606   ac_ext=cc
22607 ac_cpp='$CXXCPP $CPPFLAGS'
22608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22611
22612    cat >conftest.$ac_ext <<_ACEOF
22613 /* confdefs.h.  */
22614 _ACEOF
22615 cat confdefs.h >>conftest.$ac_ext
22616 cat >>conftest.$ac_ext <<_ACEOF
22617 /* end confdefs.h.  */
22618 #include <math.h>
22619 int
22620 main ()
22621 {
22622 float f; isnan(f);
22623   ;
22624   return 0;
22625 }
22626 _ACEOF
22627 rm -f conftest.$ac_objext
22628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22629   (eval $ac_compile) 2>conftest.er1
22630   ac_status=$?
22631   grep -v '^ *+' conftest.er1 >conftest.err
22632   rm -f conftest.er1
22633   cat conftest.err >&5
22634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635   (exit $ac_status); } &&
22636          { ac_try='test -z "$ac_cxx_werror_flag"
22637                          || test ! -s conftest.err'
22638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22639   (eval $ac_try) 2>&5
22640   ac_status=$?
22641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642   (exit $ac_status); }; } &&
22643          { ac_try='test -s conftest.$ac_objext'
22644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22645   (eval $ac_try) 2>&5
22646   ac_status=$?
22647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648   (exit $ac_status); }; }; then
22649   ac_cv_func_isnan_in_math_h=yes
22650 else
22651   echo "$as_me: failed program was:" >&5
22652 sed 's/^/| /' conftest.$ac_ext >&5
22653
22654 ac_cv_func_isnan_in_math_h=no
22655 fi
22656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22657   ac_ext=c
22658 ac_cpp='$CPP $CPPFLAGS'
22659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22662
22663 fi
22664 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
22665 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
22666
22667
22668 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
22669
22670 cat >>confdefs.h <<\_ACEOF
22671 #define HAVE_ISNAN_IN_MATH_H 1
22672 _ACEOF
22673
22674 fi
22675
22676 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
22677 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
22678 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
22679   echo $ECHO_N "(cached) $ECHO_C" >&6
22680 else
22681   ac_ext=cc
22682 ac_cpp='$CXXCPP $CPPFLAGS'
22683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22686
22687    cat >conftest.$ac_ext <<_ACEOF
22688 /* confdefs.h.  */
22689 _ACEOF
22690 cat confdefs.h >>conftest.$ac_ext
22691 cat >>conftest.$ac_ext <<_ACEOF
22692 /* end confdefs.h.  */
22693 #include <cmath>
22694 int
22695 main ()
22696 {
22697 float f; isnan(f);
22698   ;
22699   return 0;
22700 }
22701 _ACEOF
22702 rm -f conftest.$ac_objext
22703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22704   (eval $ac_compile) 2>conftest.er1
22705   ac_status=$?
22706   grep -v '^ *+' conftest.er1 >conftest.err
22707   rm -f conftest.er1
22708   cat conftest.err >&5
22709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710   (exit $ac_status); } &&
22711          { ac_try='test -z "$ac_cxx_werror_flag"
22712                          || test ! -s conftest.err'
22713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22714   (eval $ac_try) 2>&5
22715   ac_status=$?
22716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717   (exit $ac_status); }; } &&
22718          { ac_try='test -s conftest.$ac_objext'
22719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22720   (eval $ac_try) 2>&5
22721   ac_status=$?
22722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723   (exit $ac_status); }; }; then
22724   ac_cv_func_isnan_in_cmath=yes
22725 else
22726   echo "$as_me: failed program was:" >&5
22727 sed 's/^/| /' conftest.$ac_ext >&5
22728
22729 ac_cv_func_isnan_in_cmath=no
22730 fi
22731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22732   ac_ext=c
22733 ac_cpp='$CPP $CPPFLAGS'
22734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22737
22738 fi
22739 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
22740 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
22741
22742 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
22743
22744 cat >>confdefs.h <<\_ACEOF
22745 #define HAVE_ISNAN_IN_CMATH 1
22746 _ACEOF
22747
22748 fi
22749
22750 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
22751 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
22752 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
22753   echo $ECHO_N "(cached) $ECHO_C" >&6
22754 else
22755   ac_ext=cc
22756 ac_cpp='$CXXCPP $CPPFLAGS'
22757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22760
22761    cat >conftest.$ac_ext <<_ACEOF
22762 /* confdefs.h.  */
22763 _ACEOF
22764 cat confdefs.h >>conftest.$ac_ext
22765 cat >>conftest.$ac_ext <<_ACEOF
22766 /* end confdefs.h.  */
22767 #include <cmath>
22768 int
22769 main ()
22770 {
22771 float f; std::isnan(f);
22772   ;
22773   return 0;
22774 }
22775 _ACEOF
22776 rm -f conftest.$ac_objext
22777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22778   (eval $ac_compile) 2>conftest.er1
22779   ac_status=$?
22780   grep -v '^ *+' conftest.er1 >conftest.err
22781   rm -f conftest.er1
22782   cat conftest.err >&5
22783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784   (exit $ac_status); } &&
22785          { ac_try='test -z "$ac_cxx_werror_flag"
22786                          || test ! -s conftest.err'
22787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22788   (eval $ac_try) 2>&5
22789   ac_status=$?
22790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791   (exit $ac_status); }; } &&
22792          { ac_try='test -s conftest.$ac_objext'
22793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22794   (eval $ac_try) 2>&5
22795   ac_status=$?
22796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797   (exit $ac_status); }; }; then
22798   ac_cv_func_std_isnan_in_cmath=yes
22799 else
22800   echo "$as_me: failed program was:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22802
22803 ac_cv_func_std_isnan_in_cmath=no
22804 fi
22805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22806   ac_ext=c
22807 ac_cpp='$CPP $CPPFLAGS'
22808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22811
22812 fi
22813 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
22814 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
22815
22816 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
22817
22818 cat >>confdefs.h <<\_ACEOF
22819 #define HAVE_STD_ISNAN_IN_CMATH 1
22820 _ACEOF
22821
22822 fi
22823
22824
22825 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
22826 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
22827 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
22828   echo $ECHO_N "(cached) $ECHO_C" >&6
22829 else
22830   ac_ext=cc
22831 ac_cpp='$CXXCPP $CPPFLAGS'
22832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22835
22836    cat >conftest.$ac_ext <<_ACEOF
22837 /* confdefs.h.  */
22838 _ACEOF
22839 cat confdefs.h >>conftest.$ac_ext
22840 cat >>conftest.$ac_ext <<_ACEOF
22841 /* end confdefs.h.  */
22842 #include <math.h>
22843 int
22844 main ()
22845 {
22846 float f; isinf(f);
22847   ;
22848   return 0;
22849 }
22850 _ACEOF
22851 rm -f conftest.$ac_objext
22852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22853   (eval $ac_compile) 2>conftest.er1
22854   ac_status=$?
22855   grep -v '^ *+' conftest.er1 >conftest.err
22856   rm -f conftest.er1
22857   cat conftest.err >&5
22858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859   (exit $ac_status); } &&
22860          { ac_try='test -z "$ac_cxx_werror_flag"
22861                          || test ! -s conftest.err'
22862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22863   (eval $ac_try) 2>&5
22864   ac_status=$?
22865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866   (exit $ac_status); }; } &&
22867          { ac_try='test -s conftest.$ac_objext'
22868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22869   (eval $ac_try) 2>&5
22870   ac_status=$?
22871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872   (exit $ac_status); }; }; then
22873   ac_cv_func_isinf_in_math_h=yes
22874 else
22875   echo "$as_me: failed program was:" >&5
22876 sed 's/^/| /' conftest.$ac_ext >&5
22877
22878 ac_cv_func_isinf_in_math_h=no
22879 fi
22880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22881   ac_ext=c
22882 ac_cpp='$CPP $CPPFLAGS'
22883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22886
22887 fi
22888 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22889 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
22890
22891 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
22892
22893 cat >>confdefs.h <<\_ACEOF
22894 #define HAVE_ISINF_IN_MATH_H 1
22895 _ACEOF
22896
22897 fi
22898
22899 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22900 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22901 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22902   echo $ECHO_N "(cached) $ECHO_C" >&6
22903 else
22904   ac_ext=cc
22905 ac_cpp='$CXXCPP $CPPFLAGS'
22906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22909
22910    cat >conftest.$ac_ext <<_ACEOF
22911 /* confdefs.h.  */
22912 _ACEOF
22913 cat confdefs.h >>conftest.$ac_ext
22914 cat >>conftest.$ac_ext <<_ACEOF
22915 /* end confdefs.h.  */
22916 #include <cmath>
22917 int
22918 main ()
22919 {
22920 float f; isinf(f);
22921   ;
22922   return 0;
22923 }
22924 _ACEOF
22925 rm -f conftest.$ac_objext
22926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22927   (eval $ac_compile) 2>conftest.er1
22928   ac_status=$?
22929   grep -v '^ *+' conftest.er1 >conftest.err
22930   rm -f conftest.er1
22931   cat conftest.err >&5
22932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22933   (exit $ac_status); } &&
22934          { ac_try='test -z "$ac_cxx_werror_flag"
22935                          || test ! -s conftest.err'
22936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22937   (eval $ac_try) 2>&5
22938   ac_status=$?
22939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940   (exit $ac_status); }; } &&
22941          { ac_try='test -s conftest.$ac_objext'
22942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22943   (eval $ac_try) 2>&5
22944   ac_status=$?
22945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946   (exit $ac_status); }; }; then
22947   ac_cv_func_isinf_in_cmath=yes
22948 else
22949   echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22951
22952 ac_cv_func_isinf_in_cmath=no
22953 fi
22954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22955   ac_ext=c
22956 ac_cpp='$CPP $CPPFLAGS'
22957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22960
22961 fi
22962 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22963 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22964
22965 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
22966
22967 cat >>confdefs.h <<\_ACEOF
22968 #define HAVE_ISINF_IN_CMATH 1
22969 _ACEOF
22970
22971 fi
22972
22973 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22974 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22975 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22976   echo $ECHO_N "(cached) $ECHO_C" >&6
22977 else
22978   ac_ext=cc
22979 ac_cpp='$CXXCPP $CPPFLAGS'
22980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22983
22984    cat >conftest.$ac_ext <<_ACEOF
22985 /* confdefs.h.  */
22986 _ACEOF
22987 cat confdefs.h >>conftest.$ac_ext
22988 cat >>conftest.$ac_ext <<_ACEOF
22989 /* end confdefs.h.  */
22990 #include <cmath>
22991 int
22992 main ()
22993 {
22994 float f; std::isinf(f)}
22995   ;
22996   return 0;
22997 }
22998 _ACEOF
22999 rm -f conftest.$ac_objext
23000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23001   (eval $ac_compile) 2>conftest.er1
23002   ac_status=$?
23003   grep -v '^ *+' conftest.er1 >conftest.err
23004   rm -f conftest.er1
23005   cat conftest.err >&5
23006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007   (exit $ac_status); } &&
23008          { ac_try='test -z "$ac_cxx_werror_flag"
23009                          || test ! -s conftest.err'
23010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23011   (eval $ac_try) 2>&5
23012   ac_status=$?
23013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014   (exit $ac_status); }; } &&
23015          { ac_try='test -s conftest.$ac_objext'
23016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23017   (eval $ac_try) 2>&5
23018   ac_status=$?
23019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020   (exit $ac_status); }; }; then
23021   ac_cv_func_std_isinf_in_cmath=yes
23022 else
23023   echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23025
23026 ac_cv_func_std_isinf_in_cmath=no
23027 fi
23028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23029   ac_ext=c
23030 ac_cpp='$CPP $CPPFLAGS'
23031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23034
23035 fi
23036 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
23037 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
23038
23039 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
23040
23041 cat >>confdefs.h <<\_ACEOF
23042 #define HAVE_STD_ISINF_IN_CMATH 1
23043 _ACEOF
23044
23045 fi
23046
23047 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
23048 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
23049 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
23050   echo $ECHO_N "(cached) $ECHO_C" >&6
23051 else
23052   ac_ext=cc
23053 ac_cpp='$CXXCPP $CPPFLAGS'
23054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23057
23058    cat >conftest.$ac_ext <<_ACEOF
23059 /* confdefs.h.  */
23060 _ACEOF
23061 cat confdefs.h >>conftest.$ac_ext
23062 cat >>conftest.$ac_ext <<_ACEOF
23063 /* end confdefs.h.  */
23064 #include <ieeefp.h>
23065 int
23066 main ()
23067 {
23068 float f; finite(f);
23069   ;
23070   return 0;
23071 }
23072 _ACEOF
23073 rm -f conftest.$ac_objext
23074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23075   (eval $ac_compile) 2>conftest.er1
23076   ac_status=$?
23077   grep -v '^ *+' conftest.er1 >conftest.err
23078   rm -f conftest.er1
23079   cat conftest.err >&5
23080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081   (exit $ac_status); } &&
23082          { ac_try='test -z "$ac_cxx_werror_flag"
23083                          || test ! -s conftest.err'
23084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23085   (eval $ac_try) 2>&5
23086   ac_status=$?
23087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088   (exit $ac_status); }; } &&
23089          { ac_try='test -s conftest.$ac_objext'
23090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23091   (eval $ac_try) 2>&5
23092   ac_status=$?
23093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094   (exit $ac_status); }; }; then
23095   ac_cv_func_finite_in_ieeefp_h=yes
23096 else
23097   echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23099
23100 ac_cv_func_finite_in_ieeefp_h=no
23101 fi
23102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23103   ac_ext=c
23104 ac_cpp='$CPP $CPPFLAGS'
23105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23108
23109 fi
23110 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
23111 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
23112
23113 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
23114
23115 cat >>confdefs.h <<\_ACEOF
23116 #define HAVE_FINITE_IN_IEEEFP_H 1
23117 _ACEOF
23118
23119 fi
23120
23121
23122
23123 echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
23124 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
23125 if test "${ac_cv_func_rand48+set}" = set; then
23126   echo $ECHO_N "(cached) $ECHO_C" >&6
23127 else
23128   ac_ext=cc
23129 ac_cpp='$CXXCPP $CPPFLAGS'
23130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23133
23134    cat >conftest.$ac_ext <<_ACEOF
23135 /* confdefs.h.  */
23136 _ACEOF
23137 cat confdefs.h >>conftest.$ac_ext
23138 cat >>conftest.$ac_ext <<_ACEOF
23139 /* end confdefs.h.  */
23140 #include <stdlib.h>
23141 int
23142 main ()
23143 {
23144 srand48(0);lrand48();drand48();
23145   ;
23146   return 0;
23147 }
23148 _ACEOF
23149 rm -f conftest.$ac_objext
23150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23151   (eval $ac_compile) 2>conftest.er1
23152   ac_status=$?
23153   grep -v '^ *+' conftest.er1 >conftest.err
23154   rm -f conftest.er1
23155   cat conftest.err >&5
23156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157   (exit $ac_status); } &&
23158          { ac_try='test -z "$ac_cxx_werror_flag"
23159                          || test ! -s conftest.err'
23160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23161   (eval $ac_try) 2>&5
23162   ac_status=$?
23163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164   (exit $ac_status); }; } &&
23165          { ac_try='test -s conftest.$ac_objext'
23166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23167   (eval $ac_try) 2>&5
23168   ac_status=$?
23169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170   (exit $ac_status); }; }; then
23171   ac_cv_func_rand48=yes
23172 else
23173   echo "$as_me: failed program was:" >&5
23174 sed 's/^/| /' conftest.$ac_ext >&5
23175
23176 ac_cv_func_rand48=no
23177 fi
23178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23179   ac_ext=c
23180 ac_cpp='$CPP $CPPFLAGS'
23181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23184
23185 fi
23186 echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
23187 echo "${ECHO_T}$ac_cv_func_rand48" >&6
23188
23189 if test "$ac_cv_func_rand48" = "yes" ; then
23190
23191 cat >>confdefs.h <<\_ACEOF
23192 #define HAVE_RAND48 1
23193 _ACEOF
23194
23195 fi
23196
23197
23198 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23199 # for constant arguments.  Useless!
23200 echo "$as_me:$LINENO: checking for working alloca.h" >&5
23201 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
23202 if test "${ac_cv_working_alloca_h+set}" = set; then
23203   echo $ECHO_N "(cached) $ECHO_C" >&6
23204 else
23205   cat >conftest.$ac_ext <<_ACEOF
23206 /* confdefs.h.  */
23207 _ACEOF
23208 cat confdefs.h >>conftest.$ac_ext
23209 cat >>conftest.$ac_ext <<_ACEOF
23210 /* end confdefs.h.  */
23211 #include <alloca.h>
23212 int
23213 main ()
23214 {
23215 char *p = (char *) alloca (2 * sizeof (int));
23216   ;
23217   return 0;
23218 }
23219 _ACEOF
23220 rm -f conftest.$ac_objext conftest$ac_exeext
23221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23222   (eval $ac_link) 2>conftest.er1
23223   ac_status=$?
23224   grep -v '^ *+' conftest.er1 >conftest.err
23225   rm -f conftest.er1
23226   cat conftest.err >&5
23227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228   (exit $ac_status); } &&
23229          { ac_try='test -z "$ac_c_werror_flag"
23230                          || test ! -s conftest.err'
23231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23232   (eval $ac_try) 2>&5
23233   ac_status=$?
23234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235   (exit $ac_status); }; } &&
23236          { ac_try='test -s conftest$ac_exeext'
23237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23238   (eval $ac_try) 2>&5
23239   ac_status=$?
23240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241   (exit $ac_status); }; }; then
23242   ac_cv_working_alloca_h=yes
23243 else
23244   echo "$as_me: failed program was:" >&5
23245 sed 's/^/| /' conftest.$ac_ext >&5
23246
23247 ac_cv_working_alloca_h=no
23248 fi
23249 rm -f conftest.err conftest.$ac_objext \
23250       conftest$ac_exeext conftest.$ac_ext
23251 fi
23252 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23253 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
23254 if test $ac_cv_working_alloca_h = yes; then
23255
23256 cat >>confdefs.h <<\_ACEOF
23257 #define HAVE_ALLOCA_H 1
23258 _ACEOF
23259
23260 fi
23261
23262 echo "$as_me:$LINENO: checking for alloca" >&5
23263 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
23264 if test "${ac_cv_func_alloca_works+set}" = set; then
23265   echo $ECHO_N "(cached) $ECHO_C" >&6
23266 else
23267   cat >conftest.$ac_ext <<_ACEOF
23268 /* confdefs.h.  */
23269 _ACEOF
23270 cat confdefs.h >>conftest.$ac_ext
23271 cat >>conftest.$ac_ext <<_ACEOF
23272 /* end confdefs.h.  */
23273 #ifdef __GNUC__
23274 # define alloca __builtin_alloca
23275 #else
23276 # ifdef _MSC_VER
23277 #  include <malloc.h>
23278 #  define alloca _alloca
23279 # else
23280 #  if HAVE_ALLOCA_H
23281 #   include <alloca.h>
23282 #  else
23283 #   ifdef _AIX
23284  #pragma alloca
23285 #   else
23286 #    ifndef alloca /* predefined by HP cc +Olibcalls */
23287 char *alloca ();
23288 #    endif
23289 #   endif
23290 #  endif
23291 # endif
23292 #endif
23293
23294 int
23295 main ()
23296 {
23297 char *p = (char *) alloca (1);
23298   ;
23299   return 0;
23300 }
23301 _ACEOF
23302 rm -f conftest.$ac_objext conftest$ac_exeext
23303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23304   (eval $ac_link) 2>conftest.er1
23305   ac_status=$?
23306   grep -v '^ *+' conftest.er1 >conftest.err
23307   rm -f conftest.er1
23308   cat conftest.err >&5
23309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310   (exit $ac_status); } &&
23311          { ac_try='test -z "$ac_c_werror_flag"
23312                          || test ! -s conftest.err'
23313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23314   (eval $ac_try) 2>&5
23315   ac_status=$?
23316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317   (exit $ac_status); }; } &&
23318          { ac_try='test -s conftest$ac_exeext'
23319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23320   (eval $ac_try) 2>&5
23321   ac_status=$?
23322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323   (exit $ac_status); }; }; then
23324   ac_cv_func_alloca_works=yes
23325 else
23326   echo "$as_me: failed program was:" >&5
23327 sed 's/^/| /' conftest.$ac_ext >&5
23328
23329 ac_cv_func_alloca_works=no
23330 fi
23331 rm -f conftest.err conftest.$ac_objext \
23332       conftest$ac_exeext conftest.$ac_ext
23333 fi
23334 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23335 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
23336
23337 if test $ac_cv_func_alloca_works = yes; then
23338
23339 cat >>confdefs.h <<\_ACEOF
23340 #define HAVE_ALLOCA 1
23341 _ACEOF
23342
23343 else
23344   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23345 # that cause trouble.  Some versions do not even contain alloca or
23346 # contain a buggy version.  If you still want to use their alloca,
23347 # use ar to extract alloca.o from them instead of compiling alloca.c.
23348
23349 ALLOCA=alloca.$ac_objext
23350
23351 cat >>confdefs.h <<\_ACEOF
23352 #define C_ALLOCA 1
23353 _ACEOF
23354
23355
23356 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23357 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
23358 if test "${ac_cv_os_cray+set}" = set; then
23359   echo $ECHO_N "(cached) $ECHO_C" >&6
23360 else
23361   cat >conftest.$ac_ext <<_ACEOF
23362 /* confdefs.h.  */
23363 _ACEOF
23364 cat confdefs.h >>conftest.$ac_ext
23365 cat >>conftest.$ac_ext <<_ACEOF
23366 /* end confdefs.h.  */
23367 #if defined(CRAY) && ! defined(CRAY2)
23368 webecray
23369 #else
23370 wenotbecray
23371 #endif
23372
23373 _ACEOF
23374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23375   $EGREP "webecray" >/dev/null 2>&1; then
23376   ac_cv_os_cray=yes
23377 else
23378   ac_cv_os_cray=no
23379 fi
23380 rm -f conftest*
23381
23382 fi
23383 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23384 echo "${ECHO_T}$ac_cv_os_cray" >&6
23385 if test $ac_cv_os_cray = yes; then
23386   for ac_func in _getb67 GETB67 getb67; do
23387     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23388 echo "$as_me:$LINENO: checking for $ac_func" >&5
23389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23390 if eval "test \"\${$as_ac_var+set}\" = set"; then
23391   echo $ECHO_N "(cached) $ECHO_C" >&6
23392 else
23393   cat >conftest.$ac_ext <<_ACEOF
23394 /* confdefs.h.  */
23395 _ACEOF
23396 cat confdefs.h >>conftest.$ac_ext
23397 cat >>conftest.$ac_ext <<_ACEOF
23398 /* end confdefs.h.  */
23399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23401 #define $ac_func innocuous_$ac_func
23402
23403 /* System header to define __stub macros and hopefully few prototypes,
23404     which can conflict with char $ac_func (); below.
23405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23406     <limits.h> exists even on freestanding compilers.  */
23407
23408 #ifdef __STDC__
23409 # include <limits.h>
23410 #else
23411 # include <assert.h>
23412 #endif
23413
23414 #undef $ac_func
23415
23416 /* Override any gcc2 internal prototype to avoid an error.  */
23417 #ifdef __cplusplus
23418 extern "C"
23419 {
23420 #endif
23421 /* We use char because int might match the return type of a gcc2
23422    builtin and then its argument prototype would still apply.  */
23423 char $ac_func ();
23424 /* The GNU C library defines this for functions which it implements
23425     to always fail with ENOSYS.  Some functions are actually named
23426     something starting with __ and the normal name is an alias.  */
23427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23428 choke me
23429 #else
23430 char (*f) () = $ac_func;
23431 #endif
23432 #ifdef __cplusplus
23433 }
23434 #endif
23435
23436 int
23437 main ()
23438 {
23439 return f != $ac_func;
23440   ;
23441   return 0;
23442 }
23443 _ACEOF
23444 rm -f conftest.$ac_objext conftest$ac_exeext
23445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23446   (eval $ac_link) 2>conftest.er1
23447   ac_status=$?
23448   grep -v '^ *+' conftest.er1 >conftest.err
23449   rm -f conftest.er1
23450   cat conftest.err >&5
23451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452   (exit $ac_status); } &&
23453          { ac_try='test -z "$ac_c_werror_flag"
23454                          || test ! -s conftest.err'
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); }; } &&
23460          { ac_try='test -s conftest$ac_exeext'
23461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23462   (eval $ac_try) 2>&5
23463   ac_status=$?
23464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465   (exit $ac_status); }; }; then
23466   eval "$as_ac_var=yes"
23467 else
23468   echo "$as_me: failed program was:" >&5
23469 sed 's/^/| /' conftest.$ac_ext >&5
23470
23471 eval "$as_ac_var=no"
23472 fi
23473 rm -f conftest.err conftest.$ac_objext \
23474       conftest$ac_exeext conftest.$ac_ext
23475 fi
23476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23478 if test `eval echo '${'$as_ac_var'}'` = yes; then
23479
23480 cat >>confdefs.h <<_ACEOF
23481 #define CRAY_STACKSEG_END $ac_func
23482 _ACEOF
23483
23484     break
23485 fi
23486
23487   done
23488 fi
23489
23490 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23491 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
23492 if test "${ac_cv_c_stack_direction+set}" = set; then
23493   echo $ECHO_N "(cached) $ECHO_C" >&6
23494 else
23495   if test "$cross_compiling" = yes; then
23496   ac_cv_c_stack_direction=0
23497 else
23498   cat >conftest.$ac_ext <<_ACEOF
23499 /* confdefs.h.  */
23500 _ACEOF
23501 cat confdefs.h >>conftest.$ac_ext
23502 cat >>conftest.$ac_ext <<_ACEOF
23503 /* end confdefs.h.  */
23504 int
23505 find_stack_direction ()
23506 {
23507   static char *addr = 0;
23508   auto char dummy;
23509   if (addr == 0)
23510     {
23511       addr = &dummy;
23512       return find_stack_direction ();
23513     }
23514   else
23515     return (&dummy > addr) ? 1 : -1;
23516 }
23517
23518 int
23519 main ()
23520 {
23521   exit (find_stack_direction () < 0);
23522 }
23523 _ACEOF
23524 rm -f conftest$ac_exeext
23525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23526   (eval $ac_link) 2>&5
23527   ac_status=$?
23528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23531   (eval $ac_try) 2>&5
23532   ac_status=$?
23533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534   (exit $ac_status); }; }; then
23535   ac_cv_c_stack_direction=1
23536 else
23537   echo "$as_me: program exited with status $ac_status" >&5
23538 echo "$as_me: failed program was:" >&5
23539 sed 's/^/| /' conftest.$ac_ext >&5
23540
23541 ( exit $ac_status )
23542 ac_cv_c_stack_direction=-1
23543 fi
23544 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23545 fi
23546 fi
23547 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23548 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
23549
23550 cat >>confdefs.h <<_ACEOF
23551 #define STACK_DIRECTION $ac_cv_c_stack_direction
23552 _ACEOF
23553
23554
23555 fi
23556
23557
23558
23559 for ac_header in stdlib.h unistd.h
23560 do
23561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23563   echo "$as_me:$LINENO: checking for $ac_header" >&5
23564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23566   echo $ECHO_N "(cached) $ECHO_C" >&6
23567 fi
23568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23570 else
23571   # Is the header compilable?
23572 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23574 cat >conftest.$ac_ext <<_ACEOF
23575 /* confdefs.h.  */
23576 _ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h.  */
23580 $ac_includes_default
23581 #include <$ac_header>
23582 _ACEOF
23583 rm -f conftest.$ac_objext
23584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23585   (eval $ac_compile) 2>conftest.er1
23586   ac_status=$?
23587   grep -v '^ *+' conftest.er1 >conftest.err
23588   rm -f conftest.er1
23589   cat conftest.err >&5
23590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591   (exit $ac_status); } &&
23592          { ac_try='test -z "$ac_c_werror_flag"
23593                          || test ! -s conftest.err'
23594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23595   (eval $ac_try) 2>&5
23596   ac_status=$?
23597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598   (exit $ac_status); }; } &&
23599          { ac_try='test -s conftest.$ac_objext'
23600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23601   (eval $ac_try) 2>&5
23602   ac_status=$?
23603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604   (exit $ac_status); }; }; then
23605   ac_header_compiler=yes
23606 else
23607   echo "$as_me: failed program was:" >&5
23608 sed 's/^/| /' conftest.$ac_ext >&5
23609
23610 ac_header_compiler=no
23611 fi
23612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23613 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23614 echo "${ECHO_T}$ac_header_compiler" >&6
23615
23616 # Is the header present?
23617 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23619 cat >conftest.$ac_ext <<_ACEOF
23620 /* confdefs.h.  */
23621 _ACEOF
23622 cat confdefs.h >>conftest.$ac_ext
23623 cat >>conftest.$ac_ext <<_ACEOF
23624 /* end confdefs.h.  */
23625 #include <$ac_header>
23626 _ACEOF
23627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23628   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23629   ac_status=$?
23630   grep -v '^ *+' conftest.er1 >conftest.err
23631   rm -f conftest.er1
23632   cat conftest.err >&5
23633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634   (exit $ac_status); } >/dev/null; then
23635   if test -s conftest.err; then
23636     ac_cpp_err=$ac_c_preproc_warn_flag
23637     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23638   else
23639     ac_cpp_err=
23640   fi
23641 else
23642   ac_cpp_err=yes
23643 fi
23644 if test -z "$ac_cpp_err"; then
23645   ac_header_preproc=yes
23646 else
23647   echo "$as_me: failed program was:" >&5
23648 sed 's/^/| /' conftest.$ac_ext >&5
23649
23650   ac_header_preproc=no
23651 fi
23652 rm -f conftest.err conftest.$ac_ext
23653 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23654 echo "${ECHO_T}$ac_header_preproc" >&6
23655
23656 # So?  What about this header?
23657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23658   yes:no: )
23659     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23660 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23661     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23663     ac_header_preproc=yes
23664     ;;
23665   no:yes:* )
23666     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23667 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23668     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23669 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23670     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23671 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23672     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23673 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23674     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23676     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23677 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23678     (
23679       cat <<\_ASBOX
23680 ## ----------------------------------- ##
23681 ## Report this to llvmbugs@cs.uiuc.edu ##
23682 ## ----------------------------------- ##
23683 _ASBOX
23684     ) |
23685       sed "s/^/$as_me: WARNING:     /" >&2
23686     ;;
23687 esac
23688 echo "$as_me:$LINENO: checking for $ac_header" >&5
23689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23691   echo $ECHO_N "(cached) $ECHO_C" >&6
23692 else
23693   eval "$as_ac_Header=\$ac_header_preproc"
23694 fi
23695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23697
23698 fi
23699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23700   cat >>confdefs.h <<_ACEOF
23701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23702 _ACEOF
23703
23704 fi
23705
23706 done
23707
23708
23709 for ac_func in getpagesize
23710 do
23711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23712 echo "$as_me:$LINENO: checking for $ac_func" >&5
23713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23714 if eval "test \"\${$as_ac_var+set}\" = set"; then
23715   echo $ECHO_N "(cached) $ECHO_C" >&6
23716 else
23717   cat >conftest.$ac_ext <<_ACEOF
23718 /* confdefs.h.  */
23719 _ACEOF
23720 cat confdefs.h >>conftest.$ac_ext
23721 cat >>conftest.$ac_ext <<_ACEOF
23722 /* end confdefs.h.  */
23723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23725 #define $ac_func innocuous_$ac_func
23726
23727 /* System header to define __stub macros and hopefully few prototypes,
23728     which can conflict with char $ac_func (); below.
23729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23730     <limits.h> exists even on freestanding compilers.  */
23731
23732 #ifdef __STDC__
23733 # include <limits.h>
23734 #else
23735 # include <assert.h>
23736 #endif
23737
23738 #undef $ac_func
23739
23740 /* Override any gcc2 internal prototype to avoid an error.  */
23741 #ifdef __cplusplus
23742 extern "C"
23743 {
23744 #endif
23745 /* We use char because int might match the return type of a gcc2
23746    builtin and then its argument prototype would still apply.  */
23747 char $ac_func ();
23748 /* The GNU C library defines this for functions which it implements
23749     to always fail with ENOSYS.  Some functions are actually named
23750     something starting with __ and the normal name is an alias.  */
23751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23752 choke me
23753 #else
23754 char (*f) () = $ac_func;
23755 #endif
23756 #ifdef __cplusplus
23757 }
23758 #endif
23759
23760 int
23761 main ()
23762 {
23763 return f != $ac_func;
23764   ;
23765   return 0;
23766 }
23767 _ACEOF
23768 rm -f conftest.$ac_objext conftest$ac_exeext
23769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23770   (eval $ac_link) 2>conftest.er1
23771   ac_status=$?
23772   grep -v '^ *+' conftest.er1 >conftest.err
23773   rm -f conftest.er1
23774   cat conftest.err >&5
23775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776   (exit $ac_status); } &&
23777          { ac_try='test -z "$ac_c_werror_flag"
23778                          || test ! -s conftest.err'
23779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23780   (eval $ac_try) 2>&5
23781   ac_status=$?
23782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783   (exit $ac_status); }; } &&
23784          { ac_try='test -s conftest$ac_exeext'
23785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23786   (eval $ac_try) 2>&5
23787   ac_status=$?
23788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789   (exit $ac_status); }; }; then
23790   eval "$as_ac_var=yes"
23791 else
23792   echo "$as_me: failed program was:" >&5
23793 sed 's/^/| /' conftest.$ac_ext >&5
23794
23795 eval "$as_ac_var=no"
23796 fi
23797 rm -f conftest.err conftest.$ac_objext \
23798       conftest$ac_exeext conftest.$ac_ext
23799 fi
23800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23802 if test `eval echo '${'$as_ac_var'}'` = yes; then
23803   cat >>confdefs.h <<_ACEOF
23804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23805 _ACEOF
23806
23807 fi
23808 done
23809
23810 echo "$as_me:$LINENO: checking for working mmap" >&5
23811 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23812 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23813   echo $ECHO_N "(cached) $ECHO_C" >&6
23814 else
23815   if test "$cross_compiling" = yes; then
23816   ac_cv_func_mmap_fixed_mapped=no
23817 else
23818   cat >conftest.$ac_ext <<_ACEOF
23819 /* confdefs.h.  */
23820 _ACEOF
23821 cat confdefs.h >>conftest.$ac_ext
23822 cat >>conftest.$ac_ext <<_ACEOF
23823 /* end confdefs.h.  */
23824 $ac_includes_default
23825 /* malloc might have been renamed as rpl_malloc. */
23826 #undef malloc
23827
23828 /* Thanks to Mike Haertel and Jim Avera for this test.
23829    Here is a matrix of mmap possibilities:
23830         mmap private not fixed
23831         mmap private fixed at somewhere currently unmapped
23832         mmap private fixed at somewhere already mapped
23833         mmap shared not fixed
23834         mmap shared fixed at somewhere currently unmapped
23835         mmap shared fixed at somewhere already mapped
23836    For private mappings, we should verify that changes cannot be read()
23837    back from the file, nor mmap's back from the file at a different
23838    address.  (There have been systems where private was not correctly
23839    implemented like the infamous i386 svr4.0, and systems where the
23840    VM page cache was not coherent with the file system buffer cache
23841    like early versions of FreeBSD and possibly contemporary NetBSD.)
23842    For shared mappings, we should conversely verify that changes get
23843    propagated back to all the places they're supposed to be.
23844
23845    Grep wants private fixed already mapped.
23846    The main things grep needs to know about mmap are:
23847    * does it exist and is it safe to write into the mmap'd area
23848    * how to use it (BSD variants)  */
23849
23850 #include <fcntl.h>
23851 #include <sys/mman.h>
23852
23853 #if !STDC_HEADERS && !HAVE_STDLIB_H
23854 char *malloc ();
23855 #endif
23856
23857 /* This mess was copied from the GNU getpagesize.h.  */
23858 #if !HAVE_GETPAGESIZE
23859 /* Assume that all systems that can run configure have sys/param.h.  */
23860 # if !HAVE_SYS_PARAM_H
23861 #  define HAVE_SYS_PARAM_H 1
23862 # endif
23863
23864 # ifdef _SC_PAGESIZE
23865 #  define getpagesize() sysconf(_SC_PAGESIZE)
23866 # else /* no _SC_PAGESIZE */
23867 #  if HAVE_SYS_PARAM_H
23868 #   include <sys/param.h>
23869 #   ifdef EXEC_PAGESIZE
23870 #    define getpagesize() EXEC_PAGESIZE
23871 #   else /* no EXEC_PAGESIZE */
23872 #    ifdef NBPG
23873 #     define getpagesize() NBPG * CLSIZE
23874 #     ifndef CLSIZE
23875 #      define CLSIZE 1
23876 #     endif /* no CLSIZE */
23877 #    else /* no NBPG */
23878 #     ifdef NBPC
23879 #      define getpagesize() NBPC
23880 #     else /* no NBPC */
23881 #      ifdef PAGESIZE
23882 #       define getpagesize() PAGESIZE
23883 #      endif /* PAGESIZE */
23884 #     endif /* no NBPC */
23885 #    endif /* no NBPG */
23886 #   endif /* no EXEC_PAGESIZE */
23887 #  else /* no HAVE_SYS_PARAM_H */
23888 #   define getpagesize() 8192   /* punt totally */
23889 #  endif /* no HAVE_SYS_PARAM_H */
23890 # endif /* no _SC_PAGESIZE */
23891
23892 #endif /* no HAVE_GETPAGESIZE */
23893
23894 int
23895 main ()
23896 {
23897   char *data, *data2, *data3;
23898   int i, pagesize;
23899   int fd;
23900
23901   pagesize = getpagesize ();
23902
23903   /* First, make a file with some known garbage in it. */
23904   data = (char *) malloc (pagesize);
23905   if (!data)
23906     exit (1);
23907   for (i = 0; i < pagesize; ++i)
23908     *(data + i) = rand ();
23909   umask (0);
23910   fd = creat ("conftest.mmap", 0600);
23911   if (fd < 0)
23912     exit (1);
23913   if (write (fd, data, pagesize) != pagesize)
23914     exit (1);
23915   close (fd);
23916
23917   /* Next, try to mmap the file at a fixed address which already has
23918      something else allocated at it.  If we can, also make sure that
23919      we see the same garbage.  */
23920   fd = open ("conftest.mmap", O_RDWR);
23921   if (fd < 0)
23922     exit (1);
23923   data2 = (char *) malloc (2 * pagesize);
23924   if (!data2)
23925     exit (1);
23926   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
23927   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23928                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
23929     exit (1);
23930   for (i = 0; i < pagesize; ++i)
23931     if (*(data + i) != *(data2 + i))
23932       exit (1);
23933
23934   /* Finally, make sure that changes to the mapped area do not
23935      percolate back to the file as seen by read().  (This is a bug on
23936      some variants of i386 svr4.0.)  */
23937   for (i = 0; i < pagesize; ++i)
23938     *(data2 + i) = *(data2 + i) + 1;
23939   data3 = (char *) malloc (pagesize);
23940   if (!data3)
23941     exit (1);
23942   if (read (fd, data3, pagesize) != pagesize)
23943     exit (1);
23944   for (i = 0; i < pagesize; ++i)
23945     if (*(data + i) != *(data3 + i))
23946       exit (1);
23947   close (fd);
23948   exit (0);
23949 }
23950 _ACEOF
23951 rm -f conftest$ac_exeext
23952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23953   (eval $ac_link) 2>&5
23954   ac_status=$?
23955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23958   (eval $ac_try) 2>&5
23959   ac_status=$?
23960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961   (exit $ac_status); }; }; then
23962   ac_cv_func_mmap_fixed_mapped=yes
23963 else
23964   echo "$as_me: program exited with status $ac_status" >&5
23965 echo "$as_me: failed program was:" >&5
23966 sed 's/^/| /' conftest.$ac_ext >&5
23967
23968 ( exit $ac_status )
23969 ac_cv_func_mmap_fixed_mapped=no
23970 fi
23971 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23972 fi
23973 fi
23974 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23975 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23976 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23977
23978 cat >>confdefs.h <<\_ACEOF
23979 #define HAVE_MMAP 1
23980 _ACEOF
23981
23982 fi
23983 rm -f conftest.mmap
23984
23985 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23986 then
23987         { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23988 echo "$as_me: WARNING: mmap() required but not found" >&2;}
23989 fi
23990 echo "$as_me:$LINENO: checking for mmap of files" >&5
23991 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23992 if test "${ac_cv_func_mmap_file+set}" = set; then
23993   echo $ECHO_N "(cached) $ECHO_C" >&6
23994 else
23995    ac_ext=c
23996 ac_cpp='$CPP $CPPFLAGS'
23997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24000
24001   if test "$cross_compiling" = yes; then
24002   ac_cv_func_mmap_file=no
24003 else
24004   cat >conftest.$ac_ext <<_ACEOF
24005
24006     /* confdefs.h.  */
24007 _ACEOF
24008 cat confdefs.h >>conftest.$ac_ext
24009 cat >>conftest.$ac_ext <<_ACEOF
24010 /* end confdefs.h.  */
24011
24012 #include <sys/types.h>
24013 #include <sys/mman.h>
24014 #include <fcntl.h>
24015
24016 int
24017 main ()
24018 {
24019
24020   int fd;
24021   fd = creat ("foo",0777);
24022   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
24023   unlink ("foo");
24024   return (fd != (int) MAP_FAILED);
24025   ;
24026   return 0;
24027 }
24028 _ACEOF
24029 rm -f conftest$ac_exeext
24030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24031   (eval $ac_link) 2>&5
24032   ac_status=$?
24033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24036   (eval $ac_try) 2>&5
24037   ac_status=$?
24038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039   (exit $ac_status); }; }; then
24040   ac_cv_func_mmap_file=yes
24041 else
24042   echo "$as_me: program exited with status $ac_status" >&5
24043 echo "$as_me: failed program was:" >&5
24044 sed 's/^/| /' conftest.$ac_ext >&5
24045
24046 ( exit $ac_status )
24047 ac_cv_func_mmap_file=no
24048 fi
24049 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24050 fi
24051   ac_ext=c
24052 ac_cpp='$CPP $CPPFLAGS'
24053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24056
24057
24058 fi
24059 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
24060 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
24061 if test "$ac_cv_func_mmap_file" = yes; then
24062
24063 cat >>confdefs.h <<\_ACEOF
24064 #define HAVE_MMAP_FILE
24065 _ACEOF
24066
24067    MMAP_FILE=yes
24068
24069 fi
24070
24071 if test "$ac_cv_func_mmap_file" = "no"
24072 then
24073         { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
24074 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
24075 fi
24076 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
24077 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
24078 if test "${ac_cv_header_mmap_anon+set}" = set; then
24079   echo $ECHO_N "(cached) $ECHO_C" >&6
24080 else
24081    ac_ext=c
24082 ac_cpp='$CPP $CPPFLAGS'
24083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24086
24087   cat >conftest.$ac_ext <<_ACEOF
24088 /* confdefs.h.  */
24089 _ACEOF
24090 cat confdefs.h >>conftest.$ac_ext
24091 cat >>conftest.$ac_ext <<_ACEOF
24092 /* end confdefs.h.  */
24093 #include <sys/mman.h>
24094 #include <unistd.h>
24095 #include <fcntl.h>
24096 int
24097 main ()
24098 {
24099 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
24100   ;
24101   return 0;
24102 }
24103 _ACEOF
24104 rm -f conftest.$ac_objext
24105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24106   (eval $ac_compile) 2>conftest.er1
24107   ac_status=$?
24108   grep -v '^ *+' conftest.er1 >conftest.err
24109   rm -f conftest.er1
24110   cat conftest.err >&5
24111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24112   (exit $ac_status); } &&
24113          { ac_try='test -z "$ac_c_werror_flag"
24114                          || test ! -s conftest.err'
24115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24116   (eval $ac_try) 2>&5
24117   ac_status=$?
24118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24119   (exit $ac_status); }; } &&
24120          { ac_try='test -s conftest.$ac_objext'
24121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24122   (eval $ac_try) 2>&5
24123   ac_status=$?
24124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24125   (exit $ac_status); }; }; then
24126   ac_cv_header_mmap_anon=yes
24127 else
24128   echo "$as_me: failed program was:" >&5
24129 sed 's/^/| /' conftest.$ac_ext >&5
24130
24131 ac_cv_header_mmap_anon=no
24132 fi
24133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24134   ac_ext=c
24135 ac_cpp='$CPP $CPPFLAGS'
24136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24139
24140
24141 fi
24142 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
24143 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
24144 if test "$ac_cv_header_mmap_anon" = yes; then
24145
24146 cat >>confdefs.h <<\_ACEOF
24147 #define HAVE_MMAP_ANONYMOUS
24148 _ACEOF
24149
24150 fi
24151
24152 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24153 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
24154 if test "${ac_cv_type_signal+set}" = set; then
24155   echo $ECHO_N "(cached) $ECHO_C" >&6
24156 else
24157   cat >conftest.$ac_ext <<_ACEOF
24158 /* confdefs.h.  */
24159 _ACEOF
24160 cat confdefs.h >>conftest.$ac_ext
24161 cat >>conftest.$ac_ext <<_ACEOF
24162 /* end confdefs.h.  */
24163 #include <sys/types.h>
24164 #include <signal.h>
24165 #ifdef signal
24166 # undef signal
24167 #endif
24168 #ifdef __cplusplus
24169 extern "C" void (*signal (int, void (*)(int)))(int);
24170 #else
24171 void (*signal ()) ();
24172 #endif
24173
24174 int
24175 main ()
24176 {
24177 int i;
24178   ;
24179   return 0;
24180 }
24181 _ACEOF
24182 rm -f conftest.$ac_objext
24183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24184   (eval $ac_compile) 2>conftest.er1
24185   ac_status=$?
24186   grep -v '^ *+' conftest.er1 >conftest.err
24187   rm -f conftest.er1
24188   cat conftest.err >&5
24189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24190   (exit $ac_status); } &&
24191          { ac_try='test -z "$ac_c_werror_flag"
24192                          || test ! -s conftest.err'
24193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24194   (eval $ac_try) 2>&5
24195   ac_status=$?
24196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197   (exit $ac_status); }; } &&
24198          { ac_try='test -s conftest.$ac_objext'
24199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24200   (eval $ac_try) 2>&5
24201   ac_status=$?
24202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203   (exit $ac_status); }; }; then
24204   ac_cv_type_signal=void
24205 else
24206   echo "$as_me: failed program was:" >&5
24207 sed 's/^/| /' conftest.$ac_ext >&5
24208
24209 ac_cv_type_signal=int
24210 fi
24211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24212 fi
24213 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24214 echo "${ECHO_T}$ac_cv_type_signal" >&6
24215
24216 cat >>confdefs.h <<_ACEOF
24217 #define RETSIGTYPE $ac_cv_type_signal
24218 _ACEOF
24219
24220
24221
24222
24223
24224
24225
24226
24227
24228
24229
24230 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
24231 do
24232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24233 echo "$as_me:$LINENO: checking for $ac_func" >&5
24234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24235 if eval "test \"\${$as_ac_var+set}\" = set"; then
24236   echo $ECHO_N "(cached) $ECHO_C" >&6
24237 else
24238   cat >conftest.$ac_ext <<_ACEOF
24239 /* confdefs.h.  */
24240 _ACEOF
24241 cat confdefs.h >>conftest.$ac_ext
24242 cat >>conftest.$ac_ext <<_ACEOF
24243 /* end confdefs.h.  */
24244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24246 #define $ac_func innocuous_$ac_func
24247
24248 /* System header to define __stub macros and hopefully few prototypes,
24249     which can conflict with char $ac_func (); below.
24250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24251     <limits.h> exists even on freestanding compilers.  */
24252
24253 #ifdef __STDC__
24254 # include <limits.h>
24255 #else
24256 # include <assert.h>
24257 #endif
24258
24259 #undef $ac_func
24260
24261 /* Override any gcc2 internal prototype to avoid an error.  */
24262 #ifdef __cplusplus
24263 extern "C"
24264 {
24265 #endif
24266 /* We use char because int might match the return type of a gcc2
24267    builtin and then its argument prototype would still apply.  */
24268 char $ac_func ();
24269 /* The GNU C library defines this for functions which it implements
24270     to always fail with ENOSYS.  Some functions are actually named
24271     something starting with __ and the normal name is an alias.  */
24272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24273 choke me
24274 #else
24275 char (*f) () = $ac_func;
24276 #endif
24277 #ifdef __cplusplus
24278 }
24279 #endif
24280
24281 int
24282 main ()
24283 {
24284 return f != $ac_func;
24285   ;
24286   return 0;
24287 }
24288 _ACEOF
24289 rm -f conftest.$ac_objext conftest$ac_exeext
24290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24291   (eval $ac_link) 2>conftest.er1
24292   ac_status=$?
24293   grep -v '^ *+' conftest.er1 >conftest.err
24294   rm -f conftest.er1
24295   cat conftest.err >&5
24296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297   (exit $ac_status); } &&
24298          { ac_try='test -z "$ac_c_werror_flag"
24299                          || test ! -s conftest.err'
24300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24301   (eval $ac_try) 2>&5
24302   ac_status=$?
24303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304   (exit $ac_status); }; } &&
24305          { ac_try='test -s conftest$ac_exeext'
24306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24307   (eval $ac_try) 2>&5
24308   ac_status=$?
24309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310   (exit $ac_status); }; }; then
24311   eval "$as_ac_var=yes"
24312 else
24313   echo "$as_me: failed program was:" >&5
24314 sed 's/^/| /' conftest.$ac_ext >&5
24315
24316 eval "$as_ac_var=no"
24317 fi
24318 rm -f conftest.err conftest.$ac_objext \
24319       conftest$ac_exeext conftest.$ac_ext
24320 fi
24321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24323 if test `eval echo '${'$as_ac_var'}'` = yes; then
24324   cat >>confdefs.h <<_ACEOF
24325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24326 _ACEOF
24327
24328 fi
24329 done
24330
24331 echo "$as_me:$LINENO: checking for mprotect" >&5
24332 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
24333 if test "${ac_cv_func_mprotect+set}" = set; then
24334   echo $ECHO_N "(cached) $ECHO_C" >&6
24335 else
24336   cat >conftest.$ac_ext <<_ACEOF
24337 /* confdefs.h.  */
24338 _ACEOF
24339 cat confdefs.h >>conftest.$ac_ext
24340 cat >>conftest.$ac_ext <<_ACEOF
24341 /* end confdefs.h.  */
24342 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
24343    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24344 #define mprotect innocuous_mprotect
24345
24346 /* System header to define __stub macros and hopefully few prototypes,
24347     which can conflict with char mprotect (); below.
24348     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24349     <limits.h> exists even on freestanding compilers.  */
24350
24351 #ifdef __STDC__
24352 # include <limits.h>
24353 #else
24354 # include <assert.h>
24355 #endif
24356
24357 #undef mprotect
24358
24359 /* Override any gcc2 internal prototype to avoid an error.  */
24360 #ifdef __cplusplus
24361 extern "C"
24362 {
24363 #endif
24364 /* We use char because int might match the return type of a gcc2
24365    builtin and then its argument prototype would still apply.  */
24366 char mprotect ();
24367 /* The GNU C library defines this for functions which it implements
24368     to always fail with ENOSYS.  Some functions are actually named
24369     something starting with __ and the normal name is an alias.  */
24370 #if defined (__stub_mprotect) || defined (__stub___mprotect)
24371 choke me
24372 #else
24373 char (*f) () = mprotect;
24374 #endif
24375 #ifdef __cplusplus
24376 }
24377 #endif
24378
24379 int
24380 main ()
24381 {
24382 return f != mprotect;
24383   ;
24384   return 0;
24385 }
24386 _ACEOF
24387 rm -f conftest.$ac_objext conftest$ac_exeext
24388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24389   (eval $ac_link) 2>conftest.er1
24390   ac_status=$?
24391   grep -v '^ *+' conftest.er1 >conftest.err
24392   rm -f conftest.er1
24393   cat conftest.err >&5
24394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395   (exit $ac_status); } &&
24396          { ac_try='test -z "$ac_c_werror_flag"
24397                          || test ! -s conftest.err'
24398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24399   (eval $ac_try) 2>&5
24400   ac_status=$?
24401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402   (exit $ac_status); }; } &&
24403          { ac_try='test -s conftest$ac_exeext'
24404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24405   (eval $ac_try) 2>&5
24406   ac_status=$?
24407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24408   (exit $ac_status); }; }; then
24409   ac_cv_func_mprotect=yes
24410 else
24411   echo "$as_me: failed program was:" >&5
24412 sed 's/^/| /' conftest.$ac_ext >&5
24413
24414 ac_cv_func_mprotect=no
24415 fi
24416 rm -f conftest.err conftest.$ac_objext \
24417       conftest$ac_exeext conftest.$ac_ext
24418 fi
24419 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
24420 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
24421 if test $ac_cv_func_mprotect = yes; then
24422   :
24423 else
24424   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
24425 echo "$as_me: error: Function mprotect() required but not found" >&2;}
24426    { (exit 1); exit 1; }; }
24427 fi
24428
24429
24430
24431   echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
24432 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
24433   ac_ext=c
24434 ac_cpp='$CPP $CPPFLAGS'
24435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24438
24439   oldcflags="$CFLAGS"
24440   CFLAGS="$CFLAGS -Wl,-R."
24441   cat >conftest.$ac_ext <<_ACEOF
24442 /* confdefs.h.  */
24443 _ACEOF
24444 cat confdefs.h >>conftest.$ac_ext
24445 cat >>conftest.$ac_ext <<_ACEOF
24446 /* end confdefs.h.  */
24447
24448 int
24449 main ()
24450 {
24451 int main() { return 0; }
24452   ;
24453   return 0;
24454 }
24455 _ACEOF
24456 rm -f conftest.$ac_objext conftest$ac_exeext
24457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24458   (eval $ac_link) 2>conftest.er1
24459   ac_status=$?
24460   grep -v '^ *+' conftest.er1 >conftest.err
24461   rm -f conftest.er1
24462   cat conftest.err >&5
24463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464   (exit $ac_status); } &&
24465          { ac_try='test -z "$ac_c_werror_flag"
24466                          || test ! -s conftest.err'
24467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24468   (eval $ac_try) 2>&5
24469   ac_status=$?
24470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24471   (exit $ac_status); }; } &&
24472          { ac_try='test -s conftest$ac_exeext'
24473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24474   (eval $ac_try) 2>&5
24475   ac_status=$?
24476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477   (exit $ac_status); }; }; then
24478   ac_cv_link_use_r=yes
24479 else
24480   echo "$as_me: failed program was:" >&5
24481 sed 's/^/| /' conftest.$ac_ext >&5
24482
24483 ac_cv_link_use_r=no
24484 fi
24485 rm -f conftest.err conftest.$ac_objext \
24486       conftest$ac_exeext conftest.$ac_ext
24487   CFLAGS="$oldcflags"
24488   ac_ext=c
24489 ac_cpp='$CPP $CPPFLAGS'
24490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24493
24494   echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
24495 echo "${ECHO_T}$ac_cv_link_use_r" >&6
24496   if test "$ac_cv_link_use_r" = yes
24497   then
24498
24499 cat >>confdefs.h <<\_ACEOF
24500 #define HAVE_LINK_R 1
24501 _ACEOF
24502
24503   fi
24504
24505
24506 # Check whether --enable-optimized or --disable-optimized was given.
24507 if test "${enable_optimized+set}" = set; then
24508   enableval="$enable_optimized"
24509
24510 else
24511   enableval=no
24512 fi;
24513 if test ${enableval} = "no"
24514 then
24515         ENABLE_OPTIMIZED=
24516
24517 else
24518         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
24519
24520 fi
24521
24522 # Check whether --enable-jit or --disable-jit was given.
24523 if test "${enable_jit+set}" = set; then
24524   enableval="$enable_jit"
24525
24526 else
24527   enableval=default
24528 fi;
24529 if test ${enableval} = "no"
24530 then
24531         JIT=
24532
24533 else
24534         case $target in
24535                 *i*86*)
24536                         JIT=TARGET_HAS_JIT=1
24537
24538                         ;;
24539                 *sparc*)
24540                         JIT=TARGET_HAS_JIT=1
24541
24542                         ;;
24543                 *)
24544                         JIT=
24545
24546                         ;;
24547         esac
24548 fi
24549
24550
24551 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
24552 if test "${with_llvmgccdir+set}" = set; then
24553   withval="$with_llvmgccdir"
24554   LLVMGCCDIR=$withval
24555
24556 fi;
24557 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
24558 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
24559 LLVM_GCC_CHECK=no
24560 if test -d "$LLVMGCCDIR"
24561 then
24562         if test -x "$LLVMGCCDIR/bin/gcc"
24563         then
24564                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
24565         fi
24566 fi
24567 llvmgccwarn=no
24568 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
24569 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
24570 if test "$LLVM_GCC_CHECK" = "no"
24571 then
24572     llvmgccwarn=yes
24573 fi
24574 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
24575 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
24576 LLVM_GCC_SANE=no
24577 if test -x "$LLVM_GCC_CHECK"
24578 then
24579         cp /dev/null conftest.c
24580     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
24581         if test $? -eq 0
24582         then
24583                 LLVM_GCC_SANE=yes
24584         fi
24585         rm conftest.c
24586         llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
24587         LLVMCC1=$llvmcc1path
24588
24589         llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
24590         LLVMCC1PLUS=$llvmcc1pluspath
24591
24592 fi
24593 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
24594 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
24595 if test "$LLVM_GCC_SANE" = "no"
24596 then
24597         llvmgccwarn=yes
24598 fi
24599
24600 echo "$as_me:$LINENO: checking for shared library suffix" >&5
24601 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
24602 eval "SHLIBEXT=$shrext_cmds"
24603 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
24604 echo "${ECHO_T}$SHLIBEXT" >&6
24605 SHLIBEXT=$SHLIBEXT
24606
24607
24608 cat >>confdefs.h <<_ACEOF
24609 #define SHLIBEXT "$SHLIBEXT"
24610 _ACEOF
24611
24612
24613 # Translate the various configuration directories and other basic
24614 # information into substitutions that will end up in config.h.in so
24615 # that these configured values can be hard-wired into a program.
24616 eval LLVM_PREFIX="${prefix}";
24617 eval LLVM_BINDIR="${prefix}/bin";
24618 eval LLVM_LIBDIR="${prefix}/lib";
24619 eval LLVM_DATADIR="${prefix}/data";
24620 eval LLVM_DOCSDIR="${prefix}/docs";
24621 eval LLVM_ETCDIR="${prefix}/etc";
24622 eval LLVM_INCLUDEDIR="${prefix}/include";
24623 eval LLVM_INFODIR="${prefix}/info";
24624 eval LLVM_MANDIR="${prefix}/man";
24625 LLVM_CONFIGTIME=`date`
24626
24627
24628
24629
24630
24631
24632
24633
24634
24635
24636
24637 cat >>confdefs.h <<_ACEOF
24638 #define LLVM_PREFIX "$LLVM_PREFIX"
24639 _ACEOF
24640
24641
24642 cat >>confdefs.h <<_ACEOF
24643 #define LLVM_BINDIR "$LLVM_BINDIR"
24644 _ACEOF
24645
24646
24647 cat >>confdefs.h <<_ACEOF
24648 #define LLVM_LIBDIR "$LLVM_LIBDIR"
24649 _ACEOF
24650
24651
24652 cat >>confdefs.h <<_ACEOF
24653 #define LLVM_DATADIR "$LLVM_DATADIR"
24654 _ACEOF
24655
24656
24657 cat >>confdefs.h <<_ACEOF
24658 #define LLVM_DATADIR "$LLVM_DOCSDIR"
24659 _ACEOF
24660
24661
24662 cat >>confdefs.h <<_ACEOF
24663 #define LLVM_ETCDIR "$LLVM_ETCDIR"
24664 _ACEOF
24665
24666
24667 cat >>confdefs.h <<_ACEOF
24668 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
24669 _ACEOF
24670
24671
24672 cat >>confdefs.h <<_ACEOF
24673 #define LLVM_INFODIR "$LLVM_INFODIR"
24674 _ACEOF
24675
24676
24677 cat >>confdefs.h <<_ACEOF
24678 #define LLVM_MANDIR "$LLVM_MANDIR"
24679 _ACEOF
24680
24681
24682 cat >>confdefs.h <<_ACEOF
24683 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
24684 _ACEOF
24685
24686
24687 cat >confcache <<\_ACEOF
24688 # This file is a shell script that caches the results of configure
24689 # tests run on this system so they can be shared between configure
24690 # scripts and configure runs, see configure's option --config-cache.
24691 # It is not useful on other systems.  If it contains results you don't
24692 # want to keep, you may remove or edit it.
24693 #
24694 # config.status only pays attention to the cache file if you give it
24695 # the --recheck option to rerun configure.
24696 #
24697 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24698 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24699 # following values.
24700
24701 _ACEOF
24702
24703 # The following way of writing the cache mishandles newlines in values,
24704 # but we know of no workaround that is simple, portable, and efficient.
24705 # So, don't put newlines in cache variables' values.
24706 # Ultrix sh set writes to stderr and can't be redirected directly,
24707 # and sets the high bit in the cache file unless we assign to the vars.
24708 {
24709   (set) 2>&1 |
24710     case `(ac_space=' '; set | grep ac_space) 2>&1` in
24711     *ac_space=\ *)
24712       # `set' does not quote correctly, so add quotes (double-quote
24713       # substitution turns \\\\ into \\, and sed turns \\ into \).
24714       sed -n \
24715         "s/'/'\\\\''/g;
24716           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24717       ;;
24718     *)
24719       # `set' quotes correctly as required by POSIX, so do not add quotes.
24720       sed -n \
24721         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24722       ;;
24723     esac;
24724 } |
24725   sed '
24726      t clear
24727      : clear
24728      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24729      t end
24730      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24731      : end' >>confcache
24732 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24733   if test -w $cache_file; then
24734     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24735     cat confcache >$cache_file
24736   else
24737     echo "not updating unwritable cache $cache_file"
24738   fi
24739 fi
24740 rm -f confcache
24741
24742 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24743 # Let make expand exec_prefix.
24744 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24745
24746 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24747 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24748 # trailing colons and then remove the whole line if VPATH becomes empty
24749 # (actually we leave an empty line to preserve line numbers).
24750 if test "x$srcdir" = x.; then
24751   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24752 s/:*\$(srcdir):*/:/;
24753 s/:*\${srcdir}:*/:/;
24754 s/:*@srcdir@:*/:/;
24755 s/^\([^=]*=[     ]*\):*/\1/;
24756 s/:*$//;
24757 s/^[^=]*=[       ]*$//;
24758 }'
24759 fi
24760
24761 DEFS=-DHAVE_CONFIG_H
24762
24763 ac_libobjs=
24764 ac_ltlibobjs=
24765 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24766   # 1. Remove the extension, and $U if already installed.
24767   ac_i=`echo "$ac_i" |
24768          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24769   # 2. Add them.
24770   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24771   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24772 done
24773 LIBOBJS=$ac_libobjs
24774
24775 LTLIBOBJS=$ac_ltlibobjs
24776
24777
24778
24779 : ${CONFIG_STATUS=./config.status}
24780 ac_clean_files_save=$ac_clean_files
24781 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24782 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24783 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24784 cat >$CONFIG_STATUS <<_ACEOF
24785 #! $SHELL
24786 # Generated by $as_me.
24787 # Run this file to recreate the current configuration.
24788 # Compiler output produced by configure, useful for debugging
24789 # configure, is in config.log if it exists.
24790
24791 debug=false
24792 ac_cs_recheck=false
24793 ac_cs_silent=false
24794 SHELL=\${CONFIG_SHELL-$SHELL}
24795 _ACEOF
24796
24797 cat >>$CONFIG_STATUS <<\_ACEOF
24798 ## --------------------- ##
24799 ## M4sh Initialization.  ##
24800 ## --------------------- ##
24801
24802 # Be Bourne compatible
24803 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24804   emulate sh
24805   NULLCMD=:
24806   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24807   # is contrary to our usage.  Disable this feature.
24808   alias -g '${1+"$@"}'='"$@"'
24809 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24810   set -o posix
24811 fi
24812 DUALCASE=1; export DUALCASE # for MKS sh
24813
24814 # Support unset when possible.
24815 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24816   as_unset=unset
24817 else
24818   as_unset=false
24819 fi
24820
24821
24822 # Work around bugs in pre-3.0 UWIN ksh.
24823 $as_unset ENV MAIL MAILPATH
24824 PS1='$ '
24825 PS2='> '
24826 PS4='+ '
24827
24828 # NLS nuisances.
24829 for as_var in \
24830   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24831   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24832   LC_TELEPHONE LC_TIME
24833 do
24834   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24835     eval $as_var=C; export $as_var
24836   else
24837     $as_unset $as_var
24838   fi
24839 done
24840
24841 # Required to use basename.
24842 if expr a : '\(a\)' >/dev/null 2>&1; then
24843   as_expr=expr
24844 else
24845   as_expr=false
24846 fi
24847
24848 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24849   as_basename=basename
24850 else
24851   as_basename=false
24852 fi
24853
24854
24855 # Name of the executable.
24856 as_me=`$as_basename "$0" ||
24857 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24858          X"$0" : 'X\(//\)$' \| \
24859          X"$0" : 'X\(/\)$' \| \
24860          .     : '\(.\)' 2>/dev/null ||
24861 echo X/"$0" |
24862     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24863           /^X\/\(\/\/\)$/{ s//\1/; q; }
24864           /^X\/\(\/\).*/{ s//\1/; q; }
24865           s/.*/./; q'`
24866
24867
24868 # PATH needs CR, and LINENO needs CR and PATH.
24869 # Avoid depending upon Character Ranges.
24870 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24871 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24872 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24873 as_cr_digits='0123456789'
24874 as_cr_alnum=$as_cr_Letters$as_cr_digits
24875
24876 # The user is always right.
24877 if test "${PATH_SEPARATOR+set}" != set; then
24878   echo "#! /bin/sh" >conf$$.sh
24879   echo  "exit 0"   >>conf$$.sh
24880   chmod +x conf$$.sh
24881   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24882     PATH_SEPARATOR=';'
24883   else
24884     PATH_SEPARATOR=:
24885   fi
24886   rm -f conf$$.sh
24887 fi
24888
24889
24890   as_lineno_1=$LINENO
24891   as_lineno_2=$LINENO
24892   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24893   test "x$as_lineno_1" != "x$as_lineno_2" &&
24894   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24895   # Find who we are.  Look in the path if we contain no path at all
24896   # relative or not.
24897   case $0 in
24898     *[\\/]* ) as_myself=$0 ;;
24899     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24900 for as_dir in $PATH
24901 do
24902   IFS=$as_save_IFS
24903   test -z "$as_dir" && as_dir=.
24904   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24905 done
24906
24907        ;;
24908   esac
24909   # We did not find ourselves, most probably we were run as `sh COMMAND'
24910   # in which case we are not to be found in the path.
24911   if test "x$as_myself" = x; then
24912     as_myself=$0
24913   fi
24914   if test ! -f "$as_myself"; then
24915     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24916 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24917    { (exit 1); exit 1; }; }
24918   fi
24919   case $CONFIG_SHELL in
24920   '')
24921     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24922 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24923 do
24924   IFS=$as_save_IFS
24925   test -z "$as_dir" && as_dir=.
24926   for as_base in sh bash ksh sh5; do
24927          case $as_dir in
24928          /*)
24929            if ("$as_dir/$as_base" -c '
24930   as_lineno_1=$LINENO
24931   as_lineno_2=$LINENO
24932   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24933   test "x$as_lineno_1" != "x$as_lineno_2" &&
24934   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24935              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24936              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24937              CONFIG_SHELL=$as_dir/$as_base
24938              export CONFIG_SHELL
24939              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24940            fi;;
24941          esac
24942        done
24943 done
24944 ;;
24945   esac
24946
24947   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24948   # uniformly replaced by the line number.  The first 'sed' inserts a
24949   # line-number line before each line; the second 'sed' does the real
24950   # work.  The second script uses 'N' to pair each line-number line
24951   # with the numbered line, and appends trailing '-' during
24952   # substitution so that $LINENO is not a special case at line end.
24953   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24954   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24955   sed '=' <$as_myself |
24956     sed '
24957       N
24958       s,$,-,
24959       : loop
24960       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24961       t loop
24962       s,-$,,
24963       s,^['$as_cr_digits']*\n,,
24964     ' >$as_me.lineno &&
24965   chmod +x $as_me.lineno ||
24966     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24967 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24968    { (exit 1); exit 1; }; }
24969
24970   # Don't try to exec as it changes $[0], causing all sort of problems
24971   # (the dirname of $[0] is not the place where we might find the
24972   # original and so on.  Autoconf is especially sensible to this).
24973   . ./$as_me.lineno
24974   # Exit status is that of the last command.
24975   exit
24976 }
24977
24978
24979 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24980   *c*,-n*) ECHO_N= ECHO_C='
24981 ' ECHO_T='      ' ;;
24982   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24983   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24984 esac
24985
24986 if expr a : '\(a\)' >/dev/null 2>&1; then
24987   as_expr=expr
24988 else
24989   as_expr=false
24990 fi
24991
24992 rm -f conf$$ conf$$.exe conf$$.file
24993 echo >conf$$.file
24994 if ln -s conf$$.file conf$$ 2>/dev/null; then
24995   # We could just check for DJGPP; but this test a) works b) is more generic
24996   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24997   if test -f conf$$.exe; then
24998     # Don't use ln at all; we don't have any links
24999     as_ln_s='cp -p'
25000   else
25001     as_ln_s='ln -s'
25002   fi
25003 elif ln conf$$.file conf$$ 2>/dev/null; then
25004   as_ln_s=ln
25005 else
25006   as_ln_s='cp -p'
25007 fi
25008 rm -f conf$$ conf$$.exe conf$$.file
25009
25010 if mkdir -p . 2>/dev/null; then
25011   as_mkdir_p=:
25012 else
25013   test -d ./-p && rmdir ./-p
25014   as_mkdir_p=false
25015 fi
25016
25017 as_executable_p="test -f"
25018
25019 # Sed expression to map a string onto a valid CPP name.
25020 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25021
25022 # Sed expression to map a string onto a valid variable name.
25023 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25024
25025
25026 # IFS
25027 # We need space, tab and new line, in precisely that order.
25028 as_nl='
25029 '
25030 IFS="   $as_nl"
25031
25032 # CDPATH.
25033 $as_unset CDPATH
25034
25035 exec 6>&1
25036
25037 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25038 # report actual input values of CONFIG_FILES etc. instead of their
25039 # values after options handling.  Logging --version etc. is OK.
25040 exec 5>>config.log
25041 {
25042   echo
25043   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25044 ## Running $as_me. ##
25045 _ASBOX
25046 } >&5
25047 cat >&5 <<_CSEOF
25048
25049 This file was extended by llvm $as_me 1.4, which was
25050 generated by GNU Autoconf 2.59.  Invocation command line was
25051
25052   CONFIG_FILES    = $CONFIG_FILES
25053   CONFIG_HEADERS  = $CONFIG_HEADERS
25054   CONFIG_LINKS    = $CONFIG_LINKS
25055   CONFIG_COMMANDS = $CONFIG_COMMANDS
25056   $ $0 $@
25057
25058 _CSEOF
25059 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25060 echo >&5
25061 _ACEOF
25062
25063 # Files that config.status was made for.
25064 if test -n "$ac_config_files"; then
25065   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25066 fi
25067
25068 if test -n "$ac_config_headers"; then
25069   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25070 fi
25071
25072 if test -n "$ac_config_links"; then
25073   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25074 fi
25075
25076 if test -n "$ac_config_commands"; then
25077   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25078 fi
25079
25080 cat >>$CONFIG_STATUS <<\_ACEOF
25081
25082 ac_cs_usage="\
25083 \`$as_me' instantiates files from templates according to the
25084 current configuration.
25085
25086 Usage: $0 [OPTIONS] [FILE]...
25087
25088   -h, --help       print this help, then exit
25089   -V, --version    print version number, then exit
25090   -q, --quiet      do not print progress messages
25091   -d, --debug      don't remove temporary files
25092       --recheck    update $as_me by reconfiguring in the same conditions
25093   --file=FILE[:TEMPLATE]
25094                    instantiate the configuration file FILE
25095   --header=FILE[:TEMPLATE]
25096                    instantiate the configuration header FILE
25097
25098 Configuration files:
25099 $config_files
25100
25101 Configuration headers:
25102 $config_headers
25103
25104 Configuration links:
25105 $config_links
25106
25107 Configuration commands:
25108 $config_commands
25109
25110 Report bugs to <bug-autoconf@gnu.org>."
25111 _ACEOF
25112
25113 cat >>$CONFIG_STATUS <<_ACEOF
25114 ac_cs_version="\\
25115 llvm config.status 1.4
25116 configured by $0, generated by GNU Autoconf 2.59,
25117   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25118
25119 Copyright (C) 2003 Free Software Foundation, Inc.
25120 This config.status script is free software; the Free Software Foundation
25121 gives unlimited permission to copy, distribute and modify it."
25122 srcdir=$srcdir
25123 INSTALL="$INSTALL"
25124 _ACEOF
25125
25126 cat >>$CONFIG_STATUS <<\_ACEOF
25127 # If no file are specified by the user, then we need to provide default
25128 # value.  By we need to know if files were specified by the user.
25129 ac_need_defaults=:
25130 while test $# != 0
25131 do
25132   case $1 in
25133   --*=*)
25134     ac_option=`expr "x$1" : 'x\([^=]*\)='`
25135     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25136     ac_shift=:
25137     ;;
25138   -*)
25139     ac_option=$1
25140     ac_optarg=$2
25141     ac_shift=shift
25142     ;;
25143   *) # This is not an option, so the user has probably given explicit
25144      # arguments.
25145      ac_option=$1
25146      ac_need_defaults=false;;
25147   esac
25148
25149   case $ac_option in
25150   # Handling of the options.
25151 _ACEOF
25152 cat >>$CONFIG_STATUS <<\_ACEOF
25153   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25154     ac_cs_recheck=: ;;
25155   --version | --vers* | -V )
25156     echo "$ac_cs_version"; exit 0 ;;
25157   --he | --h)
25158     # Conflict between --help and --header
25159     { { echo "$as_me:$LINENO: error: ambiguous option: $1
25160 Try \`$0 --help' for more information." >&5
25161 echo "$as_me: error: ambiguous option: $1
25162 Try \`$0 --help' for more information." >&2;}
25163    { (exit 1); exit 1; }; };;
25164   --help | --hel | -h )
25165     echo "$ac_cs_usage"; exit 0 ;;
25166   --debug | --d* | -d )
25167     debug=: ;;
25168   --file | --fil | --fi | --f )
25169     $ac_shift
25170     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25171     ac_need_defaults=false;;
25172   --header | --heade | --head | --hea )
25173     $ac_shift
25174     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25175     ac_need_defaults=false;;
25176   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25177   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25178     ac_cs_silent=: ;;
25179
25180   # This is an error.
25181   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25182 Try \`$0 --help' for more information." >&5
25183 echo "$as_me: error: unrecognized option: $1
25184 Try \`$0 --help' for more information." >&2;}
25185    { (exit 1); exit 1; }; } ;;
25186
25187   *) ac_config_targets="$ac_config_targets $1" ;;
25188
25189   esac
25190   shift
25191 done
25192
25193 ac_configure_extra_args=
25194
25195 if $ac_cs_silent; then
25196   exec 6>/dev/null
25197   ac_configure_extra_args="$ac_configure_extra_args --silent"
25198 fi
25199
25200 _ACEOF
25201 cat >>$CONFIG_STATUS <<_ACEOF
25202 if \$ac_cs_recheck; then
25203   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25204   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25205 fi
25206
25207 _ACEOF
25208
25209 cat >>$CONFIG_STATUS <<_ACEOF
25210 #
25211 # INIT-COMMANDS section.
25212 #
25213
25214 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
25215 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
25216 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
25217 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
25218 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
25219 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
25220 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
25221 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
25222 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
25223 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
25224 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile.JIT`
25225 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
25226 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
25227
25228 _ACEOF
25229
25230
25231
25232 cat >>$CONFIG_STATUS <<\_ACEOF
25233 for ac_config_target in $ac_config_targets
25234 do
25235   case "$ac_config_target" in
25236   # Handling of arguments.
25237   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
25238   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
25239   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
25240   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
25241   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
25242   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
25243   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
25244   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
25245   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
25246   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
25247   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
25248   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
25249   "tools/Makefile.JIT" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile.JIT" ;;
25250   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
25251   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
25252   "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
25253   "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
25254   "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
25255   "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
25256   "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
25257   "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
25258   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25259 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25260    { (exit 1); exit 1; }; };;
25261   esac
25262 done
25263
25264 # If the user did not use the arguments to specify the items to instantiate,
25265 # then the envvar interface is used.  Set only those that are not.
25266 # We use the long form for the default assignment because of an extremely
25267 # bizarre bug on SunOS 4.1.3.
25268 if $ac_need_defaults; then
25269   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25270   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25271   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25272   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25273 fi
25274
25275 # Have a temporary directory for convenience.  Make it in the build tree
25276 # simply because there is no reason to put it here, and in addition,
25277 # creating and moving files from /tmp can sometimes cause problems.
25278 # Create a temporary directory, and hook for its removal unless debugging.
25279 $debug ||
25280 {
25281   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25282   trap '{ (exit 1); exit 1; }' 1 2 13 15
25283 }
25284
25285 # Create a (secure) tmp directory for tmp files.
25286
25287 {
25288   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25289   test -n "$tmp" && test -d "$tmp"
25290 }  ||
25291 {
25292   tmp=./confstat$$-$RANDOM
25293   (umask 077 && mkdir $tmp)
25294 } ||
25295 {
25296    echo "$me: cannot create a temporary directory in ." >&2
25297    { (exit 1); exit 1; }
25298 }
25299
25300 _ACEOF
25301
25302 cat >>$CONFIG_STATUS <<_ACEOF
25303
25304 #
25305 # CONFIG_FILES section.
25306 #
25307
25308 # No need to generate the scripts if there are no CONFIG_FILES.
25309 # This happens for instance when ./config.status config.h
25310 if test -n "\$CONFIG_FILES"; then
25311   # Protect against being on the right side of a sed subst in config.status.
25312   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25313    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25314 s,@SHELL@,$SHELL,;t t
25315 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25316 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25317 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25318 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25319 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25320 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25321 s,@exec_prefix@,$exec_prefix,;t t
25322 s,@prefix@,$prefix,;t t
25323 s,@program_transform_name@,$program_transform_name,;t t
25324 s,@bindir@,$bindir,;t t
25325 s,@sbindir@,$sbindir,;t t
25326 s,@libexecdir@,$libexecdir,;t t
25327 s,@datadir@,$datadir,;t t
25328 s,@sysconfdir@,$sysconfdir,;t t
25329 s,@sharedstatedir@,$sharedstatedir,;t t
25330 s,@localstatedir@,$localstatedir,;t t
25331 s,@libdir@,$libdir,;t t
25332 s,@includedir@,$includedir,;t t
25333 s,@oldincludedir@,$oldincludedir,;t t
25334 s,@infodir@,$infodir,;t t
25335 s,@mandir@,$mandir,;t t
25336 s,@build_alias@,$build_alias,;t t
25337 s,@host_alias@,$host_alias,;t t
25338 s,@target_alias@,$target_alias,;t t
25339 s,@DEFS@,$DEFS,;t t
25340 s,@ECHO_C@,$ECHO_C,;t t
25341 s,@ECHO_N@,$ECHO_N,;t t
25342 s,@ECHO_T@,$ECHO_T,;t t
25343 s,@LIBS@,$LIBS,;t t
25344 s,@subdirs@,$subdirs,;t t
25345 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25346 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25347 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25348 s,@build@,$build,;t t
25349 s,@build_cpu@,$build_cpu,;t t
25350 s,@build_vendor@,$build_vendor,;t t
25351 s,@build_os@,$build_os,;t t
25352 s,@host@,$host,;t t
25353 s,@host_cpu@,$host_cpu,;t t
25354 s,@host_vendor@,$host_vendor,;t t
25355 s,@host_os@,$host_os,;t t
25356 s,@target@,$target,;t t
25357 s,@target_cpu@,$target_cpu,;t t
25358 s,@target_vendor@,$target_vendor,;t t
25359 s,@target_os@,$target_os,;t t
25360 s,@OS@,$OS,;t t
25361 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
25362 s,@ARCH@,$ARCH,;t t
25363 s,@CXX@,$CXX,;t t
25364 s,@CXXFLAGS@,$CXXFLAGS,;t t
25365 s,@LDFLAGS@,$LDFLAGS,;t t
25366 s,@CPPFLAGS@,$CPPFLAGS,;t t
25367 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25368 s,@EXEEXT@,$EXEEXT,;t t
25369 s,@OBJEXT@,$OBJEXT,;t t
25370 s,@CC@,$CC,;t t
25371 s,@CFLAGS@,$CFLAGS,;t t
25372 s,@ac_ct_CC@,$ac_ct_CC,;t t
25373 s,@CPP@,$CPP,;t t
25374 s,@ifGNUmake@,$ifGNUmake,;t t
25375 s,@LEX@,$LEX,;t t
25376 s,@LEXLIB@,$LEXLIB,;t t
25377 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
25378 s,@FLEX@,$FLEX,;t t
25379 s,@YACC@,$YACC,;t t
25380 s,@BISON@,$BISON,;t t
25381 s,@EGREP@,$EGREP,;t t
25382 s,@LN_S@,$LN_S,;t t
25383 s,@ECHO@,$ECHO,;t t
25384 s,@AR@,$AR,;t t
25385 s,@ac_ct_AR@,$ac_ct_AR,;t t
25386 s,@RANLIB@,$RANLIB,;t t
25387 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25388 s,@STRIP@,$STRIP,;t t
25389 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25390 s,@CXXCPP@,$CXXCPP,;t t
25391 s,@F77@,$F77,;t t
25392 s,@FFLAGS@,$FFLAGS,;t t
25393 s,@ac_ct_F77@,$ac_ct_F77,;t t
25394 s,@LIBTOOL@,$LIBTOOL,;t t
25395 s,@TAR@,$TAR,;t t
25396 s,@DOT@,$DOT,;t t
25397 s,@ETAGS@,$ETAGS,;t t
25398 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
25399 s,@PYTHON@,$PYTHON,;t t
25400 s,@QMTEST@,$QMTEST,;t t
25401 s,@RUNTEST@,$RUNTEST,;t t
25402 s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t
25403 s,@HAVE_BZIP2@,$HAVE_BZIP2,;t t
25404 s,@ENDIAN@,$ENDIAN,;t t
25405 s,@ALLOCA@,$ALLOCA,;t t
25406 s,@MMAP_FILE@,$MMAP_FILE,;t t
25407 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
25408 s,@JIT@,$JIT,;t t
25409 s,@LLVMCC1@,$LLVMCC1,;t t
25410 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
25411 s,@SHLIBEXT@,$SHLIBEXT,;t t
25412 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
25413 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
25414 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
25415 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
25416 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
25417 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
25418 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
25419 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
25420 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
25421 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
25422 s,@LIBOBJS@,$LIBOBJS,;t t
25423 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25424 CEOF
25425
25426 _ACEOF
25427
25428   cat >>$CONFIG_STATUS <<\_ACEOF
25429   # Split the substitutions into bite-sized pieces for seds with
25430   # small command number limits, like on Digital OSF/1 and HP-UX.
25431   ac_max_sed_lines=48
25432   ac_sed_frag=1 # Number of current file.
25433   ac_beg=1 # First line for current file.
25434   ac_end=$ac_max_sed_lines # Line after last line for current file.
25435   ac_more_lines=:
25436   ac_sed_cmds=
25437   while $ac_more_lines; do
25438     if test $ac_beg -gt 1; then
25439       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25440     else
25441       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25442     fi
25443     if test ! -s $tmp/subs.frag; then
25444       ac_more_lines=false
25445     else
25446       # The purpose of the label and of the branching condition is to
25447       # speed up the sed processing (if there are no `@' at all, there
25448       # is no need to browse any of the substitutions).
25449       # These are the two extra sed commands mentioned above.
25450       (echo ':t
25451   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25452       if test -z "$ac_sed_cmds"; then
25453         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25454       else
25455         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25456       fi
25457       ac_sed_frag=`expr $ac_sed_frag + 1`
25458       ac_beg=$ac_end
25459       ac_end=`expr $ac_end + $ac_max_sed_lines`
25460     fi
25461   done
25462   if test -z "$ac_sed_cmds"; then
25463     ac_sed_cmds=cat
25464   fi
25465 fi # test -n "$CONFIG_FILES"
25466
25467 _ACEOF
25468 cat >>$CONFIG_STATUS <<\_ACEOF
25469 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25470   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25471   case $ac_file in
25472   - | *:- | *:-:* ) # input from stdin
25473         cat >$tmp/stdin
25474         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25475         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25476   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25477         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25478   * )   ac_file_in=$ac_file.in ;;
25479   esac
25480
25481   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25482   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25483 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25484          X"$ac_file" : 'X\(//\)[^/]' \| \
25485          X"$ac_file" : 'X\(//\)$' \| \
25486          X"$ac_file" : 'X\(/\)' \| \
25487          .     : '\(.\)' 2>/dev/null ||
25488 echo X"$ac_file" |
25489     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25490           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25491           /^X\(\/\/\)$/{ s//\1/; q; }
25492           /^X\(\/\).*/{ s//\1/; q; }
25493           s/.*/./; q'`
25494   { if $as_mkdir_p; then
25495     mkdir -p "$ac_dir"
25496   else
25497     as_dir="$ac_dir"
25498     as_dirs=
25499     while test ! -d "$as_dir"; do
25500       as_dirs="$as_dir $as_dirs"
25501       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25502 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25503          X"$as_dir" : 'X\(//\)[^/]' \| \
25504          X"$as_dir" : 'X\(//\)$' \| \
25505          X"$as_dir" : 'X\(/\)' \| \
25506          .     : '\(.\)' 2>/dev/null ||
25507 echo X"$as_dir" |
25508     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25509           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25510           /^X\(\/\/\)$/{ s//\1/; q; }
25511           /^X\(\/\).*/{ s//\1/; q; }
25512           s/.*/./; q'`
25513     done
25514     test ! -n "$as_dirs" || mkdir $as_dirs
25515   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25516 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25517    { (exit 1); exit 1; }; }; }
25518
25519   ac_builddir=.
25520
25521 if test "$ac_dir" != .; then
25522   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25523   # A "../" for each directory in $ac_dir_suffix.
25524   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25525 else
25526   ac_dir_suffix= ac_top_builddir=
25527 fi
25528
25529 case $srcdir in
25530   .)  # No --srcdir option.  We are building in place.
25531     ac_srcdir=.
25532     if test -z "$ac_top_builddir"; then
25533        ac_top_srcdir=.
25534     else
25535        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25536     fi ;;
25537   [\\/]* | ?:[\\/]* )  # Absolute path.
25538     ac_srcdir=$srcdir$ac_dir_suffix;
25539     ac_top_srcdir=$srcdir ;;
25540   *) # Relative path.
25541     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25542     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25543 esac
25544
25545 # Do not use `cd foo && pwd` to compute absolute paths, because
25546 # the directories may not exist.
25547 case `pwd` in
25548 .) ac_abs_builddir="$ac_dir";;
25549 *)
25550   case "$ac_dir" in
25551   .) ac_abs_builddir=`pwd`;;
25552   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25553   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25554   esac;;
25555 esac
25556 case $ac_abs_builddir in
25557 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25558 *)
25559   case ${ac_top_builddir}. in
25560   .) ac_abs_top_builddir=$ac_abs_builddir;;
25561   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25562   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25563   esac;;
25564 esac
25565 case $ac_abs_builddir in
25566 .) ac_abs_srcdir=$ac_srcdir;;
25567 *)
25568   case $ac_srcdir in
25569   .) ac_abs_srcdir=$ac_abs_builddir;;
25570   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25571   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25572   esac;;
25573 esac
25574 case $ac_abs_builddir in
25575 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25576 *)
25577   case $ac_top_srcdir in
25578   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25579   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25580   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25581   esac;;
25582 esac
25583
25584
25585   case $INSTALL in
25586   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25587   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25588   esac
25589
25590   if test x"$ac_file" != x-; then
25591     { echo "$as_me:$LINENO: creating $ac_file" >&5
25592 echo "$as_me: creating $ac_file" >&6;}
25593     rm -f "$ac_file"
25594   fi
25595   # Let's still pretend it is `configure' which instantiates (i.e., don't
25596   # use $as_me), people would be surprised to read:
25597   #    /* config.h.  Generated by config.status.  */
25598   if test x"$ac_file" = x-; then
25599     configure_input=
25600   else
25601     configure_input="$ac_file.  "
25602   fi
25603   configure_input=$configure_input"Generated from `echo $ac_file_in |
25604                                      sed 's,.*/,,'` by configure."
25605
25606   # First look for the input files in the build tree, otherwise in the
25607   # src tree.
25608   ac_file_inputs=`IFS=:
25609     for f in $ac_file_in; do
25610       case $f in
25611       -) echo $tmp/stdin ;;
25612       [\\/$]*)
25613          # Absolute (can't be DOS-style, as IFS=:)
25614          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25615 echo "$as_me: error: cannot find input file: $f" >&2;}
25616    { (exit 1); exit 1; }; }
25617          echo "$f";;
25618       *) # Relative
25619          if test -f "$f"; then
25620            # Build tree
25621            echo "$f"
25622          elif test -f "$srcdir/$f"; then
25623            # Source tree
25624            echo "$srcdir/$f"
25625          else
25626            # /dev/null tree
25627            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25628 echo "$as_me: error: cannot find input file: $f" >&2;}
25629    { (exit 1); exit 1; }; }
25630          fi;;
25631       esac
25632     done` || { (exit 1); exit 1; }
25633 _ACEOF
25634 cat >>$CONFIG_STATUS <<_ACEOF
25635   sed "$ac_vpsub
25636 $extrasub
25637 _ACEOF
25638 cat >>$CONFIG_STATUS <<\_ACEOF
25639 :t
25640 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25641 s,@configure_input@,$configure_input,;t t
25642 s,@srcdir@,$ac_srcdir,;t t
25643 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25644 s,@top_srcdir@,$ac_top_srcdir,;t t
25645 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25646 s,@builddir@,$ac_builddir,;t t
25647 s,@abs_builddir@,$ac_abs_builddir,;t t
25648 s,@top_builddir@,$ac_top_builddir,;t t
25649 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25650 s,@INSTALL@,$ac_INSTALL,;t t
25651 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25652   rm -f $tmp/stdin
25653   if test x"$ac_file" != x-; then
25654     mv $tmp/out $ac_file
25655   else
25656     cat $tmp/out
25657     rm -f $tmp/out
25658   fi
25659
25660 done
25661 _ACEOF
25662 cat >>$CONFIG_STATUS <<\_ACEOF
25663
25664 #
25665 # CONFIG_HEADER section.
25666 #
25667
25668 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25669 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25670 #
25671 # ac_d sets the value in "#define NAME VALUE" lines.
25672 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
25673 ac_dB='[         ].*$,\1#\2'
25674 ac_dC=' '
25675 ac_dD=',;t'
25676 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25677 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
25678 ac_uB='$,\1#\2define\3'
25679 ac_uC=' '
25680 ac_uD=',;t'
25681
25682 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25683   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25684   case $ac_file in
25685   - | *:- | *:-:* ) # input from stdin
25686         cat >$tmp/stdin
25687         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25688         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25689   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25690         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25691   * )   ac_file_in=$ac_file.in ;;
25692   esac
25693
25694   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25695 echo "$as_me: creating $ac_file" >&6;}
25696
25697   # First look for the input files in the build tree, otherwise in the
25698   # src tree.
25699   ac_file_inputs=`IFS=:
25700     for f in $ac_file_in; do
25701       case $f in
25702       -) echo $tmp/stdin ;;
25703       [\\/$]*)
25704          # Absolute (can't be DOS-style, as IFS=:)
25705          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25706 echo "$as_me: error: cannot find input file: $f" >&2;}
25707    { (exit 1); exit 1; }; }
25708          # Do quote $f, to prevent DOS paths from being IFS'd.
25709          echo "$f";;
25710       *) # Relative
25711          if test -f "$f"; then
25712            # Build tree
25713            echo "$f"
25714          elif test -f "$srcdir/$f"; then
25715            # Source tree
25716            echo "$srcdir/$f"
25717          else
25718            # /dev/null tree
25719            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25720 echo "$as_me: error: cannot find input file: $f" >&2;}
25721    { (exit 1); exit 1; }; }
25722          fi;;
25723       esac
25724     done` || { (exit 1); exit 1; }
25725   # Remove the trailing spaces.
25726   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
25727
25728 _ACEOF
25729
25730 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25731 # `conftest.undefs', that substitutes the proper values into
25732 # config.h.in to produce config.h.  The first handles `#define'
25733 # templates, and the second `#undef' templates.
25734 # And first: Protect against being on the right side of a sed subst in
25735 # config.status.  Protect against being in an unquoted here document
25736 # in config.status.
25737 rm -f conftest.defines conftest.undefs
25738 # Using a here document instead of a string reduces the quoting nightmare.
25739 # Putting comments in sed scripts is not portable.
25740 #
25741 # `end' is used to avoid that the second main sed command (meant for
25742 # 0-ary CPP macros) applies to n-ary macro definitions.
25743 # See the Autoconf documentation for `clear'.
25744 cat >confdef2sed.sed <<\_ACEOF
25745 s/[\\&,]/\\&/g
25746 s,[\\$`],\\&,g
25747 t clear
25748 : clear
25749 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25750 t end
25751 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25752 : end
25753 _ACEOF
25754 # If some macros were called several times there might be several times
25755 # the same #defines, which is useless.  Nevertheless, we may not want to
25756 # sort them, since we want the *last* AC-DEFINE to be honored.
25757 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25758 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25759 rm -f confdef2sed.sed
25760
25761 # This sed command replaces #undef with comments.  This is necessary, for
25762 # example, in the case of _POSIX_SOURCE, which is predefined and required
25763 # on some systems where configure will not decide to define it.
25764 cat >>conftest.undefs <<\_ACEOF
25765 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25766 _ACEOF
25767
25768 # Break up conftest.defines because some shells have a limit on the size
25769 # of here documents, and old seds have small limits too (100 cmds).
25770 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25771 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25772 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25773 echo '  :' >>$CONFIG_STATUS
25774 rm -f conftest.tail
25775 while grep . conftest.defines >/dev/null
25776 do
25777   # Write a limited-size here document to $tmp/defines.sed.
25778   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25779   # Speed up: don't consider the non `#define' lines.
25780   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25781   # Work around the forget-to-reset-the-flag bug.
25782   echo 't clr' >>$CONFIG_STATUS
25783   echo ': clr' >>$CONFIG_STATUS
25784   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25785   echo 'CEOF
25786   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25787   rm -f $tmp/in
25788   mv $tmp/out $tmp/in
25789 ' >>$CONFIG_STATUS
25790   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25791   rm -f conftest.defines
25792   mv conftest.tail conftest.defines
25793 done
25794 rm -f conftest.defines
25795 echo '  fi # grep' >>$CONFIG_STATUS
25796 echo >>$CONFIG_STATUS
25797
25798 # Break up conftest.undefs because some shells have a limit on the size
25799 # of here documents, and old seds have small limits too (100 cmds).
25800 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25801 rm -f conftest.tail
25802 while grep . conftest.undefs >/dev/null
25803 do
25804   # Write a limited-size here document to $tmp/undefs.sed.
25805   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25806   # Speed up: don't consider the non `#undef'
25807   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25808   # Work around the forget-to-reset-the-flag bug.
25809   echo 't clr' >>$CONFIG_STATUS
25810   echo ': clr' >>$CONFIG_STATUS
25811   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25812   echo 'CEOF
25813   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25814   rm -f $tmp/in
25815   mv $tmp/out $tmp/in
25816 ' >>$CONFIG_STATUS
25817   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25818   rm -f conftest.undefs
25819   mv conftest.tail conftest.undefs
25820 done
25821 rm -f conftest.undefs
25822
25823 cat >>$CONFIG_STATUS <<\_ACEOF
25824   # Let's still pretend it is `configure' which instantiates (i.e., don't
25825   # use $as_me), people would be surprised to read:
25826   #    /* config.h.  Generated by config.status.  */
25827   if test x"$ac_file" = x-; then
25828     echo "/* Generated by configure.  */" >$tmp/config.h
25829   else
25830     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25831   fi
25832   cat $tmp/in >>$tmp/config.h
25833   rm -f $tmp/in
25834   if test x"$ac_file" != x-; then
25835     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25836       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25837 echo "$as_me: $ac_file is unchanged" >&6;}
25838     else
25839       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25840 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25841          X"$ac_file" : 'X\(//\)[^/]' \| \
25842          X"$ac_file" : 'X\(//\)$' \| \
25843          X"$ac_file" : 'X\(/\)' \| \
25844          .     : '\(.\)' 2>/dev/null ||
25845 echo X"$ac_file" |
25846     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25847           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25848           /^X\(\/\/\)$/{ s//\1/; q; }
25849           /^X\(\/\).*/{ s//\1/; q; }
25850           s/.*/./; q'`
25851       { if $as_mkdir_p; then
25852     mkdir -p "$ac_dir"
25853   else
25854     as_dir="$ac_dir"
25855     as_dirs=
25856     while test ! -d "$as_dir"; do
25857       as_dirs="$as_dir $as_dirs"
25858       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25859 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25860          X"$as_dir" : 'X\(//\)[^/]' \| \
25861          X"$as_dir" : 'X\(//\)$' \| \
25862          X"$as_dir" : 'X\(/\)' \| \
25863          .     : '\(.\)' 2>/dev/null ||
25864 echo X"$as_dir" |
25865     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25866           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25867           /^X\(\/\/\)$/{ s//\1/; q; }
25868           /^X\(\/\).*/{ s//\1/; q; }
25869           s/.*/./; q'`
25870     done
25871     test ! -n "$as_dirs" || mkdir $as_dirs
25872   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25873 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25874    { (exit 1); exit 1; }; }; }
25875
25876       rm -f $ac_file
25877       mv $tmp/config.h $ac_file
25878     fi
25879   else
25880     cat $tmp/config.h
25881     rm -f $tmp/config.h
25882   fi
25883 done
25884 _ACEOF
25885 cat >>$CONFIG_STATUS <<\_ACEOF
25886
25887 #
25888 # CONFIG_LINKS section.
25889 #
25890
25891 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25892   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25893   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25894
25895   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25896 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25897
25898   if test ! -r $srcdir/$ac_source; then
25899     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25900 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25901    { (exit 1); exit 1; }; }
25902   fi
25903   rm -f $ac_dest
25904
25905   # Make relative symlinks.
25906   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25907 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25908          X"$ac_dest" : 'X\(//\)[^/]' \| \
25909          X"$ac_dest" : 'X\(//\)$' \| \
25910          X"$ac_dest" : 'X\(/\)' \| \
25911          .     : '\(.\)' 2>/dev/null ||
25912 echo X"$ac_dest" |
25913     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25914           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25915           /^X\(\/\/\)$/{ s//\1/; q; }
25916           /^X\(\/\).*/{ s//\1/; q; }
25917           s/.*/./; q'`
25918   { if $as_mkdir_p; then
25919     mkdir -p "$ac_dest_dir"
25920   else
25921     as_dir="$ac_dest_dir"
25922     as_dirs=
25923     while test ! -d "$as_dir"; do
25924       as_dirs="$as_dir $as_dirs"
25925       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25926 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25927          X"$as_dir" : 'X\(//\)[^/]' \| \
25928          X"$as_dir" : 'X\(//\)$' \| \
25929          X"$as_dir" : 'X\(/\)' \| \
25930          .     : '\(.\)' 2>/dev/null ||
25931 echo X"$as_dir" |
25932     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25933           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25934           /^X\(\/\/\)$/{ s//\1/; q; }
25935           /^X\(\/\).*/{ s//\1/; q; }
25936           s/.*/./; q'`
25937     done
25938     test ! -n "$as_dirs" || mkdir $as_dirs
25939   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25940 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25941    { (exit 1); exit 1; }; }; }
25942
25943   ac_builddir=.
25944
25945 if test "$ac_dest_dir" != .; then
25946   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25947   # A "../" for each directory in $ac_dir_suffix.
25948   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25949 else
25950   ac_dir_suffix= ac_top_builddir=
25951 fi
25952
25953 case $srcdir in
25954   .)  # No --srcdir option.  We are building in place.
25955     ac_srcdir=.
25956     if test -z "$ac_top_builddir"; then
25957        ac_top_srcdir=.
25958     else
25959        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25960     fi ;;
25961   [\\/]* | ?:[\\/]* )  # Absolute path.
25962     ac_srcdir=$srcdir$ac_dir_suffix;
25963     ac_top_srcdir=$srcdir ;;
25964   *) # Relative path.
25965     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25966     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25967 esac
25968
25969 # Do not use `cd foo && pwd` to compute absolute paths, because
25970 # the directories may not exist.
25971 case `pwd` in
25972 .) ac_abs_builddir="$ac_dest_dir";;
25973 *)
25974   case "$ac_dest_dir" in
25975   .) ac_abs_builddir=`pwd`;;
25976   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25977   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25978   esac;;
25979 esac
25980 case $ac_abs_builddir in
25981 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25982 *)
25983   case ${ac_top_builddir}. in
25984   .) ac_abs_top_builddir=$ac_abs_builddir;;
25985   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25986   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25987   esac;;
25988 esac
25989 case $ac_abs_builddir in
25990 .) ac_abs_srcdir=$ac_srcdir;;
25991 *)
25992   case $ac_srcdir in
25993   .) ac_abs_srcdir=$ac_abs_builddir;;
25994   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25995   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25996   esac;;
25997 esac
25998 case $ac_abs_builddir in
25999 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26000 *)
26001   case $ac_top_srcdir in
26002   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26003   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26004   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26005   esac;;
26006 esac
26007
26008
26009   case $srcdir in
26010   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
26011       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
26012   esac
26013
26014   # Try a symlink, then a hard link, then a copy.
26015   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
26016     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
26017     cp -p $srcdir/$ac_source $ac_dest ||
26018     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
26019 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
26020    { (exit 1); exit 1; }; }
26021 done
26022 _ACEOF
26023 cat >>$CONFIG_STATUS <<\_ACEOF
26024
26025 #
26026 # CONFIG_COMMANDS section.
26027 #
26028 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26029   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26030   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26031   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26032 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26033          X"$ac_dest" : 'X\(//\)[^/]' \| \
26034          X"$ac_dest" : 'X\(//\)$' \| \
26035          X"$ac_dest" : 'X\(/\)' \| \
26036          .     : '\(.\)' 2>/dev/null ||
26037 echo X"$ac_dest" |
26038     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26039           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26040           /^X\(\/\/\)$/{ s//\1/; q; }
26041           /^X\(\/\).*/{ s//\1/; q; }
26042           s/.*/./; q'`
26043   { if $as_mkdir_p; then
26044     mkdir -p "$ac_dir"
26045   else
26046     as_dir="$ac_dir"
26047     as_dirs=
26048     while test ! -d "$as_dir"; do
26049       as_dirs="$as_dir $as_dirs"
26050       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26052          X"$as_dir" : 'X\(//\)[^/]' \| \
26053          X"$as_dir" : 'X\(//\)$' \| \
26054          X"$as_dir" : 'X\(/\)' \| \
26055          .     : '\(.\)' 2>/dev/null ||
26056 echo X"$as_dir" |
26057     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26058           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26059           /^X\(\/\/\)$/{ s//\1/; q; }
26060           /^X\(\/\).*/{ s//\1/; q; }
26061           s/.*/./; q'`
26062     done
26063     test ! -n "$as_dirs" || mkdir $as_dirs
26064   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26065 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26066    { (exit 1); exit 1; }; }; }
26067
26068   ac_builddir=.
26069
26070 if test "$ac_dir" != .; then
26071   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26072   # A "../" for each directory in $ac_dir_suffix.
26073   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26074 else
26075   ac_dir_suffix= ac_top_builddir=
26076 fi
26077
26078 case $srcdir in
26079   .)  # No --srcdir option.  We are building in place.
26080     ac_srcdir=.
26081     if test -z "$ac_top_builddir"; then
26082        ac_top_srcdir=.
26083     else
26084        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26085     fi ;;
26086   [\\/]* | ?:[\\/]* )  # Absolute path.
26087     ac_srcdir=$srcdir$ac_dir_suffix;
26088     ac_top_srcdir=$srcdir ;;
26089   *) # Relative path.
26090     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26091     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26092 esac
26093
26094 # Do not use `cd foo && pwd` to compute absolute paths, because
26095 # the directories may not exist.
26096 case `pwd` in
26097 .) ac_abs_builddir="$ac_dir";;
26098 *)
26099   case "$ac_dir" in
26100   .) ac_abs_builddir=`pwd`;;
26101   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26102   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26103   esac;;
26104 esac
26105 case $ac_abs_builddir in
26106 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26107 *)
26108   case ${ac_top_builddir}. in
26109   .) ac_abs_top_builddir=$ac_abs_builddir;;
26110   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26111   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26112   esac;;
26113 esac
26114 case $ac_abs_builddir in
26115 .) ac_abs_srcdir=$ac_srcdir;;
26116 *)
26117   case $ac_srcdir in
26118   .) ac_abs_srcdir=$ac_abs_builddir;;
26119   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26120   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26121   esac;;
26122 esac
26123 case $ac_abs_builddir in
26124 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26125 *)
26126   case $ac_top_srcdir in
26127   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26128   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26129   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26130   esac;;
26131 esac
26132
26133
26134   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26135 echo "$as_me: executing $ac_dest commands" >&6;}
26136   case $ac_dest in
26137     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
26138     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
26139     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
26140     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
26141     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
26142     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
26143     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
26144     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
26145     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
26146     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
26147     tools/Makefile.JIT ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile.JIT tools/Makefile.JIT ;;
26148     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
26149     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
26150   esac
26151 done
26152 _ACEOF
26153
26154 cat >>$CONFIG_STATUS <<\_ACEOF
26155
26156 { (exit 0); exit 0; }
26157 _ACEOF
26158 chmod +x $CONFIG_STATUS
26159 ac_clean_files=$ac_clean_files_save
26160
26161
26162 # configure is writing to config.log, and then calls config.status.
26163 # config.status does its own redirection, appending to config.log.
26164 # Unfortunately, on DOS this fails, as config.log is still kept open
26165 # by configure, so config.status won't be able to write to it; its
26166 # output is simply discarded.  So we exec the FD to /dev/null,
26167 # effectively closing config.log, so it can be properly (re)opened and
26168 # appended to by config.status.  When coming back to configure, we
26169 # need to make the FD available again.
26170 if test "$no_create" != yes; then
26171   ac_cs_success=:
26172   ac_config_status_args=
26173   test "$silent" = yes &&
26174     ac_config_status_args="$ac_config_status_args --quiet"
26175   exec 5>/dev/null
26176   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26177   exec 5>>config.log
26178   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26179   # would make configure fail if this is the last instruction.
26180   $ac_cs_success || { (exit 1); exit 1; }
26181 fi
26182
26183 #
26184 # CONFIG_SUBDIRS section.
26185 #
26186 if test "$no_recursion" != yes; then
26187
26188   # Remove --cache-file and --srcdir arguments so they do not pile up.
26189   ac_sub_configure_args=
26190   ac_prev=
26191   for ac_arg in $ac_configure_args; do
26192     if test -n "$ac_prev"; then
26193       ac_prev=
26194       continue
26195     fi
26196     case $ac_arg in
26197     -cache-file | --cache-file | --cache-fil | --cache-fi \
26198     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26199       ac_prev=cache_file ;;
26200     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26201     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26202     | --c=*)
26203       ;;
26204     --config-cache | -C)
26205       ;;
26206     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26207       ac_prev=srcdir ;;
26208     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26209       ;;
26210     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26211       ac_prev=prefix ;;
26212     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26213       ;;
26214     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26215     esac
26216   done
26217
26218   # Always prepend --prefix to ensure using the same prefix
26219   # in subdir configurations.
26220   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26221
26222   ac_popdir=`pwd`
26223   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26224
26225     # Do not complain, so a configure script can configure whichever
26226     # parts of a large source tree are present.
26227     test -d $srcdir/$ac_dir || continue
26228
26229     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26230 echo "$as_me: configuring in $ac_dir" >&6;}
26231     { if $as_mkdir_p; then
26232     mkdir -p "$ac_dir"
26233   else
26234     as_dir="$ac_dir"
26235     as_dirs=
26236     while test ! -d "$as_dir"; do
26237       as_dirs="$as_dir $as_dirs"
26238       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26239 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26240          X"$as_dir" : 'X\(//\)[^/]' \| \
26241          X"$as_dir" : 'X\(//\)$' \| \
26242          X"$as_dir" : 'X\(/\)' \| \
26243          .     : '\(.\)' 2>/dev/null ||
26244 echo X"$as_dir" |
26245     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26246           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26247           /^X\(\/\/\)$/{ s//\1/; q; }
26248           /^X\(\/\).*/{ s//\1/; q; }
26249           s/.*/./; q'`
26250     done
26251     test ! -n "$as_dirs" || mkdir $as_dirs
26252   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26253 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26254    { (exit 1); exit 1; }; }; }
26255
26256     ac_builddir=.
26257
26258 if test "$ac_dir" != .; then
26259   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26260   # A "../" for each directory in $ac_dir_suffix.
26261   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26262 else
26263   ac_dir_suffix= ac_top_builddir=
26264 fi
26265
26266 case $srcdir in
26267   .)  # No --srcdir option.  We are building in place.
26268     ac_srcdir=.
26269     if test -z "$ac_top_builddir"; then
26270        ac_top_srcdir=.
26271     else
26272        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26273     fi ;;
26274   [\\/]* | ?:[\\/]* )  # Absolute path.
26275     ac_srcdir=$srcdir$ac_dir_suffix;
26276     ac_top_srcdir=$srcdir ;;
26277   *) # Relative path.
26278     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26279     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26280 esac
26281
26282 # Do not use `cd foo && pwd` to compute absolute paths, because
26283 # the directories may not exist.
26284 case `pwd` in
26285 .) ac_abs_builddir="$ac_dir";;
26286 *)
26287   case "$ac_dir" in
26288   .) ac_abs_builddir=`pwd`;;
26289   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26290   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26291   esac;;
26292 esac
26293 case $ac_abs_builddir in
26294 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26295 *)
26296   case ${ac_top_builddir}. in
26297   .) ac_abs_top_builddir=$ac_abs_builddir;;
26298   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26299   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26300   esac;;
26301 esac
26302 case $ac_abs_builddir in
26303 .) ac_abs_srcdir=$ac_srcdir;;
26304 *)
26305   case $ac_srcdir in
26306   .) ac_abs_srcdir=$ac_abs_builddir;;
26307   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26308   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26309   esac;;
26310 esac
26311 case $ac_abs_builddir in
26312 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26313 *)
26314   case $ac_top_srcdir in
26315   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26316   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26317   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26318   esac;;
26319 esac
26320
26321
26322     cd $ac_dir
26323
26324     # Check for guested configure; otherwise get Cygnus style configure.
26325     if test -f $ac_srcdir/configure.gnu; then
26326       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26327     elif test -f $ac_srcdir/configure; then
26328       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26329     elif test -f $ac_srcdir/configure.in; then
26330       ac_sub_configure=$ac_configure
26331     else
26332       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26333 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26334       ac_sub_configure=
26335     fi
26336
26337     # The recursion is here.
26338     if test -n "$ac_sub_configure"; then
26339       # Make the cache file name correct relative to the subdirectory.
26340       case $cache_file in
26341       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26342       *) # Relative path.
26343         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
26344       esac
26345
26346       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26347 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26348       # The eval makes quoting arguments work.
26349       eval $ac_sub_configure $ac_sub_configure_args \
26350            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26351         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26352 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26353    { (exit 1); exit 1; }; }
26354     fi
26355
26356     cd $ac_popdir
26357   done
26358 fi
26359
26360
26361 if test $bzip2_found -ne 1 ; then
26362   if test $zlib_found -ne 1 ; then
26363     { echo "$as_me:$LINENO: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&5
26364 echo "$as_me: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&2;}
26365     { echo "$as_me:$LINENO: WARNING: *** Bytecode archives will not support compression!" >&5
26366 echo "$as_me: WARNING: *** Bytecode archives will not support compression!" >&2;}
26367     { echo "$as_me:$LINENO: WARNING: *** To correct, install the libraries and and re-run configure." >&5
26368 echo "$as_me: WARNING: *** To correct, install the libraries and and re-run configure." >&2;}
26369   fi
26370 fi
26371
26372 if test $llvmgccwarn = yes
26373 then
26374         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
26375 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
26376         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
26377 echo "$as_me: WARNING: ***** appear to be working." >&2;}
26378         { echo "$as_me:$LINENO: WARNING: ***** " >&5
26379 echo "$as_me: WARNING: ***** " >&2;}
26380         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
26381 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
26382         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
26383 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
26384         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
26385 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
26386 fi
26387