Implement the "setIncludePaths" and "setSymbolDefines" interface methods.
[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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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=`echo "$tagnames,CXX" | sed 's/^,//'`
397
398 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
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_subdirs_all="$ac_subdirs_all projects/${i}"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_unique_file=""Makefile.config.in""
469 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 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 DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H INCLUDE_STDINT_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC95_ROOT USE_SPEC95 SPEC2000_ROOT USE_SPEC2000 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
470 ac_subst_files=''
471
472 # Initialize some variables set by options.
473 ac_init_help=
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
477 cache_file=/dev/null
478 exec_prefix=NONE
479 no_create=
480 no_recursion=
481 prefix=NONE
482 program_prefix=NONE
483 program_suffix=NONE
484 program_transform_name=s,x,x,
485 silent=
486 site=
487 srcdir=
488 verbose=
489 x_includes=NONE
490 x_libraries=NONE
491
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
509
510 ac_prev=
511 for ac_option
512 do
513   # If the previous option needs an argument, assign it.
514   if test -n "$ac_prev"; then
515     eval "$ac_prev=\$ac_option"
516     ac_prev=
517     continue
518   fi
519
520   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522   # Accept the important Cygnus configure options, so we can diagnose typos.
523
524   case $ac_option in
525
526   -bindir | --bindir | --bindi | --bind | --bin | --bi)
527     ac_prev=bindir ;;
528   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529     bindir=$ac_optarg ;;
530
531   -build | --build | --buil | --bui | --bu)
532     ac_prev=build_alias ;;
533   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534     build_alias=$ac_optarg ;;
535
536   -cache-file | --cache-file | --cache-fil | --cache-fi \
537   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538     ac_prev=cache_file ;;
539   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541     cache_file=$ac_optarg ;;
542
543   --config-cache | -C)
544     cache_file=config.cache ;;
545
546   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547     ac_prev=datadir ;;
548   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549   | --da=*)
550     datadir=$ac_optarg ;;
551
552   -disable-* | --disable-*)
553     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554     # Reject names that are not valid shell variable names.
555     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557    { (exit 1); exit 1; }; }
558     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559     eval "enable_$ac_feature=no" ;;
560
561   -enable-* | --enable-*)
562     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563     # Reject names that are not valid shell variable names.
564     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566    { (exit 1); exit 1; }; }
567     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568     case $ac_option in
569       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570       *) ac_optarg=yes ;;
571     esac
572     eval "enable_$ac_feature='$ac_optarg'" ;;
573
574   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576   | --exec | --exe | --ex)
577     ac_prev=exec_prefix ;;
578   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580   | --exec=* | --exe=* | --ex=*)
581     exec_prefix=$ac_optarg ;;
582
583   -gas | --gas | --ga | --g)
584     # Obsolete; use --with-gas.
585     with_gas=yes ;;
586
587   -help | --help | --hel | --he | -h)
588     ac_init_help=long ;;
589   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590     ac_init_help=recursive ;;
591   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592     ac_init_help=short ;;
593
594   -host | --host | --hos | --ho)
595     ac_prev=host_alias ;;
596   -host=* | --host=* | --hos=* | --ho=*)
597     host_alias=$ac_optarg ;;
598
599   -includedir | --includedir | --includedi | --included | --include \
600   | --includ | --inclu | --incl | --inc)
601     ac_prev=includedir ;;
602   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603   | --includ=* | --inclu=* | --incl=* | --inc=*)
604     includedir=$ac_optarg ;;
605
606   -infodir | --infodir | --infodi | --infod | --info | --inf)
607     ac_prev=infodir ;;
608   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609     infodir=$ac_optarg ;;
610
611   -libdir | --libdir | --libdi | --libd)
612     ac_prev=libdir ;;
613   -libdir=* | --libdir=* | --libdi=* | --libd=*)
614     libdir=$ac_optarg ;;
615
616   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617   | --libexe | --libex | --libe)
618     ac_prev=libexecdir ;;
619   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620   | --libexe=* | --libex=* | --libe=*)
621     libexecdir=$ac_optarg ;;
622
623   -localstatedir | --localstatedir | --localstatedi | --localstated \
624   | --localstate | --localstat | --localsta | --localst \
625   | --locals | --local | --loca | --loc | --lo)
626     ac_prev=localstatedir ;;
627   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630     localstatedir=$ac_optarg ;;
631
632   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633     ac_prev=mandir ;;
634   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635     mandir=$ac_optarg ;;
636
637   -nfp | --nfp | --nf)
638     # Obsolete; use --without-fp.
639     with_fp=no ;;
640
641   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642   | --no-cr | --no-c | -n)
643     no_create=yes ;;
644
645   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647     no_recursion=yes ;;
648
649   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651   | --oldin | --oldi | --old | --ol | --o)
652     ac_prev=oldincludedir ;;
653   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656     oldincludedir=$ac_optarg ;;
657
658   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659     ac_prev=prefix ;;
660   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661     prefix=$ac_optarg ;;
662
663   -program-prefix | --program-prefix | --program-prefi | --program-pref \
664   | --program-pre | --program-pr | --program-p)
665     ac_prev=program_prefix ;;
666   -program-prefix=* | --program-prefix=* | --program-prefi=* \
667   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668     program_prefix=$ac_optarg ;;
669
670   -program-suffix | --program-suffix | --program-suffi | --program-suff \
671   | --program-suf | --program-su | --program-s)
672     ac_prev=program_suffix ;;
673   -program-suffix=* | --program-suffix=* | --program-suffi=* \
674   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675     program_suffix=$ac_optarg ;;
676
677   -program-transform-name | --program-transform-name \
678   | --program-transform-nam | --program-transform-na \
679   | --program-transform-n | --program-transform- \
680   | --program-transform | --program-transfor \
681   | --program-transfo | --program-transf \
682   | --program-trans | --program-tran \
683   | --progr-tra | --program-tr | --program-t)
684     ac_prev=program_transform_name ;;
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     program_transform_name=$ac_optarg ;;
693
694   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695   | -silent | --silent | --silen | --sile | --sil)
696     silent=yes ;;
697
698   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699     ac_prev=sbindir ;;
700   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701   | --sbi=* | --sb=*)
702     sbindir=$ac_optarg ;;
703
704   -sharedstatedir | --sharedstatedir | --sharedstatedi \
705   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706   | --sharedst | --shareds | --shared | --share | --shar \
707   | --sha | --sh)
708     ac_prev=sharedstatedir ;;
709   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712   | --sha=* | --sh=*)
713     sharedstatedir=$ac_optarg ;;
714
715   -site | --site | --sit)
716     ac_prev=site ;;
717   -site=* | --site=* | --sit=*)
718     site=$ac_optarg ;;
719
720   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721     ac_prev=srcdir ;;
722   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723     srcdir=$ac_optarg ;;
724
725   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726   | --syscon | --sysco | --sysc | --sys | --sy)
727     ac_prev=sysconfdir ;;
728   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730     sysconfdir=$ac_optarg ;;
731
732   -target | --target | --targe | --targ | --tar | --ta | --t)
733     ac_prev=target_alias ;;
734   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735     target_alias=$ac_optarg ;;
736
737   -v | -verbose | --verbose | --verbos | --verbo | --verb)
738     verbose=yes ;;
739
740   -version | --version | --versio | --versi | --vers | -V)
741     ac_init_version=: ;;
742
743   -with-* | --with-*)
744     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745     # Reject names that are not valid shell variable names.
746     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747       { echo "$as_me: error: invalid package name: $ac_package" >&2
748    { (exit 1); exit 1; }; }
749     ac_package=`echo $ac_package| sed 's/-/_/g'`
750     case $ac_option in
751       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752       *) ac_optarg=yes ;;
753     esac
754     eval "with_$ac_package='$ac_optarg'" ;;
755
756   -without-* | --without-*)
757     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758     # Reject names that are not valid shell variable names.
759     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760       { echo "$as_me: error: invalid package name: $ac_package" >&2
761    { (exit 1); exit 1; }; }
762     ac_package=`echo $ac_package | sed 's/-/_/g'`
763     eval "with_$ac_package=no" ;;
764
765   --x)
766     # Obsolete; use --with-x.
767     with_x=yes ;;
768
769   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770   | --x-incl | --x-inc | --x-in | --x-i)
771     ac_prev=x_includes ;;
772   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774     x_includes=$ac_optarg ;;
775
776   -x-libraries | --x-libraries | --x-librarie | --x-librari \
777   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778     ac_prev=x_libraries ;;
779   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781     x_libraries=$ac_optarg ;;
782
783   -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785    { (exit 1); exit 1; }; }
786     ;;
787
788   *=*)
789     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790     # Reject names that are not valid shell variable names.
791     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793    { (exit 1); exit 1; }; }
794     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795     eval "$ac_envvar='$ac_optarg'"
796     export $ac_envvar ;;
797
798   *)
799     # FIXME: should be removed in autoconf 3.0.
800     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804     ;;
805
806   esac
807 done
808
809 if test -n "$ac_prev"; then
810   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811   { echo "$as_me: error: missing argument to $ac_option" >&2
812    { (exit 1); exit 1; }; }
813 fi
814
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
817 do
818   eval ac_val=$`echo $ac_var`
819   case $ac_val in
820     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822    { (exit 1); exit 1; }; };;
823   esac
824 done
825
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828               localstatedir libdir includedir oldincludedir infodir mandir
829 do
830   eval ac_val=$`echo $ac_var`
831   case $ac_val in
832     [\\/$]* | ?:[\\/]* ) ;;
833     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834    { (exit 1); exit 1; }; };;
835   esac
836 done
837
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
841 build=$build_alias
842 host=$host_alias
843 target=$target_alias
844
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847   if test "x$build_alias" = x; then
848     cross_compiling=maybe
849     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850     If a cross compiler is detected then cross compile mode will be used." >&2
851   elif test "x$build_alias" != "x$host_alias"; then
852     cross_compiling=yes
853   fi
854 fi
855
856 ac_tool_prefix=
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859 test "$silent" = yes && exec 6>/dev/null
860
861
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864   ac_srcdir_defaulted=yes
865   # Try the directory containing this script, then its parent.
866   ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868          X"$0" : 'X\(//\)[^/]' \| \
869          X"$0" : 'X\(//\)$' \| \
870          X"$0" : 'X\(/\)' \| \
871          .     : '\(.\)' 2>/dev/null ||
872 echo X"$0" |
873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875           /^X\(\/\/\)$/{ s//\1/; q; }
876           /^X\(\/\).*/{ s//\1/; q; }
877           s/.*/./; q'`
878   srcdir=$ac_confdir
879   if test ! -r $srcdir/$ac_unique_file; then
880     srcdir=..
881   fi
882 else
883   ac_srcdir_defaulted=no
884 fi
885 if test ! -r $srcdir/$ac_unique_file; then
886   if test "$ac_srcdir_defaulted" = yes; then
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888    { (exit 1); exit 1; }; }
889   else
890     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891    { (exit 1); exit 1; }; }
892   fi
893 fi
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896    { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CXX_set=${CXX+set}
911 ac_env_CXX_value=$CXX
912 ac_cv_env_CXX_set=${CXX+set}
913 ac_cv_env_CXX_value=$CXX
914 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915 ac_env_CXXFLAGS_value=$CXXFLAGS
916 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CC_set=${CC+set}
927 ac_env_CC_value=$CC
928 ac_cv_env_CC_set=${CC+set}
929 ac_cv_env_CC_value=$CC
930 ac_env_CFLAGS_set=${CFLAGS+set}
931 ac_env_CFLAGS_value=$CFLAGS
932 ac_cv_env_CFLAGS_set=${CFLAGS+set}
933 ac_cv_env_CFLAGS_value=$CFLAGS
934 ac_env_CPP_set=${CPP+set}
935 ac_env_CPP_value=$CPP
936 ac_cv_env_CPP_set=${CPP+set}
937 ac_cv_env_CPP_value=$CPP
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
950
951 #
952 # Report the --help message.
953 #
954 if test "$ac_init_help" = "long"; then
955   # Omit some internal or obsolete options to make the list less imposing.
956   # This message is too long to be a string in the A/UX 3.1 sh.
957   cat <<_ACEOF
958 \`configure' configures LLVM 1.4 to adapt to many kinds of systems.
959
960 Usage: $0 [OPTION]... [VAR=VALUE]...
961
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE.  See below for descriptions of some of the useful variables.
964
965 Defaults for the options are specified in brackets.
966
967 Configuration:
968   -h, --help              display this help and exit
969       --help=short        display options specific to this package
970       --help=recursive    display the short help of all the included packages
971   -V, --version           display version information and exit
972   -q, --quiet, --silent   do not print \`checking...' messages
973       --cache-file=FILE   cache test results in FILE [disabled]
974   -C, --config-cache      alias for \`--cache-file=config.cache'
975   -n, --no-create         do not create output files
976       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
977
978 _ACEOF
979
980   cat <<_ACEOF
981 Installation directories:
982   --prefix=PREFIX         install architecture-independent files in PREFIX
983                           [$ac_default_prefix]
984   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
985                           [PREFIX]
986
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
991
992 For better control, use the options below.
993
994 Fine tuning of the installation directories:
995   --bindir=DIR           user executables [EPREFIX/bin]
996   --sbindir=DIR          system admin executables [EPREFIX/sbin]
997   --libexecdir=DIR       program executables [EPREFIX/libexec]
998   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
999   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1000   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1001   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1002   --libdir=DIR           object code libraries [EPREFIX/lib]
1003   --includedir=DIR       C header files [PREFIX/include]
1004   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1005   --infodir=DIR          info documentation [PREFIX/info]
1006   --mandir=DIR           man documentation [PREFIX/man]
1007 _ACEOF
1008
1009   cat <<\_ACEOF
1010
1011 System types:
1012   --build=BUILD     configure for building on BUILD [guessed]
1013   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1014   --target=TARGET   configure for building compilers for TARGET [HOST]
1015 _ACEOF
1016 fi
1017
1018 if test -n "$ac_init_help"; then
1019   case $ac_init_help in
1020      short | recursive ) echo "Configuration of LLVM 1.4:";;
1021    esac
1022   cat <<\_ACEOF
1023
1024 Optional Features:
1025   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1026   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1027   --enable-shared[=PKGS]
1028                           build shared libraries [default=yes]
1029   --enable-static[=PKGS]
1030                           build static libraries [default=yes]
1031   --enable-fast-install[=PKGS]
1032                           optimize for fast installation [default=yes]
1033   --disable-libtool-lock  avoid locking (might break parallel builds)
1034   --enable-optimized      Compile with optimizations enabled (default is NO)
1035   --enable-spec95=ARG     Use spec95 as a benchmark (srcs in DIR)
1036   --enable-spec2000=ARG   Use spec2000 as a benchmark (srcs in DIR)
1037   --enable-povray=ARG     Use povray as a benchmark (srcs in DIR)
1038   --enable-precompiled_bytecode
1039                           Use pre-compiled bytecode (default is NO)
1040   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1041   --enable-jit            Enable Just In Time Compiling (default is YES)
1042
1043 Optional Packages:
1044   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1045   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1046   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1047   --with-pic              try to use only PIC/non-PIC objects [default=use
1048                           both]
1049   --with-tags[=TAGS]
1050                           include additional configurations [automatic]
1051   --with-llvmgccdir       Location of LLVM GCC front-end
1052   --with-bcrepos          Location of Bytecode Repository
1053   --with-papi             Location of PAPI
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 if test ${srcdir} != "."
1546 then
1547         if test -f ${srcdir}/include/Config/config.h
1548         then
1549                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1550 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1551    { (exit 1); exit 1; }; }
1552         fi
1553 fi
1554
1555 for i in `ls ${srcdir}/projects`
1556 do
1557   if test ${i} != "CVS"
1558   then
1559     if test -f ${srcdir}/projects/${i}/configure
1560     then
1561
1562
1563 subdirs="$subdirs projects/${i}"
1564
1565     fi
1566   fi
1567 done
1568
1569           ac_config_headers="$ac_config_headers include/Config/config.h"
1570
1571
1572                                                             ac_config_files="$ac_config_files Makefile.config include/Support/DataTypes.h include/Support/ThreadSupport.h include/Support/hash_map include/Support/hash_set include/Support/iterator"
1573
1574
1575           ac_config_commands="$ac_config_commands Makefile"
1576
1577
1578           ac_config_commands="$ac_config_commands Makefile.common"
1579
1580
1581           ac_config_commands="$ac_config_commands examples/Makefile"
1582
1583
1584           ac_config_commands="$ac_config_commands lib/Makefile"
1585
1586
1587           ac_config_commands="$ac_config_commands runtime/Makefile"
1588
1589
1590           ac_config_commands="$ac_config_commands test/Makefile"
1591
1592
1593           ac_config_commands="$ac_config_commands test/Makefile.tests"
1594
1595
1596           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1597
1598
1599           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1600
1601
1602           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1603
1604
1605           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1606
1607
1608           ac_config_commands="$ac_config_commands test/Programs/Makefile.tests"
1609
1610
1611           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1612
1613
1614           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1615
1616
1617           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1618
1619
1620           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1621
1622
1623           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1624
1625
1626           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1627
1628
1629           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1630
1631
1632           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1633
1634
1635           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1636
1637
1638           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1639
1640
1641           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1642
1643
1644           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1645
1646
1647           ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1648
1649
1650           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1651
1652
1653           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1654
1655
1656           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1657
1658
1659           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1660
1661
1662           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1663
1664
1665           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1666
1667
1668           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1669
1670
1671           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1672
1673
1674           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1675
1676
1677           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1678
1679
1680           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1681
1682
1683           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1684
1685
1686           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1687
1688
1689           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1690
1691
1692           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1693
1694
1695           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1696
1697
1698           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1699
1700
1701           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1702
1703
1704           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1705
1706
1707           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1708
1709
1710           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1711
1712
1713           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1714
1715
1716           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1717
1718
1719           ac_config_commands="$ac_config_commands tools/Makefile"
1720
1721
1722           ac_config_commands="$ac_config_commands utils/Makefile"
1723
1724
1725           ac_config_commands="$ac_config_commands projects/Makefile"
1726
1727
1728
1729 # Find a good install program.  We prefer a C program (faster),
1730 # so one script is as good as another.  But avoid the broken or
1731 # incompatible versions:
1732 # SysV /etc/install, /usr/sbin/install
1733 # SunOS /usr/etc/install
1734 # IRIX /sbin/install
1735 # AIX /bin/install
1736 # AmigaOS /C/install, which installs bootblocks on floppy discs
1737 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1738 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1739 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1740 # OS/2's system install, which has a completely different semantic
1741 # ./install, which can be erroneously created by make from ./install.sh.
1742 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1743 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1744 if test -z "$INSTALL"; then
1745 if test "${ac_cv_path_install+set}" = set; then
1746   echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 for as_dir in $PATH
1750 do
1751   IFS=$as_save_IFS
1752   test -z "$as_dir" && as_dir=.
1753   # Account for people who put trailing slashes in PATH elements.
1754 case $as_dir/ in
1755   ./ | .// | /cC/* | \
1756   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1757   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1758   /usr/ucb/* ) ;;
1759   *)
1760     # OSF1 and SCO ODT 3.0 have their own names for install.
1761     # Don't use installbsd from OSF since it installs stuff as root
1762     # by default.
1763     for ac_prog in ginstall scoinst install; do
1764       for ac_exec_ext in '' $ac_executable_extensions; do
1765         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1766           if test $ac_prog = install &&
1767             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1768             # AIX install.  It has an incompatible calling convention.
1769             :
1770           elif test $ac_prog = install &&
1771             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1772             # program-specific install script used by HP pwplus--don't use.
1773             :
1774           else
1775             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1776             break 3
1777           fi
1778         fi
1779       done
1780     done
1781     ;;
1782 esac
1783 done
1784
1785
1786 fi
1787   if test "${ac_cv_path_install+set}" = set; then
1788     INSTALL=$ac_cv_path_install
1789   else
1790     # As a last resort, use the slow shell script.  We don't cache a
1791     # path for INSTALL within a source directory, because that will
1792     # break other packages using the cache if that directory is
1793     # removed, or if the path is relative.
1794     INSTALL=$ac_install_sh
1795   fi
1796 fi
1797 echo "$as_me:$LINENO: result: $INSTALL" >&5
1798 echo "${ECHO_T}$INSTALL" >&6
1799
1800 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1801 # It thinks the first close brace ends the variable substitution.
1802 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1803
1804 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1805
1806 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1807
1808
1809 # Make sure we can run config.sub.
1810 $ac_config_sub sun4 >/dev/null 2>&1 ||
1811   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1812 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1813    { (exit 1); exit 1; }; }
1814
1815 echo "$as_me:$LINENO: checking build system type" >&5
1816 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1817 if test "${ac_cv_build+set}" = set; then
1818   echo $ECHO_N "(cached) $ECHO_C" >&6
1819 else
1820   ac_cv_build_alias=$build_alias
1821 test -z "$ac_cv_build_alias" &&
1822   ac_cv_build_alias=`$ac_config_guess`
1823 test -z "$ac_cv_build_alias" &&
1824   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1825 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1826    { (exit 1); exit 1; }; }
1827 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1828   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1829 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1830    { (exit 1); exit 1; }; }
1831
1832 fi
1833 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1834 echo "${ECHO_T}$ac_cv_build" >&6
1835 build=$ac_cv_build
1836 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1837 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1838 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1839
1840
1841 echo "$as_me:$LINENO: checking host system type" >&5
1842 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1843 if test "${ac_cv_host+set}" = set; then
1844   echo $ECHO_N "(cached) $ECHO_C" >&6
1845 else
1846   ac_cv_host_alias=$host_alias
1847 test -z "$ac_cv_host_alias" &&
1848   ac_cv_host_alias=$ac_cv_build_alias
1849 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1850   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1851 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1852    { (exit 1); exit 1; }; }
1853
1854 fi
1855 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1856 echo "${ECHO_T}$ac_cv_host" >&6
1857 host=$ac_cv_host
1858 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1859 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1860 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1861
1862
1863 echo "$as_me:$LINENO: checking target system type" >&5
1864 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1865 if test "${ac_cv_target+set}" = set; then
1866   echo $ECHO_N "(cached) $ECHO_C" >&6
1867 else
1868   ac_cv_target_alias=$target_alias
1869 test "x$ac_cv_target_alias" = "x" &&
1870   ac_cv_target_alias=$ac_cv_host_alias
1871 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1872   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1873 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1874    { (exit 1); exit 1; }; }
1875
1876 fi
1877 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1878 echo "${ECHO_T}$ac_cv_target" >&6
1879 target=$ac_cv_target
1880 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1881 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1882 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1883
1884
1885 # The aliases save the names the user supplied, while $host etc.
1886 # will get canonicalized.
1887 test -n "$target_alias" &&
1888   test "$program_prefix$program_suffix$program_transform_name" = \
1889     NONENONEs,x,x, &&
1890   program_prefix=${target_alias}-
1891
1892 case $build in
1893         *-*-linux*)
1894              OS=Linux
1895
1896              platform_type="Linux"
1897              if test -d /home/vadve/lattner/local/x86/llvm-gcc
1898              then
1899                LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1900
1901              fi
1902              ;;
1903         *-*-solaris*)
1904              OS=SunOS
1905
1906              platform_type="SunOS"
1907              if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1908              then
1909                LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1910
1911              fi
1912              ;;
1913         *-*-cygwin*)
1914              OS=Cygwin
1915
1916              platform_type="Cygwin"
1917              ;;
1918         *-*-darwin*)
1919              OS=Darwin
1920
1921              platform_type="Darwin"
1922              ;;
1923         *-*-aix*)
1924              OS=AIX
1925
1926              platform_type="AIX"
1927              ;;
1928         *-*-win32*)
1929              OS=Win32
1930
1931              platform_type="Win32"
1932              ;;
1933         *)
1934              OS=Unknown
1935
1936              platform_type="Unknown"
1937              ;;
1938 esac
1939
1940           ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1941
1942
1943 case $target in
1944         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1945
1946                             ;;
1947 esac
1948
1949 case $target in
1950         i*86-*)           ARCH=x86
1951
1952                           ;;
1953         sparc*-*)         ARCH=Sparc
1954
1955                           ;;
1956         powerpc*-*)       ARCH=PowerPC
1957
1958                           ;;
1959         *)                ARCH=Unknown
1960
1961                           ;;
1962 esac
1963
1964 ac_ext=cc
1965 ac_cpp='$CXXCPP $CPPFLAGS'
1966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1969 if test -n "$ac_tool_prefix"; then
1970   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1971   do
1972     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1973 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1974 echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976 if test "${ac_cv_prog_CXX+set}" = set; then
1977   echo $ECHO_N "(cached) $ECHO_C" >&6
1978 else
1979   if test -n "$CXX"; then
1980   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1981 else
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 for as_dir in $PATH
1984 do
1985   IFS=$as_save_IFS
1986   test -z "$as_dir" && as_dir=.
1987   for ac_exec_ext in '' $ac_executable_extensions; do
1988   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1989     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991     break 2
1992   fi
1993 done
1994 done
1995
1996 fi
1997 fi
1998 CXX=$ac_cv_prog_CXX
1999 if test -n "$CXX"; then
2000   echo "$as_me:$LINENO: result: $CXX" >&5
2001 echo "${ECHO_T}$CXX" >&6
2002 else
2003   echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2005 fi
2006
2007     test -n "$CXX" && break
2008   done
2009 fi
2010 if test -z "$CXX"; then
2011   ac_ct_CXX=$CXX
2012   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2013 do
2014   # Extract the first word of "$ac_prog", so it can be a program name with args.
2015 set dummy $ac_prog; ac_word=$2
2016 echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2019   echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021   if test -n "$ac_ct_CXX"; then
2022   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2023 else
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 for as_dir in $PATH
2026 do
2027   IFS=$as_save_IFS
2028   test -z "$as_dir" && as_dir=.
2029   for ac_exec_ext in '' $ac_executable_extensions; do
2030   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2031     ac_cv_prog_ac_ct_CXX="$ac_prog"
2032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033     break 2
2034   fi
2035 done
2036 done
2037
2038 fi
2039 fi
2040 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2041 if test -n "$ac_ct_CXX"; then
2042   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2043 echo "${ECHO_T}$ac_ct_CXX" >&6
2044 else
2045   echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6
2047 fi
2048
2049   test -n "$ac_ct_CXX" && break
2050 done
2051 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2052
2053   CXX=$ac_ct_CXX
2054 fi
2055
2056
2057 # Provide some information about the compiler.
2058 echo "$as_me:$LINENO:" \
2059      "checking for C++ compiler version" >&5
2060 ac_compiler=`set X $ac_compile; echo $2`
2061 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2062   (eval $ac_compiler --version </dev/null >&5) 2>&5
2063   ac_status=$?
2064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065   (exit $ac_status); }
2066 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2067   (eval $ac_compiler -v </dev/null >&5) 2>&5
2068   ac_status=$?
2069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070   (exit $ac_status); }
2071 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2072   (eval $ac_compiler -V </dev/null >&5) 2>&5
2073   ac_status=$?
2074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075   (exit $ac_status); }
2076
2077 cat >conftest.$ac_ext <<_ACEOF
2078 /* confdefs.h.  */
2079 _ACEOF
2080 cat confdefs.h >>conftest.$ac_ext
2081 cat >>conftest.$ac_ext <<_ACEOF
2082 /* end confdefs.h.  */
2083
2084 int
2085 main ()
2086 {
2087
2088   ;
2089   return 0;
2090 }
2091 _ACEOF
2092 ac_clean_files_save=$ac_clean_files
2093 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2094 # Try to create an executable without -o first, disregard a.out.
2095 # It will help us diagnose broken compilers, and finding out an intuition
2096 # of exeext.
2097 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2098 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2099 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2100 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2101   (eval $ac_link_default) 2>&5
2102   ac_status=$?
2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104   (exit $ac_status); }; then
2105   # Find the output, starting from the most likely.  This scheme is
2106 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2107 # resort.
2108
2109 # Be careful to initialize this variable, since it used to be cached.
2110 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2111 ac_cv_exeext=
2112 # b.out is created by i960 compilers.
2113 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2114 do
2115   test -f "$ac_file" || continue
2116   case $ac_file in
2117     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2118         ;;
2119     conftest.$ac_ext )
2120         # This is the source file.
2121         ;;
2122     [ab].out )
2123         # We found the default executable, but exeext='' is most
2124         # certainly right.
2125         break;;
2126     *.* )
2127         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2128         # FIXME: I believe we export ac_cv_exeext for Libtool,
2129         # but it would be cool to find out if it's true.  Does anybody
2130         # maintain Libtool? --akim.
2131         export ac_cv_exeext
2132         break;;
2133     * )
2134         break;;
2135   esac
2136 done
2137 else
2138   echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2140
2141 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2142 See \`config.log' for more details." >&5
2143 echo "$as_me: error: C++ compiler cannot create executables
2144 See \`config.log' for more details." >&2;}
2145    { (exit 77); exit 77; }; }
2146 fi
2147
2148 ac_exeext=$ac_cv_exeext
2149 echo "$as_me:$LINENO: result: $ac_file" >&5
2150 echo "${ECHO_T}$ac_file" >&6
2151
2152 # Check the compiler produces executables we can run.  If not, either
2153 # the compiler is broken, or we cross compile.
2154 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2155 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2156 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2157 # If not cross compiling, check that we can run a simple program.
2158 if test "$cross_compiling" != yes; then
2159   if { ac_try='./$ac_file'
2160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161   (eval $ac_try) 2>&5
2162   ac_status=$?
2163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164   (exit $ac_status); }; }; then
2165     cross_compiling=no
2166   else
2167     if test "$cross_compiling" = maybe; then
2168         cross_compiling=yes
2169     else
2170         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2171 If you meant to cross compile, use \`--host'.
2172 See \`config.log' for more details." >&5
2173 echo "$as_me: error: cannot run C++ compiled programs.
2174 If you meant to cross compile, use \`--host'.
2175 See \`config.log' for more details." >&2;}
2176    { (exit 1); exit 1; }; }
2177     fi
2178   fi
2179 fi
2180 echo "$as_me:$LINENO: result: yes" >&5
2181 echo "${ECHO_T}yes" >&6
2182
2183 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2184 ac_clean_files=$ac_clean_files_save
2185 # Check the compiler produces executables we can run.  If not, either
2186 # the compiler is broken, or we cross compile.
2187 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2188 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2189 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2190 echo "${ECHO_T}$cross_compiling" >&6
2191
2192 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2193 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2195   (eval $ac_link) 2>&5
2196   ac_status=$?
2197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198   (exit $ac_status); }; then
2199   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2200 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2201 # work properly (i.e., refer to `conftest.exe'), while it won't with
2202 # `rm'.
2203 for ac_file in conftest.exe conftest conftest.*; do
2204   test -f "$ac_file" || continue
2205   case $ac_file in
2206     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2207     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2208           export ac_cv_exeext
2209           break;;
2210     * ) break;;
2211   esac
2212 done
2213 else
2214   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2217 See \`config.log' for more details." >&2;}
2218    { (exit 1); exit 1; }; }
2219 fi
2220
2221 rm -f conftest$ac_cv_exeext
2222 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2223 echo "${ECHO_T}$ac_cv_exeext" >&6
2224
2225 rm -f conftest.$ac_ext
2226 EXEEXT=$ac_cv_exeext
2227 ac_exeext=$EXEEXT
2228 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2229 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2230 if test "${ac_cv_objext+set}" = set; then
2231   echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233   cat >conftest.$ac_ext <<_ACEOF
2234 /* confdefs.h.  */
2235 _ACEOF
2236 cat confdefs.h >>conftest.$ac_ext
2237 cat >>conftest.$ac_ext <<_ACEOF
2238 /* end confdefs.h.  */
2239
2240 int
2241 main ()
2242 {
2243
2244   ;
2245   return 0;
2246 }
2247 _ACEOF
2248 rm -f conftest.o conftest.obj
2249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250   (eval $ac_compile) 2>&5
2251   ac_status=$?
2252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253   (exit $ac_status); }; then
2254   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2255   case $ac_file in
2256     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2257     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2258        break;;
2259   esac
2260 done
2261 else
2262   echo "$as_me: failed program was:" >&5
2263 sed 's/^/| /' conftest.$ac_ext >&5
2264
2265 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2266 See \`config.log' for more details." >&5
2267 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2268 See \`config.log' for more details." >&2;}
2269    { (exit 1); exit 1; }; }
2270 fi
2271
2272 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2273 fi
2274 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2275 echo "${ECHO_T}$ac_cv_objext" >&6
2276 OBJEXT=$ac_cv_objext
2277 ac_objext=$OBJEXT
2278 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2279 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2280 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2281   echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283   cat >conftest.$ac_ext <<_ACEOF
2284 /* confdefs.h.  */
2285 _ACEOF
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h.  */
2289
2290 int
2291 main ()
2292 {
2293 #ifndef __GNUC__
2294        choke me
2295 #endif
2296
2297   ;
2298   return 0;
2299 }
2300 _ACEOF
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303   (eval $ac_compile) 2>conftest.er1
2304   ac_status=$?
2305   grep -v '^ *+' conftest.er1 >conftest.err
2306   rm -f conftest.er1
2307   cat conftest.err >&5
2308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309   (exit $ac_status); } &&
2310          { ac_try='test -z "$ac_cxx_werror_flag"
2311                          || test ! -s conftest.err'
2312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313   (eval $ac_try) 2>&5
2314   ac_status=$?
2315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316   (exit $ac_status); }; } &&
2317          { ac_try='test -s conftest.$ac_objext'
2318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319   (eval $ac_try) 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); }; }; then
2323   ac_compiler_gnu=yes
2324 else
2325   echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2327
2328 ac_compiler_gnu=no
2329 fi
2330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2331 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2332
2333 fi
2334 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2335 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2336 GXX=`test $ac_compiler_gnu = yes && echo yes`
2337 ac_test_CXXFLAGS=${CXXFLAGS+set}
2338 ac_save_CXXFLAGS=$CXXFLAGS
2339 CXXFLAGS="-g"
2340 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2341 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2342 if test "${ac_cv_prog_cxx_g+set}" = set; then
2343   echo $ECHO_N "(cached) $ECHO_C" >&6
2344 else
2345   cat >conftest.$ac_ext <<_ACEOF
2346 /* confdefs.h.  */
2347 _ACEOF
2348 cat confdefs.h >>conftest.$ac_ext
2349 cat >>conftest.$ac_ext <<_ACEOF
2350 /* end confdefs.h.  */
2351
2352 int
2353 main ()
2354 {
2355
2356   ;
2357   return 0;
2358 }
2359 _ACEOF
2360 rm -f conftest.$ac_objext
2361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362   (eval $ac_compile) 2>conftest.er1
2363   ac_status=$?
2364   grep -v '^ *+' conftest.er1 >conftest.err
2365   rm -f conftest.er1
2366   cat conftest.err >&5
2367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368   (exit $ac_status); } &&
2369          { ac_try='test -z "$ac_cxx_werror_flag"
2370                          || test ! -s conftest.err'
2371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372   (eval $ac_try) 2>&5
2373   ac_status=$?
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); }; } &&
2376          { ac_try='test -s conftest.$ac_objext'
2377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378   (eval $ac_try) 2>&5
2379   ac_status=$?
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); }; }; then
2382   ac_cv_prog_cxx_g=yes
2383 else
2384   echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2386
2387 ac_cv_prog_cxx_g=no
2388 fi
2389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2390 fi
2391 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2392 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2393 if test "$ac_test_CXXFLAGS" = set; then
2394   CXXFLAGS=$ac_save_CXXFLAGS
2395 elif test $ac_cv_prog_cxx_g = yes; then
2396   if test "$GXX" = yes; then
2397     CXXFLAGS="-g -O2"
2398   else
2399     CXXFLAGS="-g"
2400   fi
2401 else
2402   if test "$GXX" = yes; then
2403     CXXFLAGS="-O2"
2404   else
2405     CXXFLAGS=
2406   fi
2407 fi
2408 for ac_declaration in \
2409    '' \
2410    'extern "C" void std::exit (int) throw (); using std::exit;' \
2411    'extern "C" void std::exit (int); using std::exit;' \
2412    'extern "C" void exit (int) throw ();' \
2413    'extern "C" void exit (int);' \
2414    'void exit (int);'
2415 do
2416   cat >conftest.$ac_ext <<_ACEOF
2417 /* confdefs.h.  */
2418 _ACEOF
2419 cat confdefs.h >>conftest.$ac_ext
2420 cat >>conftest.$ac_ext <<_ACEOF
2421 /* end confdefs.h.  */
2422 $ac_declaration
2423 #include <stdlib.h>
2424 int
2425 main ()
2426 {
2427 exit (42);
2428   ;
2429   return 0;
2430 }
2431 _ACEOF
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434   (eval $ac_compile) 2>conftest.er1
2435   ac_status=$?
2436   grep -v '^ *+' conftest.er1 >conftest.err
2437   rm -f conftest.er1
2438   cat conftest.err >&5
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); } &&
2441          { ac_try='test -z "$ac_cxx_werror_flag"
2442                          || test ! -s conftest.err'
2443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444   (eval $ac_try) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }; } &&
2448          { ac_try='test -s conftest.$ac_objext'
2449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450   (eval $ac_try) 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); }; }; then
2454   :
2455 else
2456   echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2458
2459 continue
2460 fi
2461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2462   cat >conftest.$ac_ext <<_ACEOF
2463 /* confdefs.h.  */
2464 _ACEOF
2465 cat confdefs.h >>conftest.$ac_ext
2466 cat >>conftest.$ac_ext <<_ACEOF
2467 /* end confdefs.h.  */
2468 $ac_declaration
2469 int
2470 main ()
2471 {
2472 exit (42);
2473   ;
2474   return 0;
2475 }
2476 _ACEOF
2477 rm -f conftest.$ac_objext
2478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2479   (eval $ac_compile) 2>conftest.er1
2480   ac_status=$?
2481   grep -v '^ *+' conftest.er1 >conftest.err
2482   rm -f conftest.er1
2483   cat conftest.err >&5
2484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485   (exit $ac_status); } &&
2486          { ac_try='test -z "$ac_cxx_werror_flag"
2487                          || test ! -s conftest.err'
2488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2489   (eval $ac_try) 2>&5
2490   ac_status=$?
2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); }; } &&
2493          { ac_try='test -s conftest.$ac_objext'
2494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495   (eval $ac_try) 2>&5
2496   ac_status=$?
2497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498   (exit $ac_status); }; }; then
2499   break
2500 else
2501   echo "$as_me: failed program was:" >&5
2502 sed 's/^/| /' conftest.$ac_ext >&5
2503
2504 fi
2505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2506 done
2507 rm -f conftest*
2508 if test -n "$ac_declaration"; then
2509   echo '#ifdef __cplusplus' >>confdefs.h
2510   echo $ac_declaration      >>confdefs.h
2511   echo '#endif'             >>confdefs.h
2512 fi
2513
2514 ac_ext=c
2515 ac_cpp='$CPP $CPPFLAGS'
2516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519
2520 ac_ext=c
2521 ac_cpp='$CPP $CPPFLAGS'
2522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2525 if test -n "$ac_tool_prefix"; then
2526   for ac_prog in gcc
2527   do
2528     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2529 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2530 echo "$as_me:$LINENO: checking for $ac_word" >&5
2531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2532 if test "${ac_cv_prog_CC+set}" = set; then
2533   echo $ECHO_N "(cached) $ECHO_C" >&6
2534 else
2535   if test -n "$CC"; then
2536   ac_cv_prog_CC="$CC" # Let the user override the test.
2537 else
2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 for as_dir in $PATH
2540 do
2541   IFS=$as_save_IFS
2542   test -z "$as_dir" && as_dir=.
2543   for ac_exec_ext in '' $ac_executable_extensions; do
2544   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2545     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547     break 2
2548   fi
2549 done
2550 done
2551
2552 fi
2553 fi
2554 CC=$ac_cv_prog_CC
2555 if test -n "$CC"; then
2556   echo "$as_me:$LINENO: result: $CC" >&5
2557 echo "${ECHO_T}$CC" >&6
2558 else
2559   echo "$as_me:$LINENO: result: no" >&5
2560 echo "${ECHO_T}no" >&6
2561 fi
2562
2563     test -n "$CC" && break
2564   done
2565 fi
2566 if test -z "$CC"; then
2567   ac_ct_CC=$CC
2568   for ac_prog in gcc
2569 do
2570   # Extract the first word of "$ac_prog", so it can be a program name with args.
2571 set dummy $ac_prog; ac_word=$2
2572 echo "$as_me:$LINENO: checking for $ac_word" >&5
2573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2574 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2575   echo $ECHO_N "(cached) $ECHO_C" >&6
2576 else
2577   if test -n "$ac_ct_CC"; then
2578   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2579 else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2582 do
2583   IFS=$as_save_IFS
2584   test -z "$as_dir" && as_dir=.
2585   for ac_exec_ext in '' $ac_executable_extensions; do
2586   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2587     ac_cv_prog_ac_ct_CC="$ac_prog"
2588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589     break 2
2590   fi
2591 done
2592 done
2593
2594 fi
2595 fi
2596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2597 if test -n "$ac_ct_CC"; then
2598   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2599 echo "${ECHO_T}$ac_ct_CC" >&6
2600 else
2601   echo "$as_me:$LINENO: result: no" >&5
2602 echo "${ECHO_T}no" >&6
2603 fi
2604
2605   test -n "$ac_ct_CC" && break
2606 done
2607
2608   CC=$ac_ct_CC
2609 fi
2610
2611
2612 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2613 See \`config.log' for more details." >&5
2614 echo "$as_me: error: no acceptable C compiler found in \$PATH
2615 See \`config.log' for more details." >&2;}
2616    { (exit 1); exit 1; }; }
2617
2618 # Provide some information about the compiler.
2619 echo "$as_me:$LINENO:" \
2620      "checking for C compiler version" >&5
2621 ac_compiler=`set X $ac_compile; echo $2`
2622 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2623   (eval $ac_compiler --version </dev/null >&5) 2>&5
2624   ac_status=$?
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); }
2627 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2628   (eval $ac_compiler -v </dev/null >&5) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); }
2632 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2633   (eval $ac_compiler -V </dev/null >&5) 2>&5
2634   ac_status=$?
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); }
2637
2638 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2639 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2640 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2641   echo $ECHO_N "(cached) $ECHO_C" >&6
2642 else
2643   cat >conftest.$ac_ext <<_ACEOF
2644 /* confdefs.h.  */
2645 _ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h.  */
2649
2650 int
2651 main ()
2652 {
2653 #ifndef __GNUC__
2654        choke me
2655 #endif
2656
2657   ;
2658   return 0;
2659 }
2660 _ACEOF
2661 rm -f conftest.$ac_objext
2662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2663   (eval $ac_compile) 2>conftest.er1
2664   ac_status=$?
2665   grep -v '^ *+' conftest.er1 >conftest.err
2666   rm -f conftest.er1
2667   cat conftest.err >&5
2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669   (exit $ac_status); } &&
2670          { ac_try='test -z "$ac_c_werror_flag"
2671                          || test ! -s conftest.err'
2672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673   (eval $ac_try) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }; } &&
2677          { ac_try='test -s conftest.$ac_objext'
2678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679   (eval $ac_try) 2>&5
2680   ac_status=$?
2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682   (exit $ac_status); }; }; then
2683   ac_compiler_gnu=yes
2684 else
2685   echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2687
2688 ac_compiler_gnu=no
2689 fi
2690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2691 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2692
2693 fi
2694 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2695 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2696 GCC=`test $ac_compiler_gnu = yes && echo yes`
2697 ac_test_CFLAGS=${CFLAGS+set}
2698 ac_save_CFLAGS=$CFLAGS
2699 CFLAGS="-g"
2700 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2701 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2702 if test "${ac_cv_prog_cc_g+set}" = set; then
2703   echo $ECHO_N "(cached) $ECHO_C" >&6
2704 else
2705   cat >conftest.$ac_ext <<_ACEOF
2706 /* confdefs.h.  */
2707 _ACEOF
2708 cat confdefs.h >>conftest.$ac_ext
2709 cat >>conftest.$ac_ext <<_ACEOF
2710 /* end confdefs.h.  */
2711
2712 int
2713 main ()
2714 {
2715
2716   ;
2717   return 0;
2718 }
2719 _ACEOF
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722   (eval $ac_compile) 2>conftest.er1
2723   ac_status=$?
2724   grep -v '^ *+' conftest.er1 >conftest.err
2725   rm -f conftest.er1
2726   cat conftest.err >&5
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); } &&
2729          { ac_try='test -z "$ac_c_werror_flag"
2730                          || test ! -s conftest.err'
2731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732   (eval $ac_try) 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); }; } &&
2736          { ac_try='test -s conftest.$ac_objext'
2737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738   (eval $ac_try) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }; }; then
2742   ac_cv_prog_cc_g=yes
2743 else
2744   echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2746
2747 ac_cv_prog_cc_g=no
2748 fi
2749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750 fi
2751 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2752 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2753 if test "$ac_test_CFLAGS" = set; then
2754   CFLAGS=$ac_save_CFLAGS
2755 elif test $ac_cv_prog_cc_g = yes; then
2756   if test "$GCC" = yes; then
2757     CFLAGS="-g -O2"
2758   else
2759     CFLAGS="-g"
2760   fi
2761 else
2762   if test "$GCC" = yes; then
2763     CFLAGS="-O2"
2764   else
2765     CFLAGS=
2766   fi
2767 fi
2768 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2769 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2770 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2771   echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773   ac_cv_prog_cc_stdc=no
2774 ac_save_CC=$CC
2775 cat >conftest.$ac_ext <<_ACEOF
2776 /* confdefs.h.  */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h.  */
2781 #include <stdarg.h>
2782 #include <stdio.h>
2783 #include <sys/types.h>
2784 #include <sys/stat.h>
2785 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2786 struct buf { int x; };
2787 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2788 static char *e (p, i)
2789      char **p;
2790      int i;
2791 {
2792   return p[i];
2793 }
2794 static char *f (char * (*g) (char **, int), char **p, ...)
2795 {
2796   char *s;
2797   va_list v;
2798   va_start (v,p);
2799   s = g (p, va_arg (v,int));
2800   va_end (v);
2801   return s;
2802 }
2803
2804 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2805    function prototypes and stuff, but not '\xHH' hex character constants.
2806    These don't provoke an error unfortunately, instead are silently treated
2807    as 'x'.  The following induces an error, until -std1 is added to get
2808    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2809    array size at least.  It's necessary to write '\x00'==0 to get something
2810    that's true only with -std1.  */
2811 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2812
2813 int test (int i, double x);
2814 struct s1 {int (*f) (int a);};
2815 struct s2 {int (*f) (double a);};
2816 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2817 int argc;
2818 char **argv;
2819 int
2820 main ()
2821 {
2822 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2823   ;
2824   return 0;
2825 }
2826 _ACEOF
2827 # Don't try gcc -ansi; that turns off useful extensions and
2828 # breaks some systems' header files.
2829 # AIX                   -qlanglvl=ansi
2830 # Ultrix and OSF/1      -std1
2831 # HP-UX 10.20 and later -Ae
2832 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2833 # SVR4                  -Xc -D__EXTENSIONS__
2834 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2835 do
2836   CC="$ac_save_CC $ac_arg"
2837   rm -f conftest.$ac_objext
2838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2839   (eval $ac_compile) 2>conftest.er1
2840   ac_status=$?
2841   grep -v '^ *+' conftest.er1 >conftest.err
2842   rm -f conftest.er1
2843   cat conftest.err >&5
2844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845   (exit $ac_status); } &&
2846          { ac_try='test -z "$ac_c_werror_flag"
2847                          || test ! -s conftest.err'
2848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849   (eval $ac_try) 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); }; } &&
2853          { ac_try='test -s conftest.$ac_objext'
2854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855   (eval $ac_try) 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); }; }; then
2859   ac_cv_prog_cc_stdc=$ac_arg
2860 break
2861 else
2862   echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2864
2865 fi
2866 rm -f conftest.err conftest.$ac_objext
2867 done
2868 rm -f conftest.$ac_ext conftest.$ac_objext
2869 CC=$ac_save_CC
2870
2871 fi
2872
2873 case "x$ac_cv_prog_cc_stdc" in
2874   x|xno)
2875     echo "$as_me:$LINENO: result: none needed" >&5
2876 echo "${ECHO_T}none needed" >&6 ;;
2877   *)
2878     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2879 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2880     CC="$CC $ac_cv_prog_cc_stdc" ;;
2881 esac
2882
2883 # Some people use a C++ compiler to compile C.  Since we use `exit',
2884 # in C++ we need to declare it.  In case someone uses the same compiler
2885 # for both compiling C and C++ we need to have the C++ compiler decide
2886 # the declaration of exit, since it's the most demanding environment.
2887 cat >conftest.$ac_ext <<_ACEOF
2888 #ifndef __cplusplus
2889   choke me
2890 #endif
2891 _ACEOF
2892 rm -f conftest.$ac_objext
2893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2894   (eval $ac_compile) 2>conftest.er1
2895   ac_status=$?
2896   grep -v '^ *+' conftest.er1 >conftest.err
2897   rm -f conftest.er1
2898   cat conftest.err >&5
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); } &&
2901          { ac_try='test -z "$ac_c_werror_flag"
2902                          || test ! -s conftest.err'
2903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904   (eval $ac_try) 2>&5
2905   ac_status=$?
2906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907   (exit $ac_status); }; } &&
2908          { ac_try='test -s conftest.$ac_objext'
2909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910   (eval $ac_try) 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }; }; then
2914   for ac_declaration in \
2915    '' \
2916    'extern "C" void std::exit (int) throw (); using std::exit;' \
2917    'extern "C" void std::exit (int); using std::exit;' \
2918    'extern "C" void exit (int) throw ();' \
2919    'extern "C" void exit (int);' \
2920    'void exit (int);'
2921 do
2922   cat >conftest.$ac_ext <<_ACEOF
2923 /* confdefs.h.  */
2924 _ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h.  */
2928 $ac_declaration
2929 #include <stdlib.h>
2930 int
2931 main ()
2932 {
2933 exit (42);
2934   ;
2935   return 0;
2936 }
2937 _ACEOF
2938 rm -f conftest.$ac_objext
2939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2940   (eval $ac_compile) 2>conftest.er1
2941   ac_status=$?
2942   grep -v '^ *+' conftest.er1 >conftest.err
2943   rm -f conftest.er1
2944   cat conftest.err >&5
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); } &&
2947          { ac_try='test -z "$ac_c_werror_flag"
2948                          || test ! -s conftest.err'
2949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950   (eval $ac_try) 2>&5
2951   ac_status=$?
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); }; } &&
2954          { ac_try='test -s conftest.$ac_objext'
2955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956   (eval $ac_try) 2>&5
2957   ac_status=$?
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); }; }; then
2960   :
2961 else
2962   echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2964
2965 continue
2966 fi
2967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2968   cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h.  */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h.  */
2974 $ac_declaration
2975 int
2976 main ()
2977 {
2978 exit (42);
2979   ;
2980   return 0;
2981 }
2982 _ACEOF
2983 rm -f conftest.$ac_objext
2984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2985   (eval $ac_compile) 2>conftest.er1
2986   ac_status=$?
2987   grep -v '^ *+' conftest.er1 >conftest.err
2988   rm -f conftest.er1
2989   cat conftest.err >&5
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); } &&
2992          { ac_try='test -z "$ac_c_werror_flag"
2993                          || test ! -s conftest.err'
2994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995   (eval $ac_try) 2>&5
2996   ac_status=$?
2997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998   (exit $ac_status); }; } &&
2999          { ac_try='test -s conftest.$ac_objext'
3000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001   (eval $ac_try) 2>&5
3002   ac_status=$?
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); }; }; then
3005   break
3006 else
3007   echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3009
3010 fi
3011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3012 done
3013 rm -f conftest*
3014 if test -n "$ac_declaration"; then
3015   echo '#ifdef __cplusplus' >>confdefs.h
3016   echo $ac_declaration      >>confdefs.h
3017   echo '#endif'             >>confdefs.h
3018 fi
3019
3020 else
3021   echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3023
3024 fi
3025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3026 ac_ext=c
3027 ac_cpp='$CPP $CPPFLAGS'
3028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3031
3032 ac_ext=c
3033 ac_cpp='$CPP $CPPFLAGS'
3034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3037 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3038 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3039 # On Suns, sometimes $CPP names a directory.
3040 if test -n "$CPP" && test -d "$CPP"; then
3041   CPP=
3042 fi
3043 if test -z "$CPP"; then
3044   if test "${ac_cv_prog_CPP+set}" = set; then
3045   echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047       # Double quotes because CPP needs to be expanded
3048     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3049     do
3050       ac_preproc_ok=false
3051 for ac_c_preproc_warn_flag in '' yes
3052 do
3053   # Use a header file that comes with gcc, so configuring glibc
3054   # with a fresh cross-compiler works.
3055   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3056   # <limits.h> exists even on freestanding compilers.
3057   # On the NeXT, cc -E runs the code through the compiler's parser,
3058   # not just through cpp. "Syntax error" is here to catch this case.
3059   cat >conftest.$ac_ext <<_ACEOF
3060 /* confdefs.h.  */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h.  */
3065 #ifdef __STDC__
3066 # include <limits.h>
3067 #else
3068 # include <assert.h>
3069 #endif
3070                      Syntax error
3071 _ACEOF
3072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3073   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3074   ac_status=$?
3075   grep -v '^ *+' conftest.er1 >conftest.err
3076   rm -f conftest.er1
3077   cat conftest.err >&5
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); } >/dev/null; then
3080   if test -s conftest.err; then
3081     ac_cpp_err=$ac_c_preproc_warn_flag
3082     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3083   else
3084     ac_cpp_err=
3085   fi
3086 else
3087   ac_cpp_err=yes
3088 fi
3089 if test -z "$ac_cpp_err"; then
3090   :
3091 else
3092   echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3094
3095   # Broken: fails on valid input.
3096 continue
3097 fi
3098 rm -f conftest.err conftest.$ac_ext
3099
3100   # OK, works on sane cases.  Now check whether non-existent headers
3101   # can be detected and how.
3102   cat >conftest.$ac_ext <<_ACEOF
3103 /* confdefs.h.  */
3104 _ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h.  */
3108 #include <ac_nonexistent.h>
3109 _ACEOF
3110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3111   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3112   ac_status=$?
3113   grep -v '^ *+' conftest.er1 >conftest.err
3114   rm -f conftest.er1
3115   cat conftest.err >&5
3116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117   (exit $ac_status); } >/dev/null; then
3118   if test -s conftest.err; then
3119     ac_cpp_err=$ac_c_preproc_warn_flag
3120     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3121   else
3122     ac_cpp_err=
3123   fi
3124 else
3125   ac_cpp_err=yes
3126 fi
3127 if test -z "$ac_cpp_err"; then
3128   # Broken: success on invalid input.
3129 continue
3130 else
3131   echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3133
3134   # Passes both tests.
3135 ac_preproc_ok=:
3136 break
3137 fi
3138 rm -f conftest.err conftest.$ac_ext
3139
3140 done
3141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3142 rm -f conftest.err conftest.$ac_ext
3143 if $ac_preproc_ok; then
3144   break
3145 fi
3146
3147     done
3148     ac_cv_prog_CPP=$CPP
3149
3150 fi
3151   CPP=$ac_cv_prog_CPP
3152 else
3153   ac_cv_prog_CPP=$CPP
3154 fi
3155 echo "$as_me:$LINENO: result: $CPP" >&5
3156 echo "${ECHO_T}$CPP" >&6
3157 ac_preproc_ok=false
3158 for ac_c_preproc_warn_flag in '' yes
3159 do
3160   # Use a header file that comes with gcc, so configuring glibc
3161   # with a fresh cross-compiler works.
3162   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3163   # <limits.h> exists even on freestanding compilers.
3164   # On the NeXT, cc -E runs the code through the compiler's parser,
3165   # not just through cpp. "Syntax error" is here to catch this case.
3166   cat >conftest.$ac_ext <<_ACEOF
3167 /* confdefs.h.  */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h.  */
3172 #ifdef __STDC__
3173 # include <limits.h>
3174 #else
3175 # include <assert.h>
3176 #endif
3177                      Syntax error
3178 _ACEOF
3179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3180   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3181   ac_status=$?
3182   grep -v '^ *+' conftest.er1 >conftest.err
3183   rm -f conftest.er1
3184   cat conftest.err >&5
3185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186   (exit $ac_status); } >/dev/null; then
3187   if test -s conftest.err; then
3188     ac_cpp_err=$ac_c_preproc_warn_flag
3189     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3190   else
3191     ac_cpp_err=
3192   fi
3193 else
3194   ac_cpp_err=yes
3195 fi
3196 if test -z "$ac_cpp_err"; then
3197   :
3198 else
3199   echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3201
3202   # Broken: fails on valid input.
3203 continue
3204 fi
3205 rm -f conftest.err conftest.$ac_ext
3206
3207   # OK, works on sane cases.  Now check whether non-existent headers
3208   # can be detected and how.
3209   cat >conftest.$ac_ext <<_ACEOF
3210 /* confdefs.h.  */
3211 _ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h.  */
3215 #include <ac_nonexistent.h>
3216 _ACEOF
3217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3218   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3219   ac_status=$?
3220   grep -v '^ *+' conftest.er1 >conftest.err
3221   rm -f conftest.er1
3222   cat conftest.err >&5
3223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224   (exit $ac_status); } >/dev/null; then
3225   if test -s conftest.err; then
3226     ac_cpp_err=$ac_c_preproc_warn_flag
3227     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3228   else
3229     ac_cpp_err=
3230   fi
3231 else
3232   ac_cpp_err=yes
3233 fi
3234 if test -z "$ac_cpp_err"; then
3235   # Broken: success on invalid input.
3236 continue
3237 else
3238   echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3240
3241   # Passes both tests.
3242 ac_preproc_ok=:
3243 break
3244 fi
3245 rm -f conftest.err conftest.$ac_ext
3246
3247 done
3248 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3249 rm -f conftest.err conftest.$ac_ext
3250 if $ac_preproc_ok; then
3251   :
3252 else
3253   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3254 See \`config.log' for more details." >&5
3255 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3256 See \`config.log' for more details." >&2;}
3257    { (exit 1); exit 1; }; }
3258 fi
3259
3260 ac_ext=c
3261 ac_cpp='$CPP $CPPFLAGS'
3262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265
3266
3267 if test "$GCC" != "yes"
3268 then
3269         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3270 echo "$as_me: error: gcc required but not found" >&2;}
3271    { (exit 1); exit 1; }; }
3272 fi
3273 if test "$GXX" != "yes"
3274 then
3275         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3276 echo "$as_me: error: g++ required but not found" >&2;}
3277    { (exit 1); exit 1; }; }
3278 fi
3279
3280 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3281 if test "$gccmajor" -lt "3"
3282 then
3283         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3284 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3285    { (exit 1); exit 1; }; }
3286 fi
3287
3288  echo "$as_me:$LINENO: checking for GNU make" >&5
3289 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3290 if test "${_cv_gnu_make_command+set}" = set; then
3291   echo $ECHO_N "(cached) $ECHO_C" >&6
3292 else
3293   _cv_gnu_make_command='' ;
3294                 for a in "$MAKE" make gmake gnumake ; do
3295                         if test -z "$a" ; then continue ; fi ;
3296                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3297                                 _cv_gnu_make_command=$a ;
3298                                 break;
3299                         fi
3300                 done ;
3301
3302 fi
3303 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3304 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3305         if test  "x$_cv_gnu_make_command" != "x"  ; then
3306                 ifGNUmake='' ;
3307         else
3308                 ifGNUmake='#' ;
3309                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3310 echo "${ECHO_T}\"Not found\"" >&6;
3311         fi
3312
3313
3314 if test -z "$_cv_gnu_make_command"
3315 then
3316         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3317 echo "$as_me: error: GNU Make required but not found" >&2;}
3318    { (exit 1); exit 1; }; }
3319 fi
3320
3321
3322 echo "$as_me:$LINENO: checking " >&5
3323 echo $ECHO_N "checking ... $ECHO_C" >&6
3324 if test "${ac_cv_has_flex+set}" = set; then
3325   echo $ECHO_N "(cached) $ECHO_C" >&6
3326 else
3327   for ac_prog in flex lex
3328 do
3329   # Extract the first word of "$ac_prog", so it can be a program name with args.
3330 set dummy $ac_prog; ac_word=$2
3331 echo "$as_me:$LINENO: checking for $ac_word" >&5
3332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3333 if test "${ac_cv_prog_LEX+set}" = set; then
3334   echo $ECHO_N "(cached) $ECHO_C" >&6
3335 else
3336   if test -n "$LEX"; then
3337   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3338 else
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH
3341 do
3342   IFS=$as_save_IFS
3343   test -z "$as_dir" && as_dir=.
3344   for ac_exec_ext in '' $ac_executable_extensions; do
3345   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346     ac_cv_prog_LEX="$ac_prog"
3347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3348     break 2
3349   fi
3350 done
3351 done
3352
3353 fi
3354 fi
3355 LEX=$ac_cv_prog_LEX
3356 if test -n "$LEX"; then
3357   echo "$as_me:$LINENO: result: $LEX" >&5
3358 echo "${ECHO_T}$LEX" >&6
3359 else
3360   echo "$as_me:$LINENO: result: no" >&5
3361 echo "${ECHO_T}no" >&6
3362 fi
3363
3364   test -n "$LEX" && break
3365 done
3366 test -n "$LEX" || LEX=":"
3367
3368 if test -z "$LEXLIB"
3369 then
3370   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3371 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3372 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3373   echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375   ac_check_lib_save_LIBS=$LIBS
3376 LIBS="-lfl  $LIBS"
3377 cat >conftest.$ac_ext <<_ACEOF
3378 /* confdefs.h.  */
3379 _ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h.  */
3383
3384 /* Override any gcc2 internal prototype to avoid an error.  */
3385 #ifdef __cplusplus
3386 extern "C"
3387 #endif
3388 /* We use char because int might match the return type of a gcc2
3389    builtin and then its argument prototype would still apply.  */
3390 char yywrap ();
3391 int
3392 main ()
3393 {
3394 yywrap ();
3395   ;
3396   return 0;
3397 }
3398 _ACEOF
3399 rm -f conftest.$ac_objext conftest$ac_exeext
3400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3401   (eval $ac_link) 2>conftest.er1
3402   ac_status=$?
3403   grep -v '^ *+' conftest.er1 >conftest.err
3404   rm -f conftest.er1
3405   cat conftest.err >&5
3406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407   (exit $ac_status); } &&
3408          { ac_try='test -z "$ac_c_werror_flag"
3409                          || test ! -s conftest.err'
3410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411   (eval $ac_try) 2>&5
3412   ac_status=$?
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); }; } &&
3415          { ac_try='test -s conftest$ac_exeext'
3416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417   (eval $ac_try) 2>&5
3418   ac_status=$?
3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420   (exit $ac_status); }; }; then
3421   ac_cv_lib_fl_yywrap=yes
3422 else
3423   echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3425
3426 ac_cv_lib_fl_yywrap=no
3427 fi
3428 rm -f conftest.err conftest.$ac_objext \
3429       conftest$ac_exeext conftest.$ac_ext
3430 LIBS=$ac_check_lib_save_LIBS
3431 fi
3432 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3433 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3434 if test $ac_cv_lib_fl_yywrap = yes; then
3435   LEXLIB="-lfl"
3436 else
3437   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3438 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3439 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3440   echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442   ac_check_lib_save_LIBS=$LIBS
3443 LIBS="-ll  $LIBS"
3444 cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h.  */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h.  */
3450
3451 /* Override any gcc2 internal prototype to avoid an error.  */
3452 #ifdef __cplusplus
3453 extern "C"
3454 #endif
3455 /* We use char because int might match the return type of a gcc2
3456    builtin and then its argument prototype would still apply.  */
3457 char yywrap ();
3458 int
3459 main ()
3460 {
3461 yywrap ();
3462   ;
3463   return 0;
3464 }
3465 _ACEOF
3466 rm -f conftest.$ac_objext conftest$ac_exeext
3467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3468   (eval $ac_link) 2>conftest.er1
3469   ac_status=$?
3470   grep -v '^ *+' conftest.er1 >conftest.err
3471   rm -f conftest.er1
3472   cat conftest.err >&5
3473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474   (exit $ac_status); } &&
3475          { ac_try='test -z "$ac_c_werror_flag"
3476                          || test ! -s conftest.err'
3477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478   (eval $ac_try) 2>&5
3479   ac_status=$?
3480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481   (exit $ac_status); }; } &&
3482          { ac_try='test -s conftest$ac_exeext'
3483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484   (eval $ac_try) 2>&5
3485   ac_status=$?
3486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487   (exit $ac_status); }; }; then
3488   ac_cv_lib_l_yywrap=yes
3489 else
3490   echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3492
3493 ac_cv_lib_l_yywrap=no
3494 fi
3495 rm -f conftest.err conftest.$ac_objext \
3496       conftest$ac_exeext conftest.$ac_ext
3497 LIBS=$ac_check_lib_save_LIBS
3498 fi
3499 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3500 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3501 if test $ac_cv_lib_l_yywrap = yes; then
3502   LEXLIB="-ll"
3503 fi
3504
3505 fi
3506
3507 fi
3508
3509 if test "x$LEX" != "x:"; then
3510   echo "$as_me:$LINENO: checking lex output file root" >&5
3511 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3512 if test "${ac_cv_prog_lex_root+set}" = set; then
3513   echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515   # The minimal lex program is just a single line: %%.  But some broken lexes
3516 # (Solaris, I think it was) want two %% lines, so accommodate them.
3517 cat >conftest.l <<_ACEOF
3518 %%
3519 %%
3520 _ACEOF
3521 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3522   (eval $LEX conftest.l) 2>&5
3523   ac_status=$?
3524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525   (exit $ac_status); }
3526 if test -f lex.yy.c; then
3527   ac_cv_prog_lex_root=lex.yy
3528 elif test -f lexyy.c; then
3529   ac_cv_prog_lex_root=lexyy
3530 else
3531   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3532 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3533    { (exit 1); exit 1; }; }
3534 fi
3535 fi
3536 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3537 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3538 rm -f conftest.l
3539 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3540
3541 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3542 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3543 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   # POSIX says lex can declare yytext either as a pointer or an array; the
3547 # default is implementation-dependent. Figure out which it is, since
3548 # not all implementations provide the %pointer and %array declarations.
3549 ac_cv_prog_lex_yytext_pointer=no
3550 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3551 ac_save_LIBS=$LIBS
3552 LIBS="$LIBS $LEXLIB"
3553 cat >conftest.$ac_ext <<_ACEOF
3554 `cat $LEX_OUTPUT_ROOT.c`
3555 _ACEOF
3556 rm -f conftest.$ac_objext conftest$ac_exeext
3557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3558   (eval $ac_link) 2>conftest.er1
3559   ac_status=$?
3560   grep -v '^ *+' conftest.er1 >conftest.err
3561   rm -f conftest.er1
3562   cat conftest.err >&5
3563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564   (exit $ac_status); } &&
3565          { ac_try='test -z "$ac_c_werror_flag"
3566                          || test ! -s conftest.err'
3567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568   (eval $ac_try) 2>&5
3569   ac_status=$?
3570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571   (exit $ac_status); }; } &&
3572          { ac_try='test -s conftest$ac_exeext'
3573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574   (eval $ac_try) 2>&5
3575   ac_status=$?
3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577   (exit $ac_status); }; }; then
3578   ac_cv_prog_lex_yytext_pointer=yes
3579 else
3580   echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3582
3583 fi
3584 rm -f conftest.err conftest.$ac_objext \
3585       conftest$ac_exeext conftest.$ac_ext
3586 LIBS=$ac_save_LIBS
3587 rm -f "${LEX_OUTPUT_ROOT}.c"
3588
3589 fi
3590 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3591 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3592 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3593
3594 cat >>confdefs.h <<\_ACEOF
3595 #define YYTEXT_POINTER 1
3596 _ACEOF
3597
3598 fi
3599
3600 fi
3601
3602 fi
3603 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3604 echo "${ECHO_T}$ac_cv_has_flex" >&6
3605 if test "$LEX" != "flex"; then
3606   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3607 echo "$as_me: error: flex not found but required" >&2;}
3608    { (exit 1); exit 1; }; }
3609 fi
3610
3611 echo "$as_me:$LINENO: checking " >&5
3612 echo $ECHO_N "checking ... $ECHO_C" >&6
3613 if test "${ac_cv_has_bison+set}" = set; then
3614   echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616   for ac_prog in 'bison -y' byacc
3617 do
3618   # Extract the first word of "$ac_prog", so it can be a program name with args.
3619 set dummy $ac_prog; ac_word=$2
3620 echo "$as_me:$LINENO: checking for $ac_word" >&5
3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3622 if test "${ac_cv_prog_YACC+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   if test -n "$YACC"; then
3626   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3627 else
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 for as_dir in $PATH
3630 do
3631   IFS=$as_save_IFS
3632   test -z "$as_dir" && as_dir=.
3633   for ac_exec_ext in '' $ac_executable_extensions; do
3634   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3635     ac_cv_prog_YACC="$ac_prog"
3636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3637     break 2
3638   fi
3639 done
3640 done
3641
3642 fi
3643 fi
3644 YACC=$ac_cv_prog_YACC
3645 if test -n "$YACC"; then
3646   echo "$as_me:$LINENO: result: $YACC" >&5
3647 echo "${ECHO_T}$YACC" >&6
3648 else
3649   echo "$as_me:$LINENO: result: no" >&5
3650 echo "${ECHO_T}no" >&6
3651 fi
3652
3653   test -n "$YACC" && break
3654 done
3655 test -n "$YACC" || YACC="yacc"
3656
3657
3658 fi
3659 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3660 echo "${ECHO_T}$ac_cv_has_bison" >&6
3661 if test "$YACC" != "bison -y"; then
3662   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3663 echo "$as_me: error: bison not found but required" >&2;}
3664    { (exit 1); exit 1; }; }
3665 else
3666   BISON=bison
3667
3668 fi
3669
3670 # Check whether --enable-shared or --disable-shared was given.
3671 if test "${enable_shared+set}" = set; then
3672   enableval="$enable_shared"
3673   p=${PACKAGE-default}
3674     case $enableval in
3675     yes) enable_shared=yes ;;
3676     no) enable_shared=no ;;
3677     *)
3678       enable_shared=no
3679       # Look at the argument we got.  We use all the common list separators.
3680       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3681       for pkg in $enableval; do
3682         IFS="$lt_save_ifs"
3683         if test "X$pkg" = "X$p"; then
3684           enable_shared=yes
3685         fi
3686       done
3687       IFS="$lt_save_ifs"
3688       ;;
3689     esac
3690 else
3691   enable_shared=yes
3692 fi;
3693
3694 # Check whether --enable-static or --disable-static was given.
3695 if test "${enable_static+set}" = set; then
3696   enableval="$enable_static"
3697   p=${PACKAGE-default}
3698     case $enableval in
3699     yes) enable_static=yes ;;
3700     no) enable_static=no ;;
3701     *)
3702      enable_static=no
3703       # Look at the argument we got.  We use all the common list separators.
3704       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3705       for pkg in $enableval; do
3706         IFS="$lt_save_ifs"
3707         if test "X$pkg" = "X$p"; then
3708           enable_static=yes
3709         fi
3710       done
3711       IFS="$lt_save_ifs"
3712       ;;
3713     esac
3714 else
3715   enable_static=yes
3716 fi;
3717
3718 # Check whether --enable-fast-install or --disable-fast-install was given.
3719 if test "${enable_fast_install+set}" = set; then
3720   enableval="$enable_fast_install"
3721   p=${PACKAGE-default}
3722     case $enableval in
3723     yes) enable_fast_install=yes ;;
3724     no) enable_fast_install=no ;;
3725     *)
3726       enable_fast_install=no
3727       # Look at the argument we got.  We use all the common list separators.
3728       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3729       for pkg in $enableval; do
3730         IFS="$lt_save_ifs"
3731         if test "X$pkg" = "X$p"; then
3732           enable_fast_install=yes
3733         fi
3734       done
3735       IFS="$lt_save_ifs"
3736       ;;
3737     esac
3738 else
3739   enable_fast_install=yes
3740 fi;
3741
3742 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3743 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3744 if test "${lt_cv_path_SED+set}" = set; then
3745   echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747   # Loop through the user's path and test for sed and gsed.
3748 # Then use that list of sed's as ones to test for truncation.
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH
3751 do
3752   IFS=$as_save_IFS
3753   test -z "$as_dir" && as_dir=.
3754   for lt_ac_prog in sed gsed; do
3755     for ac_exec_ext in '' $ac_executable_extensions; do
3756       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3757         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3758       fi
3759     done
3760   done
3761 done
3762 lt_ac_max=0
3763 lt_ac_count=0
3764 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3765 # along with /bin/sed that truncates output.
3766 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3767   test ! -f $lt_ac_sed && break
3768   cat /dev/null > conftest.in
3769   lt_ac_count=0
3770   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3771   # Check for GNU sed and select it if it is found.
3772   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3773     lt_cv_path_SED=$lt_ac_sed
3774     break
3775   fi
3776   while true; do
3777     cat conftest.in conftest.in >conftest.tmp
3778     mv conftest.tmp conftest.in
3779     cp conftest.in conftest.nl
3780     echo >>conftest.nl
3781     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3782     cmp -s conftest.out conftest.nl || break
3783     # 10000 chars as input seems more than enough
3784     test $lt_ac_count -gt 10 && break
3785     lt_ac_count=`expr $lt_ac_count + 1`
3786     if test $lt_ac_count -gt $lt_ac_max; then
3787       lt_ac_max=$lt_ac_count
3788       lt_cv_path_SED=$lt_ac_sed
3789     fi
3790   done
3791 done
3792 SED=$lt_cv_path_SED
3793
3794 fi
3795
3796 echo "$as_me:$LINENO: result: $SED" >&5
3797 echo "${ECHO_T}$SED" >&6
3798
3799 echo "$as_me:$LINENO: checking for egrep" >&5
3800 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3801 if test "${ac_cv_prog_egrep+set}" = set; then
3802   echo $ECHO_N "(cached) $ECHO_C" >&6
3803 else
3804   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3805     then ac_cv_prog_egrep='grep -E'
3806     else ac_cv_prog_egrep='egrep'
3807     fi
3808 fi
3809 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3810 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3811  EGREP=$ac_cv_prog_egrep
3812
3813
3814
3815 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3816 if test "${with_gnu_ld+set}" = set; then
3817   withval="$with_gnu_ld"
3818   test "$withval" = no || with_gnu_ld=yes
3819 else
3820   with_gnu_ld=no
3821 fi;
3822 ac_prog=ld
3823 if test "$GCC" = yes; then
3824   # Check if gcc -print-prog-name=ld gives a path.
3825   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3826 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3827   case $host in
3828   *-*-mingw*)
3829     # gcc leaves a trailing carriage return which upsets mingw
3830     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3831   *)
3832     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3833   esac
3834   case $ac_prog in
3835     # Accept absolute paths.
3836     [\\/]* | ?:[\\/]*)
3837       re_direlt='/[^/][^/]*/\.\./'
3838       # Canonicalize the path of ld
3839       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3840       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3841         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3842       done
3843       test -z "$LD" && LD="$ac_prog"
3844       ;;
3845   "")
3846     # If it fails, then pretend we aren't using GCC.
3847     ac_prog=ld
3848     ;;
3849   *)
3850     # If it is relative, then search for the first ld in PATH.
3851     with_gnu_ld=unknown
3852     ;;
3853   esac
3854 elif test "$with_gnu_ld" = yes; then
3855   echo "$as_me:$LINENO: checking for GNU ld" >&5
3856 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3857 else
3858   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3859 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3860 fi
3861 if test "${lt_cv_path_LD+set}" = set; then
3862   echo $ECHO_N "(cached) $ECHO_C" >&6
3863 else
3864   if test -z "$LD"; then
3865   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3866   for ac_dir in $PATH; do
3867     IFS="$lt_save_ifs"
3868     test -z "$ac_dir" && ac_dir=.
3869     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3870       lt_cv_path_LD="$ac_dir/$ac_prog"
3871       # Check to see if the program is GNU ld.  I'd rather use --version,
3872       # but apparently some GNU ld's only accept -v.
3873       # Break only if it was the GNU/non-GNU ld that we prefer.
3874       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3875       *GNU* | *'with BFD'*)
3876         test "$with_gnu_ld" != no && break
3877         ;;
3878       *)
3879         test "$with_gnu_ld" != yes && break
3880         ;;
3881       esac
3882     fi
3883   done
3884   IFS="$lt_save_ifs"
3885 else
3886   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3887 fi
3888 fi
3889
3890 LD="$lt_cv_path_LD"
3891 if test -n "$LD"; then
3892   echo "$as_me:$LINENO: result: $LD" >&5
3893 echo "${ECHO_T}$LD" >&6
3894 else
3895   echo "$as_me:$LINENO: result: no" >&5
3896 echo "${ECHO_T}no" >&6
3897 fi
3898 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3899 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3900    { (exit 1); exit 1; }; }
3901 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3902 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3903 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3904   echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3907 case `"$LD" -v 2>&1 </dev/null` in
3908 *GNU* | *'with BFD'*)
3909   lt_cv_prog_gnu_ld=yes
3910   ;;
3911 *)
3912   lt_cv_prog_gnu_ld=no
3913   ;;
3914 esac
3915 fi
3916 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3917 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3918 with_gnu_ld=$lt_cv_prog_gnu_ld
3919
3920
3921 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3922 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3923 if test "${lt_cv_ld_reload_flag+set}" = set; then
3924   echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926   lt_cv_ld_reload_flag='-r'
3927 fi
3928 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3929 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3930 reload_flag=$lt_cv_ld_reload_flag
3931 case $reload_flag in
3932 "" | " "*) ;;
3933 *) reload_flag=" $reload_flag" ;;
3934 esac
3935 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3936
3937 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3938 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3939 if test "${lt_cv_path_NM+set}" = set; then
3940   echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942   if test -n "$NM"; then
3943   # Let the user override the test.
3944   lt_cv_path_NM="$NM"
3945 else
3946   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3947   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3948     IFS="$lt_save_ifs"
3949     test -z "$ac_dir" && ac_dir=.
3950     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3951     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3952       # Check to see if the nm accepts a BSD-compat flag.
3953       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3954       #   nm: unknown option "B" ignored
3955       # Tru64's nm complains that /dev/null is an invalid object file
3956       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3957       */dev/null* | *'Invalid file or object type'*)
3958         lt_cv_path_NM="$tmp_nm -B"
3959         break
3960         ;;
3961       *)
3962         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3963         */dev/null*)
3964           lt_cv_path_NM="$tmp_nm -p"
3965           break
3966           ;;
3967         *)
3968           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3969           continue # so that we can try to find one that supports BSD flags
3970           ;;
3971         esac
3972       esac
3973     fi
3974   done
3975   IFS="$lt_save_ifs"
3976   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3977 fi
3978 fi
3979 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3980 echo "${ECHO_T}$lt_cv_path_NM" >&6
3981 NM="$lt_cv_path_NM"
3982
3983 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3984 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3985 LN_S=$as_ln_s
3986 if test "$LN_S" = "ln -s"; then
3987   echo "$as_me:$LINENO: result: yes" >&5
3988 echo "${ECHO_T}yes" >&6
3989 else
3990   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3991 echo "${ECHO_T}no, using $LN_S" >&6
3992 fi
3993
3994 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3995 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3996 if test "${lt_cv_deplibs_check_method+set}" = set; then
3997   echo $ECHO_N "(cached) $ECHO_C" >&6
3998 else
3999   lt_cv_file_magic_cmd='$MAGIC_CMD'
4000 lt_cv_file_magic_test_file=
4001 lt_cv_deplibs_check_method='unknown'
4002 # Need to set the preceding variable on all platforms that support
4003 # interlibrary dependencies.
4004 # 'none' -- dependencies not supported.
4005 # `unknown' -- same as none, but documents that we really don't know.
4006 # 'pass_all' -- all dependencies passed with no checks.
4007 # 'test_compile' -- check by making test program.
4008 # 'file_magic [[regex]]' -- check by looking for files in library path
4009 # which responds to the $file_magic_cmd with a given extended regex.
4010 # If you have `file' or equivalent on your system and you're not sure
4011 # whether `pass_all' will *always* work, you probably want this one.
4012
4013 case $host_os in
4014 aix4* | aix5*)
4015   lt_cv_deplibs_check_method=pass_all
4016   ;;
4017
4018 beos*)
4019   lt_cv_deplibs_check_method=pass_all
4020   ;;
4021
4022 bsdi4*)
4023   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4024   lt_cv_file_magic_cmd='/usr/bin/file -L'
4025   lt_cv_file_magic_test_file=/shlib/libc.so
4026   ;;
4027
4028 cygwin* | mingw* | pw32*)
4029   # win32_libid is a shell function defined in ltmain.sh
4030   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4031   lt_cv_file_magic_cmd='win32_libid'
4032   ;;
4033
4034 darwin* | rhapsody*)
4035   # this will be overwritten by pass_all, but leave it in just in case
4036   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4037   lt_cv_file_magic_cmd='/usr/bin/file -L'
4038   case "$host_os" in
4039   rhapsody* | darwin1.[012])
4040     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4041     ;;
4042   *) # Darwin 1.3 on
4043     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4044     ;;
4045   esac
4046   lt_cv_deplibs_check_method=pass_all
4047   ;;
4048
4049 freebsd*)
4050   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4051     case $host_cpu in
4052     i*86 )
4053       # Not sure whether the presence of OpenBSD here was a mistake.
4054       # Let's accept both of them until this is cleared up.
4055       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4056       lt_cv_file_magic_cmd=/usr/bin/file
4057       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4058       ;;
4059     esac
4060   else
4061     lt_cv_deplibs_check_method=pass_all
4062   fi
4063   ;;
4064
4065 gnu*)
4066   lt_cv_deplibs_check_method=pass_all
4067   ;;
4068
4069 hpux10.20* | hpux11*)
4070   lt_cv_file_magic_cmd=/usr/bin/file
4071   case "$host_cpu" in
4072   ia64*)
4073     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4074     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4075     ;;
4076   hppa*64*)
4077     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]'
4078     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4079     ;;
4080   *)
4081     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4082     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4083     ;;
4084   esac
4085   ;;
4086
4087 irix5* | irix6* | nonstopux*)
4088   case $host_os in
4089   irix5* | nonstopux*)
4090     # this will be overridden with pass_all, but let us keep it just in case
4091     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4092     ;;
4093   *)
4094     case $LD in
4095     *-32|*"-32 ") libmagic=32-bit;;
4096     *-n32|*"-n32 ") libmagic=N32;;
4097     *-64|*"-64 ") libmagic=64-bit;;
4098     *) libmagic=never-match;;
4099     esac
4100     # this will be overridden with pass_all, but let us keep it just in case
4101     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4102     ;;
4103   esac
4104   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4105   lt_cv_deplibs_check_method=pass_all
4106   ;;
4107
4108 # This must be Linux ELF.
4109 linux*)
4110   case $host_cpu in
4111   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4112     lt_cv_deplibs_check_method=pass_all ;;
4113   *)
4114     # glibc up to 2.1.1 does not perform some relocations on ARM
4115     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4116   esac
4117   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4118   ;;
4119
4120 netbsd*)
4121   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4122     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4123   else
4124     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4125   fi
4126   ;;
4127
4128 newos6*)
4129   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4130   lt_cv_file_magic_cmd=/usr/bin/file
4131   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4132   ;;
4133
4134 nto-qnx)
4135   lt_cv_deplibs_check_method=unknown
4136   ;;
4137
4138 openbsd*)
4139   lt_cv_file_magic_cmd=/usr/bin/file
4140   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4141   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4142     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4143   else
4144     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4145   fi
4146   ;;
4147
4148 osf3* | osf4* | osf5*)
4149   # this will be overridden with pass_all, but let us keep it just in case
4150   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4151   lt_cv_file_magic_test_file=/shlib/libc.so
4152   lt_cv_deplibs_check_method=pass_all
4153   ;;
4154
4155 sco3.2v5*)
4156   lt_cv_deplibs_check_method=pass_all
4157   ;;
4158
4159 solaris*)
4160   lt_cv_deplibs_check_method=pass_all
4161   lt_cv_file_magic_test_file=/lib/libc.so
4162   ;;
4163
4164 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4165   case $host_vendor in
4166   motorola)
4167     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]'
4168     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4169     ;;
4170   ncr)
4171     lt_cv_deplibs_check_method=pass_all
4172     ;;
4173   sequent)
4174     lt_cv_file_magic_cmd='/bin/file'
4175     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4176     ;;
4177   sni)
4178     lt_cv_file_magic_cmd='/bin/file'
4179     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4180     lt_cv_file_magic_test_file=/lib/libc.so
4181     ;;
4182   siemens)
4183     lt_cv_deplibs_check_method=pass_all
4184     ;;
4185   esac
4186   ;;
4187
4188 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4189   lt_cv_deplibs_check_method=pass_all
4190   ;;
4191 esac
4192
4193 fi
4194 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4195 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4196 file_magic_cmd=$lt_cv_file_magic_cmd
4197 deplibs_check_method=$lt_cv_deplibs_check_method
4198 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4199
4200
4201
4202
4203 # If no C compiler was specified, use CC.
4204 LTCC=${LTCC-"$CC"}
4205
4206 # Allow CC to be a program name with arguments.
4207 compiler=$CC
4208
4209 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4210 if test "${enable_libtool_lock+set}" = set; then
4211   enableval="$enable_libtool_lock"
4212
4213 fi;
4214 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4215
4216 # Some flags need to be propagated to the compiler or linker for good
4217 # libtool support.
4218 case $host in
4219 ia64-*-hpux*)
4220   # Find out which ABI we are using.
4221   echo 'int i;' > conftest.$ac_ext
4222   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4223   (eval $ac_compile) 2>&5
4224   ac_status=$?
4225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226   (exit $ac_status); }; then
4227     case `/usr/bin/file conftest.$ac_objext` in
4228     *ELF-32*)
4229       HPUX_IA64_MODE="32"
4230       ;;
4231     *ELF-64*)
4232       HPUX_IA64_MODE="64"
4233       ;;
4234     esac
4235   fi
4236   rm -rf conftest*
4237   ;;
4238 *-*-irix6*)
4239   # Find out which ABI we are using.
4240   echo '#line 4240 "configure"' > conftest.$ac_ext
4241   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4242   (eval $ac_compile) 2>&5
4243   ac_status=$?
4244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245   (exit $ac_status); }; then
4246    if test "$lt_cv_prog_gnu_ld" = yes; then
4247     case `/usr/bin/file conftest.$ac_objext` in
4248     *32-bit*)
4249       LD="${LD-ld} -melf32bsmip"
4250       ;;
4251     *N32*)
4252       LD="${LD-ld} -melf32bmipn32"
4253       ;;
4254     *64-bit*)
4255       LD="${LD-ld} -melf64bmip"
4256       ;;
4257     esac
4258    else
4259     case `/usr/bin/file conftest.$ac_objext` in
4260     *32-bit*)
4261       LD="${LD-ld} -32"
4262       ;;
4263     *N32*)
4264       LD="${LD-ld} -n32"
4265       ;;
4266     *64-bit*)
4267       LD="${LD-ld} -64"
4268       ;;
4269     esac
4270    fi
4271   fi
4272   rm -rf conftest*
4273   ;;
4274
4275 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4276   # Find out which ABI we are using.
4277   echo 'int i;' > conftest.$ac_ext
4278   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4279   (eval $ac_compile) 2>&5
4280   ac_status=$?
4281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282   (exit $ac_status); }; then
4283     case "`/usr/bin/file conftest.o`" in
4284     *32-bit*)
4285       case $host in
4286         x86_64-*linux*)
4287           LD="${LD-ld} -m elf_i386"
4288           ;;
4289         ppc64-*linux*)
4290           LD="${LD-ld} -m elf32ppclinux"
4291           ;;
4292         s390x-*linux*)
4293           LD="${LD-ld} -m elf_s390"
4294           ;;
4295         sparc64-*linux*)
4296           LD="${LD-ld} -m elf32_sparc"
4297           ;;
4298       esac
4299       ;;
4300     *64-bit*)
4301       case $host in
4302         x86_64-*linux*)
4303           LD="${LD-ld} -m elf_x86_64"
4304           ;;
4305         ppc*-*linux*|powerpc*-*linux*)
4306           LD="${LD-ld} -m elf64ppc"
4307           ;;
4308         s390*-*linux*)
4309           LD="${LD-ld} -m elf64_s390"
4310           ;;
4311         sparc*-*linux*)
4312           LD="${LD-ld} -m elf64_sparc"
4313           ;;
4314       esac
4315       ;;
4316     esac
4317   fi
4318   rm -rf conftest*
4319   ;;
4320
4321 *-*-sco3.2v5*)
4322   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4323   SAVE_CFLAGS="$CFLAGS"
4324   CFLAGS="$CFLAGS -belf"
4325   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4326 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4327 if test "${lt_cv_cc_needs_belf+set}" = set; then
4328   echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
4330   ac_ext=c
4331 ac_cpp='$CPP $CPPFLAGS'
4332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4335
4336      cat >conftest.$ac_ext <<_ACEOF
4337 /* confdefs.h.  */
4338 _ACEOF
4339 cat confdefs.h >>conftest.$ac_ext
4340 cat >>conftest.$ac_ext <<_ACEOF
4341 /* end confdefs.h.  */
4342
4343 int
4344 main ()
4345 {
4346
4347   ;
4348   return 0;
4349 }
4350 _ACEOF
4351 rm -f conftest.$ac_objext conftest$ac_exeext
4352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4353   (eval $ac_link) 2>conftest.er1
4354   ac_status=$?
4355   grep -v '^ *+' conftest.er1 >conftest.err
4356   rm -f conftest.er1
4357   cat conftest.err >&5
4358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359   (exit $ac_status); } &&
4360          { ac_try='test -z "$ac_c_werror_flag"
4361                          || test ! -s conftest.err'
4362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363   (eval $ac_try) 2>&5
4364   ac_status=$?
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); }; } &&
4367          { ac_try='test -s conftest$ac_exeext'
4368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369   (eval $ac_try) 2>&5
4370   ac_status=$?
4371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372   (exit $ac_status); }; }; then
4373   lt_cv_cc_needs_belf=yes
4374 else
4375   echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4377
4378 lt_cv_cc_needs_belf=no
4379 fi
4380 rm -f conftest.err conftest.$ac_objext \
4381       conftest$ac_exeext conftest.$ac_ext
4382      ac_ext=c
4383 ac_cpp='$CPP $CPPFLAGS'
4384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4387
4388 fi
4389 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4390 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4391   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4392     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4393     CFLAGS="$SAVE_CFLAGS"
4394   fi
4395   ;;
4396
4397 esac
4398
4399 need_locks="$enable_libtool_lock"
4400
4401
4402
4403 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4404 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4405 if test "${ac_cv_header_stdc+set}" = set; then
4406   echo $ECHO_N "(cached) $ECHO_C" >&6
4407 else
4408   cat >conftest.$ac_ext <<_ACEOF
4409 /* confdefs.h.  */
4410 _ACEOF
4411 cat confdefs.h >>conftest.$ac_ext
4412 cat >>conftest.$ac_ext <<_ACEOF
4413 /* end confdefs.h.  */
4414 #include <stdlib.h>
4415 #include <stdarg.h>
4416 #include <string.h>
4417 #include <float.h>
4418
4419 int
4420 main ()
4421 {
4422
4423   ;
4424   return 0;
4425 }
4426 _ACEOF
4427 rm -f conftest.$ac_objext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429   (eval $ac_compile) 2>conftest.er1
4430   ac_status=$?
4431   grep -v '^ *+' conftest.er1 >conftest.err
4432   rm -f conftest.er1
4433   cat conftest.err >&5
4434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435   (exit $ac_status); } &&
4436          { ac_try='test -z "$ac_c_werror_flag"
4437                          || test ! -s conftest.err'
4438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439   (eval $ac_try) 2>&5
4440   ac_status=$?
4441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442   (exit $ac_status); }; } &&
4443          { ac_try='test -s conftest.$ac_objext'
4444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445   (eval $ac_try) 2>&5
4446   ac_status=$?
4447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448   (exit $ac_status); }; }; then
4449   ac_cv_header_stdc=yes
4450 else
4451   echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4453
4454 ac_cv_header_stdc=no
4455 fi
4456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4457
4458 if test $ac_cv_header_stdc = yes; then
4459   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4460   cat >conftest.$ac_ext <<_ACEOF
4461 /* confdefs.h.  */
4462 _ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h.  */
4466 #include <string.h>
4467
4468 _ACEOF
4469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4470   $EGREP "memchr" >/dev/null 2>&1; then
4471   :
4472 else
4473   ac_cv_header_stdc=no
4474 fi
4475 rm -f conftest*
4476
4477 fi
4478
4479 if test $ac_cv_header_stdc = yes; then
4480   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4481   cat >conftest.$ac_ext <<_ACEOF
4482 /* confdefs.h.  */
4483 _ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h.  */
4487 #include <stdlib.h>
4488
4489 _ACEOF
4490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4491   $EGREP "free" >/dev/null 2>&1; then
4492   :
4493 else
4494   ac_cv_header_stdc=no
4495 fi
4496 rm -f conftest*
4497
4498 fi
4499
4500 if test $ac_cv_header_stdc = yes; then
4501   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4502   if test "$cross_compiling" = yes; then
4503   :
4504 else
4505   cat >conftest.$ac_ext <<_ACEOF
4506 /* confdefs.h.  */
4507 _ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h.  */
4511 #include <ctype.h>
4512 #if ((' ' & 0x0FF) == 0x020)
4513 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4514 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4515 #else
4516 # define ISLOWER(c) \
4517                    (('a' <= (c) && (c) <= 'i') \
4518                      || ('j' <= (c) && (c) <= 'r') \
4519                      || ('s' <= (c) && (c) <= 'z'))
4520 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4521 #endif
4522
4523 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4524 int
4525 main ()
4526 {
4527   int i;
4528   for (i = 0; i < 256; i++)
4529     if (XOR (islower (i), ISLOWER (i))
4530         || toupper (i) != TOUPPER (i))
4531       exit(2);
4532   exit (0);
4533 }
4534 _ACEOF
4535 rm -f conftest$ac_exeext
4536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4537   (eval $ac_link) 2>&5
4538   ac_status=$?
4539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542   (eval $ac_try) 2>&5
4543   ac_status=$?
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); }; }; then
4546   :
4547 else
4548   echo "$as_me: program exited with status $ac_status" >&5
4549 echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4551
4552 ( exit $ac_status )
4553 ac_cv_header_stdc=no
4554 fi
4555 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4556 fi
4557 fi
4558 fi
4559 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4560 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4561 if test $ac_cv_header_stdc = yes; then
4562
4563 cat >>confdefs.h <<\_ACEOF
4564 #define STDC_HEADERS 1
4565 _ACEOF
4566
4567 fi
4568
4569 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4580                   inttypes.h stdint.h unistd.h
4581 do
4582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4583 echo "$as_me:$LINENO: checking for $ac_header" >&5
4584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4586   echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588   cat >conftest.$ac_ext <<_ACEOF
4589 /* confdefs.h.  */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h.  */
4594 $ac_includes_default
4595
4596 #include <$ac_header>
4597 _ACEOF
4598 rm -f conftest.$ac_objext
4599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4600   (eval $ac_compile) 2>conftest.er1
4601   ac_status=$?
4602   grep -v '^ *+' conftest.er1 >conftest.err
4603   rm -f conftest.er1
4604   cat conftest.err >&5
4605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); } &&
4607          { ac_try='test -z "$ac_c_werror_flag"
4608                          || test ! -s conftest.err'
4609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610   (eval $ac_try) 2>&5
4611   ac_status=$?
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); }; } &&
4614          { ac_try='test -s conftest.$ac_objext'
4615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616   (eval $ac_try) 2>&5
4617   ac_status=$?
4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); }; }; then
4620   eval "$as_ac_Header=yes"
4621 else
4622   echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4624
4625 eval "$as_ac_Header=no"
4626 fi
4627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4628 fi
4629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4632   cat >>confdefs.h <<_ACEOF
4633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4634 _ACEOF
4635
4636 fi
4637
4638 done
4639
4640
4641
4642 for ac_header in dlfcn.h
4643 do
4644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4646   echo "$as_me:$LINENO: checking for $ac_header" >&5
4647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4649   echo $ECHO_N "(cached) $ECHO_C" >&6
4650 fi
4651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4653 else
4654   # Is the header compilable?
4655 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4657 cat >conftest.$ac_ext <<_ACEOF
4658 /* confdefs.h.  */
4659 _ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h.  */
4663 $ac_includes_default
4664 #include <$ac_header>
4665 _ACEOF
4666 rm -f conftest.$ac_objext
4667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4668   (eval $ac_compile) 2>conftest.er1
4669   ac_status=$?
4670   grep -v '^ *+' conftest.er1 >conftest.err
4671   rm -f conftest.er1
4672   cat conftest.err >&5
4673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674   (exit $ac_status); } &&
4675          { ac_try='test -z "$ac_c_werror_flag"
4676                          || test ! -s conftest.err'
4677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678   (eval $ac_try) 2>&5
4679   ac_status=$?
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); }; } &&
4682          { ac_try='test -s conftest.$ac_objext'
4683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4684   (eval $ac_try) 2>&5
4685   ac_status=$?
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); }; }; then
4688   ac_header_compiler=yes
4689 else
4690   echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4692
4693 ac_header_compiler=no
4694 fi
4695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4696 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4697 echo "${ECHO_T}$ac_header_compiler" >&6
4698
4699 # Is the header present?
4700 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4702 cat >conftest.$ac_ext <<_ACEOF
4703 /* confdefs.h.  */
4704 _ACEOF
4705 cat confdefs.h >>conftest.$ac_ext
4706 cat >>conftest.$ac_ext <<_ACEOF
4707 /* end confdefs.h.  */
4708 #include <$ac_header>
4709 _ACEOF
4710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4711   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4712   ac_status=$?
4713   grep -v '^ *+' conftest.er1 >conftest.err
4714   rm -f conftest.er1
4715   cat conftest.err >&5
4716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717   (exit $ac_status); } >/dev/null; then
4718   if test -s conftest.err; then
4719     ac_cpp_err=$ac_c_preproc_warn_flag
4720     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4721   else
4722     ac_cpp_err=
4723   fi
4724 else
4725   ac_cpp_err=yes
4726 fi
4727 if test -z "$ac_cpp_err"; then
4728   ac_header_preproc=yes
4729 else
4730   echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4732
4733   ac_header_preproc=no
4734 fi
4735 rm -f conftest.err conftest.$ac_ext
4736 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4737 echo "${ECHO_T}$ac_header_preproc" >&6
4738
4739 # So?  What about this header?
4740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4741   yes:no: )
4742     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4744     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4746     ac_header_preproc=yes
4747     ;;
4748   no:yes:* )
4749     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4751     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4752 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4753     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4755     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4756 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4757     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4759     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4761     (
4762       cat <<\_ASBOX
4763 ## ----------------------------------- ##
4764 ## Report this to llvmbugs@cs.uiuc.edu ##
4765 ## ----------------------------------- ##
4766 _ASBOX
4767     ) |
4768       sed "s/^/$as_me: WARNING:     /" >&2
4769     ;;
4770 esac
4771 echo "$as_me:$LINENO: checking for $ac_header" >&5
4772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4774   echo $ECHO_N "(cached) $ECHO_C" >&6
4775 else
4776   eval "$as_ac_Header=\$ac_header_preproc"
4777 fi
4778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4780
4781 fi
4782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4783   cat >>confdefs.h <<_ACEOF
4784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4785 _ACEOF
4786
4787 fi
4788
4789 done
4790
4791 ac_ext=cc
4792 ac_cpp='$CXXCPP $CPPFLAGS'
4793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4796 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4797 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4798 if test -z "$CXXCPP"; then
4799   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4800   echo $ECHO_N "(cached) $ECHO_C" >&6
4801 else
4802       # Double quotes because CXXCPP needs to be expanded
4803     for CXXCPP in "$CXX -E" "/lib/cpp"
4804     do
4805       ac_preproc_ok=false
4806 for ac_cxx_preproc_warn_flag in '' yes
4807 do
4808   # Use a header file that comes with gcc, so configuring glibc
4809   # with a fresh cross-compiler works.
4810   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4811   # <limits.h> exists even on freestanding compilers.
4812   # On the NeXT, cc -E runs the code through the compiler's parser,
4813   # not just through cpp. "Syntax error" is here to catch this case.
4814   cat >conftest.$ac_ext <<_ACEOF
4815 /* confdefs.h.  */
4816 _ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h.  */
4820 #ifdef __STDC__
4821 # include <limits.h>
4822 #else
4823 # include <assert.h>
4824 #endif
4825                      Syntax error
4826 _ACEOF
4827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4828   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4829   ac_status=$?
4830   grep -v '^ *+' conftest.er1 >conftest.err
4831   rm -f conftest.er1
4832   cat conftest.err >&5
4833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834   (exit $ac_status); } >/dev/null; then
4835   if test -s conftest.err; then
4836     ac_cpp_err=$ac_cxx_preproc_warn_flag
4837     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4838   else
4839     ac_cpp_err=
4840   fi
4841 else
4842   ac_cpp_err=yes
4843 fi
4844 if test -z "$ac_cpp_err"; then
4845   :
4846 else
4847   echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4849
4850   # Broken: fails on valid input.
4851 continue
4852 fi
4853 rm -f conftest.err conftest.$ac_ext
4854
4855   # OK, works on sane cases.  Now check whether non-existent headers
4856   # can be detected and how.
4857   cat >conftest.$ac_ext <<_ACEOF
4858 /* confdefs.h.  */
4859 _ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h.  */
4863 #include <ac_nonexistent.h>
4864 _ACEOF
4865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4866   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4867   ac_status=$?
4868   grep -v '^ *+' conftest.er1 >conftest.err
4869   rm -f conftest.er1
4870   cat conftest.err >&5
4871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872   (exit $ac_status); } >/dev/null; then
4873   if test -s conftest.err; then
4874     ac_cpp_err=$ac_cxx_preproc_warn_flag
4875     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4876   else
4877     ac_cpp_err=
4878   fi
4879 else
4880   ac_cpp_err=yes
4881 fi
4882 if test -z "$ac_cpp_err"; then
4883   # Broken: success on invalid input.
4884 continue
4885 else
4886   echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4888
4889   # Passes both tests.
4890 ac_preproc_ok=:
4891 break
4892 fi
4893 rm -f conftest.err conftest.$ac_ext
4894
4895 done
4896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4897 rm -f conftest.err conftest.$ac_ext
4898 if $ac_preproc_ok; then
4899   break
4900 fi
4901
4902     done
4903     ac_cv_prog_CXXCPP=$CXXCPP
4904
4905 fi
4906   CXXCPP=$ac_cv_prog_CXXCPP
4907 else
4908   ac_cv_prog_CXXCPP=$CXXCPP
4909 fi
4910 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4911 echo "${ECHO_T}$CXXCPP" >&6
4912 ac_preproc_ok=false
4913 for ac_cxx_preproc_warn_flag in '' yes
4914 do
4915   # Use a header file that comes with gcc, so configuring glibc
4916   # with a fresh cross-compiler works.
4917   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4918   # <limits.h> exists even on freestanding compilers.
4919   # On the NeXT, cc -E runs the code through the compiler's parser,
4920   # not just through cpp. "Syntax error" is here to catch this case.
4921   cat >conftest.$ac_ext <<_ACEOF
4922 /* confdefs.h.  */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h.  */
4927 #ifdef __STDC__
4928 # include <limits.h>
4929 #else
4930 # include <assert.h>
4931 #endif
4932                      Syntax error
4933 _ACEOF
4934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4935   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4936   ac_status=$?
4937   grep -v '^ *+' conftest.er1 >conftest.err
4938   rm -f conftest.er1
4939   cat conftest.err >&5
4940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941   (exit $ac_status); } >/dev/null; then
4942   if test -s conftest.err; then
4943     ac_cpp_err=$ac_cxx_preproc_warn_flag
4944     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4945   else
4946     ac_cpp_err=
4947   fi
4948 else
4949   ac_cpp_err=yes
4950 fi
4951 if test -z "$ac_cpp_err"; then
4952   :
4953 else
4954   echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4956
4957   # Broken: fails on valid input.
4958 continue
4959 fi
4960 rm -f conftest.err conftest.$ac_ext
4961
4962   # OK, works on sane cases.  Now check whether non-existent headers
4963   # can be detected and how.
4964   cat >conftest.$ac_ext <<_ACEOF
4965 /* confdefs.h.  */
4966 _ACEOF
4967 cat confdefs.h >>conftest.$ac_ext
4968 cat >>conftest.$ac_ext <<_ACEOF
4969 /* end confdefs.h.  */
4970 #include <ac_nonexistent.h>
4971 _ACEOF
4972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4973   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4974   ac_status=$?
4975   grep -v '^ *+' conftest.er1 >conftest.err
4976   rm -f conftest.er1
4977   cat conftest.err >&5
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); } >/dev/null; then
4980   if test -s conftest.err; then
4981     ac_cpp_err=$ac_cxx_preproc_warn_flag
4982     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4983   else
4984     ac_cpp_err=
4985   fi
4986 else
4987   ac_cpp_err=yes
4988 fi
4989 if test -z "$ac_cpp_err"; then
4990   # Broken: success on invalid input.
4991 continue
4992 else
4993   echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.$ac_ext >&5
4995
4996   # Passes both tests.
4997 ac_preproc_ok=:
4998 break
4999 fi
5000 rm -f conftest.err conftest.$ac_ext
5001
5002 done
5003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5004 rm -f conftest.err conftest.$ac_ext
5005 if $ac_preproc_ok; then
5006   :
5007 else
5008   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5009 See \`config.log' for more details." >&5
5010 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5011 See \`config.log' for more details." >&2;}
5012    { (exit 1); exit 1; }; }
5013 fi
5014
5015 ac_ext=cc
5016 ac_cpp='$CXXCPP $CPPFLAGS'
5017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5020
5021
5022 ac_ext=f
5023 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5024 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5026 if test -n "$ac_tool_prefix"; then
5027   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5028   do
5029     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5031 echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5033 if test "${ac_cv_prog_F77+set}" = set; then
5034   echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036   if test -n "$F77"; then
5037   ac_cv_prog_F77="$F77" # Let the user override the test.
5038 else
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040 for as_dir in $PATH
5041 do
5042   IFS=$as_save_IFS
5043   test -z "$as_dir" && as_dir=.
5044   for ac_exec_ext in '' $ac_executable_extensions; do
5045   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5046     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048     break 2
5049   fi
5050 done
5051 done
5052
5053 fi
5054 fi
5055 F77=$ac_cv_prog_F77
5056 if test -n "$F77"; then
5057   echo "$as_me:$LINENO: result: $F77" >&5
5058 echo "${ECHO_T}$F77" >&6
5059 else
5060   echo "$as_me:$LINENO: result: no" >&5
5061 echo "${ECHO_T}no" >&6
5062 fi
5063
5064     test -n "$F77" && break
5065   done
5066 fi
5067 if test -z "$F77"; then
5068   ac_ct_F77=$F77
5069   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5070 do
5071   # Extract the first word of "$ac_prog", so it can be a program name with args.
5072 set dummy $ac_prog; ac_word=$2
5073 echo "$as_me:$LINENO: checking for $ac_word" >&5
5074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5075 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5076   echo $ECHO_N "(cached) $ECHO_C" >&6
5077 else
5078   if test -n "$ac_ct_F77"; then
5079   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5080 else
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5083 do
5084   IFS=$as_save_IFS
5085   test -z "$as_dir" && as_dir=.
5086   for ac_exec_ext in '' $ac_executable_extensions; do
5087   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088     ac_cv_prog_ac_ct_F77="$ac_prog"
5089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5090     break 2
5091   fi
5092 done
5093 done
5094
5095 fi
5096 fi
5097 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5098 if test -n "$ac_ct_F77"; then
5099   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5100 echo "${ECHO_T}$ac_ct_F77" >&6
5101 else
5102   echo "$as_me:$LINENO: result: no" >&5
5103 echo "${ECHO_T}no" >&6
5104 fi
5105
5106   test -n "$ac_ct_F77" && break
5107 done
5108
5109   F77=$ac_ct_F77
5110 fi
5111
5112
5113 # Provide some information about the compiler.
5114 echo "$as_me:5114:" \
5115      "checking for Fortran 77 compiler version" >&5
5116 ac_compiler=`set X $ac_compile; echo $2`
5117 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5118   (eval $ac_compiler --version </dev/null >&5) 2>&5
5119   ac_status=$?
5120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121   (exit $ac_status); }
5122 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5123   (eval $ac_compiler -v </dev/null >&5) 2>&5
5124   ac_status=$?
5125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126   (exit $ac_status); }
5127 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5128   (eval $ac_compiler -V </dev/null >&5) 2>&5
5129   ac_status=$?
5130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131   (exit $ac_status); }
5132 rm -f a.out
5133
5134 # If we don't use `.F' as extension, the preprocessor is not run on the
5135 # input file.  (Note that this only needs to work for GNU compilers.)
5136 ac_save_ext=$ac_ext
5137 ac_ext=F
5138 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5139 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5140 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5141   echo $ECHO_N "(cached) $ECHO_C" >&6
5142 else
5143   cat >conftest.$ac_ext <<_ACEOF
5144       program main
5145 #ifndef __GNUC__
5146        choke me
5147 #endif
5148
5149       end
5150 _ACEOF
5151 rm -f conftest.$ac_objext
5152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5153   (eval $ac_compile) 2>conftest.er1
5154   ac_status=$?
5155   grep -v '^ *+' conftest.er1 >conftest.err
5156   rm -f conftest.er1
5157   cat conftest.err >&5
5158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159   (exit $ac_status); } &&
5160          { ac_try='test -z "$ac_f77_werror_flag"
5161                          || test ! -s conftest.err'
5162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163   (eval $ac_try) 2>&5
5164   ac_status=$?
5165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166   (exit $ac_status); }; } &&
5167          { ac_try='test -s conftest.$ac_objext'
5168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169   (eval $ac_try) 2>&5
5170   ac_status=$?
5171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172   (exit $ac_status); }; }; then
5173   ac_compiler_gnu=yes
5174 else
5175   echo "$as_me: failed program was:" >&5
5176 sed 's/^/| /' conftest.$ac_ext >&5
5177
5178 ac_compiler_gnu=no
5179 fi
5180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5181 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5182
5183 fi
5184 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5185 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5186 ac_ext=$ac_save_ext
5187 ac_test_FFLAGS=${FFLAGS+set}
5188 ac_save_FFLAGS=$FFLAGS
5189 FFLAGS=
5190 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5191 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5192 if test "${ac_cv_prog_f77_g+set}" = set; then
5193   echo $ECHO_N "(cached) $ECHO_C" >&6
5194 else
5195   FFLAGS=-g
5196 cat >conftest.$ac_ext <<_ACEOF
5197       program main
5198
5199       end
5200 _ACEOF
5201 rm -f conftest.$ac_objext
5202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5203   (eval $ac_compile) 2>conftest.er1
5204   ac_status=$?
5205   grep -v '^ *+' conftest.er1 >conftest.err
5206   rm -f conftest.er1
5207   cat conftest.err >&5
5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); } &&
5210          { ac_try='test -z "$ac_f77_werror_flag"
5211                          || test ! -s conftest.err'
5212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213   (eval $ac_try) 2>&5
5214   ac_status=$?
5215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216   (exit $ac_status); }; } &&
5217          { ac_try='test -s conftest.$ac_objext'
5218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219   (eval $ac_try) 2>&5
5220   ac_status=$?
5221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222   (exit $ac_status); }; }; then
5223   ac_cv_prog_f77_g=yes
5224 else
5225   echo "$as_me: failed program was:" >&5
5226 sed 's/^/| /' conftest.$ac_ext >&5
5227
5228 ac_cv_prog_f77_g=no
5229 fi
5230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5231
5232 fi
5233 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5234 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5235 if test "$ac_test_FFLAGS" = set; then
5236   FFLAGS=$ac_save_FFLAGS
5237 elif test $ac_cv_prog_f77_g = yes; then
5238   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5239     FFLAGS="-g -O2"
5240   else
5241     FFLAGS="-g"
5242   fi
5243 else
5244   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5245     FFLAGS="-O2"
5246   else
5247     FFLAGS=
5248   fi
5249 fi
5250
5251 G77=`test $ac_compiler_gnu = yes && echo yes`
5252 ac_ext=c
5253 ac_cpp='$CPP $CPPFLAGS'
5254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5257
5258
5259
5260 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5261
5262 # find the maximum length of command line arguments
5263 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5264 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5265 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5266   echo $ECHO_N "(cached) $ECHO_C" >&6
5267 else
5268     i=0
5269   testring="ABCD"
5270
5271   case $build_os in
5272   msdosdjgpp*)
5273     # On DJGPP, this test can blow up pretty badly due to problems in libc
5274     # (any single argument exceeding 2000 bytes causes a buffer overrun
5275     # during glob expansion).  Even if it were fixed, the result of this
5276     # check would be larger than it should be.
5277     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5278     ;;
5279
5280   gnu*)
5281     # Under GNU Hurd, this test is not required because there is
5282     # no limit to the length of command line arguments.
5283     # Libtool will interpret -1 as no limit whatsoever
5284     lt_cv_sys_max_cmd_len=-1;
5285     ;;
5286
5287   cygwin* | mingw*)
5288     # On Win9x/ME, this test blows up -- it succeeds, but takes
5289     # about 5 minutes as the teststring grows exponentially.
5290     # Worse, since 9x/ME are not pre-emptively multitasking,
5291     # you end up with a "frozen" computer, even though with patience
5292     # the test eventually succeeds (with a max line length of 256k).
5293     # Instead, let's just punt: use the minimum linelength reported by
5294     # all of the supported platforms: 8192 (on NT/2K/XP).
5295     lt_cv_sys_max_cmd_len=8192;
5296     ;;
5297
5298  *)
5299     # If test is not a shell built-in, we'll probably end up computing a
5300     # maximum length that is only half of the actual maximum length, but
5301     # we can't tell.
5302     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5303                = "XX$testring") >/dev/null 2>&1 &&
5304             new_result=`expr "X$testring" : ".*" 2>&1` &&
5305             lt_cv_sys_max_cmd_len=$new_result &&
5306             test $i != 17 # 1/2 MB should be enough
5307     do
5308       i=`expr $i + 1`
5309       testring=$testring$testring
5310     done
5311     testring=
5312     # Add a significant safety factor because C++ compilers can tack on massive
5313     # amounts of additional arguments before passing them to the linker.
5314     # It appears as though 1/2 is a usable value.
5315     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5316     ;;
5317   esac
5318
5319 fi
5320
5321 if test -n $lt_cv_sys_max_cmd_len ; then
5322   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5323 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5324 else
5325   echo "$as_me:$LINENO: result: none" >&5
5326 echo "${ECHO_T}none" >&6
5327 fi
5328
5329
5330
5331
5332 # Check for command to grab the raw symbol name followed by C symbol from nm.
5333 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5334 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5335 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5336   echo $ECHO_N "(cached) $ECHO_C" >&6
5337 else
5338
5339 # These are sane defaults that work on at least a few old systems.
5340 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5341
5342 # Character class describing NM global symbol codes.
5343 symcode='[BCDEGRST]'
5344
5345 # Regexp to match symbols that can be accessed directly from C.
5346 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5347
5348 # Transform the above into a raw symbol and a C symbol.
5349 symxfrm='\1 \2\3 \3'
5350
5351 # Transform an extracted symbol line into a proper C declaration
5352 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5353
5354 # Transform an extracted symbol line into symbol name and symbol address
5355 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'"
5356
5357 # Define system-specific variables.
5358 case $host_os in
5359 aix*)
5360   symcode='[BCDT]'
5361   ;;
5362 cygwin* | mingw* | pw32*)
5363   symcode='[ABCDGISTW]'
5364   ;;
5365 hpux*) # Its linker distinguishes data from code symbols
5366   if test "$host_cpu" = ia64; then
5367     symcode='[ABCDEGRST]'
5368   fi
5369   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5370   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'"
5371   ;;
5372 irix* | nonstopux*)
5373   symcode='[BCDEGRST]'
5374   ;;
5375 osf*)
5376   symcode='[BCDEGQRST]'
5377   ;;
5378 solaris* | sysv5*)
5379   symcode='[BDT]'
5380   ;;
5381 sysv4)
5382   symcode='[DFNSTU]'
5383   ;;
5384 esac
5385
5386 # Handle CRLF in mingw tool chain
5387 opt_cr=
5388 case $build_os in
5389 mingw*)
5390   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5391   ;;
5392 esac
5393
5394 # If we're using GNU nm, then use its standard symbol codes.
5395 case `$NM -V 2>&1` in
5396 *GNU* | *'with BFD'*)
5397   symcode='[ABCDGISTW]' ;;
5398 esac
5399
5400 # Try without a prefix undercore, then with it.
5401 for ac_symprfx in "" "_"; do
5402
5403   # Write the raw and C identifiers.
5404   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5405
5406   # Check to see that the pipe works correctly.
5407   pipe_works=no
5408
5409   rm -f conftest*
5410   cat > conftest.$ac_ext <<EOF
5411 #ifdef __cplusplus
5412 extern "C" {
5413 #endif
5414 char nm_test_var;
5415 void nm_test_func(){}
5416 #ifdef __cplusplus
5417 }
5418 #endif
5419 int main(){nm_test_var='a';nm_test_func();return(0);}
5420 EOF
5421
5422   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5423   (eval $ac_compile) 2>&5
5424   ac_status=$?
5425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426   (exit $ac_status); }; then
5427     # Now try to grab the symbols.
5428     nlist=conftest.nm
5429     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5430   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5431   ac_status=$?
5432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433   (exit $ac_status); } && test -s "$nlist"; then
5434       # Try sorting and uniquifying the output.
5435       if sort "$nlist" | uniq > "$nlist"T; then
5436         mv -f "$nlist"T "$nlist"
5437       else
5438         rm -f "$nlist"T
5439       fi
5440
5441       # Make sure that we snagged all the symbols we need.
5442       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5443         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5444           cat <<EOF > conftest.$ac_ext
5445 #ifdef __cplusplus
5446 extern "C" {
5447 #endif
5448
5449 EOF
5450           # Now generate the symbol file.
5451           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5452
5453           cat <<EOF >> conftest.$ac_ext
5454 #if defined (__STDC__) && __STDC__
5455 # define lt_ptr_t void *
5456 #else
5457 # define lt_ptr_t char *
5458 # define const
5459 #endif
5460
5461 /* The mapping between symbol names and symbols. */
5462 const struct {
5463   const char *name;
5464   lt_ptr_t address;
5465 }
5466 lt_preloaded_symbols[] =
5467 {
5468 EOF
5469           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5470           cat <<\EOF >> conftest.$ac_ext
5471   {0, (lt_ptr_t) 0}
5472 };
5473
5474 #ifdef __cplusplus
5475 }
5476 #endif
5477 EOF
5478           # Now try linking the two files.
5479           mv conftest.$ac_objext conftstm.$ac_objext
5480           lt_save_LIBS="$LIBS"
5481           lt_save_CFLAGS="$CFLAGS"
5482           LIBS="conftstm.$ac_objext"
5483           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5484           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5485   (eval $ac_link) 2>&5
5486   ac_status=$?
5487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5489             pipe_works=yes
5490           fi
5491           LIBS="$lt_save_LIBS"
5492           CFLAGS="$lt_save_CFLAGS"
5493         else
5494           echo "cannot find nm_test_func in $nlist" >&5
5495         fi
5496       else
5497         echo "cannot find nm_test_var in $nlist" >&5
5498       fi
5499     else
5500       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5501     fi
5502   else
5503     echo "$progname: failed program was:" >&5
5504     cat conftest.$ac_ext >&5
5505   fi
5506   rm -f conftest* conftst*
5507
5508   # Do not use the global_symbol_pipe unless it works.
5509   if test "$pipe_works" = yes; then
5510     break
5511   else
5512     lt_cv_sys_global_symbol_pipe=
5513   fi
5514 done
5515
5516 fi
5517
5518 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5519   lt_cv_sys_global_symbol_to_cdecl=
5520 fi
5521 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5522   echo "$as_me:$LINENO: result: failed" >&5
5523 echo "${ECHO_T}failed" >&6
5524 else
5525   echo "$as_me:$LINENO: result: ok" >&5
5526 echo "${ECHO_T}ok" >&6
5527 fi
5528
5529 echo "$as_me:$LINENO: checking for objdir" >&5
5530 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5531 if test "${lt_cv_objdir+set}" = set; then
5532   echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534   rm -f .libs 2>/dev/null
5535 mkdir .libs 2>/dev/null
5536 if test -d .libs; then
5537   lt_cv_objdir=.libs
5538 else
5539   # MS-DOS does not allow filenames that begin with a dot.
5540   lt_cv_objdir=_libs
5541 fi
5542 rmdir .libs 2>/dev/null
5543 fi
5544 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5545 echo "${ECHO_T}$lt_cv_objdir" >&6
5546 objdir=$lt_cv_objdir
5547
5548
5549
5550
5551
5552 case $host_os in
5553 aix3*)
5554   # AIX sometimes has problems with the GCC collect2 program.  For some
5555   # reason, if we set the COLLECT_NAMES environment variable, the problems
5556   # vanish in a puff of smoke.
5557   if test "X${COLLECT_NAMES+set}" != Xset; then
5558     COLLECT_NAMES=
5559     export COLLECT_NAMES
5560   fi
5561   ;;
5562 esac
5563
5564 # Sed substitution that helps us do robust quoting.  It backslashifies
5565 # metacharacters that are still active within double-quoted strings.
5566 Xsed='sed -e s/^X//'
5567 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5568
5569 # Same as above, but do not quote variable references.
5570 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5571
5572 # Sed substitution to delay expansion of an escaped shell variable in a
5573 # double_quote_subst'ed string.
5574 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5575
5576 # Sed substitution to avoid accidental globbing in evaled expressions
5577 no_glob_subst='s/\*/\\\*/g'
5578
5579 # Constants:
5580 rm="rm -f"
5581
5582 # Global variables:
5583 default_ofile=mklib
5584 can_build_shared=yes
5585
5586 # All known linkers require a `.a' archive for static linking (except M$VC,
5587 # which needs '.lib').
5588 libext=a
5589 ltmain="$ac_aux_dir/ltmain.sh"
5590 ofile="$default_ofile"
5591 with_gnu_ld="$lt_cv_prog_gnu_ld"
5592
5593 if test -n "$ac_tool_prefix"; then
5594   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5595 set dummy ${ac_tool_prefix}ar; ac_word=$2
5596 echo "$as_me:$LINENO: checking for $ac_word" >&5
5597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5598 if test "${ac_cv_prog_AR+set}" = set; then
5599   echo $ECHO_N "(cached) $ECHO_C" >&6
5600 else
5601   if test -n "$AR"; then
5602   ac_cv_prog_AR="$AR" # Let the user override the test.
5603 else
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 for as_dir in $PATH
5606 do
5607   IFS=$as_save_IFS
5608   test -z "$as_dir" && as_dir=.
5609   for ac_exec_ext in '' $ac_executable_extensions; do
5610   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5611     ac_cv_prog_AR="${ac_tool_prefix}ar"
5612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5613     break 2
5614   fi
5615 done
5616 done
5617
5618 fi
5619 fi
5620 AR=$ac_cv_prog_AR
5621 if test -n "$AR"; then
5622   echo "$as_me:$LINENO: result: $AR" >&5
5623 echo "${ECHO_T}$AR" >&6
5624 else
5625   echo "$as_me:$LINENO: result: no" >&5
5626 echo "${ECHO_T}no" >&6
5627 fi
5628
5629 fi
5630 if test -z "$ac_cv_prog_AR"; then
5631   ac_ct_AR=$AR
5632   # Extract the first word of "ar", so it can be a program name with args.
5633 set dummy ar; ac_word=$2
5634 echo "$as_me:$LINENO: checking for $ac_word" >&5
5635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5636 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5637   echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639   if test -n "$ac_ct_AR"; then
5640   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5641 else
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH
5644 do
5645   IFS=$as_save_IFS
5646   test -z "$as_dir" && as_dir=.
5647   for ac_exec_ext in '' $ac_executable_extensions; do
5648   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5649     ac_cv_prog_ac_ct_AR="ar"
5650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5651     break 2
5652   fi
5653 done
5654 done
5655
5656   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5657 fi
5658 fi
5659 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5660 if test -n "$ac_ct_AR"; then
5661   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5662 echo "${ECHO_T}$ac_ct_AR" >&6
5663 else
5664   echo "$as_me:$LINENO: result: no" >&5
5665 echo "${ECHO_T}no" >&6
5666 fi
5667
5668   AR=$ac_ct_AR
5669 else
5670   AR="$ac_cv_prog_AR"
5671 fi
5672
5673 if test -n "$ac_tool_prefix"; then
5674   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5675 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5676 echo "$as_me:$LINENO: checking for $ac_word" >&5
5677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5678 if test "${ac_cv_prog_RANLIB+set}" = set; then
5679   echo $ECHO_N "(cached) $ECHO_C" >&6
5680 else
5681   if test -n "$RANLIB"; then
5682   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5683 else
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5686 do
5687   IFS=$as_save_IFS
5688   test -z "$as_dir" && as_dir=.
5689   for ac_exec_ext in '' $ac_executable_extensions; do
5690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5691     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5693     break 2
5694   fi
5695 done
5696 done
5697
5698 fi
5699 fi
5700 RANLIB=$ac_cv_prog_RANLIB
5701 if test -n "$RANLIB"; then
5702   echo "$as_me:$LINENO: result: $RANLIB" >&5
5703 echo "${ECHO_T}$RANLIB" >&6
5704 else
5705   echo "$as_me:$LINENO: result: no" >&5
5706 echo "${ECHO_T}no" >&6
5707 fi
5708
5709 fi
5710 if test -z "$ac_cv_prog_RANLIB"; then
5711   ac_ct_RANLIB=$RANLIB
5712   # Extract the first word of "ranlib", so it can be a program name with args.
5713 set dummy ranlib; ac_word=$2
5714 echo "$as_me:$LINENO: checking for $ac_word" >&5
5715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5716 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5717   echo $ECHO_N "(cached) $ECHO_C" >&6
5718 else
5719   if test -n "$ac_ct_RANLIB"; then
5720   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5721 else
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH
5724 do
5725   IFS=$as_save_IFS
5726   test -z "$as_dir" && as_dir=.
5727   for ac_exec_ext in '' $ac_executable_extensions; do
5728   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729     ac_cv_prog_ac_ct_RANLIB="ranlib"
5730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5731     break 2
5732   fi
5733 done
5734 done
5735
5736   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5737 fi
5738 fi
5739 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5740 if test -n "$ac_ct_RANLIB"; then
5741   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5742 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5743 else
5744   echo "$as_me:$LINENO: result: no" >&5
5745 echo "${ECHO_T}no" >&6
5746 fi
5747
5748   RANLIB=$ac_ct_RANLIB
5749 else
5750   RANLIB="$ac_cv_prog_RANLIB"
5751 fi
5752
5753 if test -n "$ac_tool_prefix"; then
5754   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5755 set dummy ${ac_tool_prefix}strip; ac_word=$2
5756 echo "$as_me:$LINENO: checking for $ac_word" >&5
5757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5758 if test "${ac_cv_prog_STRIP+set}" = set; then
5759   echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761   if test -n "$STRIP"; then
5762   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5763 else
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 for as_dir in $PATH
5766 do
5767   IFS=$as_save_IFS
5768   test -z "$as_dir" && as_dir=.
5769   for ac_exec_ext in '' $ac_executable_extensions; do
5770   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5773     break 2
5774   fi
5775 done
5776 done
5777
5778 fi
5779 fi
5780 STRIP=$ac_cv_prog_STRIP
5781 if test -n "$STRIP"; then
5782   echo "$as_me:$LINENO: result: $STRIP" >&5
5783 echo "${ECHO_T}$STRIP" >&6
5784 else
5785   echo "$as_me:$LINENO: result: no" >&5
5786 echo "${ECHO_T}no" >&6
5787 fi
5788
5789 fi
5790 if test -z "$ac_cv_prog_STRIP"; then
5791   ac_ct_STRIP=$STRIP
5792   # Extract the first word of "strip", so it can be a program name with args.
5793 set dummy strip; ac_word=$2
5794 echo "$as_me:$LINENO: checking for $ac_word" >&5
5795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5796 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5797   echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799   if test -n "$ac_ct_STRIP"; then
5800   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5801 else
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805   IFS=$as_save_IFS
5806   test -z "$as_dir" && as_dir=.
5807   for ac_exec_ext in '' $ac_executable_extensions; do
5808   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809     ac_cv_prog_ac_ct_STRIP="strip"
5810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5811     break 2
5812   fi
5813 done
5814 done
5815
5816   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5817 fi
5818 fi
5819 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5820 if test -n "$ac_ct_STRIP"; then
5821   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5822 echo "${ECHO_T}$ac_ct_STRIP" >&6
5823 else
5824   echo "$as_me:$LINENO: result: no" >&5
5825 echo "${ECHO_T}no" >&6
5826 fi
5827
5828   STRIP=$ac_ct_STRIP
5829 else
5830   STRIP="$ac_cv_prog_STRIP"
5831 fi
5832
5833
5834 old_CC="$CC"
5835 old_CFLAGS="$CFLAGS"
5836
5837 # Set sane defaults for various variables
5838 test -z "$AR" && AR=ar
5839 test -z "$AR_FLAGS" && AR_FLAGS=cru
5840 test -z "$AS" && AS=as
5841 test -z "$CC" && CC=cc
5842 test -z "$LTCC" && LTCC=$CC
5843 test -z "$DLLTOOL" && DLLTOOL=dlltool
5844 test -z "$LD" && LD=ld
5845 test -z "$LN_S" && LN_S="ln -s"
5846 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5847 test -z "$NM" && NM=nm
5848 test -z "$SED" && SED=sed
5849 test -z "$OBJDUMP" && OBJDUMP=objdump
5850 test -z "$RANLIB" && RANLIB=:
5851 test -z "$STRIP" && STRIP=:
5852 test -z "$ac_objext" && ac_objext=o
5853
5854 # Determine commands to create old-style static archives.
5855 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5856 old_postinstall_cmds='chmod 644 $oldlib'
5857 old_postuninstall_cmds=
5858
5859 if test -n "$RANLIB"; then
5860   case $host_os in
5861   openbsd*)
5862     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5863     ;;
5864   *)
5865     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5866     ;;
5867   esac
5868   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5869 fi
5870
5871 # Only perform the check for file, if the check method requires it
5872 case $deplibs_check_method in
5873 file_magic*)
5874   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5875     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5876 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5877 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5878   echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880   case $MAGIC_CMD in
5881 [\\/*] |  ?:[\\/]*)
5882   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5883   ;;
5884 *)
5885   lt_save_MAGIC_CMD="$MAGIC_CMD"
5886   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5887   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5888   for ac_dir in $ac_dummy; do
5889     IFS="$lt_save_ifs"
5890     test -z "$ac_dir" && ac_dir=.
5891     if test -f $ac_dir/${ac_tool_prefix}file; then
5892       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5893       if test -n "$file_magic_test_file"; then
5894         case $deplibs_check_method in
5895         "file_magic "*)
5896           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5897           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5898           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5899             $EGREP "$file_magic_regex" > /dev/null; then
5900             :
5901           else
5902             cat <<EOF 1>&2
5903
5904 *** Warning: the command libtool uses to detect shared libraries,
5905 *** $file_magic_cmd, produces output that libtool cannot recognize.
5906 *** The result is that libtool may fail to recognize shared libraries
5907 *** as such.  This will affect the creation of libtool libraries that
5908 *** depend on shared libraries, but programs linked with such libtool
5909 *** libraries will work regardless of this problem.  Nevertheless, you
5910 *** may want to report the problem to your system manager and/or to
5911 *** bug-libtool@gnu.org
5912
5913 EOF
5914           fi ;;
5915         esac
5916       fi
5917       break
5918     fi
5919   done
5920   IFS="$lt_save_ifs"
5921   MAGIC_CMD="$lt_save_MAGIC_CMD"
5922   ;;
5923 esac
5924 fi
5925
5926 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5927 if test -n "$MAGIC_CMD"; then
5928   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5929 echo "${ECHO_T}$MAGIC_CMD" >&6
5930 else
5931   echo "$as_me:$LINENO: result: no" >&5
5932 echo "${ECHO_T}no" >&6
5933 fi
5934
5935 if test -z "$lt_cv_path_MAGIC_CMD"; then
5936   if test -n "$ac_tool_prefix"; then
5937     echo "$as_me:$LINENO: checking for file" >&5
5938 echo $ECHO_N "checking for file... $ECHO_C" >&6
5939 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5940   echo $ECHO_N "(cached) $ECHO_C" >&6
5941 else
5942   case $MAGIC_CMD in
5943 [\\/*] |  ?:[\\/]*)
5944   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5945   ;;
5946 *)
5947   lt_save_MAGIC_CMD="$MAGIC_CMD"
5948   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5949   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5950   for ac_dir in $ac_dummy; do
5951     IFS="$lt_save_ifs"
5952     test -z "$ac_dir" && ac_dir=.
5953     if test -f $ac_dir/file; then
5954       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5955       if test -n "$file_magic_test_file"; then
5956         case $deplibs_check_method in
5957         "file_magic "*)
5958           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5959           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5960           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5961             $EGREP "$file_magic_regex" > /dev/null; then
5962             :
5963           else
5964             cat <<EOF 1>&2
5965
5966 *** Warning: the command libtool uses to detect shared libraries,
5967 *** $file_magic_cmd, produces output that libtool cannot recognize.
5968 *** The result is that libtool may fail to recognize shared libraries
5969 *** as such.  This will affect the creation of libtool libraries that
5970 *** depend on shared libraries, but programs linked with such libtool
5971 *** libraries will work regardless of this problem.  Nevertheless, you
5972 *** may want to report the problem to your system manager and/or to
5973 *** bug-libtool@gnu.org
5974
5975 EOF
5976           fi ;;
5977         esac
5978       fi
5979       break
5980     fi
5981   done
5982   IFS="$lt_save_ifs"
5983   MAGIC_CMD="$lt_save_MAGIC_CMD"
5984   ;;
5985 esac
5986 fi
5987
5988 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5989 if test -n "$MAGIC_CMD"; then
5990   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5991 echo "${ECHO_T}$MAGIC_CMD" >&6
5992 else
5993   echo "$as_me:$LINENO: result: no" >&5
5994 echo "${ECHO_T}no" >&6
5995 fi
5996
5997   else
5998     MAGIC_CMD=:
5999   fi
6000 fi
6001
6002   fi
6003   ;;
6004 esac
6005
6006 enable_dlopen=no
6007 enable_win32_dll=no
6008
6009 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6010 if test "${enable_libtool_lock+set}" = set; then
6011   enableval="$enable_libtool_lock"
6012
6013 fi;
6014 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6015
6016
6017 # Check whether --with-pic or --without-pic was given.
6018 if test "${with_pic+set}" = set; then
6019   withval="$with_pic"
6020   pic_mode="$withval"
6021 else
6022   pic_mode=default
6023 fi;
6024 test -z "$pic_mode" && pic_mode=default
6025
6026 # Use C for the default configuration in the libtool script
6027 tagname=
6028 lt_save_CC="$CC"
6029 ac_ext=c
6030 ac_cpp='$CPP $CPPFLAGS'
6031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6034
6035
6036 # Source file extension for C test sources.
6037 ac_ext=c
6038
6039 # Object file extension for compiled C test sources.
6040 objext=o
6041 objext=$objext
6042
6043 # Code to be used in simple compile tests
6044 lt_simple_compile_test_code="int some_variable = 0;\n"
6045
6046 # Code to be used in simple link tests
6047 lt_simple_link_test_code='int main(){return(0);}\n'
6048
6049
6050 # If no C compiler was specified, use CC.
6051 LTCC=${LTCC-"$CC"}
6052
6053 # Allow CC to be a program name with arguments.
6054 compiler=$CC
6055
6056
6057 #
6058 # Check for any special shared library compilation flags.
6059 #
6060 lt_prog_cc_shlib=
6061 if test "$GCC" = no; then
6062   case $host_os in
6063   sco3.2v5*)
6064     lt_prog_cc_shlib='-belf'
6065     ;;
6066   esac
6067 fi
6068 if test -n "$lt_prog_cc_shlib"; then
6069   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6070 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6071   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6072   else
6073     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6074 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6075     lt_cv_prog_cc_can_build_shared=no
6076   fi
6077 fi
6078
6079
6080 #
6081 # Check to make sure the static flag actually works.
6082 #
6083 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6084 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6085 if test "${lt_prog_compiler_static_works+set}" = set; then
6086   echo $ECHO_N "(cached) $ECHO_C" >&6
6087 else
6088   lt_prog_compiler_static_works=no
6089    save_LDFLAGS="$LDFLAGS"
6090    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6091    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6092    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6093      # The compiler can only warn and ignore the option if not recognized
6094      # So say no if there are warnings
6095      if test -s conftest.err; then
6096        # Append any errors to the config.log.
6097        cat conftest.err 1>&5
6098      else
6099        lt_prog_compiler_static_works=yes
6100      fi
6101    fi
6102    $rm conftest*
6103    LDFLAGS="$save_LDFLAGS"
6104
6105 fi
6106 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6107 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6108
6109 if test x"$lt_prog_compiler_static_works" = xyes; then
6110     :
6111 else
6112     lt_prog_compiler_static=
6113 fi
6114
6115
6116
6117 ## CAVEAT EMPTOR:
6118 ## There is no encapsulation within the following macros, do not change
6119 ## the running order or otherwise move them around unless you know exactly
6120 ## what you are doing...
6121
6122 lt_prog_compiler_no_builtin_flag=
6123
6124 if test "$GCC" = yes; then
6125   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6126
6127   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6128 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6129 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6130   echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132   lt_cv_prog_compiler_rtti_exceptions=no
6133   ac_outfile=conftest.$ac_objext
6134    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6135    lt_compiler_flag="-fno-rtti -fno-exceptions"
6136    # Insert the option either (1) after the last *FLAGS variable, or
6137    # (2) before a word containing "conftest.", or (3) at the end.
6138    # Note that $ac_compile itself does not contain backslashes and begins
6139    # with a dollar sign (not a hyphen), so the echo should work correctly.
6140    # The option is referenced via a variable to avoid confusing sed.
6141    lt_compile=`echo "$ac_compile" | $SED \
6142    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6143    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6144    -e 's:$: $lt_compiler_flag:'`
6145    (eval echo "\"\$as_me:6145: $lt_compile\"" >&5)
6146    (eval "$lt_compile" 2>conftest.err)
6147    ac_status=$?
6148    cat conftest.err >&5
6149    echo "$as_me:6149: \$? = $ac_status" >&5
6150    if (exit $ac_status) && test -s "$ac_outfile"; then
6151      # The compiler can only warn and ignore the option if not recognized
6152      # So say no if there are warnings
6153      if test ! -s conftest.err; then
6154        lt_cv_prog_compiler_rtti_exceptions=yes
6155      fi
6156    fi
6157    $rm conftest*
6158
6159 fi
6160 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6161 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6162
6163 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6164     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6165 else
6166     :
6167 fi
6168
6169 fi
6170
6171 lt_prog_compiler_wl=
6172 lt_prog_compiler_pic=
6173 lt_prog_compiler_static=
6174
6175 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6176 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6177
6178   if test "$GCC" = yes; then
6179     lt_prog_compiler_wl='-Wl,'
6180     lt_prog_compiler_static='-static'
6181
6182     case $host_os in
6183       aix*)
6184       # All AIX code is PIC.
6185       if test "$host_cpu" = ia64; then
6186         # AIX 5 now supports IA64 processor
6187         lt_prog_compiler_static='-Bstatic'
6188       fi
6189       ;;
6190
6191     amigaos*)
6192       # FIXME: we need at least 68020 code to build shared libraries, but
6193       # adding the `-m68020' flag to GCC prevents building anything better,
6194       # like `-m68040'.
6195       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6196       ;;
6197
6198     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6199       # PIC is the default for these OSes.
6200       ;;
6201
6202     mingw* | pw32* | os2*)
6203       # This hack is so that the source file can tell whether it is being
6204       # built for inclusion in a dll (and should export symbols for example).
6205       lt_prog_compiler_pic='-DDLL_EXPORT'
6206       ;;
6207
6208     darwin* | rhapsody*)
6209       # PIC is the default on this platform
6210       # Common symbols not allowed in MH_DYLIB files
6211       lt_prog_compiler_pic='-fno-common'
6212       ;;
6213
6214     msdosdjgpp*)
6215       # Just because we use GCC doesn't mean we suddenly get shared libraries
6216       # on systems that don't support them.
6217       lt_prog_compiler_can_build_shared=no
6218       enable_shared=no
6219       ;;
6220
6221     sysv4*MP*)
6222       if test -d /usr/nec; then
6223         lt_prog_compiler_pic=-Kconform_pic
6224       fi
6225       ;;
6226
6227     hpux*)
6228       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6229       # not for PA HP-UX.
6230       case "$host_cpu" in
6231       hppa*64*|ia64*)
6232         # +Z the default
6233         ;;
6234       *)
6235         lt_prog_compiler_pic='-fPIC'
6236         ;;
6237       esac
6238       ;;
6239
6240     *)
6241       lt_prog_compiler_pic='-fPIC'
6242       ;;
6243     esac
6244   else
6245     # PORTME Check for flag to pass linker flags through the system compiler.
6246     case $host_os in
6247     aix*)
6248       lt_prog_compiler_wl='-Wl,'
6249       if test "$host_cpu" = ia64; then
6250         # AIX 5 now supports IA64 processor
6251         lt_prog_compiler_static='-Bstatic'
6252       else
6253         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6254       fi
6255       ;;
6256
6257     mingw* | pw32* | os2*)
6258       # This hack is so that the source file can tell whether it is being
6259       # built for inclusion in a dll (and should export symbols for example).
6260       lt_prog_compiler_pic='-DDLL_EXPORT'
6261       ;;
6262
6263     hpux9* | hpux10* | hpux11*)
6264       lt_prog_compiler_wl='-Wl,'
6265       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6266       # not for PA HP-UX.
6267       case "$host_cpu" in
6268       hppa*64*|ia64*)
6269         # +Z the default
6270         ;;
6271       *)
6272         lt_prog_compiler_pic='+Z'
6273         ;;
6274       esac
6275       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6276       lt_prog_compiler_static='${wl}-a ${wl}archive'
6277       ;;
6278
6279     irix5* | irix6* | nonstopux*)
6280       lt_prog_compiler_wl='-Wl,'
6281       # PIC (with -KPIC) is the default.
6282       lt_prog_compiler_static='-non_shared'
6283       ;;
6284
6285     newsos6)
6286       lt_prog_compiler_pic='-KPIC'
6287       lt_prog_compiler_static='-Bstatic'
6288       ;;
6289
6290     linux*)
6291       case $CC in
6292       icc|ecc)
6293         lt_prog_compiler_wl='-Wl,'
6294         lt_prog_compiler_pic='-KPIC'
6295         lt_prog_compiler_static='-static'
6296         ;;
6297       ccc)
6298         lt_prog_compiler_wl='-Wl,'
6299         # All Alpha code is PIC.
6300         lt_prog_compiler_static='-non_shared'
6301         ;;
6302       esac
6303       ;;
6304
6305     osf3* | osf4* | osf5*)
6306       lt_prog_compiler_wl='-Wl,'
6307       # All OSF/1 code is PIC.
6308       lt_prog_compiler_static='-non_shared'
6309       ;;
6310
6311     sco3.2v5*)
6312       lt_prog_compiler_pic='-Kpic'
6313       lt_prog_compiler_static='-dn'
6314       ;;
6315
6316     solaris*)
6317       lt_prog_compiler_wl='-Wl,'
6318       lt_prog_compiler_pic='-KPIC'
6319       lt_prog_compiler_static='-Bstatic'
6320       ;;
6321
6322     sunos4*)
6323       lt_prog_compiler_wl='-Qoption ld '
6324       lt_prog_compiler_pic='-PIC'
6325       lt_prog_compiler_static='-Bstatic'
6326       ;;
6327
6328     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6329       lt_prog_compiler_wl='-Wl,'
6330       lt_prog_compiler_pic='-KPIC'
6331       lt_prog_compiler_static='-Bstatic'
6332       ;;
6333
6334     sysv4*MP*)
6335       if test -d /usr/nec ;then
6336         lt_prog_compiler_pic='-Kconform_pic'
6337         lt_prog_compiler_static='-Bstatic'
6338       fi
6339       ;;
6340
6341     uts4*)
6342       lt_prog_compiler_pic='-pic'
6343       lt_prog_compiler_static='-Bstatic'
6344       ;;
6345
6346     *)
6347       lt_prog_compiler_can_build_shared=no
6348       ;;
6349     esac
6350   fi
6351
6352 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6353 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6354
6355 #
6356 # Check to make sure the PIC flag actually works.
6357 #
6358 if test -n "$lt_prog_compiler_pic"; then
6359   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6360 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6361 if test "${lt_prog_compiler_pic_works+set}" = set; then
6362   echo $ECHO_N "(cached) $ECHO_C" >&6
6363 else
6364   lt_prog_compiler_pic_works=no
6365   ac_outfile=conftest.$ac_objext
6366    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6367    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6368    # Insert the option either (1) after the last *FLAGS variable, or
6369    # (2) before a word containing "conftest.", or (3) at the end.
6370    # Note that $ac_compile itself does not contain backslashes and begins
6371    # with a dollar sign (not a hyphen), so the echo should work correctly.
6372    # The option is referenced via a variable to avoid confusing sed.
6373    lt_compile=`echo "$ac_compile" | $SED \
6374    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6375    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6376    -e 's:$: $lt_compiler_flag:'`
6377    (eval echo "\"\$as_me:6377: $lt_compile\"" >&5)
6378    (eval "$lt_compile" 2>conftest.err)
6379    ac_status=$?
6380    cat conftest.err >&5
6381    echo "$as_me:6381: \$? = $ac_status" >&5
6382    if (exit $ac_status) && test -s "$ac_outfile"; then
6383      # The compiler can only warn and ignore the option if not recognized
6384      # So say no if there are warnings
6385      if test ! -s conftest.err; then
6386        lt_prog_compiler_pic_works=yes
6387      fi
6388    fi
6389    $rm conftest*
6390
6391 fi
6392 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6393 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6394
6395 if test x"$lt_prog_compiler_pic_works" = xyes; then
6396     case $lt_prog_compiler_pic in
6397      "" | " "*) ;;
6398      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6399      esac
6400 else
6401     lt_prog_compiler_pic=
6402      lt_prog_compiler_can_build_shared=no
6403 fi
6404
6405 fi
6406 case "$host_os" in
6407   # For platforms which do not support PIC, -DPIC is meaningless:
6408   *djgpp*)
6409     lt_prog_compiler_pic=
6410     ;;
6411   *)
6412     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6413     ;;
6414 esac
6415
6416 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6417 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6418 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6419   echo $ECHO_N "(cached) $ECHO_C" >&6
6420 else
6421   lt_cv_prog_compiler_c_o=no
6422    $rm -r conftest 2>/dev/null
6423    mkdir conftest
6424    cd conftest
6425    mkdir out
6426    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6427
6428    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6429    # that will create temporary files in the current directory regardless of
6430    # the output directory.  Thus, making CWD read-only will cause this test
6431    # to fail, enabling locking or at least warning the user not to do parallel
6432    # builds.
6433    chmod -w .
6434
6435    lt_compiler_flag="-o out/conftest2.$ac_objext"
6436    # Insert the option either (1) after the last *FLAGS variable, or
6437    # (2) before a word containing "conftest.", or (3) at the end.
6438    # Note that $ac_compile itself does not contain backslashes and begins
6439    # with a dollar sign (not a hyphen), so the echo should work correctly.
6440    lt_compile=`echo "$ac_compile" | $SED \
6441    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6442    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6443    -e 's:$: $lt_compiler_flag:'`
6444    (eval echo "\"\$as_me:6444: $lt_compile\"" >&5)
6445    (eval "$lt_compile" 2>out/conftest.err)
6446    ac_status=$?
6447    cat out/conftest.err >&5
6448    echo "$as_me:6448: \$? = $ac_status" >&5
6449    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6450    then
6451      # The compiler can only warn and ignore the option if not recognized
6452      # So say no if there are warnings
6453      if test ! -s out/conftest.err; then
6454        lt_cv_prog_compiler_c_o=yes
6455      fi
6456    fi
6457    chmod u+w .
6458    $rm conftest* out/*
6459    rmdir out
6460    cd ..
6461    rmdir conftest
6462    $rm conftest*
6463
6464 fi
6465 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6466 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6467
6468
6469 hard_links="nottested"
6470 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6471   # do not overwrite the value of need_locks provided by the user
6472   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6473 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6474   hard_links=yes
6475   $rm conftest*
6476   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6477   touch conftest.a
6478   ln conftest.a conftest.b 2>&5 || hard_links=no
6479   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6480   echo "$as_me:$LINENO: result: $hard_links" >&5
6481 echo "${ECHO_T}$hard_links" >&6
6482   if test "$hard_links" = no; then
6483     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6484 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6485     need_locks=warn
6486   fi
6487 else
6488   need_locks=no
6489 fi
6490
6491 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6492 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6493
6494   runpath_var=
6495   allow_undefined_flag=
6496   enable_shared_with_static_runtimes=no
6497   archive_cmds=
6498   archive_expsym_cmds=
6499   old_archive_From_new_cmds=
6500   old_archive_from_expsyms_cmds=
6501   export_dynamic_flag_spec=
6502   whole_archive_flag_spec=
6503   thread_safe_flag_spec=
6504   hardcode_libdir_flag_spec=
6505   hardcode_libdir_flag_spec_ld=
6506   hardcode_libdir_separator=
6507   hardcode_direct=no
6508   hardcode_minus_L=no
6509   hardcode_shlibpath_var=unsupported
6510   link_all_deplibs=unknown
6511   hardcode_automatic=no
6512   module_cmds=
6513   module_expsym_cmds=
6514   always_export_symbols=no
6515   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6516   # include_expsyms should be a list of space-separated symbols to be *always*
6517   # included in the symbol list
6518   include_expsyms=
6519   # exclude_expsyms can be an extended regexp of symbols to exclude
6520   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6521   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6522   # as well as any symbol that contains `d'.
6523   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6524   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6525   # platforms (ab)use it in PIC code, but their linkers get confused if
6526   # the symbol is explicitly referenced.  Since portable code cannot
6527   # rely on this symbol name, it's probably fine to never include it in
6528   # preloaded symbol tables.
6529   extract_expsyms_cmds=
6530
6531   case $host_os in
6532   cygwin* | mingw* | pw32*)
6533     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6534     # When not using gcc, we currently assume that we are using
6535     # Microsoft Visual C++.
6536     if test "$GCC" != yes; then
6537       with_gnu_ld=no
6538     fi
6539     ;;
6540   openbsd*)
6541     with_gnu_ld=no
6542     ;;
6543   esac
6544
6545   ld_shlibs=yes
6546   if test "$with_gnu_ld" = yes; then
6547     # If archive_cmds runs LD, not CC, wlarc should be empty
6548     wlarc='${wl}'
6549
6550     # See if GNU ld supports shared libraries.
6551     case $host_os in
6552     aix3* | aix4* | aix5*)
6553       # On AIX/PPC, the GNU linker is very broken
6554       if test "$host_cpu" != ia64; then
6555         ld_shlibs=no
6556         cat <<EOF 1>&2
6557
6558 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6559 *** to be unable to reliably create shared libraries on AIX.
6560 *** Therefore, libtool is disabling shared libraries support.  If you
6561 *** really care for shared libraries, you may want to modify your PATH
6562 *** so that a non-GNU linker is found, and then restart.
6563
6564 EOF
6565       fi
6566       ;;
6567
6568     amigaos*)
6569       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)'
6570       hardcode_libdir_flag_spec='-L$libdir'
6571       hardcode_minus_L=yes
6572
6573       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6574       # that the semantics of dynamic libraries on AmigaOS, at least up
6575       # to version 4, is to share data among multiple programs linked
6576       # with the same dynamic library.  Since this doesn't match the
6577       # behavior of shared libraries on other platforms, we can't use
6578       # them.
6579       ld_shlibs=no
6580       ;;
6581
6582     beos*)
6583       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6584         allow_undefined_flag=unsupported
6585         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6586         # support --undefined.  This deserves some investigation.  FIXME
6587         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6588       else
6589         ld_shlibs=no
6590       fi
6591       ;;
6592
6593     cygwin* | mingw* | pw32*)
6594       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6595       # as there is no search path for DLLs.
6596       hardcode_libdir_flag_spec='-L$libdir'
6597       allow_undefined_flag=unsupported
6598       always_export_symbols=no
6599       enable_shared_with_static_runtimes=yes
6600       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6601
6602       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6603         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6604         # If the export-symbols file already is a .def file (1st line
6605         # is EXPORTS), use it as is; otherwise, prepend...
6606         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6607           cp $export_symbols $output_objdir/$soname.def;
6608         else
6609           echo EXPORTS > $output_objdir/$soname.def;
6610           cat $export_symbols >> $output_objdir/$soname.def;
6611         fi~
6612         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6613       else
6614         ld_shlibs=no
6615       fi
6616       ;;
6617
6618     netbsd*)
6619       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6620         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6621         wlarc=
6622       else
6623         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6624         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6625       fi
6626       ;;
6627
6628     solaris* | sysv5*)
6629       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6630         ld_shlibs=no
6631         cat <<EOF 1>&2
6632
6633 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6634 *** create shared libraries on Solaris systems.  Therefore, libtool
6635 *** is disabling shared libraries support.  We urge you to upgrade GNU
6636 *** binutils to release 2.9.1 or newer.  Another option is to modify
6637 *** your PATH or compiler configuration so that the native linker is
6638 *** used, and then restart.
6639
6640 EOF
6641       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6642         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6643         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6644       else
6645         ld_shlibs=no
6646       fi
6647       ;;
6648
6649     sunos4*)
6650       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6651       wlarc=
6652       hardcode_direct=yes
6653       hardcode_shlibpath_var=no
6654       ;;
6655
6656     *)
6657       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6658         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6659         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6660       else
6661         ld_shlibs=no
6662       fi
6663       ;;
6664     esac
6665
6666     if test "$ld_shlibs" = yes; then
6667       runpath_var=LD_RUN_PATH
6668       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6669       export_dynamic_flag_spec='${wl}--export-dynamic'
6670       # ancient GNU ld didn't support --whole-archive et. al.
6671       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6672         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6673       else
6674         whole_archive_flag_spec=
6675       fi
6676     fi
6677   else
6678     # PORTME fill in a description of your system's linker (not GNU ld)
6679     case $host_os in
6680     aix3*)
6681       allow_undefined_flag=unsupported
6682       always_export_symbols=yes
6683       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'
6684       # Note: this linker hardcodes the directories in LIBPATH if there
6685       # are no directories specified by -L.
6686       hardcode_minus_L=yes
6687       if test "$GCC" = yes && test -z "$link_static_flag"; then
6688         # Neither direct hardcoding nor static linking is supported with a
6689         # broken collect2.
6690         hardcode_direct=unsupported
6691       fi
6692       ;;
6693
6694     aix4* | aix5*)
6695       if test "$host_cpu" = ia64; then
6696         # On IA64, the linker does run time linking by default, so we don't
6697         # have to do anything special.
6698         aix_use_runtimelinking=no
6699         exp_sym_flag='-Bexport'
6700         no_entry_flag=""
6701       else
6702         # If we're using GNU nm, then we don't want the "-C" option.
6703         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6704         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6705           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'
6706         else
6707           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'
6708         fi
6709         aix_use_runtimelinking=no
6710
6711         # Test if we are trying to use run time linking or normal
6712         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6713         # need to do runtime linking.
6714         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6715           for ld_flag in $LDFLAGS; do
6716           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6717             aix_use_runtimelinking=yes
6718             break
6719           fi
6720           done
6721         esac
6722
6723         exp_sym_flag='-bexport'
6724         no_entry_flag='-bnoentry'
6725       fi
6726
6727       # When large executables or shared objects are built, AIX ld can
6728       # have problems creating the table of contents.  If linking a library
6729       # or program results in "error TOC overflow" add -mminimal-toc to
6730       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6731       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6732
6733       archive_cmds=''
6734       hardcode_direct=yes
6735       hardcode_libdir_separator=':'
6736       link_all_deplibs=yes
6737
6738       if test "$GCC" = yes; then
6739         case $host_os in aix4.012|aix4.012.*)
6740         # We only want to do this on AIX 4.2 and lower, the check
6741         # below for broken collect2 doesn't work under 4.3+
6742           collect2name=`${CC} -print-prog-name=collect2`
6743           if test -f "$collect2name" && \
6744            strings "$collect2name" | grep resolve_lib_name >/dev/null
6745           then
6746           # We have reworked collect2
6747           hardcode_direct=yes
6748           else
6749           # We have old collect2
6750           hardcode_direct=unsupported
6751           # It fails to find uninstalled libraries when the uninstalled
6752           # path is not listed in the libpath.  Setting hardcode_minus_L
6753           # to unsupported forces relinking
6754           hardcode_minus_L=yes
6755           hardcode_libdir_flag_spec='-L$libdir'
6756           hardcode_libdir_separator=
6757           fi
6758         esac
6759         shared_flag='-shared'
6760       else
6761         # not using gcc
6762         if test "$host_cpu" = ia64; then
6763         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6764         # chokes on -Wl,-G. The following line is correct:
6765           shared_flag='-G'
6766         else
6767         if test "$aix_use_runtimelinking" = yes; then
6768             shared_flag='${wl}-G'
6769           else
6770             shared_flag='${wl}-bM:SRE'
6771         fi
6772         fi
6773       fi
6774
6775       # It seems that -bexpall does not export symbols beginning with
6776       # underscore (_), so it is better to generate a list of symbols to export.
6777       always_export_symbols=yes
6778       if test "$aix_use_runtimelinking" = yes; then
6779         # Warning - without using the other runtime loading flags (-brtl),
6780         # -berok will link without error, but may produce a broken library.
6781         allow_undefined_flag='-berok'
6782        # Determine the default libpath from the value encoded in an empty executable.
6783        cat >conftest.$ac_ext <<_ACEOF
6784 /* confdefs.h.  */
6785 _ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h.  */
6789
6790 int
6791 main ()
6792 {
6793
6794   ;
6795   return 0;
6796 }
6797 _ACEOF
6798 rm -f conftest.$ac_objext conftest$ac_exeext
6799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6800   (eval $ac_link) 2>conftest.er1
6801   ac_status=$?
6802   grep -v '^ *+' conftest.er1 >conftest.err
6803   rm -f conftest.er1
6804   cat conftest.err >&5
6805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806   (exit $ac_status); } &&
6807          { ac_try='test -z "$ac_c_werror_flag"
6808                          || test ! -s conftest.err'
6809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810   (eval $ac_try) 2>&5
6811   ac_status=$?
6812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813   (exit $ac_status); }; } &&
6814          { ac_try='test -s conftest$ac_exeext'
6815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816   (eval $ac_try) 2>&5
6817   ac_status=$?
6818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819   (exit $ac_status); }; }; then
6820
6821 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6822 }'`
6823 # Check for a 64-bit object if we didn't find anything.
6824 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; }
6825 }'`; fi
6826 else
6827   echo "$as_me: failed program was:" >&5
6828 sed 's/^/| /' conftest.$ac_ext >&5
6829
6830 fi
6831 rm -f conftest.err conftest.$ac_objext \
6832       conftest$ac_exeext conftest.$ac_ext
6833 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6834
6835        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6836         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"
6837        else
6838         if test "$host_cpu" = ia64; then
6839           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6840           allow_undefined_flag="-z nodefs"
6841           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"
6842         else
6843          # Determine the default libpath from the value encoded in an empty executable.
6844          cat >conftest.$ac_ext <<_ACEOF
6845 /* confdefs.h.  */
6846 _ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h.  */
6850
6851 int
6852 main ()
6853 {
6854
6855   ;
6856   return 0;
6857 }
6858 _ACEOF
6859 rm -f conftest.$ac_objext conftest$ac_exeext
6860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6861   (eval $ac_link) 2>conftest.er1
6862   ac_status=$?
6863   grep -v '^ *+' conftest.er1 >conftest.err
6864   rm -f conftest.er1
6865   cat conftest.err >&5
6866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867   (exit $ac_status); } &&
6868          { ac_try='test -z "$ac_c_werror_flag"
6869                          || test ! -s conftest.err'
6870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871   (eval $ac_try) 2>&5
6872   ac_status=$?
6873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874   (exit $ac_status); }; } &&
6875          { ac_try='test -s conftest$ac_exeext'
6876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877   (eval $ac_try) 2>&5
6878   ac_status=$?
6879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880   (exit $ac_status); }; }; then
6881
6882 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6883 }'`
6884 # Check for a 64-bit object if we didn't find anything.
6885 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; }
6886 }'`; fi
6887 else
6888   echo "$as_me: failed program was:" >&5
6889 sed 's/^/| /' conftest.$ac_ext >&5
6890
6891 fi
6892 rm -f conftest.err conftest.$ac_objext \
6893       conftest$ac_exeext conftest.$ac_ext
6894 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6895
6896          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6897           # Warning - without using the other run time loading flags,
6898           # -berok will link without error, but may produce a broken library.
6899           no_undefined_flag=' ${wl}-bernotok'
6900           allow_undefined_flag=' ${wl}-berok'
6901           # -bexpall does not export symbols beginning with underscore (_)
6902           always_export_symbols=yes
6903           # Exported symbols can be pulled into shared objects from archives
6904           whole_archive_flag_spec=' '
6905           archive_cmds_need_lc=yes
6906           # This is similar to how AIX traditionally builds it's shared libraries.
6907           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'
6908         fi
6909       fi
6910       ;;
6911
6912     amigaos*)
6913       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)'
6914       hardcode_libdir_flag_spec='-L$libdir'
6915       hardcode_minus_L=yes
6916       # see comment about different semantics on the GNU ld section
6917       ld_shlibs=no
6918       ;;
6919
6920     bsdi4*)
6921       export_dynamic_flag_spec=-rdynamic
6922       ;;
6923
6924     cygwin* | mingw* | pw32*)
6925       # When not using gcc, we currently assume that we are using
6926       # Microsoft Visual C++.
6927       # hardcode_libdir_flag_spec is actually meaningless, as there is
6928       # no search path for DLLs.
6929       hardcode_libdir_flag_spec=' '
6930       allow_undefined_flag=unsupported
6931       # Tell ltmain to make .lib files, not .a files.
6932       libext=lib
6933       # Tell ltmain to make .dll files, not .so files.
6934       shrext=".dll"
6935       # FIXME: Setting linknames here is a bad hack.
6936       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6937       # The linker will automatically build a .lib file if we build a DLL.
6938       old_archive_From_new_cmds='true'
6939       # FIXME: Should let the user specify the lib program.
6940       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6941       fix_srcfile_path='`cygpath -w "$srcfile"`'
6942       enable_shared_with_static_runtimes=yes
6943       ;;
6944
6945     darwin* | rhapsody*)
6946     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6947       archive_cmds_need_lc=no
6948       case "$host_os" in
6949       rhapsody* | darwin1.[012])
6950         allow_undefined_flag='-undefined suppress'
6951         ;;
6952       *) # Darwin 1.3 on
6953         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6954         ;;
6955       esac
6956       # FIXME: Relying on posixy $() will cause problems for
6957       #        cross-compilation, but unfortunately the echo tests do not
6958       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6959       #        `"' quotes if we put them in here... so don't!
6960         lt_int_apple_cc_single_mod=no
6961         output_verbose_link_cmd='echo'
6962         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6963           lt_int_apple_cc_single_mod=yes
6964         fi
6965         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6966           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6967         else
6968         archive_cmds='$CC -r ${wl}-bind_at_load -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'
6969       fi
6970       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6971       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6972         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6973           archive_expsym_cmds='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}'
6974         else
6975           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
6976         fi
6977           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6978       hardcode_direct=no
6979       hardcode_automatic=yes
6980       hardcode_shlibpath_var=unsupported
6981       whole_archive_flag_spec='-all_load $convenience'
6982       link_all_deplibs=yes
6983     fi
6984       ;;
6985
6986     dgux*)
6987       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6988       hardcode_libdir_flag_spec='-L$libdir'
6989       hardcode_shlibpath_var=no
6990       ;;
6991
6992     freebsd1*)
6993       ld_shlibs=no
6994       ;;
6995
6996     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6997     # support.  Future versions do this automatically, but an explicit c++rt0.o
6998     # does not break anything, and helps significantly (at the cost of a little
6999     # extra space).
7000     freebsd2.2*)
7001       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7002       hardcode_libdir_flag_spec='-R$libdir'
7003       hardcode_direct=yes
7004       hardcode_shlibpath_var=no
7005       ;;
7006
7007     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7008     freebsd2*)
7009       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7010       hardcode_direct=yes
7011       hardcode_minus_L=yes
7012       hardcode_shlibpath_var=no
7013       ;;
7014
7015     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7016     freebsd*)
7017       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7018       hardcode_libdir_flag_spec='-R$libdir'
7019       hardcode_direct=yes
7020       hardcode_shlibpath_var=no
7021       ;;
7022
7023     hpux9*)
7024       if test "$GCC" = yes; then
7025         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'
7026       else
7027         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'
7028       fi
7029       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7030       hardcode_libdir_separator=:
7031       hardcode_direct=yes
7032
7033       # hardcode_minus_L: Not really in the search PATH,
7034       # but as the default location of the library.
7035       hardcode_minus_L=yes
7036       export_dynamic_flag_spec='${wl}-E'
7037       ;;
7038
7039     hpux10* | hpux11*)
7040       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7041         case "$host_cpu" in
7042         hppa*64*|ia64*)
7043           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7044           ;;
7045         *)
7046           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7047           ;;
7048         esac
7049       else
7050         case "$host_cpu" in
7051         hppa*64*|ia64*)
7052           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7053           ;;
7054         *)
7055           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7056           ;;
7057         esac
7058       fi
7059       if test "$with_gnu_ld" = no; then
7060         case "$host_cpu" in
7061         hppa*64*)
7062           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7063           hardcode_libdir_flag_spec_ld='+b $libdir'
7064           hardcode_libdir_separator=:
7065           hardcode_direct=no
7066           hardcode_shlibpath_var=no
7067           ;;
7068         ia64*)
7069           hardcode_libdir_flag_spec='-L$libdir'
7070           hardcode_direct=no
7071           hardcode_shlibpath_var=no
7072
7073           # hardcode_minus_L: Not really in the search PATH,
7074           # but as the default location of the library.
7075           hardcode_minus_L=yes
7076           ;;
7077         *)
7078           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7079           hardcode_libdir_separator=:
7080           hardcode_direct=yes
7081           export_dynamic_flag_spec='${wl}-E'
7082
7083           # hardcode_minus_L: Not really in the search PATH,
7084           # but as the default location of the library.
7085           hardcode_minus_L=yes
7086           ;;
7087         esac
7088       fi
7089       ;;
7090
7091     irix5* | irix6* | nonstopux*)
7092       if test "$GCC" = yes; then
7093         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'
7094       else
7095         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'
7096         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7097       fi
7098       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7099       hardcode_libdir_separator=:
7100       link_all_deplibs=yes
7101       ;;
7102
7103     netbsd*)
7104       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7105         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7106       else
7107         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7108       fi
7109       hardcode_libdir_flag_spec='-R$libdir'
7110       hardcode_direct=yes
7111       hardcode_shlibpath_var=no
7112       ;;
7113
7114     newsos6)
7115       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7116       hardcode_direct=yes
7117       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7118       hardcode_libdir_separator=:
7119       hardcode_shlibpath_var=no
7120       ;;
7121
7122     openbsd*)
7123       hardcode_direct=yes
7124       hardcode_shlibpath_var=no
7125       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7126         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7127         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7128         export_dynamic_flag_spec='${wl}-E'
7129       else
7130        case $host_os in
7131          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7132            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7133            hardcode_libdir_flag_spec='-R$libdir'
7134            ;;
7135          *)
7136            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7137            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7138            ;;
7139        esac
7140       fi
7141       ;;
7142
7143     os2*)
7144       hardcode_libdir_flag_spec='-L$libdir'
7145       hardcode_minus_L=yes
7146       allow_undefined_flag=unsupported
7147       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'
7148       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7149       ;;
7150
7151     osf3*)
7152       if test "$GCC" = yes; then
7153         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7154         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'
7155       else
7156         allow_undefined_flag=' -expect_unresolved \*'
7157         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'
7158       fi
7159       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7160       hardcode_libdir_separator=:
7161       ;;
7162
7163     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7164       if test "$GCC" = yes; then
7165         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7166         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'
7167         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7168       else
7169         allow_undefined_flag=' -expect_unresolved \*'
7170         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'
7171         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7172         $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'
7173
7174         # Both c and cxx compiler support -rpath directly
7175         hardcode_libdir_flag_spec='-rpath $libdir'
7176       fi
7177       hardcode_libdir_separator=:
7178       ;;
7179
7180     sco3.2v5*)
7181       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7182       hardcode_shlibpath_var=no
7183       export_dynamic_flag_spec='${wl}-Bexport'
7184       runpath_var=LD_RUN_PATH
7185       hardcode_runpath_var=yes
7186       ;;
7187
7188     solaris*)
7189       no_undefined_flag=' -z text'
7190       if test "$GCC" = yes; then
7191         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7192         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7193           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7194       else
7195         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7196         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7197         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7198       fi
7199       hardcode_libdir_flag_spec='-R$libdir'
7200       hardcode_shlibpath_var=no
7201       case $host_os in
7202       solaris2.[0-5] | solaris2.[0-5].*) ;;
7203       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7204         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7205       esac
7206       link_all_deplibs=yes
7207       ;;
7208
7209     sunos4*)
7210       if test "x$host_vendor" = xsequent; then
7211         # Use $CC to link under sequent, because it throws in some extra .o
7212         # files that make .init and .fini sections work.
7213         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7214       else
7215         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7216       fi
7217       hardcode_libdir_flag_spec='-L$libdir'
7218       hardcode_direct=yes
7219       hardcode_minus_L=yes
7220       hardcode_shlibpath_var=no
7221       ;;
7222
7223     sysv4)
7224       case $host_vendor in
7225         sni)
7226           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7227           hardcode_direct=yes # is this really true???
7228         ;;
7229         siemens)
7230           ## LD is ld it makes a PLAMLIB
7231           ## CC just makes a GrossModule.
7232           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7233           reload_cmds='$CC -r -o $output$reload_objs'
7234           hardcode_direct=no
7235         ;;
7236         motorola)
7237           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7238           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7239         ;;
7240       esac
7241       runpath_var='LD_RUN_PATH'
7242       hardcode_shlibpath_var=no
7243       ;;
7244
7245     sysv4.3*)
7246       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7247       hardcode_shlibpath_var=no
7248       export_dynamic_flag_spec='-Bexport'
7249       ;;
7250
7251     sysv4*MP*)
7252       if test -d /usr/nec; then
7253         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7254         hardcode_shlibpath_var=no
7255         runpath_var=LD_RUN_PATH
7256         hardcode_runpath_var=yes
7257         ld_shlibs=yes
7258       fi
7259       ;;
7260
7261     sysv4.2uw2*)
7262       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7263       hardcode_direct=yes
7264       hardcode_minus_L=no
7265       hardcode_shlibpath_var=no
7266       hardcode_runpath_var=yes
7267       runpath_var=LD_RUN_PATH
7268       ;;
7269
7270    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7271       no_undefined_flag='${wl}-z ${wl}text'
7272       if test "$GCC" = yes; then
7273         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7274       else
7275         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7276       fi
7277       runpath_var='LD_RUN_PATH'
7278       hardcode_shlibpath_var=no
7279       ;;
7280
7281     sysv5*)
7282       no_undefined_flag=' -z text'
7283       # $CC -shared without GNU ld will not create a library from C++
7284       # object files and a static libstdc++, better avoid it by now
7285       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7286       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7287                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7288       hardcode_libdir_flag_spec=
7289       hardcode_shlibpath_var=no
7290       runpath_var='LD_RUN_PATH'
7291       ;;
7292
7293     uts4*)
7294       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7295       hardcode_libdir_flag_spec='-L$libdir'
7296       hardcode_shlibpath_var=no
7297       ;;
7298
7299     *)
7300       ld_shlibs=no
7301       ;;
7302     esac
7303   fi
7304
7305 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7306 echo "${ECHO_T}$ld_shlibs" >&6
7307 test "$ld_shlibs" = no && can_build_shared=no
7308
7309 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7310 if test "$GCC" = yes; then
7311   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7312 fi
7313
7314 #
7315 # Do we need to explicitly link libc?
7316 #
7317 case "x$archive_cmds_need_lc" in
7318 x|xyes)
7319   # Assume -lc should be added
7320   archive_cmds_need_lc=yes
7321
7322   if test "$enable_shared" = yes && test "$GCC" = yes; then
7323     case $archive_cmds in
7324     *'~'*)
7325       # FIXME: we may have to deal with multi-command sequences.
7326       ;;
7327     '$CC '*)
7328       # Test whether the compiler implicitly links with -lc since on some
7329       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7330       # to ld, don't add -lc before -lgcc.
7331       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7332 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7333       $rm conftest*
7334       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7335
7336       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7337   (eval $ac_compile) 2>&5
7338   ac_status=$?
7339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340   (exit $ac_status); } 2>conftest.err; then
7341         soname=conftest
7342         lib=conftest
7343         libobjs=conftest.$ac_objext
7344         deplibs=
7345         wl=$lt_prog_compiler_wl
7346         compiler_flags=-v
7347         linker_flags=-v
7348         verstring=
7349         output_objdir=.
7350         libname=conftest
7351         lt_save_allow_undefined_flag=$allow_undefined_flag
7352         allow_undefined_flag=
7353         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7354   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7355   ac_status=$?
7356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357   (exit $ac_status); }
7358         then
7359           archive_cmds_need_lc=no
7360         else
7361           archive_cmds_need_lc=yes
7362         fi
7363         allow_undefined_flag=$lt_save_allow_undefined_flag
7364       else
7365         cat conftest.err 1>&5
7366       fi
7367       $rm conftest*
7368       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7369 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7370       ;;
7371     esac
7372   fi
7373   ;;
7374 esac
7375
7376 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7377 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7378 hardcode_action=
7379 if test -n "$hardcode_libdir_flag_spec" || \
7380    test -n "$runpath_var " || \
7381    test "X$hardcode_automatic"="Xyes" ; then
7382
7383   # We can hardcode non-existant directories.
7384   if test "$hardcode_direct" != no &&
7385      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7386      # have to relink, otherwise we might link with an installed library
7387      # when we should be linking with a yet-to-be-installed one
7388      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7389      test "$hardcode_minus_L" != no; then
7390     # Linking always hardcodes the temporary library directory.
7391     hardcode_action=relink
7392   else
7393     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7394     hardcode_action=immediate
7395   fi
7396 else
7397   # We cannot hardcode anything, or else we can only hardcode existing
7398   # directories.
7399   hardcode_action=unsupported
7400 fi
7401 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7402 echo "${ECHO_T}$hardcode_action" >&6
7403
7404 if test "$hardcode_action" = relink; then
7405   # Fast installation is not supported
7406   enable_fast_install=no
7407 elif test "$shlibpath_overrides_runpath" = yes ||
7408      test "$enable_shared" = no; then
7409   # Fast installation is not necessary
7410   enable_fast_install=needless
7411 fi
7412
7413 striplib=
7414 old_striplib=
7415 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7416 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7417 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7418   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7419   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7420   echo "$as_me:$LINENO: result: yes" >&5
7421 echo "${ECHO_T}yes" >&6
7422 else
7423 # FIXME - insert some real tests, host_os isn't really good enough
7424   case $host_os in
7425    darwin*)
7426        if test -n "$STRIP" ; then
7427          striplib="$STRIP -x"
7428          echo "$as_me:$LINENO: result: yes" >&5
7429 echo "${ECHO_T}yes" >&6
7430        else
7431   echo "$as_me:$LINENO: result: no" >&5
7432 echo "${ECHO_T}no" >&6
7433 fi
7434        ;;
7435    *)
7436   echo "$as_me:$LINENO: result: no" >&5
7437 echo "${ECHO_T}no" >&6
7438     ;;
7439   esac
7440 fi
7441
7442 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7443 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7444 library_names_spec=
7445 libname_spec='lib$name'
7446 soname_spec=
7447 shrext=".so"
7448 postinstall_cmds=
7449 postuninstall_cmds=
7450 finish_cmds=
7451 finish_eval=
7452 shlibpath_var=
7453 shlibpath_overrides_runpath=unknown
7454 version_type=none
7455 dynamic_linker="$host_os ld.so"
7456 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7457 if test "$GCC" = yes; then
7458   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7459   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7460     # if the path contains ";" then we assume it to be the separator
7461     # otherwise default to the standard path separator (i.e. ":") - it is
7462     # assumed that no part of a normal pathname contains ";" but that should
7463     # okay in the real world where ";" in dirpaths is itself problematic.
7464     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7465   else
7466     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7467   fi
7468 else
7469   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7470 fi
7471 need_lib_prefix=unknown
7472 hardcode_into_libs=no
7473
7474 # when you set need_version to no, make sure it does not cause -set_version
7475 # flags to be left without arguments
7476 need_version=unknown
7477
7478 case $host_os in
7479 aix3*)
7480   version_type=linux
7481   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7482   shlibpath_var=LIBPATH
7483
7484   # AIX 3 has no versioning support, so we append a major version to the name.
7485   soname_spec='${libname}${release}${shared_ext}$major'
7486   ;;
7487
7488 aix4* | aix5*)
7489   version_type=linux
7490   need_lib_prefix=no
7491   need_version=no
7492   hardcode_into_libs=yes
7493   if test "$host_cpu" = ia64; then
7494     # AIX 5 supports IA64
7495     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7496     shlibpath_var=LD_LIBRARY_PATH
7497   else
7498     # With GCC up to 2.95.x, collect2 would create an import file
7499     # for dependence libraries.  The import file would start with
7500     # the line `#! .'.  This would cause the generated library to
7501     # depend on `.', always an invalid library.  This was fixed in
7502     # development snapshots of GCC prior to 3.0.
7503     case $host_os in
7504       aix4 | aix4.[01] | aix4.[01].*)
7505       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7506            echo ' yes '
7507            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7508         :
7509       else
7510         can_build_shared=no
7511       fi
7512       ;;
7513     esac
7514     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7515     # soname into executable. Probably we can add versioning support to
7516     # collect2, so additional links can be useful in future.
7517     if test "$aix_use_runtimelinking" = yes; then
7518       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7519       # instead of lib<name>.a to let people know that these are not
7520       # typical AIX shared libraries.
7521       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7522     else
7523       # We preserve .a as extension for shared libraries through AIX4.2
7524       # and later when we are not doing run time linking.
7525       library_names_spec='${libname}${release}.a $libname.a'
7526       soname_spec='${libname}${release}${shared_ext}$major'
7527     fi
7528     shlibpath_var=LIBPATH
7529   fi
7530   ;;
7531
7532 amigaos*)
7533   library_names_spec='$libname.ixlibrary $libname.a'
7534   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7535   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'
7536   ;;
7537
7538 beos*)
7539   library_names_spec='${libname}${shared_ext}'
7540   dynamic_linker="$host_os ld.so"
7541   shlibpath_var=LIBRARY_PATH
7542   ;;
7543
7544 bsdi4*)
7545   version_type=linux
7546   need_version=no
7547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7548   soname_spec='${libname}${release}${shared_ext}$major'
7549   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7550   shlibpath_var=LD_LIBRARY_PATH
7551   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7552   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7553   # the default ld.so.conf also contains /usr/contrib/lib and
7554   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7555   # libtool to hard-code these into programs
7556   ;;
7557
7558 cygwin* | mingw* | pw32*)
7559   version_type=windows
7560   shrext=".dll"
7561   need_version=no
7562   need_lib_prefix=no
7563
7564   case $GCC,$host_os in
7565   yes,cygwin* | yes,mingw* | yes,pw32*)
7566     library_names_spec='$libname.dll.a'
7567     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7568     postinstall_cmds='base_file=`basename \${file}`~
7569       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7570       dldir=$destdir/`dirname \$dlpath`~
7571       test -d \$dldir || mkdir -p \$dldir~
7572       $install_prog $dir/$dlname \$dldir/$dlname'
7573     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7574       dlpath=$dir/\$dldll~
7575        $rm \$dlpath'
7576     shlibpath_overrides_runpath=yes
7577
7578     case $host_os in
7579     cygwin*)
7580       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7581       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7582       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7583       ;;
7584     mingw*)
7585       # MinGW DLLs use traditional 'lib' prefix
7586       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7587       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7588       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7589         # It is most probably a Windows format PATH printed by
7590         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7591         # path with ; separators, and with drive letters. We can handle the
7592         # drive letters (cygwin fileutils understands them), so leave them,
7593         # especially as we might pass files found there to a mingw objdump,
7594         # which wouldn't understand a cygwinified path. Ahh.
7595         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7596       else
7597         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7598       fi
7599       ;;
7600     pw32*)
7601       # pw32 DLLs use 'pw' prefix rather than 'lib'
7602       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7603       ;;
7604     esac
7605     ;;
7606
7607   *)
7608     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7609     ;;
7610   esac
7611   dynamic_linker='Win32 ld.exe'
7612   # FIXME: first we should search . and the directory the executable is in
7613   shlibpath_var=PATH
7614   ;;
7615
7616 darwin* | rhapsody*)
7617   dynamic_linker="$host_os dyld"
7618   version_type=darwin
7619   need_lib_prefix=no
7620   need_version=no
7621   # FIXME: Relying on posixy $() will cause problems for
7622   #        cross-compilation, but unfortunately the echo tests do not
7623   #        yet detect zsh echo's removal of \ escapes.
7624   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7625   soname_spec='${libname}${release}${major}$shared_ext'
7626   shlibpath_overrides_runpath=yes
7627   shlibpath_var=DYLD_LIBRARY_PATH
7628   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7629   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7630   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7631   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"`
7632   fi
7633   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7634   ;;
7635
7636 dgux*)
7637   version_type=linux
7638   need_lib_prefix=no
7639   need_version=no
7640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7641   soname_spec='${libname}${release}${shared_ext}$major'
7642   shlibpath_var=LD_LIBRARY_PATH
7643   ;;
7644
7645 freebsd1*)
7646   dynamic_linker=no
7647   ;;
7648
7649 freebsd*)
7650   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7651   version_type=freebsd-$objformat
7652   case $version_type in
7653     freebsd-elf*)
7654       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7655       need_version=no
7656       need_lib_prefix=no
7657       ;;
7658     freebsd-*)
7659       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7660       need_version=yes
7661       ;;
7662   esac
7663   shlibpath_var=LD_LIBRARY_PATH
7664   case $host_os in
7665   freebsd2*)
7666     shlibpath_overrides_runpath=yes
7667     ;;
7668   freebsd3.01* | freebsdelf3.01*)
7669     shlibpath_overrides_runpath=yes
7670     hardcode_into_libs=yes
7671     ;;
7672   *) # from 3.2 on
7673     shlibpath_overrides_runpath=no
7674     hardcode_into_libs=yes
7675     ;;
7676   esac
7677   ;;
7678
7679 gnu*)
7680   version_type=linux
7681   need_lib_prefix=no
7682   need_version=no
7683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7684   soname_spec='${libname}${release}${shared_ext}$major'
7685   shlibpath_var=LD_LIBRARY_PATH
7686   hardcode_into_libs=yes
7687   ;;
7688
7689 hpux9* | hpux10* | hpux11*)
7690   # Give a soname corresponding to the major version so that dld.sl refuses to
7691   # link against other versions.
7692   version_type=sunos
7693   need_lib_prefix=no
7694   need_version=no
7695   case "$host_cpu" in
7696   ia64*)
7697     shrext='.so'
7698     hardcode_into_libs=yes
7699     dynamic_linker="$host_os dld.so"
7700     shlibpath_var=LD_LIBRARY_PATH
7701     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7702     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7703     soname_spec='${libname}${release}${shared_ext}$major'
7704     if test "X$HPUX_IA64_MODE" = X32; then
7705       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7706     else
7707       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7708     fi
7709     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7710     ;;
7711    hppa*64*)
7712      shrext='.sl'
7713      hardcode_into_libs=yes
7714      dynamic_linker="$host_os dld.sl"
7715      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7716      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7717      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7718      soname_spec='${libname}${release}${shared_ext}$major'
7719      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7720      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7721      ;;
7722    *)
7723     shrext='.sl'
7724     dynamic_linker="$host_os dld.sl"
7725     shlibpath_var=SHLIB_PATH
7726     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7727     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7728     soname_spec='${libname}${release}${shared_ext}$major'
7729     ;;
7730   esac
7731   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7732   postinstall_cmds='chmod 555 $lib'
7733   ;;
7734
7735 irix5* | irix6* | nonstopux*)
7736   case $host_os in
7737     nonstopux*) version_type=nonstopux ;;
7738     *)
7739         if test "$lt_cv_prog_gnu_ld" = yes; then
7740                 version_type=linux
7741         else
7742                 version_type=irix
7743         fi ;;
7744   esac
7745   need_lib_prefix=no
7746   need_version=no
7747   soname_spec='${libname}${release}${shared_ext}$major'
7748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7749   case $host_os in
7750   irix5* | nonstopux*)
7751     libsuff= shlibsuff=
7752     ;;
7753   *)
7754     case $LD in # libtool.m4 will add one of these switches to LD
7755     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7756       libsuff= shlibsuff= libmagic=32-bit;;
7757     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7758       libsuff=32 shlibsuff=N32 libmagic=N32;;
7759     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7760       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7761     *) libsuff= shlibsuff= libmagic=never-match;;
7762     esac
7763     ;;
7764   esac
7765   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7766   shlibpath_overrides_runpath=no
7767   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7768   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7769   hardcode_into_libs=yes
7770   ;;
7771
7772 # No shared lib support for Linux oldld, aout, or coff.
7773 linux*oldld* | linux*aout* | linux*coff*)
7774   dynamic_linker=no
7775   ;;
7776
7777 # This must be Linux ELF.
7778 linux*)
7779   version_type=linux
7780   need_lib_prefix=no
7781   need_version=no
7782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7783   soname_spec='${libname}${release}${shared_ext}$major'
7784   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7785   shlibpath_var=LD_LIBRARY_PATH
7786   shlibpath_overrides_runpath=no
7787   # This implies no fast_install, which is unacceptable.
7788   # Some rework will be needed to allow for fast_install
7789   # before this can be enabled.
7790   hardcode_into_libs=yes
7791
7792   # We used to test for /lib/ld.so.1 and disable shared libraries on
7793   # powerpc, because MkLinux only supported shared libraries with the
7794   # GNU dynamic linker.  Since this was broken with cross compilers,
7795   # most powerpc-linux boxes support dynamic linking these days and
7796   # people can always --disable-shared, the test was removed, and we
7797   # assume the GNU/Linux dynamic linker is in use.
7798   dynamic_linker='GNU/Linux ld.so'
7799   ;;
7800
7801 netbsd*)
7802   version_type=sunos
7803   need_lib_prefix=no
7804   need_version=no
7805   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7806     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7807     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7808     dynamic_linker='NetBSD (a.out) ld.so'
7809   else
7810     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7811     soname_spec='${libname}${release}${shared_ext}$major'
7812     dynamic_linker='NetBSD ld.elf_so'
7813   fi
7814   shlibpath_var=LD_LIBRARY_PATH
7815   shlibpath_overrides_runpath=yes
7816   hardcode_into_libs=yes
7817   ;;
7818
7819 newsos6)
7820   version_type=linux
7821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7822   shlibpath_var=LD_LIBRARY_PATH
7823   shlibpath_overrides_runpath=yes
7824   ;;
7825
7826 nto-qnx)
7827   version_type=linux
7828   need_lib_prefix=no
7829   need_version=no
7830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7831   soname_spec='${libname}${release}${shared_ext}$major'
7832   shlibpath_var=LD_LIBRARY_PATH
7833   shlibpath_overrides_runpath=yes
7834   ;;
7835
7836 openbsd*)
7837   version_type=sunos
7838   need_lib_prefix=no
7839   need_version=no
7840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7841   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7842   shlibpath_var=LD_LIBRARY_PATH
7843   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7844     case $host_os in
7845       openbsd2.[89] | openbsd2.[89].*)
7846         shlibpath_overrides_runpath=no
7847         ;;
7848       *)
7849         shlibpath_overrides_runpath=yes
7850         ;;
7851       esac
7852   else
7853     shlibpath_overrides_runpath=yes
7854   fi
7855   ;;
7856
7857 os2*)
7858   libname_spec='$name'
7859   shrext=".dll"
7860   need_lib_prefix=no
7861   library_names_spec='$libname${shared_ext} $libname.a'
7862   dynamic_linker='OS/2 ld.exe'
7863   shlibpath_var=LIBPATH
7864   ;;
7865
7866 osf3* | osf4* | osf5*)
7867   version_type=osf
7868   need_lib_prefix=no
7869   need_version=no
7870   soname_spec='${libname}${release}${shared_ext}$major'
7871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7872   shlibpath_var=LD_LIBRARY_PATH
7873   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7874   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7875   ;;
7876
7877 sco3.2v5*)
7878   version_type=osf
7879   soname_spec='${libname}${release}${shared_ext}$major'
7880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7881   shlibpath_var=LD_LIBRARY_PATH
7882   ;;
7883
7884 solaris*)
7885   version_type=linux
7886   need_lib_prefix=no
7887   need_version=no
7888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7889   soname_spec='${libname}${release}${shared_ext}$major'
7890   shlibpath_var=LD_LIBRARY_PATH
7891   shlibpath_overrides_runpath=yes
7892   hardcode_into_libs=yes
7893   # ldd complains unless libraries are executable
7894   postinstall_cmds='chmod +x $lib'
7895   ;;
7896
7897 sunos4*)
7898   version_type=sunos
7899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7900   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7901   shlibpath_var=LD_LIBRARY_PATH
7902   shlibpath_overrides_runpath=yes
7903   if test "$with_gnu_ld" = yes; then
7904     need_lib_prefix=no
7905   fi
7906   need_version=yes
7907   ;;
7908
7909 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7910   version_type=linux
7911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7912   soname_spec='${libname}${release}${shared_ext}$major'
7913   shlibpath_var=LD_LIBRARY_PATH
7914   case $host_vendor in
7915     sni)
7916       shlibpath_overrides_runpath=no
7917       need_lib_prefix=no
7918       export_dynamic_flag_spec='${wl}-Blargedynsym'
7919       runpath_var=LD_RUN_PATH
7920       ;;
7921     siemens)
7922       need_lib_prefix=no
7923       ;;
7924     motorola)
7925       need_lib_prefix=no
7926       need_version=no
7927       shlibpath_overrides_runpath=no
7928       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7929       ;;
7930   esac
7931   ;;
7932
7933 sysv4*MP*)
7934   if test -d /usr/nec ;then
7935     version_type=linux
7936     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7937     soname_spec='$libname${shared_ext}.$major'
7938     shlibpath_var=LD_LIBRARY_PATH
7939   fi
7940   ;;
7941
7942 uts4*)
7943   version_type=linux
7944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7945   soname_spec='${libname}${release}${shared_ext}$major'
7946   shlibpath_var=LD_LIBRARY_PATH
7947   ;;
7948
7949 *)
7950   dynamic_linker=no
7951   ;;
7952 esac
7953 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7954 echo "${ECHO_T}$dynamic_linker" >&6
7955 test "$dynamic_linker" = no && can_build_shared=no
7956
7957 if test "x$enable_dlopen" != xyes; then
7958   enable_dlopen=unknown
7959   enable_dlopen_self=unknown
7960   enable_dlopen_self_static=unknown
7961 else
7962   lt_cv_dlopen=no
7963   lt_cv_dlopen_libs=
7964
7965   case $host_os in
7966   beos*)
7967     lt_cv_dlopen="load_add_on"
7968     lt_cv_dlopen_libs=
7969     lt_cv_dlopen_self=yes
7970     ;;
7971
7972   mingw* | pw32*)
7973     lt_cv_dlopen="LoadLibrary"
7974     lt_cv_dlopen_libs=
7975    ;;
7976
7977   cygwin*)
7978     lt_cv_dlopen="dlopen"
7979     lt_cv_dlopen_libs=
7980    ;;
7981
7982   darwin*)
7983   # if libdl is installed we need to link against it
7984     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7985 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7986 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7987   echo $ECHO_N "(cached) $ECHO_C" >&6
7988 else
7989   ac_check_lib_save_LIBS=$LIBS
7990 LIBS="-ldl  $LIBS"
7991 cat >conftest.$ac_ext <<_ACEOF
7992 /* confdefs.h.  */
7993 _ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h.  */
7997
7998 /* Override any gcc2 internal prototype to avoid an error.  */
7999 #ifdef __cplusplus
8000 extern "C"
8001 #endif
8002 /* We use char because int might match the return type of a gcc2
8003    builtin and then its argument prototype would still apply.  */
8004 char dlopen ();
8005 int
8006 main ()
8007 {
8008 dlopen ();
8009   ;
8010   return 0;
8011 }
8012 _ACEOF
8013 rm -f conftest.$ac_objext conftest$ac_exeext
8014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8015   (eval $ac_link) 2>conftest.er1
8016   ac_status=$?
8017   grep -v '^ *+' conftest.er1 >conftest.err
8018   rm -f conftest.er1
8019   cat conftest.err >&5
8020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021   (exit $ac_status); } &&
8022          { ac_try='test -z "$ac_c_werror_flag"
8023                          || test ! -s conftest.err'
8024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8025   (eval $ac_try) 2>&5
8026   ac_status=$?
8027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028   (exit $ac_status); }; } &&
8029          { ac_try='test -s conftest$ac_exeext'
8030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031   (eval $ac_try) 2>&5
8032   ac_status=$?
8033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034   (exit $ac_status); }; }; then
8035   ac_cv_lib_dl_dlopen=yes
8036 else
8037   echo "$as_me: failed program was:" >&5
8038 sed 's/^/| /' conftest.$ac_ext >&5
8039
8040 ac_cv_lib_dl_dlopen=no
8041 fi
8042 rm -f conftest.err conftest.$ac_objext \
8043       conftest$ac_exeext conftest.$ac_ext
8044 LIBS=$ac_check_lib_save_LIBS
8045 fi
8046 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8047 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8048 if test $ac_cv_lib_dl_dlopen = yes; then
8049   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8050 else
8051
8052     lt_cv_dlopen="dyld"
8053     lt_cv_dlopen_libs=
8054     lt_cv_dlopen_self=yes
8055
8056 fi
8057
8058    ;;
8059
8060   *)
8061     echo "$as_me:$LINENO: checking for shl_load" >&5
8062 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8063 if test "${ac_cv_func_shl_load+set}" = set; then
8064   echo $ECHO_N "(cached) $ECHO_C" >&6
8065 else
8066   cat >conftest.$ac_ext <<_ACEOF
8067 /* confdefs.h.  */
8068 _ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h.  */
8072 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8073    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8074 #define shl_load innocuous_shl_load
8075
8076 /* System header to define __stub macros and hopefully few prototypes,
8077     which can conflict with char shl_load (); below.
8078     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8079     <limits.h> exists even on freestanding compilers.  */
8080
8081 #ifdef __STDC__
8082 # include <limits.h>
8083 #else
8084 # include <assert.h>
8085 #endif
8086
8087 #undef shl_load
8088
8089 /* Override any gcc2 internal prototype to avoid an error.  */
8090 #ifdef __cplusplus
8091 extern "C"
8092 {
8093 #endif
8094 /* We use char because int might match the return type of a gcc2
8095    builtin and then its argument prototype would still apply.  */
8096 char shl_load ();
8097 /* The GNU C library defines this for functions which it implements
8098     to always fail with ENOSYS.  Some functions are actually named
8099     something starting with __ and the normal name is an alias.  */
8100 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8101 choke me
8102 #else
8103 char (*f) () = shl_load;
8104 #endif
8105 #ifdef __cplusplus
8106 }
8107 #endif
8108
8109 int
8110 main ()
8111 {
8112 return f != shl_load;
8113   ;
8114   return 0;
8115 }
8116 _ACEOF
8117 rm -f conftest.$ac_objext conftest$ac_exeext
8118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8119   (eval $ac_link) 2>conftest.er1
8120   ac_status=$?
8121   grep -v '^ *+' conftest.er1 >conftest.err
8122   rm -f conftest.er1
8123   cat conftest.err >&5
8124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125   (exit $ac_status); } &&
8126          { ac_try='test -z "$ac_c_werror_flag"
8127                          || test ! -s conftest.err'
8128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129   (eval $ac_try) 2>&5
8130   ac_status=$?
8131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132   (exit $ac_status); }; } &&
8133          { ac_try='test -s conftest$ac_exeext'
8134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135   (eval $ac_try) 2>&5
8136   ac_status=$?
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); }; }; then
8139   ac_cv_func_shl_load=yes
8140 else
8141   echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8143
8144 ac_cv_func_shl_load=no
8145 fi
8146 rm -f conftest.err conftest.$ac_objext \
8147       conftest$ac_exeext conftest.$ac_ext
8148 fi
8149 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8150 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8151 if test $ac_cv_func_shl_load = yes; then
8152   lt_cv_dlopen="shl_load"
8153 else
8154   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8155 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8156 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8157   echo $ECHO_N "(cached) $ECHO_C" >&6
8158 else
8159   ac_check_lib_save_LIBS=$LIBS
8160 LIBS="-ldld  $LIBS"
8161 cat >conftest.$ac_ext <<_ACEOF
8162 /* confdefs.h.  */
8163 _ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h.  */
8167
8168 /* Override any gcc2 internal prototype to avoid an error.  */
8169 #ifdef __cplusplus
8170 extern "C"
8171 #endif
8172 /* We use char because int might match the return type of a gcc2
8173    builtin and then its argument prototype would still apply.  */
8174 char shl_load ();
8175 int
8176 main ()
8177 {
8178 shl_load ();
8179   ;
8180   return 0;
8181 }
8182 _ACEOF
8183 rm -f conftest.$ac_objext conftest$ac_exeext
8184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8185   (eval $ac_link) 2>conftest.er1
8186   ac_status=$?
8187   grep -v '^ *+' conftest.er1 >conftest.err
8188   rm -f conftest.er1
8189   cat conftest.err >&5
8190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191   (exit $ac_status); } &&
8192          { ac_try='test -z "$ac_c_werror_flag"
8193                          || test ! -s conftest.err'
8194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195   (eval $ac_try) 2>&5
8196   ac_status=$?
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); }; } &&
8199          { ac_try='test -s conftest$ac_exeext'
8200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201   (eval $ac_try) 2>&5
8202   ac_status=$?
8203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204   (exit $ac_status); }; }; then
8205   ac_cv_lib_dld_shl_load=yes
8206 else
8207   echo "$as_me: failed program was:" >&5
8208 sed 's/^/| /' conftest.$ac_ext >&5
8209
8210 ac_cv_lib_dld_shl_load=no
8211 fi
8212 rm -f conftest.err conftest.$ac_objext \
8213       conftest$ac_exeext conftest.$ac_ext
8214 LIBS=$ac_check_lib_save_LIBS
8215 fi
8216 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8217 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8218 if test $ac_cv_lib_dld_shl_load = yes; then
8219   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8220 else
8221   echo "$as_me:$LINENO: checking for dlopen" >&5
8222 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8223 if test "${ac_cv_func_dlopen+set}" = set; then
8224   echo $ECHO_N "(cached) $ECHO_C" >&6
8225 else
8226   cat >conftest.$ac_ext <<_ACEOF
8227 /* confdefs.h.  */
8228 _ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h.  */
8232 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8234 #define dlopen innocuous_dlopen
8235
8236 /* System header to define __stub macros and hopefully few prototypes,
8237     which can conflict with char dlopen (); below.
8238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8239     <limits.h> exists even on freestanding compilers.  */
8240
8241 #ifdef __STDC__
8242 # include <limits.h>
8243 #else
8244 # include <assert.h>
8245 #endif
8246
8247 #undef dlopen
8248
8249 /* Override any gcc2 internal prototype to avoid an error.  */
8250 #ifdef __cplusplus
8251 extern "C"
8252 {
8253 #endif
8254 /* We use char because int might match the return type of a gcc2
8255    builtin and then its argument prototype would still apply.  */
8256 char dlopen ();
8257 /* The GNU C library defines this for functions which it implements
8258     to always fail with ENOSYS.  Some functions are actually named
8259     something starting with __ and the normal name is an alias.  */
8260 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8261 choke me
8262 #else
8263 char (*f) () = dlopen;
8264 #endif
8265 #ifdef __cplusplus
8266 }
8267 #endif
8268
8269 int
8270 main ()
8271 {
8272 return f != dlopen;
8273   ;
8274   return 0;
8275 }
8276 _ACEOF
8277 rm -f conftest.$ac_objext conftest$ac_exeext
8278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8279   (eval $ac_link) 2>conftest.er1
8280   ac_status=$?
8281   grep -v '^ *+' conftest.er1 >conftest.err
8282   rm -f conftest.er1
8283   cat conftest.err >&5
8284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285   (exit $ac_status); } &&
8286          { ac_try='test -z "$ac_c_werror_flag"
8287                          || test ! -s conftest.err'
8288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289   (eval $ac_try) 2>&5
8290   ac_status=$?
8291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292   (exit $ac_status); }; } &&
8293          { ac_try='test -s conftest$ac_exeext'
8294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295   (eval $ac_try) 2>&5
8296   ac_status=$?
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); }; }; then
8299   ac_cv_func_dlopen=yes
8300 else
8301   echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8303
8304 ac_cv_func_dlopen=no
8305 fi
8306 rm -f conftest.err conftest.$ac_objext \
8307       conftest$ac_exeext conftest.$ac_ext
8308 fi
8309 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8310 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8311 if test $ac_cv_func_dlopen = yes; then
8312   lt_cv_dlopen="dlopen"
8313 else
8314   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8315 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8316 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8317   echo $ECHO_N "(cached) $ECHO_C" >&6
8318 else
8319   ac_check_lib_save_LIBS=$LIBS
8320 LIBS="-ldl  $LIBS"
8321 cat >conftest.$ac_ext <<_ACEOF
8322 /* confdefs.h.  */
8323 _ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h.  */
8327
8328 /* Override any gcc2 internal prototype to avoid an error.  */
8329 #ifdef __cplusplus
8330 extern "C"
8331 #endif
8332 /* We use char because int might match the return type of a gcc2
8333    builtin and then its argument prototype would still apply.  */
8334 char dlopen ();
8335 int
8336 main ()
8337 {
8338 dlopen ();
8339   ;
8340   return 0;
8341 }
8342 _ACEOF
8343 rm -f conftest.$ac_objext conftest$ac_exeext
8344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8345   (eval $ac_link) 2>conftest.er1
8346   ac_status=$?
8347   grep -v '^ *+' conftest.er1 >conftest.err
8348   rm -f conftest.er1
8349   cat conftest.err >&5
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); } &&
8352          { ac_try='test -z "$ac_c_werror_flag"
8353                          || test ! -s conftest.err'
8354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355   (eval $ac_try) 2>&5
8356   ac_status=$?
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); }; } &&
8359          { ac_try='test -s conftest$ac_exeext'
8360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361   (eval $ac_try) 2>&5
8362   ac_status=$?
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); }; }; then
8365   ac_cv_lib_dl_dlopen=yes
8366 else
8367   echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8369
8370 ac_cv_lib_dl_dlopen=no
8371 fi
8372 rm -f conftest.err conftest.$ac_objext \
8373       conftest$ac_exeext conftest.$ac_ext
8374 LIBS=$ac_check_lib_save_LIBS
8375 fi
8376 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8377 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8378 if test $ac_cv_lib_dl_dlopen = yes; then
8379   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8380 else
8381   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8382 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8383 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8384   echo $ECHO_N "(cached) $ECHO_C" >&6
8385 else
8386   ac_check_lib_save_LIBS=$LIBS
8387 LIBS="-lsvld  $LIBS"
8388 cat >conftest.$ac_ext <<_ACEOF
8389 /* confdefs.h.  */
8390 _ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h.  */
8394
8395 /* Override any gcc2 internal prototype to avoid an error.  */
8396 #ifdef __cplusplus
8397 extern "C"
8398 #endif
8399 /* We use char because int might match the return type of a gcc2
8400    builtin and then its argument prototype would still apply.  */
8401 char dlopen ();
8402 int
8403 main ()
8404 {
8405 dlopen ();
8406   ;
8407   return 0;
8408 }
8409 _ACEOF
8410 rm -f conftest.$ac_objext conftest$ac_exeext
8411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8412   (eval $ac_link) 2>conftest.er1
8413   ac_status=$?
8414   grep -v '^ *+' conftest.er1 >conftest.err
8415   rm -f conftest.er1
8416   cat conftest.err >&5
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); } &&
8419          { ac_try='test -z "$ac_c_werror_flag"
8420                          || test ! -s conftest.err'
8421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422   (eval $ac_try) 2>&5
8423   ac_status=$?
8424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425   (exit $ac_status); }; } &&
8426          { ac_try='test -s conftest$ac_exeext'
8427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428   (eval $ac_try) 2>&5
8429   ac_status=$?
8430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431   (exit $ac_status); }; }; then
8432   ac_cv_lib_svld_dlopen=yes
8433 else
8434   echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.$ac_ext >&5
8436
8437 ac_cv_lib_svld_dlopen=no
8438 fi
8439 rm -f conftest.err conftest.$ac_objext \
8440       conftest$ac_exeext conftest.$ac_ext
8441 LIBS=$ac_check_lib_save_LIBS
8442 fi
8443 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8444 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8445 if test $ac_cv_lib_svld_dlopen = yes; then
8446   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8447 else
8448   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8449 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8450 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8451   echo $ECHO_N "(cached) $ECHO_C" >&6
8452 else
8453   ac_check_lib_save_LIBS=$LIBS
8454 LIBS="-ldld  $LIBS"
8455 cat >conftest.$ac_ext <<_ACEOF
8456 /* confdefs.h.  */
8457 _ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h.  */
8461
8462 /* Override any gcc2 internal prototype to avoid an error.  */
8463 #ifdef __cplusplus
8464 extern "C"
8465 #endif
8466 /* We use char because int might match the return type of a gcc2
8467    builtin and then its argument prototype would still apply.  */
8468 char dld_link ();
8469 int
8470 main ()
8471 {
8472 dld_link ();
8473   ;
8474   return 0;
8475 }
8476 _ACEOF
8477 rm -f conftest.$ac_objext conftest$ac_exeext
8478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8479   (eval $ac_link) 2>conftest.er1
8480   ac_status=$?
8481   grep -v '^ *+' conftest.er1 >conftest.err
8482   rm -f conftest.er1
8483   cat conftest.err >&5
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); } &&
8486          { ac_try='test -z "$ac_c_werror_flag"
8487                          || test ! -s conftest.err'
8488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489   (eval $ac_try) 2>&5
8490   ac_status=$?
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); }; } &&
8493          { ac_try='test -s conftest$ac_exeext'
8494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8495   (eval $ac_try) 2>&5
8496   ac_status=$?
8497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498   (exit $ac_status); }; }; then
8499   ac_cv_lib_dld_dld_link=yes
8500 else
8501   echo "$as_me: failed program was:" >&5
8502 sed 's/^/| /' conftest.$ac_ext >&5
8503
8504 ac_cv_lib_dld_dld_link=no
8505 fi
8506 rm -f conftest.err conftest.$ac_objext \
8507       conftest$ac_exeext conftest.$ac_ext
8508 LIBS=$ac_check_lib_save_LIBS
8509 fi
8510 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8511 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8512 if test $ac_cv_lib_dld_dld_link = yes; then
8513   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8514 fi
8515
8516
8517 fi
8518
8519
8520 fi
8521
8522
8523 fi
8524
8525
8526 fi
8527
8528
8529 fi
8530
8531     ;;
8532   esac
8533
8534   if test "x$lt_cv_dlopen" != xno; then
8535     enable_dlopen=yes
8536   else
8537     enable_dlopen=no
8538   fi
8539
8540   case $lt_cv_dlopen in
8541   dlopen)
8542     save_CPPFLAGS="$CPPFLAGS"
8543     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8544
8545     save_LDFLAGS="$LDFLAGS"
8546     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8547
8548     save_LIBS="$LIBS"
8549     LIBS="$lt_cv_dlopen_libs $LIBS"
8550
8551     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8552 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8553 if test "${lt_cv_dlopen_self+set}" = set; then
8554   echo $ECHO_N "(cached) $ECHO_C" >&6
8555 else
8556           if test "$cross_compiling" = yes; then :
8557   lt_cv_dlopen_self=cross
8558 else
8559   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8560   lt_status=$lt_dlunknown
8561   cat > conftest.$ac_ext <<EOF
8562 #line 8562 "configure"
8563 #include "confdefs.h"
8564
8565 #if HAVE_DLFCN_H
8566 #include <dlfcn.h>
8567 #endif
8568
8569 #include <stdio.h>
8570
8571 #ifdef RTLD_GLOBAL
8572 #  define LT_DLGLOBAL           RTLD_GLOBAL
8573 #else
8574 #  ifdef DL_GLOBAL
8575 #    define LT_DLGLOBAL         DL_GLOBAL
8576 #  else
8577 #    define LT_DLGLOBAL         0
8578 #  endif
8579 #endif
8580
8581 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8582    find out it does not work in some platform. */
8583 #ifndef LT_DLLAZY_OR_NOW
8584 #  ifdef RTLD_LAZY
8585 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8586 #  else
8587 #    ifdef DL_LAZY
8588 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8589 #    else
8590 #      ifdef RTLD_NOW
8591 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8592 #      else
8593 #        ifdef DL_NOW
8594 #          define LT_DLLAZY_OR_NOW      DL_NOW
8595 #        else
8596 #          define LT_DLLAZY_OR_NOW      0
8597 #        endif
8598 #      endif
8599 #    endif
8600 #  endif
8601 #endif
8602
8603 #ifdef __cplusplus
8604 extern "C" void exit (int);
8605 #endif
8606
8607 void fnord() { int i=42;}
8608 int main ()
8609 {
8610   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8611   int status = $lt_dlunknown;
8612
8613   if (self)
8614     {
8615       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8616       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8617       /* dlclose (self); */
8618     }
8619
8620     exit (status);
8621 }
8622 EOF
8623   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8624   (eval $ac_link) 2>&5
8625   ac_status=$?
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8628     (./conftest; exit; ) 2>/dev/null
8629     lt_status=$?
8630     case x$lt_status in
8631       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8632       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8633       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8634     esac
8635   else :
8636     # compilation failed
8637     lt_cv_dlopen_self=no
8638   fi
8639 fi
8640 rm -fr conftest*
8641
8642
8643 fi
8644 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8645 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8646
8647     if test "x$lt_cv_dlopen_self" = xyes; then
8648       LDFLAGS="$LDFLAGS $link_static_flag"
8649       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8650 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8651 if test "${lt_cv_dlopen_self_static+set}" = set; then
8652   echo $ECHO_N "(cached) $ECHO_C" >&6
8653 else
8654           if test "$cross_compiling" = yes; then :
8655   lt_cv_dlopen_self_static=cross
8656 else
8657   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8658   lt_status=$lt_dlunknown
8659   cat > conftest.$ac_ext <<EOF
8660 #line 8660 "configure"
8661 #include "confdefs.h"
8662
8663 #if HAVE_DLFCN_H
8664 #include <dlfcn.h>
8665 #endif
8666
8667 #include <stdio.h>
8668
8669 #ifdef RTLD_GLOBAL
8670 #  define LT_DLGLOBAL           RTLD_GLOBAL
8671 #else
8672 #  ifdef DL_GLOBAL
8673 #    define LT_DLGLOBAL         DL_GLOBAL
8674 #  else
8675 #    define LT_DLGLOBAL         0
8676 #  endif
8677 #endif
8678
8679 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8680    find out it does not work in some platform. */
8681 #ifndef LT_DLLAZY_OR_NOW
8682 #  ifdef RTLD_LAZY
8683 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8684 #  else
8685 #    ifdef DL_LAZY
8686 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8687 #    else
8688 #      ifdef RTLD_NOW
8689 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8690 #      else
8691 #        ifdef DL_NOW
8692 #          define LT_DLLAZY_OR_NOW      DL_NOW
8693 #        else
8694 #          define LT_DLLAZY_OR_NOW      0
8695 #        endif
8696 #      endif
8697 #    endif
8698 #  endif
8699 #endif
8700
8701 #ifdef __cplusplus
8702 extern "C" void exit (int);
8703 #endif
8704
8705 void fnord() { int i=42;}
8706 int main ()
8707 {
8708   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8709   int status = $lt_dlunknown;
8710
8711   if (self)
8712     {
8713       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8714       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8715       /* dlclose (self); */
8716     }
8717
8718     exit (status);
8719 }
8720 EOF
8721   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8722   (eval $ac_link) 2>&5
8723   ac_status=$?
8724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8726     (./conftest; exit; ) 2>/dev/null
8727     lt_status=$?
8728     case x$lt_status in
8729       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8730       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8731       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8732     esac
8733   else :
8734     # compilation failed
8735     lt_cv_dlopen_self_static=no
8736   fi
8737 fi
8738 rm -fr conftest*
8739
8740
8741 fi
8742 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8743 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8744     fi
8745
8746     CPPFLAGS="$save_CPPFLAGS"
8747     LDFLAGS="$save_LDFLAGS"
8748     LIBS="$save_LIBS"
8749     ;;
8750   esac
8751
8752   case $lt_cv_dlopen_self in
8753   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8754   *) enable_dlopen_self=unknown ;;
8755   esac
8756
8757   case $lt_cv_dlopen_self_static in
8758   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8759   *) enable_dlopen_self_static=unknown ;;
8760   esac
8761 fi
8762
8763
8764 # Report which librarie types wil actually be built
8765 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8766 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8767 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8768 echo "${ECHO_T}$can_build_shared" >&6
8769
8770 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8771 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8772 test "$can_build_shared" = "no" && enable_shared=no
8773
8774 # On AIX, shared libraries and static libraries use the same namespace, and
8775 # are all built from PIC.
8776 case "$host_os" in
8777 aix3*)
8778   test "$enable_shared" = yes && enable_static=no
8779   if test -n "$RANLIB"; then
8780     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8781     postinstall_cmds='$RANLIB $lib'
8782   fi
8783   ;;
8784
8785 aix4*)
8786   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8787     test "$enable_shared" = yes && enable_static=no
8788   fi
8789   ;;
8790   darwin* | rhapsody*)
8791   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8792     archive_cmds_need_lc=no
8793     case "$host_os" in
8794     rhapsody* | darwin1.[012])
8795       allow_undefined_flag='-undefined suppress'
8796       ;;
8797     *) # Darwin 1.3 on
8798       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8799       ;;
8800     esac
8801     # FIXME: Relying on posixy $() will cause problems for
8802     #        cross-compilation, but unfortunately the echo tests do not
8803     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8804     #          `"' quotes if we put them in here... so don't!
8805                 output_verbose_link_cmd='echo'
8806     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8807     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8808     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8809                   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}'
8810                   module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8811     hardcode_direct=no
8812     hardcode_automatic=yes
8813     hardcode_shlibpath_var=unsupported
8814     whole_archive_flag_spec='-all_load $convenience'
8815     link_all_deplibs=yes
8816     fi
8817     ;;
8818 esac
8819 echo "$as_me:$LINENO: result: $enable_shared" >&5
8820 echo "${ECHO_T}$enable_shared" >&6
8821
8822 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8823 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8824 # Make sure either enable_shared or enable_static is yes.
8825 test "$enable_shared" = yes || enable_static=yes
8826 echo "$as_me:$LINENO: result: $enable_static" >&5
8827 echo "${ECHO_T}$enable_static" >&6
8828
8829 # The else clause should only fire when bootstrapping the
8830 # libtool distribution, otherwise you forgot to ship ltmain.sh
8831 # with your package, and you will get complaints that there are
8832 # no rules to generate ltmain.sh.
8833 if test -f "$ltmain"; then
8834   # See if we are running on zsh, and set the options which allow our commands through
8835   # without removal of \ escapes.
8836   if test -n "${ZSH_VERSION+set}" ; then
8837     setopt NO_GLOB_SUBST
8838   fi
8839   # Now quote all the things that may contain metacharacters while being
8840   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8841   # variables and quote the copies for generation of the libtool script.
8842   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8843     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8844     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8845     deplibs_check_method reload_flag reload_cmds need_locks \
8846     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8847     lt_cv_sys_global_symbol_to_c_name_address \
8848     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8849     old_postinstall_cmds old_postuninstall_cmds \
8850     compiler \
8851     CC \
8852     LD \
8853     lt_prog_compiler_wl \
8854     lt_prog_compiler_pic \
8855     lt_prog_compiler_static \
8856     lt_prog_compiler_no_builtin_flag \
8857     export_dynamic_flag_spec \
8858     thread_safe_flag_spec \
8859     whole_archive_flag_spec \
8860     enable_shared_with_static_runtimes \
8861     old_archive_cmds \
8862     old_archive_from_new_cmds \
8863     predep_objects \
8864     postdep_objects \
8865     predeps \
8866     postdeps \
8867     compiler_lib_search_path \
8868     archive_cmds \
8869     archive_expsym_cmds \
8870     postinstall_cmds \
8871     postuninstall_cmds \
8872     old_archive_from_expsyms_cmds \
8873     allow_undefined_flag \
8874     no_undefined_flag \
8875     export_symbols_cmds \
8876     hardcode_libdir_flag_spec \
8877     hardcode_libdir_flag_spec_ld \
8878     hardcode_libdir_separator \
8879     hardcode_automatic \
8880     module_cmds \
8881     module_expsym_cmds \
8882     lt_cv_prog_compiler_c_o \
8883     exclude_expsyms \
8884     include_expsyms; do
8885
8886     case $var in
8887     old_archive_cmds | \
8888     old_archive_from_new_cmds | \
8889     archive_cmds | \
8890     archive_expsym_cmds | \
8891     module_cmds | \
8892     module_expsym_cmds | \
8893     old_archive_from_expsyms_cmds | \
8894     export_symbols_cmds | \
8895     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8896     postinstall_cmds | postuninstall_cmds | \
8897     old_postinstall_cmds | old_postuninstall_cmds | \
8898     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8899       # Double-quote double-evaled strings.
8900       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8901       ;;
8902     *)
8903       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8904       ;;
8905     esac
8906   done
8907
8908   case $lt_echo in
8909   *'\$0 --fallback-echo"')
8910     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8911     ;;
8912   esac
8913
8914 cfgfile="${ofile}T"
8915   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8916   $rm -f "$cfgfile"
8917   { echo "$as_me:$LINENO: creating $ofile" >&5
8918 echo "$as_me: creating $ofile" >&6;}
8919
8920   cat <<__EOF__ >> "$cfgfile"
8921 #! $SHELL
8922
8923 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8924 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8925 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8926 #
8927 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8928 # Free Software Foundation, Inc.
8929 #
8930 # This file is part of GNU Libtool:
8931 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8932 #
8933 # This program is free software; you can redistribute it and/or modify
8934 # it under the terms of the GNU General Public License as published by
8935 # the Free Software Foundation; either version 2 of the License, or
8936 # (at your option) any later version.
8937 #
8938 # This program is distributed in the hope that it will be useful, but
8939 # WITHOUT ANY WARRANTY; without even the implied warranty of
8940 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8941 # General Public License for more details.
8942 #
8943 # You should have received a copy of the GNU General Public License
8944 # along with this program; if not, write to the Free Software
8945 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8946 #
8947 # As a special exception to the GNU General Public License, if you
8948 # distribute this file as part of a program that contains a
8949 # configuration script generated by Autoconf, you may include it under
8950 # the same distribution terms that you use for the rest of that program.
8951
8952 # A sed program that does not truncate output.
8953 SED=$lt_SED
8954
8955 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8956 Xsed="$SED -e s/^X//"
8957
8958 # The HP-UX ksh and POSIX shell print the target directory to stdout
8959 # if CDPATH is set.
8960 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8961
8962 # The names of the tagged configurations supported by this script.
8963 available_tags=
8964
8965 # ### BEGIN LIBTOOL CONFIG
8966
8967 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8968
8969 # Shell to use when invoking shell scripts.
8970 SHELL=$lt_SHELL
8971
8972 # Whether or not to build shared libraries.
8973 build_libtool_libs=$enable_shared
8974
8975 # Whether or not to build static libraries.
8976 build_old_libs=$enable_static
8977
8978 # Whether or not to add -lc for building shared libraries.
8979 build_libtool_need_lc=$archive_cmds_need_lc
8980
8981 # Whether or not to disallow shared libs when runtime libs are static
8982 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8983
8984 # Whether or not to optimize for fast installation.
8985 fast_install=$enable_fast_install
8986
8987 # The host system.
8988 host_alias=$host_alias
8989 host=$host
8990
8991 # An echo program that does not interpret backslashes.
8992 echo=$lt_echo
8993
8994 # The archiver.
8995 AR=$lt_AR
8996 AR_FLAGS=$lt_AR_FLAGS
8997
8998 # A C compiler.
8999 LTCC=$lt_LTCC
9000
9001 # A language-specific compiler.
9002 CC=$lt_compiler
9003
9004 # Is the compiler the GNU C compiler?
9005 with_gcc=$GCC
9006
9007 # An ERE matcher.
9008 EGREP=$lt_EGREP
9009
9010 # The linker used to build libraries.
9011 LD=$lt_LD
9012
9013 # Whether we need hard or soft links.
9014 LN_S=$lt_LN_S
9015
9016 # A BSD-compatible nm program.
9017 NM=$lt_NM
9018
9019 # A symbol stripping program
9020 STRIP=$STRIP
9021
9022 # Used to examine libraries when file_magic_cmd begins "file"
9023 MAGIC_CMD=$MAGIC_CMD
9024
9025 # Used on cygwin: DLL creation program.
9026 DLLTOOL="$DLLTOOL"
9027
9028 # Used on cygwin: object dumper.
9029 OBJDUMP="$OBJDUMP"
9030
9031 # Used on cygwin: assembler.
9032 AS="$AS"
9033
9034 # The name of the directory that contains temporary libtool files.
9035 objdir=$objdir
9036
9037 # How to create reloadable object files.
9038 reload_flag=$lt_reload_flag
9039 reload_cmds=$lt_reload_cmds
9040
9041 # How to pass a linker flag through the compiler.
9042 wl=$lt_lt_prog_compiler_wl
9043
9044 # Object file suffix (normally "o").
9045 objext="$ac_objext"
9046
9047 # Old archive suffix (normally "a").
9048 libext="$libext"
9049
9050 # Shared library suffix (normally ".so").
9051 shrext='$shrext'
9052
9053 # Executable file suffix (normally "").
9054 exeext="$exeext"
9055
9056 # Additional compiler flags for building library objects.
9057 pic_flag=$lt_lt_prog_compiler_pic
9058 pic_mode=$pic_mode
9059
9060 # What is the maximum length of a command?
9061 max_cmd_len=$lt_cv_sys_max_cmd_len
9062
9063 # Does compiler simultaneously support -c and -o options?
9064 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9065
9066 # Must we lock files when doing compilation ?
9067 need_locks=$lt_need_locks
9068
9069 # Do we need the lib prefix for modules?
9070 need_lib_prefix=$need_lib_prefix
9071
9072 # Do we need a version for libraries?
9073 need_version=$need_version
9074
9075 # Whether dlopen is supported.
9076 dlopen_support=$enable_dlopen
9077
9078 # Whether dlopen of programs is supported.
9079 dlopen_self=$enable_dlopen_self
9080
9081 # Whether dlopen of statically linked programs is supported.
9082 dlopen_self_static=$enable_dlopen_self_static
9083
9084 # Compiler flag to prevent dynamic linking.
9085 link_static_flag=$lt_lt_prog_compiler_static
9086
9087 # Compiler flag to turn off builtin functions.
9088 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9089
9090 # Compiler flag to allow reflexive dlopens.
9091 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9092
9093 # Compiler flag to generate shared objects directly from archives.
9094 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9095
9096 # Compiler flag to generate thread-safe objects.
9097 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9098
9099 # Library versioning type.
9100 version_type=$version_type
9101
9102 # Format of library name prefix.
9103 libname_spec=$lt_libname_spec
9104
9105 # List of archive names.  First name is the real one, the rest are links.
9106 # The last name is the one that the linker finds with -lNAME.
9107 library_names_spec=$lt_library_names_spec
9108
9109 # The coded name of the library, if different from the real name.
9110 soname_spec=$lt_soname_spec
9111
9112 # Commands used to build and install an old-style archive.
9113 RANLIB=$lt_RANLIB
9114 old_archive_cmds=$lt_old_archive_cmds
9115 old_postinstall_cmds=$lt_old_postinstall_cmds
9116 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9117
9118 # Create an old-style archive from a shared archive.
9119 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9120
9121 # Create a temporary old-style archive to link instead of a shared archive.
9122 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9123
9124 # Commands used to build and install a shared archive.
9125 archive_cmds=$lt_archive_cmds
9126 archive_expsym_cmds=$lt_archive_expsym_cmds
9127 postinstall_cmds=$lt_postinstall_cmds
9128 postuninstall_cmds=$lt_postuninstall_cmds
9129
9130 # Commands used to build a loadable module (assumed same as above if empty)
9131 module_cmds=$lt_module_cmds
9132 module_expsym_cmds=$lt_module_expsym_cmds
9133
9134 # Commands to strip libraries.
9135 old_striplib=$lt_old_striplib
9136 striplib=$lt_striplib
9137
9138 # Dependencies to place before the objects being linked to create a
9139 # shared library.
9140 predep_objects=$lt_predep_objects
9141
9142 # Dependencies to place after the objects being linked to create a
9143 # shared library.
9144 postdep_objects=$lt_postdep_objects
9145
9146 # Dependencies to place before the objects being linked to create a
9147 # shared library.
9148 predeps=$lt_predeps
9149
9150 # Dependencies to place after the objects being linked to create a
9151 # shared library.
9152 postdeps=$lt_postdeps
9153
9154 # The library search path used internally by the compiler when linking
9155 # a shared library.
9156 compiler_lib_search_path=$lt_compiler_lib_search_path
9157
9158 # Method to check whether dependent libraries are shared objects.
9159 deplibs_check_method=$lt_deplibs_check_method
9160
9161 # Command to use when deplibs_check_method == file_magic.
9162 file_magic_cmd=$lt_file_magic_cmd
9163
9164 # Flag that allows shared libraries with undefined symbols to be built.
9165 allow_undefined_flag=$lt_allow_undefined_flag
9166
9167 # Flag that forces no undefined symbols.
9168 no_undefined_flag=$lt_no_undefined_flag
9169
9170 # Commands used to finish a libtool library installation in a directory.
9171 finish_cmds=$lt_finish_cmds
9172
9173 # Same as above, but a single script fragment to be evaled but not shown.
9174 finish_eval=$lt_finish_eval
9175
9176 # Take the output of nm and produce a listing of raw symbols and C names.
9177 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9178
9179 # Transform the output of nm in a proper C declaration
9180 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9181
9182 # Transform the output of nm in a C name address pair
9183 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9184
9185 # This is the shared library runtime path variable.
9186 runpath_var=$runpath_var
9187
9188 # This is the shared library path variable.
9189 shlibpath_var=$shlibpath_var
9190
9191 # Is shlibpath searched before the hard-coded library search path?
9192 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9193
9194 # How to hardcode a shared library path into an executable.
9195 hardcode_action=$hardcode_action
9196
9197 # Whether we should hardcode library paths into libraries.
9198 hardcode_into_libs=$hardcode_into_libs
9199
9200 # Flag to hardcode \$libdir into a binary during linking.
9201 # This must work even if \$libdir does not exist.
9202 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9203
9204 # If ld is used when linking, flag to hardcode \$libdir into
9205 # a binary during linking. This must work even if \$libdir does
9206 # not exist.
9207 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9208
9209 # Whether we need a single -rpath flag with a separated argument.
9210 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9211
9212 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9213 # resulting binary.
9214 hardcode_direct=$hardcode_direct
9215
9216 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9217 # resulting binary.
9218 hardcode_minus_L=$hardcode_minus_L
9219
9220 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9221 # the resulting binary.
9222 hardcode_shlibpath_var=$hardcode_shlibpath_var
9223
9224 # Set to yes if building a shared library automatically hardcodes DIR into the library
9225 # and all subsequent libraries and executables linked against it.
9226 hardcode_automatic=$hardcode_automatic
9227
9228 # Variables whose values should be saved in libtool wrapper scripts and
9229 # restored at relink time.
9230 variables_saved_for_relink="$variables_saved_for_relink"
9231
9232 # Whether libtool must link a program against all its dependency libraries.
9233 link_all_deplibs=$link_all_deplibs
9234
9235 # Compile-time system search path for libraries
9236 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9237
9238 # Run-time system search path for libraries
9239 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9240
9241 # Fix the shell variable \$srcfile for the compiler.
9242 fix_srcfile_path="$fix_srcfile_path"
9243
9244 # Set to yes if exported symbols are required.
9245 always_export_symbols=$always_export_symbols
9246
9247 # The commands to list exported symbols.
9248 export_symbols_cmds=$lt_export_symbols_cmds
9249
9250 # The commands to extract the exported symbol list from a shared archive.
9251 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9252
9253 # Symbols that should not be listed in the preloaded symbols.
9254 exclude_expsyms=$lt_exclude_expsyms
9255
9256 # Symbols that must always be exported.
9257 include_expsyms=$lt_include_expsyms
9258
9259 # ### END LIBTOOL CONFIG
9260
9261 __EOF__
9262
9263
9264   case $host_os in
9265   aix3*)
9266     cat <<\EOF >> "$cfgfile"
9267
9268 # AIX sometimes has problems with the GCC collect2 program.  For some
9269 # reason, if we set the COLLECT_NAMES environment variable, the problems
9270 # vanish in a puff of smoke.
9271 if test "X${COLLECT_NAMES+set}" != Xset; then
9272   COLLECT_NAMES=
9273   export COLLECT_NAMES
9274 fi
9275 EOF
9276     ;;
9277   esac
9278
9279   # We use sed instead of cat because bash on DJGPP gets confused if
9280   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9281   # text mode, it properly converts lines to CR/LF.  This bash problem
9282   # is reportedly fixed, but why not run on old versions too?
9283   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9284
9285   mv -f "$cfgfile" "$ofile" || \
9286     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9287   chmod +x "$ofile"
9288
9289 else
9290   # If there is no Makefile yet, we rely on a make rule to execute
9291   # `config.status --recheck' to rerun these tests and create the
9292   # libtool script then.
9293   test -f Makefile && make "$ltmain"
9294 fi
9295
9296
9297 ac_ext=c
9298 ac_cpp='$CPP $CPPFLAGS'
9299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9302
9303 CC="$lt_save_CC"
9304
9305
9306 # Check whether --with-tags or --without-tags was given.
9307 if test "${with_tags+set}" = set; then
9308   withval="$with_tags"
9309   tagnames="$withval"
9310 fi;
9311
9312 if test -f "$ltmain" && test -n "$tagnames"; then
9313   if test ! -f "${ofile}"; then
9314     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9315 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9316   fi
9317
9318   if test -z "$LTCC"; then
9319     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9320     if test -z "$LTCC"; then
9321       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9322 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9323     else
9324       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9325 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9326     fi
9327   fi
9328
9329   # Extract list of available tagged configurations in $ofile.
9330   # Note that this assumes the entire list is on one line.
9331   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9332
9333   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9334   for tagname in $tagnames; do
9335     IFS="$lt_save_ifs"
9336     # Check whether tagname contains only valid characters
9337     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9338     "") ;;
9339     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9340 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9341    { (exit 1); exit 1; }; }
9342         ;;
9343     esac
9344
9345     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9346     then
9347       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9348 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9349    { (exit 1); exit 1; }; }
9350     fi
9351
9352     # Update the list of available tags.
9353     if test -n "$tagname"; then
9354       echo appending configuration tag \"$tagname\" to $ofile
9355
9356       case $tagname in
9357       CXX)
9358         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9359           ac_ext=cc
9360 ac_cpp='$CXXCPP $CPPFLAGS'
9361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9364
9365
9366
9367
9368 archive_cmds_need_lc_CXX=no
9369 allow_undefined_flag_CXX=
9370 always_export_symbols_CXX=no
9371 archive_expsym_cmds_CXX=
9372 export_dynamic_flag_spec_CXX=
9373 hardcode_direct_CXX=no
9374 hardcode_libdir_flag_spec_CXX=
9375 hardcode_libdir_flag_spec_ld_CXX=
9376 hardcode_libdir_separator_CXX=
9377 hardcode_minus_L_CXX=no
9378 hardcode_automatic_CXX=no
9379 module_cmds_CXX=
9380 module_expsym_cmds_CXX=
9381 link_all_deplibs_CXX=unknown
9382 old_archive_cmds_CXX=$old_archive_cmds
9383 no_undefined_flag_CXX=
9384 whole_archive_flag_spec_CXX=
9385 enable_shared_with_static_runtimes_CXX=no
9386
9387 # Dependencies to place before and after the object being linked:
9388 predep_objects_CXX=
9389 postdep_objects_CXX=
9390 predeps_CXX=
9391 postdeps_CXX=
9392 compiler_lib_search_path_CXX=
9393
9394 # Source file extension for C++ test sources.
9395 ac_ext=cc
9396
9397 # Object file extension for compiled C++ test sources.
9398 objext=o
9399 objext_CXX=$objext
9400
9401 # Code to be used in simple compile tests
9402 lt_simple_compile_test_code="int some_variable = 0;\n"
9403
9404 # Code to be used in simple link tests
9405 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9406
9407 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9408
9409 # If no C compiler was specified, use CC.
9410 LTCC=${LTCC-"$CC"}
9411
9412 # Allow CC to be a program name with arguments.
9413 compiler=$CC
9414
9415
9416 # Allow CC to be a program name with arguments.
9417 lt_save_CC=$CC
9418 lt_save_LD=$LD
9419 lt_save_GCC=$GCC
9420 GCC=$GXX
9421 lt_save_with_gnu_ld=$with_gnu_ld
9422 lt_save_path_LD=$lt_cv_path_LD
9423 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9424   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9425 else
9426   unset lt_cv_prog_gnu_ld
9427 fi
9428 if test -n "${lt_cv_path_LDCXX+set}"; then
9429   lt_cv_path_LD=$lt_cv_path_LDCXX
9430 else
9431   unset lt_cv_path_LD
9432 fi
9433 test -z "${LDCXX+set}" || LD=$LDCXX
9434 CC=${CXX-"c++"}
9435 compiler=$CC
9436 compiler_CXX=$CC
9437 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9438
9439 # We don't want -fno-exception wen compiling C++ code, so set the
9440 # no_builtin_flag separately
9441 if test "$GXX" = yes; then
9442   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9443 else
9444   lt_prog_compiler_no_builtin_flag_CXX=
9445 fi
9446
9447 if test "$GXX" = yes; then
9448   # Set up default GNU C++ configuration
9449
9450
9451 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9452 if test "${with_gnu_ld+set}" = set; then
9453   withval="$with_gnu_ld"
9454   test "$withval" = no || with_gnu_ld=yes
9455 else
9456   with_gnu_ld=no
9457 fi;
9458 ac_prog=ld
9459 if test "$GCC" = yes; then
9460   # Check if gcc -print-prog-name=ld gives a path.
9461   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9462 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9463   case $host in
9464   *-*-mingw*)
9465     # gcc leaves a trailing carriage return which upsets mingw
9466     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9467   *)
9468     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9469   esac
9470   case $ac_prog in
9471     # Accept absolute paths.
9472     [\\/]* | ?:[\\/]*)
9473       re_direlt='/[^/][^/]*/\.\./'
9474       # Canonicalize the path of ld
9475       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9476       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9477         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9478       done
9479       test -z "$LD" && LD="$ac_prog"
9480       ;;
9481   "")
9482     # If it fails, then pretend we aren't using GCC.
9483     ac_prog=ld
9484     ;;
9485   *)
9486     # If it is relative, then search for the first ld in PATH.
9487     with_gnu_ld=unknown
9488     ;;
9489   esac
9490 elif test "$with_gnu_ld" = yes; then
9491   echo "$as_me:$LINENO: checking for GNU ld" >&5
9492 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9493 else
9494   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9495 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9496 fi
9497 if test "${lt_cv_path_LD+set}" = set; then
9498   echo $ECHO_N "(cached) $ECHO_C" >&6
9499 else
9500   if test -z "$LD"; then
9501   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9502   for ac_dir in $PATH; do
9503     IFS="$lt_save_ifs"
9504     test -z "$ac_dir" && ac_dir=.
9505     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9506       lt_cv_path_LD="$ac_dir/$ac_prog"
9507       # Check to see if the program is GNU ld.  I'd rather use --version,
9508       # but apparently some GNU ld's only accept -v.
9509       # Break only if it was the GNU/non-GNU ld that we prefer.
9510       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9511       *GNU* | *'with BFD'*)
9512         test "$with_gnu_ld" != no && break
9513         ;;
9514       *)
9515         test "$with_gnu_ld" != yes && break
9516         ;;
9517       esac
9518     fi
9519   done
9520   IFS="$lt_save_ifs"
9521 else
9522   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9523 fi
9524 fi
9525
9526 LD="$lt_cv_path_LD"
9527 if test -n "$LD"; then
9528   echo "$as_me:$LINENO: result: $LD" >&5
9529 echo "${ECHO_T}$LD" >&6
9530 else
9531   echo "$as_me:$LINENO: result: no" >&5
9532 echo "${ECHO_T}no" >&6
9533 fi
9534 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9535 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9536    { (exit 1); exit 1; }; }
9537 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9538 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9539 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9540   echo $ECHO_N "(cached) $ECHO_C" >&6
9541 else
9542   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9543 case `"$LD" -v 2>&1 </dev/null` in
9544 *GNU* | *'with BFD'*)
9545   lt_cv_prog_gnu_ld=yes
9546   ;;
9547 *)
9548   lt_cv_prog_gnu_ld=no
9549   ;;
9550 esac
9551 fi
9552 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9553 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9554 with_gnu_ld=$lt_cv_prog_gnu_ld
9555
9556
9557
9558   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9559   # archiving commands below assume that GNU ld is being used.
9560   if test "$with_gnu_ld" = yes; then
9561     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9562     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'
9563
9564     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9565     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9566
9567     # If archive_cmds runs LD, not CC, wlarc should be empty
9568     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9569     #     investigate it a little bit more. (MM)
9570     wlarc='${wl}'
9571
9572     # ancient GNU ld didn't support --whole-archive et. al.
9573     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9574         grep 'no-whole-archive' > /dev/null; then
9575       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9576     else
9577       whole_archive_flag_spec_CXX=
9578     fi
9579   else
9580     with_gnu_ld=no
9581     wlarc=
9582
9583     # A generic and very simple default shared library creation
9584     # command for GNU C++ for the case where it uses the native
9585     # linker, instead of GNU ld.  If possible, this setting should
9586     # overridden to take advantage of the native linker features on
9587     # the platform it is being used on.
9588     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9589   fi
9590
9591   # Commands to make compiler produce verbose output that lists
9592   # what "hidden" libraries, object files and flags are used when
9593   # linking a shared library.
9594   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9595
9596 else
9597   GXX=no
9598   with_gnu_ld=no
9599   wlarc=
9600 fi
9601
9602 # PORTME: fill in a description of your system's C++ link characteristics
9603 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9604 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9605 ld_shlibs_CXX=yes
9606 case $host_os in
9607   aix3*)
9608     # FIXME: insert proper C++ library support
9609     ld_shlibs_CXX=no
9610     ;;
9611   aix4* | aix5*)
9612     if test "$host_cpu" = ia64; then
9613       # On IA64, the linker does run time linking by default, so we don't
9614       # have to do anything special.
9615       aix_use_runtimelinking=no
9616       exp_sym_flag='-Bexport'
9617       no_entry_flag=""
9618     else
9619       aix_use_runtimelinking=no
9620
9621       # Test if we are trying to use run time linking or normal
9622       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9623       # need to do runtime linking.
9624       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9625         for ld_flag in $LDFLAGS; do
9626           case $ld_flag in
9627           *-brtl*)
9628             aix_use_runtimelinking=yes
9629             break
9630             ;;
9631           esac
9632         done
9633       esac
9634
9635       exp_sym_flag='-bexport'
9636       no_entry_flag='-bnoentry'
9637     fi
9638
9639     # When large executables or shared objects are built, AIX ld can
9640     # have problems creating the table of contents.  If linking a library
9641     # or program results in "error TOC overflow" add -mminimal-toc to
9642     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9643     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9644
9645     archive_cmds_CXX=''
9646     hardcode_direct_CXX=yes
9647     hardcode_libdir_separator_CXX=':'
9648     link_all_deplibs_CXX=yes
9649
9650     if test "$GXX" = yes; then
9651       case $host_os in aix4.012|aix4.012.*)
9652       # We only want to do this on AIX 4.2 and lower, the check
9653       # below for broken collect2 doesn't work under 4.3+
9654         collect2name=`${CC} -print-prog-name=collect2`
9655         if test -f "$collect2name" && \
9656            strings "$collect2name" | grep resolve_lib_name >/dev/null
9657         then
9658           # We have reworked collect2
9659           hardcode_direct_CXX=yes
9660         else
9661           # We have old collect2
9662           hardcode_direct_CXX=unsupported
9663           # It fails to find uninstalled libraries when the uninstalled
9664           # path is not listed in the libpath.  Setting hardcode_minus_L
9665           # to unsupported forces relinking
9666           hardcode_minus_L_CXX=yes
9667           hardcode_libdir_flag_spec_CXX='-L$libdir'
9668           hardcode_libdir_separator_CXX=
9669         fi
9670       esac
9671       shared_flag='-shared'
9672     else
9673       # not using gcc
9674       if test "$host_cpu" = ia64; then
9675         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9676         # chokes on -Wl,-G. The following line is correct:
9677         shared_flag='-G'
9678       else
9679         if test "$aix_use_runtimelinking" = yes; then
9680           shared_flag='${wl}-G'
9681         else
9682           shared_flag='${wl}-bM:SRE'
9683         fi
9684       fi
9685     fi
9686
9687     # It seems that -bexpall does not export symbols beginning with
9688     # underscore (_), so it is better to generate a list of symbols to export.
9689     always_export_symbols_CXX=yes
9690     if test "$aix_use_runtimelinking" = yes; then
9691       # Warning - without using the other runtime loading flags (-brtl),
9692       # -berok will link without error, but may produce a broken library.
9693       allow_undefined_flag_CXX='-berok'
9694       # Determine the default libpath from the value encoded in an empty executable.
9695       cat >conftest.$ac_ext <<_ACEOF
9696 /* confdefs.h.  */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h.  */
9701
9702 int
9703 main ()
9704 {
9705
9706   ;
9707   return 0;
9708 }
9709 _ACEOF
9710 rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9712   (eval $ac_link) 2>conftest.er1
9713   ac_status=$?
9714   grep -v '^ *+' conftest.er1 >conftest.err
9715   rm -f conftest.er1
9716   cat conftest.err >&5
9717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718   (exit $ac_status); } &&
9719          { ac_try='test -z "$ac_cxx_werror_flag"
9720                          || test ! -s conftest.err'
9721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722   (eval $ac_try) 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); }; } &&
9726          { ac_try='test -s conftest$ac_exeext'
9727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728   (eval $ac_try) 2>&5
9729   ac_status=$?
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); }; }; then
9732
9733 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9734 }'`
9735 # Check for a 64-bit object if we didn't find anything.
9736 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; }
9737 }'`; fi
9738 else
9739   echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9741
9742 fi
9743 rm -f conftest.err conftest.$ac_objext \
9744       conftest$ac_exeext conftest.$ac_ext
9745 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9746
9747       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9748
9749       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"
9750      else
9751       if test "$host_cpu" = ia64; then
9752         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9753         allow_undefined_flag_CXX="-z nodefs"
9754         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"
9755       else
9756         # Determine the default libpath from the value encoded in an empty executable.
9757         cat >conftest.$ac_ext <<_ACEOF
9758 /* confdefs.h.  */
9759 _ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h.  */
9763
9764 int
9765 main ()
9766 {
9767
9768   ;
9769   return 0;
9770 }
9771 _ACEOF
9772 rm -f conftest.$ac_objext conftest$ac_exeext
9773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9774   (eval $ac_link) 2>conftest.er1
9775   ac_status=$?
9776   grep -v '^ *+' conftest.er1 >conftest.err
9777   rm -f conftest.er1
9778   cat conftest.err >&5
9779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780   (exit $ac_status); } &&
9781          { ac_try='test -z "$ac_cxx_werror_flag"
9782                          || test ! -s conftest.err'
9783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784   (eval $ac_try) 2>&5
9785   ac_status=$?
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); }; } &&
9788          { ac_try='test -s conftest$ac_exeext'
9789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790   (eval $ac_try) 2>&5
9791   ac_status=$?
9792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); }; }; then
9794
9795 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9796 }'`
9797 # Check for a 64-bit object if we didn't find anything.
9798 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; }
9799 }'`; fi
9800 else
9801   echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9803
9804 fi
9805 rm -f conftest.err conftest.$ac_objext \
9806       conftest$ac_exeext conftest.$ac_ext
9807 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9808
9809         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9810         # Warning - without using the other run time loading flags,
9811         # -berok will link without error, but may produce a broken library.
9812         no_undefined_flag_CXX=' ${wl}-bernotok'
9813         allow_undefined_flag_CXX=' ${wl}-berok'
9814         # -bexpall does not export symbols beginning with underscore (_)
9815         always_export_symbols_CXX=yes
9816         # Exported symbols can be pulled into shared objects from archives
9817         whole_archive_flag_spec_CXX=' '
9818         archive_cmds_need_lc_CXX=yes
9819         # This is similar to how AIX traditionally builds it's shared libraries.
9820         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'
9821       fi
9822     fi
9823     ;;
9824   chorus*)
9825     case $cc_basename in
9826       *)
9827         # FIXME: insert proper C++ library support
9828         ld_shlibs_CXX=no
9829         ;;
9830     esac
9831     ;;
9832
9833   cygwin* | mingw* | pw32*)
9834     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9835     # as there is no search path for DLLs.
9836     hardcode_libdir_flag_spec_CXX='-L$libdir'
9837     allow_undefined_flag_CXX=unsupported
9838     always_export_symbols_CXX=no
9839     enable_shared_with_static_runtimes_CXX=yes
9840
9841     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9842       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'
9843       # If the export-symbols file already is a .def file (1st line
9844       # is EXPORTS), use it as is; otherwise, prepend...
9845       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9846         cp $export_symbols $output_objdir/$soname.def;
9847       else
9848         echo EXPORTS > $output_objdir/$soname.def;
9849         cat $export_symbols >> $output_objdir/$soname.def;
9850       fi~
9851       $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'
9852     else
9853       ld_shlibs_CXX=no
9854     fi
9855   ;;
9856
9857   darwin* | rhapsody*)
9858    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9859     archive_cmds_need_lc_CXX=no
9860     case "$host_os" in
9861     rhapsody* | darwin1.[012])
9862       allow_undefined_flag_CXX='-undefined suppress'
9863       ;;
9864     *) # Darwin 1.3 on
9865       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9866       ;;
9867     esac
9868         lt_int_apple_cc_single_mod=no
9869         output_verbose_link_cmd='echo'
9870         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9871           lt_int_apple_cc_single_mod=yes
9872         fi
9873         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9874           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9875         else
9876         archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
9877       fi
9878       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9879
9880     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9881       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9882         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}'
9883       else
9884         archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
9885       fi
9886         module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9887     hardcode_direct_CXX=no
9888     hardcode_automatic_CXX=yes
9889     hardcode_shlibpath_var_CXX=unsupported
9890     whole_archive_flag_spec_CXX='-all_load $convenience'
9891     link_all_deplibs_CXX=yes
9892    fi
9893     ;;
9894
9895   dgux*)
9896     case $cc_basename in
9897       ec++)
9898         # FIXME: insert proper C++ library support
9899         ld_shlibs_CXX=no
9900         ;;
9901       ghcx)
9902         # Green Hills C++ Compiler
9903         # FIXME: insert proper C++ library support
9904         ld_shlibs_CXX=no
9905         ;;
9906       *)
9907         # FIXME: insert proper C++ library support
9908         ld_shlibs_CXX=no
9909         ;;
9910     esac
9911     ;;
9912   freebsd12*)
9913     # C++ shared libraries reported to be fairly broken before switch to ELF
9914     ld_shlibs_CXX=no
9915     ;;
9916   freebsd-elf*)
9917     archive_cmds_need_lc_CXX=no
9918     ;;
9919   freebsd*)
9920     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9921     # conventions
9922     ld_shlibs_CXX=yes
9923     ;;
9924   gnu*)
9925     ;;
9926   hpux9*)
9927     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9928     hardcode_libdir_separator_CXX=:
9929     export_dynamic_flag_spec_CXX='${wl}-E'
9930     hardcode_direct_CXX=yes
9931     hardcode_minus_L_CXX=yes # Not in the search PATH,
9932                                 # but as the default
9933                                 # location of the library.
9934
9935     case $cc_basename in
9936     CC)
9937       # FIXME: insert proper C++ library support
9938       ld_shlibs_CXX=no
9939       ;;
9940     aCC)
9941       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'
9942       # Commands to make compiler produce verbose output that lists
9943       # what "hidden" libraries, object files and flags are used when
9944       # linking a shared library.
9945       #
9946       # There doesn't appear to be a way to prevent this compiler from
9947       # explicitly linking system object files so we need to strip them
9948       # from the output so that they don't get included in the library
9949       # dependencies.
9950       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9951       ;;
9952     *)
9953       if test "$GXX" = yes; then
9954         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'
9955       else
9956         # FIXME: insert proper C++ library support
9957         ld_shlibs_CXX=no
9958       fi
9959       ;;
9960     esac
9961     ;;
9962   hpux10*|hpux11*)
9963     if test $with_gnu_ld = no; then
9964       case "$host_cpu" in
9965       hppa*64*)
9966         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9967         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9968         hardcode_libdir_separator_CXX=:
9969         ;;
9970       ia64*)
9971         hardcode_libdir_flag_spec_CXX='-L$libdir'
9972         ;;
9973       *)
9974         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9975         hardcode_libdir_separator_CXX=:
9976         export_dynamic_flag_spec_CXX='${wl}-E'
9977         ;;
9978       esac
9979     fi
9980     case "$host_cpu" in
9981     hppa*64*)
9982       hardcode_direct_CXX=no
9983       hardcode_shlibpath_var_CXX=no
9984       ;;
9985     ia64*)
9986       hardcode_direct_CXX=no
9987       hardcode_shlibpath_var_CXX=no
9988       hardcode_minus_L_CXX=yes # Not in the search PATH,
9989                                               # but as the default
9990                                               # location of the library.
9991       ;;
9992     *)
9993       hardcode_direct_CXX=yes
9994       hardcode_minus_L_CXX=yes # Not in the search PATH,
9995                                               # but as the default
9996                                               # location of the library.
9997       ;;
9998     esac
9999
10000     case $cc_basename in
10001       CC)
10002         # FIXME: insert proper C++ library support
10003         ld_shlibs_CXX=no
10004         ;;
10005       aCC)
10006         case "$host_cpu" in
10007         hppa*64*|ia64*)
10008           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10009           ;;
10010         *)
10011           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10012           ;;
10013         esac
10014         # Commands to make compiler produce verbose output that lists
10015         # what "hidden" libraries, object files and flags are used when
10016         # linking a shared library.
10017         #
10018         # There doesn't appear to be a way to prevent this compiler from
10019         # explicitly linking system object files so we need to strip them
10020         # from the output so that they don't get included in the library
10021         # dependencies.
10022         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'
10023         ;;
10024       *)
10025         if test "$GXX" = yes; then
10026           if test $with_gnu_ld = no; then
10027             case "$host_cpu" in
10028             ia64*|hppa*64*)
10029               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10030               ;;
10031             *)
10032               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'
10033               ;;
10034             esac
10035           fi
10036         else
10037           # FIXME: insert proper C++ library support
10038           ld_shlibs_CXX=no
10039         fi
10040         ;;
10041     esac
10042     ;;
10043   irix5* | irix6*)
10044     case $cc_basename in
10045       CC)
10046         # SGI C++
10047         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'
10048
10049         # Archives containing C++ object files must be created using
10050         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10051         # necessary to make sure instantiated templates are included
10052         # in the archive.
10053         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10054         ;;
10055       *)
10056         if test "$GXX" = yes; then
10057           if test "$with_gnu_ld" = no; then
10058             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'
10059           else
10060             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'
10061           fi
10062         fi
10063         link_all_deplibs_CXX=yes
10064         ;;
10065     esac
10066     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10067     hardcode_libdir_separator_CXX=:
10068     ;;
10069   linux*)
10070     case $cc_basename in
10071       KCC)
10072         # Kuck and Associates, Inc. (KAI) C++ Compiler
10073
10074         # KCC will only create a shared library if the output file
10075         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10076         # to its proper name (with version) after linking.
10077         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'
10078         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'
10079         # Commands to make compiler produce verbose output that lists
10080         # what "hidden" libraries, object files and flags are used when
10081         # linking a shared library.
10082         #
10083         # There doesn't appear to be a way to prevent this compiler from
10084         # explicitly linking system object files so we need to strip them
10085         # from the output so that they don't get included in the library
10086         # dependencies.
10087         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'
10088
10089         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10090         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10091
10092         # Archives containing C++ object files must be created using
10093         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10094         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10095         ;;
10096       icpc)
10097         # Intel C++
10098         with_gnu_ld=yes
10099         archive_cmds_need_lc_CXX=no
10100         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10101         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'
10102         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10103         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10104         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10105         ;;
10106       cxx)
10107         # Compaq C++
10108         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10109         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'
10110
10111         runpath_var=LD_RUN_PATH
10112         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10113         hardcode_libdir_separator_CXX=:
10114
10115         # Commands to make compiler produce verbose output that lists
10116         # what "hidden" libraries, object files and flags are used when
10117         # linking a shared library.
10118         #
10119         # There doesn't appear to be a way to prevent this compiler from
10120         # explicitly linking system object files so we need to strip them
10121         # from the output so that they don't get included in the library
10122         # dependencies.
10123         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'
10124         ;;
10125     esac
10126     ;;
10127   lynxos*)
10128     # FIXME: insert proper C++ library support
10129     ld_shlibs_CXX=no
10130     ;;
10131   m88k*)
10132     # FIXME: insert proper C++ library support
10133     ld_shlibs_CXX=no
10134     ;;
10135   mvs*)
10136     case $cc_basename in
10137       cxx)
10138         # FIXME: insert proper C++ library support
10139         ld_shlibs_CXX=no
10140         ;;
10141       *)
10142         # FIXME: insert proper C++ library support
10143         ld_shlibs_CXX=no
10144         ;;
10145     esac
10146     ;;
10147   netbsd*)
10148     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10149       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10150       wlarc=
10151       hardcode_libdir_flag_spec_CXX='-R$libdir'
10152       hardcode_direct_CXX=yes
10153       hardcode_shlibpath_var_CXX=no
10154     fi
10155     # Workaround some broken pre-1.5 toolchains
10156     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10157     ;;
10158   osf3*)
10159     case $cc_basename in
10160       KCC)
10161         # Kuck and Associates, Inc. (KAI) C++ Compiler
10162
10163         # KCC will only create a shared library if the output file
10164         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10165         # to its proper name (with version) after linking.
10166         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'
10167
10168         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10169         hardcode_libdir_separator_CXX=:
10170
10171         # Archives containing C++ object files must be created using
10172         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10173         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10174
10175         ;;
10176       RCC)
10177         # Rational C++ 2.4.1
10178         # FIXME: insert proper C++ library support
10179         ld_shlibs_CXX=no
10180         ;;
10181       cxx)
10182         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10183         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'
10184
10185         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10186         hardcode_libdir_separator_CXX=:
10187
10188         # Commands to make compiler produce verbose output that lists
10189         # what "hidden" libraries, object files and flags are used when
10190         # linking a shared library.
10191         #
10192         # There doesn't appear to be a way to prevent this compiler from
10193         # explicitly linking system object files so we need to strip them
10194         # from the output so that they don't get included in the library
10195         # dependencies.
10196         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'
10197         ;;
10198       *)
10199         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10200           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10201           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'
10202
10203           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10204           hardcode_libdir_separator_CXX=:
10205
10206           # Commands to make compiler produce verbose output that lists
10207           # what "hidden" libraries, object files and flags are used when
10208           # linking a shared library.
10209           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10210
10211         else
10212           # FIXME: insert proper C++ library support
10213           ld_shlibs_CXX=no
10214         fi
10215         ;;
10216     esac
10217     ;;
10218   osf4* | osf5*)
10219     case $cc_basename in
10220       KCC)
10221         # Kuck and Associates, Inc. (KAI) C++ Compiler
10222
10223         # KCC will only create a shared library if the output file
10224         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10225         # to its proper name (with version) after linking.
10226         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'
10227
10228         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10229         hardcode_libdir_separator_CXX=:
10230
10231         # Archives containing C++ object files must be created using
10232         # the KAI C++ compiler.
10233         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10234         ;;
10235       RCC)
10236         # Rational C++ 2.4.1
10237         # FIXME: insert proper C++ library support
10238         ld_shlibs_CXX=no
10239         ;;
10240       cxx)
10241         allow_undefined_flag_CXX=' -expect_unresolved \*'
10242         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'
10243         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10244           echo "-hidden">> $lib.exp~
10245           $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~
10246           $rm $lib.exp'
10247
10248         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10249         hardcode_libdir_separator_CXX=:
10250
10251         # Commands to make compiler produce verbose output that lists
10252         # what "hidden" libraries, object files and flags are used when
10253         # linking a shared library.
10254         #
10255         # There doesn't appear to be a way to prevent this compiler from
10256         # explicitly linking system object files so we need to strip them
10257         # from the output so that they don't get included in the library
10258         # dependencies.
10259         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'
10260         ;;
10261       *)
10262         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10263           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10264          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'
10265
10266           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10267           hardcode_libdir_separator_CXX=:
10268
10269           # Commands to make compiler produce verbose output that lists
10270           # what "hidden" libraries, object files and flags are used when
10271           # linking a shared library.
10272           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10273
10274         else
10275           # FIXME: insert proper C++ library support
10276           ld_shlibs_CXX=no
10277         fi
10278         ;;
10279     esac
10280     ;;
10281   psos*)
10282     # FIXME: insert proper C++ library support
10283     ld_shlibs_CXX=no
10284     ;;
10285   sco*)
10286     archive_cmds_need_lc_CXX=no
10287     case $cc_basename in
10288       CC)
10289         # FIXME: insert proper C++ library support
10290         ld_shlibs_CXX=no
10291         ;;
10292       *)
10293         # FIXME: insert proper C++ library support
10294         ld_shlibs_CXX=no
10295         ;;
10296     esac
10297     ;;
10298   sunos4*)
10299     case $cc_basename in
10300       CC)
10301         # Sun C++ 4.x
10302         # FIXME: insert proper C++ library support
10303         ld_shlibs_CXX=no
10304         ;;
10305       lcc)
10306         # Lucid
10307         # FIXME: insert proper C++ library support
10308         ld_shlibs_CXX=no
10309         ;;
10310       *)
10311         # FIXME: insert proper C++ library support
10312         ld_shlibs_CXX=no
10313         ;;
10314     esac
10315     ;;
10316   solaris*)
10317     case $cc_basename in
10318       CC)
10319         # Sun C++ 4.2, 5.x and Centerline C++
10320         no_undefined_flag_CXX=' -zdefs'
10321         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10322         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10323         $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'
10324
10325         hardcode_libdir_flag_spec_CXX='-R$libdir'
10326         hardcode_shlibpath_var_CXX=no
10327         case $host_os in
10328           solaris2.0-5 | solaris2.0-5.*) ;;
10329           *)
10330             # The C++ compiler is used as linker so we must use $wl
10331             # flag to pass the commands to the underlying system
10332             # linker.
10333             # Supported since Solaris 2.6 (maybe 2.5.1?)
10334             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10335             ;;
10336         esac
10337         link_all_deplibs_CXX=yes
10338
10339         # Commands to make compiler produce verbose output that lists
10340         # what "hidden" libraries, object files and flags are used when
10341         # linking a shared library.
10342         #
10343         # There doesn't appear to be a way to prevent this compiler from
10344         # explicitly linking system object files so we need to strip them
10345         # from the output so that they don't get included in the library
10346         # dependencies.
10347         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'
10348
10349         # Archives containing C++ object files must be created using
10350         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10351         # necessary to make sure instantiated templates are included
10352         # in the archive.
10353         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10354         ;;
10355       gcx)
10356         # Green Hills C++ Compiler
10357         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10358
10359         # The C++ compiler must be used to create the archive.
10360         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10361         ;;
10362       *)
10363         # GNU C++ compiler with Solaris linker
10364         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10365           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10366           if $CC --version | grep -v '^2\.7' > /dev/null; then
10367             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10368             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10369                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10370
10371             # Commands to make compiler produce verbose output that lists
10372             # what "hidden" libraries, object files and flags are used when
10373             # linking a shared library.
10374             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10375           else
10376             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10377             # platform.
10378             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10379             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10380                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10381
10382             # Commands to make compiler produce verbose output that lists
10383             # what "hidden" libraries, object files and flags are used when
10384             # linking a shared library.
10385             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10386           fi
10387
10388           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10389         fi
10390         ;;
10391     esac
10392     ;;
10393   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10394     archive_cmds_need_lc_CXX=no
10395     ;;
10396   tandem*)
10397     case $cc_basename in
10398       NCC)
10399         # NonStop-UX NCC 3.20
10400         # FIXME: insert proper C++ library support
10401         ld_shlibs_CXX=no
10402         ;;
10403       *)
10404         # FIXME: insert proper C++ library support
10405         ld_shlibs_CXX=no
10406         ;;
10407     esac
10408     ;;
10409   vxworks*)
10410     # FIXME: insert proper C++ library support
10411     ld_shlibs_CXX=no
10412     ;;
10413   *)
10414     # FIXME: insert proper C++ library support
10415     ld_shlibs_CXX=no
10416     ;;
10417 esac
10418 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10419 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10420 test "$ld_shlibs_CXX" = no && can_build_shared=no
10421
10422 GCC_CXX="$GXX"
10423 LD_CXX="$LD"
10424
10425 ## CAVEAT EMPTOR:
10426 ## There is no encapsulation within the following macros, do not change
10427 ## the running order or otherwise move them around unless you know exactly
10428 ## what you are doing...
10429
10430 cat > conftest.$ac_ext <<EOF
10431 class Foo
10432 {
10433 public:
10434   Foo (void) { a = 0; }
10435 private:
10436   int a;
10437 };
10438 EOF
10439
10440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10441   (eval $ac_compile) 2>&5
10442   ac_status=$?
10443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444   (exit $ac_status); }; then
10445   # Parse the compiler output and extract the necessary
10446   # objects, libraries and library flags.
10447
10448   # Sentinel used to keep track of whether or not we are before
10449   # the conftest object file.
10450   pre_test_object_deps_done=no
10451
10452   # The `*' in the case matches for architectures that use `case' in
10453   # $output_verbose_cmd can trigger glob expansion during the loop
10454   # eval without this substitution.
10455   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10456
10457   for p in `eval $output_verbose_link_cmd`; do
10458     case $p in
10459
10460     -L* | -R* | -l*)
10461        # Some compilers place space between "-{L,R}" and the path.
10462        # Remove the space.
10463        if test $p = "-L" \
10464           || test $p = "-R"; then
10465          prev=$p
10466          continue
10467        else
10468          prev=
10469        fi
10470
10471        if test "$pre_test_object_deps_done" = no; then
10472          case $p in
10473          -L* | -R*)
10474            # Internal compiler library paths should come after those
10475            # provided the user.  The postdeps already come after the
10476            # user supplied libs so there is no need to process them.
10477            if test -z "$compiler_lib_search_path_CXX"; then
10478              compiler_lib_search_path_CXX="${prev}${p}"
10479            else
10480              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10481            fi
10482            ;;
10483          # The "-l" case would never come before the object being
10484          # linked, so don't bother handling this case.
10485          esac
10486        else
10487          if test -z "$postdeps_CXX"; then
10488            postdeps_CXX="${prev}${p}"
10489          else
10490            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10491          fi
10492        fi
10493        ;;
10494
10495     *.$objext)
10496        # This assumes that the test object file only shows up
10497        # once in the compiler output.
10498        if test "$p" = "conftest.$objext"; then
10499          pre_test_object_deps_done=yes
10500          continue
10501        fi
10502
10503        if test "$pre_test_object_deps_done" = no; then
10504          if test -z "$predep_objects_CXX"; then
10505            predep_objects_CXX="$p"
10506          else
10507            predep_objects_CXX="$predep_objects_CXX $p"
10508          fi
10509        else
10510          if test -z "$postdep_objects_CXX"; then
10511            postdep_objects_CXX="$p"
10512          else
10513            postdep_objects_CXX="$postdep_objects_CXX $p"
10514          fi
10515        fi
10516        ;;
10517
10518     *) ;; # Ignore the rest.
10519
10520     esac
10521   done
10522
10523   # Clean up.
10524   rm -f a.out a.exe
10525 else
10526   echo "libtool.m4: error: problem compiling CXX test program"
10527 fi
10528
10529 $rm -f confest.$objext
10530
10531 case " $postdeps_CXX " in
10532 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10533 esac
10534
10535 lt_prog_compiler_wl_CXX=
10536 lt_prog_compiler_pic_CXX=
10537 lt_prog_compiler_static_CXX=
10538
10539 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10540 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10541
10542   # C++ specific cases for pic, static, wl, etc.
10543   if test "$GXX" = yes; then
10544     lt_prog_compiler_wl_CXX='-Wl,'
10545     lt_prog_compiler_static_CXX='-static'
10546
10547     case $host_os in
10548     aix*)
10549       # All AIX code is PIC.
10550       if test "$host_cpu" = ia64; then
10551         # AIX 5 now supports IA64 processor
10552         lt_prog_compiler_static_CXX='-Bstatic'
10553       fi
10554       ;;
10555     amigaos*)
10556       # FIXME: we need at least 68020 code to build shared libraries, but
10557       # adding the `-m68020' flag to GCC prevents building anything better,
10558       # like `-m68040'.
10559       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10560       ;;
10561     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10562       # PIC is the default for these OSes.
10563       ;;
10564     mingw* | os2* | pw32*)
10565       # This hack is so that the source file can tell whether it is being
10566       # built for inclusion in a dll (and should export symbols for example).
10567       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10568       ;;
10569     darwin* | rhapsody*)
10570       # PIC is the default on this platform
10571       # Common symbols not allowed in MH_DYLIB files
10572       lt_prog_compiler_pic_CXX='-fno-common'
10573       ;;
10574     *djgpp*)
10575       # DJGPP does not support shared libraries at all
10576       lt_prog_compiler_pic_CXX=
10577       ;;
10578     sysv4*MP*)
10579       if test -d /usr/nec; then
10580         lt_prog_compiler_pic_CXX=-Kconform_pic
10581       fi
10582       ;;
10583     hpux*)
10584       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10585       # not for PA HP-UX.
10586       case "$host_cpu" in
10587       hppa*64*|ia64*)
10588         ;;
10589       *)
10590         lt_prog_compiler_pic_CXX='-fPIC'
10591         ;;
10592       esac
10593       ;;
10594     *)
10595       lt_prog_compiler_pic_CXX='-fPIC'
10596       ;;
10597     esac
10598   else
10599     case $host_os in
10600       aix4* | aix5*)
10601         # All AIX code is PIC.
10602         if test "$host_cpu" = ia64; then
10603           # AIX 5 now supports IA64 processor
10604           lt_prog_compiler_static_CXX='-Bstatic'
10605         else
10606           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10607         fi
10608         ;;
10609       chorus*)
10610         case $cc_basename in
10611         cxch68)
10612           # Green Hills C++ Compiler
10613           # _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"
10614           ;;
10615         esac
10616         ;;
10617       dgux*)
10618         case $cc_basename in
10619           ec++)
10620             lt_prog_compiler_pic_CXX='-KPIC'
10621             ;;
10622           ghcx)
10623             # Green Hills C++ Compiler
10624             lt_prog_compiler_pic_CXX='-pic'
10625             ;;
10626           *)
10627             ;;
10628         esac
10629         ;;
10630       freebsd*)
10631         # FreeBSD uses GNU C++
10632         ;;
10633       hpux9* | hpux10* | hpux11*)
10634         case $cc_basename in
10635           CC)
10636             lt_prog_compiler_wl_CXX='-Wl,'
10637             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10638             if test "$host_cpu" != ia64; then
10639               lt_prog_compiler_pic_CXX='+Z'
10640             fi
10641             ;;
10642           aCC)
10643             lt_prog_compiler_wl_CXX='-Wl,'
10644             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10645             case "$host_cpu" in
10646             hppa*64*|ia64*)
10647               # +Z the default
10648               ;;
10649             *)
10650               lt_prog_compiler_pic_CXX='+Z'
10651               ;;
10652             esac
10653             ;;
10654           *)
10655             ;;
10656         esac
10657         ;;
10658       irix5* | irix6* | nonstopux*)
10659         case $cc_basename in
10660           CC)
10661             lt_prog_compiler_wl_CXX='-Wl,'
10662             lt_prog_compiler_static_CXX='-non_shared'
10663             # CC pic flag -KPIC is the default.
10664             ;;
10665           *)
10666             ;;
10667         esac
10668         ;;
10669       linux*)
10670         case $cc_basename in
10671           KCC)
10672             # KAI C++ Compiler
10673             lt_prog_compiler_wl_CXX='--backend -Wl,'
10674             lt_prog_compiler_pic_CXX='-fPIC'
10675             ;;
10676           icpc)
10677             # Intel C++
10678             lt_prog_compiler_wl_CXX='-Wl,'
10679             lt_prog_compiler_pic_CXX='-KPIC'
10680             lt_prog_compiler_static_CXX='-static'
10681             ;;
10682           cxx)
10683             # Compaq C++
10684             # Make sure the PIC flag is empty.  It appears that all Alpha
10685             # Linux and Compaq Tru64 Unix objects are PIC.
10686             lt_prog_compiler_pic_CXX=
10687             lt_prog_compiler_static_CXX='-non_shared'
10688             ;;
10689           *)
10690             ;;
10691         esac
10692         ;;
10693       lynxos*)
10694         ;;
10695       m88k*)
10696         ;;
10697       mvs*)
10698         case $cc_basename in
10699           cxx)
10700             lt_prog_compiler_pic_CXX='-W c,exportall'
10701             ;;
10702           *)
10703             ;;
10704         esac
10705         ;;
10706       netbsd*)
10707         ;;
10708       osf3* | osf4* | osf5*)
10709         case $cc_basename in
10710           KCC)
10711             lt_prog_compiler_wl_CXX='--backend -Wl,'
10712             ;;
10713           RCC)
10714             # Rational C++ 2.4.1
10715             lt_prog_compiler_pic_CXX='-pic'
10716             ;;
10717           cxx)
10718             # Digital/Compaq C++
10719             lt_prog_compiler_wl_CXX='-Wl,'
10720             # Make sure the PIC flag is empty.  It appears that all Alpha
10721             # Linux and Compaq Tru64 Unix objects are PIC.
10722             lt_prog_compiler_pic_CXX=
10723             lt_prog_compiler_static_CXX='-non_shared'
10724             ;;
10725           *)
10726             ;;
10727         esac
10728         ;;
10729       psos*)
10730         ;;
10731       sco*)
10732         case $cc_basename in
10733           CC)
10734             lt_prog_compiler_pic_CXX='-fPIC'
10735             ;;
10736           *)
10737             ;;
10738         esac
10739         ;;
10740       solaris*)
10741         case $cc_basename in
10742           CC)
10743             # Sun C++ 4.2, 5.x and Centerline C++
10744             lt_prog_compiler_pic_CXX='-KPIC'
10745             lt_prog_compiler_static_CXX='-Bstatic'
10746             lt_prog_compiler_wl_CXX='-Qoption ld '
10747             ;;
10748           gcx)
10749             # Green Hills C++ Compiler
10750             lt_prog_compiler_pic_CXX='-PIC'
10751             ;;
10752           *)
10753             ;;
10754         esac
10755         ;;
10756       sunos4*)
10757         case $cc_basename in
10758           CC)
10759             # Sun C++ 4.x
10760             lt_prog_compiler_pic_CXX='-pic'
10761             lt_prog_compiler_static_CXX='-Bstatic'
10762             ;;
10763           lcc)
10764             # Lucid
10765             lt_prog_compiler_pic_CXX='-pic'
10766             ;;
10767           *)
10768             ;;
10769         esac
10770         ;;
10771       tandem*)
10772         case $cc_basename in
10773           NCC)
10774             # NonStop-UX NCC 3.20
10775             lt_prog_compiler_pic_CXX='-KPIC'
10776             ;;
10777           *)
10778             ;;
10779         esac
10780         ;;
10781       unixware*)
10782         ;;
10783       vxworks*)
10784         ;;
10785       *)
10786         lt_prog_compiler_can_build_shared_CXX=no
10787         ;;
10788     esac
10789   fi
10790
10791 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10792 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10793
10794 #
10795 # Check to make sure the PIC flag actually works.
10796 #
10797 if test -n "$lt_prog_compiler_pic_CXX"; then
10798   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10799 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10800 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10801   echo $ECHO_N "(cached) $ECHO_C" >&6
10802 else
10803   lt_prog_compiler_pic_works_CXX=no
10804   ac_outfile=conftest.$ac_objext
10805    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10806    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10807    # Insert the option either (1) after the last *FLAGS variable, or
10808    # (2) before a word containing "conftest.", or (3) at the end.
10809    # Note that $ac_compile itself does not contain backslashes and begins
10810    # with a dollar sign (not a hyphen), so the echo should work correctly.
10811    # The option is referenced via a variable to avoid confusing sed.
10812    lt_compile=`echo "$ac_compile" | $SED \
10813    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10814    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10815    -e 's:$: $lt_compiler_flag:'`
10816    (eval echo "\"\$as_me:10816: $lt_compile\"" >&5)
10817    (eval "$lt_compile" 2>conftest.err)
10818    ac_status=$?
10819    cat conftest.err >&5
10820    echo "$as_me:10820: \$? = $ac_status" >&5
10821    if (exit $ac_status) && test -s "$ac_outfile"; then
10822      # The compiler can only warn and ignore the option if not recognized
10823      # So say no if there are warnings
10824      if test ! -s conftest.err; then
10825        lt_prog_compiler_pic_works_CXX=yes
10826      fi
10827    fi
10828    $rm conftest*
10829
10830 fi
10831 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10832 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10833
10834 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10835     case $lt_prog_compiler_pic_CXX in
10836      "" | " "*) ;;
10837      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10838      esac
10839 else
10840     lt_prog_compiler_pic_CXX=
10841      lt_prog_compiler_can_build_shared_CXX=no
10842 fi
10843
10844 fi
10845 case "$host_os" in
10846   # For platforms which do not support PIC, -DPIC is meaningless:
10847   *djgpp*)
10848     lt_prog_compiler_pic_CXX=
10849     ;;
10850   *)
10851     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10852     ;;
10853 esac
10854
10855 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10856 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10857 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10858   echo $ECHO_N "(cached) $ECHO_C" >&6
10859 else
10860   lt_cv_prog_compiler_c_o_CXX=no
10861    $rm -r conftest 2>/dev/null
10862    mkdir conftest
10863    cd conftest
10864    mkdir out
10865    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10866
10867    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10868    # that will create temporary files in the current directory regardless of
10869    # the output directory.  Thus, making CWD read-only will cause this test
10870    # to fail, enabling locking or at least warning the user not to do parallel
10871    # builds.
10872    chmod -w .
10873
10874    lt_compiler_flag="-o out/conftest2.$ac_objext"
10875    # Insert the option either (1) after the last *FLAGS variable, or
10876    # (2) before a word containing "conftest.", or (3) at the end.
10877    # Note that $ac_compile itself does not contain backslashes and begins
10878    # with a dollar sign (not a hyphen), so the echo should work correctly.
10879    lt_compile=`echo "$ac_compile" | $SED \
10880    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10881    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10882    -e 's:$: $lt_compiler_flag:'`
10883    (eval echo "\"\$as_me:10883: $lt_compile\"" >&5)
10884    (eval "$lt_compile" 2>out/conftest.err)
10885    ac_status=$?
10886    cat out/conftest.err >&5
10887    echo "$as_me:10887: \$? = $ac_status" >&5
10888    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10889    then
10890      # The compiler can only warn and ignore the option if not recognized
10891      # So say no if there are warnings
10892      if test ! -s out/conftest.err; then
10893        lt_cv_prog_compiler_c_o_CXX=yes
10894      fi
10895    fi
10896    chmod u+w .
10897    $rm conftest* out/*
10898    rmdir out
10899    cd ..
10900    rmdir conftest
10901    $rm conftest*
10902
10903 fi
10904 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10905 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10906
10907
10908 hard_links="nottested"
10909 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10910   # do not overwrite the value of need_locks provided by the user
10911   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10912 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10913   hard_links=yes
10914   $rm conftest*
10915   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10916   touch conftest.a
10917   ln conftest.a conftest.b 2>&5 || hard_links=no
10918   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10919   echo "$as_me:$LINENO: result: $hard_links" >&5
10920 echo "${ECHO_T}$hard_links" >&6
10921   if test "$hard_links" = no; then
10922     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10923 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10924     need_locks=warn
10925   fi
10926 else
10927   need_locks=no
10928 fi
10929
10930 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10931 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10932
10933   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10934   case $host_os in
10935   aix4* | aix5*)
10936     # If we're using GNU nm, then we don't want the "-C" option.
10937     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10938     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10939       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'
10940     else
10941       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'
10942     fi
10943     ;;
10944   pw32*)
10945     export_symbols_cmds_CXX="$ltdll_cmds"
10946   ;;
10947   cygwin* | mingw*)
10948     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10949   ;;
10950   *)
10951     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10952   ;;
10953   esac
10954
10955 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10956 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10957 test "$ld_shlibs_CXX" = no && can_build_shared=no
10958
10959 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10960 if test "$GCC" = yes; then
10961   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10962 fi
10963
10964 #
10965 # Do we need to explicitly link libc?
10966 #
10967 case "x$archive_cmds_need_lc_CXX" in
10968 x|xyes)
10969   # Assume -lc should be added
10970   archive_cmds_need_lc_CXX=yes
10971
10972   if test "$enable_shared" = yes && test "$GCC" = yes; then
10973     case $archive_cmds_CXX in
10974     *'~'*)
10975       # FIXME: we may have to deal with multi-command sequences.
10976       ;;
10977     '$CC '*)
10978       # Test whether the compiler implicitly links with -lc since on some
10979       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10980       # to ld, don't add -lc before -lgcc.
10981       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10982 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10983       $rm conftest*
10984       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10985
10986       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10987   (eval $ac_compile) 2>&5
10988   ac_status=$?
10989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990   (exit $ac_status); } 2>conftest.err; then
10991         soname=conftest
10992         lib=conftest
10993         libobjs=conftest.$ac_objext
10994         deplibs=
10995         wl=$lt_prog_compiler_wl_CXX
10996         compiler_flags=-v
10997         linker_flags=-v
10998         verstring=
10999         output_objdir=.
11000         libname=conftest
11001         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11002         allow_undefined_flag_CXX=
11003         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11004   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11005   ac_status=$?
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); }
11008         then
11009           archive_cmds_need_lc_CXX=no
11010         else
11011           archive_cmds_need_lc_CXX=yes
11012         fi
11013         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11014       else
11015         cat conftest.err 1>&5
11016       fi
11017       $rm conftest*
11018       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11019 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11020       ;;
11021     esac
11022   fi
11023   ;;
11024 esac
11025
11026 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11027 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11028 hardcode_action_CXX=
11029 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11030    test -n "$runpath_var CXX" || \
11031    test "X$hardcode_automatic_CXX"="Xyes" ; then
11032
11033   # We can hardcode non-existant directories.
11034   if test "$hardcode_direct_CXX" != no &&
11035      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11036      # have to relink, otherwise we might link with an installed library
11037      # when we should be linking with a yet-to-be-installed one
11038      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11039      test "$hardcode_minus_L_CXX" != no; then
11040     # Linking always hardcodes the temporary library directory.
11041     hardcode_action_CXX=relink
11042   else
11043     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11044     hardcode_action_CXX=immediate
11045   fi
11046 else
11047   # We cannot hardcode anything, or else we can only hardcode existing
11048   # directories.
11049   hardcode_action_CXX=unsupported
11050 fi
11051 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11052 echo "${ECHO_T}$hardcode_action_CXX" >&6
11053
11054 if test "$hardcode_action_CXX" = relink; then
11055   # Fast installation is not supported
11056   enable_fast_install=no
11057 elif test "$shlibpath_overrides_runpath" = yes ||
11058      test "$enable_shared" = no; then
11059   # Fast installation is not necessary
11060   enable_fast_install=needless
11061 fi
11062
11063 striplib=
11064 old_striplib=
11065 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11066 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11067 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11068   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11069   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11070   echo "$as_me:$LINENO: result: yes" >&5
11071 echo "${ECHO_T}yes" >&6
11072 else
11073 # FIXME - insert some real tests, host_os isn't really good enough
11074   case $host_os in
11075    darwin*)
11076        if test -n "$STRIP" ; then
11077          striplib="$STRIP -x"
11078          echo "$as_me:$LINENO: result: yes" >&5
11079 echo "${ECHO_T}yes" >&6
11080        else
11081   echo "$as_me:$LINENO: result: no" >&5
11082 echo "${ECHO_T}no" >&6
11083 fi
11084        ;;
11085    *)
11086   echo "$as_me:$LINENO: result: no" >&5
11087 echo "${ECHO_T}no" >&6
11088     ;;
11089   esac
11090 fi
11091
11092 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11093 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11094 library_names_spec=
11095 libname_spec='lib$name'
11096 soname_spec=
11097 shrext=".so"
11098 postinstall_cmds=
11099 postuninstall_cmds=
11100 finish_cmds=
11101 finish_eval=
11102 shlibpath_var=
11103 shlibpath_overrides_runpath=unknown
11104 version_type=none
11105 dynamic_linker="$host_os ld.so"
11106 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11107 if test "$GCC" = yes; then
11108   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11109   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11110     # if the path contains ";" then we assume it to be the separator
11111     # otherwise default to the standard path separator (i.e. ":") - it is
11112     # assumed that no part of a normal pathname contains ";" but that should
11113     # okay in the real world where ";" in dirpaths is itself problematic.
11114     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11115   else
11116     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11117   fi
11118 else
11119   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11120 fi
11121 need_lib_prefix=unknown
11122 hardcode_into_libs=no
11123
11124 # when you set need_version to no, make sure it does not cause -set_version
11125 # flags to be left without arguments
11126 need_version=unknown
11127
11128 case $host_os in
11129 aix3*)
11130   version_type=linux
11131   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11132   shlibpath_var=LIBPATH
11133
11134   # AIX 3 has no versioning support, so we append a major version to the name.
11135   soname_spec='${libname}${release}${shared_ext}$major'
11136   ;;
11137
11138 aix4* | aix5*)
11139   version_type=linux
11140   need_lib_prefix=no
11141   need_version=no
11142   hardcode_into_libs=yes
11143   if test "$host_cpu" = ia64; then
11144     # AIX 5 supports IA64
11145     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11146     shlibpath_var=LD_LIBRARY_PATH
11147   else
11148     # With GCC up to 2.95.x, collect2 would create an import file
11149     # for dependence libraries.  The import file would start with
11150     # the line `#! .'.  This would cause the generated library to
11151     # depend on `.', always an invalid library.  This was fixed in
11152     # development snapshots of GCC prior to 3.0.
11153     case $host_os in
11154       aix4 | aix4.[01] | aix4.[01].*)
11155       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11156            echo ' yes '
11157            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11158         :
11159       else
11160         can_build_shared=no
11161       fi
11162       ;;
11163     esac
11164     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11165     # soname into executable. Probably we can add versioning support to
11166     # collect2, so additional links can be useful in future.
11167     if test "$aix_use_runtimelinking" = yes; then
11168       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11169       # instead of lib<name>.a to let people know that these are not
11170       # typical AIX shared libraries.
11171       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11172     else
11173       # We preserve .a as extension for shared libraries through AIX4.2
11174       # and later when we are not doing run time linking.
11175       library_names_spec='${libname}${release}.a $libname.a'
11176       soname_spec='${libname}${release}${shared_ext}$major'
11177     fi
11178     shlibpath_var=LIBPATH
11179   fi
11180   ;;
11181
11182 amigaos*)
11183   library_names_spec='$libname.ixlibrary $libname.a'
11184   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11185   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'
11186   ;;
11187
11188 beos*)
11189   library_names_spec='${libname}${shared_ext}'
11190   dynamic_linker="$host_os ld.so"
11191   shlibpath_var=LIBRARY_PATH
11192   ;;
11193
11194 bsdi4*)
11195   version_type=linux
11196   need_version=no
11197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11198   soname_spec='${libname}${release}${shared_ext}$major'
11199   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11200   shlibpath_var=LD_LIBRARY_PATH
11201   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11202   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11203   # the default ld.so.conf also contains /usr/contrib/lib and
11204   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11205   # libtool to hard-code these into programs
11206   ;;
11207
11208 cygwin* | mingw* | pw32*)
11209   version_type=windows
11210   shrext=".dll"
11211   need_version=no
11212   need_lib_prefix=no
11213
11214   case $GCC,$host_os in
11215   yes,cygwin* | yes,mingw* | yes,pw32*)
11216     library_names_spec='$libname.dll.a'
11217     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11218     postinstall_cmds='base_file=`basename \${file}`~
11219       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11220       dldir=$destdir/`dirname \$dlpath`~
11221       test -d \$dldir || mkdir -p \$dldir~
11222       $install_prog $dir/$dlname \$dldir/$dlname'
11223     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11224       dlpath=$dir/\$dldll~
11225        $rm \$dlpath'
11226     shlibpath_overrides_runpath=yes
11227
11228     case $host_os in
11229     cygwin*)
11230       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11231       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11232       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11233       ;;
11234     mingw*)
11235       # MinGW DLLs use traditional 'lib' prefix
11236       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11237       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11238       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11239         # It is most probably a Windows format PATH printed by
11240         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11241         # path with ; separators, and with drive letters. We can handle the
11242         # drive letters (cygwin fileutils understands them), so leave them,
11243         # especially as we might pass files found there to a mingw objdump,
11244         # which wouldn't understand a cygwinified path. Ahh.
11245         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11246       else
11247         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11248       fi
11249       ;;
11250     pw32*)
11251       # pw32 DLLs use 'pw' prefix rather than 'lib'
11252       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11253       ;;
11254     esac
11255     ;;
11256
11257   *)
11258     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11259     ;;
11260   esac
11261   dynamic_linker='Win32 ld.exe'
11262   # FIXME: first we should search . and the directory the executable is in
11263   shlibpath_var=PATH
11264   ;;
11265
11266 darwin* | rhapsody*)
11267   dynamic_linker="$host_os dyld"
11268   version_type=darwin
11269   need_lib_prefix=no
11270   need_version=no
11271   # FIXME: Relying on posixy $() will cause problems for
11272   #        cross-compilation, but unfortunately the echo tests do not
11273   #        yet detect zsh echo's removal of \ escapes.
11274   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11275   soname_spec='${libname}${release}${major}$shared_ext'
11276   shlibpath_overrides_runpath=yes
11277   shlibpath_var=DYLD_LIBRARY_PATH
11278   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11279   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11280   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11281   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"`
11282   fi
11283   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11284   ;;
11285
11286 dgux*)
11287   version_type=linux
11288   need_lib_prefix=no
11289   need_version=no
11290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11291   soname_spec='${libname}${release}${shared_ext}$major'
11292   shlibpath_var=LD_LIBRARY_PATH
11293   ;;
11294
11295 freebsd1*)
11296   dynamic_linker=no
11297   ;;
11298
11299 freebsd*)
11300   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11301   version_type=freebsd-$objformat
11302   case $version_type in
11303     freebsd-elf*)
11304       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11305       need_version=no
11306       need_lib_prefix=no
11307       ;;
11308     freebsd-*)
11309       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11310       need_version=yes
11311       ;;
11312   esac
11313   shlibpath_var=LD_LIBRARY_PATH
11314   case $host_os in
11315   freebsd2*)
11316     shlibpath_overrides_runpath=yes
11317     ;;
11318   freebsd3.01* | freebsdelf3.01*)
11319     shlibpath_overrides_runpath=yes
11320     hardcode_into_libs=yes
11321     ;;
11322   *) # from 3.2 on
11323     shlibpath_overrides_runpath=no
11324     hardcode_into_libs=yes
11325     ;;
11326   esac
11327   ;;
11328
11329 gnu*)
11330   version_type=linux
11331   need_lib_prefix=no
11332   need_version=no
11333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11334   soname_spec='${libname}${release}${shared_ext}$major'
11335   shlibpath_var=LD_LIBRARY_PATH
11336   hardcode_into_libs=yes
11337   ;;
11338
11339 hpux9* | hpux10* | hpux11*)
11340   # Give a soname corresponding to the major version so that dld.sl refuses to
11341   # link against other versions.
11342   version_type=sunos
11343   need_lib_prefix=no
11344   need_version=no
11345   case "$host_cpu" in
11346   ia64*)
11347     shrext='.so'
11348     hardcode_into_libs=yes
11349     dynamic_linker="$host_os dld.so"
11350     shlibpath_var=LD_LIBRARY_PATH
11351     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11352     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11353     soname_spec='${libname}${release}${shared_ext}$major'
11354     if test "X$HPUX_IA64_MODE" = X32; then
11355       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11356     else
11357       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11358     fi
11359     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11360     ;;
11361    hppa*64*)
11362      shrext='.sl'
11363      hardcode_into_libs=yes
11364      dynamic_linker="$host_os dld.sl"
11365      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11366      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11367      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11368      soname_spec='${libname}${release}${shared_ext}$major'
11369      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11370      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11371      ;;
11372    *)
11373     shrext='.sl'
11374     dynamic_linker="$host_os dld.sl"
11375     shlibpath_var=SHLIB_PATH
11376     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11377     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378     soname_spec='${libname}${release}${shared_ext}$major'
11379     ;;
11380   esac
11381   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11382   postinstall_cmds='chmod 555 $lib'
11383   ;;
11384
11385 irix5* | irix6* | nonstopux*)
11386   case $host_os in
11387     nonstopux*) version_type=nonstopux ;;
11388     *)
11389         if test "$lt_cv_prog_gnu_ld" = yes; then
11390                 version_type=linux
11391         else
11392                 version_type=irix
11393         fi ;;
11394   esac
11395   need_lib_prefix=no
11396   need_version=no
11397   soname_spec='${libname}${release}${shared_ext}$major'
11398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11399   case $host_os in
11400   irix5* | nonstopux*)
11401     libsuff= shlibsuff=
11402     ;;
11403   *)
11404     case $LD in # libtool.m4 will add one of these switches to LD
11405     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11406       libsuff= shlibsuff= libmagic=32-bit;;
11407     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11408       libsuff=32 shlibsuff=N32 libmagic=N32;;
11409     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11410       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11411     *) libsuff= shlibsuff= libmagic=never-match;;
11412     esac
11413     ;;
11414   esac
11415   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11416   shlibpath_overrides_runpath=no
11417   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11418   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11419   hardcode_into_libs=yes
11420   ;;
11421
11422 # No shared lib support for Linux oldld, aout, or coff.
11423 linux*oldld* | linux*aout* | linux*coff*)
11424   dynamic_linker=no
11425   ;;
11426
11427 # This must be Linux ELF.
11428 linux*)
11429   version_type=linux
11430   need_lib_prefix=no
11431   need_version=no
11432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11433   soname_spec='${libname}${release}${shared_ext}$major'
11434   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11435   shlibpath_var=LD_LIBRARY_PATH
11436   shlibpath_overrides_runpath=no
11437   # This implies no fast_install, which is unacceptable.
11438   # Some rework will be needed to allow for fast_install
11439   # before this can be enabled.
11440   hardcode_into_libs=yes
11441
11442   # We used to test for /lib/ld.so.1 and disable shared libraries on
11443   # powerpc, because MkLinux only supported shared libraries with the
11444   # GNU dynamic linker.  Since this was broken with cross compilers,
11445   # most powerpc-linux boxes support dynamic linking these days and
11446   # people can always --disable-shared, the test was removed, and we
11447   # assume the GNU/Linux dynamic linker is in use.
11448   dynamic_linker='GNU/Linux ld.so'
11449   ;;
11450
11451 netbsd*)
11452   version_type=sunos
11453   need_lib_prefix=no
11454   need_version=no
11455   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11456     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11457     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11458     dynamic_linker='NetBSD (a.out) ld.so'
11459   else
11460     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11461     soname_spec='${libname}${release}${shared_ext}$major'
11462     dynamic_linker='NetBSD ld.elf_so'
11463   fi
11464   shlibpath_var=LD_LIBRARY_PATH
11465   shlibpath_overrides_runpath=yes
11466   hardcode_into_libs=yes
11467   ;;
11468
11469 newsos6)
11470   version_type=linux
11471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11472   shlibpath_var=LD_LIBRARY_PATH
11473   shlibpath_overrides_runpath=yes
11474   ;;
11475
11476 nto-qnx)
11477   version_type=linux
11478   need_lib_prefix=no
11479   need_version=no
11480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11481   soname_spec='${libname}${release}${shared_ext}$major'
11482   shlibpath_var=LD_LIBRARY_PATH
11483   shlibpath_overrides_runpath=yes
11484   ;;
11485
11486 openbsd*)
11487   version_type=sunos
11488   need_lib_prefix=no
11489   need_version=no
11490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11491   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11492   shlibpath_var=LD_LIBRARY_PATH
11493   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11494     case $host_os in
11495       openbsd2.[89] | openbsd2.[89].*)
11496         shlibpath_overrides_runpath=no
11497         ;;
11498       *)
11499         shlibpath_overrides_runpath=yes
11500         ;;
11501       esac
11502   else
11503     shlibpath_overrides_runpath=yes
11504   fi
11505   ;;
11506
11507 os2*)
11508   libname_spec='$name'
11509   shrext=".dll"
11510   need_lib_prefix=no
11511   library_names_spec='$libname${shared_ext} $libname.a'
11512   dynamic_linker='OS/2 ld.exe'
11513   shlibpath_var=LIBPATH
11514   ;;
11515
11516 osf3* | osf4* | osf5*)
11517   version_type=osf
11518   need_lib_prefix=no
11519   need_version=no
11520   soname_spec='${libname}${release}${shared_ext}$major'
11521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11522   shlibpath_var=LD_LIBRARY_PATH
11523   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11524   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11525   ;;
11526
11527 sco3.2v5*)
11528   version_type=osf
11529   soname_spec='${libname}${release}${shared_ext}$major'
11530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11531   shlibpath_var=LD_LIBRARY_PATH
11532   ;;
11533
11534 solaris*)
11535   version_type=linux
11536   need_lib_prefix=no
11537   need_version=no
11538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11539   soname_spec='${libname}${release}${shared_ext}$major'
11540   shlibpath_var=LD_LIBRARY_PATH
11541   shlibpath_overrides_runpath=yes
11542   hardcode_into_libs=yes
11543   # ldd complains unless libraries are executable
11544   postinstall_cmds='chmod +x $lib'
11545   ;;
11546
11547 sunos4*)
11548   version_type=sunos
11549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11550   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11551   shlibpath_var=LD_LIBRARY_PATH
11552   shlibpath_overrides_runpath=yes
11553   if test "$with_gnu_ld" = yes; then
11554     need_lib_prefix=no
11555   fi
11556   need_version=yes
11557   ;;
11558
11559 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11560   version_type=linux
11561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11562   soname_spec='${libname}${release}${shared_ext}$major'
11563   shlibpath_var=LD_LIBRARY_PATH
11564   case $host_vendor in
11565     sni)
11566       shlibpath_overrides_runpath=no
11567       need_lib_prefix=no
11568       export_dynamic_flag_spec='${wl}-Blargedynsym'
11569       runpath_var=LD_RUN_PATH
11570       ;;
11571     siemens)
11572       need_lib_prefix=no
11573       ;;
11574     motorola)
11575       need_lib_prefix=no
11576       need_version=no
11577       shlibpath_overrides_runpath=no
11578       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11579       ;;
11580   esac
11581   ;;
11582
11583 sysv4*MP*)
11584   if test -d /usr/nec ;then
11585     version_type=linux
11586     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11587     soname_spec='$libname${shared_ext}.$major'
11588     shlibpath_var=LD_LIBRARY_PATH
11589   fi
11590   ;;
11591
11592 uts4*)
11593   version_type=linux
11594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11595   soname_spec='${libname}${release}${shared_ext}$major'
11596   shlibpath_var=LD_LIBRARY_PATH
11597   ;;
11598
11599 *)
11600   dynamic_linker=no
11601   ;;
11602 esac
11603 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11604 echo "${ECHO_T}$dynamic_linker" >&6
11605 test "$dynamic_linker" = no && can_build_shared=no
11606
11607 if test "x$enable_dlopen" != xyes; then
11608   enable_dlopen=unknown
11609   enable_dlopen_self=unknown
11610   enable_dlopen_self_static=unknown
11611 else
11612   lt_cv_dlopen=no
11613   lt_cv_dlopen_libs=
11614
11615   case $host_os in
11616   beos*)
11617     lt_cv_dlopen="load_add_on"
11618     lt_cv_dlopen_libs=
11619     lt_cv_dlopen_self=yes
11620     ;;
11621
11622   mingw* | pw32*)
11623     lt_cv_dlopen="LoadLibrary"
11624     lt_cv_dlopen_libs=
11625    ;;
11626
11627   cygwin*)
11628     lt_cv_dlopen="dlopen"
11629     lt_cv_dlopen_libs=
11630    ;;
11631
11632   darwin*)
11633   # if libdl is installed we need to link against it
11634     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11635 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11636 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11637   echo $ECHO_N "(cached) $ECHO_C" >&6
11638 else
11639   ac_check_lib_save_LIBS=$LIBS
11640 LIBS="-ldl  $LIBS"
11641 cat >conftest.$ac_ext <<_ACEOF
11642 /* confdefs.h.  */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h.  */
11647
11648 /* Override any gcc2 internal prototype to avoid an error.  */
11649 #ifdef __cplusplus
11650 extern "C"
11651 #endif
11652 /* We use char because int might match the return type of a gcc2
11653    builtin and then its argument prototype would still apply.  */
11654 char dlopen ();
11655 int
11656 main ()
11657 {
11658 dlopen ();
11659   ;
11660   return 0;
11661 }
11662 _ACEOF
11663 rm -f conftest.$ac_objext conftest$ac_exeext
11664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11665   (eval $ac_link) 2>conftest.er1
11666   ac_status=$?
11667   grep -v '^ *+' conftest.er1 >conftest.err
11668   rm -f conftest.er1
11669   cat conftest.err >&5
11670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671   (exit $ac_status); } &&
11672          { ac_try='test -z "$ac_cxx_werror_flag"
11673                          || test ! -s conftest.err'
11674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675   (eval $ac_try) 2>&5
11676   ac_status=$?
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); }; } &&
11679          { ac_try='test -s conftest$ac_exeext'
11680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11681   (eval $ac_try) 2>&5
11682   ac_status=$?
11683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684   (exit $ac_status); }; }; then
11685   ac_cv_lib_dl_dlopen=yes
11686 else
11687   echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11689
11690 ac_cv_lib_dl_dlopen=no
11691 fi
11692 rm -f conftest.err conftest.$ac_objext \
11693       conftest$ac_exeext conftest.$ac_ext
11694 LIBS=$ac_check_lib_save_LIBS
11695 fi
11696 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11697 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11698 if test $ac_cv_lib_dl_dlopen = yes; then
11699   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11700 else
11701
11702     lt_cv_dlopen="dyld"
11703     lt_cv_dlopen_libs=
11704     lt_cv_dlopen_self=yes
11705
11706 fi
11707
11708    ;;
11709
11710   *)
11711     echo "$as_me:$LINENO: checking for shl_load" >&5
11712 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11713 if test "${ac_cv_func_shl_load+set}" = set; then
11714   echo $ECHO_N "(cached) $ECHO_C" >&6
11715 else
11716   cat >conftest.$ac_ext <<_ACEOF
11717 /* confdefs.h.  */
11718 _ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h.  */
11722 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11724 #define shl_load innocuous_shl_load
11725
11726 /* System header to define __stub macros and hopefully few prototypes,
11727     which can conflict with char shl_load (); below.
11728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11729     <limits.h> exists even on freestanding compilers.  */
11730
11731 #ifdef __STDC__
11732 # include <limits.h>
11733 #else
11734 # include <assert.h>
11735 #endif
11736
11737 #undef shl_load
11738
11739 /* Override any gcc2 internal prototype to avoid an error.  */
11740 #ifdef __cplusplus
11741 extern "C"
11742 {
11743 #endif
11744 /* We use char because int might match the return type of a gcc2
11745    builtin and then its argument prototype would still apply.  */
11746 char shl_load ();
11747 /* The GNU C library defines this for functions which it implements
11748     to always fail with ENOSYS.  Some functions are actually named
11749     something starting with __ and the normal name is an alias.  */
11750 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11751 choke me
11752 #else
11753 char (*f) () = shl_load;
11754 #endif
11755 #ifdef __cplusplus
11756 }
11757 #endif
11758
11759 int
11760 main ()
11761 {
11762 return f != shl_load;
11763   ;
11764   return 0;
11765 }
11766 _ACEOF
11767 rm -f conftest.$ac_objext conftest$ac_exeext
11768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11769   (eval $ac_link) 2>conftest.er1
11770   ac_status=$?
11771   grep -v '^ *+' conftest.er1 >conftest.err
11772   rm -f conftest.er1
11773   cat conftest.err >&5
11774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775   (exit $ac_status); } &&
11776          { ac_try='test -z "$ac_cxx_werror_flag"
11777                          || test ! -s conftest.err'
11778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779   (eval $ac_try) 2>&5
11780   ac_status=$?
11781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782   (exit $ac_status); }; } &&
11783          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11789   ac_cv_func_shl_load=yes
11790 else
11791   echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.$ac_ext >&5
11793
11794 ac_cv_func_shl_load=no
11795 fi
11796 rm -f conftest.err conftest.$ac_objext \
11797       conftest$ac_exeext conftest.$ac_ext
11798 fi
11799 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11800 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11801 if test $ac_cv_func_shl_load = yes; then
11802   lt_cv_dlopen="shl_load"
11803 else
11804   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11805 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11806 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11807   echo $ECHO_N "(cached) $ECHO_C" >&6
11808 else
11809   ac_check_lib_save_LIBS=$LIBS
11810 LIBS="-ldld  $LIBS"
11811 cat >conftest.$ac_ext <<_ACEOF
11812 /* confdefs.h.  */
11813 _ACEOF
11814 cat confdefs.h >>conftest.$ac_ext
11815 cat >>conftest.$ac_ext <<_ACEOF
11816 /* end confdefs.h.  */
11817
11818 /* Override any gcc2 internal prototype to avoid an error.  */
11819 #ifdef __cplusplus
11820 extern "C"
11821 #endif
11822 /* We use char because int might match the return type of a gcc2
11823    builtin and then its argument prototype would still apply.  */
11824 char shl_load ();
11825 int
11826 main ()
11827 {
11828 shl_load ();
11829   ;
11830   return 0;
11831 }
11832 _ACEOF
11833 rm -f conftest.$ac_objext conftest$ac_exeext
11834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11835   (eval $ac_link) 2>conftest.er1
11836   ac_status=$?
11837   grep -v '^ *+' conftest.er1 >conftest.err
11838   rm -f conftest.er1
11839   cat conftest.err >&5
11840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841   (exit $ac_status); } &&
11842          { ac_try='test -z "$ac_cxx_werror_flag"
11843                          || test ! -s conftest.err'
11844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845   (eval $ac_try) 2>&5
11846   ac_status=$?
11847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848   (exit $ac_status); }; } &&
11849          { ac_try='test -s conftest$ac_exeext'
11850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851   (eval $ac_try) 2>&5
11852   ac_status=$?
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); }; }; then
11855   ac_cv_lib_dld_shl_load=yes
11856 else
11857   echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11859
11860 ac_cv_lib_dld_shl_load=no
11861 fi
11862 rm -f conftest.err conftest.$ac_objext \
11863       conftest$ac_exeext conftest.$ac_ext
11864 LIBS=$ac_check_lib_save_LIBS
11865 fi
11866 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11867 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11868 if test $ac_cv_lib_dld_shl_load = yes; then
11869   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11870 else
11871   echo "$as_me:$LINENO: checking for dlopen" >&5
11872 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11873 if test "${ac_cv_func_dlopen+set}" = set; then
11874   echo $ECHO_N "(cached) $ECHO_C" >&6
11875 else
11876   cat >conftest.$ac_ext <<_ACEOF
11877 /* confdefs.h.  */
11878 _ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h.  */
11882 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11884 #define dlopen innocuous_dlopen
11885
11886 /* System header to define __stub macros and hopefully few prototypes,
11887     which can conflict with char dlopen (); below.
11888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11889     <limits.h> exists even on freestanding compilers.  */
11890
11891 #ifdef __STDC__
11892 # include <limits.h>
11893 #else
11894 # include <assert.h>
11895 #endif
11896
11897 #undef dlopen
11898
11899 /* Override any gcc2 internal prototype to avoid an error.  */
11900 #ifdef __cplusplus
11901 extern "C"
11902 {
11903 #endif
11904 /* We use char because int might match the return type of a gcc2
11905    builtin and then its argument prototype would still apply.  */
11906 char dlopen ();
11907 /* The GNU C library defines this for functions which it implements
11908     to always fail with ENOSYS.  Some functions are actually named
11909     something starting with __ and the normal name is an alias.  */
11910 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11911 choke me
11912 #else
11913 char (*f) () = dlopen;
11914 #endif
11915 #ifdef __cplusplus
11916 }
11917 #endif
11918
11919 int
11920 main ()
11921 {
11922 return f != dlopen;
11923   ;
11924   return 0;
11925 }
11926 _ACEOF
11927 rm -f conftest.$ac_objext conftest$ac_exeext
11928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11929   (eval $ac_link) 2>conftest.er1
11930   ac_status=$?
11931   grep -v '^ *+' conftest.er1 >conftest.err
11932   rm -f conftest.er1
11933   cat conftest.err >&5
11934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935   (exit $ac_status); } &&
11936          { ac_try='test -z "$ac_cxx_werror_flag"
11937                          || test ! -s conftest.err'
11938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939   (eval $ac_try) 2>&5
11940   ac_status=$?
11941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942   (exit $ac_status); }; } &&
11943          { ac_try='test -s conftest$ac_exeext'
11944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945   (eval $ac_try) 2>&5
11946   ac_status=$?
11947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948   (exit $ac_status); }; }; then
11949   ac_cv_func_dlopen=yes
11950 else
11951   echo "$as_me: failed program was:" >&5
11952 sed 's/^/| /' conftest.$ac_ext >&5
11953
11954 ac_cv_func_dlopen=no
11955 fi
11956 rm -f conftest.err conftest.$ac_objext \
11957       conftest$ac_exeext conftest.$ac_ext
11958 fi
11959 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11960 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11961 if test $ac_cv_func_dlopen = yes; then
11962   lt_cv_dlopen="dlopen"
11963 else
11964   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11965 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11966 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11967   echo $ECHO_N "(cached) $ECHO_C" >&6
11968 else
11969   ac_check_lib_save_LIBS=$LIBS
11970 LIBS="-ldl  $LIBS"
11971 cat >conftest.$ac_ext <<_ACEOF
11972 /* confdefs.h.  */
11973 _ACEOF
11974 cat confdefs.h >>conftest.$ac_ext
11975 cat >>conftest.$ac_ext <<_ACEOF
11976 /* end confdefs.h.  */
11977
11978 /* Override any gcc2 internal prototype to avoid an error.  */
11979 #ifdef __cplusplus
11980 extern "C"
11981 #endif
11982 /* We use char because int might match the return type of a gcc2
11983    builtin and then its argument prototype would still apply.  */
11984 char dlopen ();
11985 int
11986 main ()
11987 {
11988 dlopen ();
11989   ;
11990   return 0;
11991 }
11992 _ACEOF
11993 rm -f conftest.$ac_objext conftest$ac_exeext
11994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11995   (eval $ac_link) 2>conftest.er1
11996   ac_status=$?
11997   grep -v '^ *+' conftest.er1 >conftest.err
11998   rm -f conftest.er1
11999   cat conftest.err >&5
12000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001   (exit $ac_status); } &&
12002          { ac_try='test -z "$ac_cxx_werror_flag"
12003                          || test ! -s conftest.err'
12004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12005   (eval $ac_try) 2>&5
12006   ac_status=$?
12007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008   (exit $ac_status); }; } &&
12009          { ac_try='test -s conftest$ac_exeext'
12010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12011   (eval $ac_try) 2>&5
12012   ac_status=$?
12013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014   (exit $ac_status); }; }; then
12015   ac_cv_lib_dl_dlopen=yes
12016 else
12017   echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12019
12020 ac_cv_lib_dl_dlopen=no
12021 fi
12022 rm -f conftest.err conftest.$ac_objext \
12023       conftest$ac_exeext conftest.$ac_ext
12024 LIBS=$ac_check_lib_save_LIBS
12025 fi
12026 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12027 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12028 if test $ac_cv_lib_dl_dlopen = yes; then
12029   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12030 else
12031   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12032 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12033 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12034   echo $ECHO_N "(cached) $ECHO_C" >&6
12035 else
12036   ac_check_lib_save_LIBS=$LIBS
12037 LIBS="-lsvld  $LIBS"
12038 cat >conftest.$ac_ext <<_ACEOF
12039 /* confdefs.h.  */
12040 _ACEOF
12041 cat confdefs.h >>conftest.$ac_ext
12042 cat >>conftest.$ac_ext <<_ACEOF
12043 /* end confdefs.h.  */
12044
12045 /* Override any gcc2 internal prototype to avoid an error.  */
12046 #ifdef __cplusplus
12047 extern "C"
12048 #endif
12049 /* We use char because int might match the return type of a gcc2
12050    builtin and then its argument prototype would still apply.  */
12051 char dlopen ();
12052 int
12053 main ()
12054 {
12055 dlopen ();
12056   ;
12057   return 0;
12058 }
12059 _ACEOF
12060 rm -f conftest.$ac_objext conftest$ac_exeext
12061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12062   (eval $ac_link) 2>conftest.er1
12063   ac_status=$?
12064   grep -v '^ *+' conftest.er1 >conftest.err
12065   rm -f conftest.er1
12066   cat conftest.err >&5
12067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068   (exit $ac_status); } &&
12069          { ac_try='test -z "$ac_cxx_werror_flag"
12070                          || test ! -s conftest.err'
12071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072   (eval $ac_try) 2>&5
12073   ac_status=$?
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); }; } &&
12076          { ac_try='test -s conftest$ac_exeext'
12077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078   (eval $ac_try) 2>&5
12079   ac_status=$?
12080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081   (exit $ac_status); }; }; then
12082   ac_cv_lib_svld_dlopen=yes
12083 else
12084   echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12086
12087 ac_cv_lib_svld_dlopen=no
12088 fi
12089 rm -f conftest.err conftest.$ac_objext \
12090       conftest$ac_exeext conftest.$ac_ext
12091 LIBS=$ac_check_lib_save_LIBS
12092 fi
12093 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12094 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12095 if test $ac_cv_lib_svld_dlopen = yes; then
12096   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12097 else
12098   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12099 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12100 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12101   echo $ECHO_N "(cached) $ECHO_C" >&6
12102 else
12103   ac_check_lib_save_LIBS=$LIBS
12104 LIBS="-ldld  $LIBS"
12105 cat >conftest.$ac_ext <<_ACEOF
12106 /* confdefs.h.  */
12107 _ACEOF
12108 cat confdefs.h >>conftest.$ac_ext
12109 cat >>conftest.$ac_ext <<_ACEOF
12110 /* end confdefs.h.  */
12111
12112 /* Override any gcc2 internal prototype to avoid an error.  */
12113 #ifdef __cplusplus
12114 extern "C"
12115 #endif
12116 /* We use char because int might match the return type of a gcc2
12117    builtin and then its argument prototype would still apply.  */
12118 char dld_link ();
12119 int
12120 main ()
12121 {
12122 dld_link ();
12123   ;
12124   return 0;
12125 }
12126 _ACEOF
12127 rm -f conftest.$ac_objext conftest$ac_exeext
12128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12129   (eval $ac_link) 2>conftest.er1
12130   ac_status=$?
12131   grep -v '^ *+' conftest.er1 >conftest.err
12132   rm -f conftest.er1
12133   cat conftest.err >&5
12134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135   (exit $ac_status); } &&
12136          { ac_try='test -z "$ac_cxx_werror_flag"
12137                          || test ! -s conftest.err'
12138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139   (eval $ac_try) 2>&5
12140   ac_status=$?
12141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142   (exit $ac_status); }; } &&
12143          { ac_try='test -s conftest$ac_exeext'
12144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12145   (eval $ac_try) 2>&5
12146   ac_status=$?
12147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148   (exit $ac_status); }; }; then
12149   ac_cv_lib_dld_dld_link=yes
12150 else
12151   echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.$ac_ext >&5
12153
12154 ac_cv_lib_dld_dld_link=no
12155 fi
12156 rm -f conftest.err conftest.$ac_objext \
12157       conftest$ac_exeext conftest.$ac_ext
12158 LIBS=$ac_check_lib_save_LIBS
12159 fi
12160 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12161 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12162 if test $ac_cv_lib_dld_dld_link = yes; then
12163   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12164 fi
12165
12166
12167 fi
12168
12169
12170 fi
12171
12172
12173 fi
12174
12175
12176 fi
12177
12178
12179 fi
12180
12181     ;;
12182   esac
12183
12184   if test "x$lt_cv_dlopen" != xno; then
12185     enable_dlopen=yes
12186   else
12187     enable_dlopen=no
12188   fi
12189
12190   case $lt_cv_dlopen in
12191   dlopen)
12192     save_CPPFLAGS="$CPPFLAGS"
12193     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12194
12195     save_LDFLAGS="$LDFLAGS"
12196     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12197
12198     save_LIBS="$LIBS"
12199     LIBS="$lt_cv_dlopen_libs $LIBS"
12200
12201     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12202 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12203 if test "${lt_cv_dlopen_self+set}" = set; then
12204   echo $ECHO_N "(cached) $ECHO_C" >&6
12205 else
12206           if test "$cross_compiling" = yes; then :
12207   lt_cv_dlopen_self=cross
12208 else
12209   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12210   lt_status=$lt_dlunknown
12211   cat > conftest.$ac_ext <<EOF
12212 #line 12212 "configure"
12213 #include "confdefs.h"
12214
12215 #if HAVE_DLFCN_H
12216 #include <dlfcn.h>
12217 #endif
12218
12219 #include <stdio.h>
12220
12221 #ifdef RTLD_GLOBAL
12222 #  define LT_DLGLOBAL           RTLD_GLOBAL
12223 #else
12224 #  ifdef DL_GLOBAL
12225 #    define LT_DLGLOBAL         DL_GLOBAL
12226 #  else
12227 #    define LT_DLGLOBAL         0
12228 #  endif
12229 #endif
12230
12231 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12232    find out it does not work in some platform. */
12233 #ifndef LT_DLLAZY_OR_NOW
12234 #  ifdef RTLD_LAZY
12235 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12236 #  else
12237 #    ifdef DL_LAZY
12238 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12239 #    else
12240 #      ifdef RTLD_NOW
12241 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12242 #      else
12243 #        ifdef DL_NOW
12244 #          define LT_DLLAZY_OR_NOW      DL_NOW
12245 #        else
12246 #          define LT_DLLAZY_OR_NOW      0
12247 #        endif
12248 #      endif
12249 #    endif
12250 #  endif
12251 #endif
12252
12253 #ifdef __cplusplus
12254 extern "C" void exit (int);
12255 #endif
12256
12257 void fnord() { int i=42;}
12258 int main ()
12259 {
12260   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12261   int status = $lt_dlunknown;
12262
12263   if (self)
12264     {
12265       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12266       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12267       /* dlclose (self); */
12268     }
12269
12270     exit (status);
12271 }
12272 EOF
12273   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12274   (eval $ac_link) 2>&5
12275   ac_status=$?
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12278     (./conftest; exit; ) 2>/dev/null
12279     lt_status=$?
12280     case x$lt_status in
12281       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12282       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12283       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12284     esac
12285   else :
12286     # compilation failed
12287     lt_cv_dlopen_self=no
12288   fi
12289 fi
12290 rm -fr conftest*
12291
12292
12293 fi
12294 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12295 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12296
12297     if test "x$lt_cv_dlopen_self" = xyes; then
12298       LDFLAGS="$LDFLAGS $link_static_flag"
12299       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12300 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12301 if test "${lt_cv_dlopen_self_static+set}" = set; then
12302   echo $ECHO_N "(cached) $ECHO_C" >&6
12303 else
12304           if test "$cross_compiling" = yes; then :
12305   lt_cv_dlopen_self_static=cross
12306 else
12307   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12308   lt_status=$lt_dlunknown
12309   cat > conftest.$ac_ext <<EOF
12310 #line 12310 "configure"
12311 #include "confdefs.h"
12312
12313 #if HAVE_DLFCN_H
12314 #include <dlfcn.h>
12315 #endif
12316
12317 #include <stdio.h>
12318
12319 #ifdef RTLD_GLOBAL
12320 #  define LT_DLGLOBAL           RTLD_GLOBAL
12321 #else
12322 #  ifdef DL_GLOBAL
12323 #    define LT_DLGLOBAL         DL_GLOBAL
12324 #  else
12325 #    define LT_DLGLOBAL         0
12326 #  endif
12327 #endif
12328
12329 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12330    find out it does not work in some platform. */
12331 #ifndef LT_DLLAZY_OR_NOW
12332 #  ifdef RTLD_LAZY
12333 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12334 #  else
12335 #    ifdef DL_LAZY
12336 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12337 #    else
12338 #      ifdef RTLD_NOW
12339 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12340 #      else
12341 #        ifdef DL_NOW
12342 #          define LT_DLLAZY_OR_NOW      DL_NOW
12343 #        else
12344 #          define LT_DLLAZY_OR_NOW      0
12345 #        endif
12346 #      endif
12347 #    endif
12348 #  endif
12349 #endif
12350
12351 #ifdef __cplusplus
12352 extern "C" void exit (int);
12353 #endif
12354
12355 void fnord() { int i=42;}
12356 int main ()
12357 {
12358   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12359   int status = $lt_dlunknown;
12360
12361   if (self)
12362     {
12363       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12364       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12365       /* dlclose (self); */
12366     }
12367
12368     exit (status);
12369 }
12370 EOF
12371   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12372   (eval $ac_link) 2>&5
12373   ac_status=$?
12374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12376     (./conftest; exit; ) 2>/dev/null
12377     lt_status=$?
12378     case x$lt_status in
12379       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12380       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12381       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12382     esac
12383   else :
12384     # compilation failed
12385     lt_cv_dlopen_self_static=no
12386   fi
12387 fi
12388 rm -fr conftest*
12389
12390
12391 fi
12392 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12393 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12394     fi
12395
12396     CPPFLAGS="$save_CPPFLAGS"
12397     LDFLAGS="$save_LDFLAGS"
12398     LIBS="$save_LIBS"
12399     ;;
12400   esac
12401
12402   case $lt_cv_dlopen_self in
12403   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12404   *) enable_dlopen_self=unknown ;;
12405   esac
12406
12407   case $lt_cv_dlopen_self_static in
12408   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12409   *) enable_dlopen_self_static=unknown ;;
12410   esac
12411 fi
12412
12413
12414 # The else clause should only fire when bootstrapping the
12415 # libtool distribution, otherwise you forgot to ship ltmain.sh
12416 # with your package, and you will get complaints that there are
12417 # no rules to generate ltmain.sh.
12418 if test -f "$ltmain"; then
12419   # See if we are running on zsh, and set the options which allow our commands through
12420   # without removal of \ escapes.
12421   if test -n "${ZSH_VERSION+set}" ; then
12422     setopt NO_GLOB_SUBST
12423   fi
12424   # Now quote all the things that may contain metacharacters while being
12425   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12426   # variables and quote the copies for generation of the libtool script.
12427   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12428     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12429     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12430     deplibs_check_method reload_flag reload_cmds need_locks \
12431     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12432     lt_cv_sys_global_symbol_to_c_name_address \
12433     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12434     old_postinstall_cmds old_postuninstall_cmds \
12435     compiler_CXX \
12436     CC_CXX \
12437     LD_CXX \
12438     lt_prog_compiler_wl_CXX \
12439     lt_prog_compiler_pic_CXX \
12440     lt_prog_compiler_static_CXX \
12441     lt_prog_compiler_no_builtin_flag_CXX \
12442     export_dynamic_flag_spec_CXX \
12443     thread_safe_flag_spec_CXX \
12444     whole_archive_flag_spec_CXX \
12445     enable_shared_with_static_runtimes_CXX \
12446     old_archive_cmds_CXX \
12447     old_archive_from_new_cmds_CXX \
12448     predep_objects_CXX \
12449     postdep_objects_CXX \
12450     predeps_CXX \
12451     postdeps_CXX \
12452     compiler_lib_search_path_CXX \
12453     archive_cmds_CXX \
12454     archive_expsym_cmds_CXX \
12455     postinstall_cmds_CXX \
12456     postuninstall_cmds_CXX \
12457     old_archive_from_expsyms_cmds_CXX \
12458     allow_undefined_flag_CXX \
12459     no_undefined_flag_CXX \
12460     export_symbols_cmds_CXX \
12461     hardcode_libdir_flag_spec_CXX \
12462     hardcode_libdir_flag_spec_ld_CXX \
12463     hardcode_libdir_separator_CXX \
12464     hardcode_automatic_CXX \
12465     module_cmds_CXX \
12466     module_expsym_cmds_CXX \
12467     lt_cv_prog_compiler_c_o_CXX \
12468     exclude_expsyms_CXX \
12469     include_expsyms_CXX; do
12470
12471     case $var in
12472     old_archive_cmds_CXX | \
12473     old_archive_from_new_cmds_CXX | \
12474     archive_cmds_CXX | \
12475     archive_expsym_cmds_CXX | \
12476     module_cmds_CXX | \
12477     module_expsym_cmds_CXX | \
12478     old_archive_from_expsyms_cmds_CXX | \
12479     export_symbols_cmds_CXX | \
12480     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12481     postinstall_cmds | postuninstall_cmds | \
12482     old_postinstall_cmds | old_postuninstall_cmds | \
12483     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12484       # Double-quote double-evaled strings.
12485       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12486       ;;
12487     *)
12488       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12489       ;;
12490     esac
12491   done
12492
12493   case $lt_echo in
12494   *'\$0 --fallback-echo"')
12495     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12496     ;;
12497   esac
12498
12499 cfgfile="$ofile"
12500
12501   cat <<__EOF__ >> "$cfgfile"
12502 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12503
12504 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12505
12506 # Shell to use when invoking shell scripts.
12507 SHELL=$lt_SHELL
12508
12509 # Whether or not to build shared libraries.
12510 build_libtool_libs=$enable_shared
12511
12512 # Whether or not to build static libraries.
12513 build_old_libs=$enable_static
12514
12515 # Whether or not to add -lc for building shared libraries.
12516 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12517
12518 # Whether or not to disallow shared libs when runtime libs are static
12519 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12520
12521 # Whether or not to optimize for fast installation.
12522 fast_install=$enable_fast_install
12523
12524 # The host system.
12525 host_alias=$host_alias
12526 host=$host
12527
12528 # An echo program that does not interpret backslashes.
12529 echo=$lt_echo
12530
12531 # The archiver.
12532 AR=$lt_AR
12533 AR_FLAGS=$lt_AR_FLAGS
12534
12535 # A C compiler.
12536 LTCC=$lt_LTCC
12537
12538 # A language-specific compiler.
12539 CC=$lt_compiler_CXX
12540
12541 # Is the compiler the GNU C compiler?
12542 with_gcc=$GCC_CXX
12543
12544 # An ERE matcher.
12545 EGREP=$lt_EGREP
12546
12547 # The linker used to build libraries.
12548 LD=$lt_LD_CXX
12549
12550 # Whether we need hard or soft links.
12551 LN_S=$lt_LN_S
12552
12553 # A BSD-compatible nm program.
12554 NM=$lt_NM
12555
12556 # A symbol stripping program
12557 STRIP=$STRIP
12558
12559 # Used to examine libraries when file_magic_cmd begins "file"
12560 MAGIC_CMD=$MAGIC_CMD
12561
12562 # Used on cygwin: DLL creation program.
12563 DLLTOOL="$DLLTOOL"
12564
12565 # Used on cygwin: object dumper.
12566 OBJDUMP="$OBJDUMP"
12567
12568 # Used on cygwin: assembler.
12569 AS="$AS"
12570
12571 # The name of the directory that contains temporary libtool files.
12572 objdir=$objdir
12573
12574 # How to create reloadable object files.
12575 reload_flag=$lt_reload_flag
12576 reload_cmds=$lt_reload_cmds
12577
12578 # How to pass a linker flag through the compiler.
12579 wl=$lt_lt_prog_compiler_wl_CXX
12580
12581 # Object file suffix (normally "o").
12582 objext="$ac_objext"
12583
12584 # Old archive suffix (normally "a").
12585 libext="$libext"
12586
12587 # Shared library suffix (normally ".so").
12588 shrext='$shrext'
12589
12590 # Executable file suffix (normally "").
12591 exeext="$exeext"
12592
12593 # Additional compiler flags for building library objects.
12594 pic_flag=$lt_lt_prog_compiler_pic_CXX
12595 pic_mode=$pic_mode
12596
12597 # What is the maximum length of a command?
12598 max_cmd_len=$lt_cv_sys_max_cmd_len
12599
12600 # Does compiler simultaneously support -c and -o options?
12601 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12602
12603 # Must we lock files when doing compilation ?
12604 need_locks=$lt_need_locks
12605
12606 # Do we need the lib prefix for modules?
12607 need_lib_prefix=$need_lib_prefix
12608
12609 # Do we need a version for libraries?
12610 need_version=$need_version
12611
12612 # Whether dlopen is supported.
12613 dlopen_support=$enable_dlopen
12614
12615 # Whether dlopen of programs is supported.
12616 dlopen_self=$enable_dlopen_self
12617
12618 # Whether dlopen of statically linked programs is supported.
12619 dlopen_self_static=$enable_dlopen_self_static
12620
12621 # Compiler flag to prevent dynamic linking.
12622 link_static_flag=$lt_lt_prog_compiler_static_CXX
12623
12624 # Compiler flag to turn off builtin functions.
12625 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12626
12627 # Compiler flag to allow reflexive dlopens.
12628 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12629
12630 # Compiler flag to generate shared objects directly from archives.
12631 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12632
12633 # Compiler flag to generate thread-safe objects.
12634 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12635
12636 # Library versioning type.
12637 version_type=$version_type
12638
12639 # Format of library name prefix.
12640 libname_spec=$lt_libname_spec
12641
12642 # List of archive names.  First name is the real one, the rest are links.
12643 # The last name is the one that the linker finds with -lNAME.
12644 library_names_spec=$lt_library_names_spec
12645
12646 # The coded name of the library, if different from the real name.
12647 soname_spec=$lt_soname_spec
12648
12649 # Commands used to build and install an old-style archive.
12650 RANLIB=$lt_RANLIB
12651 old_archive_cmds=$lt_old_archive_cmds_CXX
12652 old_postinstall_cmds=$lt_old_postinstall_cmds
12653 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12654
12655 # Create an old-style archive from a shared archive.
12656 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12657
12658 # Create a temporary old-style archive to link instead of a shared archive.
12659 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12660
12661 # Commands used to build and install a shared archive.
12662 archive_cmds=$lt_archive_cmds_CXX
12663 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12664 postinstall_cmds=$lt_postinstall_cmds
12665 postuninstall_cmds=$lt_postuninstall_cmds
12666
12667 # Commands used to build a loadable module (assumed same as above if empty)
12668 module_cmds=$lt_module_cmds_CXX
12669 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12670
12671 # Commands to strip libraries.
12672 old_striplib=$lt_old_striplib
12673 striplib=$lt_striplib
12674
12675 # Dependencies to place before the objects being linked to create a
12676 # shared library.
12677 predep_objects=$lt_predep_objects_CXX
12678
12679 # Dependencies to place after the objects being linked to create a
12680 # shared library.
12681 postdep_objects=$lt_postdep_objects_CXX
12682
12683 # Dependencies to place before the objects being linked to create a
12684 # shared library.
12685 predeps=$lt_predeps_CXX
12686
12687 # Dependencies to place after the objects being linked to create a
12688 # shared library.
12689 postdeps=$lt_postdeps_CXX
12690
12691 # The library search path used internally by the compiler when linking
12692 # a shared library.
12693 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12694
12695 # Method to check whether dependent libraries are shared objects.
12696 deplibs_check_method=$lt_deplibs_check_method
12697
12698 # Command to use when deplibs_check_method == file_magic.
12699 file_magic_cmd=$lt_file_magic_cmd
12700
12701 # Flag that allows shared libraries with undefined symbols to be built.
12702 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12703
12704 # Flag that forces no undefined symbols.
12705 no_undefined_flag=$lt_no_undefined_flag_CXX
12706
12707 # Commands used to finish a libtool library installation in a directory.
12708 finish_cmds=$lt_finish_cmds
12709
12710 # Same as above, but a single script fragment to be evaled but not shown.
12711 finish_eval=$lt_finish_eval
12712
12713 # Take the output of nm and produce a listing of raw symbols and C names.
12714 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12715
12716 # Transform the output of nm in a proper C declaration
12717 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12718
12719 # Transform the output of nm in a C name address pair
12720 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12721
12722 # This is the shared library runtime path variable.
12723 runpath_var=$runpath_var
12724
12725 # This is the shared library path variable.
12726 shlibpath_var=$shlibpath_var
12727
12728 # Is shlibpath searched before the hard-coded library search path?
12729 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12730
12731 # How to hardcode a shared library path into an executable.
12732 hardcode_action=$hardcode_action_CXX
12733
12734 # Whether we should hardcode library paths into libraries.
12735 hardcode_into_libs=$hardcode_into_libs
12736
12737 # Flag to hardcode \$libdir into a binary during linking.
12738 # This must work even if \$libdir does not exist.
12739 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12740
12741 # If ld is used when linking, flag to hardcode \$libdir into
12742 # a binary during linking. This must work even if \$libdir does
12743 # not exist.
12744 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12745
12746 # Whether we need a single -rpath flag with a separated argument.
12747 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12748
12749 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12750 # resulting binary.
12751 hardcode_direct=$hardcode_direct_CXX
12752
12753 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12754 # resulting binary.
12755 hardcode_minus_L=$hardcode_minus_L_CXX
12756
12757 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12758 # the resulting binary.
12759 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12760
12761 # Set to yes if building a shared library automatically hardcodes DIR into the library
12762 # and all subsequent libraries and executables linked against it.
12763 hardcode_automatic=$hardcode_automatic_CXX
12764
12765 # Variables whose values should be saved in libtool wrapper scripts and
12766 # restored at relink time.
12767 variables_saved_for_relink="$variables_saved_for_relink"
12768
12769 # Whether libtool must link a program against all its dependency libraries.
12770 link_all_deplibs=$link_all_deplibs_CXX
12771
12772 # Compile-time system search path for libraries
12773 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12774
12775 # Run-time system search path for libraries
12776 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12777
12778 # Fix the shell variable \$srcfile for the compiler.
12779 fix_srcfile_path="$fix_srcfile_path_CXX"
12780
12781 # Set to yes if exported symbols are required.
12782 always_export_symbols=$always_export_symbols_CXX
12783
12784 # The commands to list exported symbols.
12785 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12786
12787 # The commands to extract the exported symbol list from a shared archive.
12788 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12789
12790 # Symbols that should not be listed in the preloaded symbols.
12791 exclude_expsyms=$lt_exclude_expsyms_CXX
12792
12793 # Symbols that must always be exported.
12794 include_expsyms=$lt_include_expsyms_CXX
12795
12796 # ### END LIBTOOL TAG CONFIG: $tagname
12797
12798 __EOF__
12799
12800
12801 else
12802   # If there is no Makefile yet, we rely on a make rule to execute
12803   # `config.status --recheck' to rerun these tests and create the
12804   # libtool script then.
12805   test -f Makefile && make "$ltmain"
12806 fi
12807
12808
12809 ac_ext=c
12810 ac_cpp='$CPP $CPPFLAGS'
12811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12814
12815 CC=$lt_save_CC
12816 LDCXX=$LD
12817 LD=$lt_save_LD
12818 GCC=$lt_save_GCC
12819 with_gnu_ldcxx=$with_gnu_ld
12820 with_gnu_ld=$lt_save_with_gnu_ld
12821 lt_cv_path_LDCXX=$lt_cv_path_LD
12822 lt_cv_path_LD=$lt_save_path_LD
12823 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12824 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12825
12826         else
12827           tagname=""
12828         fi
12829         ;;
12830
12831       F77)
12832         if test -n "$F77" && test "X$F77" != "Xno"; then
12833
12834 ac_ext=f
12835 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12836 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12837 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12838
12839
12840 archive_cmds_need_lc_F77=no
12841 allow_undefined_flag_F77=
12842 always_export_symbols_F77=no
12843 archive_expsym_cmds_F77=
12844 export_dynamic_flag_spec_F77=
12845 hardcode_direct_F77=no
12846 hardcode_libdir_flag_spec_F77=
12847 hardcode_libdir_flag_spec_ld_F77=
12848 hardcode_libdir_separator_F77=
12849 hardcode_minus_L_F77=no
12850 hardcode_automatic_F77=no
12851 module_cmds_F77=
12852 module_expsym_cmds_F77=
12853 link_all_deplibs_F77=unknown
12854 old_archive_cmds_F77=$old_archive_cmds
12855 no_undefined_flag_F77=
12856 whole_archive_flag_spec_F77=
12857 enable_shared_with_static_runtimes_F77=no
12858
12859 # Source file extension for f77 test sources.
12860 ac_ext=f
12861
12862 # Object file extension for compiled f77 test sources.
12863 objext=o
12864 objext_F77=$objext
12865
12866 # Code to be used in simple compile tests
12867 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12868
12869 # Code to be used in simple link tests
12870 lt_simple_link_test_code="      program t\n      end\n"
12871
12872 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12873
12874 # If no C compiler was specified, use CC.
12875 LTCC=${LTCC-"$CC"}
12876
12877 # Allow CC to be a program name with arguments.
12878 compiler=$CC
12879
12880
12881 # Allow CC to be a program name with arguments.
12882 lt_save_CC="$CC"
12883 CC=${F77-"f77"}
12884 compiler=$CC
12885 compiler_F77=$CC
12886 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12887
12888 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12889 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12890 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12891 echo "${ECHO_T}$can_build_shared" >&6
12892
12893 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12894 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12895 test "$can_build_shared" = "no" && enable_shared=no
12896
12897 # On AIX, shared libraries and static libraries use the same namespace, and
12898 # are all built from PIC.
12899 case "$host_os" in
12900 aix3*)
12901   test "$enable_shared" = yes && enable_static=no
12902   if test -n "$RANLIB"; then
12903     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12904     postinstall_cmds='$RANLIB $lib'
12905   fi
12906   ;;
12907 aix4*)
12908   test "$enable_shared" = yes && enable_static=no
12909   ;;
12910 esac
12911 echo "$as_me:$LINENO: result: $enable_shared" >&5
12912 echo "${ECHO_T}$enable_shared" >&6
12913
12914 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12915 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12916 # Make sure either enable_shared or enable_static is yes.
12917 test "$enable_shared" = yes || enable_static=yes
12918 echo "$as_me:$LINENO: result: $enable_static" >&5
12919 echo "${ECHO_T}$enable_static" >&6
12920
12921 test "$ld_shlibs_F77" = no && can_build_shared=no
12922
12923 GCC_F77="$G77"
12924 LD_F77="$LD"
12925
12926 lt_prog_compiler_wl_F77=
12927 lt_prog_compiler_pic_F77=
12928 lt_prog_compiler_static_F77=
12929
12930 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12931 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12932
12933   if test "$GCC" = yes; then
12934     lt_prog_compiler_wl_F77='-Wl,'
12935     lt_prog_compiler_static_F77='-static'
12936
12937     case $host_os in
12938       aix*)
12939       # All AIX code is PIC.
12940       if test "$host_cpu" = ia64; then
12941         # AIX 5 now supports IA64 processor
12942         lt_prog_compiler_static_F77='-Bstatic'
12943       fi
12944       ;;
12945
12946     amigaos*)
12947       # FIXME: we need at least 68020 code to build shared libraries, but
12948       # adding the `-m68020' flag to GCC prevents building anything better,
12949       # like `-m68040'.
12950       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12951       ;;
12952
12953     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12954       # PIC is the default for these OSes.
12955       ;;
12956
12957     mingw* | pw32* | os2*)
12958       # This hack is so that the source file can tell whether it is being
12959       # built for inclusion in a dll (and should export symbols for example).
12960       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12961       ;;
12962
12963     darwin* | rhapsody*)
12964       # PIC is the default on this platform
12965       # Common symbols not allowed in MH_DYLIB files
12966       lt_prog_compiler_pic_F77='-fno-common'
12967       ;;
12968
12969     msdosdjgpp*)
12970       # Just because we use GCC doesn't mean we suddenly get shared libraries
12971       # on systems that don't support them.
12972       lt_prog_compiler_can_build_shared_F77=no
12973       enable_shared=no
12974       ;;
12975
12976     sysv4*MP*)
12977       if test -d /usr/nec; then
12978         lt_prog_compiler_pic_F77=-Kconform_pic
12979       fi
12980       ;;
12981
12982     hpux*)
12983       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12984       # not for PA HP-UX.
12985       case "$host_cpu" in
12986       hppa*64*|ia64*)
12987         # +Z the default
12988         ;;
12989       *)
12990         lt_prog_compiler_pic_F77='-fPIC'
12991         ;;
12992       esac
12993       ;;
12994
12995     *)
12996       lt_prog_compiler_pic_F77='-fPIC'
12997       ;;
12998     esac
12999   else
13000     # PORTME Check for flag to pass linker flags through the system compiler.
13001     case $host_os in
13002     aix*)
13003       lt_prog_compiler_wl_F77='-Wl,'
13004       if test "$host_cpu" = ia64; then
13005         # AIX 5 now supports IA64 processor
13006         lt_prog_compiler_static_F77='-Bstatic'
13007       else
13008         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13009       fi
13010       ;;
13011
13012     mingw* | pw32* | os2*)
13013       # This hack is so that the source file can tell whether it is being
13014       # built for inclusion in a dll (and should export symbols for example).
13015       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13016       ;;
13017
13018     hpux9* | hpux10* | hpux11*)
13019       lt_prog_compiler_wl_F77='-Wl,'
13020       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13021       # not for PA HP-UX.
13022       case "$host_cpu" in
13023       hppa*64*|ia64*)
13024         # +Z the default
13025         ;;
13026       *)
13027         lt_prog_compiler_pic_F77='+Z'
13028         ;;
13029       esac
13030       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13031       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13032       ;;
13033
13034     irix5* | irix6* | nonstopux*)
13035       lt_prog_compiler_wl_F77='-Wl,'
13036       # PIC (with -KPIC) is the default.
13037       lt_prog_compiler_static_F77='-non_shared'
13038       ;;
13039
13040     newsos6)
13041       lt_prog_compiler_pic_F77='-KPIC'
13042       lt_prog_compiler_static_F77='-Bstatic'
13043       ;;
13044
13045     linux*)
13046       case $CC in
13047       icc|ecc)
13048         lt_prog_compiler_wl_F77='-Wl,'
13049         lt_prog_compiler_pic_F77='-KPIC'
13050         lt_prog_compiler_static_F77='-static'
13051         ;;
13052       ccc)
13053         lt_prog_compiler_wl_F77='-Wl,'
13054         # All Alpha code is PIC.
13055         lt_prog_compiler_static_F77='-non_shared'
13056         ;;
13057       esac
13058       ;;
13059
13060     osf3* | osf4* | osf5*)
13061       lt_prog_compiler_wl_F77='-Wl,'
13062       # All OSF/1 code is PIC.
13063       lt_prog_compiler_static_F77='-non_shared'
13064       ;;
13065
13066     sco3.2v5*)
13067       lt_prog_compiler_pic_F77='-Kpic'
13068       lt_prog_compiler_static_F77='-dn'
13069       ;;
13070
13071     solaris*)
13072       lt_prog_compiler_wl_F77='-Wl,'
13073       lt_prog_compiler_pic_F77='-KPIC'
13074       lt_prog_compiler_static_F77='-Bstatic'
13075       ;;
13076
13077     sunos4*)
13078       lt_prog_compiler_wl_F77='-Qoption ld '
13079       lt_prog_compiler_pic_F77='-PIC'
13080       lt_prog_compiler_static_F77='-Bstatic'
13081       ;;
13082
13083     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13084       lt_prog_compiler_wl_F77='-Wl,'
13085       lt_prog_compiler_pic_F77='-KPIC'
13086       lt_prog_compiler_static_F77='-Bstatic'
13087       ;;
13088
13089     sysv4*MP*)
13090       if test -d /usr/nec ;then
13091         lt_prog_compiler_pic_F77='-Kconform_pic'
13092         lt_prog_compiler_static_F77='-Bstatic'
13093       fi
13094       ;;
13095
13096     uts4*)
13097       lt_prog_compiler_pic_F77='-pic'
13098       lt_prog_compiler_static_F77='-Bstatic'
13099       ;;
13100
13101     *)
13102       lt_prog_compiler_can_build_shared_F77=no
13103       ;;
13104     esac
13105   fi
13106
13107 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13108 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13109
13110 #
13111 # Check to make sure the PIC flag actually works.
13112 #
13113 if test -n "$lt_prog_compiler_pic_F77"; then
13114   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13115 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13116 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13117   echo $ECHO_N "(cached) $ECHO_C" >&6
13118 else
13119   lt_prog_compiler_pic_works_F77=no
13120   ac_outfile=conftest.$ac_objext
13121    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13122    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13123    # Insert the option either (1) after the last *FLAGS variable, or
13124    # (2) before a word containing "conftest.", or (3) at the end.
13125    # Note that $ac_compile itself does not contain backslashes and begins
13126    # with a dollar sign (not a hyphen), so the echo should work correctly.
13127    # The option is referenced via a variable to avoid confusing sed.
13128    lt_compile=`echo "$ac_compile" | $SED \
13129    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13130    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13131    -e 's:$: $lt_compiler_flag:'`
13132    (eval echo "\"\$as_me:13132: $lt_compile\"" >&5)
13133    (eval "$lt_compile" 2>conftest.err)
13134    ac_status=$?
13135    cat conftest.err >&5
13136    echo "$as_me:13136: \$? = $ac_status" >&5
13137    if (exit $ac_status) && test -s "$ac_outfile"; then
13138      # The compiler can only warn and ignore the option if not recognized
13139      # So say no if there are warnings
13140      if test ! -s conftest.err; then
13141        lt_prog_compiler_pic_works_F77=yes
13142      fi
13143    fi
13144    $rm conftest*
13145
13146 fi
13147 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13148 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13149
13150 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13151     case $lt_prog_compiler_pic_F77 in
13152      "" | " "*) ;;
13153      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13154      esac
13155 else
13156     lt_prog_compiler_pic_F77=
13157      lt_prog_compiler_can_build_shared_F77=no
13158 fi
13159
13160 fi
13161 case "$host_os" in
13162   # For platforms which do not support PIC, -DPIC is meaningless:
13163   *djgpp*)
13164     lt_prog_compiler_pic_F77=
13165     ;;
13166   *)
13167     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13168     ;;
13169 esac
13170
13171 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13172 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13173 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13174   echo $ECHO_N "(cached) $ECHO_C" >&6
13175 else
13176   lt_cv_prog_compiler_c_o_F77=no
13177    $rm -r conftest 2>/dev/null
13178    mkdir conftest
13179    cd conftest
13180    mkdir out
13181    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13182
13183    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13184    # that will create temporary files in the current directory regardless of
13185    # the output directory.  Thus, making CWD read-only will cause this test
13186    # to fail, enabling locking or at least warning the user not to do parallel
13187    # builds.
13188    chmod -w .
13189
13190    lt_compiler_flag="-o out/conftest2.$ac_objext"
13191    # Insert the option either (1) after the last *FLAGS variable, or
13192    # (2) before a word containing "conftest.", or (3) at the end.
13193    # Note that $ac_compile itself does not contain backslashes and begins
13194    # with a dollar sign (not a hyphen), so the echo should work correctly.
13195    lt_compile=`echo "$ac_compile" | $SED \
13196    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13197    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13198    -e 's:$: $lt_compiler_flag:'`
13199    (eval echo "\"\$as_me:13199: $lt_compile\"" >&5)
13200    (eval "$lt_compile" 2>out/conftest.err)
13201    ac_status=$?
13202    cat out/conftest.err >&5
13203    echo "$as_me:13203: \$? = $ac_status" >&5
13204    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13205    then
13206      # The compiler can only warn and ignore the option if not recognized
13207      # So say no if there are warnings
13208      if test ! -s out/conftest.err; then
13209        lt_cv_prog_compiler_c_o_F77=yes
13210      fi
13211    fi
13212    chmod u+w .
13213    $rm conftest* out/*
13214    rmdir out
13215    cd ..
13216    rmdir conftest
13217    $rm conftest*
13218
13219 fi
13220 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13221 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13222
13223
13224 hard_links="nottested"
13225 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13226   # do not overwrite the value of need_locks provided by the user
13227   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13228 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13229   hard_links=yes
13230   $rm conftest*
13231   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13232   touch conftest.a
13233   ln conftest.a conftest.b 2>&5 || hard_links=no
13234   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13235   echo "$as_me:$LINENO: result: $hard_links" >&5
13236 echo "${ECHO_T}$hard_links" >&6
13237   if test "$hard_links" = no; then
13238     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13239 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13240     need_locks=warn
13241   fi
13242 else
13243   need_locks=no
13244 fi
13245
13246 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13247 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13248
13249   runpath_var=
13250   allow_undefined_flag_F77=
13251   enable_shared_with_static_runtimes_F77=no
13252   archive_cmds_F77=
13253   archive_expsym_cmds_F77=
13254   old_archive_From_new_cmds_F77=
13255   old_archive_from_expsyms_cmds_F77=
13256   export_dynamic_flag_spec_F77=
13257   whole_archive_flag_spec_F77=
13258   thread_safe_flag_spec_F77=
13259   hardcode_libdir_flag_spec_F77=
13260   hardcode_libdir_flag_spec_ld_F77=
13261   hardcode_libdir_separator_F77=
13262   hardcode_direct_F77=no
13263   hardcode_minus_L_F77=no
13264   hardcode_shlibpath_var_F77=unsupported
13265   link_all_deplibs_F77=unknown
13266   hardcode_automatic_F77=no
13267   module_cmds_F77=
13268   module_expsym_cmds_F77=
13269   always_export_symbols_F77=no
13270   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13271   # include_expsyms should be a list of space-separated symbols to be *always*
13272   # included in the symbol list
13273   include_expsyms_F77=
13274   # exclude_expsyms can be an extended regexp of symbols to exclude
13275   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13276   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13277   # as well as any symbol that contains `d'.
13278   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13279   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13280   # platforms (ab)use it in PIC code, but their linkers get confused if
13281   # the symbol is explicitly referenced.  Since portable code cannot
13282   # rely on this symbol name, it's probably fine to never include it in
13283   # preloaded symbol tables.
13284   extract_expsyms_cmds=
13285
13286   case $host_os in
13287   cygwin* | mingw* | pw32*)
13288     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13289     # When not using gcc, we currently assume that we are using
13290     # Microsoft Visual C++.
13291     if test "$GCC" != yes; then
13292       with_gnu_ld=no
13293     fi
13294     ;;
13295   openbsd*)
13296     with_gnu_ld=no
13297     ;;
13298   esac
13299
13300   ld_shlibs_F77=yes
13301   if test "$with_gnu_ld" = yes; then
13302     # If archive_cmds runs LD, not CC, wlarc should be empty
13303     wlarc='${wl}'
13304
13305     # See if GNU ld supports shared libraries.
13306     case $host_os in
13307     aix3* | aix4* | aix5*)
13308       # On AIX/PPC, the GNU linker is very broken
13309       if test "$host_cpu" != ia64; then
13310         ld_shlibs_F77=no
13311         cat <<EOF 1>&2
13312
13313 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13314 *** to be unable to reliably create shared libraries on AIX.
13315 *** Therefore, libtool is disabling shared libraries support.  If you
13316 *** really care for shared libraries, you may want to modify your PATH
13317 *** so that a non-GNU linker is found, and then restart.
13318
13319 EOF
13320       fi
13321       ;;
13322
13323     amigaos*)
13324       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)'
13325       hardcode_libdir_flag_spec_F77='-L$libdir'
13326       hardcode_minus_L_F77=yes
13327
13328       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13329       # that the semantics of dynamic libraries on AmigaOS, at least up
13330       # to version 4, is to share data among multiple programs linked
13331       # with the same dynamic library.  Since this doesn't match the
13332       # behavior of shared libraries on other platforms, we can't use
13333       # them.
13334       ld_shlibs_F77=no
13335       ;;
13336
13337     beos*)
13338       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13339         allow_undefined_flag_F77=unsupported
13340         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13341         # support --undefined.  This deserves some investigation.  FIXME
13342         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13343       else
13344         ld_shlibs_F77=no
13345       fi
13346       ;;
13347
13348     cygwin* | mingw* | pw32*)
13349       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13350       # as there is no search path for DLLs.
13351       hardcode_libdir_flag_spec_F77='-L$libdir'
13352       allow_undefined_flag_F77=unsupported
13353       always_export_symbols_F77=no
13354       enable_shared_with_static_runtimes_F77=yes
13355       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13356
13357       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13358         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13359         # If the export-symbols file already is a .def file (1st line
13360         # is EXPORTS), use it as is; otherwise, prepend...
13361         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13362           cp $export_symbols $output_objdir/$soname.def;
13363         else
13364           echo EXPORTS > $output_objdir/$soname.def;
13365           cat $export_symbols >> $output_objdir/$soname.def;
13366         fi~
13367         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13368       else
13369         ld_shlibs=no
13370       fi
13371       ;;
13372
13373     netbsd*)
13374       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13375         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13376         wlarc=
13377       else
13378         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13379         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13380       fi
13381       ;;
13382
13383     solaris* | sysv5*)
13384       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13385         ld_shlibs_F77=no
13386         cat <<EOF 1>&2
13387
13388 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13389 *** create shared libraries on Solaris systems.  Therefore, libtool
13390 *** is disabling shared libraries support.  We urge you to upgrade GNU
13391 *** binutils to release 2.9.1 or newer.  Another option is to modify
13392 *** your PATH or compiler configuration so that the native linker is
13393 *** used, and then restart.
13394
13395 EOF
13396       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13397         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13398         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13399       else
13400         ld_shlibs_F77=no
13401       fi
13402       ;;
13403
13404     sunos4*)
13405       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13406       wlarc=
13407       hardcode_direct_F77=yes
13408       hardcode_shlibpath_var_F77=no
13409       ;;
13410
13411     *)
13412       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13413         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13414         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13415       else
13416         ld_shlibs_F77=no
13417       fi
13418       ;;
13419     esac
13420
13421     if test "$ld_shlibs_F77" = yes; then
13422       runpath_var=LD_RUN_PATH
13423       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13424       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13425       # ancient GNU ld didn't support --whole-archive et. al.
13426       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13427         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13428       else
13429         whole_archive_flag_spec_F77=
13430       fi
13431     fi
13432   else
13433     # PORTME fill in a description of your system's linker (not GNU ld)
13434     case $host_os in
13435     aix3*)
13436       allow_undefined_flag_F77=unsupported
13437       always_export_symbols_F77=yes
13438       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'
13439       # Note: this linker hardcodes the directories in LIBPATH if there
13440       # are no directories specified by -L.
13441       hardcode_minus_L_F77=yes
13442       if test "$GCC" = yes && test -z "$link_static_flag"; then
13443         # Neither direct hardcoding nor static linking is supported with a
13444         # broken collect2.
13445         hardcode_direct_F77=unsupported
13446       fi
13447       ;;
13448
13449     aix4* | aix5*)
13450       if test "$host_cpu" = ia64; then
13451         # On IA64, the linker does run time linking by default, so we don't
13452         # have to do anything special.
13453         aix_use_runtimelinking=no
13454         exp_sym_flag='-Bexport'
13455         no_entry_flag=""
13456       else
13457         # If we're using GNU nm, then we don't want the "-C" option.
13458         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13459         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13460           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'
13461         else
13462           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'
13463         fi
13464         aix_use_runtimelinking=no
13465
13466         # Test if we are trying to use run time linking or normal
13467         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13468         # need to do runtime linking.
13469         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13470           for ld_flag in $LDFLAGS; do
13471           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13472             aix_use_runtimelinking=yes
13473             break
13474           fi
13475           done
13476         esac
13477
13478         exp_sym_flag='-bexport'
13479         no_entry_flag='-bnoentry'
13480       fi
13481
13482       # When large executables or shared objects are built, AIX ld can
13483       # have problems creating the table of contents.  If linking a library
13484       # or program results in "error TOC overflow" add -mminimal-toc to
13485       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13486       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13487
13488       archive_cmds_F77=''
13489       hardcode_direct_F77=yes
13490       hardcode_libdir_separator_F77=':'
13491       link_all_deplibs_F77=yes
13492
13493       if test "$GCC" = yes; then
13494         case $host_os in aix4.012|aix4.012.*)
13495         # We only want to do this on AIX 4.2 and lower, the check
13496         # below for broken collect2 doesn't work under 4.3+
13497           collect2name=`${CC} -print-prog-name=collect2`
13498           if test -f "$collect2name" && \
13499            strings "$collect2name" | grep resolve_lib_name >/dev/null
13500           then
13501           # We have reworked collect2
13502           hardcode_direct_F77=yes
13503           else
13504           # We have old collect2
13505           hardcode_direct_F77=unsupported
13506           # It fails to find uninstalled libraries when the uninstalled
13507           # path is not listed in the libpath.  Setting hardcode_minus_L
13508           # to unsupported forces relinking
13509           hardcode_minus_L_F77=yes
13510           hardcode_libdir_flag_spec_F77='-L$libdir'
13511           hardcode_libdir_separator_F77=
13512           fi
13513         esac
13514         shared_flag='-shared'
13515       else
13516         # not using gcc
13517         if test "$host_cpu" = ia64; then
13518         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13519         # chokes on -Wl,-G. The following line is correct:
13520           shared_flag='-G'
13521         else
13522         if test "$aix_use_runtimelinking" = yes; then
13523             shared_flag='${wl}-G'
13524           else
13525             shared_flag='${wl}-bM:SRE'
13526         fi
13527         fi
13528       fi
13529
13530       # It seems that -bexpall does not export symbols beginning with
13531       # underscore (_), so it is better to generate a list of symbols to export.
13532       always_export_symbols_F77=yes
13533       if test "$aix_use_runtimelinking" = yes; then
13534         # Warning - without using the other runtime loading flags (-brtl),
13535         # -berok will link without error, but may produce a broken library.
13536         allow_undefined_flag_F77='-berok'
13537        # Determine the default libpath from the value encoded in an empty executable.
13538        cat >conftest.$ac_ext <<_ACEOF
13539       program main
13540
13541       end
13542 _ACEOF
13543 rm -f conftest.$ac_objext conftest$ac_exeext
13544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13545   (eval $ac_link) 2>conftest.er1
13546   ac_status=$?
13547   grep -v '^ *+' conftest.er1 >conftest.err
13548   rm -f conftest.er1
13549   cat conftest.err >&5
13550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551   (exit $ac_status); } &&
13552          { ac_try='test -z "$ac_f77_werror_flag"
13553                          || test ! -s conftest.err'
13554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555   (eval $ac_try) 2>&5
13556   ac_status=$?
13557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558   (exit $ac_status); }; } &&
13559          { ac_try='test -s conftest$ac_exeext'
13560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13561   (eval $ac_try) 2>&5
13562   ac_status=$?
13563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564   (exit $ac_status); }; }; then
13565
13566 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13567 }'`
13568 # Check for a 64-bit object if we didn't find anything.
13569 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; }
13570 }'`; fi
13571 else
13572   echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13574
13575 fi
13576 rm -f conftest.err conftest.$ac_objext \
13577       conftest$ac_exeext conftest.$ac_ext
13578 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13579
13580        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13581         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"
13582        else
13583         if test "$host_cpu" = ia64; then
13584           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13585           allow_undefined_flag_F77="-z nodefs"
13586           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"
13587         else
13588          # Determine the default libpath from the value encoded in an empty executable.
13589          cat >conftest.$ac_ext <<_ACEOF
13590       program main
13591
13592       end
13593 _ACEOF
13594 rm -f conftest.$ac_objext conftest$ac_exeext
13595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13596   (eval $ac_link) 2>conftest.er1
13597   ac_status=$?
13598   grep -v '^ *+' conftest.er1 >conftest.err
13599   rm -f conftest.er1
13600   cat conftest.err >&5
13601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602   (exit $ac_status); } &&
13603          { ac_try='test -z "$ac_f77_werror_flag"
13604                          || test ! -s conftest.err'
13605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606   (eval $ac_try) 2>&5
13607   ac_status=$?
13608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609   (exit $ac_status); }; } &&
13610          { ac_try='test -s conftest$ac_exeext'
13611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612   (eval $ac_try) 2>&5
13613   ac_status=$?
13614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615   (exit $ac_status); }; }; then
13616
13617 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13618 }'`
13619 # Check for a 64-bit object if we didn't find anything.
13620 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; }
13621 }'`; fi
13622 else
13623   echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13625
13626 fi
13627 rm -f conftest.err conftest.$ac_objext \
13628       conftest$ac_exeext conftest.$ac_ext
13629 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13630
13631          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13632           # Warning - without using the other run time loading flags,
13633           # -berok will link without error, but may produce a broken library.
13634           no_undefined_flag_F77=' ${wl}-bernotok'
13635           allow_undefined_flag_F77=' ${wl}-berok'
13636           # -bexpall does not export symbols beginning with underscore (_)
13637           always_export_symbols_F77=yes
13638           # Exported symbols can be pulled into shared objects from archives
13639           whole_archive_flag_spec_F77=' '
13640           archive_cmds_need_lc_F77=yes
13641           # This is similar to how AIX traditionally builds it's shared libraries.
13642           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'
13643         fi
13644       fi
13645       ;;
13646
13647     amigaos*)
13648       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)'
13649       hardcode_libdir_flag_spec_F77='-L$libdir'
13650       hardcode_minus_L_F77=yes
13651       # see comment about different semantics on the GNU ld section
13652       ld_shlibs_F77=no
13653       ;;
13654
13655     bsdi4*)
13656       export_dynamic_flag_spec_F77=-rdynamic
13657       ;;
13658
13659     cygwin* | mingw* | pw32*)
13660       # When not using gcc, we currently assume that we are using
13661       # Microsoft Visual C++.
13662       # hardcode_libdir_flag_spec is actually meaningless, as there is
13663       # no search path for DLLs.
13664       hardcode_libdir_flag_spec_F77=' '
13665       allow_undefined_flag_F77=unsupported
13666       # Tell ltmain to make .lib files, not .a files.
13667       libext=lib
13668       # Tell ltmain to make .dll files, not .so files.
13669       shrext=".dll"
13670       # FIXME: Setting linknames here is a bad hack.
13671       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13672       # The linker will automatically build a .lib file if we build a DLL.
13673       old_archive_From_new_cmds_F77='true'
13674       # FIXME: Should let the user specify the lib program.
13675       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13676       fix_srcfile_path='`cygpath -w "$srcfile"`'
13677       enable_shared_with_static_runtimes_F77=yes
13678       ;;
13679
13680     darwin* | rhapsody*)
13681     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13682       archive_cmds_need_lc_F77=no
13683       case "$host_os" in
13684       rhapsody* | darwin1.[012])
13685         allow_undefined_flag_F77='-undefined suppress'
13686         ;;
13687       *) # Darwin 1.3 on
13688         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13689         ;;
13690       esac
13691       # FIXME: Relying on posixy $() will cause problems for
13692       #        cross-compilation, but unfortunately the echo tests do not
13693       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13694       #        `"' quotes if we put them in here... so don't!
13695         lt_int_apple_cc_single_mod=no
13696         output_verbose_link_cmd='echo'
13697         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13698           lt_int_apple_cc_single_mod=yes
13699         fi
13700         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13701           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13702         else
13703         archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13704       fi
13705       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13706       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13707         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13708           archive_expsym_cmds_F77='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}'
13709         else
13710           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13711         fi
13712           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13713       hardcode_direct_F77=no
13714       hardcode_automatic_F77=yes
13715       hardcode_shlibpath_var_F77=unsupported
13716       whole_archive_flag_spec_F77='-all_load $convenience'
13717       link_all_deplibs_F77=yes
13718     fi
13719       ;;
13720
13721     dgux*)
13722       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13723       hardcode_libdir_flag_spec_F77='-L$libdir'
13724       hardcode_shlibpath_var_F77=no
13725       ;;
13726
13727     freebsd1*)
13728       ld_shlibs_F77=no
13729       ;;
13730
13731     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13732     # support.  Future versions do this automatically, but an explicit c++rt0.o
13733     # does not break anything, and helps significantly (at the cost of a little
13734     # extra space).
13735     freebsd2.2*)
13736       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13737       hardcode_libdir_flag_spec_F77='-R$libdir'
13738       hardcode_direct_F77=yes
13739       hardcode_shlibpath_var_F77=no
13740       ;;
13741
13742     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13743     freebsd2*)
13744       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13745       hardcode_direct_F77=yes
13746       hardcode_minus_L_F77=yes
13747       hardcode_shlibpath_var_F77=no
13748       ;;
13749
13750     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13751     freebsd*)
13752       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13753       hardcode_libdir_flag_spec_F77='-R$libdir'
13754       hardcode_direct_F77=yes
13755       hardcode_shlibpath_var_F77=no
13756       ;;
13757
13758     hpux9*)
13759       if test "$GCC" = yes; then
13760         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'
13761       else
13762         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'
13763       fi
13764       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13765       hardcode_libdir_separator_F77=:
13766       hardcode_direct_F77=yes
13767
13768       # hardcode_minus_L: Not really in the search PATH,
13769       # but as the default location of the library.
13770       hardcode_minus_L_F77=yes
13771       export_dynamic_flag_spec_F77='${wl}-E'
13772       ;;
13773
13774     hpux10* | hpux11*)
13775       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13776         case "$host_cpu" in
13777         hppa*64*|ia64*)
13778           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13779           ;;
13780         *)
13781           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13782           ;;
13783         esac
13784       else
13785         case "$host_cpu" in
13786         hppa*64*|ia64*)
13787           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13788           ;;
13789         *)
13790           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13791           ;;
13792         esac
13793       fi
13794       if test "$with_gnu_ld" = no; then
13795         case "$host_cpu" in
13796         hppa*64*)
13797           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13798           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13799           hardcode_libdir_separator_F77=:
13800           hardcode_direct_F77=no
13801           hardcode_shlibpath_var_F77=no
13802           ;;
13803         ia64*)
13804           hardcode_libdir_flag_spec_F77='-L$libdir'
13805           hardcode_direct_F77=no
13806           hardcode_shlibpath_var_F77=no
13807
13808           # hardcode_minus_L: Not really in the search PATH,
13809           # but as the default location of the library.
13810           hardcode_minus_L_F77=yes
13811           ;;
13812         *)
13813           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13814           hardcode_libdir_separator_F77=:
13815           hardcode_direct_F77=yes
13816           export_dynamic_flag_spec_F77='${wl}-E'
13817
13818           # hardcode_minus_L: Not really in the search PATH,
13819           # but as the default location of the library.
13820           hardcode_minus_L_F77=yes
13821           ;;
13822         esac
13823       fi
13824       ;;
13825
13826     irix5* | irix6* | nonstopux*)
13827       if test "$GCC" = yes; then
13828         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'
13829       else
13830         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'
13831         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13832       fi
13833       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13834       hardcode_libdir_separator_F77=:
13835       link_all_deplibs_F77=yes
13836       ;;
13837
13838     netbsd*)
13839       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13840         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13841       else
13842         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13843       fi
13844       hardcode_libdir_flag_spec_F77='-R$libdir'
13845       hardcode_direct_F77=yes
13846       hardcode_shlibpath_var_F77=no
13847       ;;
13848
13849     newsos6)
13850       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13851       hardcode_direct_F77=yes
13852       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13853       hardcode_libdir_separator_F77=:
13854       hardcode_shlibpath_var_F77=no
13855       ;;
13856
13857     openbsd*)
13858       hardcode_direct_F77=yes
13859       hardcode_shlibpath_var_F77=no
13860       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13861         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13862         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13863         export_dynamic_flag_spec_F77='${wl}-E'
13864       else
13865        case $host_os in
13866          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13867            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13868            hardcode_libdir_flag_spec_F77='-R$libdir'
13869            ;;
13870          *)
13871            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13872            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13873            ;;
13874        esac
13875       fi
13876       ;;
13877
13878     os2*)
13879       hardcode_libdir_flag_spec_F77='-L$libdir'
13880       hardcode_minus_L_F77=yes
13881       allow_undefined_flag_F77=unsupported
13882       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'
13883       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13884       ;;
13885
13886     osf3*)
13887       if test "$GCC" = yes; then
13888         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13889         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'
13890       else
13891         allow_undefined_flag_F77=' -expect_unresolved \*'
13892         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'
13893       fi
13894       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13895       hardcode_libdir_separator_F77=:
13896       ;;
13897
13898     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13899       if test "$GCC" = yes; then
13900         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13901         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'
13902         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13903       else
13904         allow_undefined_flag_F77=' -expect_unresolved \*'
13905         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'
13906         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~
13907         $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'
13908
13909         # Both c and cxx compiler support -rpath directly
13910         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13911       fi
13912       hardcode_libdir_separator_F77=:
13913       ;;
13914
13915     sco3.2v5*)
13916       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13917       hardcode_shlibpath_var_F77=no
13918       export_dynamic_flag_spec_F77='${wl}-Bexport'
13919       runpath_var=LD_RUN_PATH
13920       hardcode_runpath_var=yes
13921       ;;
13922
13923     solaris*)
13924       no_undefined_flag_F77=' -z text'
13925       if test "$GCC" = yes; then
13926         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13927         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13928           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13929       else
13930         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13931         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13932         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13933       fi
13934       hardcode_libdir_flag_spec_F77='-R$libdir'
13935       hardcode_shlibpath_var_F77=no
13936       case $host_os in
13937       solaris2.[0-5] | solaris2.[0-5].*) ;;
13938       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13939         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13940       esac
13941       link_all_deplibs_F77=yes
13942       ;;
13943
13944     sunos4*)
13945       if test "x$host_vendor" = xsequent; then
13946         # Use $CC to link under sequent, because it throws in some extra .o
13947         # files that make .init and .fini sections work.
13948         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13949       else
13950         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13951       fi
13952       hardcode_libdir_flag_spec_F77='-L$libdir'
13953       hardcode_direct_F77=yes
13954       hardcode_minus_L_F77=yes
13955       hardcode_shlibpath_var_F77=no
13956       ;;
13957
13958     sysv4)
13959       case $host_vendor in
13960         sni)
13961           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13962           hardcode_direct_F77=yes # is this really true???
13963         ;;
13964         siemens)
13965           ## LD is ld it makes a PLAMLIB
13966           ## CC just makes a GrossModule.
13967           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13968           reload_cmds_F77='$CC -r -o $output$reload_objs'
13969           hardcode_direct_F77=no
13970         ;;
13971         motorola)
13972           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13973           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13974         ;;
13975       esac
13976       runpath_var='LD_RUN_PATH'
13977       hardcode_shlibpath_var_F77=no
13978       ;;
13979
13980     sysv4.3*)
13981       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13982       hardcode_shlibpath_var_F77=no
13983       export_dynamic_flag_spec_F77='-Bexport'
13984       ;;
13985
13986     sysv4*MP*)
13987       if test -d /usr/nec; then
13988         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13989         hardcode_shlibpath_var_F77=no
13990         runpath_var=LD_RUN_PATH
13991         hardcode_runpath_var=yes
13992         ld_shlibs_F77=yes
13993       fi
13994       ;;
13995
13996     sysv4.2uw2*)
13997       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13998       hardcode_direct_F77=yes
13999       hardcode_minus_L_F77=no
14000       hardcode_shlibpath_var_F77=no
14001       hardcode_runpath_var=yes
14002       runpath_var=LD_RUN_PATH
14003       ;;
14004
14005    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14006       no_undefined_flag_F77='${wl}-z ${wl}text'
14007       if test "$GCC" = yes; then
14008         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14009       else
14010         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14011       fi
14012       runpath_var='LD_RUN_PATH'
14013       hardcode_shlibpath_var_F77=no
14014       ;;
14015
14016     sysv5*)
14017       no_undefined_flag_F77=' -z text'
14018       # $CC -shared without GNU ld will not create a library from C++
14019       # object files and a static libstdc++, better avoid it by now
14020       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14021       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14022                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14023       hardcode_libdir_flag_spec_F77=
14024       hardcode_shlibpath_var_F77=no
14025       runpath_var='LD_RUN_PATH'
14026       ;;
14027
14028     uts4*)
14029       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14030       hardcode_libdir_flag_spec_F77='-L$libdir'
14031       hardcode_shlibpath_var_F77=no
14032       ;;
14033
14034     *)
14035       ld_shlibs_F77=no
14036       ;;
14037     esac
14038   fi
14039
14040 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14041 echo "${ECHO_T}$ld_shlibs_F77" >&6
14042 test "$ld_shlibs_F77" = no && can_build_shared=no
14043
14044 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14045 if test "$GCC" = yes; then
14046   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14047 fi
14048
14049 #
14050 # Do we need to explicitly link libc?
14051 #
14052 case "x$archive_cmds_need_lc_F77" in
14053 x|xyes)
14054   # Assume -lc should be added
14055   archive_cmds_need_lc_F77=yes
14056
14057   if test "$enable_shared" = yes && test "$GCC" = yes; then
14058     case $archive_cmds_F77 in
14059     *'~'*)
14060       # FIXME: we may have to deal with multi-command sequences.
14061       ;;
14062     '$CC '*)
14063       # Test whether the compiler implicitly links with -lc since on some
14064       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14065       # to ld, don't add -lc before -lgcc.
14066       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14067 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14068       $rm conftest*
14069       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14070
14071       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14072   (eval $ac_compile) 2>&5
14073   ac_status=$?
14074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075   (exit $ac_status); } 2>conftest.err; then
14076         soname=conftest
14077         lib=conftest
14078         libobjs=conftest.$ac_objext
14079         deplibs=
14080         wl=$lt_prog_compiler_wl_F77
14081         compiler_flags=-v
14082         linker_flags=-v
14083         verstring=
14084         output_objdir=.
14085         libname=conftest
14086         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14087         allow_undefined_flag_F77=
14088         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14089   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14090   ac_status=$?
14091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092   (exit $ac_status); }
14093         then
14094           archive_cmds_need_lc_F77=no
14095         else
14096           archive_cmds_need_lc_F77=yes
14097         fi
14098         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14099       else
14100         cat conftest.err 1>&5
14101       fi
14102       $rm conftest*
14103       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14104 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14105       ;;
14106     esac
14107   fi
14108   ;;
14109 esac
14110
14111 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14112 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14113 hardcode_action_F77=
14114 if test -n "$hardcode_libdir_flag_spec_F77" || \
14115    test -n "$runpath_var F77" || \
14116    test "X$hardcode_automatic_F77"="Xyes" ; then
14117
14118   # We can hardcode non-existant directories.
14119   if test "$hardcode_direct_F77" != no &&
14120      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14121      # have to relink, otherwise we might link with an installed library
14122      # when we should be linking with a yet-to-be-installed one
14123      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14124      test "$hardcode_minus_L_F77" != no; then
14125     # Linking always hardcodes the temporary library directory.
14126     hardcode_action_F77=relink
14127   else
14128     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14129     hardcode_action_F77=immediate
14130   fi
14131 else
14132   # We cannot hardcode anything, or else we can only hardcode existing
14133   # directories.
14134   hardcode_action_F77=unsupported
14135 fi
14136 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14137 echo "${ECHO_T}$hardcode_action_F77" >&6
14138
14139 if test "$hardcode_action_F77" = relink; then
14140   # Fast installation is not supported
14141   enable_fast_install=no
14142 elif test "$shlibpath_overrides_runpath" = yes ||
14143      test "$enable_shared" = no; then
14144   # Fast installation is not necessary
14145   enable_fast_install=needless
14146 fi
14147
14148 striplib=
14149 old_striplib=
14150 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14151 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14152 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14153   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14154   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14155   echo "$as_me:$LINENO: result: yes" >&5
14156 echo "${ECHO_T}yes" >&6
14157 else
14158 # FIXME - insert some real tests, host_os isn't really good enough
14159   case $host_os in
14160    darwin*)
14161        if test -n "$STRIP" ; then
14162          striplib="$STRIP -x"
14163          echo "$as_me:$LINENO: result: yes" >&5
14164 echo "${ECHO_T}yes" >&6
14165        else
14166   echo "$as_me:$LINENO: result: no" >&5
14167 echo "${ECHO_T}no" >&6
14168 fi
14169        ;;
14170    *)
14171   echo "$as_me:$LINENO: result: no" >&5
14172 echo "${ECHO_T}no" >&6
14173     ;;
14174   esac
14175 fi
14176
14177 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14178 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14179 library_names_spec=
14180 libname_spec='lib$name'
14181 soname_spec=
14182 shrext=".so"
14183 postinstall_cmds=
14184 postuninstall_cmds=
14185 finish_cmds=
14186 finish_eval=
14187 shlibpath_var=
14188 shlibpath_overrides_runpath=unknown
14189 version_type=none
14190 dynamic_linker="$host_os ld.so"
14191 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14192 if test "$GCC" = yes; then
14193   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14194   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14195     # if the path contains ";" then we assume it to be the separator
14196     # otherwise default to the standard path separator (i.e. ":") - it is
14197     # assumed that no part of a normal pathname contains ";" but that should
14198     # okay in the real world where ";" in dirpaths is itself problematic.
14199     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14200   else
14201     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14202   fi
14203 else
14204   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14205 fi
14206 need_lib_prefix=unknown
14207 hardcode_into_libs=no
14208
14209 # when you set need_version to no, make sure it does not cause -set_version
14210 # flags to be left without arguments
14211 need_version=unknown
14212
14213 case $host_os in
14214 aix3*)
14215   version_type=linux
14216   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14217   shlibpath_var=LIBPATH
14218
14219   # AIX 3 has no versioning support, so we append a major version to the name.
14220   soname_spec='${libname}${release}${shared_ext}$major'
14221   ;;
14222
14223 aix4* | aix5*)
14224   version_type=linux
14225   need_lib_prefix=no
14226   need_version=no
14227   hardcode_into_libs=yes
14228   if test "$host_cpu" = ia64; then
14229     # AIX 5 supports IA64
14230     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14231     shlibpath_var=LD_LIBRARY_PATH
14232   else
14233     # With GCC up to 2.95.x, collect2 would create an import file
14234     # for dependence libraries.  The import file would start with
14235     # the line `#! .'.  This would cause the generated library to
14236     # depend on `.', always an invalid library.  This was fixed in
14237     # development snapshots of GCC prior to 3.0.
14238     case $host_os in
14239       aix4 | aix4.[01] | aix4.[01].*)
14240       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14241            echo ' yes '
14242            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14243         :
14244       else
14245         can_build_shared=no
14246       fi
14247       ;;
14248     esac
14249     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14250     # soname into executable. Probably we can add versioning support to
14251     # collect2, so additional links can be useful in future.
14252     if test "$aix_use_runtimelinking" = yes; then
14253       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14254       # instead of lib<name>.a to let people know that these are not
14255       # typical AIX shared libraries.
14256       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14257     else
14258       # We preserve .a as extension for shared libraries through AIX4.2
14259       # and later when we are not doing run time linking.
14260       library_names_spec='${libname}${release}.a $libname.a'
14261       soname_spec='${libname}${release}${shared_ext}$major'
14262     fi
14263     shlibpath_var=LIBPATH
14264   fi
14265   ;;
14266
14267 amigaos*)
14268   library_names_spec='$libname.ixlibrary $libname.a'
14269   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14270   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'
14271   ;;
14272
14273 beos*)
14274   library_names_spec='${libname}${shared_ext}'
14275   dynamic_linker="$host_os ld.so"
14276   shlibpath_var=LIBRARY_PATH
14277   ;;
14278
14279 bsdi4*)
14280   version_type=linux
14281   need_version=no
14282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14283   soname_spec='${libname}${release}${shared_ext}$major'
14284   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14285   shlibpath_var=LD_LIBRARY_PATH
14286   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14287   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14288   # the default ld.so.conf also contains /usr/contrib/lib and
14289   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14290   # libtool to hard-code these into programs
14291   ;;
14292
14293 cygwin* | mingw* | pw32*)
14294   version_type=windows
14295   shrext=".dll"
14296   need_version=no
14297   need_lib_prefix=no
14298
14299   case $GCC,$host_os in
14300   yes,cygwin* | yes,mingw* | yes,pw32*)
14301     library_names_spec='$libname.dll.a'
14302     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14303     postinstall_cmds='base_file=`basename \${file}`~
14304       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14305       dldir=$destdir/`dirname \$dlpath`~
14306       test -d \$dldir || mkdir -p \$dldir~
14307       $install_prog $dir/$dlname \$dldir/$dlname'
14308     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14309       dlpath=$dir/\$dldll~
14310        $rm \$dlpath'
14311     shlibpath_overrides_runpath=yes
14312
14313     case $host_os in
14314     cygwin*)
14315       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14316       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14317       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14318       ;;
14319     mingw*)
14320       # MinGW DLLs use traditional 'lib' prefix
14321       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14322       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14323       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14324         # It is most probably a Windows format PATH printed by
14325         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14326         # path with ; separators, and with drive letters. We can handle the
14327         # drive letters (cygwin fileutils understands them), so leave them,
14328         # especially as we might pass files found there to a mingw objdump,
14329         # which wouldn't understand a cygwinified path. Ahh.
14330         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14331       else
14332         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14333       fi
14334       ;;
14335     pw32*)
14336       # pw32 DLLs use 'pw' prefix rather than 'lib'
14337       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14338       ;;
14339     esac
14340     ;;
14341
14342   *)
14343     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14344     ;;
14345   esac
14346   dynamic_linker='Win32 ld.exe'
14347   # FIXME: first we should search . and the directory the executable is in
14348   shlibpath_var=PATH
14349   ;;
14350
14351 darwin* | rhapsody*)
14352   dynamic_linker="$host_os dyld"
14353   version_type=darwin
14354   need_lib_prefix=no
14355   need_version=no
14356   # FIXME: Relying on posixy $() will cause problems for
14357   #        cross-compilation, but unfortunately the echo tests do not
14358   #        yet detect zsh echo's removal of \ escapes.
14359   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14360   soname_spec='${libname}${release}${major}$shared_ext'
14361   shlibpath_overrides_runpath=yes
14362   shlibpath_var=DYLD_LIBRARY_PATH
14363   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14364   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14365   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14366   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"`
14367   fi
14368   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14369   ;;
14370
14371 dgux*)
14372   version_type=linux
14373   need_lib_prefix=no
14374   need_version=no
14375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14376   soname_spec='${libname}${release}${shared_ext}$major'
14377   shlibpath_var=LD_LIBRARY_PATH
14378   ;;
14379
14380 freebsd1*)
14381   dynamic_linker=no
14382   ;;
14383
14384 freebsd*)
14385   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14386   version_type=freebsd-$objformat
14387   case $version_type in
14388     freebsd-elf*)
14389       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14390       need_version=no
14391       need_lib_prefix=no
14392       ;;
14393     freebsd-*)
14394       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14395       need_version=yes
14396       ;;
14397   esac
14398   shlibpath_var=LD_LIBRARY_PATH
14399   case $host_os in
14400   freebsd2*)
14401     shlibpath_overrides_runpath=yes
14402     ;;
14403   freebsd3.01* | freebsdelf3.01*)
14404     shlibpath_overrides_runpath=yes
14405     hardcode_into_libs=yes
14406     ;;
14407   *) # from 3.2 on
14408     shlibpath_overrides_runpath=no
14409     hardcode_into_libs=yes
14410     ;;
14411   esac
14412   ;;
14413
14414 gnu*)
14415   version_type=linux
14416   need_lib_prefix=no
14417   need_version=no
14418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14419   soname_spec='${libname}${release}${shared_ext}$major'
14420   shlibpath_var=LD_LIBRARY_PATH
14421   hardcode_into_libs=yes
14422   ;;
14423
14424 hpux9* | hpux10* | hpux11*)
14425   # Give a soname corresponding to the major version so that dld.sl refuses to
14426   # link against other versions.
14427   version_type=sunos
14428   need_lib_prefix=no
14429   need_version=no
14430   case "$host_cpu" in
14431   ia64*)
14432     shrext='.so'
14433     hardcode_into_libs=yes
14434     dynamic_linker="$host_os dld.so"
14435     shlibpath_var=LD_LIBRARY_PATH
14436     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14437     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14438     soname_spec='${libname}${release}${shared_ext}$major'
14439     if test "X$HPUX_IA64_MODE" = X32; then
14440       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14441     else
14442       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14443     fi
14444     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14445     ;;
14446    hppa*64*)
14447      shrext='.sl'
14448      hardcode_into_libs=yes
14449      dynamic_linker="$host_os dld.sl"
14450      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14451      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14452      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14453      soname_spec='${libname}${release}${shared_ext}$major'
14454      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14455      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14456      ;;
14457    *)
14458     shrext='.sl'
14459     dynamic_linker="$host_os dld.sl"
14460     shlibpath_var=SHLIB_PATH
14461     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14462     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14463     soname_spec='${libname}${release}${shared_ext}$major'
14464     ;;
14465   esac
14466   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14467   postinstall_cmds='chmod 555 $lib'
14468   ;;
14469
14470 irix5* | irix6* | nonstopux*)
14471   case $host_os in
14472     nonstopux*) version_type=nonstopux ;;
14473     *)
14474         if test "$lt_cv_prog_gnu_ld" = yes; then
14475                 version_type=linux
14476         else
14477                 version_type=irix
14478         fi ;;
14479   esac
14480   need_lib_prefix=no
14481   need_version=no
14482   soname_spec='${libname}${release}${shared_ext}$major'
14483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14484   case $host_os in
14485   irix5* | nonstopux*)
14486     libsuff= shlibsuff=
14487     ;;
14488   *)
14489     case $LD in # libtool.m4 will add one of these switches to LD
14490     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14491       libsuff= shlibsuff= libmagic=32-bit;;
14492     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14493       libsuff=32 shlibsuff=N32 libmagic=N32;;
14494     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14495       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14496     *) libsuff= shlibsuff= libmagic=never-match;;
14497     esac
14498     ;;
14499   esac
14500   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14501   shlibpath_overrides_runpath=no
14502   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14503   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14504   hardcode_into_libs=yes
14505   ;;
14506
14507 # No shared lib support for Linux oldld, aout, or coff.
14508 linux*oldld* | linux*aout* | linux*coff*)
14509   dynamic_linker=no
14510   ;;
14511
14512 # This must be Linux ELF.
14513 linux*)
14514   version_type=linux
14515   need_lib_prefix=no
14516   need_version=no
14517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518   soname_spec='${libname}${release}${shared_ext}$major'
14519   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14520   shlibpath_var=LD_LIBRARY_PATH
14521   shlibpath_overrides_runpath=no
14522   # This implies no fast_install, which is unacceptable.
14523   # Some rework will be needed to allow for fast_install
14524   # before this can be enabled.
14525   hardcode_into_libs=yes
14526
14527   # We used to test for /lib/ld.so.1 and disable shared libraries on
14528   # powerpc, because MkLinux only supported shared libraries with the
14529   # GNU dynamic linker.  Since this was broken with cross compilers,
14530   # most powerpc-linux boxes support dynamic linking these days and
14531   # people can always --disable-shared, the test was removed, and we
14532   # assume the GNU/Linux dynamic linker is in use.
14533   dynamic_linker='GNU/Linux ld.so'
14534   ;;
14535
14536 netbsd*)
14537   version_type=sunos
14538   need_lib_prefix=no
14539   need_version=no
14540   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14541     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14542     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14543     dynamic_linker='NetBSD (a.out) ld.so'
14544   else
14545     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14546     soname_spec='${libname}${release}${shared_ext}$major'
14547     dynamic_linker='NetBSD ld.elf_so'
14548   fi
14549   shlibpath_var=LD_LIBRARY_PATH
14550   shlibpath_overrides_runpath=yes
14551   hardcode_into_libs=yes
14552   ;;
14553
14554 newsos6)
14555   version_type=linux
14556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14557   shlibpath_var=LD_LIBRARY_PATH
14558   shlibpath_overrides_runpath=yes
14559   ;;
14560
14561 nto-qnx)
14562   version_type=linux
14563   need_lib_prefix=no
14564   need_version=no
14565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14566   soname_spec='${libname}${release}${shared_ext}$major'
14567   shlibpath_var=LD_LIBRARY_PATH
14568   shlibpath_overrides_runpath=yes
14569   ;;
14570
14571 openbsd*)
14572   version_type=sunos
14573   need_lib_prefix=no
14574   need_version=no
14575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14576   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14577   shlibpath_var=LD_LIBRARY_PATH
14578   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14579     case $host_os in
14580       openbsd2.[89] | openbsd2.[89].*)
14581         shlibpath_overrides_runpath=no
14582         ;;
14583       *)
14584         shlibpath_overrides_runpath=yes
14585         ;;
14586       esac
14587   else
14588     shlibpath_overrides_runpath=yes
14589   fi
14590   ;;
14591
14592 os2*)
14593   libname_spec='$name'
14594   shrext=".dll"
14595   need_lib_prefix=no
14596   library_names_spec='$libname${shared_ext} $libname.a'
14597   dynamic_linker='OS/2 ld.exe'
14598   shlibpath_var=LIBPATH
14599   ;;
14600
14601 osf3* | osf4* | osf5*)
14602   version_type=osf
14603   need_lib_prefix=no
14604   need_version=no
14605   soname_spec='${libname}${release}${shared_ext}$major'
14606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14607   shlibpath_var=LD_LIBRARY_PATH
14608   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14609   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14610   ;;
14611
14612 sco3.2v5*)
14613   version_type=osf
14614   soname_spec='${libname}${release}${shared_ext}$major'
14615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14616   shlibpath_var=LD_LIBRARY_PATH
14617   ;;
14618
14619 solaris*)
14620   version_type=linux
14621   need_lib_prefix=no
14622   need_version=no
14623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14624   soname_spec='${libname}${release}${shared_ext}$major'
14625   shlibpath_var=LD_LIBRARY_PATH
14626   shlibpath_overrides_runpath=yes
14627   hardcode_into_libs=yes
14628   # ldd complains unless libraries are executable
14629   postinstall_cmds='chmod +x $lib'
14630   ;;
14631
14632 sunos4*)
14633   version_type=sunos
14634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14635   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14636   shlibpath_var=LD_LIBRARY_PATH
14637   shlibpath_overrides_runpath=yes
14638   if test "$with_gnu_ld" = yes; then
14639     need_lib_prefix=no
14640   fi
14641   need_version=yes
14642   ;;
14643
14644 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14645   version_type=linux
14646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14647   soname_spec='${libname}${release}${shared_ext}$major'
14648   shlibpath_var=LD_LIBRARY_PATH
14649   case $host_vendor in
14650     sni)
14651       shlibpath_overrides_runpath=no
14652       need_lib_prefix=no
14653       export_dynamic_flag_spec='${wl}-Blargedynsym'
14654       runpath_var=LD_RUN_PATH
14655       ;;
14656     siemens)
14657       need_lib_prefix=no
14658       ;;
14659     motorola)
14660       need_lib_prefix=no
14661       need_version=no
14662       shlibpath_overrides_runpath=no
14663       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14664       ;;
14665   esac
14666   ;;
14667
14668 sysv4*MP*)
14669   if test -d /usr/nec ;then
14670     version_type=linux
14671     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14672     soname_spec='$libname${shared_ext}.$major'
14673     shlibpath_var=LD_LIBRARY_PATH
14674   fi
14675   ;;
14676
14677 uts4*)
14678   version_type=linux
14679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680   soname_spec='${libname}${release}${shared_ext}$major'
14681   shlibpath_var=LD_LIBRARY_PATH
14682   ;;
14683
14684 *)
14685   dynamic_linker=no
14686   ;;
14687 esac
14688 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14689 echo "${ECHO_T}$dynamic_linker" >&6
14690 test "$dynamic_linker" = no && can_build_shared=no
14691
14692
14693 # The else clause should only fire when bootstrapping the
14694 # libtool distribution, otherwise you forgot to ship ltmain.sh
14695 # with your package, and you will get complaints that there are
14696 # no rules to generate ltmain.sh.
14697 if test -f "$ltmain"; then
14698   # See if we are running on zsh, and set the options which allow our commands through
14699   # without removal of \ escapes.
14700   if test -n "${ZSH_VERSION+set}" ; then
14701     setopt NO_GLOB_SUBST
14702   fi
14703   # Now quote all the things that may contain metacharacters while being
14704   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14705   # variables and quote the copies for generation of the libtool script.
14706   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14707     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14708     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14709     deplibs_check_method reload_flag reload_cmds need_locks \
14710     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14711     lt_cv_sys_global_symbol_to_c_name_address \
14712     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14713     old_postinstall_cmds old_postuninstall_cmds \
14714     compiler_F77 \
14715     CC_F77 \
14716     LD_F77 \
14717     lt_prog_compiler_wl_F77 \
14718     lt_prog_compiler_pic_F77 \
14719     lt_prog_compiler_static_F77 \
14720     lt_prog_compiler_no_builtin_flag_F77 \
14721     export_dynamic_flag_spec_F77 \
14722     thread_safe_flag_spec_F77 \
14723     whole_archive_flag_spec_F77 \
14724     enable_shared_with_static_runtimes_F77 \
14725     old_archive_cmds_F77 \
14726     old_archive_from_new_cmds_F77 \
14727     predep_objects_F77 \
14728     postdep_objects_F77 \
14729     predeps_F77 \
14730     postdeps_F77 \
14731     compiler_lib_search_path_F77 \
14732     archive_cmds_F77 \
14733     archive_expsym_cmds_F77 \
14734     postinstall_cmds_F77 \
14735     postuninstall_cmds_F77 \
14736     old_archive_from_expsyms_cmds_F77 \
14737     allow_undefined_flag_F77 \
14738     no_undefined_flag_F77 \
14739     export_symbols_cmds_F77 \
14740     hardcode_libdir_flag_spec_F77 \
14741     hardcode_libdir_flag_spec_ld_F77 \
14742     hardcode_libdir_separator_F77 \
14743     hardcode_automatic_F77 \
14744     module_cmds_F77 \
14745     module_expsym_cmds_F77 \
14746     lt_cv_prog_compiler_c_o_F77 \
14747     exclude_expsyms_F77 \
14748     include_expsyms_F77; do
14749
14750     case $var in
14751     old_archive_cmds_F77 | \
14752     old_archive_from_new_cmds_F77 | \
14753     archive_cmds_F77 | \
14754     archive_expsym_cmds_F77 | \
14755     module_cmds_F77 | \
14756     module_expsym_cmds_F77 | \
14757     old_archive_from_expsyms_cmds_F77 | \
14758     export_symbols_cmds_F77 | \
14759     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14760     postinstall_cmds | postuninstall_cmds | \
14761     old_postinstall_cmds | old_postuninstall_cmds | \
14762     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14763       # Double-quote double-evaled strings.
14764       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14765       ;;
14766     *)
14767       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14768       ;;
14769     esac
14770   done
14771
14772   case $lt_echo in
14773   *'\$0 --fallback-echo"')
14774     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14775     ;;
14776   esac
14777
14778 cfgfile="$ofile"
14779
14780   cat <<__EOF__ >> "$cfgfile"
14781 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14782
14783 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14784
14785 # Shell to use when invoking shell scripts.
14786 SHELL=$lt_SHELL
14787
14788 # Whether or not to build shared libraries.
14789 build_libtool_libs=$enable_shared
14790
14791 # Whether or not to build static libraries.
14792 build_old_libs=$enable_static
14793
14794 # Whether or not to add -lc for building shared libraries.
14795 build_libtool_need_lc=$archive_cmds_need_lc_F77
14796
14797 # Whether or not to disallow shared libs when runtime libs are static
14798 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14799
14800 # Whether or not to optimize for fast installation.
14801 fast_install=$enable_fast_install
14802
14803 # The host system.
14804 host_alias=$host_alias
14805 host=$host
14806
14807 # An echo program that does not interpret backslashes.
14808 echo=$lt_echo
14809
14810 # The archiver.
14811 AR=$lt_AR
14812 AR_FLAGS=$lt_AR_FLAGS
14813
14814 # A C compiler.
14815 LTCC=$lt_LTCC
14816
14817 # A language-specific compiler.
14818 CC=$lt_compiler_F77
14819
14820 # Is the compiler the GNU C compiler?
14821 with_gcc=$GCC_F77
14822
14823 # An ERE matcher.
14824 EGREP=$lt_EGREP
14825
14826 # The linker used to build libraries.
14827 LD=$lt_LD_F77
14828
14829 # Whether we need hard or soft links.
14830 LN_S=$lt_LN_S
14831
14832 # A BSD-compatible nm program.
14833 NM=$lt_NM
14834
14835 # A symbol stripping program
14836 STRIP=$STRIP
14837
14838 # Used to examine libraries when file_magic_cmd begins "file"
14839 MAGIC_CMD=$MAGIC_CMD
14840
14841 # Used on cygwin: DLL creation program.
14842 DLLTOOL="$DLLTOOL"
14843
14844 # Used on cygwin: object dumper.
14845 OBJDUMP="$OBJDUMP"
14846
14847 # Used on cygwin: assembler.
14848 AS="$AS"
14849
14850 # The name of the directory that contains temporary libtool files.
14851 objdir=$objdir
14852
14853 # How to create reloadable object files.
14854 reload_flag=$lt_reload_flag
14855 reload_cmds=$lt_reload_cmds
14856
14857 # How to pass a linker flag through the compiler.
14858 wl=$lt_lt_prog_compiler_wl_F77
14859
14860 # Object file suffix (normally "o").
14861 objext="$ac_objext"
14862
14863 # Old archive suffix (normally "a").
14864 libext="$libext"
14865
14866 # Shared library suffix (normally ".so").
14867 shrext='$shrext'
14868
14869 # Executable file suffix (normally "").
14870 exeext="$exeext"
14871
14872 # Additional compiler flags for building library objects.
14873 pic_flag=$lt_lt_prog_compiler_pic_F77
14874 pic_mode=$pic_mode
14875
14876 # What is the maximum length of a command?
14877 max_cmd_len=$lt_cv_sys_max_cmd_len
14878
14879 # Does compiler simultaneously support -c and -o options?
14880 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14881
14882 # Must we lock files when doing compilation ?
14883 need_locks=$lt_need_locks
14884
14885 # Do we need the lib prefix for modules?
14886 need_lib_prefix=$need_lib_prefix
14887
14888 # Do we need a version for libraries?
14889 need_version=$need_version
14890
14891 # Whether dlopen is supported.
14892 dlopen_support=$enable_dlopen
14893
14894 # Whether dlopen of programs is supported.
14895 dlopen_self=$enable_dlopen_self
14896
14897 # Whether dlopen of statically linked programs is supported.
14898 dlopen_self_static=$enable_dlopen_self_static
14899
14900 # Compiler flag to prevent dynamic linking.
14901 link_static_flag=$lt_lt_prog_compiler_static_F77
14902
14903 # Compiler flag to turn off builtin functions.
14904 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14905
14906 # Compiler flag to allow reflexive dlopens.
14907 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14908
14909 # Compiler flag to generate shared objects directly from archives.
14910 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14911
14912 # Compiler flag to generate thread-safe objects.
14913 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14914
14915 # Library versioning type.
14916 version_type=$version_type
14917
14918 # Format of library name prefix.
14919 libname_spec=$lt_libname_spec
14920
14921 # List of archive names.  First name is the real one, the rest are links.
14922 # The last name is the one that the linker finds with -lNAME.
14923 library_names_spec=$lt_library_names_spec
14924
14925 # The coded name of the library, if different from the real name.
14926 soname_spec=$lt_soname_spec
14927
14928 # Commands used to build and install an old-style archive.
14929 RANLIB=$lt_RANLIB
14930 old_archive_cmds=$lt_old_archive_cmds_F77
14931 old_postinstall_cmds=$lt_old_postinstall_cmds
14932 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14933
14934 # Create an old-style archive from a shared archive.
14935 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14936
14937 # Create a temporary old-style archive to link instead of a shared archive.
14938 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14939
14940 # Commands used to build and install a shared archive.
14941 archive_cmds=$lt_archive_cmds_F77
14942 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14943 postinstall_cmds=$lt_postinstall_cmds
14944 postuninstall_cmds=$lt_postuninstall_cmds
14945
14946 # Commands used to build a loadable module (assumed same as above if empty)
14947 module_cmds=$lt_module_cmds_F77
14948 module_expsym_cmds=$lt_module_expsym_cmds_F77
14949
14950 # Commands to strip libraries.
14951 old_striplib=$lt_old_striplib
14952 striplib=$lt_striplib
14953
14954 # Dependencies to place before the objects being linked to create a
14955 # shared library.
14956 predep_objects=$lt_predep_objects_F77
14957
14958 # Dependencies to place after the objects being linked to create a
14959 # shared library.
14960 postdep_objects=$lt_postdep_objects_F77
14961
14962 # Dependencies to place before the objects being linked to create a
14963 # shared library.
14964 predeps=$lt_predeps_F77
14965
14966 # Dependencies to place after the objects being linked to create a
14967 # shared library.
14968 postdeps=$lt_postdeps_F77
14969
14970 # The library search path used internally by the compiler when linking
14971 # a shared library.
14972 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14973
14974 # Method to check whether dependent libraries are shared objects.
14975 deplibs_check_method=$lt_deplibs_check_method
14976
14977 # Command to use when deplibs_check_method == file_magic.
14978 file_magic_cmd=$lt_file_magic_cmd
14979
14980 # Flag that allows shared libraries with undefined symbols to be built.
14981 allow_undefined_flag=$lt_allow_undefined_flag_F77
14982
14983 # Flag that forces no undefined symbols.
14984 no_undefined_flag=$lt_no_undefined_flag_F77
14985
14986 # Commands used to finish a libtool library installation in a directory.
14987 finish_cmds=$lt_finish_cmds
14988
14989 # Same as above, but a single script fragment to be evaled but not shown.
14990 finish_eval=$lt_finish_eval
14991
14992 # Take the output of nm and produce a listing of raw symbols and C names.
14993 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14994
14995 # Transform the output of nm in a proper C declaration
14996 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14997
14998 # Transform the output of nm in a C name address pair
14999 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15000
15001 # This is the shared library runtime path variable.
15002 runpath_var=$runpath_var
15003
15004 # This is the shared library path variable.
15005 shlibpath_var=$shlibpath_var
15006
15007 # Is shlibpath searched before the hard-coded library search path?
15008 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15009
15010 # How to hardcode a shared library path into an executable.
15011 hardcode_action=$hardcode_action_F77
15012
15013 # Whether we should hardcode library paths into libraries.
15014 hardcode_into_libs=$hardcode_into_libs
15015
15016 # Flag to hardcode \$libdir into a binary during linking.
15017 # This must work even if \$libdir does not exist.
15018 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15019
15020 # If ld is used when linking, flag to hardcode \$libdir into
15021 # a binary during linking. This must work even if \$libdir does
15022 # not exist.
15023 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15024
15025 # Whether we need a single -rpath flag with a separated argument.
15026 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15027
15028 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15029 # resulting binary.
15030 hardcode_direct=$hardcode_direct_F77
15031
15032 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15033 # resulting binary.
15034 hardcode_minus_L=$hardcode_minus_L_F77
15035
15036 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15037 # the resulting binary.
15038 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15039
15040 # Set to yes if building a shared library automatically hardcodes DIR into the library
15041 # and all subsequent libraries and executables linked against it.
15042 hardcode_automatic=$hardcode_automatic_F77
15043
15044 # Variables whose values should be saved in libtool wrapper scripts and
15045 # restored at relink time.
15046 variables_saved_for_relink="$variables_saved_for_relink"
15047
15048 # Whether libtool must link a program against all its dependency libraries.
15049 link_all_deplibs=$link_all_deplibs_F77
15050
15051 # Compile-time system search path for libraries
15052 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15053
15054 # Run-time system search path for libraries
15055 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15056
15057 # Fix the shell variable \$srcfile for the compiler.
15058 fix_srcfile_path="$fix_srcfile_path_F77"
15059
15060 # Set to yes if exported symbols are required.
15061 always_export_symbols=$always_export_symbols_F77
15062
15063 # The commands to list exported symbols.
15064 export_symbols_cmds=$lt_export_symbols_cmds_F77
15065
15066 # The commands to extract the exported symbol list from a shared archive.
15067 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15068
15069 # Symbols that should not be listed in the preloaded symbols.
15070 exclude_expsyms=$lt_exclude_expsyms_F77
15071
15072 # Symbols that must always be exported.
15073 include_expsyms=$lt_include_expsyms_F77
15074
15075 # ### END LIBTOOL TAG CONFIG: $tagname
15076
15077 __EOF__
15078
15079
15080 else
15081   # If there is no Makefile yet, we rely on a make rule to execute
15082   # `config.status --recheck' to rerun these tests and create the
15083   # libtool script then.
15084   test -f Makefile && make "$ltmain"
15085 fi
15086
15087
15088 ac_ext=c
15089 ac_cpp='$CPP $CPPFLAGS'
15090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15093
15094 CC="$lt_save_CC"
15095
15096         else
15097           tagname=""
15098         fi
15099         ;;
15100
15101       GCJ)
15102         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15103
15104
15105
15106 # Source file extension for Java test sources.
15107 ac_ext=java
15108
15109 # Object file extension for compiled Java test sources.
15110 objext=o
15111 objext_GCJ=$objext
15112
15113 # Code to be used in simple compile tests
15114 lt_simple_compile_test_code="class foo {}\n"
15115
15116 # Code to be used in simple link tests
15117 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15118
15119 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15120
15121 # If no C compiler was specified, use CC.
15122 LTCC=${LTCC-"$CC"}
15123
15124 # Allow CC to be a program name with arguments.
15125 compiler=$CC
15126
15127
15128 # Allow CC to be a program name with arguments.
15129 lt_save_CC="$CC"
15130 CC=${GCJ-"gcj"}
15131 compiler=$CC
15132 compiler_GCJ=$CC
15133
15134 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15135 archive_cmds_need_lc_GCJ=no
15136
15137 ## CAVEAT EMPTOR:
15138 ## There is no encapsulation within the following macros, do not change
15139 ## the running order or otherwise move them around unless you know exactly
15140 ## what you are doing...
15141
15142 lt_prog_compiler_no_builtin_flag_GCJ=
15143
15144 if test "$GCC" = yes; then
15145   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15146
15147   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15148 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15149 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15150   echo $ECHO_N "(cached) $ECHO_C" >&6
15151 else
15152   lt_cv_prog_compiler_rtti_exceptions=no
15153   ac_outfile=conftest.$ac_objext
15154    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15155    lt_compiler_flag="-fno-rtti -fno-exceptions"
15156    # Insert the option either (1) after the last *FLAGS variable, or
15157    # (2) before a word containing "conftest.", or (3) at the end.
15158    # Note that $ac_compile itself does not contain backslashes and begins
15159    # with a dollar sign (not a hyphen), so the echo should work correctly.
15160    # The option is referenced via a variable to avoid confusing sed.
15161    lt_compile=`echo "$ac_compile" | $SED \
15162    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15163    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15164    -e 's:$: $lt_compiler_flag:'`
15165    (eval echo "\"\$as_me:15165: $lt_compile\"" >&5)
15166    (eval "$lt_compile" 2>conftest.err)
15167    ac_status=$?
15168    cat conftest.err >&5
15169    echo "$as_me:15169: \$? = $ac_status" >&5
15170    if (exit $ac_status) && test -s "$ac_outfile"; then
15171      # The compiler can only warn and ignore the option if not recognized
15172      # So say no if there are warnings
15173      if test ! -s conftest.err; then
15174        lt_cv_prog_compiler_rtti_exceptions=yes
15175      fi
15176    fi
15177    $rm conftest*
15178
15179 fi
15180 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15181 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15182
15183 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15184     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15185 else
15186     :
15187 fi
15188
15189 fi
15190
15191 lt_prog_compiler_wl_GCJ=
15192 lt_prog_compiler_pic_GCJ=
15193 lt_prog_compiler_static_GCJ=
15194
15195 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15196 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15197
15198   if test "$GCC" = yes; then
15199     lt_prog_compiler_wl_GCJ='-Wl,'
15200     lt_prog_compiler_static_GCJ='-static'
15201
15202     case $host_os in
15203       aix*)
15204       # All AIX code is PIC.
15205       if test "$host_cpu" = ia64; then
15206         # AIX 5 now supports IA64 processor
15207         lt_prog_compiler_static_GCJ='-Bstatic'
15208       fi
15209       ;;
15210
15211     amigaos*)
15212       # FIXME: we need at least 68020 code to build shared libraries, but
15213       # adding the `-m68020' flag to GCC prevents building anything better,
15214       # like `-m68040'.
15215       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15216       ;;
15217
15218     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15219       # PIC is the default for these OSes.
15220       ;;
15221
15222     mingw* | pw32* | os2*)
15223       # This hack is so that the source file can tell whether it is being
15224       # built for inclusion in a dll (and should export symbols for example).
15225       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15226       ;;
15227
15228     darwin* | rhapsody*)
15229       # PIC is the default on this platform
15230       # Common symbols not allowed in MH_DYLIB files
15231       lt_prog_compiler_pic_GCJ='-fno-common'
15232       ;;
15233
15234     msdosdjgpp*)
15235       # Just because we use GCC doesn't mean we suddenly get shared libraries
15236       # on systems that don't support them.
15237       lt_prog_compiler_can_build_shared_GCJ=no
15238       enable_shared=no
15239       ;;
15240
15241     sysv4*MP*)
15242       if test -d /usr/nec; then
15243         lt_prog_compiler_pic_GCJ=-Kconform_pic
15244       fi
15245       ;;
15246
15247     hpux*)
15248       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15249       # not for PA HP-UX.
15250       case "$host_cpu" in
15251       hppa*64*|ia64*)
15252         # +Z the default
15253         ;;
15254       *)
15255         lt_prog_compiler_pic_GCJ='-fPIC'
15256         ;;
15257       esac
15258       ;;
15259
15260     *)
15261       lt_prog_compiler_pic_GCJ='-fPIC'
15262       ;;
15263     esac
15264   else
15265     # PORTME Check for flag to pass linker flags through the system compiler.
15266     case $host_os in
15267     aix*)
15268       lt_prog_compiler_wl_GCJ='-Wl,'
15269       if test "$host_cpu" = ia64; then
15270         # AIX 5 now supports IA64 processor
15271         lt_prog_compiler_static_GCJ='-Bstatic'
15272       else
15273         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15274       fi
15275       ;;
15276
15277     mingw* | pw32* | os2*)
15278       # This hack is so that the source file can tell whether it is being
15279       # built for inclusion in a dll (and should export symbols for example).
15280       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15281       ;;
15282
15283     hpux9* | hpux10* | hpux11*)
15284       lt_prog_compiler_wl_GCJ='-Wl,'
15285       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15286       # not for PA HP-UX.
15287       case "$host_cpu" in
15288       hppa*64*|ia64*)
15289         # +Z the default
15290         ;;
15291       *)
15292         lt_prog_compiler_pic_GCJ='+Z'
15293         ;;
15294       esac
15295       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15296       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15297       ;;
15298
15299     irix5* | irix6* | nonstopux*)
15300       lt_prog_compiler_wl_GCJ='-Wl,'
15301       # PIC (with -KPIC) is the default.
15302       lt_prog_compiler_static_GCJ='-non_shared'
15303       ;;
15304
15305     newsos6)
15306       lt_prog_compiler_pic_GCJ='-KPIC'
15307       lt_prog_compiler_static_GCJ='-Bstatic'
15308       ;;
15309
15310     linux*)
15311       case $CC in
15312       icc|ecc)
15313         lt_prog_compiler_wl_GCJ='-Wl,'
15314         lt_prog_compiler_pic_GCJ='-KPIC'
15315         lt_prog_compiler_static_GCJ='-static'
15316         ;;
15317       ccc)
15318         lt_prog_compiler_wl_GCJ='-Wl,'
15319         # All Alpha code is PIC.
15320         lt_prog_compiler_static_GCJ='-non_shared'
15321         ;;
15322       esac
15323       ;;
15324
15325     osf3* | osf4* | osf5*)
15326       lt_prog_compiler_wl_GCJ='-Wl,'
15327       # All OSF/1 code is PIC.
15328       lt_prog_compiler_static_GCJ='-non_shared'
15329       ;;
15330
15331     sco3.2v5*)
15332       lt_prog_compiler_pic_GCJ='-Kpic'
15333       lt_prog_compiler_static_GCJ='-dn'
15334       ;;
15335
15336     solaris*)
15337       lt_prog_compiler_wl_GCJ='-Wl,'
15338       lt_prog_compiler_pic_GCJ='-KPIC'
15339       lt_prog_compiler_static_GCJ='-Bstatic'
15340       ;;
15341
15342     sunos4*)
15343       lt_prog_compiler_wl_GCJ='-Qoption ld '
15344       lt_prog_compiler_pic_GCJ='-PIC'
15345       lt_prog_compiler_static_GCJ='-Bstatic'
15346       ;;
15347
15348     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15349       lt_prog_compiler_wl_GCJ='-Wl,'
15350       lt_prog_compiler_pic_GCJ='-KPIC'
15351       lt_prog_compiler_static_GCJ='-Bstatic'
15352       ;;
15353
15354     sysv4*MP*)
15355       if test -d /usr/nec ;then
15356         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15357         lt_prog_compiler_static_GCJ='-Bstatic'
15358       fi
15359       ;;
15360
15361     uts4*)
15362       lt_prog_compiler_pic_GCJ='-pic'
15363       lt_prog_compiler_static_GCJ='-Bstatic'
15364       ;;
15365
15366     *)
15367       lt_prog_compiler_can_build_shared_GCJ=no
15368       ;;
15369     esac
15370   fi
15371
15372 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15373 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15374
15375 #
15376 # Check to make sure the PIC flag actually works.
15377 #
15378 if test -n "$lt_prog_compiler_pic_GCJ"; then
15379   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15380 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15381 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15382   echo $ECHO_N "(cached) $ECHO_C" >&6
15383 else
15384   lt_prog_compiler_pic_works_GCJ=no
15385   ac_outfile=conftest.$ac_objext
15386    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15387    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15388    # Insert the option either (1) after the last *FLAGS variable, or
15389    # (2) before a word containing "conftest.", or (3) at the end.
15390    # Note that $ac_compile itself does not contain backslashes and begins
15391    # with a dollar sign (not a hyphen), so the echo should work correctly.
15392    # The option is referenced via a variable to avoid confusing sed.
15393    lt_compile=`echo "$ac_compile" | $SED \
15394    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15395    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15396    -e 's:$: $lt_compiler_flag:'`
15397    (eval echo "\"\$as_me:15397: $lt_compile\"" >&5)
15398    (eval "$lt_compile" 2>conftest.err)
15399    ac_status=$?
15400    cat conftest.err >&5
15401    echo "$as_me:15401: \$? = $ac_status" >&5
15402    if (exit $ac_status) && test -s "$ac_outfile"; then
15403      # The compiler can only warn and ignore the option if not recognized
15404      # So say no if there are warnings
15405      if test ! -s conftest.err; then
15406        lt_prog_compiler_pic_works_GCJ=yes
15407      fi
15408    fi
15409    $rm conftest*
15410
15411 fi
15412 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15413 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15414
15415 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15416     case $lt_prog_compiler_pic_GCJ in
15417      "" | " "*) ;;
15418      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15419      esac
15420 else
15421     lt_prog_compiler_pic_GCJ=
15422      lt_prog_compiler_can_build_shared_GCJ=no
15423 fi
15424
15425 fi
15426 case "$host_os" in
15427   # For platforms which do not support PIC, -DPIC is meaningless:
15428   *djgpp*)
15429     lt_prog_compiler_pic_GCJ=
15430     ;;
15431   *)
15432     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15433     ;;
15434 esac
15435
15436 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15437 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15438 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15439   echo $ECHO_N "(cached) $ECHO_C" >&6
15440 else
15441   lt_cv_prog_compiler_c_o_GCJ=no
15442    $rm -r conftest 2>/dev/null
15443    mkdir conftest
15444    cd conftest
15445    mkdir out
15446    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15447
15448    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15449    # that will create temporary files in the current directory regardless of
15450    # the output directory.  Thus, making CWD read-only will cause this test
15451    # to fail, enabling locking or at least warning the user not to do parallel
15452    # builds.
15453    chmod -w .
15454
15455    lt_compiler_flag="-o out/conftest2.$ac_objext"
15456    # Insert the option either (1) after the last *FLAGS variable, or
15457    # (2) before a word containing "conftest.", or (3) at the end.
15458    # Note that $ac_compile itself does not contain backslashes and begins
15459    # with a dollar sign (not a hyphen), so the echo should work correctly.
15460    lt_compile=`echo "$ac_compile" | $SED \
15461    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15462    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15463    -e 's:$: $lt_compiler_flag:'`
15464    (eval echo "\"\$as_me:15464: $lt_compile\"" >&5)
15465    (eval "$lt_compile" 2>out/conftest.err)
15466    ac_status=$?
15467    cat out/conftest.err >&5
15468    echo "$as_me:15468: \$? = $ac_status" >&5
15469    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15470    then
15471      # The compiler can only warn and ignore the option if not recognized
15472      # So say no if there are warnings
15473      if test ! -s out/conftest.err; then
15474        lt_cv_prog_compiler_c_o_GCJ=yes
15475      fi
15476    fi
15477    chmod u+w .
15478    $rm conftest* out/*
15479    rmdir out
15480    cd ..
15481    rmdir conftest
15482    $rm conftest*
15483
15484 fi
15485 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15486 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15487
15488
15489 hard_links="nottested"
15490 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15491   # do not overwrite the value of need_locks provided by the user
15492   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15493 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15494   hard_links=yes
15495   $rm conftest*
15496   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15497   touch conftest.a
15498   ln conftest.a conftest.b 2>&5 || hard_links=no
15499   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15500   echo "$as_me:$LINENO: result: $hard_links" >&5
15501 echo "${ECHO_T}$hard_links" >&6
15502   if test "$hard_links" = no; then
15503     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15504 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15505     need_locks=warn
15506   fi
15507 else
15508   need_locks=no
15509 fi
15510
15511 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15512 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15513
15514   runpath_var=
15515   allow_undefined_flag_GCJ=
15516   enable_shared_with_static_runtimes_GCJ=no
15517   archive_cmds_GCJ=
15518   archive_expsym_cmds_GCJ=
15519   old_archive_From_new_cmds_GCJ=
15520   old_archive_from_expsyms_cmds_GCJ=
15521   export_dynamic_flag_spec_GCJ=
15522   whole_archive_flag_spec_GCJ=
15523   thread_safe_flag_spec_GCJ=
15524   hardcode_libdir_flag_spec_GCJ=
15525   hardcode_libdir_flag_spec_ld_GCJ=
15526   hardcode_libdir_separator_GCJ=
15527   hardcode_direct_GCJ=no
15528   hardcode_minus_L_GCJ=no
15529   hardcode_shlibpath_var_GCJ=unsupported
15530   link_all_deplibs_GCJ=unknown
15531   hardcode_automatic_GCJ=no
15532   module_cmds_GCJ=
15533   module_expsym_cmds_GCJ=
15534   always_export_symbols_GCJ=no
15535   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15536   # include_expsyms should be a list of space-separated symbols to be *always*
15537   # included in the symbol list
15538   include_expsyms_GCJ=
15539   # exclude_expsyms can be an extended regexp of symbols to exclude
15540   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15541   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15542   # as well as any symbol that contains `d'.
15543   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15544   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15545   # platforms (ab)use it in PIC code, but their linkers get confused if
15546   # the symbol is explicitly referenced.  Since portable code cannot
15547   # rely on this symbol name, it's probably fine to never include it in
15548   # preloaded symbol tables.
15549   extract_expsyms_cmds=
15550
15551   case $host_os in
15552   cygwin* | mingw* | pw32*)
15553     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15554     # When not using gcc, we currently assume that we are using
15555     # Microsoft Visual C++.
15556     if test "$GCC" != yes; then
15557       with_gnu_ld=no
15558     fi
15559     ;;
15560   openbsd*)
15561     with_gnu_ld=no
15562     ;;
15563   esac
15564
15565   ld_shlibs_GCJ=yes
15566   if test "$with_gnu_ld" = yes; then
15567     # If archive_cmds runs LD, not CC, wlarc should be empty
15568     wlarc='${wl}'
15569
15570     # See if GNU ld supports shared libraries.
15571     case $host_os in
15572     aix3* | aix4* | aix5*)
15573       # On AIX/PPC, the GNU linker is very broken
15574       if test "$host_cpu" != ia64; then
15575         ld_shlibs_GCJ=no
15576         cat <<EOF 1>&2
15577
15578 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15579 *** to be unable to reliably create shared libraries on AIX.
15580 *** Therefore, libtool is disabling shared libraries support.  If you
15581 *** really care for shared libraries, you may want to modify your PATH
15582 *** so that a non-GNU linker is found, and then restart.
15583
15584 EOF
15585       fi
15586       ;;
15587
15588     amigaos*)
15589       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)'
15590       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15591       hardcode_minus_L_GCJ=yes
15592
15593       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15594       # that the semantics of dynamic libraries on AmigaOS, at least up
15595       # to version 4, is to share data among multiple programs linked
15596       # with the same dynamic library.  Since this doesn't match the
15597       # behavior of shared libraries on other platforms, we can't use
15598       # them.
15599       ld_shlibs_GCJ=no
15600       ;;
15601
15602     beos*)
15603       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15604         allow_undefined_flag_GCJ=unsupported
15605         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15606         # support --undefined.  This deserves some investigation.  FIXME
15607         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15608       else
15609         ld_shlibs_GCJ=no
15610       fi
15611       ;;
15612
15613     cygwin* | mingw* | pw32*)
15614       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15615       # as there is no search path for DLLs.
15616       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15617       allow_undefined_flag_GCJ=unsupported
15618       always_export_symbols_GCJ=no
15619       enable_shared_with_static_runtimes_GCJ=yes
15620       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15621
15622       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15623         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15624         # If the export-symbols file already is a .def file (1st line
15625         # is EXPORTS), use it as is; otherwise, prepend...
15626         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15627           cp $export_symbols $output_objdir/$soname.def;
15628         else
15629           echo EXPORTS > $output_objdir/$soname.def;
15630           cat $export_symbols >> $output_objdir/$soname.def;
15631         fi~
15632         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15633       else
15634         ld_shlibs=no
15635       fi
15636       ;;
15637
15638     netbsd*)
15639       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15640         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15641         wlarc=
15642       else
15643         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15644         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15645       fi
15646       ;;
15647
15648     solaris* | sysv5*)
15649       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15650         ld_shlibs_GCJ=no
15651         cat <<EOF 1>&2
15652
15653 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15654 *** create shared libraries on Solaris systems.  Therefore, libtool
15655 *** is disabling shared libraries support.  We urge you to upgrade GNU
15656 *** binutils to release 2.9.1 or newer.  Another option is to modify
15657 *** your PATH or compiler configuration so that the native linker is
15658 *** used, and then restart.
15659
15660 EOF
15661       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15662         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15663         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15664       else
15665         ld_shlibs_GCJ=no
15666       fi
15667       ;;
15668
15669     sunos4*)
15670       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15671       wlarc=
15672       hardcode_direct_GCJ=yes
15673       hardcode_shlibpath_var_GCJ=no
15674       ;;
15675
15676     *)
15677       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15678         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15679         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15680       else
15681         ld_shlibs_GCJ=no
15682       fi
15683       ;;
15684     esac
15685
15686     if test "$ld_shlibs_GCJ" = yes; then
15687       runpath_var=LD_RUN_PATH
15688       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15689       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15690       # ancient GNU ld didn't support --whole-archive et. al.
15691       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15692         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15693       else
15694         whole_archive_flag_spec_GCJ=
15695       fi
15696     fi
15697   else
15698     # PORTME fill in a description of your system's linker (not GNU ld)
15699     case $host_os in
15700     aix3*)
15701       allow_undefined_flag_GCJ=unsupported
15702       always_export_symbols_GCJ=yes
15703       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'
15704       # Note: this linker hardcodes the directories in LIBPATH if there
15705       # are no directories specified by -L.
15706       hardcode_minus_L_GCJ=yes
15707       if test "$GCC" = yes && test -z "$link_static_flag"; then
15708         # Neither direct hardcoding nor static linking is supported with a
15709         # broken collect2.
15710         hardcode_direct_GCJ=unsupported
15711       fi
15712       ;;
15713
15714     aix4* | aix5*)
15715       if test "$host_cpu" = ia64; then
15716         # On IA64, the linker does run time linking by default, so we don't
15717         # have to do anything special.
15718         aix_use_runtimelinking=no
15719         exp_sym_flag='-Bexport'
15720         no_entry_flag=""
15721       else
15722         # If we're using GNU nm, then we don't want the "-C" option.
15723         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15724         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15725           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'
15726         else
15727           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'
15728         fi
15729         aix_use_runtimelinking=no
15730
15731         # Test if we are trying to use run time linking or normal
15732         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15733         # need to do runtime linking.
15734         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15735           for ld_flag in $LDFLAGS; do
15736           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15737             aix_use_runtimelinking=yes
15738             break
15739           fi
15740           done
15741         esac
15742
15743         exp_sym_flag='-bexport'
15744         no_entry_flag='-bnoentry'
15745       fi
15746
15747       # When large executables or shared objects are built, AIX ld can
15748       # have problems creating the table of contents.  If linking a library
15749       # or program results in "error TOC overflow" add -mminimal-toc to
15750       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15751       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15752
15753       archive_cmds_GCJ=''
15754       hardcode_direct_GCJ=yes
15755       hardcode_libdir_separator_GCJ=':'
15756       link_all_deplibs_GCJ=yes
15757
15758       if test "$GCC" = yes; then
15759         case $host_os in aix4.012|aix4.012.*)
15760         # We only want to do this on AIX 4.2 and lower, the check
15761         # below for broken collect2 doesn't work under 4.3+
15762           collect2name=`${CC} -print-prog-name=collect2`
15763           if test -f "$collect2name" && \
15764            strings "$collect2name" | grep resolve_lib_name >/dev/null
15765           then
15766           # We have reworked collect2
15767           hardcode_direct_GCJ=yes
15768           else
15769           # We have old collect2
15770           hardcode_direct_GCJ=unsupported
15771           # It fails to find uninstalled libraries when the uninstalled
15772           # path is not listed in the libpath.  Setting hardcode_minus_L
15773           # to unsupported forces relinking
15774           hardcode_minus_L_GCJ=yes
15775           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15776           hardcode_libdir_separator_GCJ=
15777           fi
15778         esac
15779         shared_flag='-shared'
15780       else
15781         # not using gcc
15782         if test "$host_cpu" = ia64; then
15783         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15784         # chokes on -Wl,-G. The following line is correct:
15785           shared_flag='-G'
15786         else
15787         if test "$aix_use_runtimelinking" = yes; then
15788             shared_flag='${wl}-G'
15789           else
15790             shared_flag='${wl}-bM:SRE'
15791         fi
15792         fi
15793       fi
15794
15795       # It seems that -bexpall does not export symbols beginning with
15796       # underscore (_), so it is better to generate a list of symbols to export.
15797       always_export_symbols_GCJ=yes
15798       if test "$aix_use_runtimelinking" = yes; then
15799         # Warning - without using the other runtime loading flags (-brtl),
15800         # -berok will link without error, but may produce a broken library.
15801         allow_undefined_flag_GCJ='-berok'
15802        # Determine the default libpath from the value encoded in an empty executable.
15803        cat >conftest.$ac_ext <<_ACEOF
15804 /* confdefs.h.  */
15805 _ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h.  */
15809
15810 int
15811 main ()
15812 {
15813
15814   ;
15815   return 0;
15816 }
15817 _ACEOF
15818 rm -f conftest.$ac_objext conftest$ac_exeext
15819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15820   (eval $ac_link) 2>conftest.er1
15821   ac_status=$?
15822   grep -v '^ *+' conftest.er1 >conftest.err
15823   rm -f conftest.er1
15824   cat conftest.err >&5
15825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826   (exit $ac_status); } &&
15827          { ac_try='test -z "$ac_c_werror_flag"
15828                          || test ! -s conftest.err'
15829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830   (eval $ac_try) 2>&5
15831   ac_status=$?
15832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833   (exit $ac_status); }; } &&
15834          { ac_try='test -s conftest$ac_exeext'
15835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836   (eval $ac_try) 2>&5
15837   ac_status=$?
15838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839   (exit $ac_status); }; }; then
15840
15841 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15842 }'`
15843 # Check for a 64-bit object if we didn't find anything.
15844 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; }
15845 }'`; fi
15846 else
15847   echo "$as_me: failed program was:" >&5
15848 sed 's/^/| /' conftest.$ac_ext >&5
15849
15850 fi
15851 rm -f conftest.err conftest.$ac_objext \
15852       conftest$ac_exeext conftest.$ac_ext
15853 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15854
15855        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15856         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"
15857        else
15858         if test "$host_cpu" = ia64; then
15859           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15860           allow_undefined_flag_GCJ="-z nodefs"
15861           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"
15862         else
15863          # Determine the default libpath from the value encoded in an empty executable.
15864          cat >conftest.$ac_ext <<_ACEOF
15865 /* confdefs.h.  */
15866 _ACEOF
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h.  */
15870
15871 int
15872 main ()
15873 {
15874
15875   ;
15876   return 0;
15877 }
15878 _ACEOF
15879 rm -f conftest.$ac_objext conftest$ac_exeext
15880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15881   (eval $ac_link) 2>conftest.er1
15882   ac_status=$?
15883   grep -v '^ *+' conftest.er1 >conftest.err
15884   rm -f conftest.er1
15885   cat conftest.err >&5
15886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887   (exit $ac_status); } &&
15888          { ac_try='test -z "$ac_c_werror_flag"
15889                          || test ! -s conftest.err'
15890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891   (eval $ac_try) 2>&5
15892   ac_status=$?
15893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894   (exit $ac_status); }; } &&
15895          { ac_try='test -s conftest$ac_exeext'
15896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897   (eval $ac_try) 2>&5
15898   ac_status=$?
15899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900   (exit $ac_status); }; }; then
15901
15902 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15903 }'`
15904 # Check for a 64-bit object if we didn't find anything.
15905 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; }
15906 }'`; fi
15907 else
15908   echo "$as_me: failed program was:" >&5
15909 sed 's/^/| /' conftest.$ac_ext >&5
15910
15911 fi
15912 rm -f conftest.err conftest.$ac_objext \
15913       conftest$ac_exeext conftest.$ac_ext
15914 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15915
15916          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15917           # Warning - without using the other run time loading flags,
15918           # -berok will link without error, but may produce a broken library.
15919           no_undefined_flag_GCJ=' ${wl}-bernotok'
15920           allow_undefined_flag_GCJ=' ${wl}-berok'
15921           # -bexpall does not export symbols beginning with underscore (_)
15922           always_export_symbols_GCJ=yes
15923           # Exported symbols can be pulled into shared objects from archives
15924           whole_archive_flag_spec_GCJ=' '
15925           archive_cmds_need_lc_GCJ=yes
15926           # This is similar to how AIX traditionally builds it's shared libraries.
15927           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'
15928         fi
15929       fi
15930       ;;
15931
15932     amigaos*)
15933       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)'
15934       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15935       hardcode_minus_L_GCJ=yes
15936       # see comment about different semantics on the GNU ld section
15937       ld_shlibs_GCJ=no
15938       ;;
15939
15940     bsdi4*)
15941       export_dynamic_flag_spec_GCJ=-rdynamic
15942       ;;
15943
15944     cygwin* | mingw* | pw32*)
15945       # When not using gcc, we currently assume that we are using
15946       # Microsoft Visual C++.
15947       # hardcode_libdir_flag_spec is actually meaningless, as there is
15948       # no search path for DLLs.
15949       hardcode_libdir_flag_spec_GCJ=' '
15950       allow_undefined_flag_GCJ=unsupported
15951       # Tell ltmain to make .lib files, not .a files.
15952       libext=lib
15953       # Tell ltmain to make .dll files, not .so files.
15954       shrext=".dll"
15955       # FIXME: Setting linknames here is a bad hack.
15956       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15957       # The linker will automatically build a .lib file if we build a DLL.
15958       old_archive_From_new_cmds_GCJ='true'
15959       # FIXME: Should let the user specify the lib program.
15960       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15961       fix_srcfile_path='`cygpath -w "$srcfile"`'
15962       enable_shared_with_static_runtimes_GCJ=yes
15963       ;;
15964
15965     darwin* | rhapsody*)
15966     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15967       archive_cmds_need_lc_GCJ=no
15968       case "$host_os" in
15969       rhapsody* | darwin1.[012])
15970         allow_undefined_flag_GCJ='-undefined suppress'
15971         ;;
15972       *) # Darwin 1.3 on
15973         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15974         ;;
15975       esac
15976       # FIXME: Relying on posixy $() will cause problems for
15977       #        cross-compilation, but unfortunately the echo tests do not
15978       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15979       #        `"' quotes if we put them in here... so don't!
15980         lt_int_apple_cc_single_mod=no
15981         output_verbose_link_cmd='echo'
15982         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15983           lt_int_apple_cc_single_mod=yes
15984         fi
15985         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15986           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15987         else
15988         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
15989       fi
15990       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15991       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15992         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15993           archive_expsym_cmds_GCJ='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}'
15994         else
15995           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
15996         fi
15997           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15998       hardcode_direct_GCJ=no
15999       hardcode_automatic_GCJ=yes
16000       hardcode_shlibpath_var_GCJ=unsupported
16001       whole_archive_flag_spec_GCJ='-all_load $convenience'
16002       link_all_deplibs_GCJ=yes
16003     fi
16004       ;;
16005
16006     dgux*)
16007       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16008       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16009       hardcode_shlibpath_var_GCJ=no
16010       ;;
16011
16012     freebsd1*)
16013       ld_shlibs_GCJ=no
16014       ;;
16015
16016     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16017     # support.  Future versions do this automatically, but an explicit c++rt0.o
16018     # does not break anything, and helps significantly (at the cost of a little
16019     # extra space).
16020     freebsd2.2*)
16021       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16022       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16023       hardcode_direct_GCJ=yes
16024       hardcode_shlibpath_var_GCJ=no
16025       ;;
16026
16027     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16028     freebsd2*)
16029       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16030       hardcode_direct_GCJ=yes
16031       hardcode_minus_L_GCJ=yes
16032       hardcode_shlibpath_var_GCJ=no
16033       ;;
16034
16035     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16036     freebsd*)
16037       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16038       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16039       hardcode_direct_GCJ=yes
16040       hardcode_shlibpath_var_GCJ=no
16041       ;;
16042
16043     hpux9*)
16044       if test "$GCC" = yes; then
16045         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'
16046       else
16047         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'
16048       fi
16049       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16050       hardcode_libdir_separator_GCJ=:
16051       hardcode_direct_GCJ=yes
16052
16053       # hardcode_minus_L: Not really in the search PATH,
16054       # but as the default location of the library.
16055       hardcode_minus_L_GCJ=yes
16056       export_dynamic_flag_spec_GCJ='${wl}-E'
16057       ;;
16058
16059     hpux10* | hpux11*)
16060       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16061         case "$host_cpu" in
16062         hppa*64*|ia64*)
16063           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16064           ;;
16065         *)
16066           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16067           ;;
16068         esac
16069       else
16070         case "$host_cpu" in
16071         hppa*64*|ia64*)
16072           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16073           ;;
16074         *)
16075           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16076           ;;
16077         esac
16078       fi
16079       if test "$with_gnu_ld" = no; then
16080         case "$host_cpu" in
16081         hppa*64*)
16082           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16083           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16084           hardcode_libdir_separator_GCJ=:
16085           hardcode_direct_GCJ=no
16086           hardcode_shlibpath_var_GCJ=no
16087           ;;
16088         ia64*)
16089           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16090           hardcode_direct_GCJ=no
16091           hardcode_shlibpath_var_GCJ=no
16092
16093           # hardcode_minus_L: Not really in the search PATH,
16094           # but as the default location of the library.
16095           hardcode_minus_L_GCJ=yes
16096           ;;
16097         *)
16098           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16099           hardcode_libdir_separator_GCJ=:
16100           hardcode_direct_GCJ=yes
16101           export_dynamic_flag_spec_GCJ='${wl}-E'
16102
16103           # hardcode_minus_L: Not really in the search PATH,
16104           # but as the default location of the library.
16105           hardcode_minus_L_GCJ=yes
16106           ;;
16107         esac
16108       fi
16109       ;;
16110
16111     irix5* | irix6* | nonstopux*)
16112       if test "$GCC" = yes; then
16113         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'
16114       else
16115         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'
16116         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16117       fi
16118       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16119       hardcode_libdir_separator_GCJ=:
16120       link_all_deplibs_GCJ=yes
16121       ;;
16122
16123     netbsd*)
16124       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16125         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16126       else
16127         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16128       fi
16129       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16130       hardcode_direct_GCJ=yes
16131       hardcode_shlibpath_var_GCJ=no
16132       ;;
16133
16134     newsos6)
16135       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16136       hardcode_direct_GCJ=yes
16137       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16138       hardcode_libdir_separator_GCJ=:
16139       hardcode_shlibpath_var_GCJ=no
16140       ;;
16141
16142     openbsd*)
16143       hardcode_direct_GCJ=yes
16144       hardcode_shlibpath_var_GCJ=no
16145       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16146         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16147         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16148         export_dynamic_flag_spec_GCJ='${wl}-E'
16149       else
16150        case $host_os in
16151          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16152            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16153            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16154            ;;
16155          *)
16156            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16157            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16158            ;;
16159        esac
16160       fi
16161       ;;
16162
16163     os2*)
16164       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16165       hardcode_minus_L_GCJ=yes
16166       allow_undefined_flag_GCJ=unsupported
16167       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'
16168       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16169       ;;
16170
16171     osf3*)
16172       if test "$GCC" = yes; then
16173         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16174         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'
16175       else
16176         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16177         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'
16178       fi
16179       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16180       hardcode_libdir_separator_GCJ=:
16181       ;;
16182
16183     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16184       if test "$GCC" = yes; then
16185         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16186         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'
16187         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16188       else
16189         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16190         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'
16191         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~
16192         $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'
16193
16194         # Both c and cxx compiler support -rpath directly
16195         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16196       fi
16197       hardcode_libdir_separator_GCJ=:
16198       ;;
16199
16200     sco3.2v5*)
16201       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16202       hardcode_shlibpath_var_GCJ=no
16203       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16204       runpath_var=LD_RUN_PATH
16205       hardcode_runpath_var=yes
16206       ;;
16207
16208     solaris*)
16209       no_undefined_flag_GCJ=' -z text'
16210       if test "$GCC" = yes; then
16211         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16212         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16213           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16214       else
16215         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16216         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16217         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16218       fi
16219       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16220       hardcode_shlibpath_var_GCJ=no
16221       case $host_os in
16222       solaris2.[0-5] | solaris2.[0-5].*) ;;
16223       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16224         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16225       esac
16226       link_all_deplibs_GCJ=yes
16227       ;;
16228
16229     sunos4*)
16230       if test "x$host_vendor" = xsequent; then
16231         # Use $CC to link under sequent, because it throws in some extra .o
16232         # files that make .init and .fini sections work.
16233         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16234       else
16235         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16236       fi
16237       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16238       hardcode_direct_GCJ=yes
16239       hardcode_minus_L_GCJ=yes
16240       hardcode_shlibpath_var_GCJ=no
16241       ;;
16242
16243     sysv4)
16244       case $host_vendor in
16245         sni)
16246           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16247           hardcode_direct_GCJ=yes # is this really true???
16248         ;;
16249         siemens)
16250           ## LD is ld it makes a PLAMLIB
16251           ## CC just makes a GrossModule.
16252           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16253           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16254           hardcode_direct_GCJ=no
16255         ;;
16256         motorola)
16257           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16258           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16259         ;;
16260       esac
16261       runpath_var='LD_RUN_PATH'
16262       hardcode_shlibpath_var_GCJ=no
16263       ;;
16264
16265     sysv4.3*)
16266       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16267       hardcode_shlibpath_var_GCJ=no
16268       export_dynamic_flag_spec_GCJ='-Bexport'
16269       ;;
16270
16271     sysv4*MP*)
16272       if test -d /usr/nec; then
16273         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16274         hardcode_shlibpath_var_GCJ=no
16275         runpath_var=LD_RUN_PATH
16276         hardcode_runpath_var=yes
16277         ld_shlibs_GCJ=yes
16278       fi
16279       ;;
16280
16281     sysv4.2uw2*)
16282       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16283       hardcode_direct_GCJ=yes
16284       hardcode_minus_L_GCJ=no
16285       hardcode_shlibpath_var_GCJ=no
16286       hardcode_runpath_var=yes
16287       runpath_var=LD_RUN_PATH
16288       ;;
16289
16290    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16291       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16292       if test "$GCC" = yes; then
16293         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16294       else
16295         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16296       fi
16297       runpath_var='LD_RUN_PATH'
16298       hardcode_shlibpath_var_GCJ=no
16299       ;;
16300
16301     sysv5*)
16302       no_undefined_flag_GCJ=' -z text'
16303       # $CC -shared without GNU ld will not create a library from C++
16304       # object files and a static libstdc++, better avoid it by now
16305       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16306       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16307                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16308       hardcode_libdir_flag_spec_GCJ=
16309       hardcode_shlibpath_var_GCJ=no
16310       runpath_var='LD_RUN_PATH'
16311       ;;
16312
16313     uts4*)
16314       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16315       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16316       hardcode_shlibpath_var_GCJ=no
16317       ;;
16318
16319     *)
16320       ld_shlibs_GCJ=no
16321       ;;
16322     esac
16323   fi
16324
16325 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16326 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16327 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16328
16329 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16330 if test "$GCC" = yes; then
16331   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16332 fi
16333
16334 #
16335 # Do we need to explicitly link libc?
16336 #
16337 case "x$archive_cmds_need_lc_GCJ" in
16338 x|xyes)
16339   # Assume -lc should be added
16340   archive_cmds_need_lc_GCJ=yes
16341
16342   if test "$enable_shared" = yes && test "$GCC" = yes; then
16343     case $archive_cmds_GCJ in
16344     *'~'*)
16345       # FIXME: we may have to deal with multi-command sequences.
16346       ;;
16347     '$CC '*)
16348       # Test whether the compiler implicitly links with -lc since on some
16349       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16350       # to ld, don't add -lc before -lgcc.
16351       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16352 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16353       $rm conftest*
16354       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16355
16356       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16357   (eval $ac_compile) 2>&5
16358   ac_status=$?
16359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360   (exit $ac_status); } 2>conftest.err; then
16361         soname=conftest
16362         lib=conftest
16363         libobjs=conftest.$ac_objext
16364         deplibs=
16365         wl=$lt_prog_compiler_wl_GCJ
16366         compiler_flags=-v
16367         linker_flags=-v
16368         verstring=
16369         output_objdir=.
16370         libname=conftest
16371         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16372         allow_undefined_flag_GCJ=
16373         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16374   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16375   ac_status=$?
16376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377   (exit $ac_status); }
16378         then
16379           archive_cmds_need_lc_GCJ=no
16380         else
16381           archive_cmds_need_lc_GCJ=yes
16382         fi
16383         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16384       else
16385         cat conftest.err 1>&5
16386       fi
16387       $rm conftest*
16388       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16389 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16390       ;;
16391     esac
16392   fi
16393   ;;
16394 esac
16395
16396 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16397 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16398 hardcode_action_GCJ=
16399 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16400    test -n "$runpath_var GCJ" || \
16401    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16402
16403   # We can hardcode non-existant directories.
16404   if test "$hardcode_direct_GCJ" != no &&
16405      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16406      # have to relink, otherwise we might link with an installed library
16407      # when we should be linking with a yet-to-be-installed one
16408      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16409      test "$hardcode_minus_L_GCJ" != no; then
16410     # Linking always hardcodes the temporary library directory.
16411     hardcode_action_GCJ=relink
16412   else
16413     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16414     hardcode_action_GCJ=immediate
16415   fi
16416 else
16417   # We cannot hardcode anything, or else we can only hardcode existing
16418   # directories.
16419   hardcode_action_GCJ=unsupported
16420 fi
16421 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16422 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16423
16424 if test "$hardcode_action_GCJ" = relink; then
16425   # Fast installation is not supported
16426   enable_fast_install=no
16427 elif test "$shlibpath_overrides_runpath" = yes ||
16428      test "$enable_shared" = no; then
16429   # Fast installation is not necessary
16430   enable_fast_install=needless
16431 fi
16432
16433 striplib=
16434 old_striplib=
16435 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16436 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16437 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16438   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16439   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16440   echo "$as_me:$LINENO: result: yes" >&5
16441 echo "${ECHO_T}yes" >&6
16442 else
16443 # FIXME - insert some real tests, host_os isn't really good enough
16444   case $host_os in
16445    darwin*)
16446        if test -n "$STRIP" ; then
16447          striplib="$STRIP -x"
16448          echo "$as_me:$LINENO: result: yes" >&5
16449 echo "${ECHO_T}yes" >&6
16450        else
16451   echo "$as_me:$LINENO: result: no" >&5
16452 echo "${ECHO_T}no" >&6
16453 fi
16454        ;;
16455    *)
16456   echo "$as_me:$LINENO: result: no" >&5
16457 echo "${ECHO_T}no" >&6
16458     ;;
16459   esac
16460 fi
16461
16462 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16463 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16464 library_names_spec=
16465 libname_spec='lib$name'
16466 soname_spec=
16467 shrext=".so"
16468 postinstall_cmds=
16469 postuninstall_cmds=
16470 finish_cmds=
16471 finish_eval=
16472 shlibpath_var=
16473 shlibpath_overrides_runpath=unknown
16474 version_type=none
16475 dynamic_linker="$host_os ld.so"
16476 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16477 if test "$GCC" = yes; then
16478   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16479   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16480     # if the path contains ";" then we assume it to be the separator
16481     # otherwise default to the standard path separator (i.e. ":") - it is
16482     # assumed that no part of a normal pathname contains ";" but that should
16483     # okay in the real world where ";" in dirpaths is itself problematic.
16484     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16485   else
16486     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16487   fi
16488 else
16489   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16490 fi
16491 need_lib_prefix=unknown
16492 hardcode_into_libs=no
16493
16494 # when you set need_version to no, make sure it does not cause -set_version
16495 # flags to be left without arguments
16496 need_version=unknown
16497
16498 case $host_os in
16499 aix3*)
16500   version_type=linux
16501   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16502   shlibpath_var=LIBPATH
16503
16504   # AIX 3 has no versioning support, so we append a major version to the name.
16505   soname_spec='${libname}${release}${shared_ext}$major'
16506   ;;
16507
16508 aix4* | aix5*)
16509   version_type=linux
16510   need_lib_prefix=no
16511   need_version=no
16512   hardcode_into_libs=yes
16513   if test "$host_cpu" = ia64; then
16514     # AIX 5 supports IA64
16515     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16516     shlibpath_var=LD_LIBRARY_PATH
16517   else
16518     # With GCC up to 2.95.x, collect2 would create an import file
16519     # for dependence libraries.  The import file would start with
16520     # the line `#! .'.  This would cause the generated library to
16521     # depend on `.', always an invalid library.  This was fixed in
16522     # development snapshots of GCC prior to 3.0.
16523     case $host_os in
16524       aix4 | aix4.[01] | aix4.[01].*)
16525       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16526            echo ' yes '
16527            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16528         :
16529       else
16530         can_build_shared=no
16531       fi
16532       ;;
16533     esac
16534     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16535     # soname into executable. Probably we can add versioning support to
16536     # collect2, so additional links can be useful in future.
16537     if test "$aix_use_runtimelinking" = yes; then
16538       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16539       # instead of lib<name>.a to let people know that these are not
16540       # typical AIX shared libraries.
16541       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16542     else
16543       # We preserve .a as extension for shared libraries through AIX4.2
16544       # and later when we are not doing run time linking.
16545       library_names_spec='${libname}${release}.a $libname.a'
16546       soname_spec='${libname}${release}${shared_ext}$major'
16547     fi
16548     shlibpath_var=LIBPATH
16549   fi
16550   ;;
16551
16552 amigaos*)
16553   library_names_spec='$libname.ixlibrary $libname.a'
16554   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16555   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'
16556   ;;
16557
16558 beos*)
16559   library_names_spec='${libname}${shared_ext}'
16560   dynamic_linker="$host_os ld.so"
16561   shlibpath_var=LIBRARY_PATH
16562   ;;
16563
16564 bsdi4*)
16565   version_type=linux
16566   need_version=no
16567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16568   soname_spec='${libname}${release}${shared_ext}$major'
16569   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16570   shlibpath_var=LD_LIBRARY_PATH
16571   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16572   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16573   # the default ld.so.conf also contains /usr/contrib/lib and
16574   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16575   # libtool to hard-code these into programs
16576   ;;
16577
16578 cygwin* | mingw* | pw32*)
16579   version_type=windows
16580   shrext=".dll"
16581   need_version=no
16582   need_lib_prefix=no
16583
16584   case $GCC,$host_os in
16585   yes,cygwin* | yes,mingw* | yes,pw32*)
16586     library_names_spec='$libname.dll.a'
16587     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16588     postinstall_cmds='base_file=`basename \${file}`~
16589       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16590       dldir=$destdir/`dirname \$dlpath`~
16591       test -d \$dldir || mkdir -p \$dldir~
16592       $install_prog $dir/$dlname \$dldir/$dlname'
16593     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16594       dlpath=$dir/\$dldll~
16595        $rm \$dlpath'
16596     shlibpath_overrides_runpath=yes
16597
16598     case $host_os in
16599     cygwin*)
16600       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16601       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16602       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16603       ;;
16604     mingw*)
16605       # MinGW DLLs use traditional 'lib' prefix
16606       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16607       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16608       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16609         # It is most probably a Windows format PATH printed by
16610         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16611         # path with ; separators, and with drive letters. We can handle the
16612         # drive letters (cygwin fileutils understands them), so leave them,
16613         # especially as we might pass files found there to a mingw objdump,
16614         # which wouldn't understand a cygwinified path. Ahh.
16615         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16616       else
16617         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16618       fi
16619       ;;
16620     pw32*)
16621       # pw32 DLLs use 'pw' prefix rather than 'lib'
16622       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16623       ;;
16624     esac
16625     ;;
16626
16627   *)
16628     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16629     ;;
16630   esac
16631   dynamic_linker='Win32 ld.exe'
16632   # FIXME: first we should search . and the directory the executable is in
16633   shlibpath_var=PATH
16634   ;;
16635
16636 darwin* | rhapsody*)
16637   dynamic_linker="$host_os dyld"
16638   version_type=darwin
16639   need_lib_prefix=no
16640   need_version=no
16641   # FIXME: Relying on posixy $() will cause problems for
16642   #        cross-compilation, but unfortunately the echo tests do not
16643   #        yet detect zsh echo's removal of \ escapes.
16644   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16645   soname_spec='${libname}${release}${major}$shared_ext'
16646   shlibpath_overrides_runpath=yes
16647   shlibpath_var=DYLD_LIBRARY_PATH
16648   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16649   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16650   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16651   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"`
16652   fi
16653   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16654   ;;
16655
16656 dgux*)
16657   version_type=linux
16658   need_lib_prefix=no
16659   need_version=no
16660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16661   soname_spec='${libname}${release}${shared_ext}$major'
16662   shlibpath_var=LD_LIBRARY_PATH
16663   ;;
16664
16665 freebsd1*)
16666   dynamic_linker=no
16667   ;;
16668
16669 freebsd*)
16670   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16671   version_type=freebsd-$objformat
16672   case $version_type in
16673     freebsd-elf*)
16674       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16675       need_version=no
16676       need_lib_prefix=no
16677       ;;
16678     freebsd-*)
16679       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16680       need_version=yes
16681       ;;
16682   esac
16683   shlibpath_var=LD_LIBRARY_PATH
16684   case $host_os in
16685   freebsd2*)
16686     shlibpath_overrides_runpath=yes
16687     ;;
16688   freebsd3.01* | freebsdelf3.01*)
16689     shlibpath_overrides_runpath=yes
16690     hardcode_into_libs=yes
16691     ;;
16692   *) # from 3.2 on
16693     shlibpath_overrides_runpath=no
16694     hardcode_into_libs=yes
16695     ;;
16696   esac
16697   ;;
16698
16699 gnu*)
16700   version_type=linux
16701   need_lib_prefix=no
16702   need_version=no
16703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16704   soname_spec='${libname}${release}${shared_ext}$major'
16705   shlibpath_var=LD_LIBRARY_PATH
16706   hardcode_into_libs=yes
16707   ;;
16708
16709 hpux9* | hpux10* | hpux11*)
16710   # Give a soname corresponding to the major version so that dld.sl refuses to
16711   # link against other versions.
16712   version_type=sunos
16713   need_lib_prefix=no
16714   need_version=no
16715   case "$host_cpu" in
16716   ia64*)
16717     shrext='.so'
16718     hardcode_into_libs=yes
16719     dynamic_linker="$host_os dld.so"
16720     shlibpath_var=LD_LIBRARY_PATH
16721     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16722     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16723     soname_spec='${libname}${release}${shared_ext}$major'
16724     if test "X$HPUX_IA64_MODE" = X32; then
16725       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16726     else
16727       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16728     fi
16729     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16730     ;;
16731    hppa*64*)
16732      shrext='.sl'
16733      hardcode_into_libs=yes
16734      dynamic_linker="$host_os dld.sl"
16735      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16736      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16737      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16738      soname_spec='${libname}${release}${shared_ext}$major'
16739      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16740      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16741      ;;
16742    *)
16743     shrext='.sl'
16744     dynamic_linker="$host_os dld.sl"
16745     shlibpath_var=SHLIB_PATH
16746     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16747     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16748     soname_spec='${libname}${release}${shared_ext}$major'
16749     ;;
16750   esac
16751   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16752   postinstall_cmds='chmod 555 $lib'
16753   ;;
16754
16755 irix5* | irix6* | nonstopux*)
16756   case $host_os in
16757     nonstopux*) version_type=nonstopux ;;
16758     *)
16759         if test "$lt_cv_prog_gnu_ld" = yes; then
16760                 version_type=linux
16761         else
16762                 version_type=irix
16763         fi ;;
16764   esac
16765   need_lib_prefix=no
16766   need_version=no
16767   soname_spec='${libname}${release}${shared_ext}$major'
16768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16769   case $host_os in
16770   irix5* | nonstopux*)
16771     libsuff= shlibsuff=
16772     ;;
16773   *)
16774     case $LD in # libtool.m4 will add one of these switches to LD
16775     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16776       libsuff= shlibsuff= libmagic=32-bit;;
16777     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16778       libsuff=32 shlibsuff=N32 libmagic=N32;;
16779     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16780       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16781     *) libsuff= shlibsuff= libmagic=never-match;;
16782     esac
16783     ;;
16784   esac
16785   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16786   shlibpath_overrides_runpath=no
16787   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16788   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16789   hardcode_into_libs=yes
16790   ;;
16791
16792 # No shared lib support for Linux oldld, aout, or coff.
16793 linux*oldld* | linux*aout* | linux*coff*)
16794   dynamic_linker=no
16795   ;;
16796
16797 # This must be Linux ELF.
16798 linux*)
16799   version_type=linux
16800   need_lib_prefix=no
16801   need_version=no
16802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16803   soname_spec='${libname}${release}${shared_ext}$major'
16804   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16805   shlibpath_var=LD_LIBRARY_PATH
16806   shlibpath_overrides_runpath=no
16807   # This implies no fast_install, which is unacceptable.
16808   # Some rework will be needed to allow for fast_install
16809   # before this can be enabled.
16810   hardcode_into_libs=yes
16811
16812   # We used to test for /lib/ld.so.1 and disable shared libraries on
16813   # powerpc, because MkLinux only supported shared libraries with the
16814   # GNU dynamic linker.  Since this was broken with cross compilers,
16815   # most powerpc-linux boxes support dynamic linking these days and
16816   # people can always --disable-shared, the test was removed, and we
16817   # assume the GNU/Linux dynamic linker is in use.
16818   dynamic_linker='GNU/Linux ld.so'
16819   ;;
16820
16821 netbsd*)
16822   version_type=sunos
16823   need_lib_prefix=no
16824   need_version=no
16825   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16826     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16827     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16828     dynamic_linker='NetBSD (a.out) ld.so'
16829   else
16830     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16831     soname_spec='${libname}${release}${shared_ext}$major'
16832     dynamic_linker='NetBSD ld.elf_so'
16833   fi
16834   shlibpath_var=LD_LIBRARY_PATH
16835   shlibpath_overrides_runpath=yes
16836   hardcode_into_libs=yes
16837   ;;
16838
16839 newsos6)
16840   version_type=linux
16841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16842   shlibpath_var=LD_LIBRARY_PATH
16843   shlibpath_overrides_runpath=yes
16844   ;;
16845
16846 nto-qnx)
16847   version_type=linux
16848   need_lib_prefix=no
16849   need_version=no
16850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851   soname_spec='${libname}${release}${shared_ext}$major'
16852   shlibpath_var=LD_LIBRARY_PATH
16853   shlibpath_overrides_runpath=yes
16854   ;;
16855
16856 openbsd*)
16857   version_type=sunos
16858   need_lib_prefix=no
16859   need_version=no
16860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16861   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16862   shlibpath_var=LD_LIBRARY_PATH
16863   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16864     case $host_os in
16865       openbsd2.[89] | openbsd2.[89].*)
16866         shlibpath_overrides_runpath=no
16867         ;;
16868       *)
16869         shlibpath_overrides_runpath=yes
16870         ;;
16871       esac
16872   else
16873     shlibpath_overrides_runpath=yes
16874   fi
16875   ;;
16876
16877 os2*)
16878   libname_spec='$name'
16879   shrext=".dll"
16880   need_lib_prefix=no
16881   library_names_spec='$libname${shared_ext} $libname.a'
16882   dynamic_linker='OS/2 ld.exe'
16883   shlibpath_var=LIBPATH
16884   ;;
16885
16886 osf3* | osf4* | osf5*)
16887   version_type=osf
16888   need_lib_prefix=no
16889   need_version=no
16890   soname_spec='${libname}${release}${shared_ext}$major'
16891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16892   shlibpath_var=LD_LIBRARY_PATH
16893   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16894   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16895   ;;
16896
16897 sco3.2v5*)
16898   version_type=osf
16899   soname_spec='${libname}${release}${shared_ext}$major'
16900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16901   shlibpath_var=LD_LIBRARY_PATH
16902   ;;
16903
16904 solaris*)
16905   version_type=linux
16906   need_lib_prefix=no
16907   need_version=no
16908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16909   soname_spec='${libname}${release}${shared_ext}$major'
16910   shlibpath_var=LD_LIBRARY_PATH
16911   shlibpath_overrides_runpath=yes
16912   hardcode_into_libs=yes
16913   # ldd complains unless libraries are executable
16914   postinstall_cmds='chmod +x $lib'
16915   ;;
16916
16917 sunos4*)
16918   version_type=sunos
16919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16920   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16921   shlibpath_var=LD_LIBRARY_PATH
16922   shlibpath_overrides_runpath=yes
16923   if test "$with_gnu_ld" = yes; then
16924     need_lib_prefix=no
16925   fi
16926   need_version=yes
16927   ;;
16928
16929 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16930   version_type=linux
16931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16932   soname_spec='${libname}${release}${shared_ext}$major'
16933   shlibpath_var=LD_LIBRARY_PATH
16934   case $host_vendor in
16935     sni)
16936       shlibpath_overrides_runpath=no
16937       need_lib_prefix=no
16938       export_dynamic_flag_spec='${wl}-Blargedynsym'
16939       runpath_var=LD_RUN_PATH
16940       ;;
16941     siemens)
16942       need_lib_prefix=no
16943       ;;
16944     motorola)
16945       need_lib_prefix=no
16946       need_version=no
16947       shlibpath_overrides_runpath=no
16948       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16949       ;;
16950   esac
16951   ;;
16952
16953 sysv4*MP*)
16954   if test -d /usr/nec ;then
16955     version_type=linux
16956     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16957     soname_spec='$libname${shared_ext}.$major'
16958     shlibpath_var=LD_LIBRARY_PATH
16959   fi
16960   ;;
16961
16962 uts4*)
16963   version_type=linux
16964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16965   soname_spec='${libname}${release}${shared_ext}$major'
16966   shlibpath_var=LD_LIBRARY_PATH
16967   ;;
16968
16969 *)
16970   dynamic_linker=no
16971   ;;
16972 esac
16973 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16974 echo "${ECHO_T}$dynamic_linker" >&6
16975 test "$dynamic_linker" = no && can_build_shared=no
16976
16977 if test "x$enable_dlopen" != xyes; then
16978   enable_dlopen=unknown
16979   enable_dlopen_self=unknown
16980   enable_dlopen_self_static=unknown
16981 else
16982   lt_cv_dlopen=no
16983   lt_cv_dlopen_libs=
16984
16985   case $host_os in
16986   beos*)
16987     lt_cv_dlopen="load_add_on"
16988     lt_cv_dlopen_libs=
16989     lt_cv_dlopen_self=yes
16990     ;;
16991
16992   mingw* | pw32*)
16993     lt_cv_dlopen="LoadLibrary"
16994     lt_cv_dlopen_libs=
16995    ;;
16996
16997   cygwin*)
16998     lt_cv_dlopen="dlopen"
16999     lt_cv_dlopen_libs=
17000    ;;
17001
17002   darwin*)
17003   # if libdl is installed we need to link against it
17004     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17005 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17006 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17007   echo $ECHO_N "(cached) $ECHO_C" >&6
17008 else
17009   ac_check_lib_save_LIBS=$LIBS
17010 LIBS="-ldl  $LIBS"
17011 cat >conftest.$ac_ext <<_ACEOF
17012 /* confdefs.h.  */
17013 _ACEOF
17014 cat confdefs.h >>conftest.$ac_ext
17015 cat >>conftest.$ac_ext <<_ACEOF
17016 /* end confdefs.h.  */
17017
17018 /* Override any gcc2 internal prototype to avoid an error.  */
17019 #ifdef __cplusplus
17020 extern "C"
17021 #endif
17022 /* We use char because int might match the return type of a gcc2
17023    builtin and then its argument prototype would still apply.  */
17024 char dlopen ();
17025 int
17026 main ()
17027 {
17028 dlopen ();
17029   ;
17030   return 0;
17031 }
17032 _ACEOF
17033 rm -f conftest.$ac_objext conftest$ac_exeext
17034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17035   (eval $ac_link) 2>conftest.er1
17036   ac_status=$?
17037   grep -v '^ *+' conftest.er1 >conftest.err
17038   rm -f conftest.er1
17039   cat conftest.err >&5
17040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041   (exit $ac_status); } &&
17042          { ac_try='test -z "$ac_c_werror_flag"
17043                          || test ! -s conftest.err'
17044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045   (eval $ac_try) 2>&5
17046   ac_status=$?
17047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048   (exit $ac_status); }; } &&
17049          { ac_try='test -s conftest$ac_exeext'
17050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051   (eval $ac_try) 2>&5
17052   ac_status=$?
17053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054   (exit $ac_status); }; }; then
17055   ac_cv_lib_dl_dlopen=yes
17056 else
17057   echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17059
17060 ac_cv_lib_dl_dlopen=no
17061 fi
17062 rm -f conftest.err conftest.$ac_objext \
17063       conftest$ac_exeext conftest.$ac_ext
17064 LIBS=$ac_check_lib_save_LIBS
17065 fi
17066 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17067 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17068 if test $ac_cv_lib_dl_dlopen = yes; then
17069   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17070 else
17071
17072     lt_cv_dlopen="dyld"
17073     lt_cv_dlopen_libs=
17074     lt_cv_dlopen_self=yes
17075
17076 fi
17077
17078    ;;
17079
17080   *)
17081     echo "$as_me:$LINENO: checking for shl_load" >&5
17082 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17083 if test "${ac_cv_func_shl_load+set}" = set; then
17084   echo $ECHO_N "(cached) $ECHO_C" >&6
17085 else
17086   cat >conftest.$ac_ext <<_ACEOF
17087 /* confdefs.h.  */
17088 _ACEOF
17089 cat confdefs.h >>conftest.$ac_ext
17090 cat >>conftest.$ac_ext <<_ACEOF
17091 /* end confdefs.h.  */
17092 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17093    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17094 #define shl_load innocuous_shl_load
17095
17096 /* System header to define __stub macros and hopefully few prototypes,
17097     which can conflict with char shl_load (); below.
17098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17099     <limits.h> exists even on freestanding compilers.  */
17100
17101 #ifdef __STDC__
17102 # include <limits.h>
17103 #else
17104 # include <assert.h>
17105 #endif
17106
17107 #undef shl_load
17108
17109 /* Override any gcc2 internal prototype to avoid an error.  */
17110 #ifdef __cplusplus
17111 extern "C"
17112 {
17113 #endif
17114 /* We use char because int might match the return type of a gcc2
17115    builtin and then its argument prototype would still apply.  */
17116 char shl_load ();
17117 /* The GNU C library defines this for functions which it implements
17118     to always fail with ENOSYS.  Some functions are actually named
17119     something starting with __ and the normal name is an alias.  */
17120 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17121 choke me
17122 #else
17123 char (*f) () = shl_load;
17124 #endif
17125 #ifdef __cplusplus
17126 }
17127 #endif
17128
17129 int
17130 main ()
17131 {
17132 return f != shl_load;
17133   ;
17134   return 0;
17135 }
17136 _ACEOF
17137 rm -f conftest.$ac_objext conftest$ac_exeext
17138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17139   (eval $ac_link) 2>conftest.er1
17140   ac_status=$?
17141   grep -v '^ *+' conftest.er1 >conftest.err
17142   rm -f conftest.er1
17143   cat conftest.err >&5
17144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145   (exit $ac_status); } &&
17146          { ac_try='test -z "$ac_c_werror_flag"
17147                          || test ! -s conftest.err'
17148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149   (eval $ac_try) 2>&5
17150   ac_status=$?
17151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152   (exit $ac_status); }; } &&
17153          { ac_try='test -s conftest$ac_exeext'
17154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17155   (eval $ac_try) 2>&5
17156   ac_status=$?
17157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158   (exit $ac_status); }; }; then
17159   ac_cv_func_shl_load=yes
17160 else
17161   echo "$as_me: failed program was:" >&5
17162 sed 's/^/| /' conftest.$ac_ext >&5
17163
17164 ac_cv_func_shl_load=no
17165 fi
17166 rm -f conftest.err conftest.$ac_objext \
17167       conftest$ac_exeext conftest.$ac_ext
17168 fi
17169 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17170 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17171 if test $ac_cv_func_shl_load = yes; then
17172   lt_cv_dlopen="shl_load"
17173 else
17174   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17175 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17176 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17177   echo $ECHO_N "(cached) $ECHO_C" >&6
17178 else
17179   ac_check_lib_save_LIBS=$LIBS
17180 LIBS="-ldld  $LIBS"
17181 cat >conftest.$ac_ext <<_ACEOF
17182 /* confdefs.h.  */
17183 _ACEOF
17184 cat confdefs.h >>conftest.$ac_ext
17185 cat >>conftest.$ac_ext <<_ACEOF
17186 /* end confdefs.h.  */
17187
17188 /* Override any gcc2 internal prototype to avoid an error.  */
17189 #ifdef __cplusplus
17190 extern "C"
17191 #endif
17192 /* We use char because int might match the return type of a gcc2
17193    builtin and then its argument prototype would still apply.  */
17194 char shl_load ();
17195 int
17196 main ()
17197 {
17198 shl_load ();
17199   ;
17200   return 0;
17201 }
17202 _ACEOF
17203 rm -f conftest.$ac_objext conftest$ac_exeext
17204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17205   (eval $ac_link) 2>conftest.er1
17206   ac_status=$?
17207   grep -v '^ *+' conftest.er1 >conftest.err
17208   rm -f conftest.er1
17209   cat conftest.err >&5
17210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211   (exit $ac_status); } &&
17212          { ac_try='test -z "$ac_c_werror_flag"
17213                          || test ! -s conftest.err'
17214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17215   (eval $ac_try) 2>&5
17216   ac_status=$?
17217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218   (exit $ac_status); }; } &&
17219          { ac_try='test -s conftest$ac_exeext'
17220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17221   (eval $ac_try) 2>&5
17222   ac_status=$?
17223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224   (exit $ac_status); }; }; then
17225   ac_cv_lib_dld_shl_load=yes
17226 else
17227   echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17229
17230 ac_cv_lib_dld_shl_load=no
17231 fi
17232 rm -f conftest.err conftest.$ac_objext \
17233       conftest$ac_exeext conftest.$ac_ext
17234 LIBS=$ac_check_lib_save_LIBS
17235 fi
17236 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17237 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17238 if test $ac_cv_lib_dld_shl_load = yes; then
17239   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17240 else
17241   echo "$as_me:$LINENO: checking for dlopen" >&5
17242 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17243 if test "${ac_cv_func_dlopen+set}" = set; then
17244   echo $ECHO_N "(cached) $ECHO_C" >&6
17245 else
17246   cat >conftest.$ac_ext <<_ACEOF
17247 /* confdefs.h.  */
17248 _ACEOF
17249 cat confdefs.h >>conftest.$ac_ext
17250 cat >>conftest.$ac_ext <<_ACEOF
17251 /* end confdefs.h.  */
17252 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17253    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17254 #define dlopen innocuous_dlopen
17255
17256 /* System header to define __stub macros and hopefully few prototypes,
17257     which can conflict with char dlopen (); below.
17258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17259     <limits.h> exists even on freestanding compilers.  */
17260
17261 #ifdef __STDC__
17262 # include <limits.h>
17263 #else
17264 # include <assert.h>
17265 #endif
17266
17267 #undef dlopen
17268
17269 /* Override any gcc2 internal prototype to avoid an error.  */
17270 #ifdef __cplusplus
17271 extern "C"
17272 {
17273 #endif
17274 /* We use char because int might match the return type of a gcc2
17275    builtin and then its argument prototype would still apply.  */
17276 char dlopen ();
17277 /* The GNU C library defines this for functions which it implements
17278     to always fail with ENOSYS.  Some functions are actually named
17279     something starting with __ and the normal name is an alias.  */
17280 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17281 choke me
17282 #else
17283 char (*f) () = dlopen;
17284 #endif
17285 #ifdef __cplusplus
17286 }
17287 #endif
17288
17289 int
17290 main ()
17291 {
17292 return f != dlopen;
17293   ;
17294   return 0;
17295 }
17296 _ACEOF
17297 rm -f conftest.$ac_objext conftest$ac_exeext
17298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17299   (eval $ac_link) 2>conftest.er1
17300   ac_status=$?
17301   grep -v '^ *+' conftest.er1 >conftest.err
17302   rm -f conftest.er1
17303   cat conftest.err >&5
17304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305   (exit $ac_status); } &&
17306          { ac_try='test -z "$ac_c_werror_flag"
17307                          || test ! -s conftest.err'
17308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17309   (eval $ac_try) 2>&5
17310   ac_status=$?
17311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312   (exit $ac_status); }; } &&
17313          { ac_try='test -s conftest$ac_exeext'
17314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315   (eval $ac_try) 2>&5
17316   ac_status=$?
17317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318   (exit $ac_status); }; }; then
17319   ac_cv_func_dlopen=yes
17320 else
17321   echo "$as_me: failed program was:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17323
17324 ac_cv_func_dlopen=no
17325 fi
17326 rm -f conftest.err conftest.$ac_objext \
17327       conftest$ac_exeext conftest.$ac_ext
17328 fi
17329 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17330 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17331 if test $ac_cv_func_dlopen = yes; then
17332   lt_cv_dlopen="dlopen"
17333 else
17334   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17335 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17336 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17337   echo $ECHO_N "(cached) $ECHO_C" >&6
17338 else
17339   ac_check_lib_save_LIBS=$LIBS
17340 LIBS="-ldl  $LIBS"
17341 cat >conftest.$ac_ext <<_ACEOF
17342 /* confdefs.h.  */
17343 _ACEOF
17344 cat confdefs.h >>conftest.$ac_ext
17345 cat >>conftest.$ac_ext <<_ACEOF
17346 /* end confdefs.h.  */
17347
17348 /* Override any gcc2 internal prototype to avoid an error.  */
17349 #ifdef __cplusplus
17350 extern "C"
17351 #endif
17352 /* We use char because int might match the return type of a gcc2
17353    builtin and then its argument prototype would still apply.  */
17354 char dlopen ();
17355 int
17356 main ()
17357 {
17358 dlopen ();
17359   ;
17360   return 0;
17361 }
17362 _ACEOF
17363 rm -f conftest.$ac_objext conftest$ac_exeext
17364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17365   (eval $ac_link) 2>conftest.er1
17366   ac_status=$?
17367   grep -v '^ *+' conftest.er1 >conftest.err
17368   rm -f conftest.er1
17369   cat conftest.err >&5
17370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371   (exit $ac_status); } &&
17372          { ac_try='test -z "$ac_c_werror_flag"
17373                          || test ! -s conftest.err'
17374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375   (eval $ac_try) 2>&5
17376   ac_status=$?
17377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378   (exit $ac_status); }; } &&
17379          { ac_try='test -s conftest$ac_exeext'
17380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381   (eval $ac_try) 2>&5
17382   ac_status=$?
17383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384   (exit $ac_status); }; }; then
17385   ac_cv_lib_dl_dlopen=yes
17386 else
17387   echo "$as_me: failed program was:" >&5
17388 sed 's/^/| /' conftest.$ac_ext >&5
17389
17390 ac_cv_lib_dl_dlopen=no
17391 fi
17392 rm -f conftest.err conftest.$ac_objext \
17393       conftest$ac_exeext conftest.$ac_ext
17394 LIBS=$ac_check_lib_save_LIBS
17395 fi
17396 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17397 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17398 if test $ac_cv_lib_dl_dlopen = yes; then
17399   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17400 else
17401   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17402 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17403 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17404   echo $ECHO_N "(cached) $ECHO_C" >&6
17405 else
17406   ac_check_lib_save_LIBS=$LIBS
17407 LIBS="-lsvld  $LIBS"
17408 cat >conftest.$ac_ext <<_ACEOF
17409 /* confdefs.h.  */
17410 _ACEOF
17411 cat confdefs.h >>conftest.$ac_ext
17412 cat >>conftest.$ac_ext <<_ACEOF
17413 /* end confdefs.h.  */
17414
17415 /* Override any gcc2 internal prototype to avoid an error.  */
17416 #ifdef __cplusplus
17417 extern "C"
17418 #endif
17419 /* We use char because int might match the return type of a gcc2
17420    builtin and then its argument prototype would still apply.  */
17421 char dlopen ();
17422 int
17423 main ()
17424 {
17425 dlopen ();
17426   ;
17427   return 0;
17428 }
17429 _ACEOF
17430 rm -f conftest.$ac_objext conftest$ac_exeext
17431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17432   (eval $ac_link) 2>conftest.er1
17433   ac_status=$?
17434   grep -v '^ *+' conftest.er1 >conftest.err
17435   rm -f conftest.er1
17436   cat conftest.err >&5
17437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438   (exit $ac_status); } &&
17439          { ac_try='test -z "$ac_c_werror_flag"
17440                          || test ! -s conftest.err'
17441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442   (eval $ac_try) 2>&5
17443   ac_status=$?
17444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445   (exit $ac_status); }; } &&
17446          { ac_try='test -s conftest$ac_exeext'
17447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17448   (eval $ac_try) 2>&5
17449   ac_status=$?
17450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451   (exit $ac_status); }; }; then
17452   ac_cv_lib_svld_dlopen=yes
17453 else
17454   echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17456
17457 ac_cv_lib_svld_dlopen=no
17458 fi
17459 rm -f conftest.err conftest.$ac_objext \
17460       conftest$ac_exeext conftest.$ac_ext
17461 LIBS=$ac_check_lib_save_LIBS
17462 fi
17463 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17464 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17465 if test $ac_cv_lib_svld_dlopen = yes; then
17466   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17467 else
17468   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17469 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17470 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17471   echo $ECHO_N "(cached) $ECHO_C" >&6
17472 else
17473   ac_check_lib_save_LIBS=$LIBS
17474 LIBS="-ldld  $LIBS"
17475 cat >conftest.$ac_ext <<_ACEOF
17476 /* confdefs.h.  */
17477 _ACEOF
17478 cat confdefs.h >>conftest.$ac_ext
17479 cat >>conftest.$ac_ext <<_ACEOF
17480 /* end confdefs.h.  */
17481
17482 /* Override any gcc2 internal prototype to avoid an error.  */
17483 #ifdef __cplusplus
17484 extern "C"
17485 #endif
17486 /* We use char because int might match the return type of a gcc2
17487    builtin and then its argument prototype would still apply.  */
17488 char dld_link ();
17489 int
17490 main ()
17491 {
17492 dld_link ();
17493   ;
17494   return 0;
17495 }
17496 _ACEOF
17497 rm -f conftest.$ac_objext conftest$ac_exeext
17498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17499   (eval $ac_link) 2>conftest.er1
17500   ac_status=$?
17501   grep -v '^ *+' conftest.er1 >conftest.err
17502   rm -f conftest.er1
17503   cat conftest.err >&5
17504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505   (exit $ac_status); } &&
17506          { ac_try='test -z "$ac_c_werror_flag"
17507                          || test ! -s conftest.err'
17508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509   (eval $ac_try) 2>&5
17510   ac_status=$?
17511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512   (exit $ac_status); }; } &&
17513          { ac_try='test -s conftest$ac_exeext'
17514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515   (eval $ac_try) 2>&5
17516   ac_status=$?
17517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518   (exit $ac_status); }; }; then
17519   ac_cv_lib_dld_dld_link=yes
17520 else
17521   echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17523
17524 ac_cv_lib_dld_dld_link=no
17525 fi
17526 rm -f conftest.err conftest.$ac_objext \
17527       conftest$ac_exeext conftest.$ac_ext
17528 LIBS=$ac_check_lib_save_LIBS
17529 fi
17530 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17531 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17532 if test $ac_cv_lib_dld_dld_link = yes; then
17533   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17534 fi
17535
17536
17537 fi
17538
17539
17540 fi
17541
17542
17543 fi
17544
17545
17546 fi
17547
17548
17549 fi
17550
17551     ;;
17552   esac
17553
17554   if test "x$lt_cv_dlopen" != xno; then
17555     enable_dlopen=yes
17556   else
17557     enable_dlopen=no
17558   fi
17559
17560   case $lt_cv_dlopen in
17561   dlopen)
17562     save_CPPFLAGS="$CPPFLAGS"
17563     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17564
17565     save_LDFLAGS="$LDFLAGS"
17566     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17567
17568     save_LIBS="$LIBS"
17569     LIBS="$lt_cv_dlopen_libs $LIBS"
17570
17571     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17572 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17573 if test "${lt_cv_dlopen_self+set}" = set; then
17574   echo $ECHO_N "(cached) $ECHO_C" >&6
17575 else
17576           if test "$cross_compiling" = yes; then :
17577   lt_cv_dlopen_self=cross
17578 else
17579   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17580   lt_status=$lt_dlunknown
17581   cat > conftest.$ac_ext <<EOF
17582 #line 17582 "configure"
17583 #include "confdefs.h"
17584
17585 #if HAVE_DLFCN_H
17586 #include <dlfcn.h>
17587 #endif
17588
17589 #include <stdio.h>
17590
17591 #ifdef RTLD_GLOBAL
17592 #  define LT_DLGLOBAL           RTLD_GLOBAL
17593 #else
17594 #  ifdef DL_GLOBAL
17595 #    define LT_DLGLOBAL         DL_GLOBAL
17596 #  else
17597 #    define LT_DLGLOBAL         0
17598 #  endif
17599 #endif
17600
17601 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17602    find out it does not work in some platform. */
17603 #ifndef LT_DLLAZY_OR_NOW
17604 #  ifdef RTLD_LAZY
17605 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17606 #  else
17607 #    ifdef DL_LAZY
17608 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17609 #    else
17610 #      ifdef RTLD_NOW
17611 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17612 #      else
17613 #        ifdef DL_NOW
17614 #          define LT_DLLAZY_OR_NOW      DL_NOW
17615 #        else
17616 #          define LT_DLLAZY_OR_NOW      0
17617 #        endif
17618 #      endif
17619 #    endif
17620 #  endif
17621 #endif
17622
17623 #ifdef __cplusplus
17624 extern "C" void exit (int);
17625 #endif
17626
17627 void fnord() { int i=42;}
17628 int main ()
17629 {
17630   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17631   int status = $lt_dlunknown;
17632
17633   if (self)
17634     {
17635       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17636       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17637       /* dlclose (self); */
17638     }
17639
17640     exit (status);
17641 }
17642 EOF
17643   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17644   (eval $ac_link) 2>&5
17645   ac_status=$?
17646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17648     (./conftest; exit; ) 2>/dev/null
17649     lt_status=$?
17650     case x$lt_status in
17651       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17652       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17653       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17654     esac
17655   else :
17656     # compilation failed
17657     lt_cv_dlopen_self=no
17658   fi
17659 fi
17660 rm -fr conftest*
17661
17662
17663 fi
17664 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17665 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17666
17667     if test "x$lt_cv_dlopen_self" = xyes; then
17668       LDFLAGS="$LDFLAGS $link_static_flag"
17669       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17670 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17671 if test "${lt_cv_dlopen_self_static+set}" = set; then
17672   echo $ECHO_N "(cached) $ECHO_C" >&6
17673 else
17674           if test "$cross_compiling" = yes; then :
17675   lt_cv_dlopen_self_static=cross
17676 else
17677   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17678   lt_status=$lt_dlunknown
17679   cat > conftest.$ac_ext <<EOF
17680 #line 17680 "configure"
17681 #include "confdefs.h"
17682
17683 #if HAVE_DLFCN_H
17684 #include <dlfcn.h>
17685 #endif
17686
17687 #include <stdio.h>
17688
17689 #ifdef RTLD_GLOBAL
17690 #  define LT_DLGLOBAL           RTLD_GLOBAL
17691 #else
17692 #  ifdef DL_GLOBAL
17693 #    define LT_DLGLOBAL         DL_GLOBAL
17694 #  else
17695 #    define LT_DLGLOBAL         0
17696 #  endif
17697 #endif
17698
17699 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17700    find out it does not work in some platform. */
17701 #ifndef LT_DLLAZY_OR_NOW
17702 #  ifdef RTLD_LAZY
17703 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17704 #  else
17705 #    ifdef DL_LAZY
17706 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17707 #    else
17708 #      ifdef RTLD_NOW
17709 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17710 #      else
17711 #        ifdef DL_NOW
17712 #          define LT_DLLAZY_OR_NOW      DL_NOW
17713 #        else
17714 #          define LT_DLLAZY_OR_NOW      0
17715 #        endif
17716 #      endif
17717 #    endif
17718 #  endif
17719 #endif
17720
17721 #ifdef __cplusplus
17722 extern "C" void exit (int);
17723 #endif
17724
17725 void fnord() { int i=42;}
17726 int main ()
17727 {
17728   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17729   int status = $lt_dlunknown;
17730
17731   if (self)
17732     {
17733       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17734       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17735       /* dlclose (self); */
17736     }
17737
17738     exit (status);
17739 }
17740 EOF
17741   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17742   (eval $ac_link) 2>&5
17743   ac_status=$?
17744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17746     (./conftest; exit; ) 2>/dev/null
17747     lt_status=$?
17748     case x$lt_status in
17749       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17750       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17751       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17752     esac
17753   else :
17754     # compilation failed
17755     lt_cv_dlopen_self_static=no
17756   fi
17757 fi
17758 rm -fr conftest*
17759
17760
17761 fi
17762 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17763 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17764     fi
17765
17766     CPPFLAGS="$save_CPPFLAGS"
17767     LDFLAGS="$save_LDFLAGS"
17768     LIBS="$save_LIBS"
17769     ;;
17770   esac
17771
17772   case $lt_cv_dlopen_self in
17773   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17774   *) enable_dlopen_self=unknown ;;
17775   esac
17776
17777   case $lt_cv_dlopen_self_static in
17778   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17779   *) enable_dlopen_self_static=unknown ;;
17780   esac
17781 fi
17782
17783
17784 # The else clause should only fire when bootstrapping the
17785 # libtool distribution, otherwise you forgot to ship ltmain.sh
17786 # with your package, and you will get complaints that there are
17787 # no rules to generate ltmain.sh.
17788 if test -f "$ltmain"; then
17789   # See if we are running on zsh, and set the options which allow our commands through
17790   # without removal of \ escapes.
17791   if test -n "${ZSH_VERSION+set}" ; then
17792     setopt NO_GLOB_SUBST
17793   fi
17794   # Now quote all the things that may contain metacharacters while being
17795   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17796   # variables and quote the copies for generation of the libtool script.
17797   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17798     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17799     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17800     deplibs_check_method reload_flag reload_cmds need_locks \
17801     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17802     lt_cv_sys_global_symbol_to_c_name_address \
17803     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17804     old_postinstall_cmds old_postuninstall_cmds \
17805     compiler_GCJ \
17806     CC_GCJ \
17807     LD_GCJ \
17808     lt_prog_compiler_wl_GCJ \
17809     lt_prog_compiler_pic_GCJ \
17810     lt_prog_compiler_static_GCJ \
17811     lt_prog_compiler_no_builtin_flag_GCJ \
17812     export_dynamic_flag_spec_GCJ \
17813     thread_safe_flag_spec_GCJ \
17814     whole_archive_flag_spec_GCJ \
17815     enable_shared_with_static_runtimes_GCJ \
17816     old_archive_cmds_GCJ \
17817     old_archive_from_new_cmds_GCJ \
17818     predep_objects_GCJ \
17819     postdep_objects_GCJ \
17820     predeps_GCJ \
17821     postdeps_GCJ \
17822     compiler_lib_search_path_GCJ \
17823     archive_cmds_GCJ \
17824     archive_expsym_cmds_GCJ \
17825     postinstall_cmds_GCJ \
17826     postuninstall_cmds_GCJ \
17827     old_archive_from_expsyms_cmds_GCJ \
17828     allow_undefined_flag_GCJ \
17829     no_undefined_flag_GCJ \
17830     export_symbols_cmds_GCJ \
17831     hardcode_libdir_flag_spec_GCJ \
17832     hardcode_libdir_flag_spec_ld_GCJ \
17833     hardcode_libdir_separator_GCJ \
17834     hardcode_automatic_GCJ \
17835     module_cmds_GCJ \
17836     module_expsym_cmds_GCJ \
17837     lt_cv_prog_compiler_c_o_GCJ \
17838     exclude_expsyms_GCJ \
17839     include_expsyms_GCJ; do
17840
17841     case $var in
17842     old_archive_cmds_GCJ | \
17843     old_archive_from_new_cmds_GCJ | \
17844     archive_cmds_GCJ | \
17845     archive_expsym_cmds_GCJ | \
17846     module_cmds_GCJ | \
17847     module_expsym_cmds_GCJ | \
17848     old_archive_from_expsyms_cmds_GCJ | \
17849     export_symbols_cmds_GCJ | \
17850     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17851     postinstall_cmds | postuninstall_cmds | \
17852     old_postinstall_cmds | old_postuninstall_cmds | \
17853     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17854       # Double-quote double-evaled strings.
17855       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17856       ;;
17857     *)
17858       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17859       ;;
17860     esac
17861   done
17862
17863   case $lt_echo in
17864   *'\$0 --fallback-echo"')
17865     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17866     ;;
17867   esac
17868
17869 cfgfile="$ofile"
17870
17871   cat <<__EOF__ >> "$cfgfile"
17872 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17873
17874 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17875
17876 # Shell to use when invoking shell scripts.
17877 SHELL=$lt_SHELL
17878
17879 # Whether or not to build shared libraries.
17880 build_libtool_libs=$enable_shared
17881
17882 # Whether or not to build static libraries.
17883 build_old_libs=$enable_static
17884
17885 # Whether or not to add -lc for building shared libraries.
17886 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17887
17888 # Whether or not to disallow shared libs when runtime libs are static
17889 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17890
17891 # Whether or not to optimize for fast installation.
17892 fast_install=$enable_fast_install
17893
17894 # The host system.
17895 host_alias=$host_alias
17896 host=$host
17897
17898 # An echo program that does not interpret backslashes.
17899 echo=$lt_echo
17900
17901 # The archiver.
17902 AR=$lt_AR
17903 AR_FLAGS=$lt_AR_FLAGS
17904
17905 # A C compiler.
17906 LTCC=$lt_LTCC
17907
17908 # A language-specific compiler.
17909 CC=$lt_compiler_GCJ
17910
17911 # Is the compiler the GNU C compiler?
17912 with_gcc=$GCC_GCJ
17913
17914 # An ERE matcher.
17915 EGREP=$lt_EGREP
17916
17917 # The linker used to build libraries.
17918 LD=$lt_LD_GCJ
17919
17920 # Whether we need hard or soft links.
17921 LN_S=$lt_LN_S
17922
17923 # A BSD-compatible nm program.
17924 NM=$lt_NM
17925
17926 # A symbol stripping program
17927 STRIP=$STRIP
17928
17929 # Used to examine libraries when file_magic_cmd begins "file"
17930 MAGIC_CMD=$MAGIC_CMD
17931
17932 # Used on cygwin: DLL creation program.
17933 DLLTOOL="$DLLTOOL"
17934
17935 # Used on cygwin: object dumper.
17936 OBJDUMP="$OBJDUMP"
17937
17938 # Used on cygwin: assembler.
17939 AS="$AS"
17940
17941 # The name of the directory that contains temporary libtool files.
17942 objdir=$objdir
17943
17944 # How to create reloadable object files.
17945 reload_flag=$lt_reload_flag
17946 reload_cmds=$lt_reload_cmds
17947
17948 # How to pass a linker flag through the compiler.
17949 wl=$lt_lt_prog_compiler_wl_GCJ
17950
17951 # Object file suffix (normally "o").
17952 objext="$ac_objext"
17953
17954 # Old archive suffix (normally "a").
17955 libext="$libext"
17956
17957 # Shared library suffix (normally ".so").
17958 shrext='$shrext'
17959
17960 # Executable file suffix (normally "").
17961 exeext="$exeext"
17962
17963 # Additional compiler flags for building library objects.
17964 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17965 pic_mode=$pic_mode
17966
17967 # What is the maximum length of a command?
17968 max_cmd_len=$lt_cv_sys_max_cmd_len
17969
17970 # Does compiler simultaneously support -c and -o options?
17971 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17972
17973 # Must we lock files when doing compilation ?
17974 need_locks=$lt_need_locks
17975
17976 # Do we need the lib prefix for modules?
17977 need_lib_prefix=$need_lib_prefix
17978
17979 # Do we need a version for libraries?
17980 need_version=$need_version
17981
17982 # Whether dlopen is supported.
17983 dlopen_support=$enable_dlopen
17984
17985 # Whether dlopen of programs is supported.
17986 dlopen_self=$enable_dlopen_self
17987
17988 # Whether dlopen of statically linked programs is supported.
17989 dlopen_self_static=$enable_dlopen_self_static
17990
17991 # Compiler flag to prevent dynamic linking.
17992 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17993
17994 # Compiler flag to turn off builtin functions.
17995 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17996
17997 # Compiler flag to allow reflexive dlopens.
17998 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17999
18000 # Compiler flag to generate shared objects directly from archives.
18001 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18002
18003 # Compiler flag to generate thread-safe objects.
18004 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18005
18006 # Library versioning type.
18007 version_type=$version_type
18008
18009 # Format of library name prefix.
18010 libname_spec=$lt_libname_spec
18011
18012 # List of archive names.  First name is the real one, the rest are links.
18013 # The last name is the one that the linker finds with -lNAME.
18014 library_names_spec=$lt_library_names_spec
18015
18016 # The coded name of the library, if different from the real name.
18017 soname_spec=$lt_soname_spec
18018
18019 # Commands used to build and install an old-style archive.
18020 RANLIB=$lt_RANLIB
18021 old_archive_cmds=$lt_old_archive_cmds_GCJ
18022 old_postinstall_cmds=$lt_old_postinstall_cmds
18023 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18024
18025 # Create an old-style archive from a shared archive.
18026 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18027
18028 # Create a temporary old-style archive to link instead of a shared archive.
18029 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18030
18031 # Commands used to build and install a shared archive.
18032 archive_cmds=$lt_archive_cmds_GCJ
18033 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18034 postinstall_cmds=$lt_postinstall_cmds
18035 postuninstall_cmds=$lt_postuninstall_cmds
18036
18037 # Commands used to build a loadable module (assumed same as above if empty)
18038 module_cmds=$lt_module_cmds_GCJ
18039 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18040
18041 # Commands to strip libraries.
18042 old_striplib=$lt_old_striplib
18043 striplib=$lt_striplib
18044
18045 # Dependencies to place before the objects being linked to create a
18046 # shared library.
18047 predep_objects=$lt_predep_objects_GCJ
18048
18049 # Dependencies to place after the objects being linked to create a
18050 # shared library.
18051 postdep_objects=$lt_postdep_objects_GCJ
18052
18053 # Dependencies to place before the objects being linked to create a
18054 # shared library.
18055 predeps=$lt_predeps_GCJ
18056
18057 # Dependencies to place after the objects being linked to create a
18058 # shared library.
18059 postdeps=$lt_postdeps_GCJ
18060
18061 # The library search path used internally by the compiler when linking
18062 # a shared library.
18063 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18064
18065 # Method to check whether dependent libraries are shared objects.
18066 deplibs_check_method=$lt_deplibs_check_method
18067
18068 # Command to use when deplibs_check_method == file_magic.
18069 file_magic_cmd=$lt_file_magic_cmd
18070
18071 # Flag that allows shared libraries with undefined symbols to be built.
18072 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18073
18074 # Flag that forces no undefined symbols.
18075 no_undefined_flag=$lt_no_undefined_flag_GCJ
18076
18077 # Commands used to finish a libtool library installation in a directory.
18078 finish_cmds=$lt_finish_cmds
18079
18080 # Same as above, but a single script fragment to be evaled but not shown.
18081 finish_eval=$lt_finish_eval
18082
18083 # Take the output of nm and produce a listing of raw symbols and C names.
18084 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18085
18086 # Transform the output of nm in a proper C declaration
18087 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18088
18089 # Transform the output of nm in a C name address pair
18090 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18091
18092 # This is the shared library runtime path variable.
18093 runpath_var=$runpath_var
18094
18095 # This is the shared library path variable.
18096 shlibpath_var=$shlibpath_var
18097
18098 # Is shlibpath searched before the hard-coded library search path?
18099 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18100
18101 # How to hardcode a shared library path into an executable.
18102 hardcode_action=$hardcode_action_GCJ
18103
18104 # Whether we should hardcode library paths into libraries.
18105 hardcode_into_libs=$hardcode_into_libs
18106
18107 # Flag to hardcode \$libdir into a binary during linking.
18108 # This must work even if \$libdir does not exist.
18109 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18110
18111 # If ld is used when linking, flag to hardcode \$libdir into
18112 # a binary during linking. This must work even if \$libdir does
18113 # not exist.
18114 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18115
18116 # Whether we need a single -rpath flag with a separated argument.
18117 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18118
18119 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18120 # resulting binary.
18121 hardcode_direct=$hardcode_direct_GCJ
18122
18123 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18124 # resulting binary.
18125 hardcode_minus_L=$hardcode_minus_L_GCJ
18126
18127 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18128 # the resulting binary.
18129 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18130
18131 # Set to yes if building a shared library automatically hardcodes DIR into the library
18132 # and all subsequent libraries and executables linked against it.
18133 hardcode_automatic=$hardcode_automatic_GCJ
18134
18135 # Variables whose values should be saved in libtool wrapper scripts and
18136 # restored at relink time.
18137 variables_saved_for_relink="$variables_saved_for_relink"
18138
18139 # Whether libtool must link a program against all its dependency libraries.
18140 link_all_deplibs=$link_all_deplibs_GCJ
18141
18142 # Compile-time system search path for libraries
18143 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18144
18145 # Run-time system search path for libraries
18146 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18147
18148 # Fix the shell variable \$srcfile for the compiler.
18149 fix_srcfile_path="$fix_srcfile_path_GCJ"
18150
18151 # Set to yes if exported symbols are required.
18152 always_export_symbols=$always_export_symbols_GCJ
18153
18154 # The commands to list exported symbols.
18155 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18156
18157 # The commands to extract the exported symbol list from a shared archive.
18158 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18159
18160 # Symbols that should not be listed in the preloaded symbols.
18161 exclude_expsyms=$lt_exclude_expsyms_GCJ
18162
18163 # Symbols that must always be exported.
18164 include_expsyms=$lt_include_expsyms_GCJ
18165
18166 # ### END LIBTOOL TAG CONFIG: $tagname
18167
18168 __EOF__
18169
18170
18171 else
18172   # If there is no Makefile yet, we rely on a make rule to execute
18173   # `config.status --recheck' to rerun these tests and create the
18174   # libtool script then.
18175   test -f Makefile && make "$ltmain"
18176 fi
18177
18178
18179 ac_ext=c
18180 ac_cpp='$CPP $CPPFLAGS'
18181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18184
18185 CC="$lt_save_CC"
18186
18187         else
18188           tagname=""
18189         fi
18190         ;;
18191
18192       RC)
18193
18194
18195
18196 # Source file extension for RC test sources.
18197 ac_ext=rc
18198
18199 # Object file extension for compiled RC test sources.
18200 objext=o
18201 objext_RC=$objext
18202
18203 # Code to be used in simple compile tests
18204 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18205
18206 # Code to be used in simple link tests
18207 lt_simple_link_test_code="$lt_simple_compile_test_code"
18208
18209 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18210
18211 # If no C compiler was specified, use CC.
18212 LTCC=${LTCC-"$CC"}
18213
18214 # Allow CC to be a program name with arguments.
18215 compiler=$CC
18216
18217
18218 # Allow CC to be a program name with arguments.
18219 lt_save_CC="$CC"
18220 CC=${RC-"windres"}
18221 compiler=$CC
18222 compiler_RC=$CC
18223 lt_cv_prog_compiler_c_o_RC=yes
18224
18225 # The else clause should only fire when bootstrapping the
18226 # libtool distribution, otherwise you forgot to ship ltmain.sh
18227 # with your package, and you will get complaints that there are
18228 # no rules to generate ltmain.sh.
18229 if test -f "$ltmain"; then
18230   # See if we are running on zsh, and set the options which allow our commands through
18231   # without removal of \ escapes.
18232   if test -n "${ZSH_VERSION+set}" ; then
18233     setopt NO_GLOB_SUBST
18234   fi
18235   # Now quote all the things that may contain metacharacters while being
18236   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18237   # variables and quote the copies for generation of the libtool script.
18238   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18239     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18240     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18241     deplibs_check_method reload_flag reload_cmds need_locks \
18242     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18243     lt_cv_sys_global_symbol_to_c_name_address \
18244     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18245     old_postinstall_cmds old_postuninstall_cmds \
18246     compiler_RC \
18247     CC_RC \
18248     LD_RC \
18249     lt_prog_compiler_wl_RC \
18250     lt_prog_compiler_pic_RC \
18251     lt_prog_compiler_static_RC \
18252     lt_prog_compiler_no_builtin_flag_RC \
18253     export_dynamic_flag_spec_RC \
18254     thread_safe_flag_spec_RC \
18255     whole_archive_flag_spec_RC \
18256     enable_shared_with_static_runtimes_RC \
18257     old_archive_cmds_RC \
18258     old_archive_from_new_cmds_RC \
18259     predep_objects_RC \
18260     postdep_objects_RC \
18261     predeps_RC \
18262     postdeps_RC \
18263     compiler_lib_search_path_RC \
18264     archive_cmds_RC \
18265     archive_expsym_cmds_RC \
18266     postinstall_cmds_RC \
18267     postuninstall_cmds_RC \
18268     old_archive_from_expsyms_cmds_RC \
18269     allow_undefined_flag_RC \
18270     no_undefined_flag_RC \
18271     export_symbols_cmds_RC \
18272     hardcode_libdir_flag_spec_RC \
18273     hardcode_libdir_flag_spec_ld_RC \
18274     hardcode_libdir_separator_RC \
18275     hardcode_automatic_RC \
18276     module_cmds_RC \
18277     module_expsym_cmds_RC \
18278     lt_cv_prog_compiler_c_o_RC \
18279     exclude_expsyms_RC \
18280     include_expsyms_RC; do
18281
18282     case $var in
18283     old_archive_cmds_RC | \
18284     old_archive_from_new_cmds_RC | \
18285     archive_cmds_RC | \
18286     archive_expsym_cmds_RC | \
18287     module_cmds_RC | \
18288     module_expsym_cmds_RC | \
18289     old_archive_from_expsyms_cmds_RC | \
18290     export_symbols_cmds_RC | \
18291     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18292     postinstall_cmds | postuninstall_cmds | \
18293     old_postinstall_cmds | old_postuninstall_cmds | \
18294     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18295       # Double-quote double-evaled strings.
18296       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18297       ;;
18298     *)
18299       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18300       ;;
18301     esac
18302   done
18303
18304   case $lt_echo in
18305   *'\$0 --fallback-echo"')
18306     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18307     ;;
18308   esac
18309
18310 cfgfile="$ofile"
18311
18312   cat <<__EOF__ >> "$cfgfile"
18313 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18314
18315 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18316
18317 # Shell to use when invoking shell scripts.
18318 SHELL=$lt_SHELL
18319
18320 # Whether or not to build shared libraries.
18321 build_libtool_libs=$enable_shared
18322
18323 # Whether or not to build static libraries.
18324 build_old_libs=$enable_static
18325
18326 # Whether or not to add -lc for building shared libraries.
18327 build_libtool_need_lc=$archive_cmds_need_lc_RC
18328
18329 # Whether or not to disallow shared libs when runtime libs are static
18330 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18331
18332 # Whether or not to optimize for fast installation.
18333 fast_install=$enable_fast_install
18334
18335 # The host system.
18336 host_alias=$host_alias
18337 host=$host
18338
18339 # An echo program that does not interpret backslashes.
18340 echo=$lt_echo
18341
18342 # The archiver.
18343 AR=$lt_AR
18344 AR_FLAGS=$lt_AR_FLAGS
18345
18346 # A C compiler.
18347 LTCC=$lt_LTCC
18348
18349 # A language-specific compiler.
18350 CC=$lt_compiler_RC
18351
18352 # Is the compiler the GNU C compiler?
18353 with_gcc=$GCC_RC
18354
18355 # An ERE matcher.
18356 EGREP=$lt_EGREP
18357
18358 # The linker used to build libraries.
18359 LD=$lt_LD_RC
18360
18361 # Whether we need hard or soft links.
18362 LN_S=$lt_LN_S
18363
18364 # A BSD-compatible nm program.
18365 NM=$lt_NM
18366
18367 # A symbol stripping program
18368 STRIP=$STRIP
18369
18370 # Used to examine libraries when file_magic_cmd begins "file"
18371 MAGIC_CMD=$MAGIC_CMD
18372
18373 # Used on cygwin: DLL creation program.
18374 DLLTOOL="$DLLTOOL"
18375
18376 # Used on cygwin: object dumper.
18377 OBJDUMP="$OBJDUMP"
18378
18379 # Used on cygwin: assembler.
18380 AS="$AS"
18381
18382 # The name of the directory that contains temporary libtool files.
18383 objdir=$objdir
18384
18385 # How to create reloadable object files.
18386 reload_flag=$lt_reload_flag
18387 reload_cmds=$lt_reload_cmds
18388
18389 # How to pass a linker flag through the compiler.
18390 wl=$lt_lt_prog_compiler_wl_RC
18391
18392 # Object file suffix (normally "o").
18393 objext="$ac_objext"
18394
18395 # Old archive suffix (normally "a").
18396 libext="$libext"
18397
18398 # Shared library suffix (normally ".so").
18399 shrext='$shrext'
18400
18401 # Executable file suffix (normally "").
18402 exeext="$exeext"
18403
18404 # Additional compiler flags for building library objects.
18405 pic_flag=$lt_lt_prog_compiler_pic_RC
18406 pic_mode=$pic_mode
18407
18408 # What is the maximum length of a command?
18409 max_cmd_len=$lt_cv_sys_max_cmd_len
18410
18411 # Does compiler simultaneously support -c and -o options?
18412 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18413
18414 # Must we lock files when doing compilation ?
18415 need_locks=$lt_need_locks
18416
18417 # Do we need the lib prefix for modules?
18418 need_lib_prefix=$need_lib_prefix
18419
18420 # Do we need a version for libraries?
18421 need_version=$need_version
18422
18423 # Whether dlopen is supported.
18424 dlopen_support=$enable_dlopen
18425
18426 # Whether dlopen of programs is supported.
18427 dlopen_self=$enable_dlopen_self
18428
18429 # Whether dlopen of statically linked programs is supported.
18430 dlopen_self_static=$enable_dlopen_self_static
18431
18432 # Compiler flag to prevent dynamic linking.
18433 link_static_flag=$lt_lt_prog_compiler_static_RC
18434
18435 # Compiler flag to turn off builtin functions.
18436 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18437
18438 # Compiler flag to allow reflexive dlopens.
18439 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18440
18441 # Compiler flag to generate shared objects directly from archives.
18442 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18443
18444 # Compiler flag to generate thread-safe objects.
18445 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18446
18447 # Library versioning type.
18448 version_type=$version_type
18449
18450 # Format of library name prefix.
18451 libname_spec=$lt_libname_spec
18452
18453 # List of archive names.  First name is the real one, the rest are links.
18454 # The last name is the one that the linker finds with -lNAME.
18455 library_names_spec=$lt_library_names_spec
18456
18457 # The coded name of the library, if different from the real name.
18458 soname_spec=$lt_soname_spec
18459
18460 # Commands used to build and install an old-style archive.
18461 RANLIB=$lt_RANLIB
18462 old_archive_cmds=$lt_old_archive_cmds_RC
18463 old_postinstall_cmds=$lt_old_postinstall_cmds
18464 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18465
18466 # Create an old-style archive from a shared archive.
18467 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18468
18469 # Create a temporary old-style archive to link instead of a shared archive.
18470 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18471
18472 # Commands used to build and install a shared archive.
18473 archive_cmds=$lt_archive_cmds_RC
18474 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18475 postinstall_cmds=$lt_postinstall_cmds
18476 postuninstall_cmds=$lt_postuninstall_cmds
18477
18478 # Commands used to build a loadable module (assumed same as above if empty)
18479 module_cmds=$lt_module_cmds_RC
18480 module_expsym_cmds=$lt_module_expsym_cmds_RC
18481
18482 # Commands to strip libraries.
18483 old_striplib=$lt_old_striplib
18484 striplib=$lt_striplib
18485
18486 # Dependencies to place before the objects being linked to create a
18487 # shared library.
18488 predep_objects=$lt_predep_objects_RC
18489
18490 # Dependencies to place after the objects being linked to create a
18491 # shared library.
18492 postdep_objects=$lt_postdep_objects_RC
18493
18494 # Dependencies to place before the objects being linked to create a
18495 # shared library.
18496 predeps=$lt_predeps_RC
18497
18498 # Dependencies to place after the objects being linked to create a
18499 # shared library.
18500 postdeps=$lt_postdeps_RC
18501
18502 # The library search path used internally by the compiler when linking
18503 # a shared library.
18504 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18505
18506 # Method to check whether dependent libraries are shared objects.
18507 deplibs_check_method=$lt_deplibs_check_method
18508
18509 # Command to use when deplibs_check_method == file_magic.
18510 file_magic_cmd=$lt_file_magic_cmd
18511
18512 # Flag that allows shared libraries with undefined symbols to be built.
18513 allow_undefined_flag=$lt_allow_undefined_flag_RC
18514
18515 # Flag that forces no undefined symbols.
18516 no_undefined_flag=$lt_no_undefined_flag_RC
18517
18518 # Commands used to finish a libtool library installation in a directory.
18519 finish_cmds=$lt_finish_cmds
18520
18521 # Same as above, but a single script fragment to be evaled but not shown.
18522 finish_eval=$lt_finish_eval
18523
18524 # Take the output of nm and produce a listing of raw symbols and C names.
18525 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18526
18527 # Transform the output of nm in a proper C declaration
18528 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18529
18530 # Transform the output of nm in a C name address pair
18531 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18532
18533 # This is the shared library runtime path variable.
18534 runpath_var=$runpath_var
18535
18536 # This is the shared library path variable.
18537 shlibpath_var=$shlibpath_var
18538
18539 # Is shlibpath searched before the hard-coded library search path?
18540 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18541
18542 # How to hardcode a shared library path into an executable.
18543 hardcode_action=$hardcode_action_RC
18544
18545 # Whether we should hardcode library paths into libraries.
18546 hardcode_into_libs=$hardcode_into_libs
18547
18548 # Flag to hardcode \$libdir into a binary during linking.
18549 # This must work even if \$libdir does not exist.
18550 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18551
18552 # If ld is used when linking, flag to hardcode \$libdir into
18553 # a binary during linking. This must work even if \$libdir does
18554 # not exist.
18555 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18556
18557 # Whether we need a single -rpath flag with a separated argument.
18558 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18559
18560 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18561 # resulting binary.
18562 hardcode_direct=$hardcode_direct_RC
18563
18564 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18565 # resulting binary.
18566 hardcode_minus_L=$hardcode_minus_L_RC
18567
18568 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18569 # the resulting binary.
18570 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18571
18572 # Set to yes if building a shared library automatically hardcodes DIR into the library
18573 # and all subsequent libraries and executables linked against it.
18574 hardcode_automatic=$hardcode_automatic_RC
18575
18576 # Variables whose values should be saved in libtool wrapper scripts and
18577 # restored at relink time.
18578 variables_saved_for_relink="$variables_saved_for_relink"
18579
18580 # Whether libtool must link a program against all its dependency libraries.
18581 link_all_deplibs=$link_all_deplibs_RC
18582
18583 # Compile-time system search path for libraries
18584 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18585
18586 # Run-time system search path for libraries
18587 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18588
18589 # Fix the shell variable \$srcfile for the compiler.
18590 fix_srcfile_path="$fix_srcfile_path_RC"
18591
18592 # Set to yes if exported symbols are required.
18593 always_export_symbols=$always_export_symbols_RC
18594
18595 # The commands to list exported symbols.
18596 export_symbols_cmds=$lt_export_symbols_cmds_RC
18597
18598 # The commands to extract the exported symbol list from a shared archive.
18599 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18600
18601 # Symbols that should not be listed in the preloaded symbols.
18602 exclude_expsyms=$lt_exclude_expsyms_RC
18603
18604 # Symbols that must always be exported.
18605 include_expsyms=$lt_include_expsyms_RC
18606
18607 # ### END LIBTOOL TAG CONFIG: $tagname
18608
18609 __EOF__
18610
18611
18612 else
18613   # If there is no Makefile yet, we rely on a make rule to execute
18614   # `config.status --recheck' to rerun these tests and create the
18615   # libtool script then.
18616   test -f Makefile && make "$ltmain"
18617 fi
18618
18619
18620 ac_ext=c
18621 ac_cpp='$CPP $CPPFLAGS'
18622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18625
18626 CC="$lt_save_CC"
18627
18628         ;;
18629
18630       *)
18631         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18632 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18633    { (exit 1); exit 1; }; }
18634         ;;
18635       esac
18636
18637       # Append the new tag name to the list of available tags.
18638       if test -n "$tagname" ; then
18639       available_tags="$available_tags $tagname"
18640     fi
18641     fi
18642   done
18643   IFS="$lt_save_ifs"
18644
18645   # Now substitute the updated list of available tags.
18646   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18647     mv "${ofile}T" "$ofile"
18648     chmod +x "$ofile"
18649   else
18650     rm -f "${ofile}T"
18651     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18652 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18653    { (exit 1); exit 1; }; }
18654   fi
18655 fi
18656
18657
18658
18659 # This can be used to rebuild libtool when needed
18660 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18661
18662 # Always use our own libtool.
18663 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18664
18665 # Prevent multiple expansion
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687 # Extract the first word of "dot", so it can be a program name with args.
18688 set dummy dot; ac_word=$2
18689 echo "$as_me:$LINENO: checking for $ac_word" >&5
18690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18691 if test "${ac_cv_path_DOT+set}" = set; then
18692   echo $ECHO_N "(cached) $ECHO_C" >&6
18693 else
18694   case $DOT in
18695   [\\/]* | ?:[\\/]*)
18696   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18697   ;;
18698   *)
18699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18700 for as_dir in $PATH
18701 do
18702   IFS=$as_save_IFS
18703   test -z "$as_dir" && as_dir=.
18704   for ac_exec_ext in '' $ac_executable_extensions; do
18705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18706     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18708     break 2
18709   fi
18710 done
18711 done
18712
18713   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18714   ;;
18715 esac
18716 fi
18717 DOT=$ac_cv_path_DOT
18718
18719 if test -n "$DOT"; then
18720   echo "$as_me:$LINENO: result: $DOT" >&5
18721 echo "${ECHO_T}$DOT" >&6
18722 else
18723   echo "$as_me:$LINENO: result: no" >&5
18724 echo "${ECHO_T}no" >&6
18725 fi
18726
18727 # Extract the first word of "etags", so it can be a program name with args.
18728 set dummy etags; ac_word=$2
18729 echo "$as_me:$LINENO: checking for $ac_word" >&5
18730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18731 if test "${ac_cv_path_ETAGS+set}" = set; then
18732   echo $ECHO_N "(cached) $ECHO_C" >&6
18733 else
18734   case $ETAGS in
18735   [\\/]* | ?:[\\/]*)
18736   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18737   ;;
18738   *)
18739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18740 for as_dir in $PATH
18741 do
18742   IFS=$as_save_IFS
18743   test -z "$as_dir" && as_dir=.
18744   for ac_exec_ext in '' $ac_executable_extensions; do
18745   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18746     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18748     break 2
18749   fi
18750 done
18751 done
18752
18753   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18754   ;;
18755 esac
18756 fi
18757 ETAGS=$ac_cv_path_ETAGS
18758
18759 if test -n "$ETAGS"; then
18760   echo "$as_me:$LINENO: result: $ETAGS" >&5
18761 echo "${ECHO_T}$ETAGS" >&6
18762 else
18763   echo "$as_me:$LINENO: result: no" >&5
18764 echo "${ECHO_T}no" >&6
18765 fi
18766
18767 etags_version=`$ETAGS --version 2>&1`
18768 case "$etags_version" in
18769         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18770         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18771         *) ETAGSFLAGS="" ;;
18772 esac
18773 ETAGSFLAGS=$ETAGSFLAGS
18774
18775 # Extract the first word of "python", so it can be a program name with args.
18776 set dummy python; ac_word=$2
18777 echo "$as_me:$LINENO: checking for $ac_word" >&5
18778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18779 if test "${ac_cv_path_PYTHON+set}" = set; then
18780   echo $ECHO_N "(cached) $ECHO_C" >&6
18781 else
18782   case $PYTHON in
18783   [\\/]* | ?:[\\/]*)
18784   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18785   ;;
18786   *)
18787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18788 for as_dir in $PATH
18789 do
18790   IFS=$as_save_IFS
18791   test -z "$as_dir" && as_dir=.
18792   for ac_exec_ext in '' $ac_executable_extensions; do
18793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18794     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18796     break 2
18797   fi
18798 done
18799 done
18800
18801   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18802   ;;
18803 esac
18804 fi
18805 PYTHON=$ac_cv_path_PYTHON
18806
18807 if test -n "$PYTHON"; then
18808   echo "$as_me:$LINENO: result: $PYTHON" >&5
18809 echo "${ECHO_T}$PYTHON" >&6
18810 else
18811   echo "$as_me:$LINENO: result: no" >&5
18812 echo "${ECHO_T}no" >&6
18813 fi
18814
18815 if test "$PYTHON" = "false"
18816 then
18817         { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18818 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18819 fi
18820 # Extract the first word of "qmtest", so it can be a program name with args.
18821 set dummy qmtest; ac_word=$2
18822 echo "$as_me:$LINENO: checking for $ac_word" >&5
18823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18824 if test "${ac_cv_path_QMTEST+set}" = set; then
18825   echo $ECHO_N "(cached) $ECHO_C" >&6
18826 else
18827   case $QMTEST in
18828   [\\/]* | ?:[\\/]*)
18829   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18830   ;;
18831   *)
18832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18833 for as_dir in $PATH
18834 do
18835   IFS=$as_save_IFS
18836   test -z "$as_dir" && as_dir=.
18837   for ac_exec_ext in '' $ac_executable_extensions; do
18838   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18839     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18841     break 2
18842   fi
18843 done
18844 done
18845
18846   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18847   ;;
18848 esac
18849 fi
18850 QMTEST=$ac_cv_path_QMTEST
18851
18852 if test -n "$QMTEST"; then
18853   echo "$as_me:$LINENO: result: $QMTEST" >&5
18854 echo "${ECHO_T}$QMTEST" >&6
18855 else
18856   echo "$as_me:$LINENO: result: no" >&5
18857 echo "${ECHO_T}no" >&6
18858 fi
18859
18860 if test "$QMTEST" = "false"
18861 then
18862         { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18863 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18864 fi
18865
18866 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18867 pymajor=`echo $pyversion | cut -d. -f1`
18868 pyminor=`echo $pyversion | cut -d. -f2`
18869
18870 if test "$pymajor" -ge "2"
18871 then
18872         if test "$pymajor" -eq "2"
18873         then
18874                 if test "$pyminor" -lt "2"
18875                 then
18876                         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18877 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18878                 fi
18879         fi
18880 else
18881         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18882 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18883 fi
18884
18885
18886
18887
18888 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18889 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18890 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18891   echo $ECHO_N "(cached) $ECHO_C" >&6
18892 else
18893   ac_check_lib_save_LIBS=$LIBS
18894 LIBS="-lelf  $LIBS"
18895 cat >conftest.$ac_ext <<_ACEOF
18896 /* confdefs.h.  */
18897 _ACEOF
18898 cat confdefs.h >>conftest.$ac_ext
18899 cat >>conftest.$ac_ext <<_ACEOF
18900 /* end confdefs.h.  */
18901
18902 /* Override any gcc2 internal prototype to avoid an error.  */
18903 #ifdef __cplusplus
18904 extern "C"
18905 #endif
18906 /* We use char because int might match the return type of a gcc2
18907    builtin and then its argument prototype would still apply.  */
18908 char elf_begin ();
18909 int
18910 main ()
18911 {
18912 elf_begin ();
18913   ;
18914   return 0;
18915 }
18916 _ACEOF
18917 rm -f conftest.$ac_objext conftest$ac_exeext
18918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18919   (eval $ac_link) 2>conftest.er1
18920   ac_status=$?
18921   grep -v '^ *+' conftest.er1 >conftest.err
18922   rm -f conftest.er1
18923   cat conftest.err >&5
18924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925   (exit $ac_status); } &&
18926          { ac_try='test -z "$ac_c_werror_flag"
18927                          || test ! -s conftest.err'
18928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929   (eval $ac_try) 2>&5
18930   ac_status=$?
18931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932   (exit $ac_status); }; } &&
18933          { ac_try='test -s conftest$ac_exeext'
18934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935   (eval $ac_try) 2>&5
18936   ac_status=$?
18937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938   (exit $ac_status); }; }; then
18939   ac_cv_lib_elf_elf_begin=yes
18940 else
18941   echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18943
18944 ac_cv_lib_elf_elf_begin=no
18945 fi
18946 rm -f conftest.err conftest.$ac_objext \
18947       conftest$ac_exeext conftest.$ac_ext
18948 LIBS=$ac_check_lib_save_LIBS
18949 fi
18950 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18951 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18952 if test $ac_cv_lib_elf_elf_begin = yes; then
18953   cat >>confdefs.h <<_ACEOF
18954 #define HAVE_LIBELF 1
18955 _ACEOF
18956
18957   LIBS="-lelf $LIBS"
18958
18959 fi
18960
18961
18962 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18963 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18964 if test "${ac_cv_search_dlopen+set}" = set; then
18965   echo $ECHO_N "(cached) $ECHO_C" >&6
18966 else
18967   ac_func_search_save_LIBS=$LIBS
18968 ac_cv_search_dlopen=no
18969 cat >conftest.$ac_ext <<_ACEOF
18970 /* confdefs.h.  */
18971 _ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h.  */
18975
18976 /* Override any gcc2 internal prototype to avoid an error.  */
18977 #ifdef __cplusplus
18978 extern "C"
18979 #endif
18980 /* We use char because int might match the return type of a gcc2
18981    builtin and then its argument prototype would still apply.  */
18982 char dlopen ();
18983 int
18984 main ()
18985 {
18986 dlopen ();
18987   ;
18988   return 0;
18989 }
18990 _ACEOF
18991 rm -f conftest.$ac_objext conftest$ac_exeext
18992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18993   (eval $ac_link) 2>conftest.er1
18994   ac_status=$?
18995   grep -v '^ *+' conftest.er1 >conftest.err
18996   rm -f conftest.er1
18997   cat conftest.err >&5
18998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999   (exit $ac_status); } &&
19000          { ac_try='test -z "$ac_c_werror_flag"
19001                          || test ! -s conftest.err'
19002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19003   (eval $ac_try) 2>&5
19004   ac_status=$?
19005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006   (exit $ac_status); }; } &&
19007          { ac_try='test -s conftest$ac_exeext'
19008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19009   (eval $ac_try) 2>&5
19010   ac_status=$?
19011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012   (exit $ac_status); }; }; then
19013   ac_cv_search_dlopen="none required"
19014 else
19015   echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19017
19018 fi
19019 rm -f conftest.err conftest.$ac_objext \
19020       conftest$ac_exeext conftest.$ac_ext
19021 if test "$ac_cv_search_dlopen" = no; then
19022   for ac_lib in dl; do
19023     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19024     cat >conftest.$ac_ext <<_ACEOF
19025 /* confdefs.h.  */
19026 _ACEOF
19027 cat confdefs.h >>conftest.$ac_ext
19028 cat >>conftest.$ac_ext <<_ACEOF
19029 /* end confdefs.h.  */
19030
19031 /* Override any gcc2 internal prototype to avoid an error.  */
19032 #ifdef __cplusplus
19033 extern "C"
19034 #endif
19035 /* We use char because int might match the return type of a gcc2
19036    builtin and then its argument prototype would still apply.  */
19037 char dlopen ();
19038 int
19039 main ()
19040 {
19041 dlopen ();
19042   ;
19043   return 0;
19044 }
19045 _ACEOF
19046 rm -f conftest.$ac_objext conftest$ac_exeext
19047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19048   (eval $ac_link) 2>conftest.er1
19049   ac_status=$?
19050   grep -v '^ *+' conftest.er1 >conftest.err
19051   rm -f conftest.er1
19052   cat conftest.err >&5
19053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054   (exit $ac_status); } &&
19055          { ac_try='test -z "$ac_c_werror_flag"
19056                          || test ! -s conftest.err'
19057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058   (eval $ac_try) 2>&5
19059   ac_status=$?
19060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061   (exit $ac_status); }; } &&
19062          { ac_try='test -s conftest$ac_exeext'
19063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064   (eval $ac_try) 2>&5
19065   ac_status=$?
19066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067   (exit $ac_status); }; }; then
19068   ac_cv_search_dlopen="-l$ac_lib"
19069 break
19070 else
19071   echo "$as_me: failed program was:" >&5
19072 sed 's/^/| /' conftest.$ac_ext >&5
19073
19074 fi
19075 rm -f conftest.err conftest.$ac_objext \
19076       conftest$ac_exeext conftest.$ac_ext
19077   done
19078 fi
19079 LIBS=$ac_func_search_save_LIBS
19080 fi
19081 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19082 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19083 if test "$ac_cv_search_dlopen" != no; then
19084   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19085
19086 cat >>confdefs.h <<\_ACEOF
19087 #define HAVE_DLOPEN 1
19088 _ACEOF
19089
19090 else
19091   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19092 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19093 fi
19094
19095
19096 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19097 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19098 if test "${ac_cv_search_mallinfo+set}" = set; then
19099   echo $ECHO_N "(cached) $ECHO_C" >&6
19100 else
19101   ac_func_search_save_LIBS=$LIBS
19102 ac_cv_search_mallinfo=no
19103 cat >conftest.$ac_ext <<_ACEOF
19104 /* confdefs.h.  */
19105 _ACEOF
19106 cat confdefs.h >>conftest.$ac_ext
19107 cat >>conftest.$ac_ext <<_ACEOF
19108 /* end confdefs.h.  */
19109
19110 /* Override any gcc2 internal prototype to avoid an error.  */
19111 #ifdef __cplusplus
19112 extern "C"
19113 #endif
19114 /* We use char because int might match the return type of a gcc2
19115    builtin and then its argument prototype would still apply.  */
19116 char mallinfo ();
19117 int
19118 main ()
19119 {
19120 mallinfo ();
19121   ;
19122   return 0;
19123 }
19124 _ACEOF
19125 rm -f conftest.$ac_objext conftest$ac_exeext
19126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19127   (eval $ac_link) 2>conftest.er1
19128   ac_status=$?
19129   grep -v '^ *+' conftest.er1 >conftest.err
19130   rm -f conftest.er1
19131   cat conftest.err >&5
19132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133   (exit $ac_status); } &&
19134          { ac_try='test -z "$ac_c_werror_flag"
19135                          || test ! -s conftest.err'
19136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19137   (eval $ac_try) 2>&5
19138   ac_status=$?
19139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140   (exit $ac_status); }; } &&
19141          { ac_try='test -s conftest$ac_exeext'
19142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19143   (eval $ac_try) 2>&5
19144   ac_status=$?
19145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146   (exit $ac_status); }; }; then
19147   ac_cv_search_mallinfo="none required"
19148 else
19149   echo "$as_me: failed program was:" >&5
19150 sed 's/^/| /' conftest.$ac_ext >&5
19151
19152 fi
19153 rm -f conftest.err conftest.$ac_objext \
19154       conftest$ac_exeext conftest.$ac_ext
19155 if test "$ac_cv_search_mallinfo" = no; then
19156   for ac_lib in malloc; do
19157     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19158     cat >conftest.$ac_ext <<_ACEOF
19159 /* confdefs.h.  */
19160 _ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h.  */
19164
19165 /* Override any gcc2 internal prototype to avoid an error.  */
19166 #ifdef __cplusplus
19167 extern "C"
19168 #endif
19169 /* We use char because int might match the return type of a gcc2
19170    builtin and then its argument prototype would still apply.  */
19171 char mallinfo ();
19172 int
19173 main ()
19174 {
19175 mallinfo ();
19176   ;
19177   return 0;
19178 }
19179 _ACEOF
19180 rm -f conftest.$ac_objext conftest$ac_exeext
19181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19182   (eval $ac_link) 2>conftest.er1
19183   ac_status=$?
19184   grep -v '^ *+' conftest.er1 >conftest.err
19185   rm -f conftest.er1
19186   cat conftest.err >&5
19187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188   (exit $ac_status); } &&
19189          { ac_try='test -z "$ac_c_werror_flag"
19190                          || test ! -s conftest.err'
19191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19192   (eval $ac_try) 2>&5
19193   ac_status=$?
19194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195   (exit $ac_status); }; } &&
19196          { ac_try='test -s conftest$ac_exeext'
19197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198   (eval $ac_try) 2>&5
19199   ac_status=$?
19200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201   (exit $ac_status); }; }; then
19202   ac_cv_search_mallinfo="-l$ac_lib"
19203 break
19204 else
19205   echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19207
19208 fi
19209 rm -f conftest.err conftest.$ac_objext \
19210       conftest$ac_exeext conftest.$ac_ext
19211   done
19212 fi
19213 LIBS=$ac_func_search_save_LIBS
19214 fi
19215 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19216 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19217 if test "$ac_cv_search_mallinfo" != no; then
19218   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19219
19220 cat >>confdefs.h <<\_ACEOF
19221 #define HAVE_MALLINFO 1
19222 _ACEOF
19223
19224 fi
19225
19226
19227 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19228 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19229 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19230   echo $ECHO_N "(cached) $ECHO_C" >&6
19231 else
19232   ac_func_search_save_LIBS=$LIBS
19233 ac_cv_search_pthread_mutex_lock=no
19234 cat >conftest.$ac_ext <<_ACEOF
19235 /* confdefs.h.  */
19236 _ACEOF
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h.  */
19240
19241 /* Override any gcc2 internal prototype to avoid an error.  */
19242 #ifdef __cplusplus
19243 extern "C"
19244 #endif
19245 /* We use char because int might match the return type of a gcc2
19246    builtin and then its argument prototype would still apply.  */
19247 char pthread_mutex_lock ();
19248 int
19249 main ()
19250 {
19251 pthread_mutex_lock ();
19252   ;
19253   return 0;
19254 }
19255 _ACEOF
19256 rm -f conftest.$ac_objext conftest$ac_exeext
19257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19258   (eval $ac_link) 2>conftest.er1
19259   ac_status=$?
19260   grep -v '^ *+' conftest.er1 >conftest.err
19261   rm -f conftest.er1
19262   cat conftest.err >&5
19263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264   (exit $ac_status); } &&
19265          { ac_try='test -z "$ac_c_werror_flag"
19266                          || test ! -s conftest.err'
19267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268   (eval $ac_try) 2>&5
19269   ac_status=$?
19270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271   (exit $ac_status); }; } &&
19272          { ac_try='test -s conftest$ac_exeext'
19273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19274   (eval $ac_try) 2>&5
19275   ac_status=$?
19276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277   (exit $ac_status); }; }; then
19278   ac_cv_search_pthread_mutex_lock="none required"
19279 else
19280   echo "$as_me: failed program was:" >&5
19281 sed 's/^/| /' conftest.$ac_ext >&5
19282
19283 fi
19284 rm -f conftest.err conftest.$ac_objext \
19285       conftest$ac_exeext conftest.$ac_ext
19286 if test "$ac_cv_search_pthread_mutex_lock" = no; then
19287   for ac_lib in pthread; do
19288     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19289     cat >conftest.$ac_ext <<_ACEOF
19290 /* confdefs.h.  */
19291 _ACEOF
19292 cat confdefs.h >>conftest.$ac_ext
19293 cat >>conftest.$ac_ext <<_ACEOF
19294 /* end confdefs.h.  */
19295
19296 /* Override any gcc2 internal prototype to avoid an error.  */
19297 #ifdef __cplusplus
19298 extern "C"
19299 #endif
19300 /* We use char because int might match the return type of a gcc2
19301    builtin and then its argument prototype would still apply.  */
19302 char pthread_mutex_lock ();
19303 int
19304 main ()
19305 {
19306 pthread_mutex_lock ();
19307   ;
19308   return 0;
19309 }
19310 _ACEOF
19311 rm -f conftest.$ac_objext conftest$ac_exeext
19312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19313   (eval $ac_link) 2>conftest.er1
19314   ac_status=$?
19315   grep -v '^ *+' conftest.er1 >conftest.err
19316   rm -f conftest.er1
19317   cat conftest.err >&5
19318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319   (exit $ac_status); } &&
19320          { ac_try='test -z "$ac_c_werror_flag"
19321                          || test ! -s conftest.err'
19322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323   (eval $ac_try) 2>&5
19324   ac_status=$?
19325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326   (exit $ac_status); }; } &&
19327          { ac_try='test -s conftest$ac_exeext'
19328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329   (eval $ac_try) 2>&5
19330   ac_status=$?
19331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332   (exit $ac_status); }; }; then
19333   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19334 break
19335 else
19336   echo "$as_me: failed program was:" >&5
19337 sed 's/^/| /' conftest.$ac_ext >&5
19338
19339 fi
19340 rm -f conftest.err conftest.$ac_objext \
19341       conftest$ac_exeext conftest.$ac_ext
19342   done
19343 fi
19344 LIBS=$ac_func_search_save_LIBS
19345 fi
19346 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19347 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19348 if test "$ac_cv_search_pthread_mutex_lock" != no; then
19349   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
19350   HAVE_PTHREAD_MUTEX_LOCK=1
19351 else
19352   HAVE_PTHREAD_MUTEX_LOCK=0
19353 fi
19354
19355
19356
19357 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19358 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19359 if test "${ac_cv_header_stdc+set}" = set; then
19360   echo $ECHO_N "(cached) $ECHO_C" >&6
19361 else
19362   cat >conftest.$ac_ext <<_ACEOF
19363 /* confdefs.h.  */
19364 _ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h.  */
19368 #include <stdlib.h>
19369 #include <stdarg.h>
19370 #include <string.h>
19371 #include <float.h>
19372
19373 int
19374 main ()
19375 {
19376
19377   ;
19378   return 0;
19379 }
19380 _ACEOF
19381 rm -f conftest.$ac_objext
19382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19383   (eval $ac_compile) 2>conftest.er1
19384   ac_status=$?
19385   grep -v '^ *+' conftest.er1 >conftest.err
19386   rm -f conftest.er1
19387   cat conftest.err >&5
19388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389   (exit $ac_status); } &&
19390          { ac_try='test -z "$ac_c_werror_flag"
19391                          || test ! -s conftest.err'
19392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19393   (eval $ac_try) 2>&5
19394   ac_status=$?
19395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396   (exit $ac_status); }; } &&
19397          { ac_try='test -s conftest.$ac_objext'
19398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19399   (eval $ac_try) 2>&5
19400   ac_status=$?
19401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402   (exit $ac_status); }; }; then
19403   ac_cv_header_stdc=yes
19404 else
19405   echo "$as_me: failed program was:" >&5
19406 sed 's/^/| /' conftest.$ac_ext >&5
19407
19408 ac_cv_header_stdc=no
19409 fi
19410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19411
19412 if test $ac_cv_header_stdc = yes; then
19413   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19414   cat >conftest.$ac_ext <<_ACEOF
19415 /* confdefs.h.  */
19416 _ACEOF
19417 cat confdefs.h >>conftest.$ac_ext
19418 cat >>conftest.$ac_ext <<_ACEOF
19419 /* end confdefs.h.  */
19420 #include <string.h>
19421
19422 _ACEOF
19423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19424   $EGREP "memchr" >/dev/null 2>&1; then
19425   :
19426 else
19427   ac_cv_header_stdc=no
19428 fi
19429 rm -f conftest*
19430
19431 fi
19432
19433 if test $ac_cv_header_stdc = yes; then
19434   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19435   cat >conftest.$ac_ext <<_ACEOF
19436 /* confdefs.h.  */
19437 _ACEOF
19438 cat confdefs.h >>conftest.$ac_ext
19439 cat >>conftest.$ac_ext <<_ACEOF
19440 /* end confdefs.h.  */
19441 #include <stdlib.h>
19442
19443 _ACEOF
19444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19445   $EGREP "free" >/dev/null 2>&1; then
19446   :
19447 else
19448   ac_cv_header_stdc=no
19449 fi
19450 rm -f conftest*
19451
19452 fi
19453
19454 if test $ac_cv_header_stdc = yes; then
19455   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19456   if test "$cross_compiling" = yes; then
19457   :
19458 else
19459   cat >conftest.$ac_ext <<_ACEOF
19460 /* confdefs.h.  */
19461 _ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h.  */
19465 #include <ctype.h>
19466 #if ((' ' & 0x0FF) == 0x020)
19467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19469 #else
19470 # define ISLOWER(c) \
19471                    (('a' <= (c) && (c) <= 'i') \
19472                      || ('j' <= (c) && (c) <= 'r') \
19473                      || ('s' <= (c) && (c) <= 'z'))
19474 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19475 #endif
19476
19477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19478 int
19479 main ()
19480 {
19481   int i;
19482   for (i = 0; i < 256; i++)
19483     if (XOR (islower (i), ISLOWER (i))
19484         || toupper (i) != TOUPPER (i))
19485       exit(2);
19486   exit (0);
19487 }
19488 _ACEOF
19489 rm -f conftest$ac_exeext
19490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19491   (eval $ac_link) 2>&5
19492   ac_status=$?
19493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496   (eval $ac_try) 2>&5
19497   ac_status=$?
19498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499   (exit $ac_status); }; }; then
19500   :
19501 else
19502   echo "$as_me: program exited with status $ac_status" >&5
19503 echo "$as_me: failed program was:" >&5
19504 sed 's/^/| /' conftest.$ac_ext >&5
19505
19506 ( exit $ac_status )
19507 ac_cv_header_stdc=no
19508 fi
19509 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19510 fi
19511 fi
19512 fi
19513 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19514 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19515 if test $ac_cv_header_stdc = yes; then
19516
19517 cat >>confdefs.h <<\_ACEOF
19518 #define STDC_HEADERS 1
19519 _ACEOF
19520
19521 fi
19522
19523 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19524 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19525 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19526   echo $ECHO_N "(cached) $ECHO_C" >&6
19527 else
19528   cat >conftest.$ac_ext <<_ACEOF
19529 /* confdefs.h.  */
19530 _ACEOF
19531 cat confdefs.h >>conftest.$ac_ext
19532 cat >>conftest.$ac_ext <<_ACEOF
19533 /* end confdefs.h.  */
19534 #include <sys/types.h>
19535 #include <sys/wait.h>
19536 #ifndef WEXITSTATUS
19537 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19538 #endif
19539 #ifndef WIFEXITED
19540 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19541 #endif
19542
19543 int
19544 main ()
19545 {
19546   int s;
19547   wait (&s);
19548   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19549   ;
19550   return 0;
19551 }
19552 _ACEOF
19553 rm -f conftest.$ac_objext
19554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19555   (eval $ac_compile) 2>conftest.er1
19556   ac_status=$?
19557   grep -v '^ *+' conftest.er1 >conftest.err
19558   rm -f conftest.er1
19559   cat conftest.err >&5
19560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561   (exit $ac_status); } &&
19562          { ac_try='test -z "$ac_c_werror_flag"
19563                          || test ! -s conftest.err'
19564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565   (eval $ac_try) 2>&5
19566   ac_status=$?
19567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568   (exit $ac_status); }; } &&
19569          { ac_try='test -s conftest.$ac_objext'
19570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571   (eval $ac_try) 2>&5
19572   ac_status=$?
19573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574   (exit $ac_status); }; }; then
19575   ac_cv_header_sys_wait_h=yes
19576 else
19577   echo "$as_me: failed program was:" >&5
19578 sed 's/^/| /' conftest.$ac_ext >&5
19579
19580 ac_cv_header_sys_wait_h=no
19581 fi
19582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19583 fi
19584 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19585 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19586 if test $ac_cv_header_sys_wait_h = yes; then
19587
19588 cat >>confdefs.h <<\_ACEOF
19589 #define HAVE_SYS_WAIT_H 1
19590 _ACEOF
19591
19592 fi
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606 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
19607 do
19608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19610   echo "$as_me:$LINENO: checking for $ac_header" >&5
19611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19613   echo $ECHO_N "(cached) $ECHO_C" >&6
19614 fi
19615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19617 else
19618   # Is the header compilable?
19619 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19620 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19621 cat >conftest.$ac_ext <<_ACEOF
19622 /* confdefs.h.  */
19623 _ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h.  */
19627 $ac_includes_default
19628 #include <$ac_header>
19629 _ACEOF
19630 rm -f conftest.$ac_objext
19631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19632   (eval $ac_compile) 2>conftest.er1
19633   ac_status=$?
19634   grep -v '^ *+' conftest.er1 >conftest.err
19635   rm -f conftest.er1
19636   cat conftest.err >&5
19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638   (exit $ac_status); } &&
19639          { ac_try='test -z "$ac_c_werror_flag"
19640                          || test ! -s conftest.err'
19641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642   (eval $ac_try) 2>&5
19643   ac_status=$?
19644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645   (exit $ac_status); }; } &&
19646          { ac_try='test -s conftest.$ac_objext'
19647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648   (eval $ac_try) 2>&5
19649   ac_status=$?
19650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651   (exit $ac_status); }; }; then
19652   ac_header_compiler=yes
19653 else
19654   echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19656
19657 ac_header_compiler=no
19658 fi
19659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19661 echo "${ECHO_T}$ac_header_compiler" >&6
19662
19663 # Is the header present?
19664 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19666 cat >conftest.$ac_ext <<_ACEOF
19667 /* confdefs.h.  */
19668 _ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h.  */
19672 #include <$ac_header>
19673 _ACEOF
19674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19675   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19676   ac_status=$?
19677   grep -v '^ *+' conftest.er1 >conftest.err
19678   rm -f conftest.er1
19679   cat conftest.err >&5
19680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681   (exit $ac_status); } >/dev/null; then
19682   if test -s conftest.err; then
19683     ac_cpp_err=$ac_c_preproc_warn_flag
19684     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19685   else
19686     ac_cpp_err=
19687   fi
19688 else
19689   ac_cpp_err=yes
19690 fi
19691 if test -z "$ac_cpp_err"; then
19692   ac_header_preproc=yes
19693 else
19694   echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19696
19697   ac_header_preproc=no
19698 fi
19699 rm -f conftest.err conftest.$ac_ext
19700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19701 echo "${ECHO_T}$ac_header_preproc" >&6
19702
19703 # So?  What about this header?
19704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19705   yes:no: )
19706     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19707 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19708     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19709 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19710     ac_header_preproc=yes
19711     ;;
19712   no:yes:* )
19713     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19714 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19715     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19716 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19717     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19718 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19719     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19720 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19721     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19723     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19724 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19725     (
19726       cat <<\_ASBOX
19727 ## ----------------------------------- ##
19728 ## Report this to llvmbugs@cs.uiuc.edu ##
19729 ## ----------------------------------- ##
19730 _ASBOX
19731     ) |
19732       sed "s/^/$as_me: WARNING:     /" >&2
19733     ;;
19734 esac
19735 echo "$as_me:$LINENO: checking for $ac_header" >&5
19736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19738   echo $ECHO_N "(cached) $ECHO_C" >&6
19739 else
19740   eval "$as_ac_Header=\$ac_header_preproc"
19741 fi
19742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19744
19745 fi
19746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19747   cat >>confdefs.h <<_ACEOF
19748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19749 _ACEOF
19750
19751 fi
19752
19753 done
19754
19755
19756 if test "${ac_cv_header_sys_types_h+set}" = set; then
19757   echo "$as_me:$LINENO: checking for sys/types.h" >&5
19758 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19759 if test "${ac_cv_header_sys_types_h+set}" = set; then
19760   echo $ECHO_N "(cached) $ECHO_C" >&6
19761 fi
19762 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19763 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19764 else
19765   # Is the header compilable?
19766 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19767 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19768 cat >conftest.$ac_ext <<_ACEOF
19769 /* confdefs.h.  */
19770 _ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h.  */
19774 $ac_includes_default
19775 #include <sys/types.h>
19776 _ACEOF
19777 rm -f conftest.$ac_objext
19778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19779   (eval $ac_compile) 2>conftest.er1
19780   ac_status=$?
19781   grep -v '^ *+' conftest.er1 >conftest.err
19782   rm -f conftest.er1
19783   cat conftest.err >&5
19784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785   (exit $ac_status); } &&
19786          { ac_try='test -z "$ac_c_werror_flag"
19787                          || test ! -s conftest.err'
19788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789   (eval $ac_try) 2>&5
19790   ac_status=$?
19791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792   (exit $ac_status); }; } &&
19793          { ac_try='test -s conftest.$ac_objext'
19794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795   (eval $ac_try) 2>&5
19796   ac_status=$?
19797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798   (exit $ac_status); }; }; then
19799   ac_header_compiler=yes
19800 else
19801   echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19803
19804 ac_header_compiler=no
19805 fi
19806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19807 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19808 echo "${ECHO_T}$ac_header_compiler" >&6
19809
19810 # Is the header present?
19811 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19812 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19813 cat >conftest.$ac_ext <<_ACEOF
19814 /* confdefs.h.  */
19815 _ACEOF
19816 cat confdefs.h >>conftest.$ac_ext
19817 cat >>conftest.$ac_ext <<_ACEOF
19818 /* end confdefs.h.  */
19819 #include <sys/types.h>
19820 _ACEOF
19821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19822   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19823   ac_status=$?
19824   grep -v '^ *+' conftest.er1 >conftest.err
19825   rm -f conftest.er1
19826   cat conftest.err >&5
19827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828   (exit $ac_status); } >/dev/null; then
19829   if test -s conftest.err; then
19830     ac_cpp_err=$ac_c_preproc_warn_flag
19831     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19832   else
19833     ac_cpp_err=
19834   fi
19835 else
19836   ac_cpp_err=yes
19837 fi
19838 if test -z "$ac_cpp_err"; then
19839   ac_header_preproc=yes
19840 else
19841   echo "$as_me: failed program was:" >&5
19842 sed 's/^/| /' conftest.$ac_ext >&5
19843
19844   ac_header_preproc=no
19845 fi
19846 rm -f conftest.err conftest.$ac_ext
19847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19848 echo "${ECHO_T}$ac_header_preproc" >&6
19849
19850 # So?  What about this header?
19851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19852   yes:no: )
19853     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19854 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19855     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
19856 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
19857     ac_header_preproc=yes
19858     ;;
19859   no:yes:* )
19860     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19861 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19862     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
19863 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
19864     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
19865 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
19866     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
19867 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19868     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19869 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19870     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
19871 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
19872     (
19873       cat <<\_ASBOX
19874 ## ----------------------------------- ##
19875 ## Report this to llvmbugs@cs.uiuc.edu ##
19876 ## ----------------------------------- ##
19877 _ASBOX
19878     ) |
19879       sed "s/^/$as_me: WARNING:     /" >&2
19880     ;;
19881 esac
19882 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19883 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19884 if test "${ac_cv_header_sys_types_h+set}" = set; then
19885   echo $ECHO_N "(cached) $ECHO_C" >&6
19886 else
19887   ac_cv_header_sys_types_h=$ac_header_preproc
19888 fi
19889 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19890 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19891
19892 fi
19893 if test $ac_cv_header_sys_types_h = yes; then
19894   INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19895 else
19896   INCLUDE_SYS_TYPES_H=''
19897 fi
19898
19899
19900
19901 if test "${ac_cv_header_inttypes_h+set}" = set; then
19902   echo "$as_me:$LINENO: checking for inttypes.h" >&5
19903 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19904 if test "${ac_cv_header_inttypes_h+set}" = set; then
19905   echo $ECHO_N "(cached) $ECHO_C" >&6
19906 fi
19907 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19908 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19909 else
19910   # Is the header compilable?
19911 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19912 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19913 cat >conftest.$ac_ext <<_ACEOF
19914 /* confdefs.h.  */
19915 _ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h.  */
19919 $ac_includes_default
19920 #include <inttypes.h>
19921 _ACEOF
19922 rm -f conftest.$ac_objext
19923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19924   (eval $ac_compile) 2>conftest.er1
19925   ac_status=$?
19926   grep -v '^ *+' conftest.er1 >conftest.err
19927   rm -f conftest.er1
19928   cat conftest.err >&5
19929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930   (exit $ac_status); } &&
19931          { ac_try='test -z "$ac_c_werror_flag"
19932                          || test ! -s conftest.err'
19933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934   (eval $ac_try) 2>&5
19935   ac_status=$?
19936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937   (exit $ac_status); }; } &&
19938          { ac_try='test -s conftest.$ac_objext'
19939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940   (eval $ac_try) 2>&5
19941   ac_status=$?
19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943   (exit $ac_status); }; }; then
19944   ac_header_compiler=yes
19945 else
19946   echo "$as_me: failed program was:" >&5
19947 sed 's/^/| /' conftest.$ac_ext >&5
19948
19949 ac_header_compiler=no
19950 fi
19951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19953 echo "${ECHO_T}$ac_header_compiler" >&6
19954
19955 # Is the header present?
19956 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19957 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19958 cat >conftest.$ac_ext <<_ACEOF
19959 /* confdefs.h.  */
19960 _ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h.  */
19964 #include <inttypes.h>
19965 _ACEOF
19966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19967   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19968   ac_status=$?
19969   grep -v '^ *+' conftest.er1 >conftest.err
19970   rm -f conftest.er1
19971   cat conftest.err >&5
19972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973   (exit $ac_status); } >/dev/null; then
19974   if test -s conftest.err; then
19975     ac_cpp_err=$ac_c_preproc_warn_flag
19976     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19977   else
19978     ac_cpp_err=
19979   fi
19980 else
19981   ac_cpp_err=yes
19982 fi
19983 if test -z "$ac_cpp_err"; then
19984   ac_header_preproc=yes
19985 else
19986   echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19988
19989   ac_header_preproc=no
19990 fi
19991 rm -f conftest.err conftest.$ac_ext
19992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19993 echo "${ECHO_T}$ac_header_preproc" >&6
19994
19995 # So?  What about this header?
19996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19997   yes:no: )
19998     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19999 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20000     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20001 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20002     ac_header_preproc=yes
20003     ;;
20004   no:yes:* )
20005     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20006 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20007     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
20008 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
20009     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20010 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20011     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
20012 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20013     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20014 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20015     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20016 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20017     (
20018       cat <<\_ASBOX
20019 ## ----------------------------------- ##
20020 ## Report this to llvmbugs@cs.uiuc.edu ##
20021 ## ----------------------------------- ##
20022 _ASBOX
20023     ) |
20024       sed "s/^/$as_me: WARNING:     /" >&2
20025     ;;
20026 esac
20027 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20028 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20029 if test "${ac_cv_header_inttypes_h+set}" = set; then
20030   echo $ECHO_N "(cached) $ECHO_C" >&6
20031 else
20032   ac_cv_header_inttypes_h=$ac_header_preproc
20033 fi
20034 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20035 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20036
20037 fi
20038 if test $ac_cv_header_inttypes_h = yes; then
20039   INCLUDE_INTTYPES_H='#include <inttypes.h>'
20040 else
20041   INCLUDE_INTTYPES_H=''
20042 fi
20043
20044
20045
20046 if test "${ac_cv_header_stdint_h+set}" = set; then
20047   echo "$as_me:$LINENO: checking for stdint.h" >&5
20048 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20049 if test "${ac_cv_header_stdint_h+set}" = set; then
20050   echo $ECHO_N "(cached) $ECHO_C" >&6
20051 fi
20052 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20053 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20054 else
20055   # Is the header compilable?
20056 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20057 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20058 cat >conftest.$ac_ext <<_ACEOF
20059 /* confdefs.h.  */
20060 _ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h.  */
20064 $ac_includes_default
20065 #include <stdint.h>
20066 _ACEOF
20067 rm -f conftest.$ac_objext
20068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20069   (eval $ac_compile) 2>conftest.er1
20070   ac_status=$?
20071   grep -v '^ *+' conftest.er1 >conftest.err
20072   rm -f conftest.er1
20073   cat conftest.err >&5
20074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075   (exit $ac_status); } &&
20076          { ac_try='test -z "$ac_c_werror_flag"
20077                          || test ! -s conftest.err'
20078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079   (eval $ac_try) 2>&5
20080   ac_status=$?
20081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082   (exit $ac_status); }; } &&
20083          { ac_try='test -s conftest.$ac_objext'
20084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085   (eval $ac_try) 2>&5
20086   ac_status=$?
20087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088   (exit $ac_status); }; }; then
20089   ac_header_compiler=yes
20090 else
20091   echo "$as_me: failed program was:" >&5
20092 sed 's/^/| /' conftest.$ac_ext >&5
20093
20094 ac_header_compiler=no
20095 fi
20096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20098 echo "${ECHO_T}$ac_header_compiler" >&6
20099
20100 # Is the header present?
20101 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20102 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20103 cat >conftest.$ac_ext <<_ACEOF
20104 /* confdefs.h.  */
20105 _ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h.  */
20109 #include <stdint.h>
20110 _ACEOF
20111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20112   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20113   ac_status=$?
20114   grep -v '^ *+' conftest.er1 >conftest.err
20115   rm -f conftest.er1
20116   cat conftest.err >&5
20117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118   (exit $ac_status); } >/dev/null; then
20119   if test -s conftest.err; then
20120     ac_cpp_err=$ac_c_preproc_warn_flag
20121     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20122   else
20123     ac_cpp_err=
20124   fi
20125 else
20126   ac_cpp_err=yes
20127 fi
20128 if test -z "$ac_cpp_err"; then
20129   ac_header_preproc=yes
20130 else
20131   echo "$as_me: failed program was:" >&5
20132 sed 's/^/| /' conftest.$ac_ext >&5
20133
20134   ac_header_preproc=no
20135 fi
20136 rm -f conftest.err conftest.$ac_ext
20137 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20138 echo "${ECHO_T}$ac_header_preproc" >&6
20139
20140 # So?  What about this header?
20141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20142   yes:no: )
20143     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20144 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20145     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20146 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20147     ac_header_preproc=yes
20148     ;;
20149   no:yes:* )
20150     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20151 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20152     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
20153 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
20154     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20155 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20156     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
20157 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20158     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20159 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20160     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20161 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20162     (
20163       cat <<\_ASBOX
20164 ## ----------------------------------- ##
20165 ## Report this to llvmbugs@cs.uiuc.edu ##
20166 ## ----------------------------------- ##
20167 _ASBOX
20168     ) |
20169       sed "s/^/$as_me: WARNING:     /" >&2
20170     ;;
20171 esac
20172 echo "$as_me:$LINENO: checking for stdint.h" >&5
20173 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20174 if test "${ac_cv_header_stdint_h+set}" = set; then
20175   echo $ECHO_N "(cached) $ECHO_C" >&6
20176 else
20177   ac_cv_header_stdint_h=$ac_header_preproc
20178 fi
20179 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20180 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20181
20182 fi
20183 if test $ac_cv_header_stdint_h = yes; then
20184   INCLUDE_STDINT_H='#include <stdint.h>'
20185 else
20186   INCLUDE_STDINT_H=''
20187 fi
20188
20189
20190
20191
20192
20193 echo "$as_me:$LINENO: checking for pid_t" >&5
20194 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20195 if test "${ac_cv_type_pid_t+set}" = set; then
20196   echo $ECHO_N "(cached) $ECHO_C" >&6
20197 else
20198   cat >conftest.$ac_ext <<_ACEOF
20199 /* confdefs.h.  */
20200 _ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h.  */
20204 $ac_includes_default
20205 int
20206 main ()
20207 {
20208 if ((pid_t *) 0)
20209   return 0;
20210 if (sizeof (pid_t))
20211   return 0;
20212   ;
20213   return 0;
20214 }
20215 _ACEOF
20216 rm -f conftest.$ac_objext
20217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20218   (eval $ac_compile) 2>conftest.er1
20219   ac_status=$?
20220   grep -v '^ *+' conftest.er1 >conftest.err
20221   rm -f conftest.er1
20222   cat conftest.err >&5
20223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224   (exit $ac_status); } &&
20225          { ac_try='test -z "$ac_c_werror_flag"
20226                          || test ! -s conftest.err'
20227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228   (eval $ac_try) 2>&5
20229   ac_status=$?
20230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231   (exit $ac_status); }; } &&
20232          { ac_try='test -s conftest.$ac_objext'
20233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234   (eval $ac_try) 2>&5
20235   ac_status=$?
20236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237   (exit $ac_status); }; }; then
20238   ac_cv_type_pid_t=yes
20239 else
20240   echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20242
20243 ac_cv_type_pid_t=no
20244 fi
20245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20246 fi
20247 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20248 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20249 if test $ac_cv_type_pid_t = yes; then
20250   :
20251 else
20252
20253 cat >>confdefs.h <<_ACEOF
20254 #define pid_t int
20255 _ACEOF
20256
20257 fi
20258
20259 echo "$as_me:$LINENO: checking for size_t" >&5
20260 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20261 if test "${ac_cv_type_size_t+set}" = set; then
20262   echo $ECHO_N "(cached) $ECHO_C" >&6
20263 else
20264   cat >conftest.$ac_ext <<_ACEOF
20265 /* confdefs.h.  */
20266 _ACEOF
20267 cat confdefs.h >>conftest.$ac_ext
20268 cat >>conftest.$ac_ext <<_ACEOF
20269 /* end confdefs.h.  */
20270 $ac_includes_default
20271 int
20272 main ()
20273 {
20274 if ((size_t *) 0)
20275   return 0;
20276 if (sizeof (size_t))
20277   return 0;
20278   ;
20279   return 0;
20280 }
20281 _ACEOF
20282 rm -f conftest.$ac_objext
20283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20284   (eval $ac_compile) 2>conftest.er1
20285   ac_status=$?
20286   grep -v '^ *+' conftest.er1 >conftest.err
20287   rm -f conftest.er1
20288   cat conftest.err >&5
20289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290   (exit $ac_status); } &&
20291          { ac_try='test -z "$ac_c_werror_flag"
20292                          || test ! -s conftest.err'
20293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20294   (eval $ac_try) 2>&5
20295   ac_status=$?
20296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297   (exit $ac_status); }; } &&
20298          { ac_try='test -s conftest.$ac_objext'
20299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20300   (eval $ac_try) 2>&5
20301   ac_status=$?
20302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303   (exit $ac_status); }; }; then
20304   ac_cv_type_size_t=yes
20305 else
20306   echo "$as_me: failed program was:" >&5
20307 sed 's/^/| /' conftest.$ac_ext >&5
20308
20309 ac_cv_type_size_t=no
20310 fi
20311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20312 fi
20313 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20314 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20315 if test $ac_cv_type_size_t = yes; then
20316   :
20317 else
20318
20319 cat >>confdefs.h <<_ACEOF
20320 #define size_t unsigned
20321 _ACEOF
20322
20323 fi
20324
20325 echo "$as_me:$LINENO: checking for int64_t" >&5
20326 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20327 if test "${ac_cv_type_int64_t+set}" = set; then
20328   echo $ECHO_N "(cached) $ECHO_C" >&6
20329 else
20330   cat >conftest.$ac_ext <<_ACEOF
20331 /* confdefs.h.  */
20332 _ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h.  */
20336 $ac_includes_default
20337 int
20338 main ()
20339 {
20340 if ((int64_t *) 0)
20341   return 0;
20342 if (sizeof (int64_t))
20343   return 0;
20344   ;
20345   return 0;
20346 }
20347 _ACEOF
20348 rm -f conftest.$ac_objext
20349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20350   (eval $ac_compile) 2>conftest.er1
20351   ac_status=$?
20352   grep -v '^ *+' conftest.er1 >conftest.err
20353   rm -f conftest.er1
20354   cat conftest.err >&5
20355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356   (exit $ac_status); } &&
20357          { ac_try='test -z "$ac_c_werror_flag"
20358                          || test ! -s conftest.err'
20359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360   (eval $ac_try) 2>&5
20361   ac_status=$?
20362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363   (exit $ac_status); }; } &&
20364          { ac_try='test -s conftest.$ac_objext'
20365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20366   (eval $ac_try) 2>&5
20367   ac_status=$?
20368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369   (exit $ac_status); }; }; then
20370   ac_cv_type_int64_t=yes
20371 else
20372   echo "$as_me: failed program was:" >&5
20373 sed 's/^/| /' conftest.$ac_ext >&5
20374
20375 ac_cv_type_int64_t=no
20376 fi
20377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20378 fi
20379 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20380 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20381 if test $ac_cv_type_int64_t = yes; then
20382
20383 cat >>confdefs.h <<_ACEOF
20384 #define HAVE_INT64_T 1
20385 _ACEOF
20386
20387
20388 else
20389   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20390 echo "$as_me: error: Type int64_t required but not found" >&2;}
20391    { (exit 1); exit 1; }; }
20392 fi
20393
20394 echo "$as_me:$LINENO: checking for uint64_t" >&5
20395 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20396 if test "${ac_cv_type_uint64_t+set}" = set; then
20397   echo $ECHO_N "(cached) $ECHO_C" >&6
20398 else
20399   cat >conftest.$ac_ext <<_ACEOF
20400 /* confdefs.h.  */
20401 _ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h.  */
20405 $ac_includes_default
20406 int
20407 main ()
20408 {
20409 if ((uint64_t *) 0)
20410   return 0;
20411 if (sizeof (uint64_t))
20412   return 0;
20413   ;
20414   return 0;
20415 }
20416 _ACEOF
20417 rm -f conftest.$ac_objext
20418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20419   (eval $ac_compile) 2>conftest.er1
20420   ac_status=$?
20421   grep -v '^ *+' conftest.er1 >conftest.err
20422   rm -f conftest.er1
20423   cat conftest.err >&5
20424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425   (exit $ac_status); } &&
20426          { ac_try='test -z "$ac_c_werror_flag"
20427                          || test ! -s conftest.err'
20428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429   (eval $ac_try) 2>&5
20430   ac_status=$?
20431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432   (exit $ac_status); }; } &&
20433          { ac_try='test -s conftest.$ac_objext'
20434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20435   (eval $ac_try) 2>&5
20436   ac_status=$?
20437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438   (exit $ac_status); }; }; then
20439   ac_cv_type_uint64_t=yes
20440 else
20441   echo "$as_me: failed program was:" >&5
20442 sed 's/^/| /' conftest.$ac_ext >&5
20443
20444 ac_cv_type_uint64_t=no
20445 fi
20446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20447 fi
20448 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20449 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20450 if test $ac_cv_type_uint64_t = yes; then
20451
20452 cat >>confdefs.h <<_ACEOF
20453 #define HAVE_UINT64_T 1
20454 _ACEOF
20455
20456
20457 else
20458   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20459 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20460    { (exit 1); exit 1; }; }
20461 fi
20462
20463 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20464 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20465 if test "${ac_cv_header_time+set}" = set; then
20466   echo $ECHO_N "(cached) $ECHO_C" >&6
20467 else
20468   cat >conftest.$ac_ext <<_ACEOF
20469 /* confdefs.h.  */
20470 _ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h.  */
20474 #include <sys/types.h>
20475 #include <sys/time.h>
20476 #include <time.h>
20477
20478 int
20479 main ()
20480 {
20481 if ((struct tm *) 0)
20482 return 0;
20483   ;
20484   return 0;
20485 }
20486 _ACEOF
20487 rm -f conftest.$ac_objext
20488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20489   (eval $ac_compile) 2>conftest.er1
20490   ac_status=$?
20491   grep -v '^ *+' conftest.er1 >conftest.err
20492   rm -f conftest.er1
20493   cat conftest.err >&5
20494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495   (exit $ac_status); } &&
20496          { ac_try='test -z "$ac_c_werror_flag"
20497                          || test ! -s conftest.err'
20498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20499   (eval $ac_try) 2>&5
20500   ac_status=$?
20501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502   (exit $ac_status); }; } &&
20503          { ac_try='test -s conftest.$ac_objext'
20504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20505   (eval $ac_try) 2>&5
20506   ac_status=$?
20507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508   (exit $ac_status); }; }; then
20509   ac_cv_header_time=yes
20510 else
20511   echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20513
20514 ac_cv_header_time=no
20515 fi
20516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20517 fi
20518 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20519 echo "${ECHO_T}$ac_cv_header_time" >&6
20520 if test $ac_cv_header_time = yes; then
20521
20522 cat >>confdefs.h <<\_ACEOF
20523 #define TIME_WITH_SYS_TIME 1
20524 _ACEOF
20525
20526 fi
20527
20528 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20529 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20530 if test "${ac_cv_struct_tm+set}" = set; then
20531   echo $ECHO_N "(cached) $ECHO_C" >&6
20532 else
20533   cat >conftest.$ac_ext <<_ACEOF
20534 /* confdefs.h.  */
20535 _ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h.  */
20539 #include <sys/types.h>
20540 #include <time.h>
20541
20542 int
20543 main ()
20544 {
20545 struct tm *tp; tp->tm_sec;
20546   ;
20547   return 0;
20548 }
20549 _ACEOF
20550 rm -f conftest.$ac_objext
20551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20552   (eval $ac_compile) 2>conftest.er1
20553   ac_status=$?
20554   grep -v '^ *+' conftest.er1 >conftest.err
20555   rm -f conftest.er1
20556   cat conftest.err >&5
20557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558   (exit $ac_status); } &&
20559          { ac_try='test -z "$ac_c_werror_flag"
20560                          || test ! -s conftest.err'
20561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562   (eval $ac_try) 2>&5
20563   ac_status=$?
20564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565   (exit $ac_status); }; } &&
20566          { ac_try='test -s conftest.$ac_objext'
20567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20568   (eval $ac_try) 2>&5
20569   ac_status=$?
20570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571   (exit $ac_status); }; }; then
20572   ac_cv_struct_tm=time.h
20573 else
20574   echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20576
20577 ac_cv_struct_tm=sys/time.h
20578 fi
20579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20580 fi
20581 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20582 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20583 if test $ac_cv_struct_tm = sys/time.h; then
20584
20585 cat >>confdefs.h <<\_ACEOF
20586 #define TM_IN_SYS_TIME 1
20587 _ACEOF
20588
20589 fi
20590
20591
20592
20593         echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20594 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
20595
20596
20597         ac_ext=c
20598 ac_cpp='$CPP $CPPFLAGS'
20599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20602
20603         if test "$cross_compiling" = yes; then
20604   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20605 See \`config.log' for more details." >&5
20606 echo "$as_me: error: cannot run test program while cross compiling
20607 See \`config.log' for more details." >&2;}
20608    { (exit 1); exit 1; }; }
20609 else
20610   cat >conftest.$ac_ext <<_ACEOF
20611 /* confdefs.h.  */
20612 _ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h.  */
20616 #include <stdio.h>
20617                                  #include <stdlib.h>
20618 int
20619 main ()
20620 {
20621
20622                                  volatile double A, B;
20623                                  char Buffer[100];
20624                                  A = 1;
20625                                  A /= 10.0;
20626                                  sprintf(Buffer, "%a", A);
20627                                  B = atof(Buffer);
20628                                  if (A != B)
20629                                                          return (1);
20630                                  if (A != 0x1.999999999999ap-4)
20631                                                          return (1);
20632                                  return (0);
20633   ;
20634   return 0;
20635 }
20636 _ACEOF
20637 rm -f conftest$ac_exeext
20638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20639   (eval $ac_link) 2>&5
20640   ac_status=$?
20641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20644   (eval $ac_try) 2>&5
20645   ac_status=$?
20646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647   (exit $ac_status); }; }; then
20648   ac_c_printf_a=yes
20649 else
20650   echo "$as_me: program exited with status $ac_status" >&5
20651 echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20653
20654 ( exit $ac_status )
20655 ac_c_printf_a=no
20656 fi
20657 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20658 fi
20659         ac_ext=c
20660 ac_cpp='$CPP $CPPFLAGS'
20661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20664
20665         echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20666 echo "${ECHO_T}$ac_c_printf_a" >&6
20667         if test "$ac_c_printf_a" = "yes"; then
20668
20669 cat >>confdefs.h <<\_ACEOF
20670 #define HAVE_PRINTF_A 1
20671 _ACEOF
20672
20673         fi
20674
20675
20676 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20677 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20678 if test "${ac_cv_c_bigendian+set}" = set; then
20679   echo $ECHO_N "(cached) $ECHO_C" >&6
20680 else
20681   # See if sys/param.h defines the BYTE_ORDER macro.
20682 cat >conftest.$ac_ext <<_ACEOF
20683 /* confdefs.h.  */
20684 _ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h.  */
20688 #include <sys/types.h>
20689 #include <sys/param.h>
20690
20691 int
20692 main ()
20693 {
20694 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20695  bogus endian macros
20696 #endif
20697
20698   ;
20699   return 0;
20700 }
20701 _ACEOF
20702 rm -f conftest.$ac_objext
20703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20704   (eval $ac_compile) 2>conftest.er1
20705   ac_status=$?
20706   grep -v '^ *+' conftest.er1 >conftest.err
20707   rm -f conftest.er1
20708   cat conftest.err >&5
20709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710   (exit $ac_status); } &&
20711          { ac_try='test -z "$ac_c_werror_flag"
20712                          || test ! -s conftest.err'
20713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20714   (eval $ac_try) 2>&5
20715   ac_status=$?
20716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717   (exit $ac_status); }; } &&
20718          { ac_try='test -s conftest.$ac_objext'
20719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20720   (eval $ac_try) 2>&5
20721   ac_status=$?
20722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723   (exit $ac_status); }; }; then
20724   # It does; now see whether it defined to BIG_ENDIAN or not.
20725 cat >conftest.$ac_ext <<_ACEOF
20726 /* confdefs.h.  */
20727 _ACEOF
20728 cat confdefs.h >>conftest.$ac_ext
20729 cat >>conftest.$ac_ext <<_ACEOF
20730 /* end confdefs.h.  */
20731 #include <sys/types.h>
20732 #include <sys/param.h>
20733
20734 int
20735 main ()
20736 {
20737 #if BYTE_ORDER != BIG_ENDIAN
20738  not big endian
20739 #endif
20740
20741   ;
20742   return 0;
20743 }
20744 _ACEOF
20745 rm -f conftest.$ac_objext
20746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20747   (eval $ac_compile) 2>conftest.er1
20748   ac_status=$?
20749   grep -v '^ *+' conftest.er1 >conftest.err
20750   rm -f conftest.er1
20751   cat conftest.err >&5
20752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753   (exit $ac_status); } &&
20754          { ac_try='test -z "$ac_c_werror_flag"
20755                          || test ! -s conftest.err'
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); }; } &&
20761          { ac_try='test -s conftest.$ac_objext'
20762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20763   (eval $ac_try) 2>&5
20764   ac_status=$?
20765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766   (exit $ac_status); }; }; then
20767   ac_cv_c_bigendian=yes
20768 else
20769   echo "$as_me: failed program was:" >&5
20770 sed 's/^/| /' conftest.$ac_ext >&5
20771
20772 ac_cv_c_bigendian=no
20773 fi
20774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20775 else
20776   echo "$as_me: failed program was:" >&5
20777 sed 's/^/| /' conftest.$ac_ext >&5
20778
20779 # It does not; compile a test program.
20780 if test "$cross_compiling" = yes; then
20781   # try to guess the endianness by grepping values into an object file
20782   ac_cv_c_bigendian=unknown
20783   cat >conftest.$ac_ext <<_ACEOF
20784 /* confdefs.h.  */
20785 _ACEOF
20786 cat confdefs.h >>conftest.$ac_ext
20787 cat >>conftest.$ac_ext <<_ACEOF
20788 /* end confdefs.h.  */
20789 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20790 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20791 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20792 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20793 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20794 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20795 int
20796 main ()
20797 {
20798  _ascii (); _ebcdic ();
20799   ;
20800   return 0;
20801 }
20802 _ACEOF
20803 rm -f conftest.$ac_objext
20804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20805   (eval $ac_compile) 2>conftest.er1
20806   ac_status=$?
20807   grep -v '^ *+' conftest.er1 >conftest.err
20808   rm -f conftest.er1
20809   cat conftest.err >&5
20810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811   (exit $ac_status); } &&
20812          { ac_try='test -z "$ac_c_werror_flag"
20813                          || test ! -s conftest.err'
20814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815   (eval $ac_try) 2>&5
20816   ac_status=$?
20817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818   (exit $ac_status); }; } &&
20819          { ac_try='test -s conftest.$ac_objext'
20820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20821   (eval $ac_try) 2>&5
20822   ac_status=$?
20823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824   (exit $ac_status); }; }; then
20825   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20826   ac_cv_c_bigendian=yes
20827 fi
20828 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20829   if test "$ac_cv_c_bigendian" = unknown; then
20830     ac_cv_c_bigendian=no
20831   else
20832     # finding both strings is unlikely to happen, but who knows?
20833     ac_cv_c_bigendian=unknown
20834   fi
20835 fi
20836 else
20837   echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20839
20840 fi
20841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20842 else
20843   cat >conftest.$ac_ext <<_ACEOF
20844 /* confdefs.h.  */
20845 _ACEOF
20846 cat confdefs.h >>conftest.$ac_ext
20847 cat >>conftest.$ac_ext <<_ACEOF
20848 /* end confdefs.h.  */
20849 int
20850 main ()
20851 {
20852   /* Are we little or big endian?  From Harbison&Steele.  */
20853   union
20854   {
20855     long l;
20856     char c[sizeof (long)];
20857   } u;
20858   u.l = 1;
20859   exit (u.c[sizeof (long) - 1] == 1);
20860 }
20861 _ACEOF
20862 rm -f conftest$ac_exeext
20863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20864   (eval $ac_link) 2>&5
20865   ac_status=$?
20866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869   (eval $ac_try) 2>&5
20870   ac_status=$?
20871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872   (exit $ac_status); }; }; then
20873   ac_cv_c_bigendian=no
20874 else
20875   echo "$as_me: program exited with status $ac_status" >&5
20876 echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20878
20879 ( exit $ac_status )
20880 ac_cv_c_bigendian=yes
20881 fi
20882 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20883 fi
20884 fi
20885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20886 fi
20887 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20888 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20889 case $ac_cv_c_bigendian in
20890   yes)
20891     ENDIAN=big
20892  ;;
20893   no)
20894     ENDIAN=little
20895  ;;
20896   *)
20897     { { echo "$as_me:$LINENO: error: unknown endianness
20898 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20899 echo "$as_me: error: unknown endianness
20900 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20901    { (exit 1); exit 1; }; } ;;
20902 esac
20903
20904
20905 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20906 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20907 if test "${ac_cv_cxx_namespaces+set}" = set; then
20908   echo $ECHO_N "(cached) $ECHO_C" >&6
20909 else
20910
20911
20912  ac_ext=cc
20913 ac_cpp='$CXXCPP $CPPFLAGS'
20914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20917
20918  cat >conftest.$ac_ext <<_ACEOF
20919 /* confdefs.h.  */
20920 _ACEOF
20921 cat confdefs.h >>conftest.$ac_ext
20922 cat >>conftest.$ac_ext <<_ACEOF
20923 /* end confdefs.h.  */
20924 namespace Outer { namespace Inner { int i = 0; }}
20925 int
20926 main ()
20927 {
20928 using namespace Outer::Inner; return i;
20929   ;
20930   return 0;
20931 }
20932 _ACEOF
20933 rm -f conftest.$ac_objext
20934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20935   (eval $ac_compile) 2>conftest.er1
20936   ac_status=$?
20937   grep -v '^ *+' conftest.er1 >conftest.err
20938   rm -f conftest.er1
20939   cat conftest.err >&5
20940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941   (exit $ac_status); } &&
20942          { ac_try='test -z "$ac_cxx_werror_flag"
20943                          || test ! -s conftest.err'
20944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945   (eval $ac_try) 2>&5
20946   ac_status=$?
20947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948   (exit $ac_status); }; } &&
20949          { ac_try='test -s conftest.$ac_objext'
20950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20951   (eval $ac_try) 2>&5
20952   ac_status=$?
20953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954   (exit $ac_status); }; }; then
20955   ac_cv_cxx_namespaces=yes
20956 else
20957   echo "$as_me: failed program was:" >&5
20958 sed 's/^/| /' conftest.$ac_ext >&5
20959
20960 ac_cv_cxx_namespaces=no
20961 fi
20962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20963  ac_ext=c
20964 ac_cpp='$CPP $CPPFLAGS'
20965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20968
20969
20970 fi
20971 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20972 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20973 if test "$ac_cv_cxx_namespaces" = yes; then
20974
20975 cat >>confdefs.h <<\_ACEOF
20976 #define HAVE_NAMESPACES
20977 _ACEOF
20978
20979 fi
20980
20981 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20982 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20983 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20984   echo $ECHO_N "(cached) $ECHO_C" >&6
20985 else
20986
20987
20988
20989   ac_ext=cc
20990 ac_cpp='$CXXCPP $CPPFLAGS'
20991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20994
20995   cat >conftest.$ac_ext <<_ACEOF
20996 /* confdefs.h.  */
20997 _ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h.  */
21001 #include <ext/hash_map>
21002 #ifdef HAVE_NAMESPACES
21003 using namespace std;
21004 #endif
21005 int
21006 main ()
21007 {
21008 hash_map<int, int> t;
21009   ;
21010   return 0;
21011 }
21012 _ACEOF
21013 rm -f conftest.$ac_objext
21014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21015   (eval $ac_compile) 2>conftest.er1
21016   ac_status=$?
21017   grep -v '^ *+' conftest.er1 >conftest.err
21018   rm -f conftest.er1
21019   cat conftest.err >&5
21020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021   (exit $ac_status); } &&
21022          { ac_try='test -z "$ac_cxx_werror_flag"
21023                          || test ! -s conftest.err'
21024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025   (eval $ac_try) 2>&5
21026   ac_status=$?
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); }; } &&
21029          { ac_try='test -s conftest.$ac_objext'
21030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031   (eval $ac_try) 2>&5
21032   ac_status=$?
21033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034   (exit $ac_status); }; }; then
21035   ac_cv_cxx_have_std_ext_hash_map=yes
21036 else
21037   echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21039
21040 ac_cv_cxx_have_std_ext_hash_map=no
21041 fi
21042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21043   ac_ext=c
21044 ac_cpp='$CPP $CPPFLAGS'
21045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21048
21049 fi
21050 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21051 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21052  HAVE_STD_EXT_HASH_MAP=0
21053  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21054  then
21055    HAVE_STD_EXT_HASH_MAP=1
21056  fi
21057
21058  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21059 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21060 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21061   echo $ECHO_N "(cached) $ECHO_C" >&6
21062 else
21063
21064
21065
21066   ac_ext=cc
21067 ac_cpp='$CXXCPP $CPPFLAGS'
21068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21071
21072   cat >conftest.$ac_ext <<_ACEOF
21073 /* confdefs.h.  */
21074 _ACEOF
21075 cat confdefs.h >>conftest.$ac_ext
21076 cat >>conftest.$ac_ext <<_ACEOF
21077 /* end confdefs.h.  */
21078 #include <ext/hash_map>
21079 #ifdef HAVE_NAMESPACES
21080 using namespace __gnu_cxx;
21081 #endif
21082 int
21083 main ()
21084 {
21085 hash_map<int,int> t;
21086   ;
21087   return 0;
21088 }
21089 _ACEOF
21090 rm -f conftest.$ac_objext
21091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21092   (eval $ac_compile) 2>conftest.er1
21093   ac_status=$?
21094   grep -v '^ *+' conftest.er1 >conftest.err
21095   rm -f conftest.er1
21096   cat conftest.err >&5
21097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098   (exit $ac_status); } &&
21099          { ac_try='test -z "$ac_cxx_werror_flag"
21100                          || test ! -s conftest.err'
21101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21102   (eval $ac_try) 2>&5
21103   ac_status=$?
21104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105   (exit $ac_status); }; } &&
21106          { ac_try='test -s conftest.$ac_objext'
21107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108   (eval $ac_try) 2>&5
21109   ac_status=$?
21110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111   (exit $ac_status); }; }; then
21112   ac_cv_cxx_have_gnu_ext_hash_map=yes
21113 else
21114   echo "$as_me: failed program was:" >&5
21115 sed 's/^/| /' conftest.$ac_ext >&5
21116
21117 ac_cv_cxx_have_gnu_ext_hash_map=no
21118 fi
21119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21120   ac_ext=c
21121 ac_cpp='$CPP $CPPFLAGS'
21122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21125
21126 fi
21127 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21128 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21129  HAVE_GNU_EXT_HASH_MAP=0
21130  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21131  then
21132    HAVE_GNU_EXT_HASH_MAP=1
21133  fi
21134
21135  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21136 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21137 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21138   echo $ECHO_N "(cached) $ECHO_C" >&6
21139 else
21140
21141
21142
21143   ac_ext=cc
21144 ac_cpp='$CXXCPP $CPPFLAGS'
21145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21148
21149   cat >conftest.$ac_ext <<_ACEOF
21150 /* confdefs.h.  */
21151 _ACEOF
21152 cat confdefs.h >>conftest.$ac_ext
21153 cat >>conftest.$ac_ext <<_ACEOF
21154 /* end confdefs.h.  */
21155 #include <hash_map>
21156 int
21157 main ()
21158 {
21159 hash_map<int,int> t;
21160   ;
21161   return 0;
21162 }
21163 _ACEOF
21164 rm -f conftest.$ac_objext
21165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21166   (eval $ac_compile) 2>conftest.er1
21167   ac_status=$?
21168   grep -v '^ *+' conftest.er1 >conftest.err
21169   rm -f conftest.er1
21170   cat conftest.err >&5
21171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172   (exit $ac_status); } &&
21173          { ac_try='test -z "$ac_cxx_werror_flag"
21174                          || test ! -s conftest.err'
21175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176   (eval $ac_try) 2>&5
21177   ac_status=$?
21178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179   (exit $ac_status); }; } &&
21180          { ac_try='test -s conftest.$ac_objext'
21181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182   (eval $ac_try) 2>&5
21183   ac_status=$?
21184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185   (exit $ac_status); }; }; then
21186   ac_cv_cxx_have_global_hash_map=yes
21187 else
21188   echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21190
21191 ac_cv_cxx_have_global_hash_map=no
21192 fi
21193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21194   ac_ext=c
21195 ac_cpp='$CPP $CPPFLAGS'
21196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21199
21200 fi
21201 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21202 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21203  HAVE_GLOBAL_HASH_MAP=0
21204  if test "$ac_cv_cxx_have_global_hash_map" = yes
21205  then
21206    HAVE_GLOBAL_HASH_MAP=1
21207  fi
21208
21209 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21210 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21211 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21212   echo $ECHO_N "(cached) $ECHO_C" >&6
21213 else
21214
21215
21216
21217   ac_ext=cc
21218 ac_cpp='$CXXCPP $CPPFLAGS'
21219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21222
21223   cat >conftest.$ac_ext <<_ACEOF
21224 /* confdefs.h.  */
21225 _ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h.  */
21229 #include <ext/hash_set>
21230 #ifdef HAVE_NAMESPACES
21231 using namespace std;
21232 #endif
21233 int
21234 main ()
21235 {
21236 hash_set<int> t;
21237   ;
21238   return 0;
21239 }
21240 _ACEOF
21241 rm -f conftest.$ac_objext
21242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21243   (eval $ac_compile) 2>conftest.er1
21244   ac_status=$?
21245   grep -v '^ *+' conftest.er1 >conftest.err
21246   rm -f conftest.er1
21247   cat conftest.err >&5
21248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249   (exit $ac_status); } &&
21250          { ac_try='test -z "$ac_cxx_werror_flag"
21251                          || test ! -s conftest.err'
21252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21253   (eval $ac_try) 2>&5
21254   ac_status=$?
21255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256   (exit $ac_status); }; } &&
21257          { ac_try='test -s conftest.$ac_objext'
21258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21259   (eval $ac_try) 2>&5
21260   ac_status=$?
21261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262   (exit $ac_status); }; }; then
21263   ac_cv_cxx_have_std_ext_hash_set=yes
21264 else
21265   echo "$as_me: failed program was:" >&5
21266 sed 's/^/| /' conftest.$ac_ext >&5
21267
21268 ac_cv_cxx_have_std_ext_hash_set=no
21269 fi
21270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21271   ac_ext=c
21272 ac_cpp='$CPP $CPPFLAGS'
21273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21276
21277 fi
21278 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21279 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21280  HAVE_STD_EXT_HASH_SET=0
21281  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21282  then
21283    HAVE_STD_EXT_HASH_SET=1
21284  fi
21285
21286  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21287 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21288 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21289   echo $ECHO_N "(cached) $ECHO_C" >&6
21290 else
21291
21292
21293
21294   ac_ext=cc
21295 ac_cpp='$CXXCPP $CPPFLAGS'
21296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21299
21300   cat >conftest.$ac_ext <<_ACEOF
21301 /* confdefs.h.  */
21302 _ACEOF
21303 cat confdefs.h >>conftest.$ac_ext
21304 cat >>conftest.$ac_ext <<_ACEOF
21305 /* end confdefs.h.  */
21306 #include <ext/hash_set>
21307 #ifdef HAVE_NAMESPACES
21308 using namespace __gnu_cxx;
21309 #endif
21310 int
21311 main ()
21312 {
21313 hash_set<int> t;
21314   ;
21315   return 0;
21316 }
21317 _ACEOF
21318 rm -f conftest.$ac_objext
21319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21320   (eval $ac_compile) 2>conftest.er1
21321   ac_status=$?
21322   grep -v '^ *+' conftest.er1 >conftest.err
21323   rm -f conftest.er1
21324   cat conftest.err >&5
21325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326   (exit $ac_status); } &&
21327          { ac_try='test -z "$ac_cxx_werror_flag"
21328                          || test ! -s conftest.err'
21329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21330   (eval $ac_try) 2>&5
21331   ac_status=$?
21332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333   (exit $ac_status); }; } &&
21334          { ac_try='test -s conftest.$ac_objext'
21335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21336   (eval $ac_try) 2>&5
21337   ac_status=$?
21338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339   (exit $ac_status); }; }; then
21340   ac_cv_cxx_have_gnu_ext_hash_set=yes
21341 else
21342   echo "$as_me: failed program was:" >&5
21343 sed 's/^/| /' conftest.$ac_ext >&5
21344
21345 ac_cv_cxx_have_gnu_ext_hash_set=no
21346 fi
21347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21348   ac_ext=c
21349 ac_cpp='$CPP $CPPFLAGS'
21350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21353
21354 fi
21355 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21356 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21357  HAVE_GNU_EXT_HASH_SET=0
21358  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21359  then
21360    HAVE_GNU_EXT_HASH_SET=1
21361  fi
21362
21363  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21364 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21365 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21366   echo $ECHO_N "(cached) $ECHO_C" >&6
21367 else
21368
21369
21370
21371   ac_ext=cc
21372 ac_cpp='$CXXCPP $CPPFLAGS'
21373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21376
21377   cat >conftest.$ac_ext <<_ACEOF
21378 /* confdefs.h.  */
21379 _ACEOF
21380 cat confdefs.h >>conftest.$ac_ext
21381 cat >>conftest.$ac_ext <<_ACEOF
21382 /* end confdefs.h.  */
21383 #include <hash_set>
21384 int
21385 main ()
21386 {
21387 hash_set<int> t; return 0;
21388   ;
21389   return 0;
21390 }
21391 _ACEOF
21392 rm -f conftest.$ac_objext
21393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21394   (eval $ac_compile) 2>conftest.er1
21395   ac_status=$?
21396   grep -v '^ *+' conftest.er1 >conftest.err
21397   rm -f conftest.er1
21398   cat conftest.err >&5
21399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400   (exit $ac_status); } &&
21401          { ac_try='test -z "$ac_cxx_werror_flag"
21402                          || test ! -s conftest.err'
21403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21404   (eval $ac_try) 2>&5
21405   ac_status=$?
21406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407   (exit $ac_status); }; } &&
21408          { ac_try='test -s conftest.$ac_objext'
21409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21410   (eval $ac_try) 2>&5
21411   ac_status=$?
21412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413   (exit $ac_status); }; }; then
21414   ac_cv_cxx_have_global_hash_set=yes
21415 else
21416   echo "$as_me: failed program was:" >&5
21417 sed 's/^/| /' conftest.$ac_ext >&5
21418
21419 ac_cv_cxx_have_global_hash_set=no
21420 fi
21421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21422   ac_ext=c
21423 ac_cpp='$CPP $CPPFLAGS'
21424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21427
21428 fi
21429 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21430 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21431  HAVE_GLOBAL_HASH_SET=0
21432  if test "$ac_cv_cxx_have_global_hash_set" = yes
21433  then
21434    HAVE_GLOBAL_HASH_SET=1
21435  fi
21436
21437 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21438 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21439 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21440   echo $ECHO_N "(cached) $ECHO_C" >&6
21441 else
21442
21443
21444
21445   ac_ext=cc
21446 ac_cpp='$CXXCPP $CPPFLAGS'
21447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21450
21451   cat >conftest.$ac_ext <<_ACEOF
21452 /* confdefs.h.  */
21453 _ACEOF
21454 cat confdefs.h >>conftest.$ac_ext
21455 cat >>conftest.$ac_ext <<_ACEOF
21456 /* end confdefs.h.  */
21457 #include <iterator>
21458 #ifdef HAVE_NAMESPACES
21459 using namespace std;
21460 #endif
21461 int
21462 main ()
21463 {
21464 iterator<int,int,int> t; return 0;
21465   ;
21466   return 0;
21467 }
21468 _ACEOF
21469 rm -f conftest.$ac_objext
21470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21471   (eval $ac_compile) 2>conftest.er1
21472   ac_status=$?
21473   grep -v '^ *+' conftest.er1 >conftest.err
21474   rm -f conftest.er1
21475   cat conftest.err >&5
21476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477   (exit $ac_status); } &&
21478          { ac_try='test -z "$ac_cxx_werror_flag"
21479                          || test ! -s conftest.err'
21480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21481   (eval $ac_try) 2>&5
21482   ac_status=$?
21483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484   (exit $ac_status); }; } &&
21485          { ac_try='test -s conftest.$ac_objext'
21486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21487   (eval $ac_try) 2>&5
21488   ac_status=$?
21489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490   (exit $ac_status); }; }; then
21491   ac_cv_cxx_have_std_iterator=yes
21492 else
21493   echo "$as_me: failed program was:" >&5
21494 sed 's/^/| /' conftest.$ac_ext >&5
21495
21496 ac_cv_cxx_have_std_iterator=no
21497 fi
21498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21499   ac_ext=c
21500 ac_cpp='$CPP $CPPFLAGS'
21501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21504
21505
21506 fi
21507 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21508 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21509 HAVE_STD_ITERATOR=0
21510 if test "$ac_cv_cxx_have_std_iterator" = yes
21511 then
21512    HAVE_STD_ITERATOR=1
21513 fi
21514
21515 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21516 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21517 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21518   echo $ECHO_N "(cached) $ECHO_C" >&6
21519 else
21520
21521
21522
21523   ac_ext=cc
21524 ac_cpp='$CXXCPP $CPPFLAGS'
21525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21528
21529   cat >conftest.$ac_ext <<_ACEOF
21530 /* confdefs.h.  */
21531 _ACEOF
21532 cat confdefs.h >>conftest.$ac_ext
21533 cat >>conftest.$ac_ext <<_ACEOF
21534 /* end confdefs.h.  */
21535 #include <iterator>
21536 #ifdef HAVE_NAMESPACES
21537 using namespace std;
21538 #endif
21539 int
21540 main ()
21541 {
21542 bidirectional_iterator<int,int> t; return 0;
21543   ;
21544   return 0;
21545 }
21546 _ACEOF
21547 rm -f conftest.$ac_objext
21548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21549   (eval $ac_compile) 2>conftest.er1
21550   ac_status=$?
21551   grep -v '^ *+' conftest.er1 >conftest.err
21552   rm -f conftest.er1
21553   cat conftest.err >&5
21554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555   (exit $ac_status); } &&
21556          { ac_try='test -z "$ac_cxx_werror_flag"
21557                          || test ! -s conftest.err'
21558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559   (eval $ac_try) 2>&5
21560   ac_status=$?
21561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562   (exit $ac_status); }; } &&
21563          { ac_try='test -s conftest.$ac_objext'
21564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21565   (eval $ac_try) 2>&5
21566   ac_status=$?
21567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568   (exit $ac_status); }; }; then
21569   ac_cv_cxx_have_bi_iterator=yes
21570 else
21571   echo "$as_me: failed program was:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21573
21574 ac_cv_cxx_have_bi_iterator=no
21575 fi
21576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21577   ac_ext=c
21578 ac_cpp='$CPP $CPPFLAGS'
21579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21582
21583
21584 fi
21585 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21586 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21587 HAVE_BI_ITERATOR=0
21588 if test "$ac_cv_cxx_have_bi_iterator" = yes
21589 then
21590    HAVE_BI_ITERATOR=1
21591 fi
21592
21593 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21594 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21595 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21596   echo $ECHO_N "(cached) $ECHO_C" >&6
21597 else
21598
21599
21600
21601   ac_ext=cc
21602 ac_cpp='$CXXCPP $CPPFLAGS'
21603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21606
21607   cat >conftest.$ac_ext <<_ACEOF
21608 /* confdefs.h.  */
21609 _ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h.  */
21613 #include <iterator>
21614 #ifdef HAVE_NAMESPACES
21615 using namespace std;
21616 #endif
21617 int
21618 main ()
21619 {
21620 forward_iterator<int,int> t; return 0;
21621   ;
21622   return 0;
21623 }
21624 _ACEOF
21625 rm -f conftest.$ac_objext
21626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21627   (eval $ac_compile) 2>conftest.er1
21628   ac_status=$?
21629   grep -v '^ *+' conftest.er1 >conftest.err
21630   rm -f conftest.er1
21631   cat conftest.err >&5
21632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633   (exit $ac_status); } &&
21634          { ac_try='test -z "$ac_cxx_werror_flag"
21635                          || test ! -s conftest.err'
21636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21637   (eval $ac_try) 2>&5
21638   ac_status=$?
21639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640   (exit $ac_status); }; } &&
21641          { ac_try='test -s conftest.$ac_objext'
21642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643   (eval $ac_try) 2>&5
21644   ac_status=$?
21645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646   (exit $ac_status); }; }; then
21647   ac_cv_cxx_have_fwd_iterator=yes
21648 else
21649   echo "$as_me: failed program was:" >&5
21650 sed 's/^/| /' conftest.$ac_ext >&5
21651
21652 ac_cv_cxx_have_fwd_iterator=no
21653 fi
21654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21655   ac_ext=c
21656 ac_cpp='$CPP $CPPFLAGS'
21657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21660
21661
21662 fi
21663 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21664 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21665 HAVE_FWD_ITERATOR=0
21666 if test "$ac_cv_cxx_have_fwd_iterator" = yes
21667 then
21668    HAVE_FWD_ITERATOR=1
21669 fi
21670
21671
21672
21673 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21674 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21675 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21676   echo $ECHO_N "(cached) $ECHO_C" >&6
21677 else
21678   ac_ext=cc
21679 ac_cpp='$CXXCPP $CPPFLAGS'
21680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21683
21684   cat >conftest.$ac_ext <<_ACEOF
21685 /* confdefs.h.  */
21686 _ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h.  */
21690 #include <math.h>
21691                      int foo(float f) {return isnan(f);}
21692 _ACEOF
21693 rm -f conftest.$ac_objext
21694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21695   (eval $ac_compile) 2>conftest.er1
21696   ac_status=$?
21697   grep -v '^ *+' conftest.er1 >conftest.err
21698   rm -f conftest.er1
21699   cat conftest.err >&5
21700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701   (exit $ac_status); } &&
21702          { ac_try='test -z "$ac_cxx_werror_flag"
21703                          || test ! -s conftest.err'
21704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21705   (eval $ac_try) 2>&5
21706   ac_status=$?
21707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708   (exit $ac_status); }; } &&
21709          { ac_try='test -s conftest.$ac_objext'
21710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711   (eval $ac_try) 2>&5
21712   ac_status=$?
21713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714   (exit $ac_status); }; }; then
21715   ac_cv_func_isnan_in_math_h=yes
21716 else
21717   echo "$as_me: failed program was:" >&5
21718 sed 's/^/| /' conftest.$ac_ext >&5
21719
21720 ac_cv_func_isnan_in_math_h=no
21721 fi
21722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21723  ac_ext=c
21724 ac_cpp='$CPP $CPPFLAGS'
21725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21728
21729 fi
21730 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
21731 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
21732  if test "$ac_cv_func_isnan_in_math_h" = "yes"
21733  then
21734
21735 cat >>confdefs.h <<\_ACEOF
21736 #define HAVE_ISNAN_IN_MATH_H 1
21737 _ACEOF
21738
21739  fi
21740 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
21741 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
21742 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
21743   echo $ECHO_N "(cached) $ECHO_C" >&6
21744 else
21745   ac_ext=cc
21746 ac_cpp='$CXXCPP $CPPFLAGS'
21747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21750
21751   cat >conftest.$ac_ext <<_ACEOF
21752 /* confdefs.h.  */
21753 _ACEOF
21754 cat confdefs.h >>conftest.$ac_ext
21755 cat >>conftest.$ac_ext <<_ACEOF
21756 /* end confdefs.h.  */
21757 #include <cmath>
21758                      int foo(float f) {return isnan(f);}
21759 _ACEOF
21760 rm -f conftest.$ac_objext
21761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21762   (eval $ac_compile) 2>conftest.er1
21763   ac_status=$?
21764   grep -v '^ *+' conftest.er1 >conftest.err
21765   rm -f conftest.er1
21766   cat conftest.err >&5
21767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768   (exit $ac_status); } &&
21769          { ac_try='test -z "$ac_cxx_werror_flag"
21770                          || test ! -s conftest.err'
21771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21772   (eval $ac_try) 2>&5
21773   ac_status=$?
21774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21775   (exit $ac_status); }; } &&
21776          { ac_try='test -s conftest.$ac_objext'
21777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21778   (eval $ac_try) 2>&5
21779   ac_status=$?
21780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781   (exit $ac_status); }; }; then
21782   ac_cv_func_isnan_in_cmath=yes
21783 else
21784   echo "$as_me: failed program was:" >&5
21785 sed 's/^/| /' conftest.$ac_ext >&5
21786
21787 ac_cv_func_isnan_in_cmath=no
21788 fi
21789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21790  ac_ext=c
21791 ac_cpp='$CPP $CPPFLAGS'
21792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21795
21796 fi
21797 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21798 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21799  if test "$ac_cv_func_isnan_in_cmath" = "yes"
21800  then
21801
21802 cat >>confdefs.h <<\_ACEOF
21803 #define HAVE_ISNAN_IN_CMATH 1
21804 _ACEOF
21805
21806  fi
21807 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21808 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21809 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21810   echo $ECHO_N "(cached) $ECHO_C" >&6
21811 else
21812   ac_ext=cc
21813 ac_cpp='$CXXCPP $CPPFLAGS'
21814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21817
21818   cat >conftest.$ac_ext <<_ACEOF
21819 /* confdefs.h.  */
21820 _ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h.  */
21824 #include <cmath>
21825                      using std::isnan; int foo(float f) {return isnan(f);}
21826 _ACEOF
21827 rm -f conftest.$ac_objext
21828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21829   (eval $ac_compile) 2>conftest.er1
21830   ac_status=$?
21831   grep -v '^ *+' conftest.er1 >conftest.err
21832   rm -f conftest.er1
21833   cat conftest.err >&5
21834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835   (exit $ac_status); } &&
21836          { ac_try='test -z "$ac_cxx_werror_flag"
21837                          || test ! -s conftest.err'
21838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21839   (eval $ac_try) 2>&5
21840   ac_status=$?
21841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842   (exit $ac_status); }; } &&
21843          { ac_try='test -s conftest.$ac_objext'
21844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21845   (eval $ac_try) 2>&5
21846   ac_status=$?
21847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848   (exit $ac_status); }; }; then
21849   ac_cv_func_std_isnan_in_cmath=yes
21850 else
21851   echo "$as_me: failed program was:" >&5
21852 sed 's/^/| /' conftest.$ac_ext >&5
21853
21854 ac_cv_func_std_isnan_in_cmath=no
21855 fi
21856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21857  ac_ext=c
21858 ac_cpp='$CPP $CPPFLAGS'
21859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21862
21863 fi
21864 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21865 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21866  if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21867  then
21868
21869 cat >>confdefs.h <<\_ACEOF
21870 #define HAVE_STD_ISNAN_IN_CMATH 1
21871 _ACEOF
21872
21873  fi
21874
21875
21876 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21877 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21878 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21879   echo $ECHO_N "(cached) $ECHO_C" >&6
21880 else
21881   ac_ext=cc
21882 ac_cpp='$CXXCPP $CPPFLAGS'
21883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21886
21887   cat >conftest.$ac_ext <<_ACEOF
21888 /* confdefs.h.  */
21889 _ACEOF
21890 cat confdefs.h >>conftest.$ac_ext
21891 cat >>conftest.$ac_ext <<_ACEOF
21892 /* end confdefs.h.  */
21893 #include <math.h>
21894                      int foo(float f) {return isinf(f);}
21895 _ACEOF
21896 rm -f conftest.$ac_objext
21897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21898   (eval $ac_compile) 2>conftest.er1
21899   ac_status=$?
21900   grep -v '^ *+' conftest.er1 >conftest.err
21901   rm -f conftest.er1
21902   cat conftest.err >&5
21903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904   (exit $ac_status); } &&
21905          { ac_try='test -z "$ac_cxx_werror_flag"
21906                          || test ! -s conftest.err'
21907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908   (eval $ac_try) 2>&5
21909   ac_status=$?
21910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911   (exit $ac_status); }; } &&
21912          { ac_try='test -s conftest.$ac_objext'
21913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21914   (eval $ac_try) 2>&5
21915   ac_status=$?
21916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917   (exit $ac_status); }; }; then
21918   ac_cv_func_isinf_in_math_h=yes
21919 else
21920   echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21922
21923 ac_cv_func_isinf_in_math_h=no
21924 fi
21925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21926  ac_ext=c
21927 ac_cpp='$CPP $CPPFLAGS'
21928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21931
21932 fi
21933 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21934 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21935  if test "$ac_cv_func_isinf_in_math_h" = "yes"
21936  then
21937
21938 cat >>confdefs.h <<\_ACEOF
21939 #define HAVE_ISINF_IN_MATH_H 1
21940 _ACEOF
21941
21942  fi
21943 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21944 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21945 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21946   echo $ECHO_N "(cached) $ECHO_C" >&6
21947 else
21948   ac_ext=cc
21949 ac_cpp='$CXXCPP $CPPFLAGS'
21950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21953
21954   cat >conftest.$ac_ext <<_ACEOF
21955 /* confdefs.h.  */
21956 _ACEOF
21957 cat confdefs.h >>conftest.$ac_ext
21958 cat >>conftest.$ac_ext <<_ACEOF
21959 /* end confdefs.h.  */
21960 #include <cmath>
21961                      int foo(float f) {return isinf(f);}
21962 _ACEOF
21963 rm -f conftest.$ac_objext
21964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21965   (eval $ac_compile) 2>conftest.er1
21966   ac_status=$?
21967   grep -v '^ *+' conftest.er1 >conftest.err
21968   rm -f conftest.er1
21969   cat conftest.err >&5
21970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971   (exit $ac_status); } &&
21972          { ac_try='test -z "$ac_cxx_werror_flag"
21973                          || test ! -s conftest.err'
21974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975   (eval $ac_try) 2>&5
21976   ac_status=$?
21977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978   (exit $ac_status); }; } &&
21979          { ac_try='test -s conftest.$ac_objext'
21980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21981   (eval $ac_try) 2>&5
21982   ac_status=$?
21983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984   (exit $ac_status); }; }; then
21985   ac_cv_func_isinf_in_cmath=yes
21986 else
21987   echo "$as_me: failed program was:" >&5
21988 sed 's/^/| /' conftest.$ac_ext >&5
21989
21990 ac_cv_func_isinf_in_cmath=no
21991 fi
21992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21993  ac_ext=c
21994 ac_cpp='$CPP $CPPFLAGS'
21995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21998
21999 fi
22000 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22001 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22002  if test "$ac_cv_func_isinf_in_cmath" = "yes"
22003  then
22004
22005 cat >>confdefs.h <<\_ACEOF
22006 #define HAVE_ISINF_IN_CMATH 1
22007 _ACEOF
22008
22009  fi
22010 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22011 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22012 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22013   echo $ECHO_N "(cached) $ECHO_C" >&6
22014 else
22015   ac_ext=cc
22016 ac_cpp='$CXXCPP $CPPFLAGS'
22017 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22018 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22019 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22020
22021   cat >conftest.$ac_ext <<_ACEOF
22022 /* confdefs.h.  */
22023 _ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h.  */
22027 #include <cmath>
22028                      using std::isinf; int foo(float f) {return isinf(f);}
22029 _ACEOF
22030 rm -f conftest.$ac_objext
22031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22032   (eval $ac_compile) 2>conftest.er1
22033   ac_status=$?
22034   grep -v '^ *+' conftest.er1 >conftest.err
22035   rm -f conftest.er1
22036   cat conftest.err >&5
22037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038   (exit $ac_status); } &&
22039          { ac_try='test -z "$ac_cxx_werror_flag"
22040                          || test ! -s conftest.err'
22041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22042   (eval $ac_try) 2>&5
22043   ac_status=$?
22044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045   (exit $ac_status); }; } &&
22046          { ac_try='test -s conftest.$ac_objext'
22047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22048   (eval $ac_try) 2>&5
22049   ac_status=$?
22050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051   (exit $ac_status); }; }; then
22052   ac_cv_func_std_isinf_in_cmath=yes
22053 else
22054   echo "$as_me: failed program was:" >&5
22055 sed 's/^/| /' conftest.$ac_ext >&5
22056
22057 ac_cv_func_std_isinf_in_cmath=no
22058 fi
22059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22060  ac_ext=c
22061 ac_cpp='$CPP $CPPFLAGS'
22062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22065
22066 fi
22067 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22068 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22069  if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22070  then
22071
22072 cat >>confdefs.h <<\_ACEOF
22073 #define HAVE_STD_ISINF_IN_CMATH 1
22074 _ACEOF
22075
22076  fi
22077 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22078 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22079 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22080   echo $ECHO_N "(cached) $ECHO_C" >&6
22081 else
22082   ac_ext=cc
22083 ac_cpp='$CXXCPP $CPPFLAGS'
22084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22087
22088   cat >conftest.$ac_ext <<_ACEOF
22089 /* confdefs.h.  */
22090 _ACEOF
22091 cat confdefs.h >>conftest.$ac_ext
22092 cat >>conftest.$ac_ext <<_ACEOF
22093 /* end confdefs.h.  */
22094 #include <ieeefp.h>
22095                      int foo(float f) {return finite(f);}
22096 _ACEOF
22097 rm -f conftest.$ac_objext
22098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22099   (eval $ac_compile) 2>conftest.er1
22100   ac_status=$?
22101   grep -v '^ *+' conftest.er1 >conftest.err
22102   rm -f conftest.er1
22103   cat conftest.err >&5
22104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105   (exit $ac_status); } &&
22106          { ac_try='test -z "$ac_cxx_werror_flag"
22107                          || test ! -s conftest.err'
22108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22109   (eval $ac_try) 2>&5
22110   ac_status=$?
22111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112   (exit $ac_status); }; } &&
22113          { ac_try='test -s conftest.$ac_objext'
22114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22115   (eval $ac_try) 2>&5
22116   ac_status=$?
22117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118   (exit $ac_status); }; }; then
22119   ac_cv_func_finite_in_ieeefp_h=yes
22120 else
22121   echo "$as_me: failed program was:" >&5
22122 sed 's/^/| /' conftest.$ac_ext >&5
22123
22124 ac_cv_func_finite_in_ieeefp_h=no
22125 fi
22126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22127  ac_ext=c
22128 ac_cpp='$CPP $CPPFLAGS'
22129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22132
22133 fi
22134 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22135 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22136  if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22137  then
22138
22139 cat >>confdefs.h <<\_ACEOF
22140 #define HAVE_FINITE_IN_IEEEFP_H 1
22141 _ACEOF
22142
22143  fi
22144
22145
22146 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22147 # for constant arguments.  Useless!
22148 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22149 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22150 if test "${ac_cv_working_alloca_h+set}" = set; then
22151   echo $ECHO_N "(cached) $ECHO_C" >&6
22152 else
22153   cat >conftest.$ac_ext <<_ACEOF
22154 /* confdefs.h.  */
22155 _ACEOF
22156 cat confdefs.h >>conftest.$ac_ext
22157 cat >>conftest.$ac_ext <<_ACEOF
22158 /* end confdefs.h.  */
22159 #include <alloca.h>
22160 int
22161 main ()
22162 {
22163 char *p = (char *) alloca (2 * sizeof (int));
22164   ;
22165   return 0;
22166 }
22167 _ACEOF
22168 rm -f conftest.$ac_objext conftest$ac_exeext
22169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22170   (eval $ac_link) 2>conftest.er1
22171   ac_status=$?
22172   grep -v '^ *+' conftest.er1 >conftest.err
22173   rm -f conftest.er1
22174   cat conftest.err >&5
22175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176   (exit $ac_status); } &&
22177          { ac_try='test -z "$ac_c_werror_flag"
22178                          || test ! -s conftest.err'
22179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22180   (eval $ac_try) 2>&5
22181   ac_status=$?
22182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183   (exit $ac_status); }; } &&
22184          { ac_try='test -s conftest$ac_exeext'
22185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22186   (eval $ac_try) 2>&5
22187   ac_status=$?
22188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189   (exit $ac_status); }; }; then
22190   ac_cv_working_alloca_h=yes
22191 else
22192   echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22194
22195 ac_cv_working_alloca_h=no
22196 fi
22197 rm -f conftest.err conftest.$ac_objext \
22198       conftest$ac_exeext conftest.$ac_ext
22199 fi
22200 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22201 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22202 if test $ac_cv_working_alloca_h = yes; then
22203
22204 cat >>confdefs.h <<\_ACEOF
22205 #define HAVE_ALLOCA_H 1
22206 _ACEOF
22207
22208 fi
22209
22210 echo "$as_me:$LINENO: checking for alloca" >&5
22211 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22212 if test "${ac_cv_func_alloca_works+set}" = set; then
22213   echo $ECHO_N "(cached) $ECHO_C" >&6
22214 else
22215   cat >conftest.$ac_ext <<_ACEOF
22216 /* confdefs.h.  */
22217 _ACEOF
22218 cat confdefs.h >>conftest.$ac_ext
22219 cat >>conftest.$ac_ext <<_ACEOF
22220 /* end confdefs.h.  */
22221 #ifdef __GNUC__
22222 # define alloca __builtin_alloca
22223 #else
22224 # ifdef _MSC_VER
22225 #  include <malloc.h>
22226 #  define alloca _alloca
22227 # else
22228 #  if HAVE_ALLOCA_H
22229 #   include <alloca.h>
22230 #  else
22231 #   ifdef _AIX
22232  #pragma alloca
22233 #   else
22234 #    ifndef alloca /* predefined by HP cc +Olibcalls */
22235 char *alloca ();
22236 #    endif
22237 #   endif
22238 #  endif
22239 # endif
22240 #endif
22241
22242 int
22243 main ()
22244 {
22245 char *p = (char *) alloca (1);
22246   ;
22247   return 0;
22248 }
22249 _ACEOF
22250 rm -f conftest.$ac_objext conftest$ac_exeext
22251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22252   (eval $ac_link) 2>conftest.er1
22253   ac_status=$?
22254   grep -v '^ *+' conftest.er1 >conftest.err
22255   rm -f conftest.er1
22256   cat conftest.err >&5
22257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258   (exit $ac_status); } &&
22259          { ac_try='test -z "$ac_c_werror_flag"
22260                          || test ! -s conftest.err'
22261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22262   (eval $ac_try) 2>&5
22263   ac_status=$?
22264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265   (exit $ac_status); }; } &&
22266          { ac_try='test -s conftest$ac_exeext'
22267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22268   (eval $ac_try) 2>&5
22269   ac_status=$?
22270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271   (exit $ac_status); }; }; then
22272   ac_cv_func_alloca_works=yes
22273 else
22274   echo "$as_me: failed program was:" >&5
22275 sed 's/^/| /' conftest.$ac_ext >&5
22276
22277 ac_cv_func_alloca_works=no
22278 fi
22279 rm -f conftest.err conftest.$ac_objext \
22280       conftest$ac_exeext conftest.$ac_ext
22281 fi
22282 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22283 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22284
22285 if test $ac_cv_func_alloca_works = yes; then
22286
22287 cat >>confdefs.h <<\_ACEOF
22288 #define HAVE_ALLOCA 1
22289 _ACEOF
22290
22291 else
22292   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22293 # that cause trouble.  Some versions do not even contain alloca or
22294 # contain a buggy version.  If you still want to use their alloca,
22295 # use ar to extract alloca.o from them instead of compiling alloca.c.
22296
22297 ALLOCA=alloca.$ac_objext
22298
22299 cat >>confdefs.h <<\_ACEOF
22300 #define C_ALLOCA 1
22301 _ACEOF
22302
22303
22304 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22305 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22306 if test "${ac_cv_os_cray+set}" = set; then
22307   echo $ECHO_N "(cached) $ECHO_C" >&6
22308 else
22309   cat >conftest.$ac_ext <<_ACEOF
22310 /* confdefs.h.  */
22311 _ACEOF
22312 cat confdefs.h >>conftest.$ac_ext
22313 cat >>conftest.$ac_ext <<_ACEOF
22314 /* end confdefs.h.  */
22315 #if defined(CRAY) && ! defined(CRAY2)
22316 webecray
22317 #else
22318 wenotbecray
22319 #endif
22320
22321 _ACEOF
22322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22323   $EGREP "webecray" >/dev/null 2>&1; then
22324   ac_cv_os_cray=yes
22325 else
22326   ac_cv_os_cray=no
22327 fi
22328 rm -f conftest*
22329
22330 fi
22331 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22332 echo "${ECHO_T}$ac_cv_os_cray" >&6
22333 if test $ac_cv_os_cray = yes; then
22334   for ac_func in _getb67 GETB67 getb67; do
22335     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22336 echo "$as_me:$LINENO: checking for $ac_func" >&5
22337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22338 if eval "test \"\${$as_ac_var+set}\" = set"; then
22339   echo $ECHO_N "(cached) $ECHO_C" >&6
22340 else
22341   cat >conftest.$ac_ext <<_ACEOF
22342 /* confdefs.h.  */
22343 _ACEOF
22344 cat confdefs.h >>conftest.$ac_ext
22345 cat >>conftest.$ac_ext <<_ACEOF
22346 /* end confdefs.h.  */
22347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22348    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22349 #define $ac_func innocuous_$ac_func
22350
22351 /* System header to define __stub macros and hopefully few prototypes,
22352     which can conflict with char $ac_func (); below.
22353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22354     <limits.h> exists even on freestanding compilers.  */
22355
22356 #ifdef __STDC__
22357 # include <limits.h>
22358 #else
22359 # include <assert.h>
22360 #endif
22361
22362 #undef $ac_func
22363
22364 /* Override any gcc2 internal prototype to avoid an error.  */
22365 #ifdef __cplusplus
22366 extern "C"
22367 {
22368 #endif
22369 /* We use char because int might match the return type of a gcc2
22370    builtin and then its argument prototype would still apply.  */
22371 char $ac_func ();
22372 /* The GNU C library defines this for functions which it implements
22373     to always fail with ENOSYS.  Some functions are actually named
22374     something starting with __ and the normal name is an alias.  */
22375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22376 choke me
22377 #else
22378 char (*f) () = $ac_func;
22379 #endif
22380 #ifdef __cplusplus
22381 }
22382 #endif
22383
22384 int
22385 main ()
22386 {
22387 return f != $ac_func;
22388   ;
22389   return 0;
22390 }
22391 _ACEOF
22392 rm -f conftest.$ac_objext conftest$ac_exeext
22393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22394   (eval $ac_link) 2>conftest.er1
22395   ac_status=$?
22396   grep -v '^ *+' conftest.er1 >conftest.err
22397   rm -f conftest.er1
22398   cat conftest.err >&5
22399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400   (exit $ac_status); } &&
22401          { ac_try='test -z "$ac_c_werror_flag"
22402                          || test ! -s conftest.err'
22403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22404   (eval $ac_try) 2>&5
22405   ac_status=$?
22406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407   (exit $ac_status); }; } &&
22408          { ac_try='test -s conftest$ac_exeext'
22409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22410   (eval $ac_try) 2>&5
22411   ac_status=$?
22412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413   (exit $ac_status); }; }; then
22414   eval "$as_ac_var=yes"
22415 else
22416   echo "$as_me: failed program was:" >&5
22417 sed 's/^/| /' conftest.$ac_ext >&5
22418
22419 eval "$as_ac_var=no"
22420 fi
22421 rm -f conftest.err conftest.$ac_objext \
22422       conftest$ac_exeext conftest.$ac_ext
22423 fi
22424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22425 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22426 if test `eval echo '${'$as_ac_var'}'` = yes; then
22427
22428 cat >>confdefs.h <<_ACEOF
22429 #define CRAY_STACKSEG_END $ac_func
22430 _ACEOF
22431
22432     break
22433 fi
22434
22435   done
22436 fi
22437
22438 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22439 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22440 if test "${ac_cv_c_stack_direction+set}" = set; then
22441   echo $ECHO_N "(cached) $ECHO_C" >&6
22442 else
22443   if test "$cross_compiling" = yes; then
22444   ac_cv_c_stack_direction=0
22445 else
22446   cat >conftest.$ac_ext <<_ACEOF
22447 /* confdefs.h.  */
22448 _ACEOF
22449 cat confdefs.h >>conftest.$ac_ext
22450 cat >>conftest.$ac_ext <<_ACEOF
22451 /* end confdefs.h.  */
22452 int
22453 find_stack_direction ()
22454 {
22455   static char *addr = 0;
22456   auto char dummy;
22457   if (addr == 0)
22458     {
22459       addr = &dummy;
22460       return find_stack_direction ();
22461     }
22462   else
22463     return (&dummy > addr) ? 1 : -1;
22464 }
22465
22466 int
22467 main ()
22468 {
22469   exit (find_stack_direction () < 0);
22470 }
22471 _ACEOF
22472 rm -f conftest$ac_exeext
22473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22474   (eval $ac_link) 2>&5
22475   ac_status=$?
22476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22479   (eval $ac_try) 2>&5
22480   ac_status=$?
22481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482   (exit $ac_status); }; }; then
22483   ac_cv_c_stack_direction=1
22484 else
22485   echo "$as_me: program exited with status $ac_status" >&5
22486 echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22488
22489 ( exit $ac_status )
22490 ac_cv_c_stack_direction=-1
22491 fi
22492 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22493 fi
22494 fi
22495 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22496 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22497
22498 cat >>confdefs.h <<_ACEOF
22499 #define STACK_DIRECTION $ac_cv_c_stack_direction
22500 _ACEOF
22501
22502
22503 fi
22504
22505
22506
22507 for ac_header in stdlib.h unistd.h
22508 do
22509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22511   echo "$as_me:$LINENO: checking for $ac_header" >&5
22512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22514   echo $ECHO_N "(cached) $ECHO_C" >&6
22515 fi
22516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22518 else
22519   # Is the header compilable?
22520 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22522 cat >conftest.$ac_ext <<_ACEOF
22523 /* confdefs.h.  */
22524 _ACEOF
22525 cat confdefs.h >>conftest.$ac_ext
22526 cat >>conftest.$ac_ext <<_ACEOF
22527 /* end confdefs.h.  */
22528 $ac_includes_default
22529 #include <$ac_header>
22530 _ACEOF
22531 rm -f conftest.$ac_objext
22532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22533   (eval $ac_compile) 2>conftest.er1
22534   ac_status=$?
22535   grep -v '^ *+' conftest.er1 >conftest.err
22536   rm -f conftest.er1
22537   cat conftest.err >&5
22538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539   (exit $ac_status); } &&
22540          { ac_try='test -z "$ac_c_werror_flag"
22541                          || test ! -s conftest.err'
22542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22543   (eval $ac_try) 2>&5
22544   ac_status=$?
22545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546   (exit $ac_status); }; } &&
22547          { ac_try='test -s conftest.$ac_objext'
22548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22549   (eval $ac_try) 2>&5
22550   ac_status=$?
22551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552   (exit $ac_status); }; }; then
22553   ac_header_compiler=yes
22554 else
22555   echo "$as_me: failed program was:" >&5
22556 sed 's/^/| /' conftest.$ac_ext >&5
22557
22558 ac_header_compiler=no
22559 fi
22560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22561 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22562 echo "${ECHO_T}$ac_header_compiler" >&6
22563
22564 # Is the header present?
22565 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22567 cat >conftest.$ac_ext <<_ACEOF
22568 /* confdefs.h.  */
22569 _ACEOF
22570 cat confdefs.h >>conftest.$ac_ext
22571 cat >>conftest.$ac_ext <<_ACEOF
22572 /* end confdefs.h.  */
22573 #include <$ac_header>
22574 _ACEOF
22575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22576   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22577   ac_status=$?
22578   grep -v '^ *+' conftest.er1 >conftest.err
22579   rm -f conftest.er1
22580   cat conftest.err >&5
22581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582   (exit $ac_status); } >/dev/null; then
22583   if test -s conftest.err; then
22584     ac_cpp_err=$ac_c_preproc_warn_flag
22585     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22586   else
22587     ac_cpp_err=
22588   fi
22589 else
22590   ac_cpp_err=yes
22591 fi
22592 if test -z "$ac_cpp_err"; then
22593   ac_header_preproc=yes
22594 else
22595   echo "$as_me: failed program was:" >&5
22596 sed 's/^/| /' conftest.$ac_ext >&5
22597
22598   ac_header_preproc=no
22599 fi
22600 rm -f conftest.err conftest.$ac_ext
22601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22602 echo "${ECHO_T}$ac_header_preproc" >&6
22603
22604 # So?  What about this header?
22605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22606   yes:no: )
22607     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22609     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22611     ac_header_preproc=yes
22612     ;;
22613   no:yes:* )
22614     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22616     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22617 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22618     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22619 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22620     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22621 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22622     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22624     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22625 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22626     (
22627       cat <<\_ASBOX
22628 ## ----------------------------------- ##
22629 ## Report this to llvmbugs@cs.uiuc.edu ##
22630 ## ----------------------------------- ##
22631 _ASBOX
22632     ) |
22633       sed "s/^/$as_me: WARNING:     /" >&2
22634     ;;
22635 esac
22636 echo "$as_me:$LINENO: checking for $ac_header" >&5
22637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22639   echo $ECHO_N "(cached) $ECHO_C" >&6
22640 else
22641   eval "$as_ac_Header=\$ac_header_preproc"
22642 fi
22643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22645
22646 fi
22647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22648   cat >>confdefs.h <<_ACEOF
22649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22650 _ACEOF
22651
22652 fi
22653
22654 done
22655
22656
22657 for ac_func in getpagesize
22658 do
22659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22660 echo "$as_me:$LINENO: checking for $ac_func" >&5
22661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22662 if eval "test \"\${$as_ac_var+set}\" = set"; then
22663   echo $ECHO_N "(cached) $ECHO_C" >&6
22664 else
22665   cat >conftest.$ac_ext <<_ACEOF
22666 /* confdefs.h.  */
22667 _ACEOF
22668 cat confdefs.h >>conftest.$ac_ext
22669 cat >>conftest.$ac_ext <<_ACEOF
22670 /* end confdefs.h.  */
22671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22672    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22673 #define $ac_func innocuous_$ac_func
22674
22675 /* System header to define __stub macros and hopefully few prototypes,
22676     which can conflict with char $ac_func (); below.
22677     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22678     <limits.h> exists even on freestanding compilers.  */
22679
22680 #ifdef __STDC__
22681 # include <limits.h>
22682 #else
22683 # include <assert.h>
22684 #endif
22685
22686 #undef $ac_func
22687
22688 /* Override any gcc2 internal prototype to avoid an error.  */
22689 #ifdef __cplusplus
22690 extern "C"
22691 {
22692 #endif
22693 /* We use char because int might match the return type of a gcc2
22694    builtin and then its argument prototype would still apply.  */
22695 char $ac_func ();
22696 /* The GNU C library defines this for functions which it implements
22697     to always fail with ENOSYS.  Some functions are actually named
22698     something starting with __ and the normal name is an alias.  */
22699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22700 choke me
22701 #else
22702 char (*f) () = $ac_func;
22703 #endif
22704 #ifdef __cplusplus
22705 }
22706 #endif
22707
22708 int
22709 main ()
22710 {
22711 return f != $ac_func;
22712   ;
22713   return 0;
22714 }
22715 _ACEOF
22716 rm -f conftest.$ac_objext conftest$ac_exeext
22717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22718   (eval $ac_link) 2>conftest.er1
22719   ac_status=$?
22720   grep -v '^ *+' conftest.er1 >conftest.err
22721   rm -f conftest.er1
22722   cat conftest.err >&5
22723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724   (exit $ac_status); } &&
22725          { ac_try='test -z "$ac_c_werror_flag"
22726                          || test ! -s conftest.err'
22727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22728   (eval $ac_try) 2>&5
22729   ac_status=$?
22730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731   (exit $ac_status); }; } &&
22732          { ac_try='test -s conftest$ac_exeext'
22733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734   (eval $ac_try) 2>&5
22735   ac_status=$?
22736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737   (exit $ac_status); }; }; then
22738   eval "$as_ac_var=yes"
22739 else
22740   echo "$as_me: failed program was:" >&5
22741 sed 's/^/| /' conftest.$ac_ext >&5
22742
22743 eval "$as_ac_var=no"
22744 fi
22745 rm -f conftest.err conftest.$ac_objext \
22746       conftest$ac_exeext conftest.$ac_ext
22747 fi
22748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22749 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22750 if test `eval echo '${'$as_ac_var'}'` = yes; then
22751   cat >>confdefs.h <<_ACEOF
22752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22753 _ACEOF
22754
22755 fi
22756 done
22757
22758 echo "$as_me:$LINENO: checking for working mmap" >&5
22759 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22760 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22761   echo $ECHO_N "(cached) $ECHO_C" >&6
22762 else
22763   if test "$cross_compiling" = yes; then
22764   ac_cv_func_mmap_fixed_mapped=no
22765 else
22766   cat >conftest.$ac_ext <<_ACEOF
22767 /* confdefs.h.  */
22768 _ACEOF
22769 cat confdefs.h >>conftest.$ac_ext
22770 cat >>conftest.$ac_ext <<_ACEOF
22771 /* end confdefs.h.  */
22772 $ac_includes_default
22773 /* malloc might have been renamed as rpl_malloc. */
22774 #undef malloc
22775
22776 /* Thanks to Mike Haertel and Jim Avera for this test.
22777    Here is a matrix of mmap possibilities:
22778         mmap private not fixed
22779         mmap private fixed at somewhere currently unmapped
22780         mmap private fixed at somewhere already mapped
22781         mmap shared not fixed
22782         mmap shared fixed at somewhere currently unmapped
22783         mmap shared fixed at somewhere already mapped
22784    For private mappings, we should verify that changes cannot be read()
22785    back from the file, nor mmap's back from the file at a different
22786    address.  (There have been systems where private was not correctly
22787    implemented like the infamous i386 svr4.0, and systems where the
22788    VM page cache was not coherent with the file system buffer cache
22789    like early versions of FreeBSD and possibly contemporary NetBSD.)
22790    For shared mappings, we should conversely verify that changes get
22791    propagated back to all the places they're supposed to be.
22792
22793    Grep wants private fixed already mapped.
22794    The main things grep needs to know about mmap are:
22795    * does it exist and is it safe to write into the mmap'd area
22796    * how to use it (BSD variants)  */
22797
22798 #include <fcntl.h>
22799 #include <sys/mman.h>
22800
22801 #if !STDC_HEADERS && !HAVE_STDLIB_H
22802 char *malloc ();
22803 #endif
22804
22805 /* This mess was copied from the GNU getpagesize.h.  */
22806 #if !HAVE_GETPAGESIZE
22807 /* Assume that all systems that can run configure have sys/param.h.  */
22808 # if !HAVE_SYS_PARAM_H
22809 #  define HAVE_SYS_PARAM_H 1
22810 # endif
22811
22812 # ifdef _SC_PAGESIZE
22813 #  define getpagesize() sysconf(_SC_PAGESIZE)
22814 # else /* no _SC_PAGESIZE */
22815 #  if HAVE_SYS_PARAM_H
22816 #   include <sys/param.h>
22817 #   ifdef EXEC_PAGESIZE
22818 #    define getpagesize() EXEC_PAGESIZE
22819 #   else /* no EXEC_PAGESIZE */
22820 #    ifdef NBPG
22821 #     define getpagesize() NBPG * CLSIZE
22822 #     ifndef CLSIZE
22823 #      define CLSIZE 1
22824 #     endif /* no CLSIZE */
22825 #    else /* no NBPG */
22826 #     ifdef NBPC
22827 #      define getpagesize() NBPC
22828 #     else /* no NBPC */
22829 #      ifdef PAGESIZE
22830 #       define getpagesize() PAGESIZE
22831 #      endif /* PAGESIZE */
22832 #     endif /* no NBPC */
22833 #    endif /* no NBPG */
22834 #   endif /* no EXEC_PAGESIZE */
22835 #  else /* no HAVE_SYS_PARAM_H */
22836 #   define getpagesize() 8192   /* punt totally */
22837 #  endif /* no HAVE_SYS_PARAM_H */
22838 # endif /* no _SC_PAGESIZE */
22839
22840 #endif /* no HAVE_GETPAGESIZE */
22841
22842 int
22843 main ()
22844 {
22845   char *data, *data2, *data3;
22846   int i, pagesize;
22847   int fd;
22848
22849   pagesize = getpagesize ();
22850
22851   /* First, make a file with some known garbage in it. */
22852   data = (char *) malloc (pagesize);
22853   if (!data)
22854     exit (1);
22855   for (i = 0; i < pagesize; ++i)
22856     *(data + i) = rand ();
22857   umask (0);
22858   fd = creat ("conftest.mmap", 0600);
22859   if (fd < 0)
22860     exit (1);
22861   if (write (fd, data, pagesize) != pagesize)
22862     exit (1);
22863   close (fd);
22864
22865   /* Next, try to mmap the file at a fixed address which already has
22866      something else allocated at it.  If we can, also make sure that
22867      we see the same garbage.  */
22868   fd = open ("conftest.mmap", O_RDWR);
22869   if (fd < 0)
22870     exit (1);
22871   data2 = (char *) malloc (2 * pagesize);
22872   if (!data2)
22873     exit (1);
22874   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22875   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22876                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22877     exit (1);
22878   for (i = 0; i < pagesize; ++i)
22879     if (*(data + i) != *(data2 + i))
22880       exit (1);
22881
22882   /* Finally, make sure that changes to the mapped area do not
22883      percolate back to the file as seen by read().  (This is a bug on
22884      some variants of i386 svr4.0.)  */
22885   for (i = 0; i < pagesize; ++i)
22886     *(data2 + i) = *(data2 + i) + 1;
22887   data3 = (char *) malloc (pagesize);
22888   if (!data3)
22889     exit (1);
22890   if (read (fd, data3, pagesize) != pagesize)
22891     exit (1);
22892   for (i = 0; i < pagesize; ++i)
22893     if (*(data + i) != *(data3 + i))
22894       exit (1);
22895   close (fd);
22896   exit (0);
22897 }
22898 _ACEOF
22899 rm -f conftest$ac_exeext
22900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22901   (eval $ac_link) 2>&5
22902   ac_status=$?
22903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22906   (eval $ac_try) 2>&5
22907   ac_status=$?
22908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909   (exit $ac_status); }; }; then
22910   ac_cv_func_mmap_fixed_mapped=yes
22911 else
22912   echo "$as_me: program exited with status $ac_status" >&5
22913 echo "$as_me: failed program was:" >&5
22914 sed 's/^/| /' conftest.$ac_ext >&5
22915
22916 ( exit $ac_status )
22917 ac_cv_func_mmap_fixed_mapped=no
22918 fi
22919 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22920 fi
22921 fi
22922 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22923 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22924 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22925
22926 cat >>confdefs.h <<\_ACEOF
22927 #define HAVE_MMAP 1
22928 _ACEOF
22929
22930 fi
22931 rm -f conftest.mmap
22932
22933 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22934 then
22935         { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
22936 echo "$as_me: WARNING: mmap() required but not found" >&2;}
22937 fi
22938 echo "$as_me:$LINENO: checking for mmap of files" >&5
22939 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22940 if test "${ac_cv_func_mmap_file+set}" = set; then
22941   echo $ECHO_N "(cached) $ECHO_C" >&6
22942 else
22943
22944
22945   ac_ext=c
22946 ac_cpp='$CPP $CPPFLAGS'
22947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22950
22951   if test "$cross_compiling" = yes; then
22952   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22953 See \`config.log' for more details." >&5
22954 echo "$as_me: error: cannot run test program while cross compiling
22955 See \`config.log' for more details." >&2;}
22956    { (exit 1); exit 1; }; }
22957 else
22958   cat >conftest.$ac_ext <<_ACEOF
22959 /* confdefs.h.  */
22960 _ACEOF
22961 cat confdefs.h >>conftest.$ac_ext
22962 cat >>conftest.$ac_ext <<_ACEOF
22963 /* end confdefs.h.  */
22964
22965 #ifdef HAVE_SYS_TYPES_H
22966 #include <sys/types.h>
22967 #endif
22968
22969 #ifdef HAVE_SYS_MMAN_H
22970 #include <sys/mman.h>
22971 #endif
22972
22973 #ifdef HAVE_FCNTL_H
22974 #include <fcntl.h>
22975 #endif
22976
22977   int fd;
22978   int main () {
22979   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22980 _ACEOF
22981 rm -f conftest$ac_exeext
22982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22983   (eval $ac_link) 2>&5
22984   ac_status=$?
22985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22988   (eval $ac_try) 2>&5
22989   ac_status=$?
22990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991   (exit $ac_status); }; }; then
22992   ac_cv_func_mmap_file=yes
22993 else
22994   echo "$as_me: program exited with status $ac_status" >&5
22995 echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22997
22998 ( exit $ac_status )
22999 ac_cv_func_mmap_file=no
23000 fi
23001 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23002 fi
23003   ac_ext=c
23004 ac_cpp='$CPP $CPPFLAGS'
23005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23008
23009
23010 fi
23011 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23012 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23013 if test "$ac_cv_func_mmap_file" = yes; then
23014
23015 cat >>confdefs.h <<\_ACEOF
23016 #define HAVE_MMAP_FILE
23017 _ACEOF
23018
23019    MMAP_FILE=yes
23020
23021 fi
23022
23023 if test "$ac_cv_func_mmap_file" = "no"
23024 then
23025         { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23026 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23027 fi
23028 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23029 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23030 if test "${ac_cv_header_mmap_anon+set}" = set; then
23031   echo $ECHO_N "(cached) $ECHO_C" >&6
23032 else
23033
23034
23035   ac_ext=c
23036 ac_cpp='$CPP $CPPFLAGS'
23037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23040
23041   cat >conftest.$ac_ext <<_ACEOF
23042 /* confdefs.h.  */
23043 _ACEOF
23044 cat confdefs.h >>conftest.$ac_ext
23045 cat >>conftest.$ac_ext <<_ACEOF
23046 /* end confdefs.h.  */
23047 #include <sys/mman.h>
23048   #include <unistd.h>
23049   #include <fcntl.h>
23050 int
23051 main ()
23052 {
23053 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23054   ;
23055   return 0;
23056 }
23057 _ACEOF
23058 rm -f conftest.$ac_objext
23059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23060   (eval $ac_compile) 2>conftest.er1
23061   ac_status=$?
23062   grep -v '^ *+' conftest.er1 >conftest.err
23063   rm -f conftest.er1
23064   cat conftest.err >&5
23065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066   (exit $ac_status); } &&
23067          { ac_try='test -z "$ac_c_werror_flag"
23068                          || test ! -s conftest.err'
23069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23070   (eval $ac_try) 2>&5
23071   ac_status=$?
23072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073   (exit $ac_status); }; } &&
23074          { ac_try='test -s conftest.$ac_objext'
23075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23076   (eval $ac_try) 2>&5
23077   ac_status=$?
23078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079   (exit $ac_status); }; }; then
23080   ac_cv_header_mmap_anon=yes
23081 else
23082   echo "$as_me: failed program was:" >&5
23083 sed 's/^/| /' conftest.$ac_ext >&5
23084
23085 ac_cv_header_mmap_anon=no
23086 fi
23087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23088   ac_ext=c
23089 ac_cpp='$CPP $CPPFLAGS'
23090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23093
23094
23095 fi
23096 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23097 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23098 if test "$ac_cv_header_mmap_anon" = yes; then
23099
23100 cat >>confdefs.h <<\_ACEOF
23101 #define HAVE_MMAP_ANONYMOUS
23102 _ACEOF
23103
23104 fi
23105
23106 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23107 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23108 if test "${ac_cv_type_signal+set}" = set; then
23109   echo $ECHO_N "(cached) $ECHO_C" >&6
23110 else
23111   cat >conftest.$ac_ext <<_ACEOF
23112 /* confdefs.h.  */
23113 _ACEOF
23114 cat confdefs.h >>conftest.$ac_ext
23115 cat >>conftest.$ac_ext <<_ACEOF
23116 /* end confdefs.h.  */
23117 #include <sys/types.h>
23118 #include <signal.h>
23119 #ifdef signal
23120 # undef signal
23121 #endif
23122 #ifdef __cplusplus
23123 extern "C" void (*signal (int, void (*)(int)))(int);
23124 #else
23125 void (*signal ()) ();
23126 #endif
23127
23128 int
23129 main ()
23130 {
23131 int i;
23132   ;
23133   return 0;
23134 }
23135 _ACEOF
23136 rm -f conftest.$ac_objext
23137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23138   (eval $ac_compile) 2>conftest.er1
23139   ac_status=$?
23140   grep -v '^ *+' conftest.er1 >conftest.err
23141   rm -f conftest.er1
23142   cat conftest.err >&5
23143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144   (exit $ac_status); } &&
23145          { ac_try='test -z "$ac_c_werror_flag"
23146                          || test ! -s conftest.err'
23147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23148   (eval $ac_try) 2>&5
23149   ac_status=$?
23150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151   (exit $ac_status); }; } &&
23152          { ac_try='test -s conftest.$ac_objext'
23153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23154   (eval $ac_try) 2>&5
23155   ac_status=$?
23156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157   (exit $ac_status); }; }; then
23158   ac_cv_type_signal=void
23159 else
23160   echo "$as_me: failed program was:" >&5
23161 sed 's/^/| /' conftest.$ac_ext >&5
23162
23163 ac_cv_type_signal=int
23164 fi
23165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23166 fi
23167 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23168 echo "${ECHO_T}$ac_cv_type_signal" >&6
23169
23170 cat >>confdefs.h <<_ACEOF
23171 #define RETSIGTYPE $ac_cv_type_signal
23172 _ACEOF
23173
23174
23175
23176
23177
23178
23179
23180
23181
23182
23183
23184 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
23185 do
23186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23187 echo "$as_me:$LINENO: checking for $ac_func" >&5
23188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23189 if eval "test \"\${$as_ac_var+set}\" = set"; then
23190   echo $ECHO_N "(cached) $ECHO_C" >&6
23191 else
23192   cat >conftest.$ac_ext <<_ACEOF
23193 /* confdefs.h.  */
23194 _ACEOF
23195 cat confdefs.h >>conftest.$ac_ext
23196 cat >>conftest.$ac_ext <<_ACEOF
23197 /* end confdefs.h.  */
23198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23199    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23200 #define $ac_func innocuous_$ac_func
23201
23202 /* System header to define __stub macros and hopefully few prototypes,
23203     which can conflict with char $ac_func (); below.
23204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23205     <limits.h> exists even on freestanding compilers.  */
23206
23207 #ifdef __STDC__
23208 # include <limits.h>
23209 #else
23210 # include <assert.h>
23211 #endif
23212
23213 #undef $ac_func
23214
23215 /* Override any gcc2 internal prototype to avoid an error.  */
23216 #ifdef __cplusplus
23217 extern "C"
23218 {
23219 #endif
23220 /* We use char because int might match the return type of a gcc2
23221    builtin and then its argument prototype would still apply.  */
23222 char $ac_func ();
23223 /* The GNU C library defines this for functions which it implements
23224     to always fail with ENOSYS.  Some functions are actually named
23225     something starting with __ and the normal name is an alias.  */
23226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23227 choke me
23228 #else
23229 char (*f) () = $ac_func;
23230 #endif
23231 #ifdef __cplusplus
23232 }
23233 #endif
23234
23235 int
23236 main ()
23237 {
23238 return f != $ac_func;
23239   ;
23240   return 0;
23241 }
23242 _ACEOF
23243 rm -f conftest.$ac_objext conftest$ac_exeext
23244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23245   (eval $ac_link) 2>conftest.er1
23246   ac_status=$?
23247   grep -v '^ *+' conftest.er1 >conftest.err
23248   rm -f conftest.er1
23249   cat conftest.err >&5
23250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251   (exit $ac_status); } &&
23252          { ac_try='test -z "$ac_c_werror_flag"
23253                          || test ! -s conftest.err'
23254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23255   (eval $ac_try) 2>&5
23256   ac_status=$?
23257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258   (exit $ac_status); }; } &&
23259          { ac_try='test -s conftest$ac_exeext'
23260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23261   (eval $ac_try) 2>&5
23262   ac_status=$?
23263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264   (exit $ac_status); }; }; then
23265   eval "$as_ac_var=yes"
23266 else
23267   echo "$as_me: failed program was:" >&5
23268 sed 's/^/| /' conftest.$ac_ext >&5
23269
23270 eval "$as_ac_var=no"
23271 fi
23272 rm -f conftest.err conftest.$ac_objext \
23273       conftest$ac_exeext conftest.$ac_ext
23274 fi
23275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23277 if test `eval echo '${'$as_ac_var'}'` = yes; then
23278   cat >>confdefs.h <<_ACEOF
23279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23280 _ACEOF
23281
23282 fi
23283 done
23284
23285 echo "$as_me:$LINENO: checking for mprotect" >&5
23286 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23287 if test "${ac_cv_func_mprotect+set}" = set; then
23288   echo $ECHO_N "(cached) $ECHO_C" >&6
23289 else
23290   cat >conftest.$ac_ext <<_ACEOF
23291 /* confdefs.h.  */
23292 _ACEOF
23293 cat confdefs.h >>conftest.$ac_ext
23294 cat >>conftest.$ac_ext <<_ACEOF
23295 /* end confdefs.h.  */
23296 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23298 #define mprotect innocuous_mprotect
23299
23300 /* System header to define __stub macros and hopefully few prototypes,
23301     which can conflict with char mprotect (); below.
23302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23303     <limits.h> exists even on freestanding compilers.  */
23304
23305 #ifdef __STDC__
23306 # include <limits.h>
23307 #else
23308 # include <assert.h>
23309 #endif
23310
23311 #undef mprotect
23312
23313 /* Override any gcc2 internal prototype to avoid an error.  */
23314 #ifdef __cplusplus
23315 extern "C"
23316 {
23317 #endif
23318 /* We use char because int might match the return type of a gcc2
23319    builtin and then its argument prototype would still apply.  */
23320 char mprotect ();
23321 /* The GNU C library defines this for functions which it implements
23322     to always fail with ENOSYS.  Some functions are actually named
23323     something starting with __ and the normal name is an alias.  */
23324 #if defined (__stub_mprotect) || defined (__stub___mprotect)
23325 choke me
23326 #else
23327 char (*f) () = mprotect;
23328 #endif
23329 #ifdef __cplusplus
23330 }
23331 #endif
23332
23333 int
23334 main ()
23335 {
23336 return f != mprotect;
23337   ;
23338   return 0;
23339 }
23340 _ACEOF
23341 rm -f conftest.$ac_objext conftest$ac_exeext
23342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23343   (eval $ac_link) 2>conftest.er1
23344   ac_status=$?
23345   grep -v '^ *+' conftest.er1 >conftest.err
23346   rm -f conftest.er1
23347   cat conftest.err >&5
23348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349   (exit $ac_status); } &&
23350          { ac_try='test -z "$ac_c_werror_flag"
23351                          || test ! -s conftest.err'
23352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353   (eval $ac_try) 2>&5
23354   ac_status=$?
23355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356   (exit $ac_status); }; } &&
23357          { ac_try='test -s conftest$ac_exeext'
23358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23359   (eval $ac_try) 2>&5
23360   ac_status=$?
23361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362   (exit $ac_status); }; }; then
23363   ac_cv_func_mprotect=yes
23364 else
23365   echo "$as_me: failed program was:" >&5
23366 sed 's/^/| /' conftest.$ac_ext >&5
23367
23368 ac_cv_func_mprotect=no
23369 fi
23370 rm -f conftest.err conftest.$ac_objext \
23371       conftest$ac_exeext conftest.$ac_ext
23372 fi
23373 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23374 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23375 if test $ac_cv_func_mprotect = yes; then
23376   :
23377 else
23378   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23379 echo "$as_me: error: Function mprotect() required but not found" >&2;}
23380    { (exit 1); exit 1; }; }
23381 fi
23382
23383
23384
23385   echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23386 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
23387
23388
23389   ac_ext=c
23390 ac_cpp='$CPP $CPPFLAGS'
23391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23394
23395   oldcflags="$CFLAGS"
23396   CFLAGS="$CFLAGS -Wl,-R."
23397   cat >conftest.$ac_ext <<_ACEOF
23398 int main() { return 0; }
23399 _ACEOF
23400 rm -f conftest.$ac_objext conftest$ac_exeext
23401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23402   (eval $ac_link) 2>conftest.er1
23403   ac_status=$?
23404   grep -v '^ *+' conftest.er1 >conftest.err
23405   rm -f conftest.er1
23406   cat conftest.err >&5
23407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408   (exit $ac_status); } &&
23409          { ac_try='test -z "$ac_c_werror_flag"
23410                          || test ! -s conftest.err'
23411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23412   (eval $ac_try) 2>&5
23413   ac_status=$?
23414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23415   (exit $ac_status); }; } &&
23416          { ac_try='test -s conftest$ac_exeext'
23417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23418   (eval $ac_try) 2>&5
23419   ac_status=$?
23420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421   (exit $ac_status); }; }; then
23422   ac_cv_link_use_r=yes
23423 else
23424   echo "$as_me: failed program was:" >&5
23425 sed 's/^/| /' conftest.$ac_ext >&5
23426
23427 ac_cv_link_use_r=no
23428 fi
23429 rm -f conftest.err conftest.$ac_objext \
23430       conftest$ac_exeext conftest.$ac_ext
23431   CFLAGS="$oldcflags"
23432   ac_ext=c
23433 ac_cpp='$CPP $CPPFLAGS'
23434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23437
23438   echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23439 echo "${ECHO_T}$ac_cv_link_use_r" >&6
23440   if test "$ac_cv_link_use_r" = yes
23441   then
23442
23443 cat >>confdefs.h <<\_ACEOF
23444 #define HAVE_LINK_R 1
23445 _ACEOF
23446
23447   fi
23448
23449
23450 # Check whether --enable-optimized or --disable-optimized was given.
23451 if test "${enable_optimized+set}" = set; then
23452   enableval="$enable_optimized"
23453
23454 else
23455   enableval=no
23456 fi;
23457 if test ${enableval} = "no"
23458 then
23459         ENABLE_OPTIMIZED=
23460
23461 else
23462         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23463
23464 fi
23465
23466
23467
23468
23469  # Check whether --enable-spec95 or --disable-spec95 was given.
23470 if test "${enable_spec95+set}" = set; then
23471   enableval="$enable_spec95"
23472   checkresult=$enableval
23473 else
23474   checkresult=auto
23475 fi;
23476 echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
23477 echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
23478 case "$checkresult" in
23479 auto|yes)
23480     defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
23481         if test -d "$defaultdir"
23482         then
23483                 SPEC95_ROOT=$defaultdir
23484
23485                 USE_SPEC95=USE_SPEC95=1
23486
23487         checkresult="yes, found in $defaultdir"
23488     else
23489         checkresult=no
23490     fi
23491     ;;
23492 no)
23493
23494
23495     checkresult=no
23496     ;;
23497 *)  if test -d "$checkresult"
23498     then
23499         SPEC95_ROOT="$checkresult"
23500
23501         USE_SPEC95=USE_SPEC95=1
23502
23503         checkresult="yes, in $checkresult"
23504     else
23505
23506
23507         checkresult="no, not found in $checkresult"
23508     fi
23509     ;;
23510 esac
23511 echo "$as_me:$LINENO: result: $checkresult" >&5
23512 echo "${ECHO_T}$checkresult" >&6
23513
23514
23515
23516  # Check whether --enable-spec2000 or --disable-spec2000 was given.
23517 if test "${enable_spec2000+set}" = set; then
23518   enableval="$enable_spec2000"
23519   checkresult=$enableval
23520 else
23521   checkresult=auto
23522 fi;
23523 echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
23524 echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
23525 case "$checkresult" in
23526 auto|yes)
23527     defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23528         if test -d "$defaultdir"
23529         then
23530                 SPEC2000_ROOT=$defaultdir
23531
23532                 USE_SPEC2000=USE_SPEC2000=1
23533
23534         checkresult="yes, found in $defaultdir"
23535     else
23536         checkresult=no
23537     fi
23538     ;;
23539 no)
23540
23541
23542     checkresult=no
23543     ;;
23544 *)  if test -d "$checkresult"
23545     then
23546         SPEC2000_ROOT="$checkresult"
23547
23548         USE_SPEC2000=USE_SPEC2000=1
23549
23550         checkresult="yes, in $checkresult"
23551     else
23552
23553
23554         checkresult="no, not found in $checkresult"
23555     fi
23556     ;;
23557 esac
23558 echo "$as_me:$LINENO: result: $checkresult" >&5
23559 echo "${ECHO_T}$checkresult" >&6
23560
23561
23562
23563  # Check whether --enable-povray or --disable-povray was given.
23564 if test "${enable_povray+set}" = set; then
23565   enableval="$enable_povray"
23566   checkresult=$enableval
23567 else
23568   checkresult=auto
23569 fi;
23570 echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
23571 echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
23572 case "$checkresult" in
23573 auto|yes)
23574     defaultdir=/home/vadve/shared/benchmarks/povray31
23575         if test -d "$defaultdir"
23576         then
23577                 POVRAY_ROOT=$defaultdir
23578
23579                 USE_POVRAY=USE_POVRAY=1
23580
23581         checkresult="yes, found in $defaultdir"
23582     else
23583         checkresult=no
23584     fi
23585     ;;
23586 no)
23587
23588
23589     checkresult=no
23590     ;;
23591 *)  if test -d "$checkresult"
23592     then
23593         POVRAY_ROOT="$checkresult"
23594
23595         USE_POVRAY=USE_POVRAY=1
23596
23597         checkresult="yes, in $checkresult"
23598     else
23599
23600
23601         checkresult="no, not found in $checkresult"
23602     fi
23603     ;;
23604 esac
23605 echo "$as_me:$LINENO: result: $checkresult" >&5
23606 echo "${ECHO_T}$checkresult" >&6
23607
23608
23609
23610 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
23611 if test "${enable_precompiled_bytecode+set}" = set; then
23612   enableval="$enable_precompiled_bytecode"
23613
23614 else
23615   enableval=no
23616 fi;
23617 if test ${enableval} = "no"
23618 then
23619         UPB=
23620
23621 else
23622         UPB=USE_PRECOMPILED_BYTECODE=1
23623
23624 fi
23625
23626 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
23627 if test "${enable_llc_diffs+set}" = set; then
23628   enableval="$enable_llc_diffs"
23629
23630 else
23631   enableval=yes
23632 fi;
23633 if test ${enableval} = "no"
23634 then
23635         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
23636
23637 else
23638         DISABLE_LLC_DIFFS=
23639
23640 fi
23641
23642 # Check whether --enable-jit or --disable-jit was given.
23643 if test "${enable_jit+set}" = set; then
23644   enableval="$enable_jit"
23645
23646 else
23647   enableval=default
23648 fi;
23649 if test ${enableval} = "no"
23650 then
23651         JIT=
23652
23653 else
23654         case $target in
23655                 *i*86*)
23656                         JIT=TARGET_HAS_JIT=1
23657
23658                         ;;
23659                 *sparc*)
23660                         JIT=TARGET_HAS_JIT=1
23661
23662                         ;;
23663                 *)
23664                         JIT=
23665
23666                         ;;
23667         esac
23668 fi
23669
23670
23671 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23672 if test "${with_llvmgccdir+set}" = set; then
23673   withval="$with_llvmgccdir"
23674   LLVMGCCDIR=$withval
23675
23676 fi;
23677 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23678 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23679 LLVM_GCC_CHECK=no
23680 if test -d "$LLVMGCCDIR"
23681 then
23682         if test -x "$LLVMGCCDIR/bin/gcc"
23683         then
23684                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23685         fi
23686 fi
23687 llvmgccwarn=no
23688 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23689 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23690 if test "$LLVM_GCC_CHECK" = "no"
23691 then
23692     llvmgccwarn=yes
23693 fi
23694 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23695 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23696 LLVM_GCC_SANE=no
23697 if test -x "$LLVM_GCC_CHECK"
23698 then
23699         cp /dev/null conftest.c
23700     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23701         if test $? -eq 0
23702         then
23703                 LLVM_GCC_SANE=yes
23704         fi
23705         rm conftest.c
23706         llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
23707         LLVMCC1=$llvmcc1path
23708
23709         llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
23710         LLVMCC1PLUS=$llvmcc1pluspath
23711
23712 fi
23713 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23714 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23715 if test "$LLVM_GCC_SANE" = "no"
23716 then
23717         llvmgccwarn=yes
23718 fi
23719
23720
23721 # Check whether --with-bcrepos or --without-bcrepos was given.
23722 if test "${with_bcrepos+set}" = set; then
23723   withval="$with_bcrepos"
23724   BCR=$withval
23725
23726 else
23727   BCR=/home/vadve/lattner/LLVMPrograms
23728
23729 fi;
23730
23731
23732 # Check whether --with-papi or --without-papi was given.
23733 if test "${with_papi+set}" = set; then
23734   withval="$with_papi"
23735   PAPIDIR=$withval
23736
23737 else
23738   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
23739
23740 fi;
23741
23742 echo "$as_me:$LINENO: checking for shared library suffix" >&5
23743 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23744 eval "SHLIBEXT=$shrext"
23745 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23746 echo "${ECHO_T}$SHLIBEXT" >&6
23747 SHLIBEXT=$SHLIBEXT
23748
23749
23750 cat >>confdefs.h <<_ACEOF
23751 #define SHLIBEXT "$SHLIBEXT"
23752 _ACEOF
23753
23754
23755 # Translate the various configuration directories and other basic
23756 # information into substitutions that will end up in config.h.in so
23757 # that these configured values can be hard-wired into a program.
23758 eval LLVM_PREFIX="${prefix}";
23759 eval LLVM_BINDIR="${prefix}/bin";
23760 eval LLVM_LIBDIR="${prefix}/lib";
23761 eval LLVM_DATADIR="${prefix}/data";
23762 eval LLVM_DOCSDIR="${prefix}/docs";
23763 eval LLVM_ETCDIR="${prefix}/etc";
23764 eval LLVM_INCLUDEDIR="${prefix}/include";
23765 eval LLVM_INFODIR="${prefix}/info";
23766 eval LLVM_MANDIR="${prefix}/man";
23767 LLVM_CONFIGTIME=`date`
23768
23769
23770
23771
23772
23773
23774
23775
23776
23777
23778
23779 cat >>confdefs.h <<_ACEOF
23780 #define LLVM_PREFIX "$LLVM_PREFIX"
23781 _ACEOF
23782
23783
23784 cat >>confdefs.h <<_ACEOF
23785 #define LLVM_BINDIR "$LLVM_BINDIR"
23786 _ACEOF
23787
23788
23789 cat >>confdefs.h <<_ACEOF
23790 #define LLVM_LIBDIR "$LLVM_LIBDIR"
23791 _ACEOF
23792
23793
23794 cat >>confdefs.h <<_ACEOF
23795 #define LLVM_DATADIR "$LLVM_DATADIR"
23796 _ACEOF
23797
23798
23799 cat >>confdefs.h <<_ACEOF
23800 #define LLVM_DATADIR "$LLVM_DOCSDIR"
23801 _ACEOF
23802
23803
23804 cat >>confdefs.h <<_ACEOF
23805 #define LLVM_ETCDIR "$LLVM_ETCDIR"
23806 _ACEOF
23807
23808
23809 cat >>confdefs.h <<_ACEOF
23810 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23811 _ACEOF
23812
23813
23814 cat >>confdefs.h <<_ACEOF
23815 #define LLVM_INFODIR "$LLVM_INFODIR"
23816 _ACEOF
23817
23818
23819 cat >>confdefs.h <<_ACEOF
23820 #define LLVM_MANDIR "$LLVM_MANDIR"
23821 _ACEOF
23822
23823
23824 cat >>confdefs.h <<_ACEOF
23825 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23826 _ACEOF
23827
23828
23829 cat >confcache <<\_ACEOF
23830 # This file is a shell script that caches the results of configure
23831 # tests run on this system so they can be shared between configure
23832 # scripts and configure runs, see configure's option --config-cache.
23833 # It is not useful on other systems.  If it contains results you don't
23834 # want to keep, you may remove or edit it.
23835 #
23836 # config.status only pays attention to the cache file if you give it
23837 # the --recheck option to rerun configure.
23838 #
23839 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23840 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23841 # following values.
23842
23843 _ACEOF
23844
23845 # The following way of writing the cache mishandles newlines in values,
23846 # but we know of no workaround that is simple, portable, and efficient.
23847 # So, don't put newlines in cache variables' values.
23848 # Ultrix sh set writes to stderr and can't be redirected directly,
23849 # and sets the high bit in the cache file unless we assign to the vars.
23850 {
23851   (set) 2>&1 |
23852     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23853     *ac_space=\ *)
23854       # `set' does not quote correctly, so add quotes (double-quote
23855       # substitution turns \\\\ into \\, and sed turns \\ into \).
23856       sed -n \
23857         "s/'/'\\\\''/g;
23858           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23859       ;;
23860     *)
23861       # `set' quotes correctly as required by POSIX, so do not add quotes.
23862       sed -n \
23863         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23864       ;;
23865     esac;
23866 } |
23867   sed '
23868      t clear
23869      : clear
23870      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23871      t end
23872      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23873      : end' >>confcache
23874 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23875   if test -w $cache_file; then
23876     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23877     cat confcache >$cache_file
23878   else
23879     echo "not updating unwritable cache $cache_file"
23880   fi
23881 fi
23882 rm -f confcache
23883
23884 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23885 # Let make expand exec_prefix.
23886 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23887
23888 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23889 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23890 # trailing colons and then remove the whole line if VPATH becomes empty
23891 # (actually we leave an empty line to preserve line numbers).
23892 if test "x$srcdir" = x.; then
23893   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23894 s/:*\$(srcdir):*/:/;
23895 s/:*\${srcdir}:*/:/;
23896 s/:*@srcdir@:*/:/;
23897 s/^\([^=]*=[     ]*\):*/\1/;
23898 s/:*$//;
23899 s/^[^=]*=[       ]*$//;
23900 }'
23901 fi
23902
23903 DEFS=-DHAVE_CONFIG_H
23904
23905 ac_libobjs=
23906 ac_ltlibobjs=
23907 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23908   # 1. Remove the extension, and $U if already installed.
23909   ac_i=`echo "$ac_i" |
23910          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23911   # 2. Add them.
23912   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23913   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23914 done
23915 LIBOBJS=$ac_libobjs
23916
23917 LTLIBOBJS=$ac_ltlibobjs
23918
23919
23920
23921 : ${CONFIG_STATUS=./config.status}
23922 ac_clean_files_save=$ac_clean_files
23923 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23924 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23925 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23926 cat >$CONFIG_STATUS <<_ACEOF
23927 #! $SHELL
23928 # Generated by $as_me.
23929 # Run this file to recreate the current configuration.
23930 # Compiler output produced by configure, useful for debugging
23931 # configure, is in config.log if it exists.
23932
23933 debug=false
23934 ac_cs_recheck=false
23935 ac_cs_silent=false
23936 SHELL=\${CONFIG_SHELL-$SHELL}
23937 _ACEOF
23938
23939 cat >>$CONFIG_STATUS <<\_ACEOF
23940 ## --------------------- ##
23941 ## M4sh Initialization.  ##
23942 ## --------------------- ##
23943
23944 # Be Bourne compatible
23945 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23946   emulate sh
23947   NULLCMD=:
23948   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23949   # is contrary to our usage.  Disable this feature.
23950   alias -g '${1+"$@"}'='"$@"'
23951 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23952   set -o posix
23953 fi
23954 DUALCASE=1; export DUALCASE # for MKS sh
23955
23956 # Support unset when possible.
23957 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23958   as_unset=unset
23959 else
23960   as_unset=false
23961 fi
23962
23963
23964 # Work around bugs in pre-3.0 UWIN ksh.
23965 $as_unset ENV MAIL MAILPATH
23966 PS1='$ '
23967 PS2='> '
23968 PS4='+ '
23969
23970 # NLS nuisances.
23971 for as_var in \
23972   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23973   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23974   LC_TELEPHONE LC_TIME
23975 do
23976   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23977     eval $as_var=C; export $as_var
23978   else
23979     $as_unset $as_var
23980   fi
23981 done
23982
23983 # Required to use basename.
23984 if expr a : '\(a\)' >/dev/null 2>&1; then
23985   as_expr=expr
23986 else
23987   as_expr=false
23988 fi
23989
23990 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23991   as_basename=basename
23992 else
23993   as_basename=false
23994 fi
23995
23996
23997 # Name of the executable.
23998 as_me=`$as_basename "$0" ||
23999 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24000          X"$0" : 'X\(//\)$' \| \
24001          X"$0" : 'X\(/\)$' \| \
24002          .     : '\(.\)' 2>/dev/null ||
24003 echo X/"$0" |
24004     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24005           /^X\/\(\/\/\)$/{ s//\1/; q; }
24006           /^X\/\(\/\).*/{ s//\1/; q; }
24007           s/.*/./; q'`
24008
24009
24010 # PATH needs CR, and LINENO needs CR and PATH.
24011 # Avoid depending upon Character Ranges.
24012 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24013 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24014 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24015 as_cr_digits='0123456789'
24016 as_cr_alnum=$as_cr_Letters$as_cr_digits
24017
24018 # The user is always right.
24019 if test "${PATH_SEPARATOR+set}" != set; then
24020   echo "#! /bin/sh" >conf$$.sh
24021   echo  "exit 0"   >>conf$$.sh
24022   chmod +x conf$$.sh
24023   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24024     PATH_SEPARATOR=';'
24025   else
24026     PATH_SEPARATOR=:
24027   fi
24028   rm -f conf$$.sh
24029 fi
24030
24031
24032   as_lineno_1=$LINENO
24033   as_lineno_2=$LINENO
24034   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24035   test "x$as_lineno_1" != "x$as_lineno_2" &&
24036   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24037   # Find who we are.  Look in the path if we contain no path at all
24038   # relative or not.
24039   case $0 in
24040     *[\\/]* ) as_myself=$0 ;;
24041     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24042 for as_dir in $PATH
24043 do
24044   IFS=$as_save_IFS
24045   test -z "$as_dir" && as_dir=.
24046   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24047 done
24048
24049        ;;
24050   esac
24051   # We did not find ourselves, most probably we were run as `sh COMMAND'
24052   # in which case we are not to be found in the path.
24053   if test "x$as_myself" = x; then
24054     as_myself=$0
24055   fi
24056   if test ! -f "$as_myself"; then
24057     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24058 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24059    { (exit 1); exit 1; }; }
24060   fi
24061   case $CONFIG_SHELL in
24062   '')
24063     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24064 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24065 do
24066   IFS=$as_save_IFS
24067   test -z "$as_dir" && as_dir=.
24068   for as_base in sh bash ksh sh5; do
24069          case $as_dir in
24070          /*)
24071            if ("$as_dir/$as_base" -c '
24072   as_lineno_1=$LINENO
24073   as_lineno_2=$LINENO
24074   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24075   test "x$as_lineno_1" != "x$as_lineno_2" &&
24076   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24077              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24078              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24079              CONFIG_SHELL=$as_dir/$as_base
24080              export CONFIG_SHELL
24081              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24082            fi;;
24083          esac
24084        done
24085 done
24086 ;;
24087   esac
24088
24089   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24090   # uniformly replaced by the line number.  The first 'sed' inserts a
24091   # line-number line before each line; the second 'sed' does the real
24092   # work.  The second script uses 'N' to pair each line-number line
24093   # with the numbered line, and appends trailing '-' during
24094   # substitution so that $LINENO is not a special case at line end.
24095   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24096   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24097   sed '=' <$as_myself |
24098     sed '
24099       N
24100       s,$,-,
24101       : loop
24102       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24103       t loop
24104       s,-$,,
24105       s,^['$as_cr_digits']*\n,,
24106     ' >$as_me.lineno &&
24107   chmod +x $as_me.lineno ||
24108     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24109 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24110    { (exit 1); exit 1; }; }
24111
24112   # Don't try to exec as it changes $[0], causing all sort of problems
24113   # (the dirname of $[0] is not the place where we might find the
24114   # original and so on.  Autoconf is especially sensible to this).
24115   . ./$as_me.lineno
24116   # Exit status is that of the last command.
24117   exit
24118 }
24119
24120
24121 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24122   *c*,-n*) ECHO_N= ECHO_C='
24123 ' ECHO_T='      ' ;;
24124   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24125   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24126 esac
24127
24128 if expr a : '\(a\)' >/dev/null 2>&1; then
24129   as_expr=expr
24130 else
24131   as_expr=false
24132 fi
24133
24134 rm -f conf$$ conf$$.exe conf$$.file
24135 echo >conf$$.file
24136 if ln -s conf$$.file conf$$ 2>/dev/null; then
24137   # We could just check for DJGPP; but this test a) works b) is more generic
24138   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24139   if test -f conf$$.exe; then
24140     # Don't use ln at all; we don't have any links
24141     as_ln_s='cp -p'
24142   else
24143     as_ln_s='ln -s'
24144   fi
24145 elif ln conf$$.file conf$$ 2>/dev/null; then
24146   as_ln_s=ln
24147 else
24148   as_ln_s='cp -p'
24149 fi
24150 rm -f conf$$ conf$$.exe conf$$.file
24151
24152 if mkdir -p . 2>/dev/null; then
24153   as_mkdir_p=:
24154 else
24155   test -d ./-p && rmdir ./-p
24156   as_mkdir_p=false
24157 fi
24158
24159 as_executable_p="test -f"
24160
24161 # Sed expression to map a string onto a valid CPP name.
24162 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24163
24164 # Sed expression to map a string onto a valid variable name.
24165 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24166
24167
24168 # IFS
24169 # We need space, tab and new line, in precisely that order.
24170 as_nl='
24171 '
24172 IFS="   $as_nl"
24173
24174 # CDPATH.
24175 $as_unset CDPATH
24176
24177 exec 6>&1
24178
24179 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24180 # report actual input values of CONFIG_FILES etc. instead of their
24181 # values after options handling.  Logging --version etc. is OK.
24182 exec 5>>config.log
24183 {
24184   echo
24185   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24186 ## Running $as_me. ##
24187 _ASBOX
24188 } >&5
24189 cat >&5 <<_CSEOF
24190
24191 This file was extended by LLVM $as_me 1.4, which was
24192 generated by GNU Autoconf 2.59.  Invocation command line was
24193
24194   CONFIG_FILES    = $CONFIG_FILES
24195   CONFIG_HEADERS  = $CONFIG_HEADERS
24196   CONFIG_LINKS    = $CONFIG_LINKS
24197   CONFIG_COMMANDS = $CONFIG_COMMANDS
24198   $ $0 $@
24199
24200 _CSEOF
24201 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24202 echo >&5
24203 _ACEOF
24204
24205 # Files that config.status was made for.
24206 if test -n "$ac_config_files"; then
24207   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24208 fi
24209
24210 if test -n "$ac_config_headers"; then
24211   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24212 fi
24213
24214 if test -n "$ac_config_links"; then
24215   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24216 fi
24217
24218 if test -n "$ac_config_commands"; then
24219   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24220 fi
24221
24222 cat >>$CONFIG_STATUS <<\_ACEOF
24223
24224 ac_cs_usage="\
24225 \`$as_me' instantiates files from templates according to the
24226 current configuration.
24227
24228 Usage: $0 [OPTIONS] [FILE]...
24229
24230   -h, --help       print this help, then exit
24231   -V, --version    print version number, then exit
24232   -q, --quiet      do not print progress messages
24233   -d, --debug      don't remove temporary files
24234       --recheck    update $as_me by reconfiguring in the same conditions
24235   --file=FILE[:TEMPLATE]
24236                    instantiate the configuration file FILE
24237   --header=FILE[:TEMPLATE]
24238                    instantiate the configuration header FILE
24239
24240 Configuration files:
24241 $config_files
24242
24243 Configuration headers:
24244 $config_headers
24245
24246 Configuration links:
24247 $config_links
24248
24249 Configuration commands:
24250 $config_commands
24251
24252 Report bugs to <bug-autoconf@gnu.org>."
24253 _ACEOF
24254
24255 cat >>$CONFIG_STATUS <<_ACEOF
24256 ac_cs_version="\\
24257 LLVM config.status 1.4
24258 configured by $0, generated by GNU Autoconf 2.59,
24259   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24260
24261 Copyright (C) 2003 Free Software Foundation, Inc.
24262 This config.status script is free software; the Free Software Foundation
24263 gives unlimited permission to copy, distribute and modify it."
24264 srcdir=$srcdir
24265 INSTALL="$INSTALL"
24266 _ACEOF
24267
24268 cat >>$CONFIG_STATUS <<\_ACEOF
24269 # If no file are specified by the user, then we need to provide default
24270 # value.  By we need to know if files were specified by the user.
24271 ac_need_defaults=:
24272 while test $# != 0
24273 do
24274   case $1 in
24275   --*=*)
24276     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24277     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24278     ac_shift=:
24279     ;;
24280   -*)
24281     ac_option=$1
24282     ac_optarg=$2
24283     ac_shift=shift
24284     ;;
24285   *) # This is not an option, so the user has probably given explicit
24286      # arguments.
24287      ac_option=$1
24288      ac_need_defaults=false;;
24289   esac
24290
24291   case $ac_option in
24292   # Handling of the options.
24293 _ACEOF
24294 cat >>$CONFIG_STATUS <<\_ACEOF
24295   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24296     ac_cs_recheck=: ;;
24297   --version | --vers* | -V )
24298     echo "$ac_cs_version"; exit 0 ;;
24299   --he | --h)
24300     # Conflict between --help and --header
24301     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24302 Try \`$0 --help' for more information." >&5
24303 echo "$as_me: error: ambiguous option: $1
24304 Try \`$0 --help' for more information." >&2;}
24305    { (exit 1); exit 1; }; };;
24306   --help | --hel | -h )
24307     echo "$ac_cs_usage"; exit 0 ;;
24308   --debug | --d* | -d )
24309     debug=: ;;
24310   --file | --fil | --fi | --f )
24311     $ac_shift
24312     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24313     ac_need_defaults=false;;
24314   --header | --heade | --head | --hea )
24315     $ac_shift
24316     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24317     ac_need_defaults=false;;
24318   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24319   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24320     ac_cs_silent=: ;;
24321
24322   # This is an error.
24323   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24324 Try \`$0 --help' for more information." >&5
24325 echo "$as_me: error: unrecognized option: $1
24326 Try \`$0 --help' for more information." >&2;}
24327    { (exit 1); exit 1; }; } ;;
24328
24329   *) ac_config_targets="$ac_config_targets $1" ;;
24330
24331   esac
24332   shift
24333 done
24334
24335 ac_configure_extra_args=
24336
24337 if $ac_cs_silent; then
24338   exec 6>/dev/null
24339   ac_configure_extra_args="$ac_configure_extra_args --silent"
24340 fi
24341
24342 _ACEOF
24343 cat >>$CONFIG_STATUS <<_ACEOF
24344 if \$ac_cs_recheck; then
24345   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24346   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24347 fi
24348
24349 _ACEOF
24350
24351 cat >>$CONFIG_STATUS <<_ACEOF
24352 #
24353 # INIT-COMMANDS section.
24354 #
24355
24356 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24357 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
24358 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
24359 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
24360 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24361 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24362 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24363 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24364 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
24365 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
24366 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
24367 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests`
24368 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
24369 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
24370 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
24371 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
24372 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
24373 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
24374 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
24375 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
24376 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
24377 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
24378 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
24379 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
24380 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
24381 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
24382 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
24383 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
24384 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
24385 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
24386 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
24387 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
24388 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
24389 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
24390 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
24391 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
24392 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
24393 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
24394 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
24395 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
24396 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
24397 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
24398 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
24399 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
24400 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
24401 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
24402 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
24403 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
24404 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
24405 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
24406 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
24407
24408 _ACEOF
24409
24410
24411
24412 cat >>$CONFIG_STATUS <<\_ACEOF
24413 for ac_config_target in $ac_config_targets
24414 do
24415   case "$ac_config_target" in
24416   # Handling of arguments.
24417   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
24418   "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
24419   "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
24420   "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
24421   "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
24422   "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
24423   "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
24424   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24425   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
24426   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
24427   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
24428   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
24429   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24430   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
24431   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24432   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
24433   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
24434   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
24435   "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;;
24436   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
24437   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
24438   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
24439   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
24440   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
24441   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
24442   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
24443   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
24444   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
24445   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
24446   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
24447   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
24448   "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
24449   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
24450   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
24451   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
24452   "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
24453   "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
24454   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
24455   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
24456   "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
24457   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
24458   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
24459   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
24460   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
24461   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
24462   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
24463   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
24464   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
24465   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
24466   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
24467   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
24468   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
24469   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
24470   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
24471   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
24472   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24473   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24474   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
24475   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
24476   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24477 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24478    { (exit 1); exit 1; }; };;
24479   esac
24480 done
24481
24482 # If the user did not use the arguments to specify the items to instantiate,
24483 # then the envvar interface is used.  Set only those that are not.
24484 # We use the long form for the default assignment because of an extremely
24485 # bizarre bug on SunOS 4.1.3.
24486 if $ac_need_defaults; then
24487   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24488   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24489   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24490   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24491 fi
24492
24493 # Have a temporary directory for convenience.  Make it in the build tree
24494 # simply because there is no reason to put it here, and in addition,
24495 # creating and moving files from /tmp can sometimes cause problems.
24496 # Create a temporary directory, and hook for its removal unless debugging.
24497 $debug ||
24498 {
24499   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24500   trap '{ (exit 1); exit 1; }' 1 2 13 15
24501 }
24502
24503 # Create a (secure) tmp directory for tmp files.
24504
24505 {
24506   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24507   test -n "$tmp" && test -d "$tmp"
24508 }  ||
24509 {
24510   tmp=./confstat$$-$RANDOM
24511   (umask 077 && mkdir $tmp)
24512 } ||
24513 {
24514    echo "$me: cannot create a temporary directory in ." >&2
24515    { (exit 1); exit 1; }
24516 }
24517
24518 _ACEOF
24519
24520 cat >>$CONFIG_STATUS <<_ACEOF
24521
24522 #
24523 # CONFIG_FILES section.
24524 #
24525
24526 # No need to generate the scripts if there are no CONFIG_FILES.
24527 # This happens for instance when ./config.status config.h
24528 if test -n "\$CONFIG_FILES"; then
24529   # Protect against being on the right side of a sed subst in config.status.
24530   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24531    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24532 s,@SHELL@,$SHELL,;t t
24533 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24534 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24535 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24536 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24537 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24538 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24539 s,@exec_prefix@,$exec_prefix,;t t
24540 s,@prefix@,$prefix,;t t
24541 s,@program_transform_name@,$program_transform_name,;t t
24542 s,@bindir@,$bindir,;t t
24543 s,@sbindir@,$sbindir,;t t
24544 s,@libexecdir@,$libexecdir,;t t
24545 s,@datadir@,$datadir,;t t
24546 s,@sysconfdir@,$sysconfdir,;t t
24547 s,@sharedstatedir@,$sharedstatedir,;t t
24548 s,@localstatedir@,$localstatedir,;t t
24549 s,@libdir@,$libdir,;t t
24550 s,@includedir@,$includedir,;t t
24551 s,@oldincludedir@,$oldincludedir,;t t
24552 s,@infodir@,$infodir,;t t
24553 s,@mandir@,$mandir,;t t
24554 s,@build_alias@,$build_alias,;t t
24555 s,@host_alias@,$host_alias,;t t
24556 s,@target_alias@,$target_alias,;t t
24557 s,@DEFS@,$DEFS,;t t
24558 s,@ECHO_C@,$ECHO_C,;t t
24559 s,@ECHO_N@,$ECHO_N,;t t
24560 s,@ECHO_T@,$ECHO_T,;t t
24561 s,@LIBS@,$LIBS,;t t
24562 s,@subdirs@,$subdirs,;t t
24563 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24564 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24565 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24566 s,@build@,$build,;t t
24567 s,@build_cpu@,$build_cpu,;t t
24568 s,@build_vendor@,$build_vendor,;t t
24569 s,@build_os@,$build_os,;t t
24570 s,@host@,$host,;t t
24571 s,@host_cpu@,$host_cpu,;t t
24572 s,@host_vendor@,$host_vendor,;t t
24573 s,@host_os@,$host_os,;t t
24574 s,@target@,$target,;t t
24575 s,@target_cpu@,$target_cpu,;t t
24576 s,@target_vendor@,$target_vendor,;t t
24577 s,@target_os@,$target_os,;t t
24578 s,@OS@,$OS,;t t
24579 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24580 s,@ARCH@,$ARCH,;t t
24581 s,@CXX@,$CXX,;t t
24582 s,@CXXFLAGS@,$CXXFLAGS,;t t
24583 s,@LDFLAGS@,$LDFLAGS,;t t
24584 s,@CPPFLAGS@,$CPPFLAGS,;t t
24585 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24586 s,@EXEEXT@,$EXEEXT,;t t
24587 s,@OBJEXT@,$OBJEXT,;t t
24588 s,@CC@,$CC,;t t
24589 s,@CFLAGS@,$CFLAGS,;t t
24590 s,@ac_ct_CC@,$ac_ct_CC,;t t
24591 s,@CPP@,$CPP,;t t
24592 s,@ifGNUmake@,$ifGNUmake,;t t
24593 s,@LEX@,$LEX,;t t
24594 s,@LEXLIB@,$LEXLIB,;t t
24595 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24596 s,@YACC@,$YACC,;t t
24597 s,@BISON@,$BISON,;t t
24598 s,@EGREP@,$EGREP,;t t
24599 s,@LN_S@,$LN_S,;t t
24600 s,@ECHO@,$ECHO,;t t
24601 s,@AR@,$AR,;t t
24602 s,@ac_ct_AR@,$ac_ct_AR,;t t
24603 s,@RANLIB@,$RANLIB,;t t
24604 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24605 s,@STRIP@,$STRIP,;t t
24606 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24607 s,@CXXCPP@,$CXXCPP,;t t
24608 s,@F77@,$F77,;t t
24609 s,@FFLAGS@,$FFLAGS,;t t
24610 s,@ac_ct_F77@,$ac_ct_F77,;t t
24611 s,@LIBTOOL@,$LIBTOOL,;t t
24612 s,@DOT@,$DOT,;t t
24613 s,@ETAGS@,$ETAGS,;t t
24614 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
24615 s,@PYTHON@,$PYTHON,;t t
24616 s,@QMTEST@,$QMTEST,;t t
24617 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
24618 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
24619 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
24620 s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
24621 s,@ENDIAN@,$ENDIAN,;t t
24622 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24623 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24624 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24625 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24626 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24627 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
24628 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24629 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24630 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
24631 s,@ALLOCA@,$ALLOCA,;t t
24632 s,@MMAP_FILE@,$MMAP_FILE,;t t
24633 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24634 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
24635 s,@USE_SPEC95@,$USE_SPEC95,;t t
24636 s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
24637 s,@USE_SPEC2000@,$USE_SPEC2000,;t t
24638 s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
24639 s,@USE_POVRAY@,$USE_POVRAY,;t t
24640 s,@UPB@,$UPB,;t t
24641 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
24642 s,@JIT@,$JIT,;t t
24643 s,@LLVMCC1@,$LLVMCC1,;t t
24644 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
24645 s,@BCR@,$BCR,;t t
24646 s,@PAPIDIR@,$PAPIDIR,;t t
24647 s,@SHLIBEXT@,$SHLIBEXT,;t t
24648 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24649 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24650 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24651 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24652 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24653 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24654 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24655 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24656 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24657 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
24658 s,@LIBOBJS@,$LIBOBJS,;t t
24659 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24660 CEOF
24661
24662 _ACEOF
24663
24664   cat >>$CONFIG_STATUS <<\_ACEOF
24665   # Split the substitutions into bite-sized pieces for seds with
24666   # small command number limits, like on Digital OSF/1 and HP-UX.
24667   ac_max_sed_lines=48
24668   ac_sed_frag=1 # Number of current file.
24669   ac_beg=1 # First line for current file.
24670   ac_end=$ac_max_sed_lines # Line after last line for current file.
24671   ac_more_lines=:
24672   ac_sed_cmds=
24673   while $ac_more_lines; do
24674     if test $ac_beg -gt 1; then
24675       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24676     else
24677       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24678     fi
24679     if test ! -s $tmp/subs.frag; then
24680       ac_more_lines=false
24681     else
24682       # The purpose of the label and of the branching condition is to
24683       # speed up the sed processing (if there are no `@' at all, there
24684       # is no need to browse any of the substitutions).
24685       # These are the two extra sed commands mentioned above.
24686       (echo ':t
24687   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24688       if test -z "$ac_sed_cmds"; then
24689         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24690       else
24691         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24692       fi
24693       ac_sed_frag=`expr $ac_sed_frag + 1`
24694       ac_beg=$ac_end
24695       ac_end=`expr $ac_end + $ac_max_sed_lines`
24696     fi
24697   done
24698   if test -z "$ac_sed_cmds"; then
24699     ac_sed_cmds=cat
24700   fi
24701 fi # test -n "$CONFIG_FILES"
24702
24703 _ACEOF
24704 cat >>$CONFIG_STATUS <<\_ACEOF
24705 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24706   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24707   case $ac_file in
24708   - | *:- | *:-:* ) # input from stdin
24709         cat >$tmp/stdin
24710         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24711         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24712   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24713         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24714   * )   ac_file_in=$ac_file.in ;;
24715   esac
24716
24717   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24718   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24719 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24720          X"$ac_file" : 'X\(//\)[^/]' \| \
24721          X"$ac_file" : 'X\(//\)$' \| \
24722          X"$ac_file" : 'X\(/\)' \| \
24723          .     : '\(.\)' 2>/dev/null ||
24724 echo X"$ac_file" |
24725     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24726           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24727           /^X\(\/\/\)$/{ s//\1/; q; }
24728           /^X\(\/\).*/{ s//\1/; q; }
24729           s/.*/./; q'`
24730   { if $as_mkdir_p; then
24731     mkdir -p "$ac_dir"
24732   else
24733     as_dir="$ac_dir"
24734     as_dirs=
24735     while test ! -d "$as_dir"; do
24736       as_dirs="$as_dir $as_dirs"
24737       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24738 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24739          X"$as_dir" : 'X\(//\)[^/]' \| \
24740          X"$as_dir" : 'X\(//\)$' \| \
24741          X"$as_dir" : 'X\(/\)' \| \
24742          .     : '\(.\)' 2>/dev/null ||
24743 echo X"$as_dir" |
24744     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24745           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24746           /^X\(\/\/\)$/{ s//\1/; q; }
24747           /^X\(\/\).*/{ s//\1/; q; }
24748           s/.*/./; q'`
24749     done
24750     test ! -n "$as_dirs" || mkdir $as_dirs
24751   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24752 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24753    { (exit 1); exit 1; }; }; }
24754
24755   ac_builddir=.
24756
24757 if test "$ac_dir" != .; then
24758   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24759   # A "../" for each directory in $ac_dir_suffix.
24760   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24761 else
24762   ac_dir_suffix= ac_top_builddir=
24763 fi
24764
24765 case $srcdir in
24766   .)  # No --srcdir option.  We are building in place.
24767     ac_srcdir=.
24768     if test -z "$ac_top_builddir"; then
24769        ac_top_srcdir=.
24770     else
24771        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24772     fi ;;
24773   [\\/]* | ?:[\\/]* )  # Absolute path.
24774     ac_srcdir=$srcdir$ac_dir_suffix;
24775     ac_top_srcdir=$srcdir ;;
24776   *) # Relative path.
24777     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24778     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24779 esac
24780
24781 # Do not use `cd foo && pwd` to compute absolute paths, because
24782 # the directories may not exist.
24783 case `pwd` in
24784 .) ac_abs_builddir="$ac_dir";;
24785 *)
24786   case "$ac_dir" in
24787   .) ac_abs_builddir=`pwd`;;
24788   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24789   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24790   esac;;
24791 esac
24792 case $ac_abs_builddir in
24793 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24794 *)
24795   case ${ac_top_builddir}. in
24796   .) ac_abs_top_builddir=$ac_abs_builddir;;
24797   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24798   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24799   esac;;
24800 esac
24801 case $ac_abs_builddir in
24802 .) ac_abs_srcdir=$ac_srcdir;;
24803 *)
24804   case $ac_srcdir in
24805   .) ac_abs_srcdir=$ac_abs_builddir;;
24806   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24807   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24808   esac;;
24809 esac
24810 case $ac_abs_builddir in
24811 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24812 *)
24813   case $ac_top_srcdir in
24814   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24815   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24816   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24817   esac;;
24818 esac
24819
24820
24821   case $INSTALL in
24822   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24823   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24824   esac
24825
24826   if test x"$ac_file" != x-; then
24827     { echo "$as_me:$LINENO: creating $ac_file" >&5
24828 echo "$as_me: creating $ac_file" >&6;}
24829     rm -f "$ac_file"
24830   fi
24831   # Let's still pretend it is `configure' which instantiates (i.e., don't
24832   # use $as_me), people would be surprised to read:
24833   #    /* config.h.  Generated by config.status.  */
24834   if test x"$ac_file" = x-; then
24835     configure_input=
24836   else
24837     configure_input="$ac_file.  "
24838   fi
24839   configure_input=$configure_input"Generated from `echo $ac_file_in |
24840                                      sed 's,.*/,,'` by configure."
24841
24842   # First look for the input files in the build tree, otherwise in the
24843   # src tree.
24844   ac_file_inputs=`IFS=:
24845     for f in $ac_file_in; do
24846       case $f in
24847       -) echo $tmp/stdin ;;
24848       [\\/$]*)
24849          # Absolute (can't be DOS-style, as IFS=:)
24850          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24851 echo "$as_me: error: cannot find input file: $f" >&2;}
24852    { (exit 1); exit 1; }; }
24853          echo "$f";;
24854       *) # Relative
24855          if test -f "$f"; then
24856            # Build tree
24857            echo "$f"
24858          elif test -f "$srcdir/$f"; then
24859            # Source tree
24860            echo "$srcdir/$f"
24861          else
24862            # /dev/null tree
24863            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24864 echo "$as_me: error: cannot find input file: $f" >&2;}
24865    { (exit 1); exit 1; }; }
24866          fi;;
24867       esac
24868     done` || { (exit 1); exit 1; }
24869 _ACEOF
24870 cat >>$CONFIG_STATUS <<_ACEOF
24871   sed "$ac_vpsub
24872 $extrasub
24873 _ACEOF
24874 cat >>$CONFIG_STATUS <<\_ACEOF
24875 :t
24876 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24877 s,@configure_input@,$configure_input,;t t
24878 s,@srcdir@,$ac_srcdir,;t t
24879 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24880 s,@top_srcdir@,$ac_top_srcdir,;t t
24881 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24882 s,@builddir@,$ac_builddir,;t t
24883 s,@abs_builddir@,$ac_abs_builddir,;t t
24884 s,@top_builddir@,$ac_top_builddir,;t t
24885 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24886 s,@INSTALL@,$ac_INSTALL,;t t
24887 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24888   rm -f $tmp/stdin
24889   if test x"$ac_file" != x-; then
24890     mv $tmp/out $ac_file
24891   else
24892     cat $tmp/out
24893     rm -f $tmp/out
24894   fi
24895
24896 done
24897 _ACEOF
24898 cat >>$CONFIG_STATUS <<\_ACEOF
24899
24900 #
24901 # CONFIG_HEADER section.
24902 #
24903
24904 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24905 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24906 #
24907 # ac_d sets the value in "#define NAME VALUE" lines.
24908 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24909 ac_dB='[         ].*$,\1#\2'
24910 ac_dC=' '
24911 ac_dD=',;t'
24912 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24913 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24914 ac_uB='$,\1#\2define\3'
24915 ac_uC=' '
24916 ac_uD=',;t'
24917
24918 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24919   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24920   case $ac_file in
24921   - | *:- | *:-:* ) # input from stdin
24922         cat >$tmp/stdin
24923         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24924         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24925   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24926         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24927   * )   ac_file_in=$ac_file.in ;;
24928   esac
24929
24930   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24931 echo "$as_me: creating $ac_file" >&6;}
24932
24933   # First look for the input files in the build tree, otherwise in the
24934   # src tree.
24935   ac_file_inputs=`IFS=:
24936     for f in $ac_file_in; do
24937       case $f in
24938       -) echo $tmp/stdin ;;
24939       [\\/$]*)
24940          # Absolute (can't be DOS-style, as IFS=:)
24941          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24942 echo "$as_me: error: cannot find input file: $f" >&2;}
24943    { (exit 1); exit 1; }; }
24944          # Do quote $f, to prevent DOS paths from being IFS'd.
24945          echo "$f";;
24946       *) # Relative
24947          if test -f "$f"; then
24948            # Build tree
24949            echo "$f"
24950          elif test -f "$srcdir/$f"; then
24951            # Source tree
24952            echo "$srcdir/$f"
24953          else
24954            # /dev/null tree
24955            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24956 echo "$as_me: error: cannot find input file: $f" >&2;}
24957    { (exit 1); exit 1; }; }
24958          fi;;
24959       esac
24960     done` || { (exit 1); exit 1; }
24961   # Remove the trailing spaces.
24962   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24963
24964 _ACEOF
24965
24966 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24967 # `conftest.undefs', that substitutes the proper values into
24968 # config.h.in to produce config.h.  The first handles `#define'
24969 # templates, and the second `#undef' templates.
24970 # And first: Protect against being on the right side of a sed subst in
24971 # config.status.  Protect against being in an unquoted here document
24972 # in config.status.
24973 rm -f conftest.defines conftest.undefs
24974 # Using a here document instead of a string reduces the quoting nightmare.
24975 # Putting comments in sed scripts is not portable.
24976 #
24977 # `end' is used to avoid that the second main sed command (meant for
24978 # 0-ary CPP macros) applies to n-ary macro definitions.
24979 # See the Autoconf documentation for `clear'.
24980 cat >confdef2sed.sed <<\_ACEOF
24981 s/[\\&,]/\\&/g
24982 s,[\\$`],\\&,g
24983 t clear
24984 : clear
24985 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24986 t end
24987 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24988 : end
24989 _ACEOF
24990 # If some macros were called several times there might be several times
24991 # the same #defines, which is useless.  Nevertheless, we may not want to
24992 # sort them, since we want the *last* AC-DEFINE to be honored.
24993 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24994 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24995 rm -f confdef2sed.sed
24996
24997 # This sed command replaces #undef with comments.  This is necessary, for
24998 # example, in the case of _POSIX_SOURCE, which is predefined and required
24999 # on some systems where configure will not decide to define it.
25000 cat >>conftest.undefs <<\_ACEOF
25001 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25002 _ACEOF
25003
25004 # Break up conftest.defines because some shells have a limit on the size
25005 # of here documents, and old seds have small limits too (100 cmds).
25006 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25007 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25008 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25009 echo '  :' >>$CONFIG_STATUS
25010 rm -f conftest.tail
25011 while grep . conftest.defines >/dev/null
25012 do
25013   # Write a limited-size here document to $tmp/defines.sed.
25014   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25015   # Speed up: don't consider the non `#define' lines.
25016   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
25017   # Work around the forget-to-reset-the-flag bug.
25018   echo 't clr' >>$CONFIG_STATUS
25019   echo ': clr' >>$CONFIG_STATUS
25020   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25021   echo 'CEOF
25022   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25023   rm -f $tmp/in
25024   mv $tmp/out $tmp/in
25025 ' >>$CONFIG_STATUS
25026   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25027   rm -f conftest.defines
25028   mv conftest.tail conftest.defines
25029 done
25030 rm -f conftest.defines
25031 echo '  fi # grep' >>$CONFIG_STATUS
25032 echo >>$CONFIG_STATUS
25033
25034 # Break up conftest.undefs because some shells have a limit on the size
25035 # of here documents, and old seds have small limits too (100 cmds).
25036 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25037 rm -f conftest.tail
25038 while grep . conftest.undefs >/dev/null
25039 do
25040   # Write a limited-size here document to $tmp/undefs.sed.
25041   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25042   # Speed up: don't consider the non `#undef'
25043   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25044   # Work around the forget-to-reset-the-flag bug.
25045   echo 't clr' >>$CONFIG_STATUS
25046   echo ': clr' >>$CONFIG_STATUS
25047   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25048   echo 'CEOF
25049   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25050   rm -f $tmp/in
25051   mv $tmp/out $tmp/in
25052 ' >>$CONFIG_STATUS
25053   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25054   rm -f conftest.undefs
25055   mv conftest.tail conftest.undefs
25056 done
25057 rm -f conftest.undefs
25058
25059 cat >>$CONFIG_STATUS <<\_ACEOF
25060   # Let's still pretend it is `configure' which instantiates (i.e., don't
25061   # use $as_me), people would be surprised to read:
25062   #    /* config.h.  Generated by config.status.  */
25063   if test x"$ac_file" = x-; then
25064     echo "/* Generated by configure.  */" >$tmp/config.h
25065   else
25066     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25067   fi
25068   cat $tmp/in >>$tmp/config.h
25069   rm -f $tmp/in
25070   if test x"$ac_file" != x-; then
25071     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25072       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25073 echo "$as_me: $ac_file is unchanged" >&6;}
25074     else
25075       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25076 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25077          X"$ac_file" : 'X\(//\)[^/]' \| \
25078          X"$ac_file" : 'X\(//\)$' \| \
25079          X"$ac_file" : 'X\(/\)' \| \
25080          .     : '\(.\)' 2>/dev/null ||
25081 echo X"$ac_file" |
25082     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25083           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25084           /^X\(\/\/\)$/{ s//\1/; q; }
25085           /^X\(\/\).*/{ s//\1/; q; }
25086           s/.*/./; q'`
25087       { if $as_mkdir_p; then
25088     mkdir -p "$ac_dir"
25089   else
25090     as_dir="$ac_dir"
25091     as_dirs=
25092     while test ! -d "$as_dir"; do
25093       as_dirs="$as_dir $as_dirs"
25094       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25095 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25096          X"$as_dir" : 'X\(//\)[^/]' \| \
25097          X"$as_dir" : 'X\(//\)$' \| \
25098          X"$as_dir" : 'X\(/\)' \| \
25099          .     : '\(.\)' 2>/dev/null ||
25100 echo X"$as_dir" |
25101     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25102           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25103           /^X\(\/\/\)$/{ s//\1/; q; }
25104           /^X\(\/\).*/{ s//\1/; q; }
25105           s/.*/./; q'`
25106     done
25107     test ! -n "$as_dirs" || mkdir $as_dirs
25108   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25109 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25110    { (exit 1); exit 1; }; }; }
25111
25112       rm -f $ac_file
25113       mv $tmp/config.h $ac_file
25114     fi
25115   else
25116     cat $tmp/config.h
25117     rm -f $tmp/config.h
25118   fi
25119 done
25120 _ACEOF
25121 cat >>$CONFIG_STATUS <<\_ACEOF
25122
25123 #
25124 # CONFIG_LINKS section.
25125 #
25126
25127 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25128   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25129   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25130
25131   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25132 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25133
25134   if test ! -r $srcdir/$ac_source; then
25135     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25136 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25137    { (exit 1); exit 1; }; }
25138   fi
25139   rm -f $ac_dest
25140
25141   # Make relative symlinks.
25142   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25143 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25144          X"$ac_dest" : 'X\(//\)[^/]' \| \
25145          X"$ac_dest" : 'X\(//\)$' \| \
25146          X"$ac_dest" : 'X\(/\)' \| \
25147          .     : '\(.\)' 2>/dev/null ||
25148 echo X"$ac_dest" |
25149     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25150           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25151           /^X\(\/\/\)$/{ s//\1/; q; }
25152           /^X\(\/\).*/{ s//\1/; q; }
25153           s/.*/./; q'`
25154   { if $as_mkdir_p; then
25155     mkdir -p "$ac_dest_dir"
25156   else
25157     as_dir="$ac_dest_dir"
25158     as_dirs=
25159     while test ! -d "$as_dir"; do
25160       as_dirs="$as_dir $as_dirs"
25161       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25162 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25163          X"$as_dir" : 'X\(//\)[^/]' \| \
25164          X"$as_dir" : 'X\(//\)$' \| \
25165          X"$as_dir" : 'X\(/\)' \| \
25166          .     : '\(.\)' 2>/dev/null ||
25167 echo X"$as_dir" |
25168     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25169           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25170           /^X\(\/\/\)$/{ s//\1/; q; }
25171           /^X\(\/\).*/{ s//\1/; q; }
25172           s/.*/./; q'`
25173     done
25174     test ! -n "$as_dirs" || mkdir $as_dirs
25175   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25176 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25177    { (exit 1); exit 1; }; }; }
25178
25179   ac_builddir=.
25180
25181 if test "$ac_dest_dir" != .; then
25182   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25183   # A "../" for each directory in $ac_dir_suffix.
25184   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25185 else
25186   ac_dir_suffix= ac_top_builddir=
25187 fi
25188
25189 case $srcdir in
25190   .)  # No --srcdir option.  We are building in place.
25191     ac_srcdir=.
25192     if test -z "$ac_top_builddir"; then
25193        ac_top_srcdir=.
25194     else
25195        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25196     fi ;;
25197   [\\/]* | ?:[\\/]* )  # Absolute path.
25198     ac_srcdir=$srcdir$ac_dir_suffix;
25199     ac_top_srcdir=$srcdir ;;
25200   *) # Relative path.
25201     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25202     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25203 esac
25204
25205 # Do not use `cd foo && pwd` to compute absolute paths, because
25206 # the directories may not exist.
25207 case `pwd` in
25208 .) ac_abs_builddir="$ac_dest_dir";;
25209 *)
25210   case "$ac_dest_dir" in
25211   .) ac_abs_builddir=`pwd`;;
25212   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25213   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25214   esac;;
25215 esac
25216 case $ac_abs_builddir in
25217 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25218 *)
25219   case ${ac_top_builddir}. in
25220   .) ac_abs_top_builddir=$ac_abs_builddir;;
25221   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25222   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25223   esac;;
25224 esac
25225 case $ac_abs_builddir in
25226 .) ac_abs_srcdir=$ac_srcdir;;
25227 *)
25228   case $ac_srcdir in
25229   .) ac_abs_srcdir=$ac_abs_builddir;;
25230   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25231   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25232   esac;;
25233 esac
25234 case $ac_abs_builddir in
25235 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25236 *)
25237   case $ac_top_srcdir in
25238   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25239   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25240   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25241   esac;;
25242 esac
25243
25244
25245   case $srcdir in
25246   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25247       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25248   esac
25249
25250   # Try a symlink, then a hard link, then a copy.
25251   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25252     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25253     cp -p $srcdir/$ac_source $ac_dest ||
25254     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25255 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25256    { (exit 1); exit 1; }; }
25257 done
25258 _ACEOF
25259 cat >>$CONFIG_STATUS <<\_ACEOF
25260
25261 #
25262 # CONFIG_COMMANDS section.
25263 #
25264 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25265   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25266   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25267   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25268 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25269          X"$ac_dest" : 'X\(//\)[^/]' \| \
25270          X"$ac_dest" : 'X\(//\)$' \| \
25271          X"$ac_dest" : 'X\(/\)' \| \
25272          .     : '\(.\)' 2>/dev/null ||
25273 echo X"$ac_dest" |
25274     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25275           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25276           /^X\(\/\/\)$/{ s//\1/; q; }
25277           /^X\(\/\).*/{ s//\1/; q; }
25278           s/.*/./; q'`
25279   { if $as_mkdir_p; then
25280     mkdir -p "$ac_dir"
25281   else
25282     as_dir="$ac_dir"
25283     as_dirs=
25284     while test ! -d "$as_dir"; do
25285       as_dirs="$as_dir $as_dirs"
25286       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25288          X"$as_dir" : 'X\(//\)[^/]' \| \
25289          X"$as_dir" : 'X\(//\)$' \| \
25290          X"$as_dir" : 'X\(/\)' \| \
25291          .     : '\(.\)' 2>/dev/null ||
25292 echo X"$as_dir" |
25293     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25294           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25295           /^X\(\/\/\)$/{ s//\1/; q; }
25296           /^X\(\/\).*/{ s//\1/; q; }
25297           s/.*/./; q'`
25298     done
25299     test ! -n "$as_dirs" || mkdir $as_dirs
25300   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25301 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25302    { (exit 1); exit 1; }; }; }
25303
25304   ac_builddir=.
25305
25306 if test "$ac_dir" != .; then
25307   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25308   # A "../" for each directory in $ac_dir_suffix.
25309   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25310 else
25311   ac_dir_suffix= ac_top_builddir=
25312 fi
25313
25314 case $srcdir in
25315   .)  # No --srcdir option.  We are building in place.
25316     ac_srcdir=.
25317     if test -z "$ac_top_builddir"; then
25318        ac_top_srcdir=.
25319     else
25320        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25321     fi ;;
25322   [\\/]* | ?:[\\/]* )  # Absolute path.
25323     ac_srcdir=$srcdir$ac_dir_suffix;
25324     ac_top_srcdir=$srcdir ;;
25325   *) # Relative path.
25326     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25327     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25328 esac
25329
25330 # Do not use `cd foo && pwd` to compute absolute paths, because
25331 # the directories may not exist.
25332 case `pwd` in
25333 .) ac_abs_builddir="$ac_dir";;
25334 *)
25335   case "$ac_dir" in
25336   .) ac_abs_builddir=`pwd`;;
25337   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25338   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25339   esac;;
25340 esac
25341 case $ac_abs_builddir in
25342 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25343 *)
25344   case ${ac_top_builddir}. in
25345   .) ac_abs_top_builddir=$ac_abs_builddir;;
25346   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25347   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25348   esac;;
25349 esac
25350 case $ac_abs_builddir in
25351 .) ac_abs_srcdir=$ac_srcdir;;
25352 *)
25353   case $ac_srcdir in
25354   .) ac_abs_srcdir=$ac_abs_builddir;;
25355   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25356   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25357   esac;;
25358 esac
25359 case $ac_abs_builddir in
25360 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25361 *)
25362   case $ac_top_srcdir in
25363   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25364   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25365   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25366   esac;;
25367 esac
25368
25369
25370   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25371 echo "$as_me: executing $ac_dest commands" >&6;}
25372   case $ac_dest in
25373     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25374     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25375     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25376     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25377     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25378     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25379     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25380     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25381     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25382     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
25383     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
25384     test/Programs/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.tests test/Programs/Makefile.tests ;;
25385     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
25386     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
25387     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
25388     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
25389     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
25390     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
25391     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
25392     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
25393     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
25394     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
25395     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
25396     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
25397     test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
25398     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
25399     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
25400     test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
25401     test/Programs/External/SPEC/Makefile.spec2000 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec2000 test/Programs/External/SPEC/Makefile.spec2000 ;;
25402     test/Programs/External/SPEC/Makefile.spec95 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec95 test/Programs/External/SPEC/Makefile.spec95 ;;
25403     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
25404     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
25405     test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;;
25406     test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;;
25407     test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;;
25408     test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;;
25409     test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;;
25410     test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;;
25411     test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;;
25412     test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;;
25413     test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;;
25414     test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;;
25415     test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;;
25416     test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;;
25417     test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;;
25418     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
25419     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
25420     test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
25421     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25422     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25423     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25424   esac
25425 done
25426 _ACEOF
25427
25428 cat >>$CONFIG_STATUS <<\_ACEOF
25429
25430 { (exit 0); exit 0; }
25431 _ACEOF
25432 chmod +x $CONFIG_STATUS
25433 ac_clean_files=$ac_clean_files_save
25434
25435
25436 # configure is writing to config.log, and then calls config.status.
25437 # config.status does its own redirection, appending to config.log.
25438 # Unfortunately, on DOS this fails, as config.log is still kept open
25439 # by configure, so config.status won't be able to write to it; its
25440 # output is simply discarded.  So we exec the FD to /dev/null,
25441 # effectively closing config.log, so it can be properly (re)opened and
25442 # appended to by config.status.  When coming back to configure, we
25443 # need to make the FD available again.
25444 if test "$no_create" != yes; then
25445   ac_cs_success=:
25446   ac_config_status_args=
25447   test "$silent" = yes &&
25448     ac_config_status_args="$ac_config_status_args --quiet"
25449   exec 5>/dev/null
25450   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25451   exec 5>>config.log
25452   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25453   # would make configure fail if this is the last instruction.
25454   $ac_cs_success || { (exit 1); exit 1; }
25455 fi
25456
25457 #
25458 # CONFIG_SUBDIRS section.
25459 #
25460 if test "$no_recursion" != yes; then
25461
25462   # Remove --cache-file and --srcdir arguments so they do not pile up.
25463   ac_sub_configure_args=
25464   ac_prev=
25465   for ac_arg in $ac_configure_args; do
25466     if test -n "$ac_prev"; then
25467       ac_prev=
25468       continue
25469     fi
25470     case $ac_arg in
25471     -cache-file | --cache-file | --cache-fil | --cache-fi \
25472     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25473       ac_prev=cache_file ;;
25474     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25475     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25476     | --c=*)
25477       ;;
25478     --config-cache | -C)
25479       ;;
25480     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25481       ac_prev=srcdir ;;
25482     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25483       ;;
25484     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25485       ac_prev=prefix ;;
25486     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25487       ;;
25488     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25489     esac
25490   done
25491
25492   # Always prepend --prefix to ensure using the same prefix
25493   # in subdir configurations.
25494   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25495
25496   ac_popdir=`pwd`
25497   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25498
25499     # Do not complain, so a configure script can configure whichever
25500     # parts of a large source tree are present.
25501     test -d $srcdir/$ac_dir || continue
25502
25503     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25504 echo "$as_me: configuring in $ac_dir" >&6;}
25505     { if $as_mkdir_p; then
25506     mkdir -p "$ac_dir"
25507   else
25508     as_dir="$ac_dir"
25509     as_dirs=
25510     while test ! -d "$as_dir"; do
25511       as_dirs="$as_dir $as_dirs"
25512       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25513 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25514          X"$as_dir" : 'X\(//\)[^/]' \| \
25515          X"$as_dir" : 'X\(//\)$' \| \
25516          X"$as_dir" : 'X\(/\)' \| \
25517          .     : '\(.\)' 2>/dev/null ||
25518 echo X"$as_dir" |
25519     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25520           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25521           /^X\(\/\/\)$/{ s//\1/; q; }
25522           /^X\(\/\).*/{ s//\1/; q; }
25523           s/.*/./; q'`
25524     done
25525     test ! -n "$as_dirs" || mkdir $as_dirs
25526   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25527 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25528    { (exit 1); exit 1; }; }; }
25529
25530     ac_builddir=.
25531
25532 if test "$ac_dir" != .; then
25533   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25534   # A "../" for each directory in $ac_dir_suffix.
25535   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25536 else
25537   ac_dir_suffix= ac_top_builddir=
25538 fi
25539
25540 case $srcdir in
25541   .)  # No --srcdir option.  We are building in place.
25542     ac_srcdir=.
25543     if test -z "$ac_top_builddir"; then
25544        ac_top_srcdir=.
25545     else
25546        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25547     fi ;;
25548   [\\/]* | ?:[\\/]* )  # Absolute path.
25549     ac_srcdir=$srcdir$ac_dir_suffix;
25550     ac_top_srcdir=$srcdir ;;
25551   *) # Relative path.
25552     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25553     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25554 esac
25555
25556 # Do not use `cd foo && pwd` to compute absolute paths, because
25557 # the directories may not exist.
25558 case `pwd` in
25559 .) ac_abs_builddir="$ac_dir";;
25560 *)
25561   case "$ac_dir" in
25562   .) ac_abs_builddir=`pwd`;;
25563   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25564   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25565   esac;;
25566 esac
25567 case $ac_abs_builddir in
25568 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25569 *)
25570   case ${ac_top_builddir}. in
25571   .) ac_abs_top_builddir=$ac_abs_builddir;;
25572   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25573   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25574   esac;;
25575 esac
25576 case $ac_abs_builddir in
25577 .) ac_abs_srcdir=$ac_srcdir;;
25578 *)
25579   case $ac_srcdir in
25580   .) ac_abs_srcdir=$ac_abs_builddir;;
25581   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25582   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25583   esac;;
25584 esac
25585 case $ac_abs_builddir in
25586 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25587 *)
25588   case $ac_top_srcdir in
25589   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25590   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25591   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25592   esac;;
25593 esac
25594
25595
25596     cd $ac_dir
25597
25598     # Check for guested configure; otherwise get Cygnus style configure.
25599     if test -f $ac_srcdir/configure.gnu; then
25600       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25601     elif test -f $ac_srcdir/configure; then
25602       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25603     elif test -f $ac_srcdir/configure.in; then
25604       ac_sub_configure=$ac_configure
25605     else
25606       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25607 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25608       ac_sub_configure=
25609     fi
25610
25611     # The recursion is here.
25612     if test -n "$ac_sub_configure"; then
25613       # Make the cache file name correct relative to the subdirectory.
25614       case $cache_file in
25615       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25616       *) # Relative path.
25617         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25618       esac
25619
25620       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25621 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25622       # The eval makes quoting arguments work.
25623       eval $ac_sub_configure $ac_sub_configure_args \
25624            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25625         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25626 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25627    { (exit 1); exit 1; }; }
25628     fi
25629
25630     cd $ac_popdir
25631   done
25632 fi
25633
25634
25635 if test $llvmgccwarn = yes
25636 then
25637         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25638 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25639         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25640 echo "$as_me: WARNING: ***** appear to be working." >&2;}
25641         { echo "$as_me:$LINENO: WARNING: ***** " >&5
25642 echo "$as_me: WARNING: ***** " >&2;}
25643         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25644 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25645         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25646 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25647         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25648 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25649 fi
25650