Add getAllocatableSet() function.
[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                          if test -d /home/vadve/lattner/local/x86/llvm-gcc
1897                          then
1898                            LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1899
1900                          fi
1901                  ;;
1902         *-*-solaris*)
1903              OS=SunOS
1904
1905                          if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1906                          then
1907                    LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1908
1909                          fi
1910                  ;;
1911         *-*-cygwin*)
1912              OS=Cygwin
1913
1914                  ;;
1915         *-*-darwin*)
1916              OS=Darwin
1917
1918                  ;;
1919         *-*-aix*)
1920              OS=AIX
1921
1922                  ;;
1923         *)       OS=Unknown
1924
1925                  ;;
1926 esac
1927
1928 case $target in
1929         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1930
1931                             ;;
1932 esac
1933
1934 case $target in
1935         i*86-*)           ARCH=x86
1936
1937                           ;;
1938         sparc*-*)         ARCH=Sparc
1939
1940                           ;;
1941         powerpc*-*)       ARCH=PowerPC
1942
1943                           ;;
1944         *)                ARCH=Unknown
1945
1946                           ;;
1947 esac
1948
1949 ac_ext=cc
1950 ac_cpp='$CXXCPP $CPPFLAGS'
1951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1954 if test -n "$ac_tool_prefix"; then
1955   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1956   do
1957     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1959 echo "$as_me:$LINENO: checking for $ac_word" >&5
1960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1961 if test "${ac_cv_prog_CXX+set}" = set; then
1962   echo $ECHO_N "(cached) $ECHO_C" >&6
1963 else
1964   if test -n "$CXX"; then
1965   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1966 else
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 for as_dir in $PATH
1969 do
1970   IFS=$as_save_IFS
1971   test -z "$as_dir" && as_dir=.
1972   for ac_exec_ext in '' $ac_executable_extensions; do
1973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976     break 2
1977   fi
1978 done
1979 done
1980
1981 fi
1982 fi
1983 CXX=$ac_cv_prog_CXX
1984 if test -n "$CXX"; then
1985   echo "$as_me:$LINENO: result: $CXX" >&5
1986 echo "${ECHO_T}$CXX" >&6
1987 else
1988   echo "$as_me:$LINENO: result: no" >&5
1989 echo "${ECHO_T}no" >&6
1990 fi
1991
1992     test -n "$CXX" && break
1993   done
1994 fi
1995 if test -z "$CXX"; then
1996   ac_ct_CXX=$CXX
1997   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1998 do
1999   # Extract the first word of "$ac_prog", so it can be a program name with args.
2000 set dummy $ac_prog; ac_word=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2004   echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006   if test -n "$ac_ct_CXX"; then
2007   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2008 else
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 for as_dir in $PATH
2011 do
2012   IFS=$as_save_IFS
2013   test -z "$as_dir" && as_dir=.
2014   for ac_exec_ext in '' $ac_executable_extensions; do
2015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016     ac_cv_prog_ac_ct_CXX="$ac_prog"
2017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018     break 2
2019   fi
2020 done
2021 done
2022
2023 fi
2024 fi
2025 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2026 if test -n "$ac_ct_CXX"; then
2027   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2028 echo "${ECHO_T}$ac_ct_CXX" >&6
2029 else
2030   echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2032 fi
2033
2034   test -n "$ac_ct_CXX" && break
2035 done
2036 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2037
2038   CXX=$ac_ct_CXX
2039 fi
2040
2041
2042 # Provide some information about the compiler.
2043 echo "$as_me:$LINENO:" \
2044      "checking for C++ compiler version" >&5
2045 ac_compiler=`set X $ac_compile; echo $2`
2046 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2047   (eval $ac_compiler --version </dev/null >&5) 2>&5
2048   ac_status=$?
2049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050   (exit $ac_status); }
2051 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2052   (eval $ac_compiler -v </dev/null >&5) 2>&5
2053   ac_status=$?
2054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055   (exit $ac_status); }
2056 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2057   (eval $ac_compiler -V </dev/null >&5) 2>&5
2058   ac_status=$?
2059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060   (exit $ac_status); }
2061
2062 cat >conftest.$ac_ext <<_ACEOF
2063 /* confdefs.h.  */
2064 _ACEOF
2065 cat confdefs.h >>conftest.$ac_ext
2066 cat >>conftest.$ac_ext <<_ACEOF
2067 /* end confdefs.h.  */
2068
2069 int
2070 main ()
2071 {
2072
2073   ;
2074   return 0;
2075 }
2076 _ACEOF
2077 ac_clean_files_save=$ac_clean_files
2078 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2079 # Try to create an executable without -o first, disregard a.out.
2080 # It will help us diagnose broken compilers, and finding out an intuition
2081 # of exeext.
2082 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2083 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2084 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2085 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2086   (eval $ac_link_default) 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); }; then
2090   # Find the output, starting from the most likely.  This scheme is
2091 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2092 # resort.
2093
2094 # Be careful to initialize this variable, since it used to be cached.
2095 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2096 ac_cv_exeext=
2097 # b.out is created by i960 compilers.
2098 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2099 do
2100   test -f "$ac_file" || continue
2101   case $ac_file in
2102     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2103         ;;
2104     conftest.$ac_ext )
2105         # This is the source file.
2106         ;;
2107     [ab].out )
2108         # We found the default executable, but exeext='' is most
2109         # certainly right.
2110         break;;
2111     *.* )
2112         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2113         # FIXME: I believe we export ac_cv_exeext for Libtool,
2114         # but it would be cool to find out if it's true.  Does anybody
2115         # maintain Libtool? --akim.
2116         export ac_cv_exeext
2117         break;;
2118     * )
2119         break;;
2120   esac
2121 done
2122 else
2123   echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2125
2126 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2127 See \`config.log' for more details." >&5
2128 echo "$as_me: error: C++ compiler cannot create executables
2129 See \`config.log' for more details." >&2;}
2130    { (exit 77); exit 77; }; }
2131 fi
2132
2133 ac_exeext=$ac_cv_exeext
2134 echo "$as_me:$LINENO: result: $ac_file" >&5
2135 echo "${ECHO_T}$ac_file" >&6
2136
2137 # Check the compiler produces executables we can run.  If not, either
2138 # the compiler is broken, or we cross compile.
2139 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2140 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2141 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2142 # If not cross compiling, check that we can run a simple program.
2143 if test "$cross_compiling" != yes; then
2144   if { ac_try='./$ac_file'
2145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2146   (eval $ac_try) 2>&5
2147   ac_status=$?
2148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149   (exit $ac_status); }; }; then
2150     cross_compiling=no
2151   else
2152     if test "$cross_compiling" = maybe; then
2153         cross_compiling=yes
2154     else
2155         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2156 If you meant to cross compile, use \`--host'.
2157 See \`config.log' for more details." >&5
2158 echo "$as_me: error: cannot run C++ compiled programs.
2159 If you meant to cross compile, use \`--host'.
2160 See \`config.log' for more details." >&2;}
2161    { (exit 1); exit 1; }; }
2162     fi
2163   fi
2164 fi
2165 echo "$as_me:$LINENO: result: yes" >&5
2166 echo "${ECHO_T}yes" >&6
2167
2168 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2169 ac_clean_files=$ac_clean_files_save
2170 # Check the compiler produces executables we can run.  If not, either
2171 # the compiler is broken, or we cross compile.
2172 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2173 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2174 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2175 echo "${ECHO_T}$cross_compiling" >&6
2176
2177 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2178 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2180   (eval $ac_link) 2>&5
2181   ac_status=$?
2182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183   (exit $ac_status); }; then
2184   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2185 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2186 # work properly (i.e., refer to `conftest.exe'), while it won't with
2187 # `rm'.
2188 for ac_file in conftest.exe conftest conftest.*; do
2189   test -f "$ac_file" || continue
2190   case $ac_file in
2191     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2192     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2193           export ac_cv_exeext
2194           break;;
2195     * ) break;;
2196   esac
2197 done
2198 else
2199   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2200 See \`config.log' for more details." >&5
2201 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2202 See \`config.log' for more details." >&2;}
2203    { (exit 1); exit 1; }; }
2204 fi
2205
2206 rm -f conftest$ac_cv_exeext
2207 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2208 echo "${ECHO_T}$ac_cv_exeext" >&6
2209
2210 rm -f conftest.$ac_ext
2211 EXEEXT=$ac_cv_exeext
2212 ac_exeext=$EXEEXT
2213 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2214 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2215 if test "${ac_cv_objext+set}" = set; then
2216   echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218   cat >conftest.$ac_ext <<_ACEOF
2219 /* confdefs.h.  */
2220 _ACEOF
2221 cat confdefs.h >>conftest.$ac_ext
2222 cat >>conftest.$ac_ext <<_ACEOF
2223 /* end confdefs.h.  */
2224
2225 int
2226 main ()
2227 {
2228
2229   ;
2230   return 0;
2231 }
2232 _ACEOF
2233 rm -f conftest.o conftest.obj
2234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2235   (eval $ac_compile) 2>&5
2236   ac_status=$?
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); }; then
2239   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2240   case $ac_file in
2241     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2242     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2243        break;;
2244   esac
2245 done
2246 else
2247   echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2249
2250 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2251 See \`config.log' for more details." >&5
2252 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2253 See \`config.log' for more details." >&2;}
2254    { (exit 1); exit 1; }; }
2255 fi
2256
2257 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2258 fi
2259 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2260 echo "${ECHO_T}$ac_cv_objext" >&6
2261 OBJEXT=$ac_cv_objext
2262 ac_objext=$OBJEXT
2263 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2264 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2265 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2266   echo $ECHO_N "(cached) $ECHO_C" >&6
2267 else
2268   cat >conftest.$ac_ext <<_ACEOF
2269 /* confdefs.h.  */
2270 _ACEOF
2271 cat confdefs.h >>conftest.$ac_ext
2272 cat >>conftest.$ac_ext <<_ACEOF
2273 /* end confdefs.h.  */
2274
2275 int
2276 main ()
2277 {
2278 #ifndef __GNUC__
2279        choke me
2280 #endif
2281
2282   ;
2283   return 0;
2284 }
2285 _ACEOF
2286 rm -f conftest.$ac_objext
2287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2288   (eval $ac_compile) 2>conftest.er1
2289   ac_status=$?
2290   grep -v '^ *+' conftest.er1 >conftest.err
2291   rm -f conftest.er1
2292   cat conftest.err >&5
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); } &&
2295          { ac_try='test -z "$ac_cxx_werror_flag"
2296                          || test ! -s conftest.err'
2297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298   (eval $ac_try) 2>&5
2299   ac_status=$?
2300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301   (exit $ac_status); }; } &&
2302          { ac_try='test -s conftest.$ac_objext'
2303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304   (eval $ac_try) 2>&5
2305   ac_status=$?
2306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307   (exit $ac_status); }; }; then
2308   ac_compiler_gnu=yes
2309 else
2310   echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2312
2313 ac_compiler_gnu=no
2314 fi
2315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2316 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2317
2318 fi
2319 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2320 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2321 GXX=`test $ac_compiler_gnu = yes && echo yes`
2322 ac_test_CXXFLAGS=${CXXFLAGS+set}
2323 ac_save_CXXFLAGS=$CXXFLAGS
2324 CXXFLAGS="-g"
2325 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2326 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2327 if test "${ac_cv_prog_cxx_g+set}" = set; then
2328   echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330   cat >conftest.$ac_ext <<_ACEOF
2331 /* confdefs.h.  */
2332 _ACEOF
2333 cat confdefs.h >>conftest.$ac_ext
2334 cat >>conftest.$ac_ext <<_ACEOF
2335 /* end confdefs.h.  */
2336
2337 int
2338 main ()
2339 {
2340
2341   ;
2342   return 0;
2343 }
2344 _ACEOF
2345 rm -f conftest.$ac_objext
2346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2347   (eval $ac_compile) 2>conftest.er1
2348   ac_status=$?
2349   grep -v '^ *+' conftest.er1 >conftest.err
2350   rm -f conftest.er1
2351   cat conftest.err >&5
2352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353   (exit $ac_status); } &&
2354          { ac_try='test -z "$ac_cxx_werror_flag"
2355                          || test ! -s conftest.err'
2356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357   (eval $ac_try) 2>&5
2358   ac_status=$?
2359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360   (exit $ac_status); }; } &&
2361          { ac_try='test -s conftest.$ac_objext'
2362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363   (eval $ac_try) 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); }; }; then
2367   ac_cv_prog_cxx_g=yes
2368 else
2369   echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2371
2372 ac_cv_prog_cxx_g=no
2373 fi
2374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2375 fi
2376 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2377 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2378 if test "$ac_test_CXXFLAGS" = set; then
2379   CXXFLAGS=$ac_save_CXXFLAGS
2380 elif test $ac_cv_prog_cxx_g = yes; then
2381   if test "$GXX" = yes; then
2382     CXXFLAGS="-g -O2"
2383   else
2384     CXXFLAGS="-g"
2385   fi
2386 else
2387   if test "$GXX" = yes; then
2388     CXXFLAGS="-O2"
2389   else
2390     CXXFLAGS=
2391   fi
2392 fi
2393 for ac_declaration in \
2394    '' \
2395    'extern "C" void std::exit (int) throw (); using std::exit;' \
2396    'extern "C" void std::exit (int); using std::exit;' \
2397    'extern "C" void exit (int) throw ();' \
2398    'extern "C" void exit (int);' \
2399    'void exit (int);'
2400 do
2401   cat >conftest.$ac_ext <<_ACEOF
2402 /* confdefs.h.  */
2403 _ACEOF
2404 cat confdefs.h >>conftest.$ac_ext
2405 cat >>conftest.$ac_ext <<_ACEOF
2406 /* end confdefs.h.  */
2407 $ac_declaration
2408 #include <stdlib.h>
2409 int
2410 main ()
2411 {
2412 exit (42);
2413   ;
2414   return 0;
2415 }
2416 _ACEOF
2417 rm -f conftest.$ac_objext
2418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2419   (eval $ac_compile) 2>conftest.er1
2420   ac_status=$?
2421   grep -v '^ *+' conftest.er1 >conftest.err
2422   rm -f conftest.er1
2423   cat conftest.err >&5
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); } &&
2426          { ac_try='test -z "$ac_cxx_werror_flag"
2427                          || test ! -s conftest.err'
2428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429   (eval $ac_try) 2>&5
2430   ac_status=$?
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); }; } &&
2433          { ac_try='test -s conftest.$ac_objext'
2434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435   (eval $ac_try) 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }; }; then
2439   :
2440 else
2441   echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2443
2444 continue
2445 fi
2446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2447   cat >conftest.$ac_ext <<_ACEOF
2448 /* confdefs.h.  */
2449 _ACEOF
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h.  */
2453 $ac_declaration
2454 int
2455 main ()
2456 {
2457 exit (42);
2458   ;
2459   return 0;
2460 }
2461 _ACEOF
2462 rm -f conftest.$ac_objext
2463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2464   (eval $ac_compile) 2>conftest.er1
2465   ac_status=$?
2466   grep -v '^ *+' conftest.er1 >conftest.err
2467   rm -f conftest.er1
2468   cat conftest.err >&5
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); } &&
2471          { ac_try='test -z "$ac_cxx_werror_flag"
2472                          || test ! -s conftest.err'
2473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474   (eval $ac_try) 2>&5
2475   ac_status=$?
2476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477   (exit $ac_status); }; } &&
2478          { ac_try='test -s conftest.$ac_objext'
2479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480   (eval $ac_try) 2>&5
2481   ac_status=$?
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); }; }; then
2484   break
2485 else
2486   echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2488
2489 fi
2490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2491 done
2492 rm -f conftest*
2493 if test -n "$ac_declaration"; then
2494   echo '#ifdef __cplusplus' >>confdefs.h
2495   echo $ac_declaration      >>confdefs.h
2496   echo '#endif'             >>confdefs.h
2497 fi
2498
2499 ac_ext=c
2500 ac_cpp='$CPP $CPPFLAGS'
2501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2504
2505 ac_ext=c
2506 ac_cpp='$CPP $CPPFLAGS'
2507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510 if test -n "$ac_tool_prefix"; then
2511   for ac_prog in gcc
2512   do
2513     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2514 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2515 echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2517 if test "${ac_cv_prog_CC+set}" = set; then
2518   echo $ECHO_N "(cached) $ECHO_C" >&6
2519 else
2520   if test -n "$CC"; then
2521   ac_cv_prog_CC="$CC" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526   IFS=$as_save_IFS
2527   test -z "$as_dir" && as_dir=.
2528   for ac_exec_ext in '' $ac_executable_extensions; do
2529   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532     break 2
2533   fi
2534 done
2535 done
2536
2537 fi
2538 fi
2539 CC=$ac_cv_prog_CC
2540 if test -n "$CC"; then
2541   echo "$as_me:$LINENO: result: $CC" >&5
2542 echo "${ECHO_T}$CC" >&6
2543 else
2544   echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6
2546 fi
2547
2548     test -n "$CC" && break
2549   done
2550 fi
2551 if test -z "$CC"; then
2552   ac_ct_CC=$CC
2553   for ac_prog in gcc
2554 do
2555   # Extract the first word of "$ac_prog", so it can be a program name with args.
2556 set dummy $ac_prog; ac_word=$2
2557 echo "$as_me:$LINENO: checking for $ac_word" >&5
2558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2560   echo $ECHO_N "(cached) $ECHO_C" >&6
2561 else
2562   if test -n "$ac_ct_CC"; then
2563   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2564 else
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 for as_dir in $PATH
2567 do
2568   IFS=$as_save_IFS
2569   test -z "$as_dir" && as_dir=.
2570   for ac_exec_ext in '' $ac_executable_extensions; do
2571   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2572     ac_cv_prog_ac_ct_CC="$ac_prog"
2573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574     break 2
2575   fi
2576 done
2577 done
2578
2579 fi
2580 fi
2581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2582 if test -n "$ac_ct_CC"; then
2583   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2584 echo "${ECHO_T}$ac_ct_CC" >&6
2585 else
2586   echo "$as_me:$LINENO: result: no" >&5
2587 echo "${ECHO_T}no" >&6
2588 fi
2589
2590   test -n "$ac_ct_CC" && break
2591 done
2592
2593   CC=$ac_ct_CC
2594 fi
2595
2596
2597 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2598 See \`config.log' for more details." >&5
2599 echo "$as_me: error: no acceptable C compiler found in \$PATH
2600 See \`config.log' for more details." >&2;}
2601    { (exit 1); exit 1; }; }
2602
2603 # Provide some information about the compiler.
2604 echo "$as_me:$LINENO:" \
2605      "checking for C compiler version" >&5
2606 ac_compiler=`set X $ac_compile; echo $2`
2607 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2608   (eval $ac_compiler --version </dev/null >&5) 2>&5
2609   ac_status=$?
2610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611   (exit $ac_status); }
2612 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2613   (eval $ac_compiler -v </dev/null >&5) 2>&5
2614   ac_status=$?
2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616   (exit $ac_status); }
2617 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2618   (eval $ac_compiler -V </dev/null >&5) 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }
2622
2623 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2624 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2625 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2626   echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628   cat >conftest.$ac_ext <<_ACEOF
2629 /* confdefs.h.  */
2630 _ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h.  */
2634
2635 int
2636 main ()
2637 {
2638 #ifndef __GNUC__
2639        choke me
2640 #endif
2641
2642   ;
2643   return 0;
2644 }
2645 _ACEOF
2646 rm -f conftest.$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648   (eval $ac_compile) 2>conftest.er1
2649   ac_status=$?
2650   grep -v '^ *+' conftest.er1 >conftest.err
2651   rm -f conftest.er1
2652   cat conftest.err >&5
2653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654   (exit $ac_status); } &&
2655          { ac_try='test -z "$ac_c_werror_flag"
2656                          || test ! -s conftest.err'
2657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658   (eval $ac_try) 2>&5
2659   ac_status=$?
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }; } &&
2662          { ac_try='test -s conftest.$ac_objext'
2663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664   (eval $ac_try) 2>&5
2665   ac_status=$?
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); }; }; then
2668   ac_compiler_gnu=yes
2669 else
2670   echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2672
2673 ac_compiler_gnu=no
2674 fi
2675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2676 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2677
2678 fi
2679 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2680 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2681 GCC=`test $ac_compiler_gnu = yes && echo yes`
2682 ac_test_CFLAGS=${CFLAGS+set}
2683 ac_save_CFLAGS=$CFLAGS
2684 CFLAGS="-g"
2685 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2686 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2687 if test "${ac_cv_prog_cc_g+set}" = set; then
2688   echo $ECHO_N "(cached) $ECHO_C" >&6
2689 else
2690   cat >conftest.$ac_ext <<_ACEOF
2691 /* confdefs.h.  */
2692 _ACEOF
2693 cat confdefs.h >>conftest.$ac_ext
2694 cat >>conftest.$ac_ext <<_ACEOF
2695 /* end confdefs.h.  */
2696
2697 int
2698 main ()
2699 {
2700
2701   ;
2702   return 0;
2703 }
2704 _ACEOF
2705 rm -f conftest.$ac_objext
2706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707   (eval $ac_compile) 2>conftest.er1
2708   ac_status=$?
2709   grep -v '^ *+' conftest.er1 >conftest.err
2710   rm -f conftest.er1
2711   cat conftest.err >&5
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); } &&
2714          { ac_try='test -z "$ac_c_werror_flag"
2715                          || test ! -s conftest.err'
2716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717   (eval $ac_try) 2>&5
2718   ac_status=$?
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); }; } &&
2721          { ac_try='test -s conftest.$ac_objext'
2722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723   (eval $ac_try) 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; }; then
2727   ac_cv_prog_cc_g=yes
2728 else
2729   echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2731
2732 ac_cv_prog_cc_g=no
2733 fi
2734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2735 fi
2736 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2737 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2738 if test "$ac_test_CFLAGS" = set; then
2739   CFLAGS=$ac_save_CFLAGS
2740 elif test $ac_cv_prog_cc_g = yes; then
2741   if test "$GCC" = yes; then
2742     CFLAGS="-g -O2"
2743   else
2744     CFLAGS="-g"
2745   fi
2746 else
2747   if test "$GCC" = yes; then
2748     CFLAGS="-O2"
2749   else
2750     CFLAGS=
2751   fi
2752 fi
2753 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2754 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2755 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2756   echo $ECHO_N "(cached) $ECHO_C" >&6
2757 else
2758   ac_cv_prog_cc_stdc=no
2759 ac_save_CC=$CC
2760 cat >conftest.$ac_ext <<_ACEOF
2761 /* confdefs.h.  */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h.  */
2766 #include <stdarg.h>
2767 #include <stdio.h>
2768 #include <sys/types.h>
2769 #include <sys/stat.h>
2770 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2771 struct buf { int x; };
2772 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2773 static char *e (p, i)
2774      char **p;
2775      int i;
2776 {
2777   return p[i];
2778 }
2779 static char *f (char * (*g) (char **, int), char **p, ...)
2780 {
2781   char *s;
2782   va_list v;
2783   va_start (v,p);
2784   s = g (p, va_arg (v,int));
2785   va_end (v);
2786   return s;
2787 }
2788
2789 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2790    function prototypes and stuff, but not '\xHH' hex character constants.
2791    These don't provoke an error unfortunately, instead are silently treated
2792    as 'x'.  The following induces an error, until -std1 is added to get
2793    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2794    array size at least.  It's necessary to write '\x00'==0 to get something
2795    that's true only with -std1.  */
2796 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2797
2798 int test (int i, double x);
2799 struct s1 {int (*f) (int a);};
2800 struct s2 {int (*f) (double a);};
2801 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2802 int argc;
2803 char **argv;
2804 int
2805 main ()
2806 {
2807 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2808   ;
2809   return 0;
2810 }
2811 _ACEOF
2812 # Don't try gcc -ansi; that turns off useful extensions and
2813 # breaks some systems' header files.
2814 # AIX                   -qlanglvl=ansi
2815 # Ultrix and OSF/1      -std1
2816 # HP-UX 10.20 and later -Ae
2817 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2818 # SVR4                  -Xc -D__EXTENSIONS__
2819 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2820 do
2821   CC="$ac_save_CC $ac_arg"
2822   rm -f conftest.$ac_objext
2823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2824   (eval $ac_compile) 2>conftest.er1
2825   ac_status=$?
2826   grep -v '^ *+' conftest.er1 >conftest.err
2827   rm -f conftest.er1
2828   cat conftest.err >&5
2829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830   (exit $ac_status); } &&
2831          { ac_try='test -z "$ac_c_werror_flag"
2832                          || test ! -s conftest.err'
2833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834   (eval $ac_try) 2>&5
2835   ac_status=$?
2836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837   (exit $ac_status); }; } &&
2838          { ac_try='test -s conftest.$ac_objext'
2839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840   (eval $ac_try) 2>&5
2841   ac_status=$?
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); }; }; then
2844   ac_cv_prog_cc_stdc=$ac_arg
2845 break
2846 else
2847   echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2849
2850 fi
2851 rm -f conftest.err conftest.$ac_objext
2852 done
2853 rm -f conftest.$ac_ext conftest.$ac_objext
2854 CC=$ac_save_CC
2855
2856 fi
2857
2858 case "x$ac_cv_prog_cc_stdc" in
2859   x|xno)
2860     echo "$as_me:$LINENO: result: none needed" >&5
2861 echo "${ECHO_T}none needed" >&6 ;;
2862   *)
2863     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2864 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2865     CC="$CC $ac_cv_prog_cc_stdc" ;;
2866 esac
2867
2868 # Some people use a C++ compiler to compile C.  Since we use `exit',
2869 # in C++ we need to declare it.  In case someone uses the same compiler
2870 # for both compiling C and C++ we need to have the C++ compiler decide
2871 # the declaration of exit, since it's the most demanding environment.
2872 cat >conftest.$ac_ext <<_ACEOF
2873 #ifndef __cplusplus
2874   choke me
2875 #endif
2876 _ACEOF
2877 rm -f conftest.$ac_objext
2878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2879   (eval $ac_compile) 2>conftest.er1
2880   ac_status=$?
2881   grep -v '^ *+' conftest.er1 >conftest.err
2882   rm -f conftest.er1
2883   cat conftest.err >&5
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); } &&
2886          { ac_try='test -z "$ac_c_werror_flag"
2887                          || test ! -s conftest.err'
2888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889   (eval $ac_try) 2>&5
2890   ac_status=$?
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); }; } &&
2893          { ac_try='test -s conftest.$ac_objext'
2894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895   (eval $ac_try) 2>&5
2896   ac_status=$?
2897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); }; }; then
2899   for ac_declaration in \
2900    '' \
2901    'extern "C" void std::exit (int) throw (); using std::exit;' \
2902    'extern "C" void std::exit (int); using std::exit;' \
2903    'extern "C" void exit (int) throw ();' \
2904    'extern "C" void exit (int);' \
2905    'void exit (int);'
2906 do
2907   cat >conftest.$ac_ext <<_ACEOF
2908 /* confdefs.h.  */
2909 _ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h.  */
2913 $ac_declaration
2914 #include <stdlib.h>
2915 int
2916 main ()
2917 {
2918 exit (42);
2919   ;
2920   return 0;
2921 }
2922 _ACEOF
2923 rm -f conftest.$ac_objext
2924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2925   (eval $ac_compile) 2>conftest.er1
2926   ac_status=$?
2927   grep -v '^ *+' conftest.er1 >conftest.err
2928   rm -f conftest.er1
2929   cat conftest.err >&5
2930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931   (exit $ac_status); } &&
2932          { ac_try='test -z "$ac_c_werror_flag"
2933                          || test ! -s conftest.err'
2934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935   (eval $ac_try) 2>&5
2936   ac_status=$?
2937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938   (exit $ac_status); }; } &&
2939          { ac_try='test -s conftest.$ac_objext'
2940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941   (eval $ac_try) 2>&5
2942   ac_status=$?
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); }; }; then
2945   :
2946 else
2947   echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2949
2950 continue
2951 fi
2952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2953   cat >conftest.$ac_ext <<_ACEOF
2954 /* confdefs.h.  */
2955 _ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h.  */
2959 $ac_declaration
2960 int
2961 main ()
2962 {
2963 exit (42);
2964   ;
2965   return 0;
2966 }
2967 _ACEOF
2968 rm -f conftest.$ac_objext
2969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2970   (eval $ac_compile) 2>conftest.er1
2971   ac_status=$?
2972   grep -v '^ *+' conftest.er1 >conftest.err
2973   rm -f conftest.er1
2974   cat conftest.err >&5
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); } &&
2977          { ac_try='test -z "$ac_c_werror_flag"
2978                          || test ! -s conftest.err'
2979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980   (eval $ac_try) 2>&5
2981   ac_status=$?
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); }; } &&
2984          { ac_try='test -s conftest.$ac_objext'
2985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986   (eval $ac_try) 2>&5
2987   ac_status=$?
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); }; }; then
2990   break
2991 else
2992   echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2994
2995 fi
2996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2997 done
2998 rm -f conftest*
2999 if test -n "$ac_declaration"; then
3000   echo '#ifdef __cplusplus' >>confdefs.h
3001   echo $ac_declaration      >>confdefs.h
3002   echo '#endif'             >>confdefs.h
3003 fi
3004
3005 else
3006   echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3008
3009 fi
3010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3011 ac_ext=c
3012 ac_cpp='$CPP $CPPFLAGS'
3013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3016
3017 ac_ext=c
3018 ac_cpp='$CPP $CPPFLAGS'
3019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3022 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3023 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3024 # On Suns, sometimes $CPP names a directory.
3025 if test -n "$CPP" && test -d "$CPP"; then
3026   CPP=
3027 fi
3028 if test -z "$CPP"; then
3029   if test "${ac_cv_prog_CPP+set}" = set; then
3030   echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032       # Double quotes because CPP needs to be expanded
3033     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3034     do
3035       ac_preproc_ok=false
3036 for ac_c_preproc_warn_flag in '' yes
3037 do
3038   # Use a header file that comes with gcc, so configuring glibc
3039   # with a fresh cross-compiler works.
3040   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3041   # <limits.h> exists even on freestanding compilers.
3042   # On the NeXT, cc -E runs the code through the compiler's parser,
3043   # not just through cpp. "Syntax error" is here to catch this case.
3044   cat >conftest.$ac_ext <<_ACEOF
3045 /* confdefs.h.  */
3046 _ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h.  */
3050 #ifdef __STDC__
3051 # include <limits.h>
3052 #else
3053 # include <assert.h>
3054 #endif
3055                      Syntax error
3056 _ACEOF
3057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3058   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3059   ac_status=$?
3060   grep -v '^ *+' conftest.er1 >conftest.err
3061   rm -f conftest.er1
3062   cat conftest.err >&5
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); } >/dev/null; then
3065   if test -s conftest.err; then
3066     ac_cpp_err=$ac_c_preproc_warn_flag
3067     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3068   else
3069     ac_cpp_err=
3070   fi
3071 else
3072   ac_cpp_err=yes
3073 fi
3074 if test -z "$ac_cpp_err"; then
3075   :
3076 else
3077   echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3079
3080   # Broken: fails on valid input.
3081 continue
3082 fi
3083 rm -f conftest.err conftest.$ac_ext
3084
3085   # OK, works on sane cases.  Now check whether non-existent headers
3086   # can be detected and how.
3087   cat >conftest.$ac_ext <<_ACEOF
3088 /* confdefs.h.  */
3089 _ACEOF
3090 cat confdefs.h >>conftest.$ac_ext
3091 cat >>conftest.$ac_ext <<_ACEOF
3092 /* end confdefs.h.  */
3093 #include <ac_nonexistent.h>
3094 _ACEOF
3095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3096   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3097   ac_status=$?
3098   grep -v '^ *+' conftest.er1 >conftest.err
3099   rm -f conftest.er1
3100   cat conftest.err >&5
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); } >/dev/null; then
3103   if test -s conftest.err; then
3104     ac_cpp_err=$ac_c_preproc_warn_flag
3105     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3106   else
3107     ac_cpp_err=
3108   fi
3109 else
3110   ac_cpp_err=yes
3111 fi
3112 if test -z "$ac_cpp_err"; then
3113   # Broken: success on invalid input.
3114 continue
3115 else
3116   echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119   # Passes both tests.
3120 ac_preproc_ok=:
3121 break
3122 fi
3123 rm -f conftest.err conftest.$ac_ext
3124
3125 done
3126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3127 rm -f conftest.err conftest.$ac_ext
3128 if $ac_preproc_ok; then
3129   break
3130 fi
3131
3132     done
3133     ac_cv_prog_CPP=$CPP
3134
3135 fi
3136   CPP=$ac_cv_prog_CPP
3137 else
3138   ac_cv_prog_CPP=$CPP
3139 fi
3140 echo "$as_me:$LINENO: result: $CPP" >&5
3141 echo "${ECHO_T}$CPP" >&6
3142 ac_preproc_ok=false
3143 for ac_c_preproc_warn_flag in '' yes
3144 do
3145   # Use a header file that comes with gcc, so configuring glibc
3146   # with a fresh cross-compiler works.
3147   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3148   # <limits.h> exists even on freestanding compilers.
3149   # On the NeXT, cc -E runs the code through the compiler's parser,
3150   # not just through cpp. "Syntax error" is here to catch this case.
3151   cat >conftest.$ac_ext <<_ACEOF
3152 /* confdefs.h.  */
3153 _ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h.  */
3157 #ifdef __STDC__
3158 # include <limits.h>
3159 #else
3160 # include <assert.h>
3161 #endif
3162                      Syntax error
3163 _ACEOF
3164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3165   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3166   ac_status=$?
3167   grep -v '^ *+' conftest.er1 >conftest.err
3168   rm -f conftest.er1
3169   cat conftest.err >&5
3170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171   (exit $ac_status); } >/dev/null; then
3172   if test -s conftest.err; then
3173     ac_cpp_err=$ac_c_preproc_warn_flag
3174     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3175   else
3176     ac_cpp_err=
3177   fi
3178 else
3179   ac_cpp_err=yes
3180 fi
3181 if test -z "$ac_cpp_err"; then
3182   :
3183 else
3184   echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3186
3187   # Broken: fails on valid input.
3188 continue
3189 fi
3190 rm -f conftest.err conftest.$ac_ext
3191
3192   # OK, works on sane cases.  Now check whether non-existent headers
3193   # can be detected and how.
3194   cat >conftest.$ac_ext <<_ACEOF
3195 /* confdefs.h.  */
3196 _ACEOF
3197 cat confdefs.h >>conftest.$ac_ext
3198 cat >>conftest.$ac_ext <<_ACEOF
3199 /* end confdefs.h.  */
3200 #include <ac_nonexistent.h>
3201 _ACEOF
3202 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3203   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3204   ac_status=$?
3205   grep -v '^ *+' conftest.er1 >conftest.err
3206   rm -f conftest.er1
3207   cat conftest.err >&5
3208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209   (exit $ac_status); } >/dev/null; then
3210   if test -s conftest.err; then
3211     ac_cpp_err=$ac_c_preproc_warn_flag
3212     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3213   else
3214     ac_cpp_err=
3215   fi
3216 else
3217   ac_cpp_err=yes
3218 fi
3219 if test -z "$ac_cpp_err"; then
3220   # Broken: success on invalid input.
3221 continue
3222 else
3223   echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3225
3226   # Passes both tests.
3227 ac_preproc_ok=:
3228 break
3229 fi
3230 rm -f conftest.err conftest.$ac_ext
3231
3232 done
3233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3234 rm -f conftest.err conftest.$ac_ext
3235 if $ac_preproc_ok; then
3236   :
3237 else
3238   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3239 See \`config.log' for more details." >&5
3240 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3241 See \`config.log' for more details." >&2;}
3242    { (exit 1); exit 1; }; }
3243 fi
3244
3245 ac_ext=c
3246 ac_cpp='$CPP $CPPFLAGS'
3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250
3251
3252 if test "$GCC" != "yes"
3253 then
3254         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3255 echo "$as_me: error: gcc required but not found" >&2;}
3256    { (exit 1); exit 1; }; }
3257 fi
3258 if test "$GXX" != "yes"
3259 then
3260         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3261 echo "$as_me: error: g++ required but not found" >&2;}
3262    { (exit 1); exit 1; }; }
3263 fi
3264
3265 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3266 if test "$gccmajor" -lt "3"
3267 then
3268         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3269 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3270    { (exit 1); exit 1; }; }
3271 fi
3272
3273  echo "$as_me:$LINENO: checking for GNU make" >&5
3274 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3275 if test "${_cv_gnu_make_command+set}" = set; then
3276   echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278   _cv_gnu_make_command='' ;
3279                 for a in "$MAKE" make gmake gnumake ; do
3280                         if test -z "$a" ; then continue ; fi ;
3281                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3282                                 _cv_gnu_make_command=$a ;
3283                                 break;
3284                         fi
3285                 done ;
3286
3287 fi
3288 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3289 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3290         if test  "x$_cv_gnu_make_command" != "x"  ; then
3291                 ifGNUmake='' ;
3292         else
3293                 ifGNUmake='#' ;
3294                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3295 echo "${ECHO_T}\"Not found\"" >&6;
3296         fi
3297
3298
3299 if test -z "$_cv_gnu_make_command"
3300 then
3301         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3302 echo "$as_me: error: GNU Make required but not found" >&2;}
3303    { (exit 1); exit 1; }; }
3304 fi
3305
3306
3307 echo "$as_me:$LINENO: checking " >&5
3308 echo $ECHO_N "checking ... $ECHO_C" >&6
3309 if test "${ac_cv_has_flex+set}" = set; then
3310   echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312   for ac_prog in flex lex
3313 do
3314   # Extract the first word of "$ac_prog", so it can be a program name with args.
3315 set dummy $ac_prog; ac_word=$2
3316 echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318 if test "${ac_cv_prog_LEX+set}" = set; then
3319   echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321   if test -n "$LEX"; then
3322   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3323 else
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3326 do
3327   IFS=$as_save_IFS
3328   test -z "$as_dir" && as_dir=.
3329   for ac_exec_ext in '' $ac_executable_extensions; do
3330   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331     ac_cv_prog_LEX="$ac_prog"
3332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333     break 2
3334   fi
3335 done
3336 done
3337
3338 fi
3339 fi
3340 LEX=$ac_cv_prog_LEX
3341 if test -n "$LEX"; then
3342   echo "$as_me:$LINENO: result: $LEX" >&5
3343 echo "${ECHO_T}$LEX" >&6
3344 else
3345   echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3347 fi
3348
3349   test -n "$LEX" && break
3350 done
3351 test -n "$LEX" || LEX=":"
3352
3353 if test -z "$LEXLIB"
3354 then
3355   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3356 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3357 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3358   echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360   ac_check_lib_save_LIBS=$LIBS
3361 LIBS="-lfl  $LIBS"
3362 cat >conftest.$ac_ext <<_ACEOF
3363 /* confdefs.h.  */
3364 _ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h.  */
3368
3369 /* Override any gcc2 internal prototype to avoid an error.  */
3370 #ifdef __cplusplus
3371 extern "C"
3372 #endif
3373 /* We use char because int might match the return type of a gcc2
3374    builtin and then its argument prototype would still apply.  */
3375 char yywrap ();
3376 int
3377 main ()
3378 {
3379 yywrap ();
3380   ;
3381   return 0;
3382 }
3383 _ACEOF
3384 rm -f conftest.$ac_objext conftest$ac_exeext
3385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3386   (eval $ac_link) 2>conftest.er1
3387   ac_status=$?
3388   grep -v '^ *+' conftest.er1 >conftest.err
3389   rm -f conftest.er1
3390   cat conftest.err >&5
3391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392   (exit $ac_status); } &&
3393          { ac_try='test -z "$ac_c_werror_flag"
3394                          || test ! -s conftest.err'
3395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396   (eval $ac_try) 2>&5
3397   ac_status=$?
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); }; } &&
3400          { ac_try='test -s conftest$ac_exeext'
3401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402   (eval $ac_try) 2>&5
3403   ac_status=$?
3404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405   (exit $ac_status); }; }; then
3406   ac_cv_lib_fl_yywrap=yes
3407 else
3408   echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3410
3411 ac_cv_lib_fl_yywrap=no
3412 fi
3413 rm -f conftest.err conftest.$ac_objext \
3414       conftest$ac_exeext conftest.$ac_ext
3415 LIBS=$ac_check_lib_save_LIBS
3416 fi
3417 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3418 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3419 if test $ac_cv_lib_fl_yywrap = yes; then
3420   LEXLIB="-lfl"
3421 else
3422   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3423 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3424 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3425   echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427   ac_check_lib_save_LIBS=$LIBS
3428 LIBS="-ll  $LIBS"
3429 cat >conftest.$ac_ext <<_ACEOF
3430 /* confdefs.h.  */
3431 _ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h.  */
3435
3436 /* Override any gcc2 internal prototype to avoid an error.  */
3437 #ifdef __cplusplus
3438 extern "C"
3439 #endif
3440 /* We use char because int might match the return type of a gcc2
3441    builtin and then its argument prototype would still apply.  */
3442 char yywrap ();
3443 int
3444 main ()
3445 {
3446 yywrap ();
3447   ;
3448   return 0;
3449 }
3450 _ACEOF
3451 rm -f conftest.$ac_objext conftest$ac_exeext
3452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3453   (eval $ac_link) 2>conftest.er1
3454   ac_status=$?
3455   grep -v '^ *+' conftest.er1 >conftest.err
3456   rm -f conftest.er1
3457   cat conftest.err >&5
3458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459   (exit $ac_status); } &&
3460          { ac_try='test -z "$ac_c_werror_flag"
3461                          || test ! -s conftest.err'
3462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463   (eval $ac_try) 2>&5
3464   ac_status=$?
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); }; } &&
3467          { ac_try='test -s conftest$ac_exeext'
3468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469   (eval $ac_try) 2>&5
3470   ac_status=$?
3471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); }; }; then
3473   ac_cv_lib_l_yywrap=yes
3474 else
3475   echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3477
3478 ac_cv_lib_l_yywrap=no
3479 fi
3480 rm -f conftest.err conftest.$ac_objext \
3481       conftest$ac_exeext conftest.$ac_ext
3482 LIBS=$ac_check_lib_save_LIBS
3483 fi
3484 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3485 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3486 if test $ac_cv_lib_l_yywrap = yes; then
3487   LEXLIB="-ll"
3488 fi
3489
3490 fi
3491
3492 fi
3493
3494 if test "x$LEX" != "x:"; then
3495   echo "$as_me:$LINENO: checking lex output file root" >&5
3496 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3497 if test "${ac_cv_prog_lex_root+set}" = set; then
3498   echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500   # The minimal lex program is just a single line: %%.  But some broken lexes
3501 # (Solaris, I think it was) want two %% lines, so accommodate them.
3502 cat >conftest.l <<_ACEOF
3503 %%
3504 %%
3505 _ACEOF
3506 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3507   (eval $LEX conftest.l) 2>&5
3508   ac_status=$?
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); }
3511 if test -f lex.yy.c; then
3512   ac_cv_prog_lex_root=lex.yy
3513 elif test -f lexyy.c; then
3514   ac_cv_prog_lex_root=lexyy
3515 else
3516   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3517 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3518    { (exit 1); exit 1; }; }
3519 fi
3520 fi
3521 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3522 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3523 rm -f conftest.l
3524 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3525
3526 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3527 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3528 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3529   echo $ECHO_N "(cached) $ECHO_C" >&6
3530 else
3531   # POSIX says lex can declare yytext either as a pointer or an array; the
3532 # default is implementation-dependent. Figure out which it is, since
3533 # not all implementations provide the %pointer and %array declarations.
3534 ac_cv_prog_lex_yytext_pointer=no
3535 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3536 ac_save_LIBS=$LIBS
3537 LIBS="$LIBS $LEXLIB"
3538 cat >conftest.$ac_ext <<_ACEOF
3539 `cat $LEX_OUTPUT_ROOT.c`
3540 _ACEOF
3541 rm -f conftest.$ac_objext conftest$ac_exeext
3542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3543   (eval $ac_link) 2>conftest.er1
3544   ac_status=$?
3545   grep -v '^ *+' conftest.er1 >conftest.err
3546   rm -f conftest.er1
3547   cat conftest.err >&5
3548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); } &&
3550          { ac_try='test -z "$ac_c_werror_flag"
3551                          || test ! -s conftest.err'
3552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553   (eval $ac_try) 2>&5
3554   ac_status=$?
3555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556   (exit $ac_status); }; } &&
3557          { ac_try='test -s conftest$ac_exeext'
3558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559   (eval $ac_try) 2>&5
3560   ac_status=$?
3561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562   (exit $ac_status); }; }; then
3563   ac_cv_prog_lex_yytext_pointer=yes
3564 else
3565   echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568 fi
3569 rm -f conftest.err conftest.$ac_objext \
3570       conftest$ac_exeext conftest.$ac_ext
3571 LIBS=$ac_save_LIBS
3572 rm -f "${LEX_OUTPUT_ROOT}.c"
3573
3574 fi
3575 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3576 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3577 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3578
3579 cat >>confdefs.h <<\_ACEOF
3580 #define YYTEXT_POINTER 1
3581 _ACEOF
3582
3583 fi
3584
3585 fi
3586
3587 fi
3588 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3589 echo "${ECHO_T}$ac_cv_has_flex" >&6
3590 if test "$LEX" != "flex"; then
3591   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3592 echo "$as_me: error: flex not found but required" >&2;}
3593    { (exit 1); exit 1; }; }
3594 fi
3595
3596 echo "$as_me:$LINENO: checking " >&5
3597 echo $ECHO_N "checking ... $ECHO_C" >&6
3598 if test "${ac_cv_has_bison+set}" = set; then
3599   echo $ECHO_N "(cached) $ECHO_C" >&6
3600 else
3601   for ac_prog in 'bison -y' byacc
3602 do
3603   # Extract the first word of "$ac_prog", so it can be a program name with args.
3604 set dummy $ac_prog; ac_word=$2
3605 echo "$as_me:$LINENO: checking for $ac_word" >&5
3606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3607 if test "${ac_cv_prog_YACC+set}" = set; then
3608   echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610   if test -n "$YACC"; then
3611   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3612 else
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH
3615 do
3616   IFS=$as_save_IFS
3617   test -z "$as_dir" && as_dir=.
3618   for ac_exec_ext in '' $ac_executable_extensions; do
3619   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620     ac_cv_prog_YACC="$ac_prog"
3621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3622     break 2
3623   fi
3624 done
3625 done
3626
3627 fi
3628 fi
3629 YACC=$ac_cv_prog_YACC
3630 if test -n "$YACC"; then
3631   echo "$as_me:$LINENO: result: $YACC" >&5
3632 echo "${ECHO_T}$YACC" >&6
3633 else
3634   echo "$as_me:$LINENO: result: no" >&5
3635 echo "${ECHO_T}no" >&6
3636 fi
3637
3638   test -n "$YACC" && break
3639 done
3640 test -n "$YACC" || YACC="yacc"
3641
3642
3643 fi
3644 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3645 echo "${ECHO_T}$ac_cv_has_bison" >&6
3646 if test "$YACC" != "bison -y"; then
3647   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3648 echo "$as_me: error: bison not found but required" >&2;}
3649    { (exit 1); exit 1; }; }
3650 else
3651   BISON=bison
3652
3653 fi
3654
3655 # Check whether --enable-shared or --disable-shared was given.
3656 if test "${enable_shared+set}" = set; then
3657   enableval="$enable_shared"
3658   p=${PACKAGE-default}
3659     case $enableval in
3660     yes) enable_shared=yes ;;
3661     no) enable_shared=no ;;
3662     *)
3663       enable_shared=no
3664       # Look at the argument we got.  We use all the common list separators.
3665       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3666       for pkg in $enableval; do
3667         IFS="$lt_save_ifs"
3668         if test "X$pkg" = "X$p"; then
3669           enable_shared=yes
3670         fi
3671       done
3672       IFS="$lt_save_ifs"
3673       ;;
3674     esac
3675 else
3676   enable_shared=yes
3677 fi;
3678
3679 # Check whether --enable-static or --disable-static was given.
3680 if test "${enable_static+set}" = set; then
3681   enableval="$enable_static"
3682   p=${PACKAGE-default}
3683     case $enableval in
3684     yes) enable_static=yes ;;
3685     no) enable_static=no ;;
3686     *)
3687      enable_static=no
3688       # Look at the argument we got.  We use all the common list separators.
3689       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3690       for pkg in $enableval; do
3691         IFS="$lt_save_ifs"
3692         if test "X$pkg" = "X$p"; then
3693           enable_static=yes
3694         fi
3695       done
3696       IFS="$lt_save_ifs"
3697       ;;
3698     esac
3699 else
3700   enable_static=yes
3701 fi;
3702
3703 # Check whether --enable-fast-install or --disable-fast-install was given.
3704 if test "${enable_fast_install+set}" = set; then
3705   enableval="$enable_fast_install"
3706   p=${PACKAGE-default}
3707     case $enableval in
3708     yes) enable_fast_install=yes ;;
3709     no) enable_fast_install=no ;;
3710     *)
3711       enable_fast_install=no
3712       # Look at the argument we got.  We use all the common list separators.
3713       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3714       for pkg in $enableval; do
3715         IFS="$lt_save_ifs"
3716         if test "X$pkg" = "X$p"; then
3717           enable_fast_install=yes
3718         fi
3719       done
3720       IFS="$lt_save_ifs"
3721       ;;
3722     esac
3723 else
3724   enable_fast_install=yes
3725 fi;
3726
3727 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3728 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3729 if test "${lt_cv_path_SED+set}" = set; then
3730   echo $ECHO_N "(cached) $ECHO_C" >&6
3731 else
3732   # Loop through the user's path and test for sed and gsed.
3733 # Then use that list of sed's as ones to test for truncation.
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 for as_dir in $PATH
3736 do
3737   IFS=$as_save_IFS
3738   test -z "$as_dir" && as_dir=.
3739   for lt_ac_prog in sed gsed; do
3740     for ac_exec_ext in '' $ac_executable_extensions; do
3741       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3742         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3743       fi
3744     done
3745   done
3746 done
3747 lt_ac_max=0
3748 lt_ac_count=0
3749 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3750 # along with /bin/sed that truncates output.
3751 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3752   test ! -f $lt_ac_sed && break
3753   cat /dev/null > conftest.in
3754   lt_ac_count=0
3755   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3756   # Check for GNU sed and select it if it is found.
3757   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3758     lt_cv_path_SED=$lt_ac_sed
3759     break
3760   fi
3761   while true; do
3762     cat conftest.in conftest.in >conftest.tmp
3763     mv conftest.tmp conftest.in
3764     cp conftest.in conftest.nl
3765     echo >>conftest.nl
3766     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3767     cmp -s conftest.out conftest.nl || break
3768     # 10000 chars as input seems more than enough
3769     test $lt_ac_count -gt 10 && break
3770     lt_ac_count=`expr $lt_ac_count + 1`
3771     if test $lt_ac_count -gt $lt_ac_max; then
3772       lt_ac_max=$lt_ac_count
3773       lt_cv_path_SED=$lt_ac_sed
3774     fi
3775   done
3776 done
3777 SED=$lt_cv_path_SED
3778
3779 fi
3780
3781 echo "$as_me:$LINENO: result: $SED" >&5
3782 echo "${ECHO_T}$SED" >&6
3783
3784 echo "$as_me:$LINENO: checking for egrep" >&5
3785 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3786 if test "${ac_cv_prog_egrep+set}" = set; then
3787   echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3790     then ac_cv_prog_egrep='grep -E'
3791     else ac_cv_prog_egrep='egrep'
3792     fi
3793 fi
3794 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3795 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3796  EGREP=$ac_cv_prog_egrep
3797
3798
3799
3800 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3801 if test "${with_gnu_ld+set}" = set; then
3802   withval="$with_gnu_ld"
3803   test "$withval" = no || with_gnu_ld=yes
3804 else
3805   with_gnu_ld=no
3806 fi;
3807 ac_prog=ld
3808 if test "$GCC" = yes; then
3809   # Check if gcc -print-prog-name=ld gives a path.
3810   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3811 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3812   case $host in
3813   *-*-mingw*)
3814     # gcc leaves a trailing carriage return which upsets mingw
3815     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3816   *)
3817     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3818   esac
3819   case $ac_prog in
3820     # Accept absolute paths.
3821     [\\/]* | ?:[\\/]*)
3822       re_direlt='/[^/][^/]*/\.\./'
3823       # Canonicalize the path of ld
3824       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3825       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3826         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3827       done
3828       test -z "$LD" && LD="$ac_prog"
3829       ;;
3830   "")
3831     # If it fails, then pretend we aren't using GCC.
3832     ac_prog=ld
3833     ;;
3834   *)
3835     # If it is relative, then search for the first ld in PATH.
3836     with_gnu_ld=unknown
3837     ;;
3838   esac
3839 elif test "$with_gnu_ld" = yes; then
3840   echo "$as_me:$LINENO: checking for GNU ld" >&5
3841 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3842 else
3843   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3844 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3845 fi
3846 if test "${lt_cv_path_LD+set}" = set; then
3847   echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849   if test -z "$LD"; then
3850   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3851   for ac_dir in $PATH; do
3852     IFS="$lt_save_ifs"
3853     test -z "$ac_dir" && ac_dir=.
3854     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3855       lt_cv_path_LD="$ac_dir/$ac_prog"
3856       # Check to see if the program is GNU ld.  I'd rather use --version,
3857       # but apparently some GNU ld's only accept -v.
3858       # Break only if it was the GNU/non-GNU ld that we prefer.
3859       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3860       *GNU* | *'with BFD'*)
3861         test "$with_gnu_ld" != no && break
3862         ;;
3863       *)
3864         test "$with_gnu_ld" != yes && break
3865         ;;
3866       esac
3867     fi
3868   done
3869   IFS="$lt_save_ifs"
3870 else
3871   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3872 fi
3873 fi
3874
3875 LD="$lt_cv_path_LD"
3876 if test -n "$LD"; then
3877   echo "$as_me:$LINENO: result: $LD" >&5
3878 echo "${ECHO_T}$LD" >&6
3879 else
3880   echo "$as_me:$LINENO: result: no" >&5
3881 echo "${ECHO_T}no" >&6
3882 fi
3883 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3884 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3885    { (exit 1); exit 1; }; }
3886 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3887 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3888 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3889   echo $ECHO_N "(cached) $ECHO_C" >&6
3890 else
3891   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3892 case `"$LD" -v 2>&1 </dev/null` in
3893 *GNU* | *'with BFD'*)
3894   lt_cv_prog_gnu_ld=yes
3895   ;;
3896 *)
3897   lt_cv_prog_gnu_ld=no
3898   ;;
3899 esac
3900 fi
3901 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3902 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3903 with_gnu_ld=$lt_cv_prog_gnu_ld
3904
3905
3906 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3907 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3908 if test "${lt_cv_ld_reload_flag+set}" = set; then
3909   echo $ECHO_N "(cached) $ECHO_C" >&6
3910 else
3911   lt_cv_ld_reload_flag='-r'
3912 fi
3913 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3914 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3915 reload_flag=$lt_cv_ld_reload_flag
3916 case $reload_flag in
3917 "" | " "*) ;;
3918 *) reload_flag=" $reload_flag" ;;
3919 esac
3920 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3921
3922 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3923 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3924 if test "${lt_cv_path_NM+set}" = set; then
3925   echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927   if test -n "$NM"; then
3928   # Let the user override the test.
3929   lt_cv_path_NM="$NM"
3930 else
3931   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3932   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3933     IFS="$lt_save_ifs"
3934     test -z "$ac_dir" && ac_dir=.
3935     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3936     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3937       # Check to see if the nm accepts a BSD-compat flag.
3938       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3939       #   nm: unknown option "B" ignored
3940       # Tru64's nm complains that /dev/null is an invalid object file
3941       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3942       */dev/null* | *'Invalid file or object type'*)
3943         lt_cv_path_NM="$tmp_nm -B"
3944         break
3945         ;;
3946       *)
3947         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3948         */dev/null*)
3949           lt_cv_path_NM="$tmp_nm -p"
3950           break
3951           ;;
3952         *)
3953           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3954           continue # so that we can try to find one that supports BSD flags
3955           ;;
3956         esac
3957       esac
3958     fi
3959   done
3960   IFS="$lt_save_ifs"
3961   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3962 fi
3963 fi
3964 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3965 echo "${ECHO_T}$lt_cv_path_NM" >&6
3966 NM="$lt_cv_path_NM"
3967
3968 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3969 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3970 LN_S=$as_ln_s
3971 if test "$LN_S" = "ln -s"; then
3972   echo "$as_me:$LINENO: result: yes" >&5
3973 echo "${ECHO_T}yes" >&6
3974 else
3975   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3976 echo "${ECHO_T}no, using $LN_S" >&6
3977 fi
3978
3979 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3980 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3981 if test "${lt_cv_deplibs_check_method+set}" = set; then
3982   echo $ECHO_N "(cached) $ECHO_C" >&6
3983 else
3984   lt_cv_file_magic_cmd='$MAGIC_CMD'
3985 lt_cv_file_magic_test_file=
3986 lt_cv_deplibs_check_method='unknown'
3987 # Need to set the preceding variable on all platforms that support
3988 # interlibrary dependencies.
3989 # 'none' -- dependencies not supported.
3990 # `unknown' -- same as none, but documents that we really don't know.
3991 # 'pass_all' -- all dependencies passed with no checks.
3992 # 'test_compile' -- check by making test program.
3993 # 'file_magic [[regex]]' -- check by looking for files in library path
3994 # which responds to the $file_magic_cmd with a given extended regex.
3995 # If you have `file' or equivalent on your system and you're not sure
3996 # whether `pass_all' will *always* work, you probably want this one.
3997
3998 case $host_os in
3999 aix4* | aix5*)
4000   lt_cv_deplibs_check_method=pass_all
4001   ;;
4002
4003 beos*)
4004   lt_cv_deplibs_check_method=pass_all
4005   ;;
4006
4007 bsdi4*)
4008   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4009   lt_cv_file_magic_cmd='/usr/bin/file -L'
4010   lt_cv_file_magic_test_file=/shlib/libc.so
4011   ;;
4012
4013 cygwin* | mingw* | pw32*)
4014   # win32_libid is a shell function defined in ltmain.sh
4015   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4016   lt_cv_file_magic_cmd='win32_libid'
4017   ;;
4018
4019 darwin* | rhapsody*)
4020   # this will be overwritten by pass_all, but leave it in just in case
4021   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4022   lt_cv_file_magic_cmd='/usr/bin/file -L'
4023   case "$host_os" in
4024   rhapsody* | darwin1.[012])
4025     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4026     ;;
4027   *) # Darwin 1.3 on
4028     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4029     ;;
4030   esac
4031   lt_cv_deplibs_check_method=pass_all
4032   ;;
4033
4034 freebsd*)
4035   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4036     case $host_cpu in
4037     i*86 )
4038       # Not sure whether the presence of OpenBSD here was a mistake.
4039       # Let's accept both of them until this is cleared up.
4040       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4041       lt_cv_file_magic_cmd=/usr/bin/file
4042       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4043       ;;
4044     esac
4045   else
4046     lt_cv_deplibs_check_method=pass_all
4047   fi
4048   ;;
4049
4050 gnu*)
4051   lt_cv_deplibs_check_method=pass_all
4052   ;;
4053
4054 hpux10.20* | hpux11*)
4055   lt_cv_file_magic_cmd=/usr/bin/file
4056   case "$host_cpu" in
4057   ia64*)
4058     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4059     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4060     ;;
4061   hppa*64*)
4062     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]'
4063     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4064     ;;
4065   *)
4066     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4067     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4068     ;;
4069   esac
4070   ;;
4071
4072 irix5* | irix6* | nonstopux*)
4073   case $host_os in
4074   irix5* | nonstopux*)
4075     # this will be overridden with pass_all, but let us keep it just in case
4076     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4077     ;;
4078   *)
4079     case $LD in
4080     *-32|*"-32 ") libmagic=32-bit;;
4081     *-n32|*"-n32 ") libmagic=N32;;
4082     *-64|*"-64 ") libmagic=64-bit;;
4083     *) libmagic=never-match;;
4084     esac
4085     # this will be overridden with pass_all, but let us keep it just in case
4086     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4087     ;;
4088   esac
4089   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4090   lt_cv_deplibs_check_method=pass_all
4091   ;;
4092
4093 # This must be Linux ELF.
4094 linux*)
4095   case $host_cpu in
4096   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4097     lt_cv_deplibs_check_method=pass_all ;;
4098   *)
4099     # glibc up to 2.1.1 does not perform some relocations on ARM
4100     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4101   esac
4102   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4103   ;;
4104
4105 netbsd*)
4106   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4107     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4108   else
4109     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4110   fi
4111   ;;
4112
4113 newos6*)
4114   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4115   lt_cv_file_magic_cmd=/usr/bin/file
4116   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4117   ;;
4118
4119 nto-qnx)
4120   lt_cv_deplibs_check_method=unknown
4121   ;;
4122
4123 openbsd*)
4124   lt_cv_file_magic_cmd=/usr/bin/file
4125   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4126   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4127     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4128   else
4129     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4130   fi
4131   ;;
4132
4133 osf3* | osf4* | osf5*)
4134   # this will be overridden with pass_all, but let us keep it just in case
4135   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4136   lt_cv_file_magic_test_file=/shlib/libc.so
4137   lt_cv_deplibs_check_method=pass_all
4138   ;;
4139
4140 sco3.2v5*)
4141   lt_cv_deplibs_check_method=pass_all
4142   ;;
4143
4144 solaris*)
4145   lt_cv_deplibs_check_method=pass_all
4146   lt_cv_file_magic_test_file=/lib/libc.so
4147   ;;
4148
4149 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4150   case $host_vendor in
4151   motorola)
4152     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]'
4153     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4154     ;;
4155   ncr)
4156     lt_cv_deplibs_check_method=pass_all
4157     ;;
4158   sequent)
4159     lt_cv_file_magic_cmd='/bin/file'
4160     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4161     ;;
4162   sni)
4163     lt_cv_file_magic_cmd='/bin/file'
4164     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4165     lt_cv_file_magic_test_file=/lib/libc.so
4166     ;;
4167   siemens)
4168     lt_cv_deplibs_check_method=pass_all
4169     ;;
4170   esac
4171   ;;
4172
4173 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4174   lt_cv_deplibs_check_method=pass_all
4175   ;;
4176 esac
4177
4178 fi
4179 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4180 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4181 file_magic_cmd=$lt_cv_file_magic_cmd
4182 deplibs_check_method=$lt_cv_deplibs_check_method
4183 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4184
4185
4186
4187
4188 # If no C compiler was specified, use CC.
4189 LTCC=${LTCC-"$CC"}
4190
4191 # Allow CC to be a program name with arguments.
4192 compiler=$CC
4193
4194 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4195 if test "${enable_libtool_lock+set}" = set; then
4196   enableval="$enable_libtool_lock"
4197
4198 fi;
4199 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4200
4201 # Some flags need to be propagated to the compiler or linker for good
4202 # libtool support.
4203 case $host in
4204 ia64-*-hpux*)
4205   # Find out which ABI we are using.
4206   echo 'int i;' > conftest.$ac_ext
4207   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4208   (eval $ac_compile) 2>&5
4209   ac_status=$?
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); }; then
4212     case `/usr/bin/file conftest.$ac_objext` in
4213     *ELF-32*)
4214       HPUX_IA64_MODE="32"
4215       ;;
4216     *ELF-64*)
4217       HPUX_IA64_MODE="64"
4218       ;;
4219     esac
4220   fi
4221   rm -rf conftest*
4222   ;;
4223 *-*-irix6*)
4224   # Find out which ABI we are using.
4225   echo '#line 4225 "configure"' > conftest.$ac_ext
4226   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4227   (eval $ac_compile) 2>&5
4228   ac_status=$?
4229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230   (exit $ac_status); }; then
4231    if test "$lt_cv_prog_gnu_ld" = yes; then
4232     case `/usr/bin/file conftest.$ac_objext` in
4233     *32-bit*)
4234       LD="${LD-ld} -melf32bsmip"
4235       ;;
4236     *N32*)
4237       LD="${LD-ld} -melf32bmipn32"
4238       ;;
4239     *64-bit*)
4240       LD="${LD-ld} -melf64bmip"
4241       ;;
4242     esac
4243    else
4244     case `/usr/bin/file conftest.$ac_objext` in
4245     *32-bit*)
4246       LD="${LD-ld} -32"
4247       ;;
4248     *N32*)
4249       LD="${LD-ld} -n32"
4250       ;;
4251     *64-bit*)
4252       LD="${LD-ld} -64"
4253       ;;
4254     esac
4255    fi
4256   fi
4257   rm -rf conftest*
4258   ;;
4259
4260 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4261   # Find out which ABI we are using.
4262   echo 'int i;' > conftest.$ac_ext
4263   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4264   (eval $ac_compile) 2>&5
4265   ac_status=$?
4266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267   (exit $ac_status); }; then
4268     case "`/usr/bin/file conftest.o`" in
4269     *32-bit*)
4270       case $host in
4271         x86_64-*linux*)
4272           LD="${LD-ld} -m elf_i386"
4273           ;;
4274         ppc64-*linux*)
4275           LD="${LD-ld} -m elf32ppclinux"
4276           ;;
4277         s390x-*linux*)
4278           LD="${LD-ld} -m elf_s390"
4279           ;;
4280         sparc64-*linux*)
4281           LD="${LD-ld} -m elf32_sparc"
4282           ;;
4283       esac
4284       ;;
4285     *64-bit*)
4286       case $host in
4287         x86_64-*linux*)
4288           LD="${LD-ld} -m elf_x86_64"
4289           ;;
4290         ppc*-*linux*|powerpc*-*linux*)
4291           LD="${LD-ld} -m elf64ppc"
4292           ;;
4293         s390*-*linux*)
4294           LD="${LD-ld} -m elf64_s390"
4295           ;;
4296         sparc*-*linux*)
4297           LD="${LD-ld} -m elf64_sparc"
4298           ;;
4299       esac
4300       ;;
4301     esac
4302   fi
4303   rm -rf conftest*
4304   ;;
4305
4306 *-*-sco3.2v5*)
4307   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4308   SAVE_CFLAGS="$CFLAGS"
4309   CFLAGS="$CFLAGS -belf"
4310   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4311 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4312 if test "${lt_cv_cc_needs_belf+set}" = set; then
4313   echo $ECHO_N "(cached) $ECHO_C" >&6
4314 else
4315   ac_ext=c
4316 ac_cpp='$CPP $CPPFLAGS'
4317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4320
4321      cat >conftest.$ac_ext <<_ACEOF
4322 /* confdefs.h.  */
4323 _ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h.  */
4327
4328 int
4329 main ()
4330 {
4331
4332   ;
4333   return 0;
4334 }
4335 _ACEOF
4336 rm -f conftest.$ac_objext conftest$ac_exeext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4338   (eval $ac_link) 2>conftest.er1
4339   ac_status=$?
4340   grep -v '^ *+' conftest.er1 >conftest.err
4341   rm -f conftest.er1
4342   cat conftest.err >&5
4343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344   (exit $ac_status); } &&
4345          { ac_try='test -z "$ac_c_werror_flag"
4346                          || test ! -s conftest.err'
4347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348   (eval $ac_try) 2>&5
4349   ac_status=$?
4350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351   (exit $ac_status); }; } &&
4352          { ac_try='test -s conftest$ac_exeext'
4353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354   (eval $ac_try) 2>&5
4355   ac_status=$?
4356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357   (exit $ac_status); }; }; then
4358   lt_cv_cc_needs_belf=yes
4359 else
4360   echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4362
4363 lt_cv_cc_needs_belf=no
4364 fi
4365 rm -f conftest.err conftest.$ac_objext \
4366       conftest$ac_exeext conftest.$ac_ext
4367      ac_ext=c
4368 ac_cpp='$CPP $CPPFLAGS'
4369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4372
4373 fi
4374 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4375 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4376   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4377     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4378     CFLAGS="$SAVE_CFLAGS"
4379   fi
4380   ;;
4381
4382 esac
4383
4384 need_locks="$enable_libtool_lock"
4385
4386
4387
4388 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4389 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4390 if test "${ac_cv_header_stdc+set}" = set; then
4391   echo $ECHO_N "(cached) $ECHO_C" >&6
4392 else
4393   cat >conftest.$ac_ext <<_ACEOF
4394 /* confdefs.h.  */
4395 _ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h.  */
4399 #include <stdlib.h>
4400 #include <stdarg.h>
4401 #include <string.h>
4402 #include <float.h>
4403
4404 int
4405 main ()
4406 {
4407
4408   ;
4409   return 0;
4410 }
4411 _ACEOF
4412 rm -f conftest.$ac_objext
4413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4414   (eval $ac_compile) 2>conftest.er1
4415   ac_status=$?
4416   grep -v '^ *+' conftest.er1 >conftest.err
4417   rm -f conftest.er1
4418   cat conftest.err >&5
4419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420   (exit $ac_status); } &&
4421          { ac_try='test -z "$ac_c_werror_flag"
4422                          || test ! -s conftest.err'
4423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424   (eval $ac_try) 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); }; } &&
4428          { ac_try='test -s conftest.$ac_objext'
4429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430   (eval $ac_try) 2>&5
4431   ac_status=$?
4432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433   (exit $ac_status); }; }; then
4434   ac_cv_header_stdc=yes
4435 else
4436   echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4438
4439 ac_cv_header_stdc=no
4440 fi
4441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4442
4443 if test $ac_cv_header_stdc = yes; then
4444   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4445   cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h.  */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h.  */
4451 #include <string.h>
4452
4453 _ACEOF
4454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4455   $EGREP "memchr" >/dev/null 2>&1; then
4456   :
4457 else
4458   ac_cv_header_stdc=no
4459 fi
4460 rm -f conftest*
4461
4462 fi
4463
4464 if test $ac_cv_header_stdc = yes; then
4465   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4466   cat >conftest.$ac_ext <<_ACEOF
4467 /* confdefs.h.  */
4468 _ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h.  */
4472 #include <stdlib.h>
4473
4474 _ACEOF
4475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4476   $EGREP "free" >/dev/null 2>&1; then
4477   :
4478 else
4479   ac_cv_header_stdc=no
4480 fi
4481 rm -f conftest*
4482
4483 fi
4484
4485 if test $ac_cv_header_stdc = yes; then
4486   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4487   if test "$cross_compiling" = yes; then
4488   :
4489 else
4490   cat >conftest.$ac_ext <<_ACEOF
4491 /* confdefs.h.  */
4492 _ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h.  */
4496 #include <ctype.h>
4497 #if ((' ' & 0x0FF) == 0x020)
4498 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4499 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4500 #else
4501 # define ISLOWER(c) \
4502                    (('a' <= (c) && (c) <= 'i') \
4503                      || ('j' <= (c) && (c) <= 'r') \
4504                      || ('s' <= (c) && (c) <= 'z'))
4505 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4506 #endif
4507
4508 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4509 int
4510 main ()
4511 {
4512   int i;
4513   for (i = 0; i < 256; i++)
4514     if (XOR (islower (i), ISLOWER (i))
4515         || toupper (i) != TOUPPER (i))
4516       exit(2);
4517   exit (0);
4518 }
4519 _ACEOF
4520 rm -f conftest$ac_exeext
4521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4522   (eval $ac_link) 2>&5
4523   ac_status=$?
4524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527   (eval $ac_try) 2>&5
4528   ac_status=$?
4529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530   (exit $ac_status); }; }; then
4531   :
4532 else
4533   echo "$as_me: program exited with status $ac_status" >&5
4534 echo "$as_me: failed program was:" >&5
4535 sed 's/^/| /' conftest.$ac_ext >&5
4536
4537 ( exit $ac_status )
4538 ac_cv_header_stdc=no
4539 fi
4540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4541 fi
4542 fi
4543 fi
4544 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4545 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4546 if test $ac_cv_header_stdc = yes; then
4547
4548 cat >>confdefs.h <<\_ACEOF
4549 #define STDC_HEADERS 1
4550 _ACEOF
4551
4552 fi
4553
4554 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4565                   inttypes.h stdint.h unistd.h
4566 do
4567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4568 echo "$as_me:$LINENO: checking for $ac_header" >&5
4569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4571   echo $ECHO_N "(cached) $ECHO_C" >&6
4572 else
4573   cat >conftest.$ac_ext <<_ACEOF
4574 /* confdefs.h.  */
4575 _ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h.  */
4579 $ac_includes_default
4580
4581 #include <$ac_header>
4582 _ACEOF
4583 rm -f conftest.$ac_objext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4585   (eval $ac_compile) 2>conftest.er1
4586   ac_status=$?
4587   grep -v '^ *+' conftest.er1 >conftest.err
4588   rm -f conftest.er1
4589   cat conftest.err >&5
4590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591   (exit $ac_status); } &&
4592          { ac_try='test -z "$ac_c_werror_flag"
4593                          || test ! -s conftest.err'
4594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595   (eval $ac_try) 2>&5
4596   ac_status=$?
4597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598   (exit $ac_status); }; } &&
4599          { ac_try='test -s conftest.$ac_objext'
4600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601   (eval $ac_try) 2>&5
4602   ac_status=$?
4603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); }; }; then
4605   eval "$as_ac_Header=yes"
4606 else
4607   echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4609
4610 eval "$as_ac_Header=no"
4611 fi
4612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4613 fi
4614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4617   cat >>confdefs.h <<_ACEOF
4618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4619 _ACEOF
4620
4621 fi
4622
4623 done
4624
4625
4626
4627 for ac_header in dlfcn.h
4628 do
4629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4631   echo "$as_me:$LINENO: checking for $ac_header" >&5
4632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4633 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4634   echo $ECHO_N "(cached) $ECHO_C" >&6
4635 fi
4636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4638 else
4639   # Is the header compilable?
4640 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4641 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4642 cat >conftest.$ac_ext <<_ACEOF
4643 /* confdefs.h.  */
4644 _ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h.  */
4648 $ac_includes_default
4649 #include <$ac_header>
4650 _ACEOF
4651 rm -f conftest.$ac_objext
4652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4653   (eval $ac_compile) 2>conftest.er1
4654   ac_status=$?
4655   grep -v '^ *+' conftest.er1 >conftest.err
4656   rm -f conftest.er1
4657   cat conftest.err >&5
4658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659   (exit $ac_status); } &&
4660          { ac_try='test -z "$ac_c_werror_flag"
4661                          || test ! -s conftest.err'
4662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663   (eval $ac_try) 2>&5
4664   ac_status=$?
4665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666   (exit $ac_status); }; } &&
4667          { ac_try='test -s conftest.$ac_objext'
4668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669   (eval $ac_try) 2>&5
4670   ac_status=$?
4671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672   (exit $ac_status); }; }; then
4673   ac_header_compiler=yes
4674 else
4675   echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4677
4678 ac_header_compiler=no
4679 fi
4680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4681 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4682 echo "${ECHO_T}$ac_header_compiler" >&6
4683
4684 # Is the header present?
4685 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4687 cat >conftest.$ac_ext <<_ACEOF
4688 /* confdefs.h.  */
4689 _ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h.  */
4693 #include <$ac_header>
4694 _ACEOF
4695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4696   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4697   ac_status=$?
4698   grep -v '^ *+' conftest.er1 >conftest.err
4699   rm -f conftest.er1
4700   cat conftest.err >&5
4701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702   (exit $ac_status); } >/dev/null; then
4703   if test -s conftest.err; then
4704     ac_cpp_err=$ac_c_preproc_warn_flag
4705     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4706   else
4707     ac_cpp_err=
4708   fi
4709 else
4710   ac_cpp_err=yes
4711 fi
4712 if test -z "$ac_cpp_err"; then
4713   ac_header_preproc=yes
4714 else
4715   echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.$ac_ext >&5
4717
4718   ac_header_preproc=no
4719 fi
4720 rm -f conftest.err conftest.$ac_ext
4721 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4722 echo "${ECHO_T}$ac_header_preproc" >&6
4723
4724 # So?  What about this header?
4725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4726   yes:no: )
4727     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4729     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4731     ac_header_preproc=yes
4732     ;;
4733   no:yes:* )
4734     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4736     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4737 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4738     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4740     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4741 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4742     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4744     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4746     (
4747       cat <<\_ASBOX
4748 ## ----------------------------------- ##
4749 ## Report this to llvmbugs@cs.uiuc.edu ##
4750 ## ----------------------------------- ##
4751 _ASBOX
4752     ) |
4753       sed "s/^/$as_me: WARNING:     /" >&2
4754     ;;
4755 esac
4756 echo "$as_me:$LINENO: checking for $ac_header" >&5
4757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4759   echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761   eval "$as_ac_Header=\$ac_header_preproc"
4762 fi
4763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4765
4766 fi
4767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4768   cat >>confdefs.h <<_ACEOF
4769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4770 _ACEOF
4771
4772 fi
4773
4774 done
4775
4776 ac_ext=cc
4777 ac_cpp='$CXXCPP $CPPFLAGS'
4778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4781 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4782 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4783 if test -z "$CXXCPP"; then
4784   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4785   echo $ECHO_N "(cached) $ECHO_C" >&6
4786 else
4787       # Double quotes because CXXCPP needs to be expanded
4788     for CXXCPP in "$CXX -E" "/lib/cpp"
4789     do
4790       ac_preproc_ok=false
4791 for ac_cxx_preproc_warn_flag in '' yes
4792 do
4793   # Use a header file that comes with gcc, so configuring glibc
4794   # with a fresh cross-compiler works.
4795   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4796   # <limits.h> exists even on freestanding compilers.
4797   # On the NeXT, cc -E runs the code through the compiler's parser,
4798   # not just through cpp. "Syntax error" is here to catch this case.
4799   cat >conftest.$ac_ext <<_ACEOF
4800 /* confdefs.h.  */
4801 _ACEOF
4802 cat confdefs.h >>conftest.$ac_ext
4803 cat >>conftest.$ac_ext <<_ACEOF
4804 /* end confdefs.h.  */
4805 #ifdef __STDC__
4806 # include <limits.h>
4807 #else
4808 # include <assert.h>
4809 #endif
4810                      Syntax error
4811 _ACEOF
4812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4813   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4814   ac_status=$?
4815   grep -v '^ *+' conftest.er1 >conftest.err
4816   rm -f conftest.er1
4817   cat conftest.err >&5
4818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819   (exit $ac_status); } >/dev/null; then
4820   if test -s conftest.err; then
4821     ac_cpp_err=$ac_cxx_preproc_warn_flag
4822     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4823   else
4824     ac_cpp_err=
4825   fi
4826 else
4827   ac_cpp_err=yes
4828 fi
4829 if test -z "$ac_cpp_err"; then
4830   :
4831 else
4832   echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4834
4835   # Broken: fails on valid input.
4836 continue
4837 fi
4838 rm -f conftest.err conftest.$ac_ext
4839
4840   # OK, works on sane cases.  Now check whether non-existent headers
4841   # can be detected and how.
4842   cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h.  */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h.  */
4848 #include <ac_nonexistent.h>
4849 _ACEOF
4850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4851   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4852   ac_status=$?
4853   grep -v '^ *+' conftest.er1 >conftest.err
4854   rm -f conftest.er1
4855   cat conftest.err >&5
4856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857   (exit $ac_status); } >/dev/null; then
4858   if test -s conftest.err; then
4859     ac_cpp_err=$ac_cxx_preproc_warn_flag
4860     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4861   else
4862     ac_cpp_err=
4863   fi
4864 else
4865   ac_cpp_err=yes
4866 fi
4867 if test -z "$ac_cpp_err"; then
4868   # Broken: success on invalid input.
4869 continue
4870 else
4871   echo "$as_me: failed program was:" >&5
4872 sed 's/^/| /' conftest.$ac_ext >&5
4873
4874   # Passes both tests.
4875 ac_preproc_ok=:
4876 break
4877 fi
4878 rm -f conftest.err conftest.$ac_ext
4879
4880 done
4881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4882 rm -f conftest.err conftest.$ac_ext
4883 if $ac_preproc_ok; then
4884   break
4885 fi
4886
4887     done
4888     ac_cv_prog_CXXCPP=$CXXCPP
4889
4890 fi
4891   CXXCPP=$ac_cv_prog_CXXCPP
4892 else
4893   ac_cv_prog_CXXCPP=$CXXCPP
4894 fi
4895 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4896 echo "${ECHO_T}$CXXCPP" >&6
4897 ac_preproc_ok=false
4898 for ac_cxx_preproc_warn_flag in '' yes
4899 do
4900   # Use a header file that comes with gcc, so configuring glibc
4901   # with a fresh cross-compiler works.
4902   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4903   # <limits.h> exists even on freestanding compilers.
4904   # On the NeXT, cc -E runs the code through the compiler's parser,
4905   # not just through cpp. "Syntax error" is here to catch this case.
4906   cat >conftest.$ac_ext <<_ACEOF
4907 /* confdefs.h.  */
4908 _ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h.  */
4912 #ifdef __STDC__
4913 # include <limits.h>
4914 #else
4915 # include <assert.h>
4916 #endif
4917                      Syntax error
4918 _ACEOF
4919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4920   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4921   ac_status=$?
4922   grep -v '^ *+' conftest.er1 >conftest.err
4923   rm -f conftest.er1
4924   cat conftest.err >&5
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); } >/dev/null; then
4927   if test -s conftest.err; then
4928     ac_cpp_err=$ac_cxx_preproc_warn_flag
4929     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4930   else
4931     ac_cpp_err=
4932   fi
4933 else
4934   ac_cpp_err=yes
4935 fi
4936 if test -z "$ac_cpp_err"; then
4937   :
4938 else
4939   echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4941
4942   # Broken: fails on valid input.
4943 continue
4944 fi
4945 rm -f conftest.err conftest.$ac_ext
4946
4947   # OK, works on sane cases.  Now check whether non-existent headers
4948   # can be detected and how.
4949   cat >conftest.$ac_ext <<_ACEOF
4950 /* confdefs.h.  */
4951 _ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h.  */
4955 #include <ac_nonexistent.h>
4956 _ACEOF
4957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4958   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4959   ac_status=$?
4960   grep -v '^ *+' conftest.er1 >conftest.err
4961   rm -f conftest.er1
4962   cat conftest.err >&5
4963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); } >/dev/null; then
4965   if test -s conftest.err; then
4966     ac_cpp_err=$ac_cxx_preproc_warn_flag
4967     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4968   else
4969     ac_cpp_err=
4970   fi
4971 else
4972   ac_cpp_err=yes
4973 fi
4974 if test -z "$ac_cpp_err"; then
4975   # Broken: success on invalid input.
4976 continue
4977 else
4978   echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4980
4981   # Passes both tests.
4982 ac_preproc_ok=:
4983 break
4984 fi
4985 rm -f conftest.err conftest.$ac_ext
4986
4987 done
4988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4989 rm -f conftest.err conftest.$ac_ext
4990 if $ac_preproc_ok; then
4991   :
4992 else
4993   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4994 See \`config.log' for more details." >&5
4995 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4996 See \`config.log' for more details." >&2;}
4997    { (exit 1); exit 1; }; }
4998 fi
4999
5000 ac_ext=cc
5001 ac_cpp='$CXXCPP $CPPFLAGS'
5002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5005
5006
5007 ac_ext=f
5008 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5009 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5011 if test -n "$ac_tool_prefix"; then
5012   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5013   do
5014     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5015 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5016 echo "$as_me:$LINENO: checking for $ac_word" >&5
5017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5018 if test "${ac_cv_prog_F77+set}" = set; then
5019   echo $ECHO_N "(cached) $ECHO_C" >&6
5020 else
5021   if test -n "$F77"; then
5022   ac_cv_prog_F77="$F77" # Let the user override the test.
5023 else
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 for as_dir in $PATH
5026 do
5027   IFS=$as_save_IFS
5028   test -z "$as_dir" && as_dir=.
5029   for ac_exec_ext in '' $ac_executable_extensions; do
5030   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5031     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033     break 2
5034   fi
5035 done
5036 done
5037
5038 fi
5039 fi
5040 F77=$ac_cv_prog_F77
5041 if test -n "$F77"; then
5042   echo "$as_me:$LINENO: result: $F77" >&5
5043 echo "${ECHO_T}$F77" >&6
5044 else
5045   echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5047 fi
5048
5049     test -n "$F77" && break
5050   done
5051 fi
5052 if test -z "$F77"; then
5053   ac_ct_F77=$F77
5054   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5055 do
5056   # Extract the first word of "$ac_prog", so it can be a program name with args.
5057 set dummy $ac_prog; ac_word=$2
5058 echo "$as_me:$LINENO: checking for $ac_word" >&5
5059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5060 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5061   echo $ECHO_N "(cached) $ECHO_C" >&6
5062 else
5063   if test -n "$ac_ct_F77"; then
5064   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5065 else
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5068 do
5069   IFS=$as_save_IFS
5070   test -z "$as_dir" && as_dir=.
5071   for ac_exec_ext in '' $ac_executable_extensions; do
5072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073     ac_cv_prog_ac_ct_F77="$ac_prog"
5074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075     break 2
5076   fi
5077 done
5078 done
5079
5080 fi
5081 fi
5082 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5083 if test -n "$ac_ct_F77"; then
5084   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5085 echo "${ECHO_T}$ac_ct_F77" >&6
5086 else
5087   echo "$as_me:$LINENO: result: no" >&5
5088 echo "${ECHO_T}no" >&6
5089 fi
5090
5091   test -n "$ac_ct_F77" && break
5092 done
5093
5094   F77=$ac_ct_F77
5095 fi
5096
5097
5098 # Provide some information about the compiler.
5099 echo "$as_me:5099:" \
5100      "checking for Fortran 77 compiler version" >&5
5101 ac_compiler=`set X $ac_compile; echo $2`
5102 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5103   (eval $ac_compiler --version </dev/null >&5) 2>&5
5104   ac_status=$?
5105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106   (exit $ac_status); }
5107 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5108   (eval $ac_compiler -v </dev/null >&5) 2>&5
5109   ac_status=$?
5110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111   (exit $ac_status); }
5112 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5113   (eval $ac_compiler -V </dev/null >&5) 2>&5
5114   ac_status=$?
5115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116   (exit $ac_status); }
5117 rm -f a.out
5118
5119 # If we don't use `.F' as extension, the preprocessor is not run on the
5120 # input file.  (Note that this only needs to work for GNU compilers.)
5121 ac_save_ext=$ac_ext
5122 ac_ext=F
5123 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5124 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5125 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5126   echo $ECHO_N "(cached) $ECHO_C" >&6
5127 else
5128   cat >conftest.$ac_ext <<_ACEOF
5129       program main
5130 #ifndef __GNUC__
5131        choke me
5132 #endif
5133
5134       end
5135 _ACEOF
5136 rm -f conftest.$ac_objext
5137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5138   (eval $ac_compile) 2>conftest.er1
5139   ac_status=$?
5140   grep -v '^ *+' conftest.er1 >conftest.err
5141   rm -f conftest.er1
5142   cat conftest.err >&5
5143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144   (exit $ac_status); } &&
5145          { ac_try='test -z "$ac_f77_werror_flag"
5146                          || test ! -s conftest.err'
5147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148   (eval $ac_try) 2>&5
5149   ac_status=$?
5150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151   (exit $ac_status); }; } &&
5152          { ac_try='test -s conftest.$ac_objext'
5153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154   (eval $ac_try) 2>&5
5155   ac_status=$?
5156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157   (exit $ac_status); }; }; then
5158   ac_compiler_gnu=yes
5159 else
5160   echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5162
5163 ac_compiler_gnu=no
5164 fi
5165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5166 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5167
5168 fi
5169 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5170 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5171 ac_ext=$ac_save_ext
5172 ac_test_FFLAGS=${FFLAGS+set}
5173 ac_save_FFLAGS=$FFLAGS
5174 FFLAGS=
5175 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5176 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5177 if test "${ac_cv_prog_f77_g+set}" = set; then
5178   echo $ECHO_N "(cached) $ECHO_C" >&6
5179 else
5180   FFLAGS=-g
5181 cat >conftest.$ac_ext <<_ACEOF
5182       program main
5183
5184       end
5185 _ACEOF
5186 rm -f conftest.$ac_objext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5188   (eval $ac_compile) 2>conftest.er1
5189   ac_status=$?
5190   grep -v '^ *+' conftest.er1 >conftest.err
5191   rm -f conftest.er1
5192   cat conftest.err >&5
5193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194   (exit $ac_status); } &&
5195          { ac_try='test -z "$ac_f77_werror_flag"
5196                          || test ! -s conftest.err'
5197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198   (eval $ac_try) 2>&5
5199   ac_status=$?
5200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201   (exit $ac_status); }; } &&
5202          { ac_try='test -s conftest.$ac_objext'
5203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204   (eval $ac_try) 2>&5
5205   ac_status=$?
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); }; }; then
5208   ac_cv_prog_f77_g=yes
5209 else
5210   echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5212
5213 ac_cv_prog_f77_g=no
5214 fi
5215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5216
5217 fi
5218 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5219 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5220 if test "$ac_test_FFLAGS" = set; then
5221   FFLAGS=$ac_save_FFLAGS
5222 elif test $ac_cv_prog_f77_g = yes; then
5223   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5224     FFLAGS="-g -O2"
5225   else
5226     FFLAGS="-g"
5227   fi
5228 else
5229   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5230     FFLAGS="-O2"
5231   else
5232     FFLAGS=
5233   fi
5234 fi
5235
5236 G77=`test $ac_compiler_gnu = yes && echo yes`
5237 ac_ext=c
5238 ac_cpp='$CPP $CPPFLAGS'
5239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5242
5243
5244
5245 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5246
5247 # find the maximum length of command line arguments
5248 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5249 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5250 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5251   echo $ECHO_N "(cached) $ECHO_C" >&6
5252 else
5253     i=0
5254   testring="ABCD"
5255
5256   case $build_os in
5257   msdosdjgpp*)
5258     # On DJGPP, this test can blow up pretty badly due to problems in libc
5259     # (any single argument exceeding 2000 bytes causes a buffer overrun
5260     # during glob expansion).  Even if it were fixed, the result of this
5261     # check would be larger than it should be.
5262     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5263     ;;
5264
5265   gnu*)
5266     # Under GNU Hurd, this test is not required because there is
5267     # no limit to the length of command line arguments.
5268     # Libtool will interpret -1 as no limit whatsoever
5269     lt_cv_sys_max_cmd_len=-1;
5270     ;;
5271
5272   cygwin* | mingw*)
5273     # On Win9x/ME, this test blows up -- it succeeds, but takes
5274     # about 5 minutes as the teststring grows exponentially.
5275     # Worse, since 9x/ME are not pre-emptively multitasking,
5276     # you end up with a "frozen" computer, even though with patience
5277     # the test eventually succeeds (with a max line length of 256k).
5278     # Instead, let's just punt: use the minimum linelength reported by
5279     # all of the supported platforms: 8192 (on NT/2K/XP).
5280     lt_cv_sys_max_cmd_len=8192;
5281     ;;
5282
5283  *)
5284     # If test is not a shell built-in, we'll probably end up computing a
5285     # maximum length that is only half of the actual maximum length, but
5286     # we can't tell.
5287     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5288                = "XX$testring") >/dev/null 2>&1 &&
5289             new_result=`expr "X$testring" : ".*" 2>&1` &&
5290             lt_cv_sys_max_cmd_len=$new_result &&
5291             test $i != 17 # 1/2 MB should be enough
5292     do
5293       i=`expr $i + 1`
5294       testring=$testring$testring
5295     done
5296     testring=
5297     # Add a significant safety factor because C++ compilers can tack on massive
5298     # amounts of additional arguments before passing them to the linker.
5299     # It appears as though 1/2 is a usable value.
5300     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5301     ;;
5302   esac
5303
5304 fi
5305
5306 if test -n $lt_cv_sys_max_cmd_len ; then
5307   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5308 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5309 else
5310   echo "$as_me:$LINENO: result: none" >&5
5311 echo "${ECHO_T}none" >&6
5312 fi
5313
5314
5315
5316
5317 # Check for command to grab the raw symbol name followed by C symbol from nm.
5318 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5319 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5320 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5321   echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323
5324 # These are sane defaults that work on at least a few old systems.
5325 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5326
5327 # Character class describing NM global symbol codes.
5328 symcode='[BCDEGRST]'
5329
5330 # Regexp to match symbols that can be accessed directly from C.
5331 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5332
5333 # Transform the above into a raw symbol and a C symbol.
5334 symxfrm='\1 \2\3 \3'
5335
5336 # Transform an extracted symbol line into a proper C declaration
5337 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5338
5339 # Transform an extracted symbol line into symbol name and symbol address
5340 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'"
5341
5342 # Define system-specific variables.
5343 case $host_os in
5344 aix*)
5345   symcode='[BCDT]'
5346   ;;
5347 cygwin* | mingw* | pw32*)
5348   symcode='[ABCDGISTW]'
5349   ;;
5350 hpux*) # Its linker distinguishes data from code symbols
5351   if test "$host_cpu" = ia64; then
5352     symcode='[ABCDEGRST]'
5353   fi
5354   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
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 irix* | nonstopux*)
5358   symcode='[BCDEGRST]'
5359   ;;
5360 osf*)
5361   symcode='[BCDEGQRST]'
5362   ;;
5363 solaris* | sysv5*)
5364   symcode='[BDT]'
5365   ;;
5366 sysv4)
5367   symcode='[DFNSTU]'
5368   ;;
5369 esac
5370
5371 # Handle CRLF in mingw tool chain
5372 opt_cr=
5373 case $build_os in
5374 mingw*)
5375   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5376   ;;
5377 esac
5378
5379 # If we're using GNU nm, then use its standard symbol codes.
5380 case `$NM -V 2>&1` in
5381 *GNU* | *'with BFD'*)
5382   symcode='[ABCDGISTW]' ;;
5383 esac
5384
5385 # Try without a prefix undercore, then with it.
5386 for ac_symprfx in "" "_"; do
5387
5388   # Write the raw and C identifiers.
5389   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5390
5391   # Check to see that the pipe works correctly.
5392   pipe_works=no
5393
5394   rm -f conftest*
5395   cat > conftest.$ac_ext <<EOF
5396 #ifdef __cplusplus
5397 extern "C" {
5398 #endif
5399 char nm_test_var;
5400 void nm_test_func(){}
5401 #ifdef __cplusplus
5402 }
5403 #endif
5404 int main(){nm_test_var='a';nm_test_func();return(0);}
5405 EOF
5406
5407   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5408   (eval $ac_compile) 2>&5
5409   ac_status=$?
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); }; then
5412     # Now try to grab the symbols.
5413     nlist=conftest.nm
5414     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5415   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5416   ac_status=$?
5417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418   (exit $ac_status); } && test -s "$nlist"; then
5419       # Try sorting and uniquifying the output.
5420       if sort "$nlist" | uniq > "$nlist"T; then
5421         mv -f "$nlist"T "$nlist"
5422       else
5423         rm -f "$nlist"T
5424       fi
5425
5426       # Make sure that we snagged all the symbols we need.
5427       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5428         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5429           cat <<EOF > conftest.$ac_ext
5430 #ifdef __cplusplus
5431 extern "C" {
5432 #endif
5433
5434 EOF
5435           # Now generate the symbol file.
5436           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5437
5438           cat <<EOF >> conftest.$ac_ext
5439 #if defined (__STDC__) && __STDC__
5440 # define lt_ptr_t void *
5441 #else
5442 # define lt_ptr_t char *
5443 # define const
5444 #endif
5445
5446 /* The mapping between symbol names and symbols. */
5447 const struct {
5448   const char *name;
5449   lt_ptr_t address;
5450 }
5451 lt_preloaded_symbols[] =
5452 {
5453 EOF
5454           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5455           cat <<\EOF >> conftest.$ac_ext
5456   {0, (lt_ptr_t) 0}
5457 };
5458
5459 #ifdef __cplusplus
5460 }
5461 #endif
5462 EOF
5463           # Now try linking the two files.
5464           mv conftest.$ac_objext conftstm.$ac_objext
5465           lt_save_LIBS="$LIBS"
5466           lt_save_CFLAGS="$CFLAGS"
5467           LIBS="conftstm.$ac_objext"
5468           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5469           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5470   (eval $ac_link) 2>&5
5471   ac_status=$?
5472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5474             pipe_works=yes
5475           fi
5476           LIBS="$lt_save_LIBS"
5477           CFLAGS="$lt_save_CFLAGS"
5478         else
5479           echo "cannot find nm_test_func in $nlist" >&5
5480         fi
5481       else
5482         echo "cannot find nm_test_var in $nlist" >&5
5483       fi
5484     else
5485       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5486     fi
5487   else
5488     echo "$progname: failed program was:" >&5
5489     cat conftest.$ac_ext >&5
5490   fi
5491   rm -f conftest* conftst*
5492
5493   # Do not use the global_symbol_pipe unless it works.
5494   if test "$pipe_works" = yes; then
5495     break
5496   else
5497     lt_cv_sys_global_symbol_pipe=
5498   fi
5499 done
5500
5501 fi
5502
5503 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5504   lt_cv_sys_global_symbol_to_cdecl=
5505 fi
5506 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5507   echo "$as_me:$LINENO: result: failed" >&5
5508 echo "${ECHO_T}failed" >&6
5509 else
5510   echo "$as_me:$LINENO: result: ok" >&5
5511 echo "${ECHO_T}ok" >&6
5512 fi
5513
5514 echo "$as_me:$LINENO: checking for objdir" >&5
5515 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5516 if test "${lt_cv_objdir+set}" = set; then
5517   echo $ECHO_N "(cached) $ECHO_C" >&6
5518 else
5519   rm -f .libs 2>/dev/null
5520 mkdir .libs 2>/dev/null
5521 if test -d .libs; then
5522   lt_cv_objdir=.libs
5523 else
5524   # MS-DOS does not allow filenames that begin with a dot.
5525   lt_cv_objdir=_libs
5526 fi
5527 rmdir .libs 2>/dev/null
5528 fi
5529 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5530 echo "${ECHO_T}$lt_cv_objdir" >&6
5531 objdir=$lt_cv_objdir
5532
5533
5534
5535
5536
5537 case $host_os in
5538 aix3*)
5539   # AIX sometimes has problems with the GCC collect2 program.  For some
5540   # reason, if we set the COLLECT_NAMES environment variable, the problems
5541   # vanish in a puff of smoke.
5542   if test "X${COLLECT_NAMES+set}" != Xset; then
5543     COLLECT_NAMES=
5544     export COLLECT_NAMES
5545   fi
5546   ;;
5547 esac
5548
5549 # Sed substitution that helps us do robust quoting.  It backslashifies
5550 # metacharacters that are still active within double-quoted strings.
5551 Xsed='sed -e s/^X//'
5552 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5553
5554 # Same as above, but do not quote variable references.
5555 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5556
5557 # Sed substitution to delay expansion of an escaped shell variable in a
5558 # double_quote_subst'ed string.
5559 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5560
5561 # Sed substitution to avoid accidental globbing in evaled expressions
5562 no_glob_subst='s/\*/\\\*/g'
5563
5564 # Constants:
5565 rm="rm -f"
5566
5567 # Global variables:
5568 default_ofile=mklib
5569 can_build_shared=yes
5570
5571 # All known linkers require a `.a' archive for static linking (except M$VC,
5572 # which needs '.lib').
5573 libext=a
5574 ltmain="$ac_aux_dir/ltmain.sh"
5575 ofile="$default_ofile"
5576 with_gnu_ld="$lt_cv_prog_gnu_ld"
5577
5578 if test -n "$ac_tool_prefix"; then
5579   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5580 set dummy ${ac_tool_prefix}ar; ac_word=$2
5581 echo "$as_me:$LINENO: checking for $ac_word" >&5
5582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5583 if test "${ac_cv_prog_AR+set}" = set; then
5584   echo $ECHO_N "(cached) $ECHO_C" >&6
5585 else
5586   if test -n "$AR"; then
5587   ac_cv_prog_AR="$AR" # Let the user override the test.
5588 else
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 for as_dir in $PATH
5591 do
5592   IFS=$as_save_IFS
5593   test -z "$as_dir" && as_dir=.
5594   for ac_exec_ext in '' $ac_executable_extensions; do
5595   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5596     ac_cv_prog_AR="${ac_tool_prefix}ar"
5597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5598     break 2
5599   fi
5600 done
5601 done
5602
5603 fi
5604 fi
5605 AR=$ac_cv_prog_AR
5606 if test -n "$AR"; then
5607   echo "$as_me:$LINENO: result: $AR" >&5
5608 echo "${ECHO_T}$AR" >&6
5609 else
5610   echo "$as_me:$LINENO: result: no" >&5
5611 echo "${ECHO_T}no" >&6
5612 fi
5613
5614 fi
5615 if test -z "$ac_cv_prog_AR"; then
5616   ac_ct_AR=$AR
5617   # Extract the first word of "ar", so it can be a program name with args.
5618 set dummy ar; ac_word=$2
5619 echo "$as_me:$LINENO: checking for $ac_word" >&5
5620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5621 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5622   echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624   if test -n "$ac_ct_AR"; then
5625   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5626 else
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH
5629 do
5630   IFS=$as_save_IFS
5631   test -z "$as_dir" && as_dir=.
5632   for ac_exec_ext in '' $ac_executable_extensions; do
5633   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634     ac_cv_prog_ac_ct_AR="ar"
5635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5636     break 2
5637   fi
5638 done
5639 done
5640
5641   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5642 fi
5643 fi
5644 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5645 if test -n "$ac_ct_AR"; then
5646   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5647 echo "${ECHO_T}$ac_ct_AR" >&6
5648 else
5649   echo "$as_me:$LINENO: result: no" >&5
5650 echo "${ECHO_T}no" >&6
5651 fi
5652
5653   AR=$ac_ct_AR
5654 else
5655   AR="$ac_cv_prog_AR"
5656 fi
5657
5658 if test -n "$ac_tool_prefix"; then
5659   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5660 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5661 echo "$as_me:$LINENO: checking for $ac_word" >&5
5662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5663 if test "${ac_cv_prog_RANLIB+set}" = set; then
5664   echo $ECHO_N "(cached) $ECHO_C" >&6
5665 else
5666   if test -n "$RANLIB"; then
5667   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5668 else
5669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670 for as_dir in $PATH
5671 do
5672   IFS=$as_save_IFS
5673   test -z "$as_dir" && as_dir=.
5674   for ac_exec_ext in '' $ac_executable_extensions; do
5675   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5676     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5678     break 2
5679   fi
5680 done
5681 done
5682
5683 fi
5684 fi
5685 RANLIB=$ac_cv_prog_RANLIB
5686 if test -n "$RANLIB"; then
5687   echo "$as_me:$LINENO: result: $RANLIB" >&5
5688 echo "${ECHO_T}$RANLIB" >&6
5689 else
5690   echo "$as_me:$LINENO: result: no" >&5
5691 echo "${ECHO_T}no" >&6
5692 fi
5693
5694 fi
5695 if test -z "$ac_cv_prog_RANLIB"; then
5696   ac_ct_RANLIB=$RANLIB
5697   # Extract the first word of "ranlib", so it can be a program name with args.
5698 set dummy ranlib; ac_word=$2
5699 echo "$as_me:$LINENO: checking for $ac_word" >&5
5700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5701 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5702   echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704   if test -n "$ac_ct_RANLIB"; then
5705   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5706 else
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 for as_dir in $PATH
5709 do
5710   IFS=$as_save_IFS
5711   test -z "$as_dir" && as_dir=.
5712   for ac_exec_ext in '' $ac_executable_extensions; do
5713   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5714     ac_cv_prog_ac_ct_RANLIB="ranlib"
5715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5716     break 2
5717   fi
5718 done
5719 done
5720
5721   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5722 fi
5723 fi
5724 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5725 if test -n "$ac_ct_RANLIB"; then
5726   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5727 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5728 else
5729   echo "$as_me:$LINENO: result: no" >&5
5730 echo "${ECHO_T}no" >&6
5731 fi
5732
5733   RANLIB=$ac_ct_RANLIB
5734 else
5735   RANLIB="$ac_cv_prog_RANLIB"
5736 fi
5737
5738 if test -n "$ac_tool_prefix"; then
5739   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5740 set dummy ${ac_tool_prefix}strip; ac_word=$2
5741 echo "$as_me:$LINENO: checking for $ac_word" >&5
5742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5743 if test "${ac_cv_prog_STRIP+set}" = set; then
5744   echo $ECHO_N "(cached) $ECHO_C" >&6
5745 else
5746   if test -n "$STRIP"; then
5747   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5748 else
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH
5751 do
5752   IFS=$as_save_IFS
5753   test -z "$as_dir" && as_dir=.
5754   for ac_exec_ext in '' $ac_executable_extensions; do
5755   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5758     break 2
5759   fi
5760 done
5761 done
5762
5763 fi
5764 fi
5765 STRIP=$ac_cv_prog_STRIP
5766 if test -n "$STRIP"; then
5767   echo "$as_me:$LINENO: result: $STRIP" >&5
5768 echo "${ECHO_T}$STRIP" >&6
5769 else
5770   echo "$as_me:$LINENO: result: no" >&5
5771 echo "${ECHO_T}no" >&6
5772 fi
5773
5774 fi
5775 if test -z "$ac_cv_prog_STRIP"; then
5776   ac_ct_STRIP=$STRIP
5777   # Extract the first word of "strip", so it can be a program name with args.
5778 set dummy strip; ac_word=$2
5779 echo "$as_me:$LINENO: checking for $ac_word" >&5
5780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5781 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5782   echo $ECHO_N "(cached) $ECHO_C" >&6
5783 else
5784   if test -n "$ac_ct_STRIP"; then
5785   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5786 else
5787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 for as_dir in $PATH
5789 do
5790   IFS=$as_save_IFS
5791   test -z "$as_dir" && as_dir=.
5792   for ac_exec_ext in '' $ac_executable_extensions; do
5793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794     ac_cv_prog_ac_ct_STRIP="strip"
5795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5796     break 2
5797   fi
5798 done
5799 done
5800
5801   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5802 fi
5803 fi
5804 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5805 if test -n "$ac_ct_STRIP"; then
5806   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5807 echo "${ECHO_T}$ac_ct_STRIP" >&6
5808 else
5809   echo "$as_me:$LINENO: result: no" >&5
5810 echo "${ECHO_T}no" >&6
5811 fi
5812
5813   STRIP=$ac_ct_STRIP
5814 else
5815   STRIP="$ac_cv_prog_STRIP"
5816 fi
5817
5818
5819 old_CC="$CC"
5820 old_CFLAGS="$CFLAGS"
5821
5822 # Set sane defaults for various variables
5823 test -z "$AR" && AR=ar
5824 test -z "$AR_FLAGS" && AR_FLAGS=cru
5825 test -z "$AS" && AS=as
5826 test -z "$CC" && CC=cc
5827 test -z "$LTCC" && LTCC=$CC
5828 test -z "$DLLTOOL" && DLLTOOL=dlltool
5829 test -z "$LD" && LD=ld
5830 test -z "$LN_S" && LN_S="ln -s"
5831 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5832 test -z "$NM" && NM=nm
5833 test -z "$SED" && SED=sed
5834 test -z "$OBJDUMP" && OBJDUMP=objdump
5835 test -z "$RANLIB" && RANLIB=:
5836 test -z "$STRIP" && STRIP=:
5837 test -z "$ac_objext" && ac_objext=o
5838
5839 # Determine commands to create old-style static archives.
5840 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5841 old_postinstall_cmds='chmod 644 $oldlib'
5842 old_postuninstall_cmds=
5843
5844 if test -n "$RANLIB"; then
5845   case $host_os in
5846   openbsd*)
5847     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5848     ;;
5849   *)
5850     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5851     ;;
5852   esac
5853   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5854 fi
5855
5856 # Only perform the check for file, if the check method requires it
5857 case $deplibs_check_method in
5858 file_magic*)
5859   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5860     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5861 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5862 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5863   echo $ECHO_N "(cached) $ECHO_C" >&6
5864 else
5865   case $MAGIC_CMD in
5866 [\\/*] |  ?:[\\/]*)
5867   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5868   ;;
5869 *)
5870   lt_save_MAGIC_CMD="$MAGIC_CMD"
5871   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5872   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5873   for ac_dir in $ac_dummy; do
5874     IFS="$lt_save_ifs"
5875     test -z "$ac_dir" && ac_dir=.
5876     if test -f $ac_dir/${ac_tool_prefix}file; then
5877       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5878       if test -n "$file_magic_test_file"; then
5879         case $deplibs_check_method in
5880         "file_magic "*)
5881           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5882           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5883           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5884             $EGREP "$file_magic_regex" > /dev/null; then
5885             :
5886           else
5887             cat <<EOF 1>&2
5888
5889 *** Warning: the command libtool uses to detect shared libraries,
5890 *** $file_magic_cmd, produces output that libtool cannot recognize.
5891 *** The result is that libtool may fail to recognize shared libraries
5892 *** as such.  This will affect the creation of libtool libraries that
5893 *** depend on shared libraries, but programs linked with such libtool
5894 *** libraries will work regardless of this problem.  Nevertheless, you
5895 *** may want to report the problem to your system manager and/or to
5896 *** bug-libtool@gnu.org
5897
5898 EOF
5899           fi ;;
5900         esac
5901       fi
5902       break
5903     fi
5904   done
5905   IFS="$lt_save_ifs"
5906   MAGIC_CMD="$lt_save_MAGIC_CMD"
5907   ;;
5908 esac
5909 fi
5910
5911 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5912 if test -n "$MAGIC_CMD"; then
5913   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5914 echo "${ECHO_T}$MAGIC_CMD" >&6
5915 else
5916   echo "$as_me:$LINENO: result: no" >&5
5917 echo "${ECHO_T}no" >&6
5918 fi
5919
5920 if test -z "$lt_cv_path_MAGIC_CMD"; then
5921   if test -n "$ac_tool_prefix"; then
5922     echo "$as_me:$LINENO: checking for file" >&5
5923 echo $ECHO_N "checking for file... $ECHO_C" >&6
5924 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5925   echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927   case $MAGIC_CMD in
5928 [\\/*] |  ?:[\\/]*)
5929   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5930   ;;
5931 *)
5932   lt_save_MAGIC_CMD="$MAGIC_CMD"
5933   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5934   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5935   for ac_dir in $ac_dummy; do
5936     IFS="$lt_save_ifs"
5937     test -z "$ac_dir" && ac_dir=.
5938     if test -f $ac_dir/file; then
5939       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5940       if test -n "$file_magic_test_file"; then
5941         case $deplibs_check_method in
5942         "file_magic "*)
5943           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5944           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5945           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5946             $EGREP "$file_magic_regex" > /dev/null; then
5947             :
5948           else
5949             cat <<EOF 1>&2
5950
5951 *** Warning: the command libtool uses to detect shared libraries,
5952 *** $file_magic_cmd, produces output that libtool cannot recognize.
5953 *** The result is that libtool may fail to recognize shared libraries
5954 *** as such.  This will affect the creation of libtool libraries that
5955 *** depend on shared libraries, but programs linked with such libtool
5956 *** libraries will work regardless of this problem.  Nevertheless, you
5957 *** may want to report the problem to your system manager and/or to
5958 *** bug-libtool@gnu.org
5959
5960 EOF
5961           fi ;;
5962         esac
5963       fi
5964       break
5965     fi
5966   done
5967   IFS="$lt_save_ifs"
5968   MAGIC_CMD="$lt_save_MAGIC_CMD"
5969   ;;
5970 esac
5971 fi
5972
5973 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5974 if test -n "$MAGIC_CMD"; then
5975   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5976 echo "${ECHO_T}$MAGIC_CMD" >&6
5977 else
5978   echo "$as_me:$LINENO: result: no" >&5
5979 echo "${ECHO_T}no" >&6
5980 fi
5981
5982   else
5983     MAGIC_CMD=:
5984   fi
5985 fi
5986
5987   fi
5988   ;;
5989 esac
5990
5991 enable_dlopen=no
5992 enable_win32_dll=no
5993
5994 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5995 if test "${enable_libtool_lock+set}" = set; then
5996   enableval="$enable_libtool_lock"
5997
5998 fi;
5999 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6000
6001
6002 # Check whether --with-pic or --without-pic was given.
6003 if test "${with_pic+set}" = set; then
6004   withval="$with_pic"
6005   pic_mode="$withval"
6006 else
6007   pic_mode=default
6008 fi;
6009 test -z "$pic_mode" && pic_mode=default
6010
6011 # Use C for the default configuration in the libtool script
6012 tagname=
6013 lt_save_CC="$CC"
6014 ac_ext=c
6015 ac_cpp='$CPP $CPPFLAGS'
6016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6019
6020
6021 # Source file extension for C test sources.
6022 ac_ext=c
6023
6024 # Object file extension for compiled C test sources.
6025 objext=o
6026 objext=$objext
6027
6028 # Code to be used in simple compile tests
6029 lt_simple_compile_test_code="int some_variable = 0;\n"
6030
6031 # Code to be used in simple link tests
6032 lt_simple_link_test_code='int main(){return(0);}\n'
6033
6034
6035 # If no C compiler was specified, use CC.
6036 LTCC=${LTCC-"$CC"}
6037
6038 # Allow CC to be a program name with arguments.
6039 compiler=$CC
6040
6041
6042 #
6043 # Check for any special shared library compilation flags.
6044 #
6045 lt_prog_cc_shlib=
6046 if test "$GCC" = no; then
6047   case $host_os in
6048   sco3.2v5*)
6049     lt_prog_cc_shlib='-belf'
6050     ;;
6051   esac
6052 fi
6053 if test -n "$lt_prog_cc_shlib"; then
6054   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6055 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6056   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6057   else
6058     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6059 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6060     lt_cv_prog_cc_can_build_shared=no
6061   fi
6062 fi
6063
6064
6065 #
6066 # Check to make sure the static flag actually works.
6067 #
6068 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6069 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6070 if test "${lt_prog_compiler_static_works+set}" = set; then
6071   echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073   lt_prog_compiler_static_works=no
6074    save_LDFLAGS="$LDFLAGS"
6075    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6076    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6077    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6078      # The compiler can only warn and ignore the option if not recognized
6079      # So say no if there are warnings
6080      if test -s conftest.err; then
6081        # Append any errors to the config.log.
6082        cat conftest.err 1>&5
6083      else
6084        lt_prog_compiler_static_works=yes
6085      fi
6086    fi
6087    $rm conftest*
6088    LDFLAGS="$save_LDFLAGS"
6089
6090 fi
6091 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6092 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6093
6094 if test x"$lt_prog_compiler_static_works" = xyes; then
6095     :
6096 else
6097     lt_prog_compiler_static=
6098 fi
6099
6100
6101
6102 ## CAVEAT EMPTOR:
6103 ## There is no encapsulation within the following macros, do not change
6104 ## the running order or otherwise move them around unless you know exactly
6105 ## what you are doing...
6106
6107 lt_prog_compiler_no_builtin_flag=
6108
6109 if test "$GCC" = yes; then
6110   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6111
6112   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6113 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6114 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6115   echo $ECHO_N "(cached) $ECHO_C" >&6
6116 else
6117   lt_cv_prog_compiler_rtti_exceptions=no
6118   ac_outfile=conftest.$ac_objext
6119    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6120    lt_compiler_flag="-fno-rtti -fno-exceptions"
6121    # Insert the option either (1) after the last *FLAGS variable, or
6122    # (2) before a word containing "conftest.", or (3) at the end.
6123    # Note that $ac_compile itself does not contain backslashes and begins
6124    # with a dollar sign (not a hyphen), so the echo should work correctly.
6125    # The option is referenced via a variable to avoid confusing sed.
6126    lt_compile=`echo "$ac_compile" | $SED \
6127    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6128    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6129    -e 's:$: $lt_compiler_flag:'`
6130    (eval echo "\"\$as_me:6130: $lt_compile\"" >&5)
6131    (eval "$lt_compile" 2>conftest.err)
6132    ac_status=$?
6133    cat conftest.err >&5
6134    echo "$as_me:6134: \$? = $ac_status" >&5
6135    if (exit $ac_status) && test -s "$ac_outfile"; then
6136      # The compiler can only warn and ignore the option if not recognized
6137      # So say no if there are warnings
6138      if test ! -s conftest.err; then
6139        lt_cv_prog_compiler_rtti_exceptions=yes
6140      fi
6141    fi
6142    $rm conftest*
6143
6144 fi
6145 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6146 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6147
6148 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6149     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6150 else
6151     :
6152 fi
6153
6154 fi
6155
6156 lt_prog_compiler_wl=
6157 lt_prog_compiler_pic=
6158 lt_prog_compiler_static=
6159
6160 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6161 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6162
6163   if test "$GCC" = yes; then
6164     lt_prog_compiler_wl='-Wl,'
6165     lt_prog_compiler_static='-static'
6166
6167     case $host_os in
6168       aix*)
6169       # All AIX code is PIC.
6170       if test "$host_cpu" = ia64; then
6171         # AIX 5 now supports IA64 processor
6172         lt_prog_compiler_static='-Bstatic'
6173       fi
6174       ;;
6175
6176     amigaos*)
6177       # FIXME: we need at least 68020 code to build shared libraries, but
6178       # adding the `-m68020' flag to GCC prevents building anything better,
6179       # like `-m68040'.
6180       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6181       ;;
6182
6183     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6184       # PIC is the default for these OSes.
6185       ;;
6186
6187     mingw* | pw32* | os2*)
6188       # This hack is so that the source file can tell whether it is being
6189       # built for inclusion in a dll (and should export symbols for example).
6190       lt_prog_compiler_pic='-DDLL_EXPORT'
6191       ;;
6192
6193     darwin* | rhapsody*)
6194       # PIC is the default on this platform
6195       # Common symbols not allowed in MH_DYLIB files
6196       lt_prog_compiler_pic='-fno-common'
6197       ;;
6198
6199     msdosdjgpp*)
6200       # Just because we use GCC doesn't mean we suddenly get shared libraries
6201       # on systems that don't support them.
6202       lt_prog_compiler_can_build_shared=no
6203       enable_shared=no
6204       ;;
6205
6206     sysv4*MP*)
6207       if test -d /usr/nec; then
6208         lt_prog_compiler_pic=-Kconform_pic
6209       fi
6210       ;;
6211
6212     hpux*)
6213       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6214       # not for PA HP-UX.
6215       case "$host_cpu" in
6216       hppa*64*|ia64*)
6217         # +Z the default
6218         ;;
6219       *)
6220         lt_prog_compiler_pic='-fPIC'
6221         ;;
6222       esac
6223       ;;
6224
6225     *)
6226       lt_prog_compiler_pic='-fPIC'
6227       ;;
6228     esac
6229   else
6230     # PORTME Check for flag to pass linker flags through the system compiler.
6231     case $host_os in
6232     aix*)
6233       lt_prog_compiler_wl='-Wl,'
6234       if test "$host_cpu" = ia64; then
6235         # AIX 5 now supports IA64 processor
6236         lt_prog_compiler_static='-Bstatic'
6237       else
6238         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6239       fi
6240       ;;
6241
6242     mingw* | pw32* | os2*)
6243       # This hack is so that the source file can tell whether it is being
6244       # built for inclusion in a dll (and should export symbols for example).
6245       lt_prog_compiler_pic='-DDLL_EXPORT'
6246       ;;
6247
6248     hpux9* | hpux10* | hpux11*)
6249       lt_prog_compiler_wl='-Wl,'
6250       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6251       # not for PA HP-UX.
6252       case "$host_cpu" in
6253       hppa*64*|ia64*)
6254         # +Z the default
6255         ;;
6256       *)
6257         lt_prog_compiler_pic='+Z'
6258         ;;
6259       esac
6260       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6261       lt_prog_compiler_static='${wl}-a ${wl}archive'
6262       ;;
6263
6264     irix5* | irix6* | nonstopux*)
6265       lt_prog_compiler_wl='-Wl,'
6266       # PIC (with -KPIC) is the default.
6267       lt_prog_compiler_static='-non_shared'
6268       ;;
6269
6270     newsos6)
6271       lt_prog_compiler_pic='-KPIC'
6272       lt_prog_compiler_static='-Bstatic'
6273       ;;
6274
6275     linux*)
6276       case $CC in
6277       icc|ecc)
6278         lt_prog_compiler_wl='-Wl,'
6279         lt_prog_compiler_pic='-KPIC'
6280         lt_prog_compiler_static='-static'
6281         ;;
6282       ccc)
6283         lt_prog_compiler_wl='-Wl,'
6284         # All Alpha code is PIC.
6285         lt_prog_compiler_static='-non_shared'
6286         ;;
6287       esac
6288       ;;
6289
6290     osf3* | osf4* | osf5*)
6291       lt_prog_compiler_wl='-Wl,'
6292       # All OSF/1 code is PIC.
6293       lt_prog_compiler_static='-non_shared'
6294       ;;
6295
6296     sco3.2v5*)
6297       lt_prog_compiler_pic='-Kpic'
6298       lt_prog_compiler_static='-dn'
6299       ;;
6300
6301     solaris*)
6302       lt_prog_compiler_wl='-Wl,'
6303       lt_prog_compiler_pic='-KPIC'
6304       lt_prog_compiler_static='-Bstatic'
6305       ;;
6306
6307     sunos4*)
6308       lt_prog_compiler_wl='-Qoption ld '
6309       lt_prog_compiler_pic='-PIC'
6310       lt_prog_compiler_static='-Bstatic'
6311       ;;
6312
6313     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6314       lt_prog_compiler_wl='-Wl,'
6315       lt_prog_compiler_pic='-KPIC'
6316       lt_prog_compiler_static='-Bstatic'
6317       ;;
6318
6319     sysv4*MP*)
6320       if test -d /usr/nec ;then
6321         lt_prog_compiler_pic='-Kconform_pic'
6322         lt_prog_compiler_static='-Bstatic'
6323       fi
6324       ;;
6325
6326     uts4*)
6327       lt_prog_compiler_pic='-pic'
6328       lt_prog_compiler_static='-Bstatic'
6329       ;;
6330
6331     *)
6332       lt_prog_compiler_can_build_shared=no
6333       ;;
6334     esac
6335   fi
6336
6337 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6338 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6339
6340 #
6341 # Check to make sure the PIC flag actually works.
6342 #
6343 if test -n "$lt_prog_compiler_pic"; then
6344   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6345 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6346 if test "${lt_prog_compiler_pic_works+set}" = set; then
6347   echo $ECHO_N "(cached) $ECHO_C" >&6
6348 else
6349   lt_prog_compiler_pic_works=no
6350   ac_outfile=conftest.$ac_objext
6351    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6352    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6353    # Insert the option either (1) after the last *FLAGS variable, or
6354    # (2) before a word containing "conftest.", or (3) at the end.
6355    # Note that $ac_compile itself does not contain backslashes and begins
6356    # with a dollar sign (not a hyphen), so the echo should work correctly.
6357    # The option is referenced via a variable to avoid confusing sed.
6358    lt_compile=`echo "$ac_compile" | $SED \
6359    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6360    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6361    -e 's:$: $lt_compiler_flag:'`
6362    (eval echo "\"\$as_me:6362: $lt_compile\"" >&5)
6363    (eval "$lt_compile" 2>conftest.err)
6364    ac_status=$?
6365    cat conftest.err >&5
6366    echo "$as_me:6366: \$? = $ac_status" >&5
6367    if (exit $ac_status) && test -s "$ac_outfile"; then
6368      # The compiler can only warn and ignore the option if not recognized
6369      # So say no if there are warnings
6370      if test ! -s conftest.err; then
6371        lt_prog_compiler_pic_works=yes
6372      fi
6373    fi
6374    $rm conftest*
6375
6376 fi
6377 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6378 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6379
6380 if test x"$lt_prog_compiler_pic_works" = xyes; then
6381     case $lt_prog_compiler_pic in
6382      "" | " "*) ;;
6383      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6384      esac
6385 else
6386     lt_prog_compiler_pic=
6387      lt_prog_compiler_can_build_shared=no
6388 fi
6389
6390 fi
6391 case "$host_os" in
6392   # For platforms which do not support PIC, -DPIC is meaningless:
6393   *djgpp*)
6394     lt_prog_compiler_pic=
6395     ;;
6396   *)
6397     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6398     ;;
6399 esac
6400
6401 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6402 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6403 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6404   echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406   lt_cv_prog_compiler_c_o=no
6407    $rm -r conftest 2>/dev/null
6408    mkdir conftest
6409    cd conftest
6410    mkdir out
6411    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6412
6413    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6414    # that will create temporary files in the current directory regardless of
6415    # the output directory.  Thus, making CWD read-only will cause this test
6416    # to fail, enabling locking or at least warning the user not to do parallel
6417    # builds.
6418    chmod -w .
6419
6420    lt_compiler_flag="-o out/conftest2.$ac_objext"
6421    # Insert the option either (1) after the last *FLAGS variable, or
6422    # (2) before a word containing "conftest.", or (3) at the end.
6423    # Note that $ac_compile itself does not contain backslashes and begins
6424    # with a dollar sign (not a hyphen), so the echo should work correctly.
6425    lt_compile=`echo "$ac_compile" | $SED \
6426    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6427    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6428    -e 's:$: $lt_compiler_flag:'`
6429    (eval echo "\"\$as_me:6429: $lt_compile\"" >&5)
6430    (eval "$lt_compile" 2>out/conftest.err)
6431    ac_status=$?
6432    cat out/conftest.err >&5
6433    echo "$as_me:6433: \$? = $ac_status" >&5
6434    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6435    then
6436      # The compiler can only warn and ignore the option if not recognized
6437      # So say no if there are warnings
6438      if test ! -s out/conftest.err; then
6439        lt_cv_prog_compiler_c_o=yes
6440      fi
6441    fi
6442    chmod u+w .
6443    $rm conftest* out/*
6444    rmdir out
6445    cd ..
6446    rmdir conftest
6447    $rm conftest*
6448
6449 fi
6450 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6451 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6452
6453
6454 hard_links="nottested"
6455 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6456   # do not overwrite the value of need_locks provided by the user
6457   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6458 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6459   hard_links=yes
6460   $rm conftest*
6461   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6462   touch conftest.a
6463   ln conftest.a conftest.b 2>&5 || hard_links=no
6464   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6465   echo "$as_me:$LINENO: result: $hard_links" >&5
6466 echo "${ECHO_T}$hard_links" >&6
6467   if test "$hard_links" = no; then
6468     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6469 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6470     need_locks=warn
6471   fi
6472 else
6473   need_locks=no
6474 fi
6475
6476 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6477 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6478
6479   runpath_var=
6480   allow_undefined_flag=
6481   enable_shared_with_static_runtimes=no
6482   archive_cmds=
6483   archive_expsym_cmds=
6484   old_archive_From_new_cmds=
6485   old_archive_from_expsyms_cmds=
6486   export_dynamic_flag_spec=
6487   whole_archive_flag_spec=
6488   thread_safe_flag_spec=
6489   hardcode_libdir_flag_spec=
6490   hardcode_libdir_flag_spec_ld=
6491   hardcode_libdir_separator=
6492   hardcode_direct=no
6493   hardcode_minus_L=no
6494   hardcode_shlibpath_var=unsupported
6495   link_all_deplibs=unknown
6496   hardcode_automatic=no
6497   module_cmds=
6498   module_expsym_cmds=
6499   always_export_symbols=no
6500   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6501   # include_expsyms should be a list of space-separated symbols to be *always*
6502   # included in the symbol list
6503   include_expsyms=
6504   # exclude_expsyms can be an extended regexp of symbols to exclude
6505   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6506   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6507   # as well as any symbol that contains `d'.
6508   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6509   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6510   # platforms (ab)use it in PIC code, but their linkers get confused if
6511   # the symbol is explicitly referenced.  Since portable code cannot
6512   # rely on this symbol name, it's probably fine to never include it in
6513   # preloaded symbol tables.
6514   extract_expsyms_cmds=
6515
6516   case $host_os in
6517   cygwin* | mingw* | pw32*)
6518     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6519     # When not using gcc, we currently assume that we are using
6520     # Microsoft Visual C++.
6521     if test "$GCC" != yes; then
6522       with_gnu_ld=no
6523     fi
6524     ;;
6525   openbsd*)
6526     with_gnu_ld=no
6527     ;;
6528   esac
6529
6530   ld_shlibs=yes
6531   if test "$with_gnu_ld" = yes; then
6532     # If archive_cmds runs LD, not CC, wlarc should be empty
6533     wlarc='${wl}'
6534
6535     # See if GNU ld supports shared libraries.
6536     case $host_os in
6537     aix3* | aix4* | aix5*)
6538       # On AIX/PPC, the GNU linker is very broken
6539       if test "$host_cpu" != ia64; then
6540         ld_shlibs=no
6541         cat <<EOF 1>&2
6542
6543 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6544 *** to be unable to reliably create shared libraries on AIX.
6545 *** Therefore, libtool is disabling shared libraries support.  If you
6546 *** really care for shared libraries, you may want to modify your PATH
6547 *** so that a non-GNU linker is found, and then restart.
6548
6549 EOF
6550       fi
6551       ;;
6552
6553     amigaos*)
6554       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)'
6555       hardcode_libdir_flag_spec='-L$libdir'
6556       hardcode_minus_L=yes
6557
6558       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6559       # that the semantics of dynamic libraries on AmigaOS, at least up
6560       # to version 4, is to share data among multiple programs linked
6561       # with the same dynamic library.  Since this doesn't match the
6562       # behavior of shared libraries on other platforms, we can't use
6563       # them.
6564       ld_shlibs=no
6565       ;;
6566
6567     beos*)
6568       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6569         allow_undefined_flag=unsupported
6570         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6571         # support --undefined.  This deserves some investigation.  FIXME
6572         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6573       else
6574         ld_shlibs=no
6575       fi
6576       ;;
6577
6578     cygwin* | mingw* | pw32*)
6579       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6580       # as there is no search path for DLLs.
6581       hardcode_libdir_flag_spec='-L$libdir'
6582       allow_undefined_flag=unsupported
6583       always_export_symbols=no
6584       enable_shared_with_static_runtimes=yes
6585       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6586
6587       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6588         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6589         # If the export-symbols file already is a .def file (1st line
6590         # is EXPORTS), use it as is; otherwise, prepend...
6591         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6592           cp $export_symbols $output_objdir/$soname.def;
6593         else
6594           echo EXPORTS > $output_objdir/$soname.def;
6595           cat $export_symbols >> $output_objdir/$soname.def;
6596         fi~
6597         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6598       else
6599         ld_shlibs=no
6600       fi
6601       ;;
6602
6603     netbsd*)
6604       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6605         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6606         wlarc=
6607       else
6608         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6609         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6610       fi
6611       ;;
6612
6613     solaris* | sysv5*)
6614       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6615         ld_shlibs=no
6616         cat <<EOF 1>&2
6617
6618 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6619 *** create shared libraries on Solaris systems.  Therefore, libtool
6620 *** is disabling shared libraries support.  We urge you to upgrade GNU
6621 *** binutils to release 2.9.1 or newer.  Another option is to modify
6622 *** your PATH or compiler configuration so that the native linker is
6623 *** used, and then restart.
6624
6625 EOF
6626       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6627         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6628         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6629       else
6630         ld_shlibs=no
6631       fi
6632       ;;
6633
6634     sunos4*)
6635       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6636       wlarc=
6637       hardcode_direct=yes
6638       hardcode_shlibpath_var=no
6639       ;;
6640
6641     *)
6642       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6643         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6644         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6645       else
6646         ld_shlibs=no
6647       fi
6648       ;;
6649     esac
6650
6651     if test "$ld_shlibs" = yes; then
6652       runpath_var=LD_RUN_PATH
6653       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6654       export_dynamic_flag_spec='${wl}--export-dynamic'
6655       # ancient GNU ld didn't support --whole-archive et. al.
6656       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6657         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6658       else
6659         whole_archive_flag_spec=
6660       fi
6661     fi
6662   else
6663     # PORTME fill in a description of your system's linker (not GNU ld)
6664     case $host_os in
6665     aix3*)
6666       allow_undefined_flag=unsupported
6667       always_export_symbols=yes
6668       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'
6669       # Note: this linker hardcodes the directories in LIBPATH if there
6670       # are no directories specified by -L.
6671       hardcode_minus_L=yes
6672       if test "$GCC" = yes && test -z "$link_static_flag"; then
6673         # Neither direct hardcoding nor static linking is supported with a
6674         # broken collect2.
6675         hardcode_direct=unsupported
6676       fi
6677       ;;
6678
6679     aix4* | aix5*)
6680       if test "$host_cpu" = ia64; then
6681         # On IA64, the linker does run time linking by default, so we don't
6682         # have to do anything special.
6683         aix_use_runtimelinking=no
6684         exp_sym_flag='-Bexport'
6685         no_entry_flag=""
6686       else
6687         # If we're using GNU nm, then we don't want the "-C" option.
6688         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6689         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6690           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'
6691         else
6692           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'
6693         fi
6694         aix_use_runtimelinking=no
6695
6696         # Test if we are trying to use run time linking or normal
6697         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6698         # need to do runtime linking.
6699         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6700           for ld_flag in $LDFLAGS; do
6701           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6702             aix_use_runtimelinking=yes
6703             break
6704           fi
6705           done
6706         esac
6707
6708         exp_sym_flag='-bexport'
6709         no_entry_flag='-bnoentry'
6710       fi
6711
6712       # When large executables or shared objects are built, AIX ld can
6713       # have problems creating the table of contents.  If linking a library
6714       # or program results in "error TOC overflow" add -mminimal-toc to
6715       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6716       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6717
6718       archive_cmds=''
6719       hardcode_direct=yes
6720       hardcode_libdir_separator=':'
6721       link_all_deplibs=yes
6722
6723       if test "$GCC" = yes; then
6724         case $host_os in aix4.012|aix4.012.*)
6725         # We only want to do this on AIX 4.2 and lower, the check
6726         # below for broken collect2 doesn't work under 4.3+
6727           collect2name=`${CC} -print-prog-name=collect2`
6728           if test -f "$collect2name" && \
6729            strings "$collect2name" | grep resolve_lib_name >/dev/null
6730           then
6731           # We have reworked collect2
6732           hardcode_direct=yes
6733           else
6734           # We have old collect2
6735           hardcode_direct=unsupported
6736           # It fails to find uninstalled libraries when the uninstalled
6737           # path is not listed in the libpath.  Setting hardcode_minus_L
6738           # to unsupported forces relinking
6739           hardcode_minus_L=yes
6740           hardcode_libdir_flag_spec='-L$libdir'
6741           hardcode_libdir_separator=
6742           fi
6743         esac
6744         shared_flag='-shared'
6745       else
6746         # not using gcc
6747         if test "$host_cpu" = ia64; then
6748         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6749         # chokes on -Wl,-G. The following line is correct:
6750           shared_flag='-G'
6751         else
6752         if test "$aix_use_runtimelinking" = yes; then
6753             shared_flag='${wl}-G'
6754           else
6755             shared_flag='${wl}-bM:SRE'
6756         fi
6757         fi
6758       fi
6759
6760       # It seems that -bexpall does not export symbols beginning with
6761       # underscore (_), so it is better to generate a list of symbols to export.
6762       always_export_symbols=yes
6763       if test "$aix_use_runtimelinking" = yes; then
6764         # Warning - without using the other runtime loading flags (-brtl),
6765         # -berok will link without error, but may produce a broken library.
6766         allow_undefined_flag='-berok'
6767        # Determine the default libpath from the value encoded in an empty executable.
6768        cat >conftest.$ac_ext <<_ACEOF
6769 /* confdefs.h.  */
6770 _ACEOF
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h.  */
6774
6775 int
6776 main ()
6777 {
6778
6779   ;
6780   return 0;
6781 }
6782 _ACEOF
6783 rm -f conftest.$ac_objext conftest$ac_exeext
6784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6785   (eval $ac_link) 2>conftest.er1
6786   ac_status=$?
6787   grep -v '^ *+' conftest.er1 >conftest.err
6788   rm -f conftest.er1
6789   cat conftest.err >&5
6790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791   (exit $ac_status); } &&
6792          { ac_try='test -z "$ac_c_werror_flag"
6793                          || test ! -s conftest.err'
6794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795   (eval $ac_try) 2>&5
6796   ac_status=$?
6797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798   (exit $ac_status); }; } &&
6799          { ac_try='test -s conftest$ac_exeext'
6800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801   (eval $ac_try) 2>&5
6802   ac_status=$?
6803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804   (exit $ac_status); }; }; then
6805
6806 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6807 }'`
6808 # Check for a 64-bit object if we didn't find anything.
6809 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; }
6810 }'`; fi
6811 else
6812   echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6814
6815 fi
6816 rm -f conftest.err conftest.$ac_objext \
6817       conftest$ac_exeext conftest.$ac_ext
6818 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6819
6820        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6821         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"
6822        else
6823         if test "$host_cpu" = ia64; then
6824           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6825           allow_undefined_flag="-z nodefs"
6826           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"
6827         else
6828          # Determine the default libpath from the value encoded in an empty executable.
6829          cat >conftest.$ac_ext <<_ACEOF
6830 /* confdefs.h.  */
6831 _ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h.  */
6835
6836 int
6837 main ()
6838 {
6839
6840   ;
6841   return 0;
6842 }
6843 _ACEOF
6844 rm -f conftest.$ac_objext conftest$ac_exeext
6845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6846   (eval $ac_link) 2>conftest.er1
6847   ac_status=$?
6848   grep -v '^ *+' conftest.er1 >conftest.err
6849   rm -f conftest.er1
6850   cat conftest.err >&5
6851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852   (exit $ac_status); } &&
6853          { ac_try='test -z "$ac_c_werror_flag"
6854                          || test ! -s conftest.err'
6855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856   (eval $ac_try) 2>&5
6857   ac_status=$?
6858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859   (exit $ac_status); }; } &&
6860          { ac_try='test -s conftest$ac_exeext'
6861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862   (eval $ac_try) 2>&5
6863   ac_status=$?
6864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865   (exit $ac_status); }; }; then
6866
6867 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6868 }'`
6869 # Check for a 64-bit object if we didn't find anything.
6870 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; }
6871 }'`; fi
6872 else
6873   echo "$as_me: failed program was:" >&5
6874 sed 's/^/| /' conftest.$ac_ext >&5
6875
6876 fi
6877 rm -f conftest.err conftest.$ac_objext \
6878       conftest$ac_exeext conftest.$ac_ext
6879 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6880
6881          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6882           # Warning - without using the other run time loading flags,
6883           # -berok will link without error, but may produce a broken library.
6884           no_undefined_flag=' ${wl}-bernotok'
6885           allow_undefined_flag=' ${wl}-berok'
6886           # -bexpall does not export symbols beginning with underscore (_)
6887           always_export_symbols=yes
6888           # Exported symbols can be pulled into shared objects from archives
6889           whole_archive_flag_spec=' '
6890           archive_cmds_need_lc=yes
6891           # This is similar to how AIX traditionally builds it's shared libraries.
6892           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'
6893         fi
6894       fi
6895       ;;
6896
6897     amigaos*)
6898       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)'
6899       hardcode_libdir_flag_spec='-L$libdir'
6900       hardcode_minus_L=yes
6901       # see comment about different semantics on the GNU ld section
6902       ld_shlibs=no
6903       ;;
6904
6905     bsdi4*)
6906       export_dynamic_flag_spec=-rdynamic
6907       ;;
6908
6909     cygwin* | mingw* | pw32*)
6910       # When not using gcc, we currently assume that we are using
6911       # Microsoft Visual C++.
6912       # hardcode_libdir_flag_spec is actually meaningless, as there is
6913       # no search path for DLLs.
6914       hardcode_libdir_flag_spec=' '
6915       allow_undefined_flag=unsupported
6916       # Tell ltmain to make .lib files, not .a files.
6917       libext=lib
6918       # Tell ltmain to make .dll files, not .so files.
6919       shrext=".dll"
6920       # FIXME: Setting linknames here is a bad hack.
6921       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6922       # The linker will automatically build a .lib file if we build a DLL.
6923       old_archive_From_new_cmds='true'
6924       # FIXME: Should let the user specify the lib program.
6925       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6926       fix_srcfile_path='`cygpath -w "$srcfile"`'
6927       enable_shared_with_static_runtimes=yes
6928       ;;
6929
6930     darwin* | rhapsody*)
6931     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6932       archive_cmds_need_lc=no
6933       case "$host_os" in
6934       rhapsody* | darwin1.[012])
6935         allow_undefined_flag='-undefined suppress'
6936         ;;
6937       *) # Darwin 1.3 on
6938         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6939         ;;
6940       esac
6941       # FIXME: Relying on posixy $() will cause problems for
6942       #        cross-compilation, but unfortunately the echo tests do not
6943       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6944       #        `"' quotes if we put them in here... so don't!
6945         lt_int_apple_cc_single_mod=no
6946         output_verbose_link_cmd='echo'
6947         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6948           lt_int_apple_cc_single_mod=yes
6949         fi
6950         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6951           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6952         else
6953         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'
6954       fi
6955       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6956       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6957         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6958           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}'
6959         else
6960           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}'
6961         fi
6962           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}'
6963       hardcode_direct=no
6964       hardcode_automatic=yes
6965       hardcode_shlibpath_var=unsupported
6966       whole_archive_flag_spec='-all_load $convenience'
6967       link_all_deplibs=yes
6968     fi
6969       ;;
6970
6971     dgux*)
6972       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6973       hardcode_libdir_flag_spec='-L$libdir'
6974       hardcode_shlibpath_var=no
6975       ;;
6976
6977     freebsd1*)
6978       ld_shlibs=no
6979       ;;
6980
6981     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6982     # support.  Future versions do this automatically, but an explicit c++rt0.o
6983     # does not break anything, and helps significantly (at the cost of a little
6984     # extra space).
6985     freebsd2.2*)
6986       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6987       hardcode_libdir_flag_spec='-R$libdir'
6988       hardcode_direct=yes
6989       hardcode_shlibpath_var=no
6990       ;;
6991
6992     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6993     freebsd2*)
6994       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6995       hardcode_direct=yes
6996       hardcode_minus_L=yes
6997       hardcode_shlibpath_var=no
6998       ;;
6999
7000     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7001     freebsd*)
7002       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7003       hardcode_libdir_flag_spec='-R$libdir'
7004       hardcode_direct=yes
7005       hardcode_shlibpath_var=no
7006       ;;
7007
7008     hpux9*)
7009       if test "$GCC" = yes; then
7010         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'
7011       else
7012         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'
7013       fi
7014       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7015       hardcode_libdir_separator=:
7016       hardcode_direct=yes
7017
7018       # hardcode_minus_L: Not really in the search PATH,
7019       # but as the default location of the library.
7020       hardcode_minus_L=yes
7021       export_dynamic_flag_spec='${wl}-E'
7022       ;;
7023
7024     hpux10* | hpux11*)
7025       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7026         case "$host_cpu" in
7027         hppa*64*|ia64*)
7028           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7029           ;;
7030         *)
7031           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7032           ;;
7033         esac
7034       else
7035         case "$host_cpu" in
7036         hppa*64*|ia64*)
7037           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7038           ;;
7039         *)
7040           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7041           ;;
7042         esac
7043       fi
7044       if test "$with_gnu_ld" = no; then
7045         case "$host_cpu" in
7046         hppa*64*)
7047           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7048           hardcode_libdir_flag_spec_ld='+b $libdir'
7049           hardcode_libdir_separator=:
7050           hardcode_direct=no
7051           hardcode_shlibpath_var=no
7052           ;;
7053         ia64*)
7054           hardcode_libdir_flag_spec='-L$libdir'
7055           hardcode_direct=no
7056           hardcode_shlibpath_var=no
7057
7058           # hardcode_minus_L: Not really in the search PATH,
7059           # but as the default location of the library.
7060           hardcode_minus_L=yes
7061           ;;
7062         *)
7063           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7064           hardcode_libdir_separator=:
7065           hardcode_direct=yes
7066           export_dynamic_flag_spec='${wl}-E'
7067
7068           # hardcode_minus_L: Not really in the search PATH,
7069           # but as the default location of the library.
7070           hardcode_minus_L=yes
7071           ;;
7072         esac
7073       fi
7074       ;;
7075
7076     irix5* | irix6* | nonstopux*)
7077       if test "$GCC" = yes; then
7078         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'
7079       else
7080         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'
7081         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7082       fi
7083       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7084       hardcode_libdir_separator=:
7085       link_all_deplibs=yes
7086       ;;
7087
7088     netbsd*)
7089       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7090         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7091       else
7092         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7093       fi
7094       hardcode_libdir_flag_spec='-R$libdir'
7095       hardcode_direct=yes
7096       hardcode_shlibpath_var=no
7097       ;;
7098
7099     newsos6)
7100       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7101       hardcode_direct=yes
7102       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7103       hardcode_libdir_separator=:
7104       hardcode_shlibpath_var=no
7105       ;;
7106
7107     openbsd*)
7108       hardcode_direct=yes
7109       hardcode_shlibpath_var=no
7110       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7111         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7112         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7113         export_dynamic_flag_spec='${wl}-E'
7114       else
7115        case $host_os in
7116          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7117            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7118            hardcode_libdir_flag_spec='-R$libdir'
7119            ;;
7120          *)
7121            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7122            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7123            ;;
7124        esac
7125       fi
7126       ;;
7127
7128     os2*)
7129       hardcode_libdir_flag_spec='-L$libdir'
7130       hardcode_minus_L=yes
7131       allow_undefined_flag=unsupported
7132       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'
7133       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7134       ;;
7135
7136     osf3*)
7137       if test "$GCC" = yes; then
7138         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7139         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'
7140       else
7141         allow_undefined_flag=' -expect_unresolved \*'
7142         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'
7143       fi
7144       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7145       hardcode_libdir_separator=:
7146       ;;
7147
7148     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7149       if test "$GCC" = yes; then
7150         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7151         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'
7152         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7153       else
7154         allow_undefined_flag=' -expect_unresolved \*'
7155         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'
7156         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7157         $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'
7158
7159         # Both c and cxx compiler support -rpath directly
7160         hardcode_libdir_flag_spec='-rpath $libdir'
7161       fi
7162       hardcode_libdir_separator=:
7163       ;;
7164
7165     sco3.2v5*)
7166       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7167       hardcode_shlibpath_var=no
7168       export_dynamic_flag_spec='${wl}-Bexport'
7169       runpath_var=LD_RUN_PATH
7170       hardcode_runpath_var=yes
7171       ;;
7172
7173     solaris*)
7174       no_undefined_flag=' -z text'
7175       if test "$GCC" = yes; then
7176         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7177         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7178           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7179       else
7180         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7181         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7182         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7183       fi
7184       hardcode_libdir_flag_spec='-R$libdir'
7185       hardcode_shlibpath_var=no
7186       case $host_os in
7187       solaris2.[0-5] | solaris2.[0-5].*) ;;
7188       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7189         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7190       esac
7191       link_all_deplibs=yes
7192       ;;
7193
7194     sunos4*)
7195       if test "x$host_vendor" = xsequent; then
7196         # Use $CC to link under sequent, because it throws in some extra .o
7197         # files that make .init and .fini sections work.
7198         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7199       else
7200         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7201       fi
7202       hardcode_libdir_flag_spec='-L$libdir'
7203       hardcode_direct=yes
7204       hardcode_minus_L=yes
7205       hardcode_shlibpath_var=no
7206       ;;
7207
7208     sysv4)
7209       case $host_vendor in
7210         sni)
7211           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7212           hardcode_direct=yes # is this really true???
7213         ;;
7214         siemens)
7215           ## LD is ld it makes a PLAMLIB
7216           ## CC just makes a GrossModule.
7217           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7218           reload_cmds='$CC -r -o $output$reload_objs'
7219           hardcode_direct=no
7220         ;;
7221         motorola)
7222           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7223           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7224         ;;
7225       esac
7226       runpath_var='LD_RUN_PATH'
7227       hardcode_shlibpath_var=no
7228       ;;
7229
7230     sysv4.3*)
7231       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7232       hardcode_shlibpath_var=no
7233       export_dynamic_flag_spec='-Bexport'
7234       ;;
7235
7236     sysv4*MP*)
7237       if test -d /usr/nec; then
7238         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7239         hardcode_shlibpath_var=no
7240         runpath_var=LD_RUN_PATH
7241         hardcode_runpath_var=yes
7242         ld_shlibs=yes
7243       fi
7244       ;;
7245
7246     sysv4.2uw2*)
7247       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7248       hardcode_direct=yes
7249       hardcode_minus_L=no
7250       hardcode_shlibpath_var=no
7251       hardcode_runpath_var=yes
7252       runpath_var=LD_RUN_PATH
7253       ;;
7254
7255    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7256       no_undefined_flag='${wl}-z ${wl}text'
7257       if test "$GCC" = yes; then
7258         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7259       else
7260         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7261       fi
7262       runpath_var='LD_RUN_PATH'
7263       hardcode_shlibpath_var=no
7264       ;;
7265
7266     sysv5*)
7267       no_undefined_flag=' -z text'
7268       # $CC -shared without GNU ld will not create a library from C++
7269       # object files and a static libstdc++, better avoid it by now
7270       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7271       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7272                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7273       hardcode_libdir_flag_spec=
7274       hardcode_shlibpath_var=no
7275       runpath_var='LD_RUN_PATH'
7276       ;;
7277
7278     uts4*)
7279       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7280       hardcode_libdir_flag_spec='-L$libdir'
7281       hardcode_shlibpath_var=no
7282       ;;
7283
7284     *)
7285       ld_shlibs=no
7286       ;;
7287     esac
7288   fi
7289
7290 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7291 echo "${ECHO_T}$ld_shlibs" >&6
7292 test "$ld_shlibs" = no && can_build_shared=no
7293
7294 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7295 if test "$GCC" = yes; then
7296   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7297 fi
7298
7299 #
7300 # Do we need to explicitly link libc?
7301 #
7302 case "x$archive_cmds_need_lc" in
7303 x|xyes)
7304   # Assume -lc should be added
7305   archive_cmds_need_lc=yes
7306
7307   if test "$enable_shared" = yes && test "$GCC" = yes; then
7308     case $archive_cmds in
7309     *'~'*)
7310       # FIXME: we may have to deal with multi-command sequences.
7311       ;;
7312     '$CC '*)
7313       # Test whether the compiler implicitly links with -lc since on some
7314       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7315       # to ld, don't add -lc before -lgcc.
7316       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7317 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7318       $rm conftest*
7319       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7320
7321       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7322   (eval $ac_compile) 2>&5
7323   ac_status=$?
7324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325   (exit $ac_status); } 2>conftest.err; then
7326         soname=conftest
7327         lib=conftest
7328         libobjs=conftest.$ac_objext
7329         deplibs=
7330         wl=$lt_prog_compiler_wl
7331         compiler_flags=-v
7332         linker_flags=-v
7333         verstring=
7334         output_objdir=.
7335         libname=conftest
7336         lt_save_allow_undefined_flag=$allow_undefined_flag
7337         allow_undefined_flag=
7338         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7339   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7340   ac_status=$?
7341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342   (exit $ac_status); }
7343         then
7344           archive_cmds_need_lc=no
7345         else
7346           archive_cmds_need_lc=yes
7347         fi
7348         allow_undefined_flag=$lt_save_allow_undefined_flag
7349       else
7350         cat conftest.err 1>&5
7351       fi
7352       $rm conftest*
7353       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7354 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7355       ;;
7356     esac
7357   fi
7358   ;;
7359 esac
7360
7361 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7362 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7363 hardcode_action=
7364 if test -n "$hardcode_libdir_flag_spec" || \
7365    test -n "$runpath_var " || \
7366    test "X$hardcode_automatic"="Xyes" ; then
7367
7368   # We can hardcode non-existant directories.
7369   if test "$hardcode_direct" != no &&
7370      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7371      # have to relink, otherwise we might link with an installed library
7372      # when we should be linking with a yet-to-be-installed one
7373      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7374      test "$hardcode_minus_L" != no; then
7375     # Linking always hardcodes the temporary library directory.
7376     hardcode_action=relink
7377   else
7378     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7379     hardcode_action=immediate
7380   fi
7381 else
7382   # We cannot hardcode anything, or else we can only hardcode existing
7383   # directories.
7384   hardcode_action=unsupported
7385 fi
7386 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7387 echo "${ECHO_T}$hardcode_action" >&6
7388
7389 if test "$hardcode_action" = relink; then
7390   # Fast installation is not supported
7391   enable_fast_install=no
7392 elif test "$shlibpath_overrides_runpath" = yes ||
7393      test "$enable_shared" = no; then
7394   # Fast installation is not necessary
7395   enable_fast_install=needless
7396 fi
7397
7398 striplib=
7399 old_striplib=
7400 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7401 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7402 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7403   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7404   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7405   echo "$as_me:$LINENO: result: yes" >&5
7406 echo "${ECHO_T}yes" >&6
7407 else
7408 # FIXME - insert some real tests, host_os isn't really good enough
7409   case $host_os in
7410    darwin*)
7411        if test -n "$STRIP" ; then
7412          striplib="$STRIP -x"
7413          echo "$as_me:$LINENO: result: yes" >&5
7414 echo "${ECHO_T}yes" >&6
7415        else
7416   echo "$as_me:$LINENO: result: no" >&5
7417 echo "${ECHO_T}no" >&6
7418 fi
7419        ;;
7420    *)
7421   echo "$as_me:$LINENO: result: no" >&5
7422 echo "${ECHO_T}no" >&6
7423     ;;
7424   esac
7425 fi
7426
7427 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7428 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7429 library_names_spec=
7430 libname_spec='lib$name'
7431 soname_spec=
7432 shrext=".so"
7433 postinstall_cmds=
7434 postuninstall_cmds=
7435 finish_cmds=
7436 finish_eval=
7437 shlibpath_var=
7438 shlibpath_overrides_runpath=unknown
7439 version_type=none
7440 dynamic_linker="$host_os ld.so"
7441 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7442 if test "$GCC" = yes; then
7443   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7444   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7445     # if the path contains ";" then we assume it to be the separator
7446     # otherwise default to the standard path separator (i.e. ":") - it is
7447     # assumed that no part of a normal pathname contains ";" but that should
7448     # okay in the real world where ";" in dirpaths is itself problematic.
7449     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7450   else
7451     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7452   fi
7453 else
7454   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7455 fi
7456 need_lib_prefix=unknown
7457 hardcode_into_libs=no
7458
7459 # when you set need_version to no, make sure it does not cause -set_version
7460 # flags to be left without arguments
7461 need_version=unknown
7462
7463 case $host_os in
7464 aix3*)
7465   version_type=linux
7466   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7467   shlibpath_var=LIBPATH
7468
7469   # AIX 3 has no versioning support, so we append a major version to the name.
7470   soname_spec='${libname}${release}${shared_ext}$major'
7471   ;;
7472
7473 aix4* | aix5*)
7474   version_type=linux
7475   need_lib_prefix=no
7476   need_version=no
7477   hardcode_into_libs=yes
7478   if test "$host_cpu" = ia64; then
7479     # AIX 5 supports IA64
7480     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7481     shlibpath_var=LD_LIBRARY_PATH
7482   else
7483     # With GCC up to 2.95.x, collect2 would create an import file
7484     # for dependence libraries.  The import file would start with
7485     # the line `#! .'.  This would cause the generated library to
7486     # depend on `.', always an invalid library.  This was fixed in
7487     # development snapshots of GCC prior to 3.0.
7488     case $host_os in
7489       aix4 | aix4.[01] | aix4.[01].*)
7490       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7491            echo ' yes '
7492            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7493         :
7494       else
7495         can_build_shared=no
7496       fi
7497       ;;
7498     esac
7499     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7500     # soname into executable. Probably we can add versioning support to
7501     # collect2, so additional links can be useful in future.
7502     if test "$aix_use_runtimelinking" = yes; then
7503       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7504       # instead of lib<name>.a to let people know that these are not
7505       # typical AIX shared libraries.
7506       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7507     else
7508       # We preserve .a as extension for shared libraries through AIX4.2
7509       # and later when we are not doing run time linking.
7510       library_names_spec='${libname}${release}.a $libname.a'
7511       soname_spec='${libname}${release}${shared_ext}$major'
7512     fi
7513     shlibpath_var=LIBPATH
7514   fi
7515   ;;
7516
7517 amigaos*)
7518   library_names_spec='$libname.ixlibrary $libname.a'
7519   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7520   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'
7521   ;;
7522
7523 beos*)
7524   library_names_spec='${libname}${shared_ext}'
7525   dynamic_linker="$host_os ld.so"
7526   shlibpath_var=LIBRARY_PATH
7527   ;;
7528
7529 bsdi4*)
7530   version_type=linux
7531   need_version=no
7532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7533   soname_spec='${libname}${release}${shared_ext}$major'
7534   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7535   shlibpath_var=LD_LIBRARY_PATH
7536   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7537   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7538   # the default ld.so.conf also contains /usr/contrib/lib and
7539   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7540   # libtool to hard-code these into programs
7541   ;;
7542
7543 cygwin* | mingw* | pw32*)
7544   version_type=windows
7545   shrext=".dll"
7546   need_version=no
7547   need_lib_prefix=no
7548
7549   case $GCC,$host_os in
7550   yes,cygwin* | yes,mingw* | yes,pw32*)
7551     library_names_spec='$libname.dll.a'
7552     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7553     postinstall_cmds='base_file=`basename \${file}`~
7554       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7555       dldir=$destdir/`dirname \$dlpath`~
7556       test -d \$dldir || mkdir -p \$dldir~
7557       $install_prog $dir/$dlname \$dldir/$dlname'
7558     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7559       dlpath=$dir/\$dldll~
7560        $rm \$dlpath'
7561     shlibpath_overrides_runpath=yes
7562
7563     case $host_os in
7564     cygwin*)
7565       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7566       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7567       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7568       ;;
7569     mingw*)
7570       # MinGW DLLs use traditional 'lib' prefix
7571       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7572       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7573       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7574         # It is most probably a Windows format PATH printed by
7575         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7576         # path with ; separators, and with drive letters. We can handle the
7577         # drive letters (cygwin fileutils understands them), so leave them,
7578         # especially as we might pass files found there to a mingw objdump,
7579         # which wouldn't understand a cygwinified path. Ahh.
7580         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7581       else
7582         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7583       fi
7584       ;;
7585     pw32*)
7586       # pw32 DLLs use 'pw' prefix rather than 'lib'
7587       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7588       ;;
7589     esac
7590     ;;
7591
7592   *)
7593     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7594     ;;
7595   esac
7596   dynamic_linker='Win32 ld.exe'
7597   # FIXME: first we should search . and the directory the executable is in
7598   shlibpath_var=PATH
7599   ;;
7600
7601 darwin* | rhapsody*)
7602   dynamic_linker="$host_os dyld"
7603   version_type=darwin
7604   need_lib_prefix=no
7605   need_version=no
7606   # FIXME: Relying on posixy $() will cause problems for
7607   #        cross-compilation, but unfortunately the echo tests do not
7608   #        yet detect zsh echo's removal of \ escapes.
7609   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7610   soname_spec='${libname}${release}${major}$shared_ext'
7611   shlibpath_overrides_runpath=yes
7612   shlibpath_var=DYLD_LIBRARY_PATH
7613   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7614   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7615   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7616   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"`
7617   fi
7618   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7619   ;;
7620
7621 dgux*)
7622   version_type=linux
7623   need_lib_prefix=no
7624   need_version=no
7625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7626   soname_spec='${libname}${release}${shared_ext}$major'
7627   shlibpath_var=LD_LIBRARY_PATH
7628   ;;
7629
7630 freebsd1*)
7631   dynamic_linker=no
7632   ;;
7633
7634 freebsd*)
7635   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7636   version_type=freebsd-$objformat
7637   case $version_type in
7638     freebsd-elf*)
7639       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7640       need_version=no
7641       need_lib_prefix=no
7642       ;;
7643     freebsd-*)
7644       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7645       need_version=yes
7646       ;;
7647   esac
7648   shlibpath_var=LD_LIBRARY_PATH
7649   case $host_os in
7650   freebsd2*)
7651     shlibpath_overrides_runpath=yes
7652     ;;
7653   freebsd3.01* | freebsdelf3.01*)
7654     shlibpath_overrides_runpath=yes
7655     hardcode_into_libs=yes
7656     ;;
7657   *) # from 3.2 on
7658     shlibpath_overrides_runpath=no
7659     hardcode_into_libs=yes
7660     ;;
7661   esac
7662   ;;
7663
7664 gnu*)
7665   version_type=linux
7666   need_lib_prefix=no
7667   need_version=no
7668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7669   soname_spec='${libname}${release}${shared_ext}$major'
7670   shlibpath_var=LD_LIBRARY_PATH
7671   hardcode_into_libs=yes
7672   ;;
7673
7674 hpux9* | hpux10* | hpux11*)
7675   # Give a soname corresponding to the major version so that dld.sl refuses to
7676   # link against other versions.
7677   version_type=sunos
7678   need_lib_prefix=no
7679   need_version=no
7680   case "$host_cpu" in
7681   ia64*)
7682     shrext='.so'
7683     hardcode_into_libs=yes
7684     dynamic_linker="$host_os dld.so"
7685     shlibpath_var=LD_LIBRARY_PATH
7686     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7687     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7688     soname_spec='${libname}${release}${shared_ext}$major'
7689     if test "X$HPUX_IA64_MODE" = X32; then
7690       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7691     else
7692       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7693     fi
7694     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7695     ;;
7696    hppa*64*)
7697      shrext='.sl'
7698      hardcode_into_libs=yes
7699      dynamic_linker="$host_os dld.sl"
7700      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7705      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7706      ;;
7707    *)
7708     shrext='.sl'
7709     dynamic_linker="$host_os dld.sl"
7710     shlibpath_var=SHLIB_PATH
7711     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7712     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7713     soname_spec='${libname}${release}${shared_ext}$major'
7714     ;;
7715   esac
7716   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7717   postinstall_cmds='chmod 555 $lib'
7718   ;;
7719
7720 irix5* | irix6* | nonstopux*)
7721   case $host_os in
7722     nonstopux*) version_type=nonstopux ;;
7723     *)
7724         if test "$lt_cv_prog_gnu_ld" = yes; then
7725                 version_type=linux
7726         else
7727                 version_type=irix
7728         fi ;;
7729   esac
7730   need_lib_prefix=no
7731   need_version=no
7732   soname_spec='${libname}${release}${shared_ext}$major'
7733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7734   case $host_os in
7735   irix5* | nonstopux*)
7736     libsuff= shlibsuff=
7737     ;;
7738   *)
7739     case $LD in # libtool.m4 will add one of these switches to LD
7740     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7741       libsuff= shlibsuff= libmagic=32-bit;;
7742     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7743       libsuff=32 shlibsuff=N32 libmagic=N32;;
7744     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7745       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7746     *) libsuff= shlibsuff= libmagic=never-match;;
7747     esac
7748     ;;
7749   esac
7750   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7751   shlibpath_overrides_runpath=no
7752   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7753   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7754   hardcode_into_libs=yes
7755   ;;
7756
7757 # No shared lib support for Linux oldld, aout, or coff.
7758 linux*oldld* | linux*aout* | linux*coff*)
7759   dynamic_linker=no
7760   ;;
7761
7762 # This must be Linux ELF.
7763 linux*)
7764   version_type=linux
7765   need_lib_prefix=no
7766   need_version=no
7767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7768   soname_spec='${libname}${release}${shared_ext}$major'
7769   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7770   shlibpath_var=LD_LIBRARY_PATH
7771   shlibpath_overrides_runpath=no
7772   # This implies no fast_install, which is unacceptable.
7773   # Some rework will be needed to allow for fast_install
7774   # before this can be enabled.
7775   hardcode_into_libs=yes
7776
7777   # We used to test for /lib/ld.so.1 and disable shared libraries on
7778   # powerpc, because MkLinux only supported shared libraries with the
7779   # GNU dynamic linker.  Since this was broken with cross compilers,
7780   # most powerpc-linux boxes support dynamic linking these days and
7781   # people can always --disable-shared, the test was removed, and we
7782   # assume the GNU/Linux dynamic linker is in use.
7783   dynamic_linker='GNU/Linux ld.so'
7784   ;;
7785
7786 netbsd*)
7787   version_type=sunos
7788   need_lib_prefix=no
7789   need_version=no
7790   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7791     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7792     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7793     dynamic_linker='NetBSD (a.out) ld.so'
7794   else
7795     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7796     soname_spec='${libname}${release}${shared_ext}$major'
7797     dynamic_linker='NetBSD ld.elf_so'
7798   fi
7799   shlibpath_var=LD_LIBRARY_PATH
7800   shlibpath_overrides_runpath=yes
7801   hardcode_into_libs=yes
7802   ;;
7803
7804 newsos6)
7805   version_type=linux
7806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7807   shlibpath_var=LD_LIBRARY_PATH
7808   shlibpath_overrides_runpath=yes
7809   ;;
7810
7811 nto-qnx)
7812   version_type=linux
7813   need_lib_prefix=no
7814   need_version=no
7815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7816   soname_spec='${libname}${release}${shared_ext}$major'
7817   shlibpath_var=LD_LIBRARY_PATH
7818   shlibpath_overrides_runpath=yes
7819   ;;
7820
7821 openbsd*)
7822   version_type=sunos
7823   need_lib_prefix=no
7824   need_version=no
7825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7826   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7827   shlibpath_var=LD_LIBRARY_PATH
7828   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7829     case $host_os in
7830       openbsd2.[89] | openbsd2.[89].*)
7831         shlibpath_overrides_runpath=no
7832         ;;
7833       *)
7834         shlibpath_overrides_runpath=yes
7835         ;;
7836       esac
7837   else
7838     shlibpath_overrides_runpath=yes
7839   fi
7840   ;;
7841
7842 os2*)
7843   libname_spec='$name'
7844   shrext=".dll"
7845   need_lib_prefix=no
7846   library_names_spec='$libname${shared_ext} $libname.a'
7847   dynamic_linker='OS/2 ld.exe'
7848   shlibpath_var=LIBPATH
7849   ;;
7850
7851 osf3* | osf4* | osf5*)
7852   version_type=osf
7853   need_lib_prefix=no
7854   need_version=no
7855   soname_spec='${libname}${release}${shared_ext}$major'
7856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7857   shlibpath_var=LD_LIBRARY_PATH
7858   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7859   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7860   ;;
7861
7862 sco3.2v5*)
7863   version_type=osf
7864   soname_spec='${libname}${release}${shared_ext}$major'
7865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7866   shlibpath_var=LD_LIBRARY_PATH
7867   ;;
7868
7869 solaris*)
7870   version_type=linux
7871   need_lib_prefix=no
7872   need_version=no
7873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7874   soname_spec='${libname}${release}${shared_ext}$major'
7875   shlibpath_var=LD_LIBRARY_PATH
7876   shlibpath_overrides_runpath=yes
7877   hardcode_into_libs=yes
7878   # ldd complains unless libraries are executable
7879   postinstall_cmds='chmod +x $lib'
7880   ;;
7881
7882 sunos4*)
7883   version_type=sunos
7884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7885   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7886   shlibpath_var=LD_LIBRARY_PATH
7887   shlibpath_overrides_runpath=yes
7888   if test "$with_gnu_ld" = yes; then
7889     need_lib_prefix=no
7890   fi
7891   need_version=yes
7892   ;;
7893
7894 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7895   version_type=linux
7896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7897   soname_spec='${libname}${release}${shared_ext}$major'
7898   shlibpath_var=LD_LIBRARY_PATH
7899   case $host_vendor in
7900     sni)
7901       shlibpath_overrides_runpath=no
7902       need_lib_prefix=no
7903       export_dynamic_flag_spec='${wl}-Blargedynsym'
7904       runpath_var=LD_RUN_PATH
7905       ;;
7906     siemens)
7907       need_lib_prefix=no
7908       ;;
7909     motorola)
7910       need_lib_prefix=no
7911       need_version=no
7912       shlibpath_overrides_runpath=no
7913       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7914       ;;
7915   esac
7916   ;;
7917
7918 sysv4*MP*)
7919   if test -d /usr/nec ;then
7920     version_type=linux
7921     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7922     soname_spec='$libname${shared_ext}.$major'
7923     shlibpath_var=LD_LIBRARY_PATH
7924   fi
7925   ;;
7926
7927 uts4*)
7928   version_type=linux
7929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7930   soname_spec='${libname}${release}${shared_ext}$major'
7931   shlibpath_var=LD_LIBRARY_PATH
7932   ;;
7933
7934 *)
7935   dynamic_linker=no
7936   ;;
7937 esac
7938 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7939 echo "${ECHO_T}$dynamic_linker" >&6
7940 test "$dynamic_linker" = no && can_build_shared=no
7941
7942 if test "x$enable_dlopen" != xyes; then
7943   enable_dlopen=unknown
7944   enable_dlopen_self=unknown
7945   enable_dlopen_self_static=unknown
7946 else
7947   lt_cv_dlopen=no
7948   lt_cv_dlopen_libs=
7949
7950   case $host_os in
7951   beos*)
7952     lt_cv_dlopen="load_add_on"
7953     lt_cv_dlopen_libs=
7954     lt_cv_dlopen_self=yes
7955     ;;
7956
7957   mingw* | pw32*)
7958     lt_cv_dlopen="LoadLibrary"
7959     lt_cv_dlopen_libs=
7960    ;;
7961
7962   cygwin*)
7963     lt_cv_dlopen="dlopen"
7964     lt_cv_dlopen_libs=
7965    ;;
7966
7967   darwin*)
7968   # if libdl is installed we need to link against it
7969     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7970 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7971 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7972   echo $ECHO_N "(cached) $ECHO_C" >&6
7973 else
7974   ac_check_lib_save_LIBS=$LIBS
7975 LIBS="-ldl  $LIBS"
7976 cat >conftest.$ac_ext <<_ACEOF
7977 /* confdefs.h.  */
7978 _ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h.  */
7982
7983 /* Override any gcc2 internal prototype to avoid an error.  */
7984 #ifdef __cplusplus
7985 extern "C"
7986 #endif
7987 /* We use char because int might match the return type of a gcc2
7988    builtin and then its argument prototype would still apply.  */
7989 char dlopen ();
7990 int
7991 main ()
7992 {
7993 dlopen ();
7994   ;
7995   return 0;
7996 }
7997 _ACEOF
7998 rm -f conftest.$ac_objext conftest$ac_exeext
7999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8000   (eval $ac_link) 2>conftest.er1
8001   ac_status=$?
8002   grep -v '^ *+' conftest.er1 >conftest.err
8003   rm -f conftest.er1
8004   cat conftest.err >&5
8005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006   (exit $ac_status); } &&
8007          { ac_try='test -z "$ac_c_werror_flag"
8008                          || test ! -s conftest.err'
8009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010   (eval $ac_try) 2>&5
8011   ac_status=$?
8012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013   (exit $ac_status); }; } &&
8014          { ac_try='test -s conftest$ac_exeext'
8015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016   (eval $ac_try) 2>&5
8017   ac_status=$?
8018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); }; }; then
8020   ac_cv_lib_dl_dlopen=yes
8021 else
8022   echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8024
8025 ac_cv_lib_dl_dlopen=no
8026 fi
8027 rm -f conftest.err conftest.$ac_objext \
8028       conftest$ac_exeext conftest.$ac_ext
8029 LIBS=$ac_check_lib_save_LIBS
8030 fi
8031 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8032 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8033 if test $ac_cv_lib_dl_dlopen = yes; then
8034   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8035 else
8036
8037     lt_cv_dlopen="dyld"
8038     lt_cv_dlopen_libs=
8039     lt_cv_dlopen_self=yes
8040
8041 fi
8042
8043    ;;
8044
8045   *)
8046     echo "$as_me:$LINENO: checking for shl_load" >&5
8047 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8048 if test "${ac_cv_func_shl_load+set}" = set; then
8049   echo $ECHO_N "(cached) $ECHO_C" >&6
8050 else
8051   cat >conftest.$ac_ext <<_ACEOF
8052 /* confdefs.h.  */
8053 _ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h.  */
8057 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8059 #define shl_load innocuous_shl_load
8060
8061 /* System header to define __stub macros and hopefully few prototypes,
8062     which can conflict with char shl_load (); below.
8063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8064     <limits.h> exists even on freestanding compilers.  */
8065
8066 #ifdef __STDC__
8067 # include <limits.h>
8068 #else
8069 # include <assert.h>
8070 #endif
8071
8072 #undef shl_load
8073
8074 /* Override any gcc2 internal prototype to avoid an error.  */
8075 #ifdef __cplusplus
8076 extern "C"
8077 {
8078 #endif
8079 /* We use char because int might match the return type of a gcc2
8080    builtin and then its argument prototype would still apply.  */
8081 char shl_load ();
8082 /* The GNU C library defines this for functions which it implements
8083     to always fail with ENOSYS.  Some functions are actually named
8084     something starting with __ and the normal name is an alias.  */
8085 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8086 choke me
8087 #else
8088 char (*f) () = shl_load;
8089 #endif
8090 #ifdef __cplusplus
8091 }
8092 #endif
8093
8094 int
8095 main ()
8096 {
8097 return f != shl_load;
8098   ;
8099   return 0;
8100 }
8101 _ACEOF
8102 rm -f conftest.$ac_objext conftest$ac_exeext
8103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8104   (eval $ac_link) 2>conftest.er1
8105   ac_status=$?
8106   grep -v '^ *+' conftest.er1 >conftest.err
8107   rm -f conftest.er1
8108   cat conftest.err >&5
8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110   (exit $ac_status); } &&
8111          { ac_try='test -z "$ac_c_werror_flag"
8112                          || test ! -s conftest.err'
8113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114   (eval $ac_try) 2>&5
8115   ac_status=$?
8116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117   (exit $ac_status); }; } &&
8118          { ac_try='test -s conftest$ac_exeext'
8119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120   (eval $ac_try) 2>&5
8121   ac_status=$?
8122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123   (exit $ac_status); }; }; then
8124   ac_cv_func_shl_load=yes
8125 else
8126   echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8128
8129 ac_cv_func_shl_load=no
8130 fi
8131 rm -f conftest.err conftest.$ac_objext \
8132       conftest$ac_exeext conftest.$ac_ext
8133 fi
8134 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8135 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8136 if test $ac_cv_func_shl_load = yes; then
8137   lt_cv_dlopen="shl_load"
8138 else
8139   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8140 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8141 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8142   echo $ECHO_N "(cached) $ECHO_C" >&6
8143 else
8144   ac_check_lib_save_LIBS=$LIBS
8145 LIBS="-ldld  $LIBS"
8146 cat >conftest.$ac_ext <<_ACEOF
8147 /* confdefs.h.  */
8148 _ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h.  */
8152
8153 /* Override any gcc2 internal prototype to avoid an error.  */
8154 #ifdef __cplusplus
8155 extern "C"
8156 #endif
8157 /* We use char because int might match the return type of a gcc2
8158    builtin and then its argument prototype would still apply.  */
8159 char shl_load ();
8160 int
8161 main ()
8162 {
8163 shl_load ();
8164   ;
8165   return 0;
8166 }
8167 _ACEOF
8168 rm -f conftest.$ac_objext conftest$ac_exeext
8169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8170   (eval $ac_link) 2>conftest.er1
8171   ac_status=$?
8172   grep -v '^ *+' conftest.er1 >conftest.err
8173   rm -f conftest.er1
8174   cat conftest.err >&5
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); } &&
8177          { ac_try='test -z "$ac_c_werror_flag"
8178                          || test ! -s conftest.err'
8179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180   (eval $ac_try) 2>&5
8181   ac_status=$?
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); }; } &&
8184          { ac_try='test -s conftest$ac_exeext'
8185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186   (eval $ac_try) 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); }; }; then
8190   ac_cv_lib_dld_shl_load=yes
8191 else
8192   echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8194
8195 ac_cv_lib_dld_shl_load=no
8196 fi
8197 rm -f conftest.err conftest.$ac_objext \
8198       conftest$ac_exeext conftest.$ac_ext
8199 LIBS=$ac_check_lib_save_LIBS
8200 fi
8201 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8202 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8203 if test $ac_cv_lib_dld_shl_load = yes; then
8204   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8205 else
8206   echo "$as_me:$LINENO: checking for dlopen" >&5
8207 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8208 if test "${ac_cv_func_dlopen+set}" = set; then
8209   echo $ECHO_N "(cached) $ECHO_C" >&6
8210 else
8211   cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h.  */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h.  */
8217 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8218    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8219 #define dlopen innocuous_dlopen
8220
8221 /* System header to define __stub macros and hopefully few prototypes,
8222     which can conflict with char dlopen (); below.
8223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8224     <limits.h> exists even on freestanding compilers.  */
8225
8226 #ifdef __STDC__
8227 # include <limits.h>
8228 #else
8229 # include <assert.h>
8230 #endif
8231
8232 #undef dlopen
8233
8234 /* Override any gcc2 internal prototype to avoid an error.  */
8235 #ifdef __cplusplus
8236 extern "C"
8237 {
8238 #endif
8239 /* We use char because int might match the return type of a gcc2
8240    builtin and then its argument prototype would still apply.  */
8241 char dlopen ();
8242 /* The GNU C library defines this for functions which it implements
8243     to always fail with ENOSYS.  Some functions are actually named
8244     something starting with __ and the normal name is an alias.  */
8245 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8246 choke me
8247 #else
8248 char (*f) () = dlopen;
8249 #endif
8250 #ifdef __cplusplus
8251 }
8252 #endif
8253
8254 int
8255 main ()
8256 {
8257 return f != dlopen;
8258   ;
8259   return 0;
8260 }
8261 _ACEOF
8262 rm -f conftest.$ac_objext conftest$ac_exeext
8263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8264   (eval $ac_link) 2>conftest.er1
8265   ac_status=$?
8266   grep -v '^ *+' conftest.er1 >conftest.err
8267   rm -f conftest.er1
8268   cat conftest.err >&5
8269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270   (exit $ac_status); } &&
8271          { ac_try='test -z "$ac_c_werror_flag"
8272                          || test ! -s conftest.err'
8273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274   (eval $ac_try) 2>&5
8275   ac_status=$?
8276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277   (exit $ac_status); }; } &&
8278          { ac_try='test -s conftest$ac_exeext'
8279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280   (eval $ac_try) 2>&5
8281   ac_status=$?
8282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283   (exit $ac_status); }; }; then
8284   ac_cv_func_dlopen=yes
8285 else
8286   echo "$as_me: failed program was:" >&5
8287 sed 's/^/| /' conftest.$ac_ext >&5
8288
8289 ac_cv_func_dlopen=no
8290 fi
8291 rm -f conftest.err conftest.$ac_objext \
8292       conftest$ac_exeext conftest.$ac_ext
8293 fi
8294 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8295 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8296 if test $ac_cv_func_dlopen = yes; then
8297   lt_cv_dlopen="dlopen"
8298 else
8299   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8300 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8301 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8302   echo $ECHO_N "(cached) $ECHO_C" >&6
8303 else
8304   ac_check_lib_save_LIBS=$LIBS
8305 LIBS="-ldl  $LIBS"
8306 cat >conftest.$ac_ext <<_ACEOF
8307 /* confdefs.h.  */
8308 _ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h.  */
8312
8313 /* Override any gcc2 internal prototype to avoid an error.  */
8314 #ifdef __cplusplus
8315 extern "C"
8316 #endif
8317 /* We use char because int might match the return type of a gcc2
8318    builtin and then its argument prototype would still apply.  */
8319 char dlopen ();
8320 int
8321 main ()
8322 {
8323 dlopen ();
8324   ;
8325   return 0;
8326 }
8327 _ACEOF
8328 rm -f conftest.$ac_objext conftest$ac_exeext
8329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8330   (eval $ac_link) 2>conftest.er1
8331   ac_status=$?
8332   grep -v '^ *+' conftest.er1 >conftest.err
8333   rm -f conftest.er1
8334   cat conftest.err >&5
8335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336   (exit $ac_status); } &&
8337          { ac_try='test -z "$ac_c_werror_flag"
8338                          || test ! -s conftest.err'
8339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340   (eval $ac_try) 2>&5
8341   ac_status=$?
8342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343   (exit $ac_status); }; } &&
8344          { ac_try='test -s conftest$ac_exeext'
8345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346   (eval $ac_try) 2>&5
8347   ac_status=$?
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); }; }; then
8350   ac_cv_lib_dl_dlopen=yes
8351 else
8352   echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8354
8355 ac_cv_lib_dl_dlopen=no
8356 fi
8357 rm -f conftest.err conftest.$ac_objext \
8358       conftest$ac_exeext conftest.$ac_ext
8359 LIBS=$ac_check_lib_save_LIBS
8360 fi
8361 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8362 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8363 if test $ac_cv_lib_dl_dlopen = yes; then
8364   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8365 else
8366   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8367 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8368 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8369   echo $ECHO_N "(cached) $ECHO_C" >&6
8370 else
8371   ac_check_lib_save_LIBS=$LIBS
8372 LIBS="-lsvld  $LIBS"
8373 cat >conftest.$ac_ext <<_ACEOF
8374 /* confdefs.h.  */
8375 _ACEOF
8376 cat confdefs.h >>conftest.$ac_ext
8377 cat >>conftest.$ac_ext <<_ACEOF
8378 /* end confdefs.h.  */
8379
8380 /* Override any gcc2 internal prototype to avoid an error.  */
8381 #ifdef __cplusplus
8382 extern "C"
8383 #endif
8384 /* We use char because int might match the return type of a gcc2
8385    builtin and then its argument prototype would still apply.  */
8386 char dlopen ();
8387 int
8388 main ()
8389 {
8390 dlopen ();
8391   ;
8392   return 0;
8393 }
8394 _ACEOF
8395 rm -f conftest.$ac_objext conftest$ac_exeext
8396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8397   (eval $ac_link) 2>conftest.er1
8398   ac_status=$?
8399   grep -v '^ *+' conftest.er1 >conftest.err
8400   rm -f conftest.er1
8401   cat conftest.err >&5
8402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403   (exit $ac_status); } &&
8404          { ac_try='test -z "$ac_c_werror_flag"
8405                          || test ! -s conftest.err'
8406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407   (eval $ac_try) 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); }; } &&
8411          { ac_try='test -s conftest$ac_exeext'
8412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413   (eval $ac_try) 2>&5
8414   ac_status=$?
8415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416   (exit $ac_status); }; }; then
8417   ac_cv_lib_svld_dlopen=yes
8418 else
8419   echo "$as_me: failed program was:" >&5
8420 sed 's/^/| /' conftest.$ac_ext >&5
8421
8422 ac_cv_lib_svld_dlopen=no
8423 fi
8424 rm -f conftest.err conftest.$ac_objext \
8425       conftest$ac_exeext conftest.$ac_ext
8426 LIBS=$ac_check_lib_save_LIBS
8427 fi
8428 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8429 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8430 if test $ac_cv_lib_svld_dlopen = yes; then
8431   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8432 else
8433   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8434 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8435 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8436   echo $ECHO_N "(cached) $ECHO_C" >&6
8437 else
8438   ac_check_lib_save_LIBS=$LIBS
8439 LIBS="-ldld  $LIBS"
8440 cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h.  */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h.  */
8446
8447 /* Override any gcc2 internal prototype to avoid an error.  */
8448 #ifdef __cplusplus
8449 extern "C"
8450 #endif
8451 /* We use char because int might match the return type of a gcc2
8452    builtin and then its argument prototype would still apply.  */
8453 char dld_link ();
8454 int
8455 main ()
8456 {
8457 dld_link ();
8458   ;
8459   return 0;
8460 }
8461 _ACEOF
8462 rm -f conftest.$ac_objext conftest$ac_exeext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8464   (eval $ac_link) 2>conftest.er1
8465   ac_status=$?
8466   grep -v '^ *+' conftest.er1 >conftest.err
8467   rm -f conftest.er1
8468   cat conftest.err >&5
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); } &&
8471          { ac_try='test -z "$ac_c_werror_flag"
8472                          || test ! -s conftest.err'
8473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474   (eval $ac_try) 2>&5
8475   ac_status=$?
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); }; } &&
8478          { ac_try='test -s conftest$ac_exeext'
8479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480   (eval $ac_try) 2>&5
8481   ac_status=$?
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); }; }; then
8484   ac_cv_lib_dld_dld_link=yes
8485 else
8486   echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8488
8489 ac_cv_lib_dld_dld_link=no
8490 fi
8491 rm -f conftest.err conftest.$ac_objext \
8492       conftest$ac_exeext conftest.$ac_ext
8493 LIBS=$ac_check_lib_save_LIBS
8494 fi
8495 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8496 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8497 if test $ac_cv_lib_dld_dld_link = yes; then
8498   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8499 fi
8500
8501
8502 fi
8503
8504
8505 fi
8506
8507
8508 fi
8509
8510
8511 fi
8512
8513
8514 fi
8515
8516     ;;
8517   esac
8518
8519   if test "x$lt_cv_dlopen" != xno; then
8520     enable_dlopen=yes
8521   else
8522     enable_dlopen=no
8523   fi
8524
8525   case $lt_cv_dlopen in
8526   dlopen)
8527     save_CPPFLAGS="$CPPFLAGS"
8528     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8529
8530     save_LDFLAGS="$LDFLAGS"
8531     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8532
8533     save_LIBS="$LIBS"
8534     LIBS="$lt_cv_dlopen_libs $LIBS"
8535
8536     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8537 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8538 if test "${lt_cv_dlopen_self+set}" = set; then
8539   echo $ECHO_N "(cached) $ECHO_C" >&6
8540 else
8541           if test "$cross_compiling" = yes; then :
8542   lt_cv_dlopen_self=cross
8543 else
8544   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8545   lt_status=$lt_dlunknown
8546   cat > conftest.$ac_ext <<EOF
8547 #line 8547 "configure"
8548 #include "confdefs.h"
8549
8550 #if HAVE_DLFCN_H
8551 #include <dlfcn.h>
8552 #endif
8553
8554 #include <stdio.h>
8555
8556 #ifdef RTLD_GLOBAL
8557 #  define LT_DLGLOBAL           RTLD_GLOBAL
8558 #else
8559 #  ifdef DL_GLOBAL
8560 #    define LT_DLGLOBAL         DL_GLOBAL
8561 #  else
8562 #    define LT_DLGLOBAL         0
8563 #  endif
8564 #endif
8565
8566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8567    find out it does not work in some platform. */
8568 #ifndef LT_DLLAZY_OR_NOW
8569 #  ifdef RTLD_LAZY
8570 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8571 #  else
8572 #    ifdef DL_LAZY
8573 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8574 #    else
8575 #      ifdef RTLD_NOW
8576 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8577 #      else
8578 #        ifdef DL_NOW
8579 #          define LT_DLLAZY_OR_NOW      DL_NOW
8580 #        else
8581 #          define LT_DLLAZY_OR_NOW      0
8582 #        endif
8583 #      endif
8584 #    endif
8585 #  endif
8586 #endif
8587
8588 #ifdef __cplusplus
8589 extern "C" void exit (int);
8590 #endif
8591
8592 void fnord() { int i=42;}
8593 int main ()
8594 {
8595   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8596   int status = $lt_dlunknown;
8597
8598   if (self)
8599     {
8600       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8601       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8602       /* dlclose (self); */
8603     }
8604
8605     exit (status);
8606 }
8607 EOF
8608   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609   (eval $ac_link) 2>&5
8610   ac_status=$?
8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8613     (./conftest; exit; ) 2>/dev/null
8614     lt_status=$?
8615     case x$lt_status in
8616       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8617       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8618       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8619     esac
8620   else :
8621     # compilation failed
8622     lt_cv_dlopen_self=no
8623   fi
8624 fi
8625 rm -fr conftest*
8626
8627
8628 fi
8629 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8630 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8631
8632     if test "x$lt_cv_dlopen_self" = xyes; then
8633       LDFLAGS="$LDFLAGS $link_static_flag"
8634       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8635 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8636 if test "${lt_cv_dlopen_self_static+set}" = set; then
8637   echo $ECHO_N "(cached) $ECHO_C" >&6
8638 else
8639           if test "$cross_compiling" = yes; then :
8640   lt_cv_dlopen_self_static=cross
8641 else
8642   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8643   lt_status=$lt_dlunknown
8644   cat > conftest.$ac_ext <<EOF
8645 #line 8645 "configure"
8646 #include "confdefs.h"
8647
8648 #if HAVE_DLFCN_H
8649 #include <dlfcn.h>
8650 #endif
8651
8652 #include <stdio.h>
8653
8654 #ifdef RTLD_GLOBAL
8655 #  define LT_DLGLOBAL           RTLD_GLOBAL
8656 #else
8657 #  ifdef DL_GLOBAL
8658 #    define LT_DLGLOBAL         DL_GLOBAL
8659 #  else
8660 #    define LT_DLGLOBAL         0
8661 #  endif
8662 #endif
8663
8664 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8665    find out it does not work in some platform. */
8666 #ifndef LT_DLLAZY_OR_NOW
8667 #  ifdef RTLD_LAZY
8668 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8669 #  else
8670 #    ifdef DL_LAZY
8671 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8672 #    else
8673 #      ifdef RTLD_NOW
8674 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8675 #      else
8676 #        ifdef DL_NOW
8677 #          define LT_DLLAZY_OR_NOW      DL_NOW
8678 #        else
8679 #          define LT_DLLAZY_OR_NOW      0
8680 #        endif
8681 #      endif
8682 #    endif
8683 #  endif
8684 #endif
8685
8686 #ifdef __cplusplus
8687 extern "C" void exit (int);
8688 #endif
8689
8690 void fnord() { int i=42;}
8691 int main ()
8692 {
8693   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8694   int status = $lt_dlunknown;
8695
8696   if (self)
8697     {
8698       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8699       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8700       /* dlclose (self); */
8701     }
8702
8703     exit (status);
8704 }
8705 EOF
8706   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8707   (eval $ac_link) 2>&5
8708   ac_status=$?
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8711     (./conftest; exit; ) 2>/dev/null
8712     lt_status=$?
8713     case x$lt_status in
8714       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8715       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8716       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8717     esac
8718   else :
8719     # compilation failed
8720     lt_cv_dlopen_self_static=no
8721   fi
8722 fi
8723 rm -fr conftest*
8724
8725
8726 fi
8727 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8728 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8729     fi
8730
8731     CPPFLAGS="$save_CPPFLAGS"
8732     LDFLAGS="$save_LDFLAGS"
8733     LIBS="$save_LIBS"
8734     ;;
8735   esac
8736
8737   case $lt_cv_dlopen_self in
8738   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8739   *) enable_dlopen_self=unknown ;;
8740   esac
8741
8742   case $lt_cv_dlopen_self_static in
8743   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8744   *) enable_dlopen_self_static=unknown ;;
8745   esac
8746 fi
8747
8748
8749 # Report which librarie types wil actually be built
8750 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8751 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8752 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8753 echo "${ECHO_T}$can_build_shared" >&6
8754
8755 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8756 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8757 test "$can_build_shared" = "no" && enable_shared=no
8758
8759 # On AIX, shared libraries and static libraries use the same namespace, and
8760 # are all built from PIC.
8761 case "$host_os" in
8762 aix3*)
8763   test "$enable_shared" = yes && enable_static=no
8764   if test -n "$RANLIB"; then
8765     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8766     postinstall_cmds='$RANLIB $lib'
8767   fi
8768   ;;
8769
8770 aix4*)
8771   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8772     test "$enable_shared" = yes && enable_static=no
8773   fi
8774   ;;
8775   darwin* | rhapsody*)
8776   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8777     archive_cmds_need_lc=no
8778     case "$host_os" in
8779     rhapsody* | darwin1.[012])
8780       allow_undefined_flag='-undefined suppress'
8781       ;;
8782     *) # Darwin 1.3 on
8783       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8784       ;;
8785     esac
8786     # FIXME: Relying on posixy $() will cause problems for
8787     #        cross-compilation, but unfortunately the echo tests do not
8788     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8789     #          `"' quotes if we put them in here... so don't!
8790                 output_verbose_link_cmd='echo'
8791     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8792     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8793     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8794                   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}'
8795                   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}'
8796     hardcode_direct=no
8797     hardcode_automatic=yes
8798     hardcode_shlibpath_var=unsupported
8799     whole_archive_flag_spec='-all_load $convenience'
8800     link_all_deplibs=yes
8801     fi
8802     ;;
8803 esac
8804 echo "$as_me:$LINENO: result: $enable_shared" >&5
8805 echo "${ECHO_T}$enable_shared" >&6
8806
8807 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8808 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8809 # Make sure either enable_shared or enable_static is yes.
8810 test "$enable_shared" = yes || enable_static=yes
8811 echo "$as_me:$LINENO: result: $enable_static" >&5
8812 echo "${ECHO_T}$enable_static" >&6
8813
8814 # The else clause should only fire when bootstrapping the
8815 # libtool distribution, otherwise you forgot to ship ltmain.sh
8816 # with your package, and you will get complaints that there are
8817 # no rules to generate ltmain.sh.
8818 if test -f "$ltmain"; then
8819   # See if we are running on zsh, and set the options which allow our commands through
8820   # without removal of \ escapes.
8821   if test -n "${ZSH_VERSION+set}" ; then
8822     setopt NO_GLOB_SUBST
8823   fi
8824   # Now quote all the things that may contain metacharacters while being
8825   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8826   # variables and quote the copies for generation of the libtool script.
8827   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8828     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8829     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8830     deplibs_check_method reload_flag reload_cmds need_locks \
8831     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8832     lt_cv_sys_global_symbol_to_c_name_address \
8833     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8834     old_postinstall_cmds old_postuninstall_cmds \
8835     compiler \
8836     CC \
8837     LD \
8838     lt_prog_compiler_wl \
8839     lt_prog_compiler_pic \
8840     lt_prog_compiler_static \
8841     lt_prog_compiler_no_builtin_flag \
8842     export_dynamic_flag_spec \
8843     thread_safe_flag_spec \
8844     whole_archive_flag_spec \
8845     enable_shared_with_static_runtimes \
8846     old_archive_cmds \
8847     old_archive_from_new_cmds \
8848     predep_objects \
8849     postdep_objects \
8850     predeps \
8851     postdeps \
8852     compiler_lib_search_path \
8853     archive_cmds \
8854     archive_expsym_cmds \
8855     postinstall_cmds \
8856     postuninstall_cmds \
8857     old_archive_from_expsyms_cmds \
8858     allow_undefined_flag \
8859     no_undefined_flag \
8860     export_symbols_cmds \
8861     hardcode_libdir_flag_spec \
8862     hardcode_libdir_flag_spec_ld \
8863     hardcode_libdir_separator \
8864     hardcode_automatic \
8865     module_cmds \
8866     module_expsym_cmds \
8867     lt_cv_prog_compiler_c_o \
8868     exclude_expsyms \
8869     include_expsyms; do
8870
8871     case $var in
8872     old_archive_cmds | \
8873     old_archive_from_new_cmds | \
8874     archive_cmds | \
8875     archive_expsym_cmds | \
8876     module_cmds | \
8877     module_expsym_cmds | \
8878     old_archive_from_expsyms_cmds | \
8879     export_symbols_cmds | \
8880     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8881     postinstall_cmds | postuninstall_cmds | \
8882     old_postinstall_cmds | old_postuninstall_cmds | \
8883     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8884       # Double-quote double-evaled strings.
8885       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8886       ;;
8887     *)
8888       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8889       ;;
8890     esac
8891   done
8892
8893   case $lt_echo in
8894   *'\$0 --fallback-echo"')
8895     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8896     ;;
8897   esac
8898
8899 cfgfile="${ofile}T"
8900   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8901   $rm -f "$cfgfile"
8902   { echo "$as_me:$LINENO: creating $ofile" >&5
8903 echo "$as_me: creating $ofile" >&6;}
8904
8905   cat <<__EOF__ >> "$cfgfile"
8906 #! $SHELL
8907
8908 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8909 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8910 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8911 #
8912 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8913 # Free Software Foundation, Inc.
8914 #
8915 # This file is part of GNU Libtool:
8916 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8917 #
8918 # This program is free software; you can redistribute it and/or modify
8919 # it under the terms of the GNU General Public License as published by
8920 # the Free Software Foundation; either version 2 of the License, or
8921 # (at your option) any later version.
8922 #
8923 # This program is distributed in the hope that it will be useful, but
8924 # WITHOUT ANY WARRANTY; without even the implied warranty of
8925 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8926 # General Public License for more details.
8927 #
8928 # You should have received a copy of the GNU General Public License
8929 # along with this program; if not, write to the Free Software
8930 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8931 #
8932 # As a special exception to the GNU General Public License, if you
8933 # distribute this file as part of a program that contains a
8934 # configuration script generated by Autoconf, you may include it under
8935 # the same distribution terms that you use for the rest of that program.
8936
8937 # A sed program that does not truncate output.
8938 SED=$lt_SED
8939
8940 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8941 Xsed="$SED -e s/^X//"
8942
8943 # The HP-UX ksh and POSIX shell print the target directory to stdout
8944 # if CDPATH is set.
8945 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8946
8947 # The names of the tagged configurations supported by this script.
8948 available_tags=
8949
8950 # ### BEGIN LIBTOOL CONFIG
8951
8952 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8953
8954 # Shell to use when invoking shell scripts.
8955 SHELL=$lt_SHELL
8956
8957 # Whether or not to build shared libraries.
8958 build_libtool_libs=$enable_shared
8959
8960 # Whether or not to build static libraries.
8961 build_old_libs=$enable_static
8962
8963 # Whether or not to add -lc for building shared libraries.
8964 build_libtool_need_lc=$archive_cmds_need_lc
8965
8966 # Whether or not to disallow shared libs when runtime libs are static
8967 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8968
8969 # Whether or not to optimize for fast installation.
8970 fast_install=$enable_fast_install
8971
8972 # The host system.
8973 host_alias=$host_alias
8974 host=$host
8975
8976 # An echo program that does not interpret backslashes.
8977 echo=$lt_echo
8978
8979 # The archiver.
8980 AR=$lt_AR
8981 AR_FLAGS=$lt_AR_FLAGS
8982
8983 # A C compiler.
8984 LTCC=$lt_LTCC
8985
8986 # A language-specific compiler.
8987 CC=$lt_compiler
8988
8989 # Is the compiler the GNU C compiler?
8990 with_gcc=$GCC
8991
8992 # An ERE matcher.
8993 EGREP=$lt_EGREP
8994
8995 # The linker used to build libraries.
8996 LD=$lt_LD
8997
8998 # Whether we need hard or soft links.
8999 LN_S=$lt_LN_S
9000
9001 # A BSD-compatible nm program.
9002 NM=$lt_NM
9003
9004 # A symbol stripping program
9005 STRIP=$STRIP
9006
9007 # Used to examine libraries when file_magic_cmd begins "file"
9008 MAGIC_CMD=$MAGIC_CMD
9009
9010 # Used on cygwin: DLL creation program.
9011 DLLTOOL="$DLLTOOL"
9012
9013 # Used on cygwin: object dumper.
9014 OBJDUMP="$OBJDUMP"
9015
9016 # Used on cygwin: assembler.
9017 AS="$AS"
9018
9019 # The name of the directory that contains temporary libtool files.
9020 objdir=$objdir
9021
9022 # How to create reloadable object files.
9023 reload_flag=$lt_reload_flag
9024 reload_cmds=$lt_reload_cmds
9025
9026 # How to pass a linker flag through the compiler.
9027 wl=$lt_lt_prog_compiler_wl
9028
9029 # Object file suffix (normally "o").
9030 objext="$ac_objext"
9031
9032 # Old archive suffix (normally "a").
9033 libext="$libext"
9034
9035 # Shared library suffix (normally ".so").
9036 shrext='$shrext'
9037
9038 # Executable file suffix (normally "").
9039 exeext="$exeext"
9040
9041 # Additional compiler flags for building library objects.
9042 pic_flag=$lt_lt_prog_compiler_pic
9043 pic_mode=$pic_mode
9044
9045 # What is the maximum length of a command?
9046 max_cmd_len=$lt_cv_sys_max_cmd_len
9047
9048 # Does compiler simultaneously support -c and -o options?
9049 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9050
9051 # Must we lock files when doing compilation ?
9052 need_locks=$lt_need_locks
9053
9054 # Do we need the lib prefix for modules?
9055 need_lib_prefix=$need_lib_prefix
9056
9057 # Do we need a version for libraries?
9058 need_version=$need_version
9059
9060 # Whether dlopen is supported.
9061 dlopen_support=$enable_dlopen
9062
9063 # Whether dlopen of programs is supported.
9064 dlopen_self=$enable_dlopen_self
9065
9066 # Whether dlopen of statically linked programs is supported.
9067 dlopen_self_static=$enable_dlopen_self_static
9068
9069 # Compiler flag to prevent dynamic linking.
9070 link_static_flag=$lt_lt_prog_compiler_static
9071
9072 # Compiler flag to turn off builtin functions.
9073 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9074
9075 # Compiler flag to allow reflexive dlopens.
9076 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9077
9078 # Compiler flag to generate shared objects directly from archives.
9079 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9080
9081 # Compiler flag to generate thread-safe objects.
9082 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9083
9084 # Library versioning type.
9085 version_type=$version_type
9086
9087 # Format of library name prefix.
9088 libname_spec=$lt_libname_spec
9089
9090 # List of archive names.  First name is the real one, the rest are links.
9091 # The last name is the one that the linker finds with -lNAME.
9092 library_names_spec=$lt_library_names_spec
9093
9094 # The coded name of the library, if different from the real name.
9095 soname_spec=$lt_soname_spec
9096
9097 # Commands used to build and install an old-style archive.
9098 RANLIB=$lt_RANLIB
9099 old_archive_cmds=$lt_old_archive_cmds
9100 old_postinstall_cmds=$lt_old_postinstall_cmds
9101 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9102
9103 # Create an old-style archive from a shared archive.
9104 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9105
9106 # Create a temporary old-style archive to link instead of a shared archive.
9107 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9108
9109 # Commands used to build and install a shared archive.
9110 archive_cmds=$lt_archive_cmds
9111 archive_expsym_cmds=$lt_archive_expsym_cmds
9112 postinstall_cmds=$lt_postinstall_cmds
9113 postuninstall_cmds=$lt_postuninstall_cmds
9114
9115 # Commands used to build a loadable module (assumed same as above if empty)
9116 module_cmds=$lt_module_cmds
9117 module_expsym_cmds=$lt_module_expsym_cmds
9118
9119 # Commands to strip libraries.
9120 old_striplib=$lt_old_striplib
9121 striplib=$lt_striplib
9122
9123 # Dependencies to place before the objects being linked to create a
9124 # shared library.
9125 predep_objects=$lt_predep_objects
9126
9127 # Dependencies to place after the objects being linked to create a
9128 # shared library.
9129 postdep_objects=$lt_postdep_objects
9130
9131 # Dependencies to place before the objects being linked to create a
9132 # shared library.
9133 predeps=$lt_predeps
9134
9135 # Dependencies to place after the objects being linked to create a
9136 # shared library.
9137 postdeps=$lt_postdeps
9138
9139 # The library search path used internally by the compiler when linking
9140 # a shared library.
9141 compiler_lib_search_path=$lt_compiler_lib_search_path
9142
9143 # Method to check whether dependent libraries are shared objects.
9144 deplibs_check_method=$lt_deplibs_check_method
9145
9146 # Command to use when deplibs_check_method == file_magic.
9147 file_magic_cmd=$lt_file_magic_cmd
9148
9149 # Flag that allows shared libraries with undefined symbols to be built.
9150 allow_undefined_flag=$lt_allow_undefined_flag
9151
9152 # Flag that forces no undefined symbols.
9153 no_undefined_flag=$lt_no_undefined_flag
9154
9155 # Commands used to finish a libtool library installation in a directory.
9156 finish_cmds=$lt_finish_cmds
9157
9158 # Same as above, but a single script fragment to be evaled but not shown.
9159 finish_eval=$lt_finish_eval
9160
9161 # Take the output of nm and produce a listing of raw symbols and C names.
9162 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9163
9164 # Transform the output of nm in a proper C declaration
9165 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9166
9167 # Transform the output of nm in a C name address pair
9168 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9169
9170 # This is the shared library runtime path variable.
9171 runpath_var=$runpath_var
9172
9173 # This is the shared library path variable.
9174 shlibpath_var=$shlibpath_var
9175
9176 # Is shlibpath searched before the hard-coded library search path?
9177 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9178
9179 # How to hardcode a shared library path into an executable.
9180 hardcode_action=$hardcode_action
9181
9182 # Whether we should hardcode library paths into libraries.
9183 hardcode_into_libs=$hardcode_into_libs
9184
9185 # Flag to hardcode \$libdir into a binary during linking.
9186 # This must work even if \$libdir does not exist.
9187 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9188
9189 # If ld is used when linking, flag to hardcode \$libdir into
9190 # a binary during linking. This must work even if \$libdir does
9191 # not exist.
9192 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9193
9194 # Whether we need a single -rpath flag with a separated argument.
9195 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9196
9197 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9198 # resulting binary.
9199 hardcode_direct=$hardcode_direct
9200
9201 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9202 # resulting binary.
9203 hardcode_minus_L=$hardcode_minus_L
9204
9205 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9206 # the resulting binary.
9207 hardcode_shlibpath_var=$hardcode_shlibpath_var
9208
9209 # Set to yes if building a shared library automatically hardcodes DIR into the library
9210 # and all subsequent libraries and executables linked against it.
9211 hardcode_automatic=$hardcode_automatic
9212
9213 # Variables whose values should be saved in libtool wrapper scripts and
9214 # restored at relink time.
9215 variables_saved_for_relink="$variables_saved_for_relink"
9216
9217 # Whether libtool must link a program against all its dependency libraries.
9218 link_all_deplibs=$link_all_deplibs
9219
9220 # Compile-time system search path for libraries
9221 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9222
9223 # Run-time system search path for libraries
9224 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9225
9226 # Fix the shell variable \$srcfile for the compiler.
9227 fix_srcfile_path="$fix_srcfile_path"
9228
9229 # Set to yes if exported symbols are required.
9230 always_export_symbols=$always_export_symbols
9231
9232 # The commands to list exported symbols.
9233 export_symbols_cmds=$lt_export_symbols_cmds
9234
9235 # The commands to extract the exported symbol list from a shared archive.
9236 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9237
9238 # Symbols that should not be listed in the preloaded symbols.
9239 exclude_expsyms=$lt_exclude_expsyms
9240
9241 # Symbols that must always be exported.
9242 include_expsyms=$lt_include_expsyms
9243
9244 # ### END LIBTOOL CONFIG
9245
9246 __EOF__
9247
9248
9249   case $host_os in
9250   aix3*)
9251     cat <<\EOF >> "$cfgfile"
9252
9253 # AIX sometimes has problems with the GCC collect2 program.  For some
9254 # reason, if we set the COLLECT_NAMES environment variable, the problems
9255 # vanish in a puff of smoke.
9256 if test "X${COLLECT_NAMES+set}" != Xset; then
9257   COLLECT_NAMES=
9258   export COLLECT_NAMES
9259 fi
9260 EOF
9261     ;;
9262   esac
9263
9264   # We use sed instead of cat because bash on DJGPP gets confused if
9265   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9266   # text mode, it properly converts lines to CR/LF.  This bash problem
9267   # is reportedly fixed, but why not run on old versions too?
9268   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9269
9270   mv -f "$cfgfile" "$ofile" || \
9271     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9272   chmod +x "$ofile"
9273
9274 else
9275   # If there is no Makefile yet, we rely on a make rule to execute
9276   # `config.status --recheck' to rerun these tests and create the
9277   # libtool script then.
9278   test -f Makefile && make "$ltmain"
9279 fi
9280
9281
9282 ac_ext=c
9283 ac_cpp='$CPP $CPPFLAGS'
9284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9287
9288 CC="$lt_save_CC"
9289
9290
9291 # Check whether --with-tags or --without-tags was given.
9292 if test "${with_tags+set}" = set; then
9293   withval="$with_tags"
9294   tagnames="$withval"
9295 fi;
9296
9297 if test -f "$ltmain" && test -n "$tagnames"; then
9298   if test ! -f "${ofile}"; then
9299     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9300 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9301   fi
9302
9303   if test -z "$LTCC"; then
9304     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9305     if test -z "$LTCC"; then
9306       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9307 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9308     else
9309       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9310 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9311     fi
9312   fi
9313
9314   # Extract list of available tagged configurations in $ofile.
9315   # Note that this assumes the entire list is on one line.
9316   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9317
9318   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9319   for tagname in $tagnames; do
9320     IFS="$lt_save_ifs"
9321     # Check whether tagname contains only valid characters
9322     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9323     "") ;;
9324     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9325 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9326    { (exit 1); exit 1; }; }
9327         ;;
9328     esac
9329
9330     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9331     then
9332       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9333 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9334    { (exit 1); exit 1; }; }
9335     fi
9336
9337     # Update the list of available tags.
9338     if test -n "$tagname"; then
9339       echo appending configuration tag \"$tagname\" to $ofile
9340
9341       case $tagname in
9342       CXX)
9343         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9344           ac_ext=cc
9345 ac_cpp='$CXXCPP $CPPFLAGS'
9346 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9347 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9348 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9349
9350
9351
9352
9353 archive_cmds_need_lc_CXX=no
9354 allow_undefined_flag_CXX=
9355 always_export_symbols_CXX=no
9356 archive_expsym_cmds_CXX=
9357 export_dynamic_flag_spec_CXX=
9358 hardcode_direct_CXX=no
9359 hardcode_libdir_flag_spec_CXX=
9360 hardcode_libdir_flag_spec_ld_CXX=
9361 hardcode_libdir_separator_CXX=
9362 hardcode_minus_L_CXX=no
9363 hardcode_automatic_CXX=no
9364 module_cmds_CXX=
9365 module_expsym_cmds_CXX=
9366 link_all_deplibs_CXX=unknown
9367 old_archive_cmds_CXX=$old_archive_cmds
9368 no_undefined_flag_CXX=
9369 whole_archive_flag_spec_CXX=
9370 enable_shared_with_static_runtimes_CXX=no
9371
9372 # Dependencies to place before and after the object being linked:
9373 predep_objects_CXX=
9374 postdep_objects_CXX=
9375 predeps_CXX=
9376 postdeps_CXX=
9377 compiler_lib_search_path_CXX=
9378
9379 # Source file extension for C++ test sources.
9380 ac_ext=cc
9381
9382 # Object file extension for compiled C++ test sources.
9383 objext=o
9384 objext_CXX=$objext
9385
9386 # Code to be used in simple compile tests
9387 lt_simple_compile_test_code="int some_variable = 0;\n"
9388
9389 # Code to be used in simple link tests
9390 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9391
9392 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9393
9394 # If no C compiler was specified, use CC.
9395 LTCC=${LTCC-"$CC"}
9396
9397 # Allow CC to be a program name with arguments.
9398 compiler=$CC
9399
9400
9401 # Allow CC to be a program name with arguments.
9402 lt_save_CC=$CC
9403 lt_save_LD=$LD
9404 lt_save_GCC=$GCC
9405 GCC=$GXX
9406 lt_save_with_gnu_ld=$with_gnu_ld
9407 lt_save_path_LD=$lt_cv_path_LD
9408 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9409   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9410 else
9411   unset lt_cv_prog_gnu_ld
9412 fi
9413 if test -n "${lt_cv_path_LDCXX+set}"; then
9414   lt_cv_path_LD=$lt_cv_path_LDCXX
9415 else
9416   unset lt_cv_path_LD
9417 fi
9418 test -z "${LDCXX+set}" || LD=$LDCXX
9419 CC=${CXX-"c++"}
9420 compiler=$CC
9421 compiler_CXX=$CC
9422 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9423
9424 # We don't want -fno-exception wen compiling C++ code, so set the
9425 # no_builtin_flag separately
9426 if test "$GXX" = yes; then
9427   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9428 else
9429   lt_prog_compiler_no_builtin_flag_CXX=
9430 fi
9431
9432 if test "$GXX" = yes; then
9433   # Set up default GNU C++ configuration
9434
9435
9436 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9437 if test "${with_gnu_ld+set}" = set; then
9438   withval="$with_gnu_ld"
9439   test "$withval" = no || with_gnu_ld=yes
9440 else
9441   with_gnu_ld=no
9442 fi;
9443 ac_prog=ld
9444 if test "$GCC" = yes; then
9445   # Check if gcc -print-prog-name=ld gives a path.
9446   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9447 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9448   case $host in
9449   *-*-mingw*)
9450     # gcc leaves a trailing carriage return which upsets mingw
9451     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9452   *)
9453     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9454   esac
9455   case $ac_prog in
9456     # Accept absolute paths.
9457     [\\/]* | ?:[\\/]*)
9458       re_direlt='/[^/][^/]*/\.\./'
9459       # Canonicalize the path of ld
9460       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9461       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9462         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9463       done
9464       test -z "$LD" && LD="$ac_prog"
9465       ;;
9466   "")
9467     # If it fails, then pretend we aren't using GCC.
9468     ac_prog=ld
9469     ;;
9470   *)
9471     # If it is relative, then search for the first ld in PATH.
9472     with_gnu_ld=unknown
9473     ;;
9474   esac
9475 elif test "$with_gnu_ld" = yes; then
9476   echo "$as_me:$LINENO: checking for GNU ld" >&5
9477 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9478 else
9479   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9480 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9481 fi
9482 if test "${lt_cv_path_LD+set}" = set; then
9483   echo $ECHO_N "(cached) $ECHO_C" >&6
9484 else
9485   if test -z "$LD"; then
9486   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9487   for ac_dir in $PATH; do
9488     IFS="$lt_save_ifs"
9489     test -z "$ac_dir" && ac_dir=.
9490     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9491       lt_cv_path_LD="$ac_dir/$ac_prog"
9492       # Check to see if the program is GNU ld.  I'd rather use --version,
9493       # but apparently some GNU ld's only accept -v.
9494       # Break only if it was the GNU/non-GNU ld that we prefer.
9495       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9496       *GNU* | *'with BFD'*)
9497         test "$with_gnu_ld" != no && break
9498         ;;
9499       *)
9500         test "$with_gnu_ld" != yes && break
9501         ;;
9502       esac
9503     fi
9504   done
9505   IFS="$lt_save_ifs"
9506 else
9507   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9508 fi
9509 fi
9510
9511 LD="$lt_cv_path_LD"
9512 if test -n "$LD"; then
9513   echo "$as_me:$LINENO: result: $LD" >&5
9514 echo "${ECHO_T}$LD" >&6
9515 else
9516   echo "$as_me:$LINENO: result: no" >&5
9517 echo "${ECHO_T}no" >&6
9518 fi
9519 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9520 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9521    { (exit 1); exit 1; }; }
9522 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9523 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9524 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9525   echo $ECHO_N "(cached) $ECHO_C" >&6
9526 else
9527   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9528 case `"$LD" -v 2>&1 </dev/null` in
9529 *GNU* | *'with BFD'*)
9530   lt_cv_prog_gnu_ld=yes
9531   ;;
9532 *)
9533   lt_cv_prog_gnu_ld=no
9534   ;;
9535 esac
9536 fi
9537 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9538 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9539 with_gnu_ld=$lt_cv_prog_gnu_ld
9540
9541
9542
9543   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9544   # archiving commands below assume that GNU ld is being used.
9545   if test "$with_gnu_ld" = yes; then
9546     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9547     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'
9548
9549     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9550     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9551
9552     # If archive_cmds runs LD, not CC, wlarc should be empty
9553     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9554     #     investigate it a little bit more. (MM)
9555     wlarc='${wl}'
9556
9557     # ancient GNU ld didn't support --whole-archive et. al.
9558     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9559         grep 'no-whole-archive' > /dev/null; then
9560       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9561     else
9562       whole_archive_flag_spec_CXX=
9563     fi
9564   else
9565     with_gnu_ld=no
9566     wlarc=
9567
9568     # A generic and very simple default shared library creation
9569     # command for GNU C++ for the case where it uses the native
9570     # linker, instead of GNU ld.  If possible, this setting should
9571     # overridden to take advantage of the native linker features on
9572     # the platform it is being used on.
9573     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9574   fi
9575
9576   # Commands to make compiler produce verbose output that lists
9577   # what "hidden" libraries, object files and flags are used when
9578   # linking a shared library.
9579   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9580
9581 else
9582   GXX=no
9583   with_gnu_ld=no
9584   wlarc=
9585 fi
9586
9587 # PORTME: fill in a description of your system's C++ link characteristics
9588 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9589 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9590 ld_shlibs_CXX=yes
9591 case $host_os in
9592   aix3*)
9593     # FIXME: insert proper C++ library support
9594     ld_shlibs_CXX=no
9595     ;;
9596   aix4* | aix5*)
9597     if test "$host_cpu" = ia64; then
9598       # On IA64, the linker does run time linking by default, so we don't
9599       # have to do anything special.
9600       aix_use_runtimelinking=no
9601       exp_sym_flag='-Bexport'
9602       no_entry_flag=""
9603     else
9604       aix_use_runtimelinking=no
9605
9606       # Test if we are trying to use run time linking or normal
9607       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9608       # need to do runtime linking.
9609       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9610         for ld_flag in $LDFLAGS; do
9611           case $ld_flag in
9612           *-brtl*)
9613             aix_use_runtimelinking=yes
9614             break
9615             ;;
9616           esac
9617         done
9618       esac
9619
9620       exp_sym_flag='-bexport'
9621       no_entry_flag='-bnoentry'
9622     fi
9623
9624     # When large executables or shared objects are built, AIX ld can
9625     # have problems creating the table of contents.  If linking a library
9626     # or program results in "error TOC overflow" add -mminimal-toc to
9627     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9628     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9629
9630     archive_cmds_CXX=''
9631     hardcode_direct_CXX=yes
9632     hardcode_libdir_separator_CXX=':'
9633     link_all_deplibs_CXX=yes
9634
9635     if test "$GXX" = yes; then
9636       case $host_os in aix4.012|aix4.012.*)
9637       # We only want to do this on AIX 4.2 and lower, the check
9638       # below for broken collect2 doesn't work under 4.3+
9639         collect2name=`${CC} -print-prog-name=collect2`
9640         if test -f "$collect2name" && \
9641            strings "$collect2name" | grep resolve_lib_name >/dev/null
9642         then
9643           # We have reworked collect2
9644           hardcode_direct_CXX=yes
9645         else
9646           # We have old collect2
9647           hardcode_direct_CXX=unsupported
9648           # It fails to find uninstalled libraries when the uninstalled
9649           # path is not listed in the libpath.  Setting hardcode_minus_L
9650           # to unsupported forces relinking
9651           hardcode_minus_L_CXX=yes
9652           hardcode_libdir_flag_spec_CXX='-L$libdir'
9653           hardcode_libdir_separator_CXX=
9654         fi
9655       esac
9656       shared_flag='-shared'
9657     else
9658       # not using gcc
9659       if test "$host_cpu" = ia64; then
9660         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9661         # chokes on -Wl,-G. The following line is correct:
9662         shared_flag='-G'
9663       else
9664         if test "$aix_use_runtimelinking" = yes; then
9665           shared_flag='${wl}-G'
9666         else
9667           shared_flag='${wl}-bM:SRE'
9668         fi
9669       fi
9670     fi
9671
9672     # It seems that -bexpall does not export symbols beginning with
9673     # underscore (_), so it is better to generate a list of symbols to export.
9674     always_export_symbols_CXX=yes
9675     if test "$aix_use_runtimelinking" = yes; then
9676       # Warning - without using the other runtime loading flags (-brtl),
9677       # -berok will link without error, but may produce a broken library.
9678       allow_undefined_flag_CXX='-berok'
9679       # Determine the default libpath from the value encoded in an empty executable.
9680       cat >conftest.$ac_ext <<_ACEOF
9681 /* confdefs.h.  */
9682 _ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h.  */
9686
9687 int
9688 main ()
9689 {
9690
9691   ;
9692   return 0;
9693 }
9694 _ACEOF
9695 rm -f conftest.$ac_objext conftest$ac_exeext
9696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9697   (eval $ac_link) 2>conftest.er1
9698   ac_status=$?
9699   grep -v '^ *+' conftest.er1 >conftest.err
9700   rm -f conftest.er1
9701   cat conftest.err >&5
9702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703   (exit $ac_status); } &&
9704          { ac_try='test -z "$ac_cxx_werror_flag"
9705                          || test ! -s conftest.err'
9706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707   (eval $ac_try) 2>&5
9708   ac_status=$?
9709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710   (exit $ac_status); }; } &&
9711          { ac_try='test -s conftest$ac_exeext'
9712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713   (eval $ac_try) 2>&5
9714   ac_status=$?
9715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716   (exit $ac_status); }; }; then
9717
9718 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9719 }'`
9720 # Check for a 64-bit object if we didn't find anything.
9721 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; }
9722 }'`; fi
9723 else
9724   echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.$ac_ext >&5
9726
9727 fi
9728 rm -f conftest.err conftest.$ac_objext \
9729       conftest$ac_exeext conftest.$ac_ext
9730 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9731
9732       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9733
9734       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"
9735      else
9736       if test "$host_cpu" = ia64; then
9737         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9738         allow_undefined_flag_CXX="-z nodefs"
9739         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"
9740       else
9741         # Determine the default libpath from the value encoded in an empty executable.
9742         cat >conftest.$ac_ext <<_ACEOF
9743 /* confdefs.h.  */
9744 _ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h.  */
9748
9749 int
9750 main ()
9751 {
9752
9753   ;
9754   return 0;
9755 }
9756 _ACEOF
9757 rm -f conftest.$ac_objext conftest$ac_exeext
9758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9759   (eval $ac_link) 2>conftest.er1
9760   ac_status=$?
9761   grep -v '^ *+' conftest.er1 >conftest.err
9762   rm -f conftest.er1
9763   cat conftest.err >&5
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); } &&
9766          { ac_try='test -z "$ac_cxx_werror_flag"
9767                          || test ! -s conftest.err'
9768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769   (eval $ac_try) 2>&5
9770   ac_status=$?
9771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772   (exit $ac_status); }; } &&
9773          { ac_try='test -s conftest$ac_exeext'
9774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9775   (eval $ac_try) 2>&5
9776   ac_status=$?
9777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778   (exit $ac_status); }; }; then
9779
9780 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9781 }'`
9782 # Check for a 64-bit object if we didn't find anything.
9783 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; }
9784 }'`; fi
9785 else
9786   echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9788
9789 fi
9790 rm -f conftest.err conftest.$ac_objext \
9791       conftest$ac_exeext conftest.$ac_ext
9792 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9793
9794         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9795         # Warning - without using the other run time loading flags,
9796         # -berok will link without error, but may produce a broken library.
9797         no_undefined_flag_CXX=' ${wl}-bernotok'
9798         allow_undefined_flag_CXX=' ${wl}-berok'
9799         # -bexpall does not export symbols beginning with underscore (_)
9800         always_export_symbols_CXX=yes
9801         # Exported symbols can be pulled into shared objects from archives
9802         whole_archive_flag_spec_CXX=' '
9803         archive_cmds_need_lc_CXX=yes
9804         # This is similar to how AIX traditionally builds it's shared libraries.
9805         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'
9806       fi
9807     fi
9808     ;;
9809   chorus*)
9810     case $cc_basename in
9811       *)
9812         # FIXME: insert proper C++ library support
9813         ld_shlibs_CXX=no
9814         ;;
9815     esac
9816     ;;
9817
9818   cygwin* | mingw* | pw32*)
9819     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9820     # as there is no search path for DLLs.
9821     hardcode_libdir_flag_spec_CXX='-L$libdir'
9822     allow_undefined_flag_CXX=unsupported
9823     always_export_symbols_CXX=no
9824     enable_shared_with_static_runtimes_CXX=yes
9825
9826     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9827       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'
9828       # If the export-symbols file already is a .def file (1st line
9829       # is EXPORTS), use it as is; otherwise, prepend...
9830       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9831         cp $export_symbols $output_objdir/$soname.def;
9832       else
9833         echo EXPORTS > $output_objdir/$soname.def;
9834         cat $export_symbols >> $output_objdir/$soname.def;
9835       fi~
9836       $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'
9837     else
9838       ld_shlibs_CXX=no
9839     fi
9840   ;;
9841
9842   darwin* | rhapsody*)
9843    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9844     archive_cmds_need_lc_CXX=no
9845     case "$host_os" in
9846     rhapsody* | darwin1.[012])
9847       allow_undefined_flag_CXX='-undefined suppress'
9848       ;;
9849     *) # Darwin 1.3 on
9850       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9851       ;;
9852     esac
9853         lt_int_apple_cc_single_mod=no
9854         output_verbose_link_cmd='echo'
9855         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9856           lt_int_apple_cc_single_mod=yes
9857         fi
9858         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9859           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9860         else
9861         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'
9862       fi
9863       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9864
9865     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9866       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9867         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}'
9868       else
9869         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}'
9870       fi
9871         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}'
9872     hardcode_direct_CXX=no
9873     hardcode_automatic_CXX=yes
9874     hardcode_shlibpath_var_CXX=unsupported
9875     whole_archive_flag_spec_CXX='-all_load $convenience'
9876     link_all_deplibs_CXX=yes
9877    fi
9878     ;;
9879
9880   dgux*)
9881     case $cc_basename in
9882       ec++)
9883         # FIXME: insert proper C++ library support
9884         ld_shlibs_CXX=no
9885         ;;
9886       ghcx)
9887         # Green Hills C++ Compiler
9888         # FIXME: insert proper C++ library support
9889         ld_shlibs_CXX=no
9890         ;;
9891       *)
9892         # FIXME: insert proper C++ library support
9893         ld_shlibs_CXX=no
9894         ;;
9895     esac
9896     ;;
9897   freebsd12*)
9898     # C++ shared libraries reported to be fairly broken before switch to ELF
9899     ld_shlibs_CXX=no
9900     ;;
9901   freebsd-elf*)
9902     archive_cmds_need_lc_CXX=no
9903     ;;
9904   freebsd*)
9905     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9906     # conventions
9907     ld_shlibs_CXX=yes
9908     ;;
9909   gnu*)
9910     ;;
9911   hpux9*)
9912     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9913     hardcode_libdir_separator_CXX=:
9914     export_dynamic_flag_spec_CXX='${wl}-E'
9915     hardcode_direct_CXX=yes
9916     hardcode_minus_L_CXX=yes # Not in the search PATH,
9917                                 # but as the default
9918                                 # location of the library.
9919
9920     case $cc_basename in
9921     CC)
9922       # FIXME: insert proper C++ library support
9923       ld_shlibs_CXX=no
9924       ;;
9925     aCC)
9926       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'
9927       # Commands to make compiler produce verbose output that lists
9928       # what "hidden" libraries, object files and flags are used when
9929       # linking a shared library.
9930       #
9931       # There doesn't appear to be a way to prevent this compiler from
9932       # explicitly linking system object files so we need to strip them
9933       # from the output so that they don't get included in the library
9934       # dependencies.
9935       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'
9936       ;;
9937     *)
9938       if test "$GXX" = yes; then
9939         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'
9940       else
9941         # FIXME: insert proper C++ library support
9942         ld_shlibs_CXX=no
9943       fi
9944       ;;
9945     esac
9946     ;;
9947   hpux10*|hpux11*)
9948     if test $with_gnu_ld = no; then
9949       case "$host_cpu" in
9950       hppa*64*)
9951         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9952         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9953         hardcode_libdir_separator_CXX=:
9954         ;;
9955       ia64*)
9956         hardcode_libdir_flag_spec_CXX='-L$libdir'
9957         ;;
9958       *)
9959         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9960         hardcode_libdir_separator_CXX=:
9961         export_dynamic_flag_spec_CXX='${wl}-E'
9962         ;;
9963       esac
9964     fi
9965     case "$host_cpu" in
9966     hppa*64*)
9967       hardcode_direct_CXX=no
9968       hardcode_shlibpath_var_CXX=no
9969       ;;
9970     ia64*)
9971       hardcode_direct_CXX=no
9972       hardcode_shlibpath_var_CXX=no
9973       hardcode_minus_L_CXX=yes # Not in the search PATH,
9974                                               # but as the default
9975                                               # location of the library.
9976       ;;
9977     *)
9978       hardcode_direct_CXX=yes
9979       hardcode_minus_L_CXX=yes # Not in the search PATH,
9980                                               # but as the default
9981                                               # location of the library.
9982       ;;
9983     esac
9984
9985     case $cc_basename in
9986       CC)
9987         # FIXME: insert proper C++ library support
9988         ld_shlibs_CXX=no
9989         ;;
9990       aCC)
9991         case "$host_cpu" in
9992         hppa*64*|ia64*)
9993           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9994           ;;
9995         *)
9996           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9997           ;;
9998         esac
9999         # Commands to make compiler produce verbose output that lists
10000         # what "hidden" libraries, object files and flags are used when
10001         # linking a shared library.
10002         #
10003         # There doesn't appear to be a way to prevent this compiler from
10004         # explicitly linking system object files so we need to strip them
10005         # from the output so that they don't get included in the library
10006         # dependencies.
10007         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'
10008         ;;
10009       *)
10010         if test "$GXX" = yes; then
10011           if test $with_gnu_ld = no; then
10012             case "$host_cpu" in
10013             ia64*|hppa*64*)
10014               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10015               ;;
10016             *)
10017               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'
10018               ;;
10019             esac
10020           fi
10021         else
10022           # FIXME: insert proper C++ library support
10023           ld_shlibs_CXX=no
10024         fi
10025         ;;
10026     esac
10027     ;;
10028   irix5* | irix6*)
10029     case $cc_basename in
10030       CC)
10031         # SGI C++
10032         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'
10033
10034         # Archives containing C++ object files must be created using
10035         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10036         # necessary to make sure instantiated templates are included
10037         # in the archive.
10038         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10039         ;;
10040       *)
10041         if test "$GXX" = yes; then
10042           if test "$with_gnu_ld" = no; then
10043             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'
10044           else
10045             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'
10046           fi
10047         fi
10048         link_all_deplibs_CXX=yes
10049         ;;
10050     esac
10051     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10052     hardcode_libdir_separator_CXX=:
10053     ;;
10054   linux*)
10055     case $cc_basename in
10056       KCC)
10057         # Kuck and Associates, Inc. (KAI) C++ Compiler
10058
10059         # KCC will only create a shared library if the output file
10060         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10061         # to its proper name (with version) after linking.
10062         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'
10063         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'
10064         # Commands to make compiler produce verbose output that lists
10065         # what "hidden" libraries, object files and flags are used when
10066         # linking a shared library.
10067         #
10068         # There doesn't appear to be a way to prevent this compiler from
10069         # explicitly linking system object files so we need to strip them
10070         # from the output so that they don't get included in the library
10071         # dependencies.
10072         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'
10073
10074         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10075         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10076
10077         # Archives containing C++ object files must be created using
10078         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10079         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10080         ;;
10081       icpc)
10082         # Intel C++
10083         with_gnu_ld=yes
10084         archive_cmds_need_lc_CXX=no
10085         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10086         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'
10087         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10088         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10089         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10090         ;;
10091       cxx)
10092         # Compaq C++
10093         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10094         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'
10095
10096         runpath_var=LD_RUN_PATH
10097         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10098         hardcode_libdir_separator_CXX=:
10099
10100         # Commands to make compiler produce verbose output that lists
10101         # what "hidden" libraries, object files and flags are used when
10102         # linking a shared library.
10103         #
10104         # There doesn't appear to be a way to prevent this compiler from
10105         # explicitly linking system object files so we need to strip them
10106         # from the output so that they don't get included in the library
10107         # dependencies.
10108         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'
10109         ;;
10110     esac
10111     ;;
10112   lynxos*)
10113     # FIXME: insert proper C++ library support
10114     ld_shlibs_CXX=no
10115     ;;
10116   m88k*)
10117     # FIXME: insert proper C++ library support
10118     ld_shlibs_CXX=no
10119     ;;
10120   mvs*)
10121     case $cc_basename in
10122       cxx)
10123         # FIXME: insert proper C++ library support
10124         ld_shlibs_CXX=no
10125         ;;
10126       *)
10127         # FIXME: insert proper C++ library support
10128         ld_shlibs_CXX=no
10129         ;;
10130     esac
10131     ;;
10132   netbsd*)
10133     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10134       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10135       wlarc=
10136       hardcode_libdir_flag_spec_CXX='-R$libdir'
10137       hardcode_direct_CXX=yes
10138       hardcode_shlibpath_var_CXX=no
10139     fi
10140     # Workaround some broken pre-1.5 toolchains
10141     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10142     ;;
10143   osf3*)
10144     case $cc_basename in
10145       KCC)
10146         # Kuck and Associates, Inc. (KAI) C++ Compiler
10147
10148         # KCC will only create a shared library if the output file
10149         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10150         # to its proper name (with version) after linking.
10151         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'
10152
10153         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10154         hardcode_libdir_separator_CXX=:
10155
10156         # Archives containing C++ object files must be created using
10157         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10158         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10159
10160         ;;
10161       RCC)
10162         # Rational C++ 2.4.1
10163         # FIXME: insert proper C++ library support
10164         ld_shlibs_CXX=no
10165         ;;
10166       cxx)
10167         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10168         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'
10169
10170         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10171         hardcode_libdir_separator_CXX=:
10172
10173         # Commands to make compiler produce verbose output that lists
10174         # what "hidden" libraries, object files and flags are used when
10175         # linking a shared library.
10176         #
10177         # There doesn't appear to be a way to prevent this compiler from
10178         # explicitly linking system object files so we need to strip them
10179         # from the output so that they don't get included in the library
10180         # dependencies.
10181         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'
10182         ;;
10183       *)
10184         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10185           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10186           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'
10187
10188           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10189           hardcode_libdir_separator_CXX=:
10190
10191           # Commands to make compiler produce verbose output that lists
10192           # what "hidden" libraries, object files and flags are used when
10193           # linking a shared library.
10194           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10195
10196         else
10197           # FIXME: insert proper C++ library support
10198           ld_shlibs_CXX=no
10199         fi
10200         ;;
10201     esac
10202     ;;
10203   osf4* | osf5*)
10204     case $cc_basename in
10205       KCC)
10206         # Kuck and Associates, Inc. (KAI) C++ Compiler
10207
10208         # KCC will only create a shared library if the output file
10209         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10210         # to its proper name (with version) after linking.
10211         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'
10212
10213         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10214         hardcode_libdir_separator_CXX=:
10215
10216         # Archives containing C++ object files must be created using
10217         # the KAI C++ compiler.
10218         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10219         ;;
10220       RCC)
10221         # Rational C++ 2.4.1
10222         # FIXME: insert proper C++ library support
10223         ld_shlibs_CXX=no
10224         ;;
10225       cxx)
10226         allow_undefined_flag_CXX=' -expect_unresolved \*'
10227         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'
10228         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10229           echo "-hidden">> $lib.exp~
10230           $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~
10231           $rm $lib.exp'
10232
10233         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10234         hardcode_libdir_separator_CXX=:
10235
10236         # Commands to make compiler produce verbose output that lists
10237         # what "hidden" libraries, object files and flags are used when
10238         # linking a shared library.
10239         #
10240         # There doesn't appear to be a way to prevent this compiler from
10241         # explicitly linking system object files so we need to strip them
10242         # from the output so that they don't get included in the library
10243         # dependencies.
10244         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'
10245         ;;
10246       *)
10247         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10248           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10249          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'
10250
10251           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10252           hardcode_libdir_separator_CXX=:
10253
10254           # Commands to make compiler produce verbose output that lists
10255           # what "hidden" libraries, object files and flags are used when
10256           # linking a shared library.
10257           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10258
10259         else
10260           # FIXME: insert proper C++ library support
10261           ld_shlibs_CXX=no
10262         fi
10263         ;;
10264     esac
10265     ;;
10266   psos*)
10267     # FIXME: insert proper C++ library support
10268     ld_shlibs_CXX=no
10269     ;;
10270   sco*)
10271     archive_cmds_need_lc_CXX=no
10272     case $cc_basename in
10273       CC)
10274         # FIXME: insert proper C++ library support
10275         ld_shlibs_CXX=no
10276         ;;
10277       *)
10278         # FIXME: insert proper C++ library support
10279         ld_shlibs_CXX=no
10280         ;;
10281     esac
10282     ;;
10283   sunos4*)
10284     case $cc_basename in
10285       CC)
10286         # Sun C++ 4.x
10287         # FIXME: insert proper C++ library support
10288         ld_shlibs_CXX=no
10289         ;;
10290       lcc)
10291         # Lucid
10292         # FIXME: insert proper C++ library support
10293         ld_shlibs_CXX=no
10294         ;;
10295       *)
10296         # FIXME: insert proper C++ library support
10297         ld_shlibs_CXX=no
10298         ;;
10299     esac
10300     ;;
10301   solaris*)
10302     case $cc_basename in
10303       CC)
10304         # Sun C++ 4.2, 5.x and Centerline C++
10305         no_undefined_flag_CXX=' -zdefs'
10306         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10307         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10308         $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'
10309
10310         hardcode_libdir_flag_spec_CXX='-R$libdir'
10311         hardcode_shlibpath_var_CXX=no
10312         case $host_os in
10313           solaris2.0-5 | solaris2.0-5.*) ;;
10314           *)
10315             # The C++ compiler is used as linker so we must use $wl
10316             # flag to pass the commands to the underlying system
10317             # linker.
10318             # Supported since Solaris 2.6 (maybe 2.5.1?)
10319             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10320             ;;
10321         esac
10322         link_all_deplibs_CXX=yes
10323
10324         # Commands to make compiler produce verbose output that lists
10325         # what "hidden" libraries, object files and flags are used when
10326         # linking a shared library.
10327         #
10328         # There doesn't appear to be a way to prevent this compiler from
10329         # explicitly linking system object files so we need to strip them
10330         # from the output so that they don't get included in the library
10331         # dependencies.
10332         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'
10333
10334         # Archives containing C++ object files must be created using
10335         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10336         # necessary to make sure instantiated templates are included
10337         # in the archive.
10338         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10339         ;;
10340       gcx)
10341         # Green Hills C++ Compiler
10342         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10343
10344         # The C++ compiler must be used to create the archive.
10345         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10346         ;;
10347       *)
10348         # GNU C++ compiler with Solaris linker
10349         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10350           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10351           if $CC --version | grep -v '^2\.7' > /dev/null; then
10352             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10353             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10354                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10355
10356             # Commands to make compiler produce verbose output that lists
10357             # what "hidden" libraries, object files and flags are used when
10358             # linking a shared library.
10359             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10360           else
10361             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10362             # platform.
10363             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10364             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10365                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10366
10367             # Commands to make compiler produce verbose output that lists
10368             # what "hidden" libraries, object files and flags are used when
10369             # linking a shared library.
10370             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10371           fi
10372
10373           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10374         fi
10375         ;;
10376     esac
10377     ;;
10378   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10379     archive_cmds_need_lc_CXX=no
10380     ;;
10381   tandem*)
10382     case $cc_basename in
10383       NCC)
10384         # NonStop-UX NCC 3.20
10385         # FIXME: insert proper C++ library support
10386         ld_shlibs_CXX=no
10387         ;;
10388       *)
10389         # FIXME: insert proper C++ library support
10390         ld_shlibs_CXX=no
10391         ;;
10392     esac
10393     ;;
10394   vxworks*)
10395     # FIXME: insert proper C++ library support
10396     ld_shlibs_CXX=no
10397     ;;
10398   *)
10399     # FIXME: insert proper C++ library support
10400     ld_shlibs_CXX=no
10401     ;;
10402 esac
10403 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10404 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10405 test "$ld_shlibs_CXX" = no && can_build_shared=no
10406
10407 GCC_CXX="$GXX"
10408 LD_CXX="$LD"
10409
10410 ## CAVEAT EMPTOR:
10411 ## There is no encapsulation within the following macros, do not change
10412 ## the running order or otherwise move them around unless you know exactly
10413 ## what you are doing...
10414
10415 cat > conftest.$ac_ext <<EOF
10416 class Foo
10417 {
10418 public:
10419   Foo (void) { a = 0; }
10420 private:
10421   int a;
10422 };
10423 EOF
10424
10425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10426   (eval $ac_compile) 2>&5
10427   ac_status=$?
10428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429   (exit $ac_status); }; then
10430   # Parse the compiler output and extract the necessary
10431   # objects, libraries and library flags.
10432
10433   # Sentinel used to keep track of whether or not we are before
10434   # the conftest object file.
10435   pre_test_object_deps_done=no
10436
10437   # The `*' in the case matches for architectures that use `case' in
10438   # $output_verbose_cmd can trigger glob expansion during the loop
10439   # eval without this substitution.
10440   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10441
10442   for p in `eval $output_verbose_link_cmd`; do
10443     case $p in
10444
10445     -L* | -R* | -l*)
10446        # Some compilers place space between "-{L,R}" and the path.
10447        # Remove the space.
10448        if test $p = "-L" \
10449           || test $p = "-R"; then
10450          prev=$p
10451          continue
10452        else
10453          prev=
10454        fi
10455
10456        if test "$pre_test_object_deps_done" = no; then
10457          case $p in
10458          -L* | -R*)
10459            # Internal compiler library paths should come after those
10460            # provided the user.  The postdeps already come after the
10461            # user supplied libs so there is no need to process them.
10462            if test -z "$compiler_lib_search_path_CXX"; then
10463              compiler_lib_search_path_CXX="${prev}${p}"
10464            else
10465              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10466            fi
10467            ;;
10468          # The "-l" case would never come before the object being
10469          # linked, so don't bother handling this case.
10470          esac
10471        else
10472          if test -z "$postdeps_CXX"; then
10473            postdeps_CXX="${prev}${p}"
10474          else
10475            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10476          fi
10477        fi
10478        ;;
10479
10480     *.$objext)
10481        # This assumes that the test object file only shows up
10482        # once in the compiler output.
10483        if test "$p" = "conftest.$objext"; then
10484          pre_test_object_deps_done=yes
10485          continue
10486        fi
10487
10488        if test "$pre_test_object_deps_done" = no; then
10489          if test -z "$predep_objects_CXX"; then
10490            predep_objects_CXX="$p"
10491          else
10492            predep_objects_CXX="$predep_objects_CXX $p"
10493          fi
10494        else
10495          if test -z "$postdep_objects_CXX"; then
10496            postdep_objects_CXX="$p"
10497          else
10498            postdep_objects_CXX="$postdep_objects_CXX $p"
10499          fi
10500        fi
10501        ;;
10502
10503     *) ;; # Ignore the rest.
10504
10505     esac
10506   done
10507
10508   # Clean up.
10509   rm -f a.out a.exe
10510 else
10511   echo "libtool.m4: error: problem compiling CXX test program"
10512 fi
10513
10514 $rm -f confest.$objext
10515
10516 case " $postdeps_CXX " in
10517 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10518 esac
10519
10520 lt_prog_compiler_wl_CXX=
10521 lt_prog_compiler_pic_CXX=
10522 lt_prog_compiler_static_CXX=
10523
10524 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10525 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10526
10527   # C++ specific cases for pic, static, wl, etc.
10528   if test "$GXX" = yes; then
10529     lt_prog_compiler_wl_CXX='-Wl,'
10530     lt_prog_compiler_static_CXX='-static'
10531
10532     case $host_os in
10533     aix*)
10534       # All AIX code is PIC.
10535       if test "$host_cpu" = ia64; then
10536         # AIX 5 now supports IA64 processor
10537         lt_prog_compiler_static_CXX='-Bstatic'
10538       fi
10539       ;;
10540     amigaos*)
10541       # FIXME: we need at least 68020 code to build shared libraries, but
10542       # adding the `-m68020' flag to GCC prevents building anything better,
10543       # like `-m68040'.
10544       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10545       ;;
10546     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10547       # PIC is the default for these OSes.
10548       ;;
10549     mingw* | os2* | pw32*)
10550       # This hack is so that the source file can tell whether it is being
10551       # built for inclusion in a dll (and should export symbols for example).
10552       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10553       ;;
10554     darwin* | rhapsody*)
10555       # PIC is the default on this platform
10556       # Common symbols not allowed in MH_DYLIB files
10557       lt_prog_compiler_pic_CXX='-fno-common'
10558       ;;
10559     *djgpp*)
10560       # DJGPP does not support shared libraries at all
10561       lt_prog_compiler_pic_CXX=
10562       ;;
10563     sysv4*MP*)
10564       if test -d /usr/nec; then
10565         lt_prog_compiler_pic_CXX=-Kconform_pic
10566       fi
10567       ;;
10568     hpux*)
10569       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10570       # not for PA HP-UX.
10571       case "$host_cpu" in
10572       hppa*64*|ia64*)
10573         ;;
10574       *)
10575         lt_prog_compiler_pic_CXX='-fPIC'
10576         ;;
10577       esac
10578       ;;
10579     *)
10580       lt_prog_compiler_pic_CXX='-fPIC'
10581       ;;
10582     esac
10583   else
10584     case $host_os in
10585       aix4* | aix5*)
10586         # All AIX code is PIC.
10587         if test "$host_cpu" = ia64; then
10588           # AIX 5 now supports IA64 processor
10589           lt_prog_compiler_static_CXX='-Bstatic'
10590         else
10591           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10592         fi
10593         ;;
10594       chorus*)
10595         case $cc_basename in
10596         cxch68)
10597           # Green Hills C++ Compiler
10598           # _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"
10599           ;;
10600         esac
10601         ;;
10602       dgux*)
10603         case $cc_basename in
10604           ec++)
10605             lt_prog_compiler_pic_CXX='-KPIC'
10606             ;;
10607           ghcx)
10608             # Green Hills C++ Compiler
10609             lt_prog_compiler_pic_CXX='-pic'
10610             ;;
10611           *)
10612             ;;
10613         esac
10614         ;;
10615       freebsd*)
10616         # FreeBSD uses GNU C++
10617         ;;
10618       hpux9* | hpux10* | hpux11*)
10619         case $cc_basename in
10620           CC)
10621             lt_prog_compiler_wl_CXX='-Wl,'
10622             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10623             if test "$host_cpu" != ia64; then
10624               lt_prog_compiler_pic_CXX='+Z'
10625             fi
10626             ;;
10627           aCC)
10628             lt_prog_compiler_wl_CXX='-Wl,'
10629             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10630             case "$host_cpu" in
10631             hppa*64*|ia64*)
10632               # +Z the default
10633               ;;
10634             *)
10635               lt_prog_compiler_pic_CXX='+Z'
10636               ;;
10637             esac
10638             ;;
10639           *)
10640             ;;
10641         esac
10642         ;;
10643       irix5* | irix6* | nonstopux*)
10644         case $cc_basename in
10645           CC)
10646             lt_prog_compiler_wl_CXX='-Wl,'
10647             lt_prog_compiler_static_CXX='-non_shared'
10648             # CC pic flag -KPIC is the default.
10649             ;;
10650           *)
10651             ;;
10652         esac
10653         ;;
10654       linux*)
10655         case $cc_basename in
10656           KCC)
10657             # KAI C++ Compiler
10658             lt_prog_compiler_wl_CXX='--backend -Wl,'
10659             lt_prog_compiler_pic_CXX='-fPIC'
10660             ;;
10661           icpc)
10662             # Intel C++
10663             lt_prog_compiler_wl_CXX='-Wl,'
10664             lt_prog_compiler_pic_CXX='-KPIC'
10665             lt_prog_compiler_static_CXX='-static'
10666             ;;
10667           cxx)
10668             # Compaq C++
10669             # Make sure the PIC flag is empty.  It appears that all Alpha
10670             # Linux and Compaq Tru64 Unix objects are PIC.
10671             lt_prog_compiler_pic_CXX=
10672             lt_prog_compiler_static_CXX='-non_shared'
10673             ;;
10674           *)
10675             ;;
10676         esac
10677         ;;
10678       lynxos*)
10679         ;;
10680       m88k*)
10681         ;;
10682       mvs*)
10683         case $cc_basename in
10684           cxx)
10685             lt_prog_compiler_pic_CXX='-W c,exportall'
10686             ;;
10687           *)
10688             ;;
10689         esac
10690         ;;
10691       netbsd*)
10692         ;;
10693       osf3* | osf4* | osf5*)
10694         case $cc_basename in
10695           KCC)
10696             lt_prog_compiler_wl_CXX='--backend -Wl,'
10697             ;;
10698           RCC)
10699             # Rational C++ 2.4.1
10700             lt_prog_compiler_pic_CXX='-pic'
10701             ;;
10702           cxx)
10703             # Digital/Compaq C++
10704             lt_prog_compiler_wl_CXX='-Wl,'
10705             # Make sure the PIC flag is empty.  It appears that all Alpha
10706             # Linux and Compaq Tru64 Unix objects are PIC.
10707             lt_prog_compiler_pic_CXX=
10708             lt_prog_compiler_static_CXX='-non_shared'
10709             ;;
10710           *)
10711             ;;
10712         esac
10713         ;;
10714       psos*)
10715         ;;
10716       sco*)
10717         case $cc_basename in
10718           CC)
10719             lt_prog_compiler_pic_CXX='-fPIC'
10720             ;;
10721           *)
10722             ;;
10723         esac
10724         ;;
10725       solaris*)
10726         case $cc_basename in
10727           CC)
10728             # Sun C++ 4.2, 5.x and Centerline C++
10729             lt_prog_compiler_pic_CXX='-KPIC'
10730             lt_prog_compiler_static_CXX='-Bstatic'
10731             lt_prog_compiler_wl_CXX='-Qoption ld '
10732             ;;
10733           gcx)
10734             # Green Hills C++ Compiler
10735             lt_prog_compiler_pic_CXX='-PIC'
10736             ;;
10737           *)
10738             ;;
10739         esac
10740         ;;
10741       sunos4*)
10742         case $cc_basename in
10743           CC)
10744             # Sun C++ 4.x
10745             lt_prog_compiler_pic_CXX='-pic'
10746             lt_prog_compiler_static_CXX='-Bstatic'
10747             ;;
10748           lcc)
10749             # Lucid
10750             lt_prog_compiler_pic_CXX='-pic'
10751             ;;
10752           *)
10753             ;;
10754         esac
10755         ;;
10756       tandem*)
10757         case $cc_basename in
10758           NCC)
10759             # NonStop-UX NCC 3.20
10760             lt_prog_compiler_pic_CXX='-KPIC'
10761             ;;
10762           *)
10763             ;;
10764         esac
10765         ;;
10766       unixware*)
10767         ;;
10768       vxworks*)
10769         ;;
10770       *)
10771         lt_prog_compiler_can_build_shared_CXX=no
10772         ;;
10773     esac
10774   fi
10775
10776 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10777 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10778
10779 #
10780 # Check to make sure the PIC flag actually works.
10781 #
10782 if test -n "$lt_prog_compiler_pic_CXX"; then
10783   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10784 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10785 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10786   echo $ECHO_N "(cached) $ECHO_C" >&6
10787 else
10788   lt_prog_compiler_pic_works_CXX=no
10789   ac_outfile=conftest.$ac_objext
10790    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10791    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10792    # Insert the option either (1) after the last *FLAGS variable, or
10793    # (2) before a word containing "conftest.", or (3) at the end.
10794    # Note that $ac_compile itself does not contain backslashes and begins
10795    # with a dollar sign (not a hyphen), so the echo should work correctly.
10796    # The option is referenced via a variable to avoid confusing sed.
10797    lt_compile=`echo "$ac_compile" | $SED \
10798    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10799    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10800    -e 's:$: $lt_compiler_flag:'`
10801    (eval echo "\"\$as_me:10801: $lt_compile\"" >&5)
10802    (eval "$lt_compile" 2>conftest.err)
10803    ac_status=$?
10804    cat conftest.err >&5
10805    echo "$as_me:10805: \$? = $ac_status" >&5
10806    if (exit $ac_status) && test -s "$ac_outfile"; then
10807      # The compiler can only warn and ignore the option if not recognized
10808      # So say no if there are warnings
10809      if test ! -s conftest.err; then
10810        lt_prog_compiler_pic_works_CXX=yes
10811      fi
10812    fi
10813    $rm conftest*
10814
10815 fi
10816 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10817 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10818
10819 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10820     case $lt_prog_compiler_pic_CXX in
10821      "" | " "*) ;;
10822      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10823      esac
10824 else
10825     lt_prog_compiler_pic_CXX=
10826      lt_prog_compiler_can_build_shared_CXX=no
10827 fi
10828
10829 fi
10830 case "$host_os" in
10831   # For platforms which do not support PIC, -DPIC is meaningless:
10832   *djgpp*)
10833     lt_prog_compiler_pic_CXX=
10834     ;;
10835   *)
10836     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10837     ;;
10838 esac
10839
10840 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10841 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10842 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10843   echo $ECHO_N "(cached) $ECHO_C" >&6
10844 else
10845   lt_cv_prog_compiler_c_o_CXX=no
10846    $rm -r conftest 2>/dev/null
10847    mkdir conftest
10848    cd conftest
10849    mkdir out
10850    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10851
10852    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10853    # that will create temporary files in the current directory regardless of
10854    # the output directory.  Thus, making CWD read-only will cause this test
10855    # to fail, enabling locking or at least warning the user not to do parallel
10856    # builds.
10857    chmod -w .
10858
10859    lt_compiler_flag="-o out/conftest2.$ac_objext"
10860    # Insert the option either (1) after the last *FLAGS variable, or
10861    # (2) before a word containing "conftest.", or (3) at the end.
10862    # Note that $ac_compile itself does not contain backslashes and begins
10863    # with a dollar sign (not a hyphen), so the echo should work correctly.
10864    lt_compile=`echo "$ac_compile" | $SED \
10865    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10866    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10867    -e 's:$: $lt_compiler_flag:'`
10868    (eval echo "\"\$as_me:10868: $lt_compile\"" >&5)
10869    (eval "$lt_compile" 2>out/conftest.err)
10870    ac_status=$?
10871    cat out/conftest.err >&5
10872    echo "$as_me:10872: \$? = $ac_status" >&5
10873    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10874    then
10875      # The compiler can only warn and ignore the option if not recognized
10876      # So say no if there are warnings
10877      if test ! -s out/conftest.err; then
10878        lt_cv_prog_compiler_c_o_CXX=yes
10879      fi
10880    fi
10881    chmod u+w .
10882    $rm conftest* out/*
10883    rmdir out
10884    cd ..
10885    rmdir conftest
10886    $rm conftest*
10887
10888 fi
10889 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10890 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10891
10892
10893 hard_links="nottested"
10894 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10895   # do not overwrite the value of need_locks provided by the user
10896   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10897 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10898   hard_links=yes
10899   $rm conftest*
10900   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10901   touch conftest.a
10902   ln conftest.a conftest.b 2>&5 || hard_links=no
10903   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10904   echo "$as_me:$LINENO: result: $hard_links" >&5
10905 echo "${ECHO_T}$hard_links" >&6
10906   if test "$hard_links" = no; then
10907     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10908 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10909     need_locks=warn
10910   fi
10911 else
10912   need_locks=no
10913 fi
10914
10915 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10916 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10917
10918   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10919   case $host_os in
10920   aix4* | aix5*)
10921     # If we're using GNU nm, then we don't want the "-C" option.
10922     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10923     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10924       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'
10925     else
10926       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'
10927     fi
10928     ;;
10929   pw32*)
10930     export_symbols_cmds_CXX="$ltdll_cmds"
10931   ;;
10932   cygwin* | mingw*)
10933     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10934   ;;
10935   *)
10936     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10937   ;;
10938   esac
10939
10940 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10941 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10942 test "$ld_shlibs_CXX" = no && can_build_shared=no
10943
10944 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10945 if test "$GCC" = yes; then
10946   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10947 fi
10948
10949 #
10950 # Do we need to explicitly link libc?
10951 #
10952 case "x$archive_cmds_need_lc_CXX" in
10953 x|xyes)
10954   # Assume -lc should be added
10955   archive_cmds_need_lc_CXX=yes
10956
10957   if test "$enable_shared" = yes && test "$GCC" = yes; then
10958     case $archive_cmds_CXX in
10959     *'~'*)
10960       # FIXME: we may have to deal with multi-command sequences.
10961       ;;
10962     '$CC '*)
10963       # Test whether the compiler implicitly links with -lc since on some
10964       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10965       # to ld, don't add -lc before -lgcc.
10966       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10967 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10968       $rm conftest*
10969       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10970
10971       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10972   (eval $ac_compile) 2>&5
10973   ac_status=$?
10974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975   (exit $ac_status); } 2>conftest.err; then
10976         soname=conftest
10977         lib=conftest
10978         libobjs=conftest.$ac_objext
10979         deplibs=
10980         wl=$lt_prog_compiler_wl_CXX
10981         compiler_flags=-v
10982         linker_flags=-v
10983         verstring=
10984         output_objdir=.
10985         libname=conftest
10986         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10987         allow_undefined_flag_CXX=
10988         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10989   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10990   ac_status=$?
10991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992   (exit $ac_status); }
10993         then
10994           archive_cmds_need_lc_CXX=no
10995         else
10996           archive_cmds_need_lc_CXX=yes
10997         fi
10998         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10999       else
11000         cat conftest.err 1>&5
11001       fi
11002       $rm conftest*
11003       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11004 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11005       ;;
11006     esac
11007   fi
11008   ;;
11009 esac
11010
11011 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11012 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11013 hardcode_action_CXX=
11014 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11015    test -n "$runpath_var CXX" || \
11016    test "X$hardcode_automatic_CXX"="Xyes" ; then
11017
11018   # We can hardcode non-existant directories.
11019   if test "$hardcode_direct_CXX" != no &&
11020      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11021      # have to relink, otherwise we might link with an installed library
11022      # when we should be linking with a yet-to-be-installed one
11023      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11024      test "$hardcode_minus_L_CXX" != no; then
11025     # Linking always hardcodes the temporary library directory.
11026     hardcode_action_CXX=relink
11027   else
11028     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11029     hardcode_action_CXX=immediate
11030   fi
11031 else
11032   # We cannot hardcode anything, or else we can only hardcode existing
11033   # directories.
11034   hardcode_action_CXX=unsupported
11035 fi
11036 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11037 echo "${ECHO_T}$hardcode_action_CXX" >&6
11038
11039 if test "$hardcode_action_CXX" = relink; then
11040   # Fast installation is not supported
11041   enable_fast_install=no
11042 elif test "$shlibpath_overrides_runpath" = yes ||
11043      test "$enable_shared" = no; then
11044   # Fast installation is not necessary
11045   enable_fast_install=needless
11046 fi
11047
11048 striplib=
11049 old_striplib=
11050 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11051 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11052 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11053   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11054   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11055   echo "$as_me:$LINENO: result: yes" >&5
11056 echo "${ECHO_T}yes" >&6
11057 else
11058 # FIXME - insert some real tests, host_os isn't really good enough
11059   case $host_os in
11060    darwin*)
11061        if test -n "$STRIP" ; then
11062          striplib="$STRIP -x"
11063          echo "$as_me:$LINENO: result: yes" >&5
11064 echo "${ECHO_T}yes" >&6
11065        else
11066   echo "$as_me:$LINENO: result: no" >&5
11067 echo "${ECHO_T}no" >&6
11068 fi
11069        ;;
11070    *)
11071   echo "$as_me:$LINENO: result: no" >&5
11072 echo "${ECHO_T}no" >&6
11073     ;;
11074   esac
11075 fi
11076
11077 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11078 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11079 library_names_spec=
11080 libname_spec='lib$name'
11081 soname_spec=
11082 shrext=".so"
11083 postinstall_cmds=
11084 postuninstall_cmds=
11085 finish_cmds=
11086 finish_eval=
11087 shlibpath_var=
11088 shlibpath_overrides_runpath=unknown
11089 version_type=none
11090 dynamic_linker="$host_os ld.so"
11091 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11092 if test "$GCC" = yes; then
11093   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11094   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11095     # if the path contains ";" then we assume it to be the separator
11096     # otherwise default to the standard path separator (i.e. ":") - it is
11097     # assumed that no part of a normal pathname contains ";" but that should
11098     # okay in the real world where ";" in dirpaths is itself problematic.
11099     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11100   else
11101     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11102   fi
11103 else
11104   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11105 fi
11106 need_lib_prefix=unknown
11107 hardcode_into_libs=no
11108
11109 # when you set need_version to no, make sure it does not cause -set_version
11110 # flags to be left without arguments
11111 need_version=unknown
11112
11113 case $host_os in
11114 aix3*)
11115   version_type=linux
11116   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11117   shlibpath_var=LIBPATH
11118
11119   # AIX 3 has no versioning support, so we append a major version to the name.
11120   soname_spec='${libname}${release}${shared_ext}$major'
11121   ;;
11122
11123 aix4* | aix5*)
11124   version_type=linux
11125   need_lib_prefix=no
11126   need_version=no
11127   hardcode_into_libs=yes
11128   if test "$host_cpu" = ia64; then
11129     # AIX 5 supports IA64
11130     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11131     shlibpath_var=LD_LIBRARY_PATH
11132   else
11133     # With GCC up to 2.95.x, collect2 would create an import file
11134     # for dependence libraries.  The import file would start with
11135     # the line `#! .'.  This would cause the generated library to
11136     # depend on `.', always an invalid library.  This was fixed in
11137     # development snapshots of GCC prior to 3.0.
11138     case $host_os in
11139       aix4 | aix4.[01] | aix4.[01].*)
11140       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11141            echo ' yes '
11142            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11143         :
11144       else
11145         can_build_shared=no
11146       fi
11147       ;;
11148     esac
11149     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11150     # soname into executable. Probably we can add versioning support to
11151     # collect2, so additional links can be useful in future.
11152     if test "$aix_use_runtimelinking" = yes; then
11153       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11154       # instead of lib<name>.a to let people know that these are not
11155       # typical AIX shared libraries.
11156       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11157     else
11158       # We preserve .a as extension for shared libraries through AIX4.2
11159       # and later when we are not doing run time linking.
11160       library_names_spec='${libname}${release}.a $libname.a'
11161       soname_spec='${libname}${release}${shared_ext}$major'
11162     fi
11163     shlibpath_var=LIBPATH
11164   fi
11165   ;;
11166
11167 amigaos*)
11168   library_names_spec='$libname.ixlibrary $libname.a'
11169   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11170   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'
11171   ;;
11172
11173 beos*)
11174   library_names_spec='${libname}${shared_ext}'
11175   dynamic_linker="$host_os ld.so"
11176   shlibpath_var=LIBRARY_PATH
11177   ;;
11178
11179 bsdi4*)
11180   version_type=linux
11181   need_version=no
11182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183   soname_spec='${libname}${release}${shared_ext}$major'
11184   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11185   shlibpath_var=LD_LIBRARY_PATH
11186   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11187   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11188   # the default ld.so.conf also contains /usr/contrib/lib and
11189   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11190   # libtool to hard-code these into programs
11191   ;;
11192
11193 cygwin* | mingw* | pw32*)
11194   version_type=windows
11195   shrext=".dll"
11196   need_version=no
11197   need_lib_prefix=no
11198
11199   case $GCC,$host_os in
11200   yes,cygwin* | yes,mingw* | yes,pw32*)
11201     library_names_spec='$libname.dll.a'
11202     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11203     postinstall_cmds='base_file=`basename \${file}`~
11204       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11205       dldir=$destdir/`dirname \$dlpath`~
11206       test -d \$dldir || mkdir -p \$dldir~
11207       $install_prog $dir/$dlname \$dldir/$dlname'
11208     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11209       dlpath=$dir/\$dldll~
11210        $rm \$dlpath'
11211     shlibpath_overrides_runpath=yes
11212
11213     case $host_os in
11214     cygwin*)
11215       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11216       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11217       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11218       ;;
11219     mingw*)
11220       # MinGW DLLs use traditional 'lib' prefix
11221       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11222       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11223       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11224         # It is most probably a Windows format PATH printed by
11225         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11226         # path with ; separators, and with drive letters. We can handle the
11227         # drive letters (cygwin fileutils understands them), so leave them,
11228         # especially as we might pass files found there to a mingw objdump,
11229         # which wouldn't understand a cygwinified path. Ahh.
11230         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11231       else
11232         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11233       fi
11234       ;;
11235     pw32*)
11236       # pw32 DLLs use 'pw' prefix rather than 'lib'
11237       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11238       ;;
11239     esac
11240     ;;
11241
11242   *)
11243     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11244     ;;
11245   esac
11246   dynamic_linker='Win32 ld.exe'
11247   # FIXME: first we should search . and the directory the executable is in
11248   shlibpath_var=PATH
11249   ;;
11250
11251 darwin* | rhapsody*)
11252   dynamic_linker="$host_os dyld"
11253   version_type=darwin
11254   need_lib_prefix=no
11255   need_version=no
11256   # FIXME: Relying on posixy $() will cause problems for
11257   #        cross-compilation, but unfortunately the echo tests do not
11258   #        yet detect zsh echo's removal of \ escapes.
11259   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11260   soname_spec='${libname}${release}${major}$shared_ext'
11261   shlibpath_overrides_runpath=yes
11262   shlibpath_var=DYLD_LIBRARY_PATH
11263   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11264   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11265   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11266   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"`
11267   fi
11268   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11269   ;;
11270
11271 dgux*)
11272   version_type=linux
11273   need_lib_prefix=no
11274   need_version=no
11275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11276   soname_spec='${libname}${release}${shared_ext}$major'
11277   shlibpath_var=LD_LIBRARY_PATH
11278   ;;
11279
11280 freebsd1*)
11281   dynamic_linker=no
11282   ;;
11283
11284 freebsd*)
11285   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11286   version_type=freebsd-$objformat
11287   case $version_type in
11288     freebsd-elf*)
11289       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11290       need_version=no
11291       need_lib_prefix=no
11292       ;;
11293     freebsd-*)
11294       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11295       need_version=yes
11296       ;;
11297   esac
11298   shlibpath_var=LD_LIBRARY_PATH
11299   case $host_os in
11300   freebsd2*)
11301     shlibpath_overrides_runpath=yes
11302     ;;
11303   freebsd3.01* | freebsdelf3.01*)
11304     shlibpath_overrides_runpath=yes
11305     hardcode_into_libs=yes
11306     ;;
11307   *) # from 3.2 on
11308     shlibpath_overrides_runpath=no
11309     hardcode_into_libs=yes
11310     ;;
11311   esac
11312   ;;
11313
11314 gnu*)
11315   version_type=linux
11316   need_lib_prefix=no
11317   need_version=no
11318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11319   soname_spec='${libname}${release}${shared_ext}$major'
11320   shlibpath_var=LD_LIBRARY_PATH
11321   hardcode_into_libs=yes
11322   ;;
11323
11324 hpux9* | hpux10* | hpux11*)
11325   # Give a soname corresponding to the major version so that dld.sl refuses to
11326   # link against other versions.
11327   version_type=sunos
11328   need_lib_prefix=no
11329   need_version=no
11330   case "$host_cpu" in
11331   ia64*)
11332     shrext='.so'
11333     hardcode_into_libs=yes
11334     dynamic_linker="$host_os dld.so"
11335     shlibpath_var=LD_LIBRARY_PATH
11336     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11337     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11338     soname_spec='${libname}${release}${shared_ext}$major'
11339     if test "X$HPUX_IA64_MODE" = X32; then
11340       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11341     else
11342       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11343     fi
11344     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11345     ;;
11346    hppa*64*)
11347      shrext='.sl'
11348      hardcode_into_libs=yes
11349      dynamic_linker="$host_os dld.sl"
11350      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11355      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11356      ;;
11357    *)
11358     shrext='.sl'
11359     dynamic_linker="$host_os dld.sl"
11360     shlibpath_var=SHLIB_PATH
11361     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11362     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11363     soname_spec='${libname}${release}${shared_ext}$major'
11364     ;;
11365   esac
11366   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11367   postinstall_cmds='chmod 555 $lib'
11368   ;;
11369
11370 irix5* | irix6* | nonstopux*)
11371   case $host_os in
11372     nonstopux*) version_type=nonstopux ;;
11373     *)
11374         if test "$lt_cv_prog_gnu_ld" = yes; then
11375                 version_type=linux
11376         else
11377                 version_type=irix
11378         fi ;;
11379   esac
11380   need_lib_prefix=no
11381   need_version=no
11382   soname_spec='${libname}${release}${shared_ext}$major'
11383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11384   case $host_os in
11385   irix5* | nonstopux*)
11386     libsuff= shlibsuff=
11387     ;;
11388   *)
11389     case $LD in # libtool.m4 will add one of these switches to LD
11390     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11391       libsuff= shlibsuff= libmagic=32-bit;;
11392     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11393       libsuff=32 shlibsuff=N32 libmagic=N32;;
11394     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11395       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11396     *) libsuff= shlibsuff= libmagic=never-match;;
11397     esac
11398     ;;
11399   esac
11400   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11401   shlibpath_overrides_runpath=no
11402   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11403   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11404   hardcode_into_libs=yes
11405   ;;
11406
11407 # No shared lib support for Linux oldld, aout, or coff.
11408 linux*oldld* | linux*aout* | linux*coff*)
11409   dynamic_linker=no
11410   ;;
11411
11412 # This must be Linux ELF.
11413 linux*)
11414   version_type=linux
11415   need_lib_prefix=no
11416   need_version=no
11417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418   soname_spec='${libname}${release}${shared_ext}$major'
11419   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11420   shlibpath_var=LD_LIBRARY_PATH
11421   shlibpath_overrides_runpath=no
11422   # This implies no fast_install, which is unacceptable.
11423   # Some rework will be needed to allow for fast_install
11424   # before this can be enabled.
11425   hardcode_into_libs=yes
11426
11427   # We used to test for /lib/ld.so.1 and disable shared libraries on
11428   # powerpc, because MkLinux only supported shared libraries with the
11429   # GNU dynamic linker.  Since this was broken with cross compilers,
11430   # most powerpc-linux boxes support dynamic linking these days and
11431   # people can always --disable-shared, the test was removed, and we
11432   # assume the GNU/Linux dynamic linker is in use.
11433   dynamic_linker='GNU/Linux ld.so'
11434   ;;
11435
11436 netbsd*)
11437   version_type=sunos
11438   need_lib_prefix=no
11439   need_version=no
11440   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11441     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11442     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11443     dynamic_linker='NetBSD (a.out) ld.so'
11444   else
11445     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11446     soname_spec='${libname}${release}${shared_ext}$major'
11447     dynamic_linker='NetBSD ld.elf_so'
11448   fi
11449   shlibpath_var=LD_LIBRARY_PATH
11450   shlibpath_overrides_runpath=yes
11451   hardcode_into_libs=yes
11452   ;;
11453
11454 newsos6)
11455   version_type=linux
11456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11457   shlibpath_var=LD_LIBRARY_PATH
11458   shlibpath_overrides_runpath=yes
11459   ;;
11460
11461 nto-qnx)
11462   version_type=linux
11463   need_lib_prefix=no
11464   need_version=no
11465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11466   soname_spec='${libname}${release}${shared_ext}$major'
11467   shlibpath_var=LD_LIBRARY_PATH
11468   shlibpath_overrides_runpath=yes
11469   ;;
11470
11471 openbsd*)
11472   version_type=sunos
11473   need_lib_prefix=no
11474   need_version=no
11475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11476   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11477   shlibpath_var=LD_LIBRARY_PATH
11478   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11479     case $host_os in
11480       openbsd2.[89] | openbsd2.[89].*)
11481         shlibpath_overrides_runpath=no
11482         ;;
11483       *)
11484         shlibpath_overrides_runpath=yes
11485         ;;
11486       esac
11487   else
11488     shlibpath_overrides_runpath=yes
11489   fi
11490   ;;
11491
11492 os2*)
11493   libname_spec='$name'
11494   shrext=".dll"
11495   need_lib_prefix=no
11496   library_names_spec='$libname${shared_ext} $libname.a'
11497   dynamic_linker='OS/2 ld.exe'
11498   shlibpath_var=LIBPATH
11499   ;;
11500
11501 osf3* | osf4* | osf5*)
11502   version_type=osf
11503   need_lib_prefix=no
11504   need_version=no
11505   soname_spec='${libname}${release}${shared_ext}$major'
11506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11507   shlibpath_var=LD_LIBRARY_PATH
11508   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11509   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11510   ;;
11511
11512 sco3.2v5*)
11513   version_type=osf
11514   soname_spec='${libname}${release}${shared_ext}$major'
11515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11516   shlibpath_var=LD_LIBRARY_PATH
11517   ;;
11518
11519 solaris*)
11520   version_type=linux
11521   need_lib_prefix=no
11522   need_version=no
11523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524   soname_spec='${libname}${release}${shared_ext}$major'
11525   shlibpath_var=LD_LIBRARY_PATH
11526   shlibpath_overrides_runpath=yes
11527   hardcode_into_libs=yes
11528   # ldd complains unless libraries are executable
11529   postinstall_cmds='chmod +x $lib'
11530   ;;
11531
11532 sunos4*)
11533   version_type=sunos
11534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11535   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11536   shlibpath_var=LD_LIBRARY_PATH
11537   shlibpath_overrides_runpath=yes
11538   if test "$with_gnu_ld" = yes; then
11539     need_lib_prefix=no
11540   fi
11541   need_version=yes
11542   ;;
11543
11544 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11545   version_type=linux
11546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547   soname_spec='${libname}${release}${shared_ext}$major'
11548   shlibpath_var=LD_LIBRARY_PATH
11549   case $host_vendor in
11550     sni)
11551       shlibpath_overrides_runpath=no
11552       need_lib_prefix=no
11553       export_dynamic_flag_spec='${wl}-Blargedynsym'
11554       runpath_var=LD_RUN_PATH
11555       ;;
11556     siemens)
11557       need_lib_prefix=no
11558       ;;
11559     motorola)
11560       need_lib_prefix=no
11561       need_version=no
11562       shlibpath_overrides_runpath=no
11563       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11564       ;;
11565   esac
11566   ;;
11567
11568 sysv4*MP*)
11569   if test -d /usr/nec ;then
11570     version_type=linux
11571     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11572     soname_spec='$libname${shared_ext}.$major'
11573     shlibpath_var=LD_LIBRARY_PATH
11574   fi
11575   ;;
11576
11577 uts4*)
11578   version_type=linux
11579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11580   soname_spec='${libname}${release}${shared_ext}$major'
11581   shlibpath_var=LD_LIBRARY_PATH
11582   ;;
11583
11584 *)
11585   dynamic_linker=no
11586   ;;
11587 esac
11588 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11589 echo "${ECHO_T}$dynamic_linker" >&6
11590 test "$dynamic_linker" = no && can_build_shared=no
11591
11592 if test "x$enable_dlopen" != xyes; then
11593   enable_dlopen=unknown
11594   enable_dlopen_self=unknown
11595   enable_dlopen_self_static=unknown
11596 else
11597   lt_cv_dlopen=no
11598   lt_cv_dlopen_libs=
11599
11600   case $host_os in
11601   beos*)
11602     lt_cv_dlopen="load_add_on"
11603     lt_cv_dlopen_libs=
11604     lt_cv_dlopen_self=yes
11605     ;;
11606
11607   mingw* | pw32*)
11608     lt_cv_dlopen="LoadLibrary"
11609     lt_cv_dlopen_libs=
11610    ;;
11611
11612   cygwin*)
11613     lt_cv_dlopen="dlopen"
11614     lt_cv_dlopen_libs=
11615    ;;
11616
11617   darwin*)
11618   # if libdl is installed we need to link against it
11619     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11620 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11621 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11622   echo $ECHO_N "(cached) $ECHO_C" >&6
11623 else
11624   ac_check_lib_save_LIBS=$LIBS
11625 LIBS="-ldl  $LIBS"
11626 cat >conftest.$ac_ext <<_ACEOF
11627 /* confdefs.h.  */
11628 _ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h.  */
11632
11633 /* Override any gcc2 internal prototype to avoid an error.  */
11634 #ifdef __cplusplus
11635 extern "C"
11636 #endif
11637 /* We use char because int might match the return type of a gcc2
11638    builtin and then its argument prototype would still apply.  */
11639 char dlopen ();
11640 int
11641 main ()
11642 {
11643 dlopen ();
11644   ;
11645   return 0;
11646 }
11647 _ACEOF
11648 rm -f conftest.$ac_objext conftest$ac_exeext
11649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11650   (eval $ac_link) 2>conftest.er1
11651   ac_status=$?
11652   grep -v '^ *+' conftest.er1 >conftest.err
11653   rm -f conftest.er1
11654   cat conftest.err >&5
11655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656   (exit $ac_status); } &&
11657          { ac_try='test -z "$ac_cxx_werror_flag"
11658                          || test ! -s conftest.err'
11659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660   (eval $ac_try) 2>&5
11661   ac_status=$?
11662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663   (exit $ac_status); }; } &&
11664          { ac_try='test -s conftest$ac_exeext'
11665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11666   (eval $ac_try) 2>&5
11667   ac_status=$?
11668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669   (exit $ac_status); }; }; then
11670   ac_cv_lib_dl_dlopen=yes
11671 else
11672   echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11674
11675 ac_cv_lib_dl_dlopen=no
11676 fi
11677 rm -f conftest.err conftest.$ac_objext \
11678       conftest$ac_exeext conftest.$ac_ext
11679 LIBS=$ac_check_lib_save_LIBS
11680 fi
11681 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11682 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11683 if test $ac_cv_lib_dl_dlopen = yes; then
11684   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11685 else
11686
11687     lt_cv_dlopen="dyld"
11688     lt_cv_dlopen_libs=
11689     lt_cv_dlopen_self=yes
11690
11691 fi
11692
11693    ;;
11694
11695   *)
11696     echo "$as_me:$LINENO: checking for shl_load" >&5
11697 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11698 if test "${ac_cv_func_shl_load+set}" = set; then
11699   echo $ECHO_N "(cached) $ECHO_C" >&6
11700 else
11701   cat >conftest.$ac_ext <<_ACEOF
11702 /* confdefs.h.  */
11703 _ACEOF
11704 cat confdefs.h >>conftest.$ac_ext
11705 cat >>conftest.$ac_ext <<_ACEOF
11706 /* end confdefs.h.  */
11707 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11708    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11709 #define shl_load innocuous_shl_load
11710
11711 /* System header to define __stub macros and hopefully few prototypes,
11712     which can conflict with char shl_load (); below.
11713     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11714     <limits.h> exists even on freestanding compilers.  */
11715
11716 #ifdef __STDC__
11717 # include <limits.h>
11718 #else
11719 # include <assert.h>
11720 #endif
11721
11722 #undef shl_load
11723
11724 /* Override any gcc2 internal prototype to avoid an error.  */
11725 #ifdef __cplusplus
11726 extern "C"
11727 {
11728 #endif
11729 /* We use char because int might match the return type of a gcc2
11730    builtin and then its argument prototype would still apply.  */
11731 char shl_load ();
11732 /* The GNU C library defines this for functions which it implements
11733     to always fail with ENOSYS.  Some functions are actually named
11734     something starting with __ and the normal name is an alias.  */
11735 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11736 choke me
11737 #else
11738 char (*f) () = shl_load;
11739 #endif
11740 #ifdef __cplusplus
11741 }
11742 #endif
11743
11744 int
11745 main ()
11746 {
11747 return f != shl_load;
11748   ;
11749   return 0;
11750 }
11751 _ACEOF
11752 rm -f conftest.$ac_objext conftest$ac_exeext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11754   (eval $ac_link) 2>conftest.er1
11755   ac_status=$?
11756   grep -v '^ *+' conftest.er1 >conftest.err
11757   rm -f conftest.er1
11758   cat conftest.err >&5
11759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760   (exit $ac_status); } &&
11761          { ac_try='test -z "$ac_cxx_werror_flag"
11762                          || test ! -s conftest.err'
11763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764   (eval $ac_try) 2>&5
11765   ac_status=$?
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); }; } &&
11768          { ac_try='test -s conftest$ac_exeext'
11769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770   (eval $ac_try) 2>&5
11771   ac_status=$?
11772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773   (exit $ac_status); }; }; then
11774   ac_cv_func_shl_load=yes
11775 else
11776   echo "$as_me: failed program was:" >&5
11777 sed 's/^/| /' conftest.$ac_ext >&5
11778
11779 ac_cv_func_shl_load=no
11780 fi
11781 rm -f conftest.err conftest.$ac_objext \
11782       conftest$ac_exeext conftest.$ac_ext
11783 fi
11784 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11785 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11786 if test $ac_cv_func_shl_load = yes; then
11787   lt_cv_dlopen="shl_load"
11788 else
11789   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11790 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11791 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11792   echo $ECHO_N "(cached) $ECHO_C" >&6
11793 else
11794   ac_check_lib_save_LIBS=$LIBS
11795 LIBS="-ldld  $LIBS"
11796 cat >conftest.$ac_ext <<_ACEOF
11797 /* confdefs.h.  */
11798 _ACEOF
11799 cat confdefs.h >>conftest.$ac_ext
11800 cat >>conftest.$ac_ext <<_ACEOF
11801 /* end confdefs.h.  */
11802
11803 /* Override any gcc2 internal prototype to avoid an error.  */
11804 #ifdef __cplusplus
11805 extern "C"
11806 #endif
11807 /* We use char because int might match the return type of a gcc2
11808    builtin and then its argument prototype would still apply.  */
11809 char shl_load ();
11810 int
11811 main ()
11812 {
11813 shl_load ();
11814   ;
11815   return 0;
11816 }
11817 _ACEOF
11818 rm -f conftest.$ac_objext conftest$ac_exeext
11819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11820   (eval $ac_link) 2>conftest.er1
11821   ac_status=$?
11822   grep -v '^ *+' conftest.er1 >conftest.err
11823   rm -f conftest.er1
11824   cat conftest.err >&5
11825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826   (exit $ac_status); } &&
11827          { ac_try='test -z "$ac_cxx_werror_flag"
11828                          || test ! -s conftest.err'
11829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830   (eval $ac_try) 2>&5
11831   ac_status=$?
11832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833   (exit $ac_status); }; } &&
11834          { ac_try='test -s conftest$ac_exeext'
11835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836   (eval $ac_try) 2>&5
11837   ac_status=$?
11838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839   (exit $ac_status); }; }; then
11840   ac_cv_lib_dld_shl_load=yes
11841 else
11842   echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11844
11845 ac_cv_lib_dld_shl_load=no
11846 fi
11847 rm -f conftest.err conftest.$ac_objext \
11848       conftest$ac_exeext conftest.$ac_ext
11849 LIBS=$ac_check_lib_save_LIBS
11850 fi
11851 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11852 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11853 if test $ac_cv_lib_dld_shl_load = yes; then
11854   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11855 else
11856   echo "$as_me:$LINENO: checking for dlopen" >&5
11857 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11858 if test "${ac_cv_func_dlopen+set}" = set; then
11859   echo $ECHO_N "(cached) $ECHO_C" >&6
11860 else
11861   cat >conftest.$ac_ext <<_ACEOF
11862 /* confdefs.h.  */
11863 _ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h.  */
11867 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11869 #define dlopen innocuous_dlopen
11870
11871 /* System header to define __stub macros and hopefully few prototypes,
11872     which can conflict with char dlopen (); below.
11873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11874     <limits.h> exists even on freestanding compilers.  */
11875
11876 #ifdef __STDC__
11877 # include <limits.h>
11878 #else
11879 # include <assert.h>
11880 #endif
11881
11882 #undef dlopen
11883
11884 /* Override any gcc2 internal prototype to avoid an error.  */
11885 #ifdef __cplusplus
11886 extern "C"
11887 {
11888 #endif
11889 /* We use char because int might match the return type of a gcc2
11890    builtin and then its argument prototype would still apply.  */
11891 char dlopen ();
11892 /* The GNU C library defines this for functions which it implements
11893     to always fail with ENOSYS.  Some functions are actually named
11894     something starting with __ and the normal name is an alias.  */
11895 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11896 choke me
11897 #else
11898 char (*f) () = dlopen;
11899 #endif
11900 #ifdef __cplusplus
11901 }
11902 #endif
11903
11904 int
11905 main ()
11906 {
11907 return f != dlopen;
11908   ;
11909   return 0;
11910 }
11911 _ACEOF
11912 rm -f conftest.$ac_objext conftest$ac_exeext
11913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11914   (eval $ac_link) 2>conftest.er1
11915   ac_status=$?
11916   grep -v '^ *+' conftest.er1 >conftest.err
11917   rm -f conftest.er1
11918   cat conftest.err >&5
11919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920   (exit $ac_status); } &&
11921          { ac_try='test -z "$ac_cxx_werror_flag"
11922                          || test ! -s conftest.err'
11923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924   (eval $ac_try) 2>&5
11925   ac_status=$?
11926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927   (exit $ac_status); }; } &&
11928          { ac_try='test -s conftest$ac_exeext'
11929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930   (eval $ac_try) 2>&5
11931   ac_status=$?
11932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933   (exit $ac_status); }; }; then
11934   ac_cv_func_dlopen=yes
11935 else
11936   echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11938
11939 ac_cv_func_dlopen=no
11940 fi
11941 rm -f conftest.err conftest.$ac_objext \
11942       conftest$ac_exeext conftest.$ac_ext
11943 fi
11944 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11945 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11946 if test $ac_cv_func_dlopen = yes; then
11947   lt_cv_dlopen="dlopen"
11948 else
11949   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11950 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11951 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11952   echo $ECHO_N "(cached) $ECHO_C" >&6
11953 else
11954   ac_check_lib_save_LIBS=$LIBS
11955 LIBS="-ldl  $LIBS"
11956 cat >conftest.$ac_ext <<_ACEOF
11957 /* confdefs.h.  */
11958 _ACEOF
11959 cat confdefs.h >>conftest.$ac_ext
11960 cat >>conftest.$ac_ext <<_ACEOF
11961 /* end confdefs.h.  */
11962
11963 /* Override any gcc2 internal prototype to avoid an error.  */
11964 #ifdef __cplusplus
11965 extern "C"
11966 #endif
11967 /* We use char because int might match the return type of a gcc2
11968    builtin and then its argument prototype would still apply.  */
11969 char dlopen ();
11970 int
11971 main ()
11972 {
11973 dlopen ();
11974   ;
11975   return 0;
11976 }
11977 _ACEOF
11978 rm -f conftest.$ac_objext conftest$ac_exeext
11979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11980   (eval $ac_link) 2>conftest.er1
11981   ac_status=$?
11982   grep -v '^ *+' conftest.er1 >conftest.err
11983   rm -f conftest.er1
11984   cat conftest.err >&5
11985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986   (exit $ac_status); } &&
11987          { ac_try='test -z "$ac_cxx_werror_flag"
11988                          || test ! -s conftest.err'
11989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990   (eval $ac_try) 2>&5
11991   ac_status=$?
11992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993   (exit $ac_status); }; } &&
11994          { ac_try='test -s conftest$ac_exeext'
11995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996   (eval $ac_try) 2>&5
11997   ac_status=$?
11998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999   (exit $ac_status); }; }; then
12000   ac_cv_lib_dl_dlopen=yes
12001 else
12002   echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.$ac_ext >&5
12004
12005 ac_cv_lib_dl_dlopen=no
12006 fi
12007 rm -f conftest.err conftest.$ac_objext \
12008       conftest$ac_exeext conftest.$ac_ext
12009 LIBS=$ac_check_lib_save_LIBS
12010 fi
12011 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12012 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12013 if test $ac_cv_lib_dl_dlopen = yes; then
12014   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12015 else
12016   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12017 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12018 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12019   echo $ECHO_N "(cached) $ECHO_C" >&6
12020 else
12021   ac_check_lib_save_LIBS=$LIBS
12022 LIBS="-lsvld  $LIBS"
12023 cat >conftest.$ac_ext <<_ACEOF
12024 /* confdefs.h.  */
12025 _ACEOF
12026 cat confdefs.h >>conftest.$ac_ext
12027 cat >>conftest.$ac_ext <<_ACEOF
12028 /* end confdefs.h.  */
12029
12030 /* Override any gcc2 internal prototype to avoid an error.  */
12031 #ifdef __cplusplus
12032 extern "C"
12033 #endif
12034 /* We use char because int might match the return type of a gcc2
12035    builtin and then its argument prototype would still apply.  */
12036 char dlopen ();
12037 int
12038 main ()
12039 {
12040 dlopen ();
12041   ;
12042   return 0;
12043 }
12044 _ACEOF
12045 rm -f conftest.$ac_objext conftest$ac_exeext
12046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12047   (eval $ac_link) 2>conftest.er1
12048   ac_status=$?
12049   grep -v '^ *+' conftest.er1 >conftest.err
12050   rm -f conftest.er1
12051   cat conftest.err >&5
12052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053   (exit $ac_status); } &&
12054          { ac_try='test -z "$ac_cxx_werror_flag"
12055                          || test ! -s conftest.err'
12056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057   (eval $ac_try) 2>&5
12058   ac_status=$?
12059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060   (exit $ac_status); }; } &&
12061          { ac_try='test -s conftest$ac_exeext'
12062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063   (eval $ac_try) 2>&5
12064   ac_status=$?
12065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); }; }; then
12067   ac_cv_lib_svld_dlopen=yes
12068 else
12069   echo "$as_me: failed program was:" >&5
12070 sed 's/^/| /' conftest.$ac_ext >&5
12071
12072 ac_cv_lib_svld_dlopen=no
12073 fi
12074 rm -f conftest.err conftest.$ac_objext \
12075       conftest$ac_exeext conftest.$ac_ext
12076 LIBS=$ac_check_lib_save_LIBS
12077 fi
12078 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12079 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12080 if test $ac_cv_lib_svld_dlopen = yes; then
12081   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12082 else
12083   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12084 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12085 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12086   echo $ECHO_N "(cached) $ECHO_C" >&6
12087 else
12088   ac_check_lib_save_LIBS=$LIBS
12089 LIBS="-ldld  $LIBS"
12090 cat >conftest.$ac_ext <<_ACEOF
12091 /* confdefs.h.  */
12092 _ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h.  */
12096
12097 /* Override any gcc2 internal prototype to avoid an error.  */
12098 #ifdef __cplusplus
12099 extern "C"
12100 #endif
12101 /* We use char because int might match the return type of a gcc2
12102    builtin and then its argument prototype would still apply.  */
12103 char dld_link ();
12104 int
12105 main ()
12106 {
12107 dld_link ();
12108   ;
12109   return 0;
12110 }
12111 _ACEOF
12112 rm -f conftest.$ac_objext conftest$ac_exeext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12114   (eval $ac_link) 2>conftest.er1
12115   ac_status=$?
12116   grep -v '^ *+' conftest.er1 >conftest.err
12117   rm -f conftest.er1
12118   cat conftest.err >&5
12119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120   (exit $ac_status); } &&
12121          { ac_try='test -z "$ac_cxx_werror_flag"
12122                          || test ! -s conftest.err'
12123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124   (eval $ac_try) 2>&5
12125   ac_status=$?
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); }; } &&
12128          { ac_try='test -s conftest$ac_exeext'
12129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130   (eval $ac_try) 2>&5
12131   ac_status=$?
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); }; }; then
12134   ac_cv_lib_dld_dld_link=yes
12135 else
12136   echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12138
12139 ac_cv_lib_dld_dld_link=no
12140 fi
12141 rm -f conftest.err conftest.$ac_objext \
12142       conftest$ac_exeext conftest.$ac_ext
12143 LIBS=$ac_check_lib_save_LIBS
12144 fi
12145 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12146 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12147 if test $ac_cv_lib_dld_dld_link = yes; then
12148   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12149 fi
12150
12151
12152 fi
12153
12154
12155 fi
12156
12157
12158 fi
12159
12160
12161 fi
12162
12163
12164 fi
12165
12166     ;;
12167   esac
12168
12169   if test "x$lt_cv_dlopen" != xno; then
12170     enable_dlopen=yes
12171   else
12172     enable_dlopen=no
12173   fi
12174
12175   case $lt_cv_dlopen in
12176   dlopen)
12177     save_CPPFLAGS="$CPPFLAGS"
12178     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12179
12180     save_LDFLAGS="$LDFLAGS"
12181     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12182
12183     save_LIBS="$LIBS"
12184     LIBS="$lt_cv_dlopen_libs $LIBS"
12185
12186     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12187 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12188 if test "${lt_cv_dlopen_self+set}" = set; then
12189   echo $ECHO_N "(cached) $ECHO_C" >&6
12190 else
12191           if test "$cross_compiling" = yes; then :
12192   lt_cv_dlopen_self=cross
12193 else
12194   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12195   lt_status=$lt_dlunknown
12196   cat > conftest.$ac_ext <<EOF
12197 #line 12197 "configure"
12198 #include "confdefs.h"
12199
12200 #if HAVE_DLFCN_H
12201 #include <dlfcn.h>
12202 #endif
12203
12204 #include <stdio.h>
12205
12206 #ifdef RTLD_GLOBAL
12207 #  define LT_DLGLOBAL           RTLD_GLOBAL
12208 #else
12209 #  ifdef DL_GLOBAL
12210 #    define LT_DLGLOBAL         DL_GLOBAL
12211 #  else
12212 #    define LT_DLGLOBAL         0
12213 #  endif
12214 #endif
12215
12216 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12217    find out it does not work in some platform. */
12218 #ifndef LT_DLLAZY_OR_NOW
12219 #  ifdef RTLD_LAZY
12220 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12221 #  else
12222 #    ifdef DL_LAZY
12223 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12224 #    else
12225 #      ifdef RTLD_NOW
12226 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12227 #      else
12228 #        ifdef DL_NOW
12229 #          define LT_DLLAZY_OR_NOW      DL_NOW
12230 #        else
12231 #          define LT_DLLAZY_OR_NOW      0
12232 #        endif
12233 #      endif
12234 #    endif
12235 #  endif
12236 #endif
12237
12238 #ifdef __cplusplus
12239 extern "C" void exit (int);
12240 #endif
12241
12242 void fnord() { int i=42;}
12243 int main ()
12244 {
12245   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12246   int status = $lt_dlunknown;
12247
12248   if (self)
12249     {
12250       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12251       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12252       /* dlclose (self); */
12253     }
12254
12255     exit (status);
12256 }
12257 EOF
12258   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12259   (eval $ac_link) 2>&5
12260   ac_status=$?
12261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12263     (./conftest; exit; ) 2>/dev/null
12264     lt_status=$?
12265     case x$lt_status in
12266       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12267       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12268       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12269     esac
12270   else :
12271     # compilation failed
12272     lt_cv_dlopen_self=no
12273   fi
12274 fi
12275 rm -fr conftest*
12276
12277
12278 fi
12279 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12280 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12281
12282     if test "x$lt_cv_dlopen_self" = xyes; then
12283       LDFLAGS="$LDFLAGS $link_static_flag"
12284       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12285 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12286 if test "${lt_cv_dlopen_self_static+set}" = set; then
12287   echo $ECHO_N "(cached) $ECHO_C" >&6
12288 else
12289           if test "$cross_compiling" = yes; then :
12290   lt_cv_dlopen_self_static=cross
12291 else
12292   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12293   lt_status=$lt_dlunknown
12294   cat > conftest.$ac_ext <<EOF
12295 #line 12295 "configure"
12296 #include "confdefs.h"
12297
12298 #if HAVE_DLFCN_H
12299 #include <dlfcn.h>
12300 #endif
12301
12302 #include <stdio.h>
12303
12304 #ifdef RTLD_GLOBAL
12305 #  define LT_DLGLOBAL           RTLD_GLOBAL
12306 #else
12307 #  ifdef DL_GLOBAL
12308 #    define LT_DLGLOBAL         DL_GLOBAL
12309 #  else
12310 #    define LT_DLGLOBAL         0
12311 #  endif
12312 #endif
12313
12314 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12315    find out it does not work in some platform. */
12316 #ifndef LT_DLLAZY_OR_NOW
12317 #  ifdef RTLD_LAZY
12318 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12319 #  else
12320 #    ifdef DL_LAZY
12321 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12322 #    else
12323 #      ifdef RTLD_NOW
12324 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12325 #      else
12326 #        ifdef DL_NOW
12327 #          define LT_DLLAZY_OR_NOW      DL_NOW
12328 #        else
12329 #          define LT_DLLAZY_OR_NOW      0
12330 #        endif
12331 #      endif
12332 #    endif
12333 #  endif
12334 #endif
12335
12336 #ifdef __cplusplus
12337 extern "C" void exit (int);
12338 #endif
12339
12340 void fnord() { int i=42;}
12341 int main ()
12342 {
12343   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12344   int status = $lt_dlunknown;
12345
12346   if (self)
12347     {
12348       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12349       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12350       /* dlclose (self); */
12351     }
12352
12353     exit (status);
12354 }
12355 EOF
12356   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12357   (eval $ac_link) 2>&5
12358   ac_status=$?
12359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12361     (./conftest; exit; ) 2>/dev/null
12362     lt_status=$?
12363     case x$lt_status in
12364       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12365       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12366       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12367     esac
12368   else :
12369     # compilation failed
12370     lt_cv_dlopen_self_static=no
12371   fi
12372 fi
12373 rm -fr conftest*
12374
12375
12376 fi
12377 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12378 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12379     fi
12380
12381     CPPFLAGS="$save_CPPFLAGS"
12382     LDFLAGS="$save_LDFLAGS"
12383     LIBS="$save_LIBS"
12384     ;;
12385   esac
12386
12387   case $lt_cv_dlopen_self in
12388   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12389   *) enable_dlopen_self=unknown ;;
12390   esac
12391
12392   case $lt_cv_dlopen_self_static in
12393   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12394   *) enable_dlopen_self_static=unknown ;;
12395   esac
12396 fi
12397
12398
12399 # The else clause should only fire when bootstrapping the
12400 # libtool distribution, otherwise you forgot to ship ltmain.sh
12401 # with your package, and you will get complaints that there are
12402 # no rules to generate ltmain.sh.
12403 if test -f "$ltmain"; then
12404   # See if we are running on zsh, and set the options which allow our commands through
12405   # without removal of \ escapes.
12406   if test -n "${ZSH_VERSION+set}" ; then
12407     setopt NO_GLOB_SUBST
12408   fi
12409   # Now quote all the things that may contain metacharacters while being
12410   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12411   # variables and quote the copies for generation of the libtool script.
12412   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12413     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12414     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12415     deplibs_check_method reload_flag reload_cmds need_locks \
12416     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12417     lt_cv_sys_global_symbol_to_c_name_address \
12418     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12419     old_postinstall_cmds old_postuninstall_cmds \
12420     compiler_CXX \
12421     CC_CXX \
12422     LD_CXX \
12423     lt_prog_compiler_wl_CXX \
12424     lt_prog_compiler_pic_CXX \
12425     lt_prog_compiler_static_CXX \
12426     lt_prog_compiler_no_builtin_flag_CXX \
12427     export_dynamic_flag_spec_CXX \
12428     thread_safe_flag_spec_CXX \
12429     whole_archive_flag_spec_CXX \
12430     enable_shared_with_static_runtimes_CXX \
12431     old_archive_cmds_CXX \
12432     old_archive_from_new_cmds_CXX \
12433     predep_objects_CXX \
12434     postdep_objects_CXX \
12435     predeps_CXX \
12436     postdeps_CXX \
12437     compiler_lib_search_path_CXX \
12438     archive_cmds_CXX \
12439     archive_expsym_cmds_CXX \
12440     postinstall_cmds_CXX \
12441     postuninstall_cmds_CXX \
12442     old_archive_from_expsyms_cmds_CXX \
12443     allow_undefined_flag_CXX \
12444     no_undefined_flag_CXX \
12445     export_symbols_cmds_CXX \
12446     hardcode_libdir_flag_spec_CXX \
12447     hardcode_libdir_flag_spec_ld_CXX \
12448     hardcode_libdir_separator_CXX \
12449     hardcode_automatic_CXX \
12450     module_cmds_CXX \
12451     module_expsym_cmds_CXX \
12452     lt_cv_prog_compiler_c_o_CXX \
12453     exclude_expsyms_CXX \
12454     include_expsyms_CXX; do
12455
12456     case $var in
12457     old_archive_cmds_CXX | \
12458     old_archive_from_new_cmds_CXX | \
12459     archive_cmds_CXX | \
12460     archive_expsym_cmds_CXX | \
12461     module_cmds_CXX | \
12462     module_expsym_cmds_CXX | \
12463     old_archive_from_expsyms_cmds_CXX | \
12464     export_symbols_cmds_CXX | \
12465     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12466     postinstall_cmds | postuninstall_cmds | \
12467     old_postinstall_cmds | old_postuninstall_cmds | \
12468     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12469       # Double-quote double-evaled strings.
12470       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12471       ;;
12472     *)
12473       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12474       ;;
12475     esac
12476   done
12477
12478   case $lt_echo in
12479   *'\$0 --fallback-echo"')
12480     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12481     ;;
12482   esac
12483
12484 cfgfile="$ofile"
12485
12486   cat <<__EOF__ >> "$cfgfile"
12487 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12488
12489 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12490
12491 # Shell to use when invoking shell scripts.
12492 SHELL=$lt_SHELL
12493
12494 # Whether or not to build shared libraries.
12495 build_libtool_libs=$enable_shared
12496
12497 # Whether or not to build static libraries.
12498 build_old_libs=$enable_static
12499
12500 # Whether or not to add -lc for building shared libraries.
12501 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12502
12503 # Whether or not to disallow shared libs when runtime libs are static
12504 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12505
12506 # Whether or not to optimize for fast installation.
12507 fast_install=$enable_fast_install
12508
12509 # The host system.
12510 host_alias=$host_alias
12511 host=$host
12512
12513 # An echo program that does not interpret backslashes.
12514 echo=$lt_echo
12515
12516 # The archiver.
12517 AR=$lt_AR
12518 AR_FLAGS=$lt_AR_FLAGS
12519
12520 # A C compiler.
12521 LTCC=$lt_LTCC
12522
12523 # A language-specific compiler.
12524 CC=$lt_compiler_CXX
12525
12526 # Is the compiler the GNU C compiler?
12527 with_gcc=$GCC_CXX
12528
12529 # An ERE matcher.
12530 EGREP=$lt_EGREP
12531
12532 # The linker used to build libraries.
12533 LD=$lt_LD_CXX
12534
12535 # Whether we need hard or soft links.
12536 LN_S=$lt_LN_S
12537
12538 # A BSD-compatible nm program.
12539 NM=$lt_NM
12540
12541 # A symbol stripping program
12542 STRIP=$STRIP
12543
12544 # Used to examine libraries when file_magic_cmd begins "file"
12545 MAGIC_CMD=$MAGIC_CMD
12546
12547 # Used on cygwin: DLL creation program.
12548 DLLTOOL="$DLLTOOL"
12549
12550 # Used on cygwin: object dumper.
12551 OBJDUMP="$OBJDUMP"
12552
12553 # Used on cygwin: assembler.
12554 AS="$AS"
12555
12556 # The name of the directory that contains temporary libtool files.
12557 objdir=$objdir
12558
12559 # How to create reloadable object files.
12560 reload_flag=$lt_reload_flag
12561 reload_cmds=$lt_reload_cmds
12562
12563 # How to pass a linker flag through the compiler.
12564 wl=$lt_lt_prog_compiler_wl_CXX
12565
12566 # Object file suffix (normally "o").
12567 objext="$ac_objext"
12568
12569 # Old archive suffix (normally "a").
12570 libext="$libext"
12571
12572 # Shared library suffix (normally ".so").
12573 shrext='$shrext'
12574
12575 # Executable file suffix (normally "").
12576 exeext="$exeext"
12577
12578 # Additional compiler flags for building library objects.
12579 pic_flag=$lt_lt_prog_compiler_pic_CXX
12580 pic_mode=$pic_mode
12581
12582 # What is the maximum length of a command?
12583 max_cmd_len=$lt_cv_sys_max_cmd_len
12584
12585 # Does compiler simultaneously support -c and -o options?
12586 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12587
12588 # Must we lock files when doing compilation ?
12589 need_locks=$lt_need_locks
12590
12591 # Do we need the lib prefix for modules?
12592 need_lib_prefix=$need_lib_prefix
12593
12594 # Do we need a version for libraries?
12595 need_version=$need_version
12596
12597 # Whether dlopen is supported.
12598 dlopen_support=$enable_dlopen
12599
12600 # Whether dlopen of programs is supported.
12601 dlopen_self=$enable_dlopen_self
12602
12603 # Whether dlopen of statically linked programs is supported.
12604 dlopen_self_static=$enable_dlopen_self_static
12605
12606 # Compiler flag to prevent dynamic linking.
12607 link_static_flag=$lt_lt_prog_compiler_static_CXX
12608
12609 # Compiler flag to turn off builtin functions.
12610 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12611
12612 # Compiler flag to allow reflexive dlopens.
12613 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12614
12615 # Compiler flag to generate shared objects directly from archives.
12616 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12617
12618 # Compiler flag to generate thread-safe objects.
12619 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12620
12621 # Library versioning type.
12622 version_type=$version_type
12623
12624 # Format of library name prefix.
12625 libname_spec=$lt_libname_spec
12626
12627 # List of archive names.  First name is the real one, the rest are links.
12628 # The last name is the one that the linker finds with -lNAME.
12629 library_names_spec=$lt_library_names_spec
12630
12631 # The coded name of the library, if different from the real name.
12632 soname_spec=$lt_soname_spec
12633
12634 # Commands used to build and install an old-style archive.
12635 RANLIB=$lt_RANLIB
12636 old_archive_cmds=$lt_old_archive_cmds_CXX
12637 old_postinstall_cmds=$lt_old_postinstall_cmds
12638 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12639
12640 # Create an old-style archive from a shared archive.
12641 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12642
12643 # Create a temporary old-style archive to link instead of a shared archive.
12644 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12645
12646 # Commands used to build and install a shared archive.
12647 archive_cmds=$lt_archive_cmds_CXX
12648 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12649 postinstall_cmds=$lt_postinstall_cmds
12650 postuninstall_cmds=$lt_postuninstall_cmds
12651
12652 # Commands used to build a loadable module (assumed same as above if empty)
12653 module_cmds=$lt_module_cmds_CXX
12654 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12655
12656 # Commands to strip libraries.
12657 old_striplib=$lt_old_striplib
12658 striplib=$lt_striplib
12659
12660 # Dependencies to place before the objects being linked to create a
12661 # shared library.
12662 predep_objects=$lt_predep_objects_CXX
12663
12664 # Dependencies to place after the objects being linked to create a
12665 # shared library.
12666 postdep_objects=$lt_postdep_objects_CXX
12667
12668 # Dependencies to place before the objects being linked to create a
12669 # shared library.
12670 predeps=$lt_predeps_CXX
12671
12672 # Dependencies to place after the objects being linked to create a
12673 # shared library.
12674 postdeps=$lt_postdeps_CXX
12675
12676 # The library search path used internally by the compiler when linking
12677 # a shared library.
12678 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12679
12680 # Method to check whether dependent libraries are shared objects.
12681 deplibs_check_method=$lt_deplibs_check_method
12682
12683 # Command to use when deplibs_check_method == file_magic.
12684 file_magic_cmd=$lt_file_magic_cmd
12685
12686 # Flag that allows shared libraries with undefined symbols to be built.
12687 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12688
12689 # Flag that forces no undefined symbols.
12690 no_undefined_flag=$lt_no_undefined_flag_CXX
12691
12692 # Commands used to finish a libtool library installation in a directory.
12693 finish_cmds=$lt_finish_cmds
12694
12695 # Same as above, but a single script fragment to be evaled but not shown.
12696 finish_eval=$lt_finish_eval
12697
12698 # Take the output of nm and produce a listing of raw symbols and C names.
12699 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12700
12701 # Transform the output of nm in a proper C declaration
12702 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12703
12704 # Transform the output of nm in a C name address pair
12705 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12706
12707 # This is the shared library runtime path variable.
12708 runpath_var=$runpath_var
12709
12710 # This is the shared library path variable.
12711 shlibpath_var=$shlibpath_var
12712
12713 # Is shlibpath searched before the hard-coded library search path?
12714 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12715
12716 # How to hardcode a shared library path into an executable.
12717 hardcode_action=$hardcode_action_CXX
12718
12719 # Whether we should hardcode library paths into libraries.
12720 hardcode_into_libs=$hardcode_into_libs
12721
12722 # Flag to hardcode \$libdir into a binary during linking.
12723 # This must work even if \$libdir does not exist.
12724 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12725
12726 # If ld is used when linking, flag to hardcode \$libdir into
12727 # a binary during linking. This must work even if \$libdir does
12728 # not exist.
12729 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12730
12731 # Whether we need a single -rpath flag with a separated argument.
12732 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12733
12734 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12735 # resulting binary.
12736 hardcode_direct=$hardcode_direct_CXX
12737
12738 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12739 # resulting binary.
12740 hardcode_minus_L=$hardcode_minus_L_CXX
12741
12742 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12743 # the resulting binary.
12744 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12745
12746 # Set to yes if building a shared library automatically hardcodes DIR into the library
12747 # and all subsequent libraries and executables linked against it.
12748 hardcode_automatic=$hardcode_automatic_CXX
12749
12750 # Variables whose values should be saved in libtool wrapper scripts and
12751 # restored at relink time.
12752 variables_saved_for_relink="$variables_saved_for_relink"
12753
12754 # Whether libtool must link a program against all its dependency libraries.
12755 link_all_deplibs=$link_all_deplibs_CXX
12756
12757 # Compile-time system search path for libraries
12758 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12759
12760 # Run-time system search path for libraries
12761 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12762
12763 # Fix the shell variable \$srcfile for the compiler.
12764 fix_srcfile_path="$fix_srcfile_path_CXX"
12765
12766 # Set to yes if exported symbols are required.
12767 always_export_symbols=$always_export_symbols_CXX
12768
12769 # The commands to list exported symbols.
12770 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12771
12772 # The commands to extract the exported symbol list from a shared archive.
12773 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12774
12775 # Symbols that should not be listed in the preloaded symbols.
12776 exclude_expsyms=$lt_exclude_expsyms_CXX
12777
12778 # Symbols that must always be exported.
12779 include_expsyms=$lt_include_expsyms_CXX
12780
12781 # ### END LIBTOOL TAG CONFIG: $tagname
12782
12783 __EOF__
12784
12785
12786 else
12787   # If there is no Makefile yet, we rely on a make rule to execute
12788   # `config.status --recheck' to rerun these tests and create the
12789   # libtool script then.
12790   test -f Makefile && make "$ltmain"
12791 fi
12792
12793
12794 ac_ext=c
12795 ac_cpp='$CPP $CPPFLAGS'
12796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12799
12800 CC=$lt_save_CC
12801 LDCXX=$LD
12802 LD=$lt_save_LD
12803 GCC=$lt_save_GCC
12804 with_gnu_ldcxx=$with_gnu_ld
12805 with_gnu_ld=$lt_save_with_gnu_ld
12806 lt_cv_path_LDCXX=$lt_cv_path_LD
12807 lt_cv_path_LD=$lt_save_path_LD
12808 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12809 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12810
12811         else
12812           tagname=""
12813         fi
12814         ;;
12815
12816       F77)
12817         if test -n "$F77" && test "X$F77" != "Xno"; then
12818
12819 ac_ext=f
12820 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12821 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12822 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12823
12824
12825 archive_cmds_need_lc_F77=no
12826 allow_undefined_flag_F77=
12827 always_export_symbols_F77=no
12828 archive_expsym_cmds_F77=
12829 export_dynamic_flag_spec_F77=
12830 hardcode_direct_F77=no
12831 hardcode_libdir_flag_spec_F77=
12832 hardcode_libdir_flag_spec_ld_F77=
12833 hardcode_libdir_separator_F77=
12834 hardcode_minus_L_F77=no
12835 hardcode_automatic_F77=no
12836 module_cmds_F77=
12837 module_expsym_cmds_F77=
12838 link_all_deplibs_F77=unknown
12839 old_archive_cmds_F77=$old_archive_cmds
12840 no_undefined_flag_F77=
12841 whole_archive_flag_spec_F77=
12842 enable_shared_with_static_runtimes_F77=no
12843
12844 # Source file extension for f77 test sources.
12845 ac_ext=f
12846
12847 # Object file extension for compiled f77 test sources.
12848 objext=o
12849 objext_F77=$objext
12850
12851 # Code to be used in simple compile tests
12852 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12853
12854 # Code to be used in simple link tests
12855 lt_simple_link_test_code="      program t\n      end\n"
12856
12857 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12858
12859 # If no C compiler was specified, use CC.
12860 LTCC=${LTCC-"$CC"}
12861
12862 # Allow CC to be a program name with arguments.
12863 compiler=$CC
12864
12865
12866 # Allow CC to be a program name with arguments.
12867 lt_save_CC="$CC"
12868 CC=${F77-"f77"}
12869 compiler=$CC
12870 compiler_F77=$CC
12871 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12872
12873 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12874 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12875 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12876 echo "${ECHO_T}$can_build_shared" >&6
12877
12878 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12879 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12880 test "$can_build_shared" = "no" && enable_shared=no
12881
12882 # On AIX, shared libraries and static libraries use the same namespace, and
12883 # are all built from PIC.
12884 case "$host_os" in
12885 aix3*)
12886   test "$enable_shared" = yes && enable_static=no
12887   if test -n "$RANLIB"; then
12888     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12889     postinstall_cmds='$RANLIB $lib'
12890   fi
12891   ;;
12892 aix4*)
12893   test "$enable_shared" = yes && enable_static=no
12894   ;;
12895 esac
12896 echo "$as_me:$LINENO: result: $enable_shared" >&5
12897 echo "${ECHO_T}$enable_shared" >&6
12898
12899 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12900 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12901 # Make sure either enable_shared or enable_static is yes.
12902 test "$enable_shared" = yes || enable_static=yes
12903 echo "$as_me:$LINENO: result: $enable_static" >&5
12904 echo "${ECHO_T}$enable_static" >&6
12905
12906 test "$ld_shlibs_F77" = no && can_build_shared=no
12907
12908 GCC_F77="$G77"
12909 LD_F77="$LD"
12910
12911 lt_prog_compiler_wl_F77=
12912 lt_prog_compiler_pic_F77=
12913 lt_prog_compiler_static_F77=
12914
12915 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12916 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12917
12918   if test "$GCC" = yes; then
12919     lt_prog_compiler_wl_F77='-Wl,'
12920     lt_prog_compiler_static_F77='-static'
12921
12922     case $host_os in
12923       aix*)
12924       # All AIX code is PIC.
12925       if test "$host_cpu" = ia64; then
12926         # AIX 5 now supports IA64 processor
12927         lt_prog_compiler_static_F77='-Bstatic'
12928       fi
12929       ;;
12930
12931     amigaos*)
12932       # FIXME: we need at least 68020 code to build shared libraries, but
12933       # adding the `-m68020' flag to GCC prevents building anything better,
12934       # like `-m68040'.
12935       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12936       ;;
12937
12938     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12939       # PIC is the default for these OSes.
12940       ;;
12941
12942     mingw* | pw32* | os2*)
12943       # This hack is so that the source file can tell whether it is being
12944       # built for inclusion in a dll (and should export symbols for example).
12945       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12946       ;;
12947
12948     darwin* | rhapsody*)
12949       # PIC is the default on this platform
12950       # Common symbols not allowed in MH_DYLIB files
12951       lt_prog_compiler_pic_F77='-fno-common'
12952       ;;
12953
12954     msdosdjgpp*)
12955       # Just because we use GCC doesn't mean we suddenly get shared libraries
12956       # on systems that don't support them.
12957       lt_prog_compiler_can_build_shared_F77=no
12958       enable_shared=no
12959       ;;
12960
12961     sysv4*MP*)
12962       if test -d /usr/nec; then
12963         lt_prog_compiler_pic_F77=-Kconform_pic
12964       fi
12965       ;;
12966
12967     hpux*)
12968       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12969       # not for PA HP-UX.
12970       case "$host_cpu" in
12971       hppa*64*|ia64*)
12972         # +Z the default
12973         ;;
12974       *)
12975         lt_prog_compiler_pic_F77='-fPIC'
12976         ;;
12977       esac
12978       ;;
12979
12980     *)
12981       lt_prog_compiler_pic_F77='-fPIC'
12982       ;;
12983     esac
12984   else
12985     # PORTME Check for flag to pass linker flags through the system compiler.
12986     case $host_os in
12987     aix*)
12988       lt_prog_compiler_wl_F77='-Wl,'
12989       if test "$host_cpu" = ia64; then
12990         # AIX 5 now supports IA64 processor
12991         lt_prog_compiler_static_F77='-Bstatic'
12992       else
12993         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12994       fi
12995       ;;
12996
12997     mingw* | pw32* | os2*)
12998       # This hack is so that the source file can tell whether it is being
12999       # built for inclusion in a dll (and should export symbols for example).
13000       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13001       ;;
13002
13003     hpux9* | hpux10* | hpux11*)
13004       lt_prog_compiler_wl_F77='-Wl,'
13005       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13006       # not for PA HP-UX.
13007       case "$host_cpu" in
13008       hppa*64*|ia64*)
13009         # +Z the default
13010         ;;
13011       *)
13012         lt_prog_compiler_pic_F77='+Z'
13013         ;;
13014       esac
13015       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13016       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13017       ;;
13018
13019     irix5* | irix6* | nonstopux*)
13020       lt_prog_compiler_wl_F77='-Wl,'
13021       # PIC (with -KPIC) is the default.
13022       lt_prog_compiler_static_F77='-non_shared'
13023       ;;
13024
13025     newsos6)
13026       lt_prog_compiler_pic_F77='-KPIC'
13027       lt_prog_compiler_static_F77='-Bstatic'
13028       ;;
13029
13030     linux*)
13031       case $CC in
13032       icc|ecc)
13033         lt_prog_compiler_wl_F77='-Wl,'
13034         lt_prog_compiler_pic_F77='-KPIC'
13035         lt_prog_compiler_static_F77='-static'
13036         ;;
13037       ccc)
13038         lt_prog_compiler_wl_F77='-Wl,'
13039         # All Alpha code is PIC.
13040         lt_prog_compiler_static_F77='-non_shared'
13041         ;;
13042       esac
13043       ;;
13044
13045     osf3* | osf4* | osf5*)
13046       lt_prog_compiler_wl_F77='-Wl,'
13047       # All OSF/1 code is PIC.
13048       lt_prog_compiler_static_F77='-non_shared'
13049       ;;
13050
13051     sco3.2v5*)
13052       lt_prog_compiler_pic_F77='-Kpic'
13053       lt_prog_compiler_static_F77='-dn'
13054       ;;
13055
13056     solaris*)
13057       lt_prog_compiler_wl_F77='-Wl,'
13058       lt_prog_compiler_pic_F77='-KPIC'
13059       lt_prog_compiler_static_F77='-Bstatic'
13060       ;;
13061
13062     sunos4*)
13063       lt_prog_compiler_wl_F77='-Qoption ld '
13064       lt_prog_compiler_pic_F77='-PIC'
13065       lt_prog_compiler_static_F77='-Bstatic'
13066       ;;
13067
13068     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13069       lt_prog_compiler_wl_F77='-Wl,'
13070       lt_prog_compiler_pic_F77='-KPIC'
13071       lt_prog_compiler_static_F77='-Bstatic'
13072       ;;
13073
13074     sysv4*MP*)
13075       if test -d /usr/nec ;then
13076         lt_prog_compiler_pic_F77='-Kconform_pic'
13077         lt_prog_compiler_static_F77='-Bstatic'
13078       fi
13079       ;;
13080
13081     uts4*)
13082       lt_prog_compiler_pic_F77='-pic'
13083       lt_prog_compiler_static_F77='-Bstatic'
13084       ;;
13085
13086     *)
13087       lt_prog_compiler_can_build_shared_F77=no
13088       ;;
13089     esac
13090   fi
13091
13092 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13093 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13094
13095 #
13096 # Check to make sure the PIC flag actually works.
13097 #
13098 if test -n "$lt_prog_compiler_pic_F77"; then
13099   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13100 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13101 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13102   echo $ECHO_N "(cached) $ECHO_C" >&6
13103 else
13104   lt_prog_compiler_pic_works_F77=no
13105   ac_outfile=conftest.$ac_objext
13106    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13107    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13108    # Insert the option either (1) after the last *FLAGS variable, or
13109    # (2) before a word containing "conftest.", or (3) at the end.
13110    # Note that $ac_compile itself does not contain backslashes and begins
13111    # with a dollar sign (not a hyphen), so the echo should work correctly.
13112    # The option is referenced via a variable to avoid confusing sed.
13113    lt_compile=`echo "$ac_compile" | $SED \
13114    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13115    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13116    -e 's:$: $lt_compiler_flag:'`
13117    (eval echo "\"\$as_me:13117: $lt_compile\"" >&5)
13118    (eval "$lt_compile" 2>conftest.err)
13119    ac_status=$?
13120    cat conftest.err >&5
13121    echo "$as_me:13121: \$? = $ac_status" >&5
13122    if (exit $ac_status) && test -s "$ac_outfile"; then
13123      # The compiler can only warn and ignore the option if not recognized
13124      # So say no if there are warnings
13125      if test ! -s conftest.err; then
13126        lt_prog_compiler_pic_works_F77=yes
13127      fi
13128    fi
13129    $rm conftest*
13130
13131 fi
13132 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13133 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13134
13135 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13136     case $lt_prog_compiler_pic_F77 in
13137      "" | " "*) ;;
13138      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13139      esac
13140 else
13141     lt_prog_compiler_pic_F77=
13142      lt_prog_compiler_can_build_shared_F77=no
13143 fi
13144
13145 fi
13146 case "$host_os" in
13147   # For platforms which do not support PIC, -DPIC is meaningless:
13148   *djgpp*)
13149     lt_prog_compiler_pic_F77=
13150     ;;
13151   *)
13152     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13153     ;;
13154 esac
13155
13156 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13157 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13158 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13159   echo $ECHO_N "(cached) $ECHO_C" >&6
13160 else
13161   lt_cv_prog_compiler_c_o_F77=no
13162    $rm -r conftest 2>/dev/null
13163    mkdir conftest
13164    cd conftest
13165    mkdir out
13166    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13167
13168    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13169    # that will create temporary files in the current directory regardless of
13170    # the output directory.  Thus, making CWD read-only will cause this test
13171    # to fail, enabling locking or at least warning the user not to do parallel
13172    # builds.
13173    chmod -w .
13174
13175    lt_compiler_flag="-o out/conftest2.$ac_objext"
13176    # Insert the option either (1) after the last *FLAGS variable, or
13177    # (2) before a word containing "conftest.", or (3) at the end.
13178    # Note that $ac_compile itself does not contain backslashes and begins
13179    # with a dollar sign (not a hyphen), so the echo should work correctly.
13180    lt_compile=`echo "$ac_compile" | $SED \
13181    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13182    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13183    -e 's:$: $lt_compiler_flag:'`
13184    (eval echo "\"\$as_me:13184: $lt_compile\"" >&5)
13185    (eval "$lt_compile" 2>out/conftest.err)
13186    ac_status=$?
13187    cat out/conftest.err >&5
13188    echo "$as_me:13188: \$? = $ac_status" >&5
13189    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13190    then
13191      # The compiler can only warn and ignore the option if not recognized
13192      # So say no if there are warnings
13193      if test ! -s out/conftest.err; then
13194        lt_cv_prog_compiler_c_o_F77=yes
13195      fi
13196    fi
13197    chmod u+w .
13198    $rm conftest* out/*
13199    rmdir out
13200    cd ..
13201    rmdir conftest
13202    $rm conftest*
13203
13204 fi
13205 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13206 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13207
13208
13209 hard_links="nottested"
13210 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13211   # do not overwrite the value of need_locks provided by the user
13212   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13213 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13214   hard_links=yes
13215   $rm conftest*
13216   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13217   touch conftest.a
13218   ln conftest.a conftest.b 2>&5 || hard_links=no
13219   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13220   echo "$as_me:$LINENO: result: $hard_links" >&5
13221 echo "${ECHO_T}$hard_links" >&6
13222   if test "$hard_links" = no; then
13223     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13224 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13225     need_locks=warn
13226   fi
13227 else
13228   need_locks=no
13229 fi
13230
13231 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13232 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13233
13234   runpath_var=
13235   allow_undefined_flag_F77=
13236   enable_shared_with_static_runtimes_F77=no
13237   archive_cmds_F77=
13238   archive_expsym_cmds_F77=
13239   old_archive_From_new_cmds_F77=
13240   old_archive_from_expsyms_cmds_F77=
13241   export_dynamic_flag_spec_F77=
13242   whole_archive_flag_spec_F77=
13243   thread_safe_flag_spec_F77=
13244   hardcode_libdir_flag_spec_F77=
13245   hardcode_libdir_flag_spec_ld_F77=
13246   hardcode_libdir_separator_F77=
13247   hardcode_direct_F77=no
13248   hardcode_minus_L_F77=no
13249   hardcode_shlibpath_var_F77=unsupported
13250   link_all_deplibs_F77=unknown
13251   hardcode_automatic_F77=no
13252   module_cmds_F77=
13253   module_expsym_cmds_F77=
13254   always_export_symbols_F77=no
13255   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13256   # include_expsyms should be a list of space-separated symbols to be *always*
13257   # included in the symbol list
13258   include_expsyms_F77=
13259   # exclude_expsyms can be an extended regexp of symbols to exclude
13260   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13261   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13262   # as well as any symbol that contains `d'.
13263   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13264   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13265   # platforms (ab)use it in PIC code, but their linkers get confused if
13266   # the symbol is explicitly referenced.  Since portable code cannot
13267   # rely on this symbol name, it's probably fine to never include it in
13268   # preloaded symbol tables.
13269   extract_expsyms_cmds=
13270
13271   case $host_os in
13272   cygwin* | mingw* | pw32*)
13273     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13274     # When not using gcc, we currently assume that we are using
13275     # Microsoft Visual C++.
13276     if test "$GCC" != yes; then
13277       with_gnu_ld=no
13278     fi
13279     ;;
13280   openbsd*)
13281     with_gnu_ld=no
13282     ;;
13283   esac
13284
13285   ld_shlibs_F77=yes
13286   if test "$with_gnu_ld" = yes; then
13287     # If archive_cmds runs LD, not CC, wlarc should be empty
13288     wlarc='${wl}'
13289
13290     # See if GNU ld supports shared libraries.
13291     case $host_os in
13292     aix3* | aix4* | aix5*)
13293       # On AIX/PPC, the GNU linker is very broken
13294       if test "$host_cpu" != ia64; then
13295         ld_shlibs_F77=no
13296         cat <<EOF 1>&2
13297
13298 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13299 *** to be unable to reliably create shared libraries on AIX.
13300 *** Therefore, libtool is disabling shared libraries support.  If you
13301 *** really care for shared libraries, you may want to modify your PATH
13302 *** so that a non-GNU linker is found, and then restart.
13303
13304 EOF
13305       fi
13306       ;;
13307
13308     amigaos*)
13309       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)'
13310       hardcode_libdir_flag_spec_F77='-L$libdir'
13311       hardcode_minus_L_F77=yes
13312
13313       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13314       # that the semantics of dynamic libraries on AmigaOS, at least up
13315       # to version 4, is to share data among multiple programs linked
13316       # with the same dynamic library.  Since this doesn't match the
13317       # behavior of shared libraries on other platforms, we can't use
13318       # them.
13319       ld_shlibs_F77=no
13320       ;;
13321
13322     beos*)
13323       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13324         allow_undefined_flag_F77=unsupported
13325         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13326         # support --undefined.  This deserves some investigation.  FIXME
13327         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13328       else
13329         ld_shlibs_F77=no
13330       fi
13331       ;;
13332
13333     cygwin* | mingw* | pw32*)
13334       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13335       # as there is no search path for DLLs.
13336       hardcode_libdir_flag_spec_F77='-L$libdir'
13337       allow_undefined_flag_F77=unsupported
13338       always_export_symbols_F77=no
13339       enable_shared_with_static_runtimes_F77=yes
13340       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13341
13342       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13343         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13344         # If the export-symbols file already is a .def file (1st line
13345         # is EXPORTS), use it as is; otherwise, prepend...
13346         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13347           cp $export_symbols $output_objdir/$soname.def;
13348         else
13349           echo EXPORTS > $output_objdir/$soname.def;
13350           cat $export_symbols >> $output_objdir/$soname.def;
13351         fi~
13352         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13353       else
13354         ld_shlibs=no
13355       fi
13356       ;;
13357
13358     netbsd*)
13359       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13360         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13361         wlarc=
13362       else
13363         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13364         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13365       fi
13366       ;;
13367
13368     solaris* | sysv5*)
13369       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13370         ld_shlibs_F77=no
13371         cat <<EOF 1>&2
13372
13373 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13374 *** create shared libraries on Solaris systems.  Therefore, libtool
13375 *** is disabling shared libraries support.  We urge you to upgrade GNU
13376 *** binutils to release 2.9.1 or newer.  Another option is to modify
13377 *** your PATH or compiler configuration so that the native linker is
13378 *** used, and then restart.
13379
13380 EOF
13381       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13382         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13383         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13384       else
13385         ld_shlibs_F77=no
13386       fi
13387       ;;
13388
13389     sunos4*)
13390       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13391       wlarc=
13392       hardcode_direct_F77=yes
13393       hardcode_shlibpath_var_F77=no
13394       ;;
13395
13396     *)
13397       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13398         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13399         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13400       else
13401         ld_shlibs_F77=no
13402       fi
13403       ;;
13404     esac
13405
13406     if test "$ld_shlibs_F77" = yes; then
13407       runpath_var=LD_RUN_PATH
13408       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13409       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13410       # ancient GNU ld didn't support --whole-archive et. al.
13411       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13412         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13413       else
13414         whole_archive_flag_spec_F77=
13415       fi
13416     fi
13417   else
13418     # PORTME fill in a description of your system's linker (not GNU ld)
13419     case $host_os in
13420     aix3*)
13421       allow_undefined_flag_F77=unsupported
13422       always_export_symbols_F77=yes
13423       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'
13424       # Note: this linker hardcodes the directories in LIBPATH if there
13425       # are no directories specified by -L.
13426       hardcode_minus_L_F77=yes
13427       if test "$GCC" = yes && test -z "$link_static_flag"; then
13428         # Neither direct hardcoding nor static linking is supported with a
13429         # broken collect2.
13430         hardcode_direct_F77=unsupported
13431       fi
13432       ;;
13433
13434     aix4* | aix5*)
13435       if test "$host_cpu" = ia64; then
13436         # On IA64, the linker does run time linking by default, so we don't
13437         # have to do anything special.
13438         aix_use_runtimelinking=no
13439         exp_sym_flag='-Bexport'
13440         no_entry_flag=""
13441       else
13442         # If we're using GNU nm, then we don't want the "-C" option.
13443         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13444         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13445           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'
13446         else
13447           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'
13448         fi
13449         aix_use_runtimelinking=no
13450
13451         # Test if we are trying to use run time linking or normal
13452         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13453         # need to do runtime linking.
13454         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13455           for ld_flag in $LDFLAGS; do
13456           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13457             aix_use_runtimelinking=yes
13458             break
13459           fi
13460           done
13461         esac
13462
13463         exp_sym_flag='-bexport'
13464         no_entry_flag='-bnoentry'
13465       fi
13466
13467       # When large executables or shared objects are built, AIX ld can
13468       # have problems creating the table of contents.  If linking a library
13469       # or program results in "error TOC overflow" add -mminimal-toc to
13470       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13471       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13472
13473       archive_cmds_F77=''
13474       hardcode_direct_F77=yes
13475       hardcode_libdir_separator_F77=':'
13476       link_all_deplibs_F77=yes
13477
13478       if test "$GCC" = yes; then
13479         case $host_os in aix4.012|aix4.012.*)
13480         # We only want to do this on AIX 4.2 and lower, the check
13481         # below for broken collect2 doesn't work under 4.3+
13482           collect2name=`${CC} -print-prog-name=collect2`
13483           if test -f "$collect2name" && \
13484            strings "$collect2name" | grep resolve_lib_name >/dev/null
13485           then
13486           # We have reworked collect2
13487           hardcode_direct_F77=yes
13488           else
13489           # We have old collect2
13490           hardcode_direct_F77=unsupported
13491           # It fails to find uninstalled libraries when the uninstalled
13492           # path is not listed in the libpath.  Setting hardcode_minus_L
13493           # to unsupported forces relinking
13494           hardcode_minus_L_F77=yes
13495           hardcode_libdir_flag_spec_F77='-L$libdir'
13496           hardcode_libdir_separator_F77=
13497           fi
13498         esac
13499         shared_flag='-shared'
13500       else
13501         # not using gcc
13502         if test "$host_cpu" = ia64; then
13503         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13504         # chokes on -Wl,-G. The following line is correct:
13505           shared_flag='-G'
13506         else
13507         if test "$aix_use_runtimelinking" = yes; then
13508             shared_flag='${wl}-G'
13509           else
13510             shared_flag='${wl}-bM:SRE'
13511         fi
13512         fi
13513       fi
13514
13515       # It seems that -bexpall does not export symbols beginning with
13516       # underscore (_), so it is better to generate a list of symbols to export.
13517       always_export_symbols_F77=yes
13518       if test "$aix_use_runtimelinking" = yes; then
13519         # Warning - without using the other runtime loading flags (-brtl),
13520         # -berok will link without error, but may produce a broken library.
13521         allow_undefined_flag_F77='-berok'
13522        # Determine the default libpath from the value encoded in an empty executable.
13523        cat >conftest.$ac_ext <<_ACEOF
13524       program main
13525
13526       end
13527 _ACEOF
13528 rm -f conftest.$ac_objext conftest$ac_exeext
13529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13530   (eval $ac_link) 2>conftest.er1
13531   ac_status=$?
13532   grep -v '^ *+' conftest.er1 >conftest.err
13533   rm -f conftest.er1
13534   cat conftest.err >&5
13535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); } &&
13537          { ac_try='test -z "$ac_f77_werror_flag"
13538                          || test ! -s conftest.err'
13539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540   (eval $ac_try) 2>&5
13541   ac_status=$?
13542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543   (exit $ac_status); }; } &&
13544          { ac_try='test -s conftest$ac_exeext'
13545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546   (eval $ac_try) 2>&5
13547   ac_status=$?
13548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549   (exit $ac_status); }; }; then
13550
13551 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13552 }'`
13553 # Check for a 64-bit object if we didn't find anything.
13554 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; }
13555 }'`; fi
13556 else
13557   echo "$as_me: failed program was:" >&5
13558 sed 's/^/| /' conftest.$ac_ext >&5
13559
13560 fi
13561 rm -f conftest.err conftest.$ac_objext \
13562       conftest$ac_exeext conftest.$ac_ext
13563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13564
13565        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13566         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"
13567        else
13568         if test "$host_cpu" = ia64; then
13569           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13570           allow_undefined_flag_F77="-z nodefs"
13571           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"
13572         else
13573          # Determine the default libpath from the value encoded in an empty executable.
13574          cat >conftest.$ac_ext <<_ACEOF
13575       program main
13576
13577       end
13578 _ACEOF
13579 rm -f conftest.$ac_objext conftest$ac_exeext
13580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13581   (eval $ac_link) 2>conftest.er1
13582   ac_status=$?
13583   grep -v '^ *+' conftest.er1 >conftest.err
13584   rm -f conftest.er1
13585   cat conftest.err >&5
13586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587   (exit $ac_status); } &&
13588          { ac_try='test -z "$ac_f77_werror_flag"
13589                          || test ! -s conftest.err'
13590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13591   (eval $ac_try) 2>&5
13592   ac_status=$?
13593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594   (exit $ac_status); }; } &&
13595          { ac_try='test -s conftest$ac_exeext'
13596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597   (eval $ac_try) 2>&5
13598   ac_status=$?
13599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600   (exit $ac_status); }; }; then
13601
13602 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13603 }'`
13604 # Check for a 64-bit object if we didn't find anything.
13605 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; }
13606 }'`; fi
13607 else
13608   echo "$as_me: failed program was:" >&5
13609 sed 's/^/| /' conftest.$ac_ext >&5
13610
13611 fi
13612 rm -f conftest.err conftest.$ac_objext \
13613       conftest$ac_exeext conftest.$ac_ext
13614 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13615
13616          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13617           # Warning - without using the other run time loading flags,
13618           # -berok will link without error, but may produce a broken library.
13619           no_undefined_flag_F77=' ${wl}-bernotok'
13620           allow_undefined_flag_F77=' ${wl}-berok'
13621           # -bexpall does not export symbols beginning with underscore (_)
13622           always_export_symbols_F77=yes
13623           # Exported symbols can be pulled into shared objects from archives
13624           whole_archive_flag_spec_F77=' '
13625           archive_cmds_need_lc_F77=yes
13626           # This is similar to how AIX traditionally builds it's shared libraries.
13627           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'
13628         fi
13629       fi
13630       ;;
13631
13632     amigaos*)
13633       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)'
13634       hardcode_libdir_flag_spec_F77='-L$libdir'
13635       hardcode_minus_L_F77=yes
13636       # see comment about different semantics on the GNU ld section
13637       ld_shlibs_F77=no
13638       ;;
13639
13640     bsdi4*)
13641       export_dynamic_flag_spec_F77=-rdynamic
13642       ;;
13643
13644     cygwin* | mingw* | pw32*)
13645       # When not using gcc, we currently assume that we are using
13646       # Microsoft Visual C++.
13647       # hardcode_libdir_flag_spec is actually meaningless, as there is
13648       # no search path for DLLs.
13649       hardcode_libdir_flag_spec_F77=' '
13650       allow_undefined_flag_F77=unsupported
13651       # Tell ltmain to make .lib files, not .a files.
13652       libext=lib
13653       # Tell ltmain to make .dll files, not .so files.
13654       shrext=".dll"
13655       # FIXME: Setting linknames here is a bad hack.
13656       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13657       # The linker will automatically build a .lib file if we build a DLL.
13658       old_archive_From_new_cmds_F77='true'
13659       # FIXME: Should let the user specify the lib program.
13660       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13661       fix_srcfile_path='`cygpath -w "$srcfile"`'
13662       enable_shared_with_static_runtimes_F77=yes
13663       ;;
13664
13665     darwin* | rhapsody*)
13666     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13667       archive_cmds_need_lc_F77=no
13668       case "$host_os" in
13669       rhapsody* | darwin1.[012])
13670         allow_undefined_flag_F77='-undefined suppress'
13671         ;;
13672       *) # Darwin 1.3 on
13673         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13674         ;;
13675       esac
13676       # FIXME: Relying on posixy $() will cause problems for
13677       #        cross-compilation, but unfortunately the echo tests do not
13678       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13679       #        `"' quotes if we put them in here... so don't!
13680         lt_int_apple_cc_single_mod=no
13681         output_verbose_link_cmd='echo'
13682         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13683           lt_int_apple_cc_single_mod=yes
13684         fi
13685         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13686           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13687         else
13688         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'
13689       fi
13690       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13691       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13692         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13693           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}'
13694         else
13695           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}'
13696         fi
13697           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}'
13698       hardcode_direct_F77=no
13699       hardcode_automatic_F77=yes
13700       hardcode_shlibpath_var_F77=unsupported
13701       whole_archive_flag_spec_F77='-all_load $convenience'
13702       link_all_deplibs_F77=yes
13703     fi
13704       ;;
13705
13706     dgux*)
13707       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13708       hardcode_libdir_flag_spec_F77='-L$libdir'
13709       hardcode_shlibpath_var_F77=no
13710       ;;
13711
13712     freebsd1*)
13713       ld_shlibs_F77=no
13714       ;;
13715
13716     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13717     # support.  Future versions do this automatically, but an explicit c++rt0.o
13718     # does not break anything, and helps significantly (at the cost of a little
13719     # extra space).
13720     freebsd2.2*)
13721       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13722       hardcode_libdir_flag_spec_F77='-R$libdir'
13723       hardcode_direct_F77=yes
13724       hardcode_shlibpath_var_F77=no
13725       ;;
13726
13727     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13728     freebsd2*)
13729       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13730       hardcode_direct_F77=yes
13731       hardcode_minus_L_F77=yes
13732       hardcode_shlibpath_var_F77=no
13733       ;;
13734
13735     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13736     freebsd*)
13737       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13738       hardcode_libdir_flag_spec_F77='-R$libdir'
13739       hardcode_direct_F77=yes
13740       hardcode_shlibpath_var_F77=no
13741       ;;
13742
13743     hpux9*)
13744       if test "$GCC" = yes; then
13745         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'
13746       else
13747         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'
13748       fi
13749       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13750       hardcode_libdir_separator_F77=:
13751       hardcode_direct_F77=yes
13752
13753       # hardcode_minus_L: Not really in the search PATH,
13754       # but as the default location of the library.
13755       hardcode_minus_L_F77=yes
13756       export_dynamic_flag_spec_F77='${wl}-E'
13757       ;;
13758
13759     hpux10* | hpux11*)
13760       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13761         case "$host_cpu" in
13762         hppa*64*|ia64*)
13763           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13764           ;;
13765         *)
13766           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13767           ;;
13768         esac
13769       else
13770         case "$host_cpu" in
13771         hppa*64*|ia64*)
13772           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13773           ;;
13774         *)
13775           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13776           ;;
13777         esac
13778       fi
13779       if test "$with_gnu_ld" = no; then
13780         case "$host_cpu" in
13781         hppa*64*)
13782           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13783           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13784           hardcode_libdir_separator_F77=:
13785           hardcode_direct_F77=no
13786           hardcode_shlibpath_var_F77=no
13787           ;;
13788         ia64*)
13789           hardcode_libdir_flag_spec_F77='-L$libdir'
13790           hardcode_direct_F77=no
13791           hardcode_shlibpath_var_F77=no
13792
13793           # hardcode_minus_L: Not really in the search PATH,
13794           # but as the default location of the library.
13795           hardcode_minus_L_F77=yes
13796           ;;
13797         *)
13798           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13799           hardcode_libdir_separator_F77=:
13800           hardcode_direct_F77=yes
13801           export_dynamic_flag_spec_F77='${wl}-E'
13802
13803           # hardcode_minus_L: Not really in the search PATH,
13804           # but as the default location of the library.
13805           hardcode_minus_L_F77=yes
13806           ;;
13807         esac
13808       fi
13809       ;;
13810
13811     irix5* | irix6* | nonstopux*)
13812       if test "$GCC" = yes; then
13813         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'
13814       else
13815         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'
13816         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13817       fi
13818       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13819       hardcode_libdir_separator_F77=:
13820       link_all_deplibs_F77=yes
13821       ;;
13822
13823     netbsd*)
13824       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13825         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13826       else
13827         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13828       fi
13829       hardcode_libdir_flag_spec_F77='-R$libdir'
13830       hardcode_direct_F77=yes
13831       hardcode_shlibpath_var_F77=no
13832       ;;
13833
13834     newsos6)
13835       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13836       hardcode_direct_F77=yes
13837       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13838       hardcode_libdir_separator_F77=:
13839       hardcode_shlibpath_var_F77=no
13840       ;;
13841
13842     openbsd*)
13843       hardcode_direct_F77=yes
13844       hardcode_shlibpath_var_F77=no
13845       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13846         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13847         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13848         export_dynamic_flag_spec_F77='${wl}-E'
13849       else
13850        case $host_os in
13851          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13852            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13853            hardcode_libdir_flag_spec_F77='-R$libdir'
13854            ;;
13855          *)
13856            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13857            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13858            ;;
13859        esac
13860       fi
13861       ;;
13862
13863     os2*)
13864       hardcode_libdir_flag_spec_F77='-L$libdir'
13865       hardcode_minus_L_F77=yes
13866       allow_undefined_flag_F77=unsupported
13867       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'
13868       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13869       ;;
13870
13871     osf3*)
13872       if test "$GCC" = yes; then
13873         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13874         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'
13875       else
13876         allow_undefined_flag_F77=' -expect_unresolved \*'
13877         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'
13878       fi
13879       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13880       hardcode_libdir_separator_F77=:
13881       ;;
13882
13883     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13884       if test "$GCC" = yes; then
13885         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13886         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'
13887         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13888       else
13889         allow_undefined_flag_F77=' -expect_unresolved \*'
13890         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'
13891         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~
13892         $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'
13893
13894         # Both c and cxx compiler support -rpath directly
13895         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13896       fi
13897       hardcode_libdir_separator_F77=:
13898       ;;
13899
13900     sco3.2v5*)
13901       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13902       hardcode_shlibpath_var_F77=no
13903       export_dynamic_flag_spec_F77='${wl}-Bexport'
13904       runpath_var=LD_RUN_PATH
13905       hardcode_runpath_var=yes
13906       ;;
13907
13908     solaris*)
13909       no_undefined_flag_F77=' -z text'
13910       if test "$GCC" = yes; then
13911         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13912         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13913           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13914       else
13915         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13916         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13917         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13918       fi
13919       hardcode_libdir_flag_spec_F77='-R$libdir'
13920       hardcode_shlibpath_var_F77=no
13921       case $host_os in
13922       solaris2.[0-5] | solaris2.[0-5].*) ;;
13923       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13924         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13925       esac
13926       link_all_deplibs_F77=yes
13927       ;;
13928
13929     sunos4*)
13930       if test "x$host_vendor" = xsequent; then
13931         # Use $CC to link under sequent, because it throws in some extra .o
13932         # files that make .init and .fini sections work.
13933         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13934       else
13935         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13936       fi
13937       hardcode_libdir_flag_spec_F77='-L$libdir'
13938       hardcode_direct_F77=yes
13939       hardcode_minus_L_F77=yes
13940       hardcode_shlibpath_var_F77=no
13941       ;;
13942
13943     sysv4)
13944       case $host_vendor in
13945         sni)
13946           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13947           hardcode_direct_F77=yes # is this really true???
13948         ;;
13949         siemens)
13950           ## LD is ld it makes a PLAMLIB
13951           ## CC just makes a GrossModule.
13952           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13953           reload_cmds_F77='$CC -r -o $output$reload_objs'
13954           hardcode_direct_F77=no
13955         ;;
13956         motorola)
13957           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13958           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13959         ;;
13960       esac
13961       runpath_var='LD_RUN_PATH'
13962       hardcode_shlibpath_var_F77=no
13963       ;;
13964
13965     sysv4.3*)
13966       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13967       hardcode_shlibpath_var_F77=no
13968       export_dynamic_flag_spec_F77='-Bexport'
13969       ;;
13970
13971     sysv4*MP*)
13972       if test -d /usr/nec; then
13973         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13974         hardcode_shlibpath_var_F77=no
13975         runpath_var=LD_RUN_PATH
13976         hardcode_runpath_var=yes
13977         ld_shlibs_F77=yes
13978       fi
13979       ;;
13980
13981     sysv4.2uw2*)
13982       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13983       hardcode_direct_F77=yes
13984       hardcode_minus_L_F77=no
13985       hardcode_shlibpath_var_F77=no
13986       hardcode_runpath_var=yes
13987       runpath_var=LD_RUN_PATH
13988       ;;
13989
13990    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13991       no_undefined_flag_F77='${wl}-z ${wl}text'
13992       if test "$GCC" = yes; then
13993         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13994       else
13995         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13996       fi
13997       runpath_var='LD_RUN_PATH'
13998       hardcode_shlibpath_var_F77=no
13999       ;;
14000
14001     sysv5*)
14002       no_undefined_flag_F77=' -z text'
14003       # $CC -shared without GNU ld will not create a library from C++
14004       # object files and a static libstdc++, better avoid it by now
14005       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14006       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14007                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14008       hardcode_libdir_flag_spec_F77=
14009       hardcode_shlibpath_var_F77=no
14010       runpath_var='LD_RUN_PATH'
14011       ;;
14012
14013     uts4*)
14014       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14015       hardcode_libdir_flag_spec_F77='-L$libdir'
14016       hardcode_shlibpath_var_F77=no
14017       ;;
14018
14019     *)
14020       ld_shlibs_F77=no
14021       ;;
14022     esac
14023   fi
14024
14025 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14026 echo "${ECHO_T}$ld_shlibs_F77" >&6
14027 test "$ld_shlibs_F77" = no && can_build_shared=no
14028
14029 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14030 if test "$GCC" = yes; then
14031   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14032 fi
14033
14034 #
14035 # Do we need to explicitly link libc?
14036 #
14037 case "x$archive_cmds_need_lc_F77" in
14038 x|xyes)
14039   # Assume -lc should be added
14040   archive_cmds_need_lc_F77=yes
14041
14042   if test "$enable_shared" = yes && test "$GCC" = yes; then
14043     case $archive_cmds_F77 in
14044     *'~'*)
14045       # FIXME: we may have to deal with multi-command sequences.
14046       ;;
14047     '$CC '*)
14048       # Test whether the compiler implicitly links with -lc since on some
14049       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14050       # to ld, don't add -lc before -lgcc.
14051       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14052 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14053       $rm conftest*
14054       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14055
14056       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14057   (eval $ac_compile) 2>&5
14058   ac_status=$?
14059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060   (exit $ac_status); } 2>conftest.err; then
14061         soname=conftest
14062         lib=conftest
14063         libobjs=conftest.$ac_objext
14064         deplibs=
14065         wl=$lt_prog_compiler_wl_F77
14066         compiler_flags=-v
14067         linker_flags=-v
14068         verstring=
14069         output_objdir=.
14070         libname=conftest
14071         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14072         allow_undefined_flag_F77=
14073         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14074   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14075   ac_status=$?
14076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077   (exit $ac_status); }
14078         then
14079           archive_cmds_need_lc_F77=no
14080         else
14081           archive_cmds_need_lc_F77=yes
14082         fi
14083         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14084       else
14085         cat conftest.err 1>&5
14086       fi
14087       $rm conftest*
14088       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14089 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14090       ;;
14091     esac
14092   fi
14093   ;;
14094 esac
14095
14096 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14097 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14098 hardcode_action_F77=
14099 if test -n "$hardcode_libdir_flag_spec_F77" || \
14100    test -n "$runpath_var F77" || \
14101    test "X$hardcode_automatic_F77"="Xyes" ; then
14102
14103   # We can hardcode non-existant directories.
14104   if test "$hardcode_direct_F77" != no &&
14105      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14106      # have to relink, otherwise we might link with an installed library
14107      # when we should be linking with a yet-to-be-installed one
14108      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14109      test "$hardcode_minus_L_F77" != no; then
14110     # Linking always hardcodes the temporary library directory.
14111     hardcode_action_F77=relink
14112   else
14113     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14114     hardcode_action_F77=immediate
14115   fi
14116 else
14117   # We cannot hardcode anything, or else we can only hardcode existing
14118   # directories.
14119   hardcode_action_F77=unsupported
14120 fi
14121 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14122 echo "${ECHO_T}$hardcode_action_F77" >&6
14123
14124 if test "$hardcode_action_F77" = relink; then
14125   # Fast installation is not supported
14126   enable_fast_install=no
14127 elif test "$shlibpath_overrides_runpath" = yes ||
14128      test "$enable_shared" = no; then
14129   # Fast installation is not necessary
14130   enable_fast_install=needless
14131 fi
14132
14133 striplib=
14134 old_striplib=
14135 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14136 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14137 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14138   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14139   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14140   echo "$as_me:$LINENO: result: yes" >&5
14141 echo "${ECHO_T}yes" >&6
14142 else
14143 # FIXME - insert some real tests, host_os isn't really good enough
14144   case $host_os in
14145    darwin*)
14146        if test -n "$STRIP" ; then
14147          striplib="$STRIP -x"
14148          echo "$as_me:$LINENO: result: yes" >&5
14149 echo "${ECHO_T}yes" >&6
14150        else
14151   echo "$as_me:$LINENO: result: no" >&5
14152 echo "${ECHO_T}no" >&6
14153 fi
14154        ;;
14155    *)
14156   echo "$as_me:$LINENO: result: no" >&5
14157 echo "${ECHO_T}no" >&6
14158     ;;
14159   esac
14160 fi
14161
14162 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14163 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14164 library_names_spec=
14165 libname_spec='lib$name'
14166 soname_spec=
14167 shrext=".so"
14168 postinstall_cmds=
14169 postuninstall_cmds=
14170 finish_cmds=
14171 finish_eval=
14172 shlibpath_var=
14173 shlibpath_overrides_runpath=unknown
14174 version_type=none
14175 dynamic_linker="$host_os ld.so"
14176 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14177 if test "$GCC" = yes; then
14178   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14179   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14180     # if the path contains ";" then we assume it to be the separator
14181     # otherwise default to the standard path separator (i.e. ":") - it is
14182     # assumed that no part of a normal pathname contains ";" but that should
14183     # okay in the real world where ";" in dirpaths is itself problematic.
14184     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14185   else
14186     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14187   fi
14188 else
14189   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14190 fi
14191 need_lib_prefix=unknown
14192 hardcode_into_libs=no
14193
14194 # when you set need_version to no, make sure it does not cause -set_version
14195 # flags to be left without arguments
14196 need_version=unknown
14197
14198 case $host_os in
14199 aix3*)
14200   version_type=linux
14201   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14202   shlibpath_var=LIBPATH
14203
14204   # AIX 3 has no versioning support, so we append a major version to the name.
14205   soname_spec='${libname}${release}${shared_ext}$major'
14206   ;;
14207
14208 aix4* | aix5*)
14209   version_type=linux
14210   need_lib_prefix=no
14211   need_version=no
14212   hardcode_into_libs=yes
14213   if test "$host_cpu" = ia64; then
14214     # AIX 5 supports IA64
14215     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14216     shlibpath_var=LD_LIBRARY_PATH
14217   else
14218     # With GCC up to 2.95.x, collect2 would create an import file
14219     # for dependence libraries.  The import file would start with
14220     # the line `#! .'.  This would cause the generated library to
14221     # depend on `.', always an invalid library.  This was fixed in
14222     # development snapshots of GCC prior to 3.0.
14223     case $host_os in
14224       aix4 | aix4.[01] | aix4.[01].*)
14225       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14226            echo ' yes '
14227            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14228         :
14229       else
14230         can_build_shared=no
14231       fi
14232       ;;
14233     esac
14234     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14235     # soname into executable. Probably we can add versioning support to
14236     # collect2, so additional links can be useful in future.
14237     if test "$aix_use_runtimelinking" = yes; then
14238       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14239       # instead of lib<name>.a to let people know that these are not
14240       # typical AIX shared libraries.
14241       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14242     else
14243       # We preserve .a as extension for shared libraries through AIX4.2
14244       # and later when we are not doing run time linking.
14245       library_names_spec='${libname}${release}.a $libname.a'
14246       soname_spec='${libname}${release}${shared_ext}$major'
14247     fi
14248     shlibpath_var=LIBPATH
14249   fi
14250   ;;
14251
14252 amigaos*)
14253   library_names_spec='$libname.ixlibrary $libname.a'
14254   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14255   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'
14256   ;;
14257
14258 beos*)
14259   library_names_spec='${libname}${shared_ext}'
14260   dynamic_linker="$host_os ld.so"
14261   shlibpath_var=LIBRARY_PATH
14262   ;;
14263
14264 bsdi4*)
14265   version_type=linux
14266   need_version=no
14267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14268   soname_spec='${libname}${release}${shared_ext}$major'
14269   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14270   shlibpath_var=LD_LIBRARY_PATH
14271   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14272   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14273   # the default ld.so.conf also contains /usr/contrib/lib and
14274   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14275   # libtool to hard-code these into programs
14276   ;;
14277
14278 cygwin* | mingw* | pw32*)
14279   version_type=windows
14280   shrext=".dll"
14281   need_version=no
14282   need_lib_prefix=no
14283
14284   case $GCC,$host_os in
14285   yes,cygwin* | yes,mingw* | yes,pw32*)
14286     library_names_spec='$libname.dll.a'
14287     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14288     postinstall_cmds='base_file=`basename \${file}`~
14289       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14290       dldir=$destdir/`dirname \$dlpath`~
14291       test -d \$dldir || mkdir -p \$dldir~
14292       $install_prog $dir/$dlname \$dldir/$dlname'
14293     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14294       dlpath=$dir/\$dldll~
14295        $rm \$dlpath'
14296     shlibpath_overrides_runpath=yes
14297
14298     case $host_os in
14299     cygwin*)
14300       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14301       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14302       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14303       ;;
14304     mingw*)
14305       # MinGW DLLs use traditional 'lib' prefix
14306       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14307       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14308       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14309         # It is most probably a Windows format PATH printed by
14310         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14311         # path with ; separators, and with drive letters. We can handle the
14312         # drive letters (cygwin fileutils understands them), so leave them,
14313         # especially as we might pass files found there to a mingw objdump,
14314         # which wouldn't understand a cygwinified path. Ahh.
14315         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14316       else
14317         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14318       fi
14319       ;;
14320     pw32*)
14321       # pw32 DLLs use 'pw' prefix rather than 'lib'
14322       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14323       ;;
14324     esac
14325     ;;
14326
14327   *)
14328     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14329     ;;
14330   esac
14331   dynamic_linker='Win32 ld.exe'
14332   # FIXME: first we should search . and the directory the executable is in
14333   shlibpath_var=PATH
14334   ;;
14335
14336 darwin* | rhapsody*)
14337   dynamic_linker="$host_os dyld"
14338   version_type=darwin
14339   need_lib_prefix=no
14340   need_version=no
14341   # FIXME: Relying on posixy $() will cause problems for
14342   #        cross-compilation, but unfortunately the echo tests do not
14343   #        yet detect zsh echo's removal of \ escapes.
14344   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14345   soname_spec='${libname}${release}${major}$shared_ext'
14346   shlibpath_overrides_runpath=yes
14347   shlibpath_var=DYLD_LIBRARY_PATH
14348   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14349   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14350   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14351   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"`
14352   fi
14353   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14354   ;;
14355
14356 dgux*)
14357   version_type=linux
14358   need_lib_prefix=no
14359   need_version=no
14360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14361   soname_spec='${libname}${release}${shared_ext}$major'
14362   shlibpath_var=LD_LIBRARY_PATH
14363   ;;
14364
14365 freebsd1*)
14366   dynamic_linker=no
14367   ;;
14368
14369 freebsd*)
14370   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14371   version_type=freebsd-$objformat
14372   case $version_type in
14373     freebsd-elf*)
14374       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14375       need_version=no
14376       need_lib_prefix=no
14377       ;;
14378     freebsd-*)
14379       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14380       need_version=yes
14381       ;;
14382   esac
14383   shlibpath_var=LD_LIBRARY_PATH
14384   case $host_os in
14385   freebsd2*)
14386     shlibpath_overrides_runpath=yes
14387     ;;
14388   freebsd3.01* | freebsdelf3.01*)
14389     shlibpath_overrides_runpath=yes
14390     hardcode_into_libs=yes
14391     ;;
14392   *) # from 3.2 on
14393     shlibpath_overrides_runpath=no
14394     hardcode_into_libs=yes
14395     ;;
14396   esac
14397   ;;
14398
14399 gnu*)
14400   version_type=linux
14401   need_lib_prefix=no
14402   need_version=no
14403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14404   soname_spec='${libname}${release}${shared_ext}$major'
14405   shlibpath_var=LD_LIBRARY_PATH
14406   hardcode_into_libs=yes
14407   ;;
14408
14409 hpux9* | hpux10* | hpux11*)
14410   # Give a soname corresponding to the major version so that dld.sl refuses to
14411   # link against other versions.
14412   version_type=sunos
14413   need_lib_prefix=no
14414   need_version=no
14415   case "$host_cpu" in
14416   ia64*)
14417     shrext='.so'
14418     hardcode_into_libs=yes
14419     dynamic_linker="$host_os dld.so"
14420     shlibpath_var=LD_LIBRARY_PATH
14421     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14422     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14423     soname_spec='${libname}${release}${shared_ext}$major'
14424     if test "X$HPUX_IA64_MODE" = X32; then
14425       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14426     else
14427       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14428     fi
14429     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14430     ;;
14431    hppa*64*)
14432      shrext='.sl'
14433      hardcode_into_libs=yes
14434      dynamic_linker="$host_os dld.sl"
14435      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14440      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14441      ;;
14442    *)
14443     shrext='.sl'
14444     dynamic_linker="$host_os dld.sl"
14445     shlibpath_var=SHLIB_PATH
14446     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14447     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14448     soname_spec='${libname}${release}${shared_ext}$major'
14449     ;;
14450   esac
14451   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14452   postinstall_cmds='chmod 555 $lib'
14453   ;;
14454
14455 irix5* | irix6* | nonstopux*)
14456   case $host_os in
14457     nonstopux*) version_type=nonstopux ;;
14458     *)
14459         if test "$lt_cv_prog_gnu_ld" = yes; then
14460                 version_type=linux
14461         else
14462                 version_type=irix
14463         fi ;;
14464   esac
14465   need_lib_prefix=no
14466   need_version=no
14467   soname_spec='${libname}${release}${shared_ext}$major'
14468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14469   case $host_os in
14470   irix5* | nonstopux*)
14471     libsuff= shlibsuff=
14472     ;;
14473   *)
14474     case $LD in # libtool.m4 will add one of these switches to LD
14475     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14476       libsuff= shlibsuff= libmagic=32-bit;;
14477     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14478       libsuff=32 shlibsuff=N32 libmagic=N32;;
14479     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14480       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14481     *) libsuff= shlibsuff= libmagic=never-match;;
14482     esac
14483     ;;
14484   esac
14485   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14486   shlibpath_overrides_runpath=no
14487   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14488   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14489   hardcode_into_libs=yes
14490   ;;
14491
14492 # No shared lib support for Linux oldld, aout, or coff.
14493 linux*oldld* | linux*aout* | linux*coff*)
14494   dynamic_linker=no
14495   ;;
14496
14497 # This must be Linux ELF.
14498 linux*)
14499   version_type=linux
14500   need_lib_prefix=no
14501   need_version=no
14502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14503   soname_spec='${libname}${release}${shared_ext}$major'
14504   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14505   shlibpath_var=LD_LIBRARY_PATH
14506   shlibpath_overrides_runpath=no
14507   # This implies no fast_install, which is unacceptable.
14508   # Some rework will be needed to allow for fast_install
14509   # before this can be enabled.
14510   hardcode_into_libs=yes
14511
14512   # We used to test for /lib/ld.so.1 and disable shared libraries on
14513   # powerpc, because MkLinux only supported shared libraries with the
14514   # GNU dynamic linker.  Since this was broken with cross compilers,
14515   # most powerpc-linux boxes support dynamic linking these days and
14516   # people can always --disable-shared, the test was removed, and we
14517   # assume the GNU/Linux dynamic linker is in use.
14518   dynamic_linker='GNU/Linux ld.so'
14519   ;;
14520
14521 netbsd*)
14522   version_type=sunos
14523   need_lib_prefix=no
14524   need_version=no
14525   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14526     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14527     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14528     dynamic_linker='NetBSD (a.out) ld.so'
14529   else
14530     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14531     soname_spec='${libname}${release}${shared_ext}$major'
14532     dynamic_linker='NetBSD ld.elf_so'
14533   fi
14534   shlibpath_var=LD_LIBRARY_PATH
14535   shlibpath_overrides_runpath=yes
14536   hardcode_into_libs=yes
14537   ;;
14538
14539 newsos6)
14540   version_type=linux
14541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14542   shlibpath_var=LD_LIBRARY_PATH
14543   shlibpath_overrides_runpath=yes
14544   ;;
14545
14546 nto-qnx)
14547   version_type=linux
14548   need_lib_prefix=no
14549   need_version=no
14550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14551   soname_spec='${libname}${release}${shared_ext}$major'
14552   shlibpath_var=LD_LIBRARY_PATH
14553   shlibpath_overrides_runpath=yes
14554   ;;
14555
14556 openbsd*)
14557   version_type=sunos
14558   need_lib_prefix=no
14559   need_version=no
14560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14561   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14562   shlibpath_var=LD_LIBRARY_PATH
14563   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14564     case $host_os in
14565       openbsd2.[89] | openbsd2.[89].*)
14566         shlibpath_overrides_runpath=no
14567         ;;
14568       *)
14569         shlibpath_overrides_runpath=yes
14570         ;;
14571       esac
14572   else
14573     shlibpath_overrides_runpath=yes
14574   fi
14575   ;;
14576
14577 os2*)
14578   libname_spec='$name'
14579   shrext=".dll"
14580   need_lib_prefix=no
14581   library_names_spec='$libname${shared_ext} $libname.a'
14582   dynamic_linker='OS/2 ld.exe'
14583   shlibpath_var=LIBPATH
14584   ;;
14585
14586 osf3* | osf4* | osf5*)
14587   version_type=osf
14588   need_lib_prefix=no
14589   need_version=no
14590   soname_spec='${libname}${release}${shared_ext}$major'
14591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14592   shlibpath_var=LD_LIBRARY_PATH
14593   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14594   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14595   ;;
14596
14597 sco3.2v5*)
14598   version_type=osf
14599   soname_spec='${libname}${release}${shared_ext}$major'
14600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14601   shlibpath_var=LD_LIBRARY_PATH
14602   ;;
14603
14604 solaris*)
14605   version_type=linux
14606   need_lib_prefix=no
14607   need_version=no
14608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14609   soname_spec='${libname}${release}${shared_ext}$major'
14610   shlibpath_var=LD_LIBRARY_PATH
14611   shlibpath_overrides_runpath=yes
14612   hardcode_into_libs=yes
14613   # ldd complains unless libraries are executable
14614   postinstall_cmds='chmod +x $lib'
14615   ;;
14616
14617 sunos4*)
14618   version_type=sunos
14619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14620   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14621   shlibpath_var=LD_LIBRARY_PATH
14622   shlibpath_overrides_runpath=yes
14623   if test "$with_gnu_ld" = yes; then
14624     need_lib_prefix=no
14625   fi
14626   need_version=yes
14627   ;;
14628
14629 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14630   version_type=linux
14631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14632   soname_spec='${libname}${release}${shared_ext}$major'
14633   shlibpath_var=LD_LIBRARY_PATH
14634   case $host_vendor in
14635     sni)
14636       shlibpath_overrides_runpath=no
14637       need_lib_prefix=no
14638       export_dynamic_flag_spec='${wl}-Blargedynsym'
14639       runpath_var=LD_RUN_PATH
14640       ;;
14641     siemens)
14642       need_lib_prefix=no
14643       ;;
14644     motorola)
14645       need_lib_prefix=no
14646       need_version=no
14647       shlibpath_overrides_runpath=no
14648       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14649       ;;
14650   esac
14651   ;;
14652
14653 sysv4*MP*)
14654   if test -d /usr/nec ;then
14655     version_type=linux
14656     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14657     soname_spec='$libname${shared_ext}.$major'
14658     shlibpath_var=LD_LIBRARY_PATH
14659   fi
14660   ;;
14661
14662 uts4*)
14663   version_type=linux
14664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14665   soname_spec='${libname}${release}${shared_ext}$major'
14666   shlibpath_var=LD_LIBRARY_PATH
14667   ;;
14668
14669 *)
14670   dynamic_linker=no
14671   ;;
14672 esac
14673 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14674 echo "${ECHO_T}$dynamic_linker" >&6
14675 test "$dynamic_linker" = no && can_build_shared=no
14676
14677
14678 # The else clause should only fire when bootstrapping the
14679 # libtool distribution, otherwise you forgot to ship ltmain.sh
14680 # with your package, and you will get complaints that there are
14681 # no rules to generate ltmain.sh.
14682 if test -f "$ltmain"; then
14683   # See if we are running on zsh, and set the options which allow our commands through
14684   # without removal of \ escapes.
14685   if test -n "${ZSH_VERSION+set}" ; then
14686     setopt NO_GLOB_SUBST
14687   fi
14688   # Now quote all the things that may contain metacharacters while being
14689   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14690   # variables and quote the copies for generation of the libtool script.
14691   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14692     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14693     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14694     deplibs_check_method reload_flag reload_cmds need_locks \
14695     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14696     lt_cv_sys_global_symbol_to_c_name_address \
14697     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14698     old_postinstall_cmds old_postuninstall_cmds \
14699     compiler_F77 \
14700     CC_F77 \
14701     LD_F77 \
14702     lt_prog_compiler_wl_F77 \
14703     lt_prog_compiler_pic_F77 \
14704     lt_prog_compiler_static_F77 \
14705     lt_prog_compiler_no_builtin_flag_F77 \
14706     export_dynamic_flag_spec_F77 \
14707     thread_safe_flag_spec_F77 \
14708     whole_archive_flag_spec_F77 \
14709     enable_shared_with_static_runtimes_F77 \
14710     old_archive_cmds_F77 \
14711     old_archive_from_new_cmds_F77 \
14712     predep_objects_F77 \
14713     postdep_objects_F77 \
14714     predeps_F77 \
14715     postdeps_F77 \
14716     compiler_lib_search_path_F77 \
14717     archive_cmds_F77 \
14718     archive_expsym_cmds_F77 \
14719     postinstall_cmds_F77 \
14720     postuninstall_cmds_F77 \
14721     old_archive_from_expsyms_cmds_F77 \
14722     allow_undefined_flag_F77 \
14723     no_undefined_flag_F77 \
14724     export_symbols_cmds_F77 \
14725     hardcode_libdir_flag_spec_F77 \
14726     hardcode_libdir_flag_spec_ld_F77 \
14727     hardcode_libdir_separator_F77 \
14728     hardcode_automatic_F77 \
14729     module_cmds_F77 \
14730     module_expsym_cmds_F77 \
14731     lt_cv_prog_compiler_c_o_F77 \
14732     exclude_expsyms_F77 \
14733     include_expsyms_F77; do
14734
14735     case $var in
14736     old_archive_cmds_F77 | \
14737     old_archive_from_new_cmds_F77 | \
14738     archive_cmds_F77 | \
14739     archive_expsym_cmds_F77 | \
14740     module_cmds_F77 | \
14741     module_expsym_cmds_F77 | \
14742     old_archive_from_expsyms_cmds_F77 | \
14743     export_symbols_cmds_F77 | \
14744     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14745     postinstall_cmds | postuninstall_cmds | \
14746     old_postinstall_cmds | old_postuninstall_cmds | \
14747     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14748       # Double-quote double-evaled strings.
14749       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14750       ;;
14751     *)
14752       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14753       ;;
14754     esac
14755   done
14756
14757   case $lt_echo in
14758   *'\$0 --fallback-echo"')
14759     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14760     ;;
14761   esac
14762
14763 cfgfile="$ofile"
14764
14765   cat <<__EOF__ >> "$cfgfile"
14766 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14767
14768 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14769
14770 # Shell to use when invoking shell scripts.
14771 SHELL=$lt_SHELL
14772
14773 # Whether or not to build shared libraries.
14774 build_libtool_libs=$enable_shared
14775
14776 # Whether or not to build static libraries.
14777 build_old_libs=$enable_static
14778
14779 # Whether or not to add -lc for building shared libraries.
14780 build_libtool_need_lc=$archive_cmds_need_lc_F77
14781
14782 # Whether or not to disallow shared libs when runtime libs are static
14783 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14784
14785 # Whether or not to optimize for fast installation.
14786 fast_install=$enable_fast_install
14787
14788 # The host system.
14789 host_alias=$host_alias
14790 host=$host
14791
14792 # An echo program that does not interpret backslashes.
14793 echo=$lt_echo
14794
14795 # The archiver.
14796 AR=$lt_AR
14797 AR_FLAGS=$lt_AR_FLAGS
14798
14799 # A C compiler.
14800 LTCC=$lt_LTCC
14801
14802 # A language-specific compiler.
14803 CC=$lt_compiler_F77
14804
14805 # Is the compiler the GNU C compiler?
14806 with_gcc=$GCC_F77
14807
14808 # An ERE matcher.
14809 EGREP=$lt_EGREP
14810
14811 # The linker used to build libraries.
14812 LD=$lt_LD_F77
14813
14814 # Whether we need hard or soft links.
14815 LN_S=$lt_LN_S
14816
14817 # A BSD-compatible nm program.
14818 NM=$lt_NM
14819
14820 # A symbol stripping program
14821 STRIP=$STRIP
14822
14823 # Used to examine libraries when file_magic_cmd begins "file"
14824 MAGIC_CMD=$MAGIC_CMD
14825
14826 # Used on cygwin: DLL creation program.
14827 DLLTOOL="$DLLTOOL"
14828
14829 # Used on cygwin: object dumper.
14830 OBJDUMP="$OBJDUMP"
14831
14832 # Used on cygwin: assembler.
14833 AS="$AS"
14834
14835 # The name of the directory that contains temporary libtool files.
14836 objdir=$objdir
14837
14838 # How to create reloadable object files.
14839 reload_flag=$lt_reload_flag
14840 reload_cmds=$lt_reload_cmds
14841
14842 # How to pass a linker flag through the compiler.
14843 wl=$lt_lt_prog_compiler_wl_F77
14844
14845 # Object file suffix (normally "o").
14846 objext="$ac_objext"
14847
14848 # Old archive suffix (normally "a").
14849 libext="$libext"
14850
14851 # Shared library suffix (normally ".so").
14852 shrext='$shrext'
14853
14854 # Executable file suffix (normally "").
14855 exeext="$exeext"
14856
14857 # Additional compiler flags for building library objects.
14858 pic_flag=$lt_lt_prog_compiler_pic_F77
14859 pic_mode=$pic_mode
14860
14861 # What is the maximum length of a command?
14862 max_cmd_len=$lt_cv_sys_max_cmd_len
14863
14864 # Does compiler simultaneously support -c and -o options?
14865 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14866
14867 # Must we lock files when doing compilation ?
14868 need_locks=$lt_need_locks
14869
14870 # Do we need the lib prefix for modules?
14871 need_lib_prefix=$need_lib_prefix
14872
14873 # Do we need a version for libraries?
14874 need_version=$need_version
14875
14876 # Whether dlopen is supported.
14877 dlopen_support=$enable_dlopen
14878
14879 # Whether dlopen of programs is supported.
14880 dlopen_self=$enable_dlopen_self
14881
14882 # Whether dlopen of statically linked programs is supported.
14883 dlopen_self_static=$enable_dlopen_self_static
14884
14885 # Compiler flag to prevent dynamic linking.
14886 link_static_flag=$lt_lt_prog_compiler_static_F77
14887
14888 # Compiler flag to turn off builtin functions.
14889 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14890
14891 # Compiler flag to allow reflexive dlopens.
14892 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14893
14894 # Compiler flag to generate shared objects directly from archives.
14895 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14896
14897 # Compiler flag to generate thread-safe objects.
14898 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14899
14900 # Library versioning type.
14901 version_type=$version_type
14902
14903 # Format of library name prefix.
14904 libname_spec=$lt_libname_spec
14905
14906 # List of archive names.  First name is the real one, the rest are links.
14907 # The last name is the one that the linker finds with -lNAME.
14908 library_names_spec=$lt_library_names_spec
14909
14910 # The coded name of the library, if different from the real name.
14911 soname_spec=$lt_soname_spec
14912
14913 # Commands used to build and install an old-style archive.
14914 RANLIB=$lt_RANLIB
14915 old_archive_cmds=$lt_old_archive_cmds_F77
14916 old_postinstall_cmds=$lt_old_postinstall_cmds
14917 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14918
14919 # Create an old-style archive from a shared archive.
14920 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14921
14922 # Create a temporary old-style archive to link instead of a shared archive.
14923 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14924
14925 # Commands used to build and install a shared archive.
14926 archive_cmds=$lt_archive_cmds_F77
14927 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14928 postinstall_cmds=$lt_postinstall_cmds
14929 postuninstall_cmds=$lt_postuninstall_cmds
14930
14931 # Commands used to build a loadable module (assumed same as above if empty)
14932 module_cmds=$lt_module_cmds_F77
14933 module_expsym_cmds=$lt_module_expsym_cmds_F77
14934
14935 # Commands to strip libraries.
14936 old_striplib=$lt_old_striplib
14937 striplib=$lt_striplib
14938
14939 # Dependencies to place before the objects being linked to create a
14940 # shared library.
14941 predep_objects=$lt_predep_objects_F77
14942
14943 # Dependencies to place after the objects being linked to create a
14944 # shared library.
14945 postdep_objects=$lt_postdep_objects_F77
14946
14947 # Dependencies to place before the objects being linked to create a
14948 # shared library.
14949 predeps=$lt_predeps_F77
14950
14951 # Dependencies to place after the objects being linked to create a
14952 # shared library.
14953 postdeps=$lt_postdeps_F77
14954
14955 # The library search path used internally by the compiler when linking
14956 # a shared library.
14957 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14958
14959 # Method to check whether dependent libraries are shared objects.
14960 deplibs_check_method=$lt_deplibs_check_method
14961
14962 # Command to use when deplibs_check_method == file_magic.
14963 file_magic_cmd=$lt_file_magic_cmd
14964
14965 # Flag that allows shared libraries with undefined symbols to be built.
14966 allow_undefined_flag=$lt_allow_undefined_flag_F77
14967
14968 # Flag that forces no undefined symbols.
14969 no_undefined_flag=$lt_no_undefined_flag_F77
14970
14971 # Commands used to finish a libtool library installation in a directory.
14972 finish_cmds=$lt_finish_cmds
14973
14974 # Same as above, but a single script fragment to be evaled but not shown.
14975 finish_eval=$lt_finish_eval
14976
14977 # Take the output of nm and produce a listing of raw symbols and C names.
14978 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14979
14980 # Transform the output of nm in a proper C declaration
14981 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14982
14983 # Transform the output of nm in a C name address pair
14984 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14985
14986 # This is the shared library runtime path variable.
14987 runpath_var=$runpath_var
14988
14989 # This is the shared library path variable.
14990 shlibpath_var=$shlibpath_var
14991
14992 # Is shlibpath searched before the hard-coded library search path?
14993 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14994
14995 # How to hardcode a shared library path into an executable.
14996 hardcode_action=$hardcode_action_F77
14997
14998 # Whether we should hardcode library paths into libraries.
14999 hardcode_into_libs=$hardcode_into_libs
15000
15001 # Flag to hardcode \$libdir into a binary during linking.
15002 # This must work even if \$libdir does not exist.
15003 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15004
15005 # If ld is used when linking, flag to hardcode \$libdir into
15006 # a binary during linking. This must work even if \$libdir does
15007 # not exist.
15008 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15009
15010 # Whether we need a single -rpath flag with a separated argument.
15011 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15012
15013 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15014 # resulting binary.
15015 hardcode_direct=$hardcode_direct_F77
15016
15017 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15018 # resulting binary.
15019 hardcode_minus_L=$hardcode_minus_L_F77
15020
15021 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15022 # the resulting binary.
15023 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15024
15025 # Set to yes if building a shared library automatically hardcodes DIR into the library
15026 # and all subsequent libraries and executables linked against it.
15027 hardcode_automatic=$hardcode_automatic_F77
15028
15029 # Variables whose values should be saved in libtool wrapper scripts and
15030 # restored at relink time.
15031 variables_saved_for_relink="$variables_saved_for_relink"
15032
15033 # Whether libtool must link a program against all its dependency libraries.
15034 link_all_deplibs=$link_all_deplibs_F77
15035
15036 # Compile-time system search path for libraries
15037 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15038
15039 # Run-time system search path for libraries
15040 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15041
15042 # Fix the shell variable \$srcfile for the compiler.
15043 fix_srcfile_path="$fix_srcfile_path_F77"
15044
15045 # Set to yes if exported symbols are required.
15046 always_export_symbols=$always_export_symbols_F77
15047
15048 # The commands to list exported symbols.
15049 export_symbols_cmds=$lt_export_symbols_cmds_F77
15050
15051 # The commands to extract the exported symbol list from a shared archive.
15052 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15053
15054 # Symbols that should not be listed in the preloaded symbols.
15055 exclude_expsyms=$lt_exclude_expsyms_F77
15056
15057 # Symbols that must always be exported.
15058 include_expsyms=$lt_include_expsyms_F77
15059
15060 # ### END LIBTOOL TAG CONFIG: $tagname
15061
15062 __EOF__
15063
15064
15065 else
15066   # If there is no Makefile yet, we rely on a make rule to execute
15067   # `config.status --recheck' to rerun these tests and create the
15068   # libtool script then.
15069   test -f Makefile && make "$ltmain"
15070 fi
15071
15072
15073 ac_ext=c
15074 ac_cpp='$CPP $CPPFLAGS'
15075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15078
15079 CC="$lt_save_CC"
15080
15081         else
15082           tagname=""
15083         fi
15084         ;;
15085
15086       GCJ)
15087         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15088
15089
15090
15091 # Source file extension for Java test sources.
15092 ac_ext=java
15093
15094 # Object file extension for compiled Java test sources.
15095 objext=o
15096 objext_GCJ=$objext
15097
15098 # Code to be used in simple compile tests
15099 lt_simple_compile_test_code="class foo {}\n"
15100
15101 # Code to be used in simple link tests
15102 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15103
15104 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15105
15106 # If no C compiler was specified, use CC.
15107 LTCC=${LTCC-"$CC"}
15108
15109 # Allow CC to be a program name with arguments.
15110 compiler=$CC
15111
15112
15113 # Allow CC to be a program name with arguments.
15114 lt_save_CC="$CC"
15115 CC=${GCJ-"gcj"}
15116 compiler=$CC
15117 compiler_GCJ=$CC
15118
15119 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15120 archive_cmds_need_lc_GCJ=no
15121
15122 ## CAVEAT EMPTOR:
15123 ## There is no encapsulation within the following macros, do not change
15124 ## the running order or otherwise move them around unless you know exactly
15125 ## what you are doing...
15126
15127 lt_prog_compiler_no_builtin_flag_GCJ=
15128
15129 if test "$GCC" = yes; then
15130   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15131
15132   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15133 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15134 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15135   echo $ECHO_N "(cached) $ECHO_C" >&6
15136 else
15137   lt_cv_prog_compiler_rtti_exceptions=no
15138   ac_outfile=conftest.$ac_objext
15139    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15140    lt_compiler_flag="-fno-rtti -fno-exceptions"
15141    # Insert the option either (1) after the last *FLAGS variable, or
15142    # (2) before a word containing "conftest.", or (3) at the end.
15143    # Note that $ac_compile itself does not contain backslashes and begins
15144    # with a dollar sign (not a hyphen), so the echo should work correctly.
15145    # The option is referenced via a variable to avoid confusing sed.
15146    lt_compile=`echo "$ac_compile" | $SED \
15147    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15148    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15149    -e 's:$: $lt_compiler_flag:'`
15150    (eval echo "\"\$as_me:15150: $lt_compile\"" >&5)
15151    (eval "$lt_compile" 2>conftest.err)
15152    ac_status=$?
15153    cat conftest.err >&5
15154    echo "$as_me:15154: \$? = $ac_status" >&5
15155    if (exit $ac_status) && test -s "$ac_outfile"; then
15156      # The compiler can only warn and ignore the option if not recognized
15157      # So say no if there are warnings
15158      if test ! -s conftest.err; then
15159        lt_cv_prog_compiler_rtti_exceptions=yes
15160      fi
15161    fi
15162    $rm conftest*
15163
15164 fi
15165 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15166 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15167
15168 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15169     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15170 else
15171     :
15172 fi
15173
15174 fi
15175
15176 lt_prog_compiler_wl_GCJ=
15177 lt_prog_compiler_pic_GCJ=
15178 lt_prog_compiler_static_GCJ=
15179
15180 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15181 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15182
15183   if test "$GCC" = yes; then
15184     lt_prog_compiler_wl_GCJ='-Wl,'
15185     lt_prog_compiler_static_GCJ='-static'
15186
15187     case $host_os in
15188       aix*)
15189       # All AIX code is PIC.
15190       if test "$host_cpu" = ia64; then
15191         # AIX 5 now supports IA64 processor
15192         lt_prog_compiler_static_GCJ='-Bstatic'
15193       fi
15194       ;;
15195
15196     amigaos*)
15197       # FIXME: we need at least 68020 code to build shared libraries, but
15198       # adding the `-m68020' flag to GCC prevents building anything better,
15199       # like `-m68040'.
15200       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15201       ;;
15202
15203     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15204       # PIC is the default for these OSes.
15205       ;;
15206
15207     mingw* | pw32* | os2*)
15208       # This hack is so that the source file can tell whether it is being
15209       # built for inclusion in a dll (and should export symbols for example).
15210       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15211       ;;
15212
15213     darwin* | rhapsody*)
15214       # PIC is the default on this platform
15215       # Common symbols not allowed in MH_DYLIB files
15216       lt_prog_compiler_pic_GCJ='-fno-common'
15217       ;;
15218
15219     msdosdjgpp*)
15220       # Just because we use GCC doesn't mean we suddenly get shared libraries
15221       # on systems that don't support them.
15222       lt_prog_compiler_can_build_shared_GCJ=no
15223       enable_shared=no
15224       ;;
15225
15226     sysv4*MP*)
15227       if test -d /usr/nec; then
15228         lt_prog_compiler_pic_GCJ=-Kconform_pic
15229       fi
15230       ;;
15231
15232     hpux*)
15233       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15234       # not for PA HP-UX.
15235       case "$host_cpu" in
15236       hppa*64*|ia64*)
15237         # +Z the default
15238         ;;
15239       *)
15240         lt_prog_compiler_pic_GCJ='-fPIC'
15241         ;;
15242       esac
15243       ;;
15244
15245     *)
15246       lt_prog_compiler_pic_GCJ='-fPIC'
15247       ;;
15248     esac
15249   else
15250     # PORTME Check for flag to pass linker flags through the system compiler.
15251     case $host_os in
15252     aix*)
15253       lt_prog_compiler_wl_GCJ='-Wl,'
15254       if test "$host_cpu" = ia64; then
15255         # AIX 5 now supports IA64 processor
15256         lt_prog_compiler_static_GCJ='-Bstatic'
15257       else
15258         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15259       fi
15260       ;;
15261
15262     mingw* | pw32* | os2*)
15263       # This hack is so that the source file can tell whether it is being
15264       # built for inclusion in a dll (and should export symbols for example).
15265       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15266       ;;
15267
15268     hpux9* | hpux10* | hpux11*)
15269       lt_prog_compiler_wl_GCJ='-Wl,'
15270       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15271       # not for PA HP-UX.
15272       case "$host_cpu" in
15273       hppa*64*|ia64*)
15274         # +Z the default
15275         ;;
15276       *)
15277         lt_prog_compiler_pic_GCJ='+Z'
15278         ;;
15279       esac
15280       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15281       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15282       ;;
15283
15284     irix5* | irix6* | nonstopux*)
15285       lt_prog_compiler_wl_GCJ='-Wl,'
15286       # PIC (with -KPIC) is the default.
15287       lt_prog_compiler_static_GCJ='-non_shared'
15288       ;;
15289
15290     newsos6)
15291       lt_prog_compiler_pic_GCJ='-KPIC'
15292       lt_prog_compiler_static_GCJ='-Bstatic'
15293       ;;
15294
15295     linux*)
15296       case $CC in
15297       icc|ecc)
15298         lt_prog_compiler_wl_GCJ='-Wl,'
15299         lt_prog_compiler_pic_GCJ='-KPIC'
15300         lt_prog_compiler_static_GCJ='-static'
15301         ;;
15302       ccc)
15303         lt_prog_compiler_wl_GCJ='-Wl,'
15304         # All Alpha code is PIC.
15305         lt_prog_compiler_static_GCJ='-non_shared'
15306         ;;
15307       esac
15308       ;;
15309
15310     osf3* | osf4* | osf5*)
15311       lt_prog_compiler_wl_GCJ='-Wl,'
15312       # All OSF/1 code is PIC.
15313       lt_prog_compiler_static_GCJ='-non_shared'
15314       ;;
15315
15316     sco3.2v5*)
15317       lt_prog_compiler_pic_GCJ='-Kpic'
15318       lt_prog_compiler_static_GCJ='-dn'
15319       ;;
15320
15321     solaris*)
15322       lt_prog_compiler_wl_GCJ='-Wl,'
15323       lt_prog_compiler_pic_GCJ='-KPIC'
15324       lt_prog_compiler_static_GCJ='-Bstatic'
15325       ;;
15326
15327     sunos4*)
15328       lt_prog_compiler_wl_GCJ='-Qoption ld '
15329       lt_prog_compiler_pic_GCJ='-PIC'
15330       lt_prog_compiler_static_GCJ='-Bstatic'
15331       ;;
15332
15333     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15334       lt_prog_compiler_wl_GCJ='-Wl,'
15335       lt_prog_compiler_pic_GCJ='-KPIC'
15336       lt_prog_compiler_static_GCJ='-Bstatic'
15337       ;;
15338
15339     sysv4*MP*)
15340       if test -d /usr/nec ;then
15341         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15342         lt_prog_compiler_static_GCJ='-Bstatic'
15343       fi
15344       ;;
15345
15346     uts4*)
15347       lt_prog_compiler_pic_GCJ='-pic'
15348       lt_prog_compiler_static_GCJ='-Bstatic'
15349       ;;
15350
15351     *)
15352       lt_prog_compiler_can_build_shared_GCJ=no
15353       ;;
15354     esac
15355   fi
15356
15357 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15358 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15359
15360 #
15361 # Check to make sure the PIC flag actually works.
15362 #
15363 if test -n "$lt_prog_compiler_pic_GCJ"; then
15364   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15365 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15366 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15367   echo $ECHO_N "(cached) $ECHO_C" >&6
15368 else
15369   lt_prog_compiler_pic_works_GCJ=no
15370   ac_outfile=conftest.$ac_objext
15371    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15372    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15373    # Insert the option either (1) after the last *FLAGS variable, or
15374    # (2) before a word containing "conftest.", or (3) at the end.
15375    # Note that $ac_compile itself does not contain backslashes and begins
15376    # with a dollar sign (not a hyphen), so the echo should work correctly.
15377    # The option is referenced via a variable to avoid confusing sed.
15378    lt_compile=`echo "$ac_compile" | $SED \
15379    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15380    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15381    -e 's:$: $lt_compiler_flag:'`
15382    (eval echo "\"\$as_me:15382: $lt_compile\"" >&5)
15383    (eval "$lt_compile" 2>conftest.err)
15384    ac_status=$?
15385    cat conftest.err >&5
15386    echo "$as_me:15386: \$? = $ac_status" >&5
15387    if (exit $ac_status) && test -s "$ac_outfile"; then
15388      # The compiler can only warn and ignore the option if not recognized
15389      # So say no if there are warnings
15390      if test ! -s conftest.err; then
15391        lt_prog_compiler_pic_works_GCJ=yes
15392      fi
15393    fi
15394    $rm conftest*
15395
15396 fi
15397 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15398 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15399
15400 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15401     case $lt_prog_compiler_pic_GCJ in
15402      "" | " "*) ;;
15403      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15404      esac
15405 else
15406     lt_prog_compiler_pic_GCJ=
15407      lt_prog_compiler_can_build_shared_GCJ=no
15408 fi
15409
15410 fi
15411 case "$host_os" in
15412   # For platforms which do not support PIC, -DPIC is meaningless:
15413   *djgpp*)
15414     lt_prog_compiler_pic_GCJ=
15415     ;;
15416   *)
15417     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15418     ;;
15419 esac
15420
15421 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15422 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15423 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15424   echo $ECHO_N "(cached) $ECHO_C" >&6
15425 else
15426   lt_cv_prog_compiler_c_o_GCJ=no
15427    $rm -r conftest 2>/dev/null
15428    mkdir conftest
15429    cd conftest
15430    mkdir out
15431    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15432
15433    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15434    # that will create temporary files in the current directory regardless of
15435    # the output directory.  Thus, making CWD read-only will cause this test
15436    # to fail, enabling locking or at least warning the user not to do parallel
15437    # builds.
15438    chmod -w .
15439
15440    lt_compiler_flag="-o out/conftest2.$ac_objext"
15441    # Insert the option either (1) after the last *FLAGS variable, or
15442    # (2) before a word containing "conftest.", or (3) at the end.
15443    # Note that $ac_compile itself does not contain backslashes and begins
15444    # with a dollar sign (not a hyphen), so the echo should work correctly.
15445    lt_compile=`echo "$ac_compile" | $SED \
15446    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15447    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15448    -e 's:$: $lt_compiler_flag:'`
15449    (eval echo "\"\$as_me:15449: $lt_compile\"" >&5)
15450    (eval "$lt_compile" 2>out/conftest.err)
15451    ac_status=$?
15452    cat out/conftest.err >&5
15453    echo "$as_me:15453: \$? = $ac_status" >&5
15454    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15455    then
15456      # The compiler can only warn and ignore the option if not recognized
15457      # So say no if there are warnings
15458      if test ! -s out/conftest.err; then
15459        lt_cv_prog_compiler_c_o_GCJ=yes
15460      fi
15461    fi
15462    chmod u+w .
15463    $rm conftest* out/*
15464    rmdir out
15465    cd ..
15466    rmdir conftest
15467    $rm conftest*
15468
15469 fi
15470 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15471 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15472
15473
15474 hard_links="nottested"
15475 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15476   # do not overwrite the value of need_locks provided by the user
15477   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15478 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15479   hard_links=yes
15480   $rm conftest*
15481   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15482   touch conftest.a
15483   ln conftest.a conftest.b 2>&5 || hard_links=no
15484   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15485   echo "$as_me:$LINENO: result: $hard_links" >&5
15486 echo "${ECHO_T}$hard_links" >&6
15487   if test "$hard_links" = no; then
15488     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15489 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15490     need_locks=warn
15491   fi
15492 else
15493   need_locks=no
15494 fi
15495
15496 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15497 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15498
15499   runpath_var=
15500   allow_undefined_flag_GCJ=
15501   enable_shared_with_static_runtimes_GCJ=no
15502   archive_cmds_GCJ=
15503   archive_expsym_cmds_GCJ=
15504   old_archive_From_new_cmds_GCJ=
15505   old_archive_from_expsyms_cmds_GCJ=
15506   export_dynamic_flag_spec_GCJ=
15507   whole_archive_flag_spec_GCJ=
15508   thread_safe_flag_spec_GCJ=
15509   hardcode_libdir_flag_spec_GCJ=
15510   hardcode_libdir_flag_spec_ld_GCJ=
15511   hardcode_libdir_separator_GCJ=
15512   hardcode_direct_GCJ=no
15513   hardcode_minus_L_GCJ=no
15514   hardcode_shlibpath_var_GCJ=unsupported
15515   link_all_deplibs_GCJ=unknown
15516   hardcode_automatic_GCJ=no
15517   module_cmds_GCJ=
15518   module_expsym_cmds_GCJ=
15519   always_export_symbols_GCJ=no
15520   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15521   # include_expsyms should be a list of space-separated symbols to be *always*
15522   # included in the symbol list
15523   include_expsyms_GCJ=
15524   # exclude_expsyms can be an extended regexp of symbols to exclude
15525   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15526   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15527   # as well as any symbol that contains `d'.
15528   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15529   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15530   # platforms (ab)use it in PIC code, but their linkers get confused if
15531   # the symbol is explicitly referenced.  Since portable code cannot
15532   # rely on this symbol name, it's probably fine to never include it in
15533   # preloaded symbol tables.
15534   extract_expsyms_cmds=
15535
15536   case $host_os in
15537   cygwin* | mingw* | pw32*)
15538     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15539     # When not using gcc, we currently assume that we are using
15540     # Microsoft Visual C++.
15541     if test "$GCC" != yes; then
15542       with_gnu_ld=no
15543     fi
15544     ;;
15545   openbsd*)
15546     with_gnu_ld=no
15547     ;;
15548   esac
15549
15550   ld_shlibs_GCJ=yes
15551   if test "$with_gnu_ld" = yes; then
15552     # If archive_cmds runs LD, not CC, wlarc should be empty
15553     wlarc='${wl}'
15554
15555     # See if GNU ld supports shared libraries.
15556     case $host_os in
15557     aix3* | aix4* | aix5*)
15558       # On AIX/PPC, the GNU linker is very broken
15559       if test "$host_cpu" != ia64; then
15560         ld_shlibs_GCJ=no
15561         cat <<EOF 1>&2
15562
15563 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15564 *** to be unable to reliably create shared libraries on AIX.
15565 *** Therefore, libtool is disabling shared libraries support.  If you
15566 *** really care for shared libraries, you may want to modify your PATH
15567 *** so that a non-GNU linker is found, and then restart.
15568
15569 EOF
15570       fi
15571       ;;
15572
15573     amigaos*)
15574       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)'
15575       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15576       hardcode_minus_L_GCJ=yes
15577
15578       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15579       # that the semantics of dynamic libraries on AmigaOS, at least up
15580       # to version 4, is to share data among multiple programs linked
15581       # with the same dynamic library.  Since this doesn't match the
15582       # behavior of shared libraries on other platforms, we can't use
15583       # them.
15584       ld_shlibs_GCJ=no
15585       ;;
15586
15587     beos*)
15588       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15589         allow_undefined_flag_GCJ=unsupported
15590         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15591         # support --undefined.  This deserves some investigation.  FIXME
15592         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15593       else
15594         ld_shlibs_GCJ=no
15595       fi
15596       ;;
15597
15598     cygwin* | mingw* | pw32*)
15599       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15600       # as there is no search path for DLLs.
15601       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15602       allow_undefined_flag_GCJ=unsupported
15603       always_export_symbols_GCJ=no
15604       enable_shared_with_static_runtimes_GCJ=yes
15605       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15606
15607       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15608         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15609         # If the export-symbols file already is a .def file (1st line
15610         # is EXPORTS), use it as is; otherwise, prepend...
15611         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15612           cp $export_symbols $output_objdir/$soname.def;
15613         else
15614           echo EXPORTS > $output_objdir/$soname.def;
15615           cat $export_symbols >> $output_objdir/$soname.def;
15616         fi~
15617         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15618       else
15619         ld_shlibs=no
15620       fi
15621       ;;
15622
15623     netbsd*)
15624       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15625         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15626         wlarc=
15627       else
15628         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15629         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15630       fi
15631       ;;
15632
15633     solaris* | sysv5*)
15634       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15635         ld_shlibs_GCJ=no
15636         cat <<EOF 1>&2
15637
15638 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15639 *** create shared libraries on Solaris systems.  Therefore, libtool
15640 *** is disabling shared libraries support.  We urge you to upgrade GNU
15641 *** binutils to release 2.9.1 or newer.  Another option is to modify
15642 *** your PATH or compiler configuration so that the native linker is
15643 *** used, and then restart.
15644
15645 EOF
15646       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15647         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15648         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15649       else
15650         ld_shlibs_GCJ=no
15651       fi
15652       ;;
15653
15654     sunos4*)
15655       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15656       wlarc=
15657       hardcode_direct_GCJ=yes
15658       hardcode_shlibpath_var_GCJ=no
15659       ;;
15660
15661     *)
15662       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15663         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15664         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15665       else
15666         ld_shlibs_GCJ=no
15667       fi
15668       ;;
15669     esac
15670
15671     if test "$ld_shlibs_GCJ" = yes; then
15672       runpath_var=LD_RUN_PATH
15673       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15674       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15675       # ancient GNU ld didn't support --whole-archive et. al.
15676       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15677         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15678       else
15679         whole_archive_flag_spec_GCJ=
15680       fi
15681     fi
15682   else
15683     # PORTME fill in a description of your system's linker (not GNU ld)
15684     case $host_os in
15685     aix3*)
15686       allow_undefined_flag_GCJ=unsupported
15687       always_export_symbols_GCJ=yes
15688       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'
15689       # Note: this linker hardcodes the directories in LIBPATH if there
15690       # are no directories specified by -L.
15691       hardcode_minus_L_GCJ=yes
15692       if test "$GCC" = yes && test -z "$link_static_flag"; then
15693         # Neither direct hardcoding nor static linking is supported with a
15694         # broken collect2.
15695         hardcode_direct_GCJ=unsupported
15696       fi
15697       ;;
15698
15699     aix4* | aix5*)
15700       if test "$host_cpu" = ia64; then
15701         # On IA64, the linker does run time linking by default, so we don't
15702         # have to do anything special.
15703         aix_use_runtimelinking=no
15704         exp_sym_flag='-Bexport'
15705         no_entry_flag=""
15706       else
15707         # If we're using GNU nm, then we don't want the "-C" option.
15708         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15709         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15710           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'
15711         else
15712           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'
15713         fi
15714         aix_use_runtimelinking=no
15715
15716         # Test if we are trying to use run time linking or normal
15717         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15718         # need to do runtime linking.
15719         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15720           for ld_flag in $LDFLAGS; do
15721           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15722             aix_use_runtimelinking=yes
15723             break
15724           fi
15725           done
15726         esac
15727
15728         exp_sym_flag='-bexport'
15729         no_entry_flag='-bnoentry'
15730       fi
15731
15732       # When large executables or shared objects are built, AIX ld can
15733       # have problems creating the table of contents.  If linking a library
15734       # or program results in "error TOC overflow" add -mminimal-toc to
15735       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15736       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15737
15738       archive_cmds_GCJ=''
15739       hardcode_direct_GCJ=yes
15740       hardcode_libdir_separator_GCJ=':'
15741       link_all_deplibs_GCJ=yes
15742
15743       if test "$GCC" = yes; then
15744         case $host_os in aix4.012|aix4.012.*)
15745         # We only want to do this on AIX 4.2 and lower, the check
15746         # below for broken collect2 doesn't work under 4.3+
15747           collect2name=`${CC} -print-prog-name=collect2`
15748           if test -f "$collect2name" && \
15749            strings "$collect2name" | grep resolve_lib_name >/dev/null
15750           then
15751           # We have reworked collect2
15752           hardcode_direct_GCJ=yes
15753           else
15754           # We have old collect2
15755           hardcode_direct_GCJ=unsupported
15756           # It fails to find uninstalled libraries when the uninstalled
15757           # path is not listed in the libpath.  Setting hardcode_minus_L
15758           # to unsupported forces relinking
15759           hardcode_minus_L_GCJ=yes
15760           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15761           hardcode_libdir_separator_GCJ=
15762           fi
15763         esac
15764         shared_flag='-shared'
15765       else
15766         # not using gcc
15767         if test "$host_cpu" = ia64; then
15768         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15769         # chokes on -Wl,-G. The following line is correct:
15770           shared_flag='-G'
15771         else
15772         if test "$aix_use_runtimelinking" = yes; then
15773             shared_flag='${wl}-G'
15774           else
15775             shared_flag='${wl}-bM:SRE'
15776         fi
15777         fi
15778       fi
15779
15780       # It seems that -bexpall does not export symbols beginning with
15781       # underscore (_), so it is better to generate a list of symbols to export.
15782       always_export_symbols_GCJ=yes
15783       if test "$aix_use_runtimelinking" = yes; then
15784         # Warning - without using the other runtime loading flags (-brtl),
15785         # -berok will link without error, but may produce a broken library.
15786         allow_undefined_flag_GCJ='-berok'
15787        # Determine the default libpath from the value encoded in an empty executable.
15788        cat >conftest.$ac_ext <<_ACEOF
15789 /* confdefs.h.  */
15790 _ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h.  */
15794
15795 int
15796 main ()
15797 {
15798
15799   ;
15800   return 0;
15801 }
15802 _ACEOF
15803 rm -f conftest.$ac_objext conftest$ac_exeext
15804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15805   (eval $ac_link) 2>conftest.er1
15806   ac_status=$?
15807   grep -v '^ *+' conftest.er1 >conftest.err
15808   rm -f conftest.er1
15809   cat conftest.err >&5
15810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811   (exit $ac_status); } &&
15812          { ac_try='test -z "$ac_c_werror_flag"
15813                          || test ! -s conftest.err'
15814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15815   (eval $ac_try) 2>&5
15816   ac_status=$?
15817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818   (exit $ac_status); }; } &&
15819          { ac_try='test -s conftest$ac_exeext'
15820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821   (eval $ac_try) 2>&5
15822   ac_status=$?
15823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824   (exit $ac_status); }; }; then
15825
15826 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15827 }'`
15828 # Check for a 64-bit object if we didn't find anything.
15829 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; }
15830 }'`; fi
15831 else
15832   echo "$as_me: failed program was:" >&5
15833 sed 's/^/| /' conftest.$ac_ext >&5
15834
15835 fi
15836 rm -f conftest.err conftest.$ac_objext \
15837       conftest$ac_exeext conftest.$ac_ext
15838 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15839
15840        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15841         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"
15842        else
15843         if test "$host_cpu" = ia64; then
15844           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15845           allow_undefined_flag_GCJ="-z nodefs"
15846           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"
15847         else
15848          # Determine the default libpath from the value encoded in an empty executable.
15849          cat >conftest.$ac_ext <<_ACEOF
15850 /* confdefs.h.  */
15851 _ACEOF
15852 cat confdefs.h >>conftest.$ac_ext
15853 cat >>conftest.$ac_ext <<_ACEOF
15854 /* end confdefs.h.  */
15855
15856 int
15857 main ()
15858 {
15859
15860   ;
15861   return 0;
15862 }
15863 _ACEOF
15864 rm -f conftest.$ac_objext conftest$ac_exeext
15865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15866   (eval $ac_link) 2>conftest.er1
15867   ac_status=$?
15868   grep -v '^ *+' conftest.er1 >conftest.err
15869   rm -f conftest.er1
15870   cat conftest.err >&5
15871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872   (exit $ac_status); } &&
15873          { ac_try='test -z "$ac_c_werror_flag"
15874                          || test ! -s conftest.err'
15875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876   (eval $ac_try) 2>&5
15877   ac_status=$?
15878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879   (exit $ac_status); }; } &&
15880          { ac_try='test -s conftest$ac_exeext'
15881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15882   (eval $ac_try) 2>&5
15883   ac_status=$?
15884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885   (exit $ac_status); }; }; then
15886
15887 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15888 }'`
15889 # Check for a 64-bit object if we didn't find anything.
15890 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; }
15891 }'`; fi
15892 else
15893   echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15895
15896 fi
15897 rm -f conftest.err conftest.$ac_objext \
15898       conftest$ac_exeext conftest.$ac_ext
15899 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15900
15901          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15902           # Warning - without using the other run time loading flags,
15903           # -berok will link without error, but may produce a broken library.
15904           no_undefined_flag_GCJ=' ${wl}-bernotok'
15905           allow_undefined_flag_GCJ=' ${wl}-berok'
15906           # -bexpall does not export symbols beginning with underscore (_)
15907           always_export_symbols_GCJ=yes
15908           # Exported symbols can be pulled into shared objects from archives
15909           whole_archive_flag_spec_GCJ=' '
15910           archive_cmds_need_lc_GCJ=yes
15911           # This is similar to how AIX traditionally builds it's shared libraries.
15912           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'
15913         fi
15914       fi
15915       ;;
15916
15917     amigaos*)
15918       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)'
15919       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15920       hardcode_minus_L_GCJ=yes
15921       # see comment about different semantics on the GNU ld section
15922       ld_shlibs_GCJ=no
15923       ;;
15924
15925     bsdi4*)
15926       export_dynamic_flag_spec_GCJ=-rdynamic
15927       ;;
15928
15929     cygwin* | mingw* | pw32*)
15930       # When not using gcc, we currently assume that we are using
15931       # Microsoft Visual C++.
15932       # hardcode_libdir_flag_spec is actually meaningless, as there is
15933       # no search path for DLLs.
15934       hardcode_libdir_flag_spec_GCJ=' '
15935       allow_undefined_flag_GCJ=unsupported
15936       # Tell ltmain to make .lib files, not .a files.
15937       libext=lib
15938       # Tell ltmain to make .dll files, not .so files.
15939       shrext=".dll"
15940       # FIXME: Setting linknames here is a bad hack.
15941       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15942       # The linker will automatically build a .lib file if we build a DLL.
15943       old_archive_From_new_cmds_GCJ='true'
15944       # FIXME: Should let the user specify the lib program.
15945       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15946       fix_srcfile_path='`cygpath -w "$srcfile"`'
15947       enable_shared_with_static_runtimes_GCJ=yes
15948       ;;
15949
15950     darwin* | rhapsody*)
15951     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15952       archive_cmds_need_lc_GCJ=no
15953       case "$host_os" in
15954       rhapsody* | darwin1.[012])
15955         allow_undefined_flag_GCJ='-undefined suppress'
15956         ;;
15957       *) # Darwin 1.3 on
15958         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15959         ;;
15960       esac
15961       # FIXME: Relying on posixy $() will cause problems for
15962       #        cross-compilation, but unfortunately the echo tests do not
15963       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15964       #        `"' quotes if we put them in here... so don't!
15965         lt_int_apple_cc_single_mod=no
15966         output_verbose_link_cmd='echo'
15967         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15968           lt_int_apple_cc_single_mod=yes
15969         fi
15970         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15971           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15972         else
15973         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'
15974       fi
15975       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15976       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15977         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15978           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}'
15979         else
15980           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}'
15981         fi
15982           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}'
15983       hardcode_direct_GCJ=no
15984       hardcode_automatic_GCJ=yes
15985       hardcode_shlibpath_var_GCJ=unsupported
15986       whole_archive_flag_spec_GCJ='-all_load $convenience'
15987       link_all_deplibs_GCJ=yes
15988     fi
15989       ;;
15990
15991     dgux*)
15992       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15993       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15994       hardcode_shlibpath_var_GCJ=no
15995       ;;
15996
15997     freebsd1*)
15998       ld_shlibs_GCJ=no
15999       ;;
16000
16001     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16002     # support.  Future versions do this automatically, but an explicit c++rt0.o
16003     # does not break anything, and helps significantly (at the cost of a little
16004     # extra space).
16005     freebsd2.2*)
16006       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16007       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16008       hardcode_direct_GCJ=yes
16009       hardcode_shlibpath_var_GCJ=no
16010       ;;
16011
16012     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16013     freebsd2*)
16014       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16015       hardcode_direct_GCJ=yes
16016       hardcode_minus_L_GCJ=yes
16017       hardcode_shlibpath_var_GCJ=no
16018       ;;
16019
16020     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16021     freebsd*)
16022       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16023       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16024       hardcode_direct_GCJ=yes
16025       hardcode_shlibpath_var_GCJ=no
16026       ;;
16027
16028     hpux9*)
16029       if test "$GCC" = yes; then
16030         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'
16031       else
16032         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'
16033       fi
16034       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16035       hardcode_libdir_separator_GCJ=:
16036       hardcode_direct_GCJ=yes
16037
16038       # hardcode_minus_L: Not really in the search PATH,
16039       # but as the default location of the library.
16040       hardcode_minus_L_GCJ=yes
16041       export_dynamic_flag_spec_GCJ='${wl}-E'
16042       ;;
16043
16044     hpux10* | hpux11*)
16045       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16046         case "$host_cpu" in
16047         hppa*64*|ia64*)
16048           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16049           ;;
16050         *)
16051           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16052           ;;
16053         esac
16054       else
16055         case "$host_cpu" in
16056         hppa*64*|ia64*)
16057           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16058           ;;
16059         *)
16060           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16061           ;;
16062         esac
16063       fi
16064       if test "$with_gnu_ld" = no; then
16065         case "$host_cpu" in
16066         hppa*64*)
16067           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16068           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16069           hardcode_libdir_separator_GCJ=:
16070           hardcode_direct_GCJ=no
16071           hardcode_shlibpath_var_GCJ=no
16072           ;;
16073         ia64*)
16074           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16075           hardcode_direct_GCJ=no
16076           hardcode_shlibpath_var_GCJ=no
16077
16078           # hardcode_minus_L: Not really in the search PATH,
16079           # but as the default location of the library.
16080           hardcode_minus_L_GCJ=yes
16081           ;;
16082         *)
16083           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16084           hardcode_libdir_separator_GCJ=:
16085           hardcode_direct_GCJ=yes
16086           export_dynamic_flag_spec_GCJ='${wl}-E'
16087
16088           # hardcode_minus_L: Not really in the search PATH,
16089           # but as the default location of the library.
16090           hardcode_minus_L_GCJ=yes
16091           ;;
16092         esac
16093       fi
16094       ;;
16095
16096     irix5* | irix6* | nonstopux*)
16097       if test "$GCC" = yes; then
16098         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'
16099       else
16100         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'
16101         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16102       fi
16103       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16104       hardcode_libdir_separator_GCJ=:
16105       link_all_deplibs_GCJ=yes
16106       ;;
16107
16108     netbsd*)
16109       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16110         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16111       else
16112         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16113       fi
16114       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16115       hardcode_direct_GCJ=yes
16116       hardcode_shlibpath_var_GCJ=no
16117       ;;
16118
16119     newsos6)
16120       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16121       hardcode_direct_GCJ=yes
16122       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16123       hardcode_libdir_separator_GCJ=:
16124       hardcode_shlibpath_var_GCJ=no
16125       ;;
16126
16127     openbsd*)
16128       hardcode_direct_GCJ=yes
16129       hardcode_shlibpath_var_GCJ=no
16130       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16131         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16132         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16133         export_dynamic_flag_spec_GCJ='${wl}-E'
16134       else
16135        case $host_os in
16136          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16137            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16138            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16139            ;;
16140          *)
16141            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16142            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16143            ;;
16144        esac
16145       fi
16146       ;;
16147
16148     os2*)
16149       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16150       hardcode_minus_L_GCJ=yes
16151       allow_undefined_flag_GCJ=unsupported
16152       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'
16153       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16154       ;;
16155
16156     osf3*)
16157       if test "$GCC" = yes; then
16158         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16159         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'
16160       else
16161         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16162         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'
16163       fi
16164       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16165       hardcode_libdir_separator_GCJ=:
16166       ;;
16167
16168     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16169       if test "$GCC" = yes; then
16170         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16171         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'
16172         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16173       else
16174         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16175         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'
16176         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~
16177         $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'
16178
16179         # Both c and cxx compiler support -rpath directly
16180         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16181       fi
16182       hardcode_libdir_separator_GCJ=:
16183       ;;
16184
16185     sco3.2v5*)
16186       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16187       hardcode_shlibpath_var_GCJ=no
16188       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16189       runpath_var=LD_RUN_PATH
16190       hardcode_runpath_var=yes
16191       ;;
16192
16193     solaris*)
16194       no_undefined_flag_GCJ=' -z text'
16195       if test "$GCC" = yes; then
16196         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16197         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16198           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16199       else
16200         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16201         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16202         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16203       fi
16204       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16205       hardcode_shlibpath_var_GCJ=no
16206       case $host_os in
16207       solaris2.[0-5] | solaris2.[0-5].*) ;;
16208       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16209         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16210       esac
16211       link_all_deplibs_GCJ=yes
16212       ;;
16213
16214     sunos4*)
16215       if test "x$host_vendor" = xsequent; then
16216         # Use $CC to link under sequent, because it throws in some extra .o
16217         # files that make .init and .fini sections work.
16218         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16219       else
16220         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16221       fi
16222       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16223       hardcode_direct_GCJ=yes
16224       hardcode_minus_L_GCJ=yes
16225       hardcode_shlibpath_var_GCJ=no
16226       ;;
16227
16228     sysv4)
16229       case $host_vendor in
16230         sni)
16231           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16232           hardcode_direct_GCJ=yes # is this really true???
16233         ;;
16234         siemens)
16235           ## LD is ld it makes a PLAMLIB
16236           ## CC just makes a GrossModule.
16237           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16238           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16239           hardcode_direct_GCJ=no
16240         ;;
16241         motorola)
16242           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16243           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16244         ;;
16245       esac
16246       runpath_var='LD_RUN_PATH'
16247       hardcode_shlibpath_var_GCJ=no
16248       ;;
16249
16250     sysv4.3*)
16251       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16252       hardcode_shlibpath_var_GCJ=no
16253       export_dynamic_flag_spec_GCJ='-Bexport'
16254       ;;
16255
16256     sysv4*MP*)
16257       if test -d /usr/nec; then
16258         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16259         hardcode_shlibpath_var_GCJ=no
16260         runpath_var=LD_RUN_PATH
16261         hardcode_runpath_var=yes
16262         ld_shlibs_GCJ=yes
16263       fi
16264       ;;
16265
16266     sysv4.2uw2*)
16267       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16268       hardcode_direct_GCJ=yes
16269       hardcode_minus_L_GCJ=no
16270       hardcode_shlibpath_var_GCJ=no
16271       hardcode_runpath_var=yes
16272       runpath_var=LD_RUN_PATH
16273       ;;
16274
16275    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16276       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16277       if test "$GCC" = yes; then
16278         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16279       else
16280         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16281       fi
16282       runpath_var='LD_RUN_PATH'
16283       hardcode_shlibpath_var_GCJ=no
16284       ;;
16285
16286     sysv5*)
16287       no_undefined_flag_GCJ=' -z text'
16288       # $CC -shared without GNU ld will not create a library from C++
16289       # object files and a static libstdc++, better avoid it by now
16290       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16291       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16292                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16293       hardcode_libdir_flag_spec_GCJ=
16294       hardcode_shlibpath_var_GCJ=no
16295       runpath_var='LD_RUN_PATH'
16296       ;;
16297
16298     uts4*)
16299       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16300       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16301       hardcode_shlibpath_var_GCJ=no
16302       ;;
16303
16304     *)
16305       ld_shlibs_GCJ=no
16306       ;;
16307     esac
16308   fi
16309
16310 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16311 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16312 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16313
16314 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16315 if test "$GCC" = yes; then
16316   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16317 fi
16318
16319 #
16320 # Do we need to explicitly link libc?
16321 #
16322 case "x$archive_cmds_need_lc_GCJ" in
16323 x|xyes)
16324   # Assume -lc should be added
16325   archive_cmds_need_lc_GCJ=yes
16326
16327   if test "$enable_shared" = yes && test "$GCC" = yes; then
16328     case $archive_cmds_GCJ in
16329     *'~'*)
16330       # FIXME: we may have to deal with multi-command sequences.
16331       ;;
16332     '$CC '*)
16333       # Test whether the compiler implicitly links with -lc since on some
16334       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16335       # to ld, don't add -lc before -lgcc.
16336       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16337 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16338       $rm conftest*
16339       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16340
16341       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16342   (eval $ac_compile) 2>&5
16343   ac_status=$?
16344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345   (exit $ac_status); } 2>conftest.err; then
16346         soname=conftest
16347         lib=conftest
16348         libobjs=conftest.$ac_objext
16349         deplibs=
16350         wl=$lt_prog_compiler_wl_GCJ
16351         compiler_flags=-v
16352         linker_flags=-v
16353         verstring=
16354         output_objdir=.
16355         libname=conftest
16356         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16357         allow_undefined_flag_GCJ=
16358         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16359   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16360   ac_status=$?
16361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362   (exit $ac_status); }
16363         then
16364           archive_cmds_need_lc_GCJ=no
16365         else
16366           archive_cmds_need_lc_GCJ=yes
16367         fi
16368         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16369       else
16370         cat conftest.err 1>&5
16371       fi
16372       $rm conftest*
16373       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16374 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16375       ;;
16376     esac
16377   fi
16378   ;;
16379 esac
16380
16381 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16382 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16383 hardcode_action_GCJ=
16384 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16385    test -n "$runpath_var GCJ" || \
16386    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16387
16388   # We can hardcode non-existant directories.
16389   if test "$hardcode_direct_GCJ" != no &&
16390      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16391      # have to relink, otherwise we might link with an installed library
16392      # when we should be linking with a yet-to-be-installed one
16393      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16394      test "$hardcode_minus_L_GCJ" != no; then
16395     # Linking always hardcodes the temporary library directory.
16396     hardcode_action_GCJ=relink
16397   else
16398     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16399     hardcode_action_GCJ=immediate
16400   fi
16401 else
16402   # We cannot hardcode anything, or else we can only hardcode existing
16403   # directories.
16404   hardcode_action_GCJ=unsupported
16405 fi
16406 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16407 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16408
16409 if test "$hardcode_action_GCJ" = relink; then
16410   # Fast installation is not supported
16411   enable_fast_install=no
16412 elif test "$shlibpath_overrides_runpath" = yes ||
16413      test "$enable_shared" = no; then
16414   # Fast installation is not necessary
16415   enable_fast_install=needless
16416 fi
16417
16418 striplib=
16419 old_striplib=
16420 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16421 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16422 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16423   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16424   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16425   echo "$as_me:$LINENO: result: yes" >&5
16426 echo "${ECHO_T}yes" >&6
16427 else
16428 # FIXME - insert some real tests, host_os isn't really good enough
16429   case $host_os in
16430    darwin*)
16431        if test -n "$STRIP" ; then
16432          striplib="$STRIP -x"
16433          echo "$as_me:$LINENO: result: yes" >&5
16434 echo "${ECHO_T}yes" >&6
16435        else
16436   echo "$as_me:$LINENO: result: no" >&5
16437 echo "${ECHO_T}no" >&6
16438 fi
16439        ;;
16440    *)
16441   echo "$as_me:$LINENO: result: no" >&5
16442 echo "${ECHO_T}no" >&6
16443     ;;
16444   esac
16445 fi
16446
16447 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16448 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16449 library_names_spec=
16450 libname_spec='lib$name'
16451 soname_spec=
16452 shrext=".so"
16453 postinstall_cmds=
16454 postuninstall_cmds=
16455 finish_cmds=
16456 finish_eval=
16457 shlibpath_var=
16458 shlibpath_overrides_runpath=unknown
16459 version_type=none
16460 dynamic_linker="$host_os ld.so"
16461 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16462 if test "$GCC" = yes; then
16463   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16464   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16465     # if the path contains ";" then we assume it to be the separator
16466     # otherwise default to the standard path separator (i.e. ":") - it is
16467     # assumed that no part of a normal pathname contains ";" but that should
16468     # okay in the real world where ";" in dirpaths is itself problematic.
16469     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16470   else
16471     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16472   fi
16473 else
16474   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16475 fi
16476 need_lib_prefix=unknown
16477 hardcode_into_libs=no
16478
16479 # when you set need_version to no, make sure it does not cause -set_version
16480 # flags to be left without arguments
16481 need_version=unknown
16482
16483 case $host_os in
16484 aix3*)
16485   version_type=linux
16486   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16487   shlibpath_var=LIBPATH
16488
16489   # AIX 3 has no versioning support, so we append a major version to the name.
16490   soname_spec='${libname}${release}${shared_ext}$major'
16491   ;;
16492
16493 aix4* | aix5*)
16494   version_type=linux
16495   need_lib_prefix=no
16496   need_version=no
16497   hardcode_into_libs=yes
16498   if test "$host_cpu" = ia64; then
16499     # AIX 5 supports IA64
16500     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16501     shlibpath_var=LD_LIBRARY_PATH
16502   else
16503     # With GCC up to 2.95.x, collect2 would create an import file
16504     # for dependence libraries.  The import file would start with
16505     # the line `#! .'.  This would cause the generated library to
16506     # depend on `.', always an invalid library.  This was fixed in
16507     # development snapshots of GCC prior to 3.0.
16508     case $host_os in
16509       aix4 | aix4.[01] | aix4.[01].*)
16510       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16511            echo ' yes '
16512            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16513         :
16514       else
16515         can_build_shared=no
16516       fi
16517       ;;
16518     esac
16519     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16520     # soname into executable. Probably we can add versioning support to
16521     # collect2, so additional links can be useful in future.
16522     if test "$aix_use_runtimelinking" = yes; then
16523       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16524       # instead of lib<name>.a to let people know that these are not
16525       # typical AIX shared libraries.
16526       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16527     else
16528       # We preserve .a as extension for shared libraries through AIX4.2
16529       # and later when we are not doing run time linking.
16530       library_names_spec='${libname}${release}.a $libname.a'
16531       soname_spec='${libname}${release}${shared_ext}$major'
16532     fi
16533     shlibpath_var=LIBPATH
16534   fi
16535   ;;
16536
16537 amigaos*)
16538   library_names_spec='$libname.ixlibrary $libname.a'
16539   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16540   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'
16541   ;;
16542
16543 beos*)
16544   library_names_spec='${libname}${shared_ext}'
16545   dynamic_linker="$host_os ld.so"
16546   shlibpath_var=LIBRARY_PATH
16547   ;;
16548
16549 bsdi4*)
16550   version_type=linux
16551   need_version=no
16552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16553   soname_spec='${libname}${release}${shared_ext}$major'
16554   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16555   shlibpath_var=LD_LIBRARY_PATH
16556   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16557   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16558   # the default ld.so.conf also contains /usr/contrib/lib and
16559   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16560   # libtool to hard-code these into programs
16561   ;;
16562
16563 cygwin* | mingw* | pw32*)
16564   version_type=windows
16565   shrext=".dll"
16566   need_version=no
16567   need_lib_prefix=no
16568
16569   case $GCC,$host_os in
16570   yes,cygwin* | yes,mingw* | yes,pw32*)
16571     library_names_spec='$libname.dll.a'
16572     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16573     postinstall_cmds='base_file=`basename \${file}`~
16574       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16575       dldir=$destdir/`dirname \$dlpath`~
16576       test -d \$dldir || mkdir -p \$dldir~
16577       $install_prog $dir/$dlname \$dldir/$dlname'
16578     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16579       dlpath=$dir/\$dldll~
16580        $rm \$dlpath'
16581     shlibpath_overrides_runpath=yes
16582
16583     case $host_os in
16584     cygwin*)
16585       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16586       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16587       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16588       ;;
16589     mingw*)
16590       # MinGW DLLs use traditional 'lib' prefix
16591       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16592       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16593       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16594         # It is most probably a Windows format PATH printed by
16595         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16596         # path with ; separators, and with drive letters. We can handle the
16597         # drive letters (cygwin fileutils understands them), so leave them,
16598         # especially as we might pass files found there to a mingw objdump,
16599         # which wouldn't understand a cygwinified path. Ahh.
16600         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16601       else
16602         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16603       fi
16604       ;;
16605     pw32*)
16606       # pw32 DLLs use 'pw' prefix rather than 'lib'
16607       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16608       ;;
16609     esac
16610     ;;
16611
16612   *)
16613     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16614     ;;
16615   esac
16616   dynamic_linker='Win32 ld.exe'
16617   # FIXME: first we should search . and the directory the executable is in
16618   shlibpath_var=PATH
16619   ;;
16620
16621 darwin* | rhapsody*)
16622   dynamic_linker="$host_os dyld"
16623   version_type=darwin
16624   need_lib_prefix=no
16625   need_version=no
16626   # FIXME: Relying on posixy $() will cause problems for
16627   #        cross-compilation, but unfortunately the echo tests do not
16628   #        yet detect zsh echo's removal of \ escapes.
16629   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16630   soname_spec='${libname}${release}${major}$shared_ext'
16631   shlibpath_overrides_runpath=yes
16632   shlibpath_var=DYLD_LIBRARY_PATH
16633   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16634   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16635   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16636   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"`
16637   fi
16638   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16639   ;;
16640
16641 dgux*)
16642   version_type=linux
16643   need_lib_prefix=no
16644   need_version=no
16645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16646   soname_spec='${libname}${release}${shared_ext}$major'
16647   shlibpath_var=LD_LIBRARY_PATH
16648   ;;
16649
16650 freebsd1*)
16651   dynamic_linker=no
16652   ;;
16653
16654 freebsd*)
16655   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16656   version_type=freebsd-$objformat
16657   case $version_type in
16658     freebsd-elf*)
16659       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16660       need_version=no
16661       need_lib_prefix=no
16662       ;;
16663     freebsd-*)
16664       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16665       need_version=yes
16666       ;;
16667   esac
16668   shlibpath_var=LD_LIBRARY_PATH
16669   case $host_os in
16670   freebsd2*)
16671     shlibpath_overrides_runpath=yes
16672     ;;
16673   freebsd3.01* | freebsdelf3.01*)
16674     shlibpath_overrides_runpath=yes
16675     hardcode_into_libs=yes
16676     ;;
16677   *) # from 3.2 on
16678     shlibpath_overrides_runpath=no
16679     hardcode_into_libs=yes
16680     ;;
16681   esac
16682   ;;
16683
16684 gnu*)
16685   version_type=linux
16686   need_lib_prefix=no
16687   need_version=no
16688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16689   soname_spec='${libname}${release}${shared_ext}$major'
16690   shlibpath_var=LD_LIBRARY_PATH
16691   hardcode_into_libs=yes
16692   ;;
16693
16694 hpux9* | hpux10* | hpux11*)
16695   # Give a soname corresponding to the major version so that dld.sl refuses to
16696   # link against other versions.
16697   version_type=sunos
16698   need_lib_prefix=no
16699   need_version=no
16700   case "$host_cpu" in
16701   ia64*)
16702     shrext='.so'
16703     hardcode_into_libs=yes
16704     dynamic_linker="$host_os dld.so"
16705     shlibpath_var=LD_LIBRARY_PATH
16706     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16707     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16708     soname_spec='${libname}${release}${shared_ext}$major'
16709     if test "X$HPUX_IA64_MODE" = X32; then
16710       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16711     else
16712       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16713     fi
16714     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16715     ;;
16716    hppa*64*)
16717      shrext='.sl'
16718      hardcode_into_libs=yes
16719      dynamic_linker="$host_os dld.sl"
16720      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16725      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16726      ;;
16727    *)
16728     shrext='.sl'
16729     dynamic_linker="$host_os dld.sl"
16730     shlibpath_var=SHLIB_PATH
16731     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16732     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16733     soname_spec='${libname}${release}${shared_ext}$major'
16734     ;;
16735   esac
16736   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16737   postinstall_cmds='chmod 555 $lib'
16738   ;;
16739
16740 irix5* | irix6* | nonstopux*)
16741   case $host_os in
16742     nonstopux*) version_type=nonstopux ;;
16743     *)
16744         if test "$lt_cv_prog_gnu_ld" = yes; then
16745                 version_type=linux
16746         else
16747                 version_type=irix
16748         fi ;;
16749   esac
16750   need_lib_prefix=no
16751   need_version=no
16752   soname_spec='${libname}${release}${shared_ext}$major'
16753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16754   case $host_os in
16755   irix5* | nonstopux*)
16756     libsuff= shlibsuff=
16757     ;;
16758   *)
16759     case $LD in # libtool.m4 will add one of these switches to LD
16760     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16761       libsuff= shlibsuff= libmagic=32-bit;;
16762     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16763       libsuff=32 shlibsuff=N32 libmagic=N32;;
16764     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16765       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16766     *) libsuff= shlibsuff= libmagic=never-match;;
16767     esac
16768     ;;
16769   esac
16770   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16771   shlibpath_overrides_runpath=no
16772   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16773   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16774   hardcode_into_libs=yes
16775   ;;
16776
16777 # No shared lib support for Linux oldld, aout, or coff.
16778 linux*oldld* | linux*aout* | linux*coff*)
16779   dynamic_linker=no
16780   ;;
16781
16782 # This must be Linux ELF.
16783 linux*)
16784   version_type=linux
16785   need_lib_prefix=no
16786   need_version=no
16787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16788   soname_spec='${libname}${release}${shared_ext}$major'
16789   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16790   shlibpath_var=LD_LIBRARY_PATH
16791   shlibpath_overrides_runpath=no
16792   # This implies no fast_install, which is unacceptable.
16793   # Some rework will be needed to allow for fast_install
16794   # before this can be enabled.
16795   hardcode_into_libs=yes
16796
16797   # We used to test for /lib/ld.so.1 and disable shared libraries on
16798   # powerpc, because MkLinux only supported shared libraries with the
16799   # GNU dynamic linker.  Since this was broken with cross compilers,
16800   # most powerpc-linux boxes support dynamic linking these days and
16801   # people can always --disable-shared, the test was removed, and we
16802   # assume the GNU/Linux dynamic linker is in use.
16803   dynamic_linker='GNU/Linux ld.so'
16804   ;;
16805
16806 netbsd*)
16807   version_type=sunos
16808   need_lib_prefix=no
16809   need_version=no
16810   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16811     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16812     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16813     dynamic_linker='NetBSD (a.out) ld.so'
16814   else
16815     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16816     soname_spec='${libname}${release}${shared_ext}$major'
16817     dynamic_linker='NetBSD ld.elf_so'
16818   fi
16819   shlibpath_var=LD_LIBRARY_PATH
16820   shlibpath_overrides_runpath=yes
16821   hardcode_into_libs=yes
16822   ;;
16823
16824 newsos6)
16825   version_type=linux
16826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16827   shlibpath_var=LD_LIBRARY_PATH
16828   shlibpath_overrides_runpath=yes
16829   ;;
16830
16831 nto-qnx)
16832   version_type=linux
16833   need_lib_prefix=no
16834   need_version=no
16835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16836   soname_spec='${libname}${release}${shared_ext}$major'
16837   shlibpath_var=LD_LIBRARY_PATH
16838   shlibpath_overrides_runpath=yes
16839   ;;
16840
16841 openbsd*)
16842   version_type=sunos
16843   need_lib_prefix=no
16844   need_version=no
16845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16846   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16847   shlibpath_var=LD_LIBRARY_PATH
16848   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16849     case $host_os in
16850       openbsd2.[89] | openbsd2.[89].*)
16851         shlibpath_overrides_runpath=no
16852         ;;
16853       *)
16854         shlibpath_overrides_runpath=yes
16855         ;;
16856       esac
16857   else
16858     shlibpath_overrides_runpath=yes
16859   fi
16860   ;;
16861
16862 os2*)
16863   libname_spec='$name'
16864   shrext=".dll"
16865   need_lib_prefix=no
16866   library_names_spec='$libname${shared_ext} $libname.a'
16867   dynamic_linker='OS/2 ld.exe'
16868   shlibpath_var=LIBPATH
16869   ;;
16870
16871 osf3* | osf4* | osf5*)
16872   version_type=osf
16873   need_lib_prefix=no
16874   need_version=no
16875   soname_spec='${libname}${release}${shared_ext}$major'
16876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16877   shlibpath_var=LD_LIBRARY_PATH
16878   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16879   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16880   ;;
16881
16882 sco3.2v5*)
16883   version_type=osf
16884   soname_spec='${libname}${release}${shared_ext}$major'
16885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886   shlibpath_var=LD_LIBRARY_PATH
16887   ;;
16888
16889 solaris*)
16890   version_type=linux
16891   need_lib_prefix=no
16892   need_version=no
16893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16894   soname_spec='${libname}${release}${shared_ext}$major'
16895   shlibpath_var=LD_LIBRARY_PATH
16896   shlibpath_overrides_runpath=yes
16897   hardcode_into_libs=yes
16898   # ldd complains unless libraries are executable
16899   postinstall_cmds='chmod +x $lib'
16900   ;;
16901
16902 sunos4*)
16903   version_type=sunos
16904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16905   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16906   shlibpath_var=LD_LIBRARY_PATH
16907   shlibpath_overrides_runpath=yes
16908   if test "$with_gnu_ld" = yes; then
16909     need_lib_prefix=no
16910   fi
16911   need_version=yes
16912   ;;
16913
16914 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16915   version_type=linux
16916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16917   soname_spec='${libname}${release}${shared_ext}$major'
16918   shlibpath_var=LD_LIBRARY_PATH
16919   case $host_vendor in
16920     sni)
16921       shlibpath_overrides_runpath=no
16922       need_lib_prefix=no
16923       export_dynamic_flag_spec='${wl}-Blargedynsym'
16924       runpath_var=LD_RUN_PATH
16925       ;;
16926     siemens)
16927       need_lib_prefix=no
16928       ;;
16929     motorola)
16930       need_lib_prefix=no
16931       need_version=no
16932       shlibpath_overrides_runpath=no
16933       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16934       ;;
16935   esac
16936   ;;
16937
16938 sysv4*MP*)
16939   if test -d /usr/nec ;then
16940     version_type=linux
16941     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16942     soname_spec='$libname${shared_ext}.$major'
16943     shlibpath_var=LD_LIBRARY_PATH
16944   fi
16945   ;;
16946
16947 uts4*)
16948   version_type=linux
16949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16950   soname_spec='${libname}${release}${shared_ext}$major'
16951   shlibpath_var=LD_LIBRARY_PATH
16952   ;;
16953
16954 *)
16955   dynamic_linker=no
16956   ;;
16957 esac
16958 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16959 echo "${ECHO_T}$dynamic_linker" >&6
16960 test "$dynamic_linker" = no && can_build_shared=no
16961
16962 if test "x$enable_dlopen" != xyes; then
16963   enable_dlopen=unknown
16964   enable_dlopen_self=unknown
16965   enable_dlopen_self_static=unknown
16966 else
16967   lt_cv_dlopen=no
16968   lt_cv_dlopen_libs=
16969
16970   case $host_os in
16971   beos*)
16972     lt_cv_dlopen="load_add_on"
16973     lt_cv_dlopen_libs=
16974     lt_cv_dlopen_self=yes
16975     ;;
16976
16977   mingw* | pw32*)
16978     lt_cv_dlopen="LoadLibrary"
16979     lt_cv_dlopen_libs=
16980    ;;
16981
16982   cygwin*)
16983     lt_cv_dlopen="dlopen"
16984     lt_cv_dlopen_libs=
16985    ;;
16986
16987   darwin*)
16988   # if libdl is installed we need to link against it
16989     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16990 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16991 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16992   echo $ECHO_N "(cached) $ECHO_C" >&6
16993 else
16994   ac_check_lib_save_LIBS=$LIBS
16995 LIBS="-ldl  $LIBS"
16996 cat >conftest.$ac_ext <<_ACEOF
16997 /* confdefs.h.  */
16998 _ACEOF
16999 cat confdefs.h >>conftest.$ac_ext
17000 cat >>conftest.$ac_ext <<_ACEOF
17001 /* end confdefs.h.  */
17002
17003 /* Override any gcc2 internal prototype to avoid an error.  */
17004 #ifdef __cplusplus
17005 extern "C"
17006 #endif
17007 /* We use char because int might match the return type of a gcc2
17008    builtin and then its argument prototype would still apply.  */
17009 char dlopen ();
17010 int
17011 main ()
17012 {
17013 dlopen ();
17014   ;
17015   return 0;
17016 }
17017 _ACEOF
17018 rm -f conftest.$ac_objext conftest$ac_exeext
17019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17020   (eval $ac_link) 2>conftest.er1
17021   ac_status=$?
17022   grep -v '^ *+' conftest.er1 >conftest.err
17023   rm -f conftest.er1
17024   cat conftest.err >&5
17025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026   (exit $ac_status); } &&
17027          { ac_try='test -z "$ac_c_werror_flag"
17028                          || test ! -s conftest.err'
17029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030   (eval $ac_try) 2>&5
17031   ac_status=$?
17032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033   (exit $ac_status); }; } &&
17034          { ac_try='test -s conftest$ac_exeext'
17035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036   (eval $ac_try) 2>&5
17037   ac_status=$?
17038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039   (exit $ac_status); }; }; then
17040   ac_cv_lib_dl_dlopen=yes
17041 else
17042   echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17044
17045 ac_cv_lib_dl_dlopen=no
17046 fi
17047 rm -f conftest.err conftest.$ac_objext \
17048       conftest$ac_exeext conftest.$ac_ext
17049 LIBS=$ac_check_lib_save_LIBS
17050 fi
17051 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17052 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17053 if test $ac_cv_lib_dl_dlopen = yes; then
17054   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17055 else
17056
17057     lt_cv_dlopen="dyld"
17058     lt_cv_dlopen_libs=
17059     lt_cv_dlopen_self=yes
17060
17061 fi
17062
17063    ;;
17064
17065   *)
17066     echo "$as_me:$LINENO: checking for shl_load" >&5
17067 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17068 if test "${ac_cv_func_shl_load+set}" = set; then
17069   echo $ECHO_N "(cached) $ECHO_C" >&6
17070 else
17071   cat >conftest.$ac_ext <<_ACEOF
17072 /* confdefs.h.  */
17073 _ACEOF
17074 cat confdefs.h >>conftest.$ac_ext
17075 cat >>conftest.$ac_ext <<_ACEOF
17076 /* end confdefs.h.  */
17077 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17078    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17079 #define shl_load innocuous_shl_load
17080
17081 /* System header to define __stub macros and hopefully few prototypes,
17082     which can conflict with char shl_load (); below.
17083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17084     <limits.h> exists even on freestanding compilers.  */
17085
17086 #ifdef __STDC__
17087 # include <limits.h>
17088 #else
17089 # include <assert.h>
17090 #endif
17091
17092 #undef shl_load
17093
17094 /* Override any gcc2 internal prototype to avoid an error.  */
17095 #ifdef __cplusplus
17096 extern "C"
17097 {
17098 #endif
17099 /* We use char because int might match the return type of a gcc2
17100    builtin and then its argument prototype would still apply.  */
17101 char shl_load ();
17102 /* The GNU C library defines this for functions which it implements
17103     to always fail with ENOSYS.  Some functions are actually named
17104     something starting with __ and the normal name is an alias.  */
17105 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17106 choke me
17107 #else
17108 char (*f) () = shl_load;
17109 #endif
17110 #ifdef __cplusplus
17111 }
17112 #endif
17113
17114 int
17115 main ()
17116 {
17117 return f != shl_load;
17118   ;
17119   return 0;
17120 }
17121 _ACEOF
17122 rm -f conftest.$ac_objext conftest$ac_exeext
17123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17124   (eval $ac_link) 2>conftest.er1
17125   ac_status=$?
17126   grep -v '^ *+' conftest.er1 >conftest.err
17127   rm -f conftest.er1
17128   cat conftest.err >&5
17129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130   (exit $ac_status); } &&
17131          { ac_try='test -z "$ac_c_werror_flag"
17132                          || test ! -s conftest.err'
17133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134   (eval $ac_try) 2>&5
17135   ac_status=$?
17136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137   (exit $ac_status); }; } &&
17138          { ac_try='test -s conftest$ac_exeext'
17139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140   (eval $ac_try) 2>&5
17141   ac_status=$?
17142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143   (exit $ac_status); }; }; then
17144   ac_cv_func_shl_load=yes
17145 else
17146   echo "$as_me: failed program was:" >&5
17147 sed 's/^/| /' conftest.$ac_ext >&5
17148
17149 ac_cv_func_shl_load=no
17150 fi
17151 rm -f conftest.err conftest.$ac_objext \
17152       conftest$ac_exeext conftest.$ac_ext
17153 fi
17154 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17155 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17156 if test $ac_cv_func_shl_load = yes; then
17157   lt_cv_dlopen="shl_load"
17158 else
17159   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17160 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17161 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17162   echo $ECHO_N "(cached) $ECHO_C" >&6
17163 else
17164   ac_check_lib_save_LIBS=$LIBS
17165 LIBS="-ldld  $LIBS"
17166 cat >conftest.$ac_ext <<_ACEOF
17167 /* confdefs.h.  */
17168 _ACEOF
17169 cat confdefs.h >>conftest.$ac_ext
17170 cat >>conftest.$ac_ext <<_ACEOF
17171 /* end confdefs.h.  */
17172
17173 /* Override any gcc2 internal prototype to avoid an error.  */
17174 #ifdef __cplusplus
17175 extern "C"
17176 #endif
17177 /* We use char because int might match the return type of a gcc2
17178    builtin and then its argument prototype would still apply.  */
17179 char shl_load ();
17180 int
17181 main ()
17182 {
17183 shl_load ();
17184   ;
17185   return 0;
17186 }
17187 _ACEOF
17188 rm -f conftest.$ac_objext conftest$ac_exeext
17189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17190   (eval $ac_link) 2>conftest.er1
17191   ac_status=$?
17192   grep -v '^ *+' conftest.er1 >conftest.err
17193   rm -f conftest.er1
17194   cat conftest.err >&5
17195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196   (exit $ac_status); } &&
17197          { ac_try='test -z "$ac_c_werror_flag"
17198                          || test ! -s conftest.err'
17199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200   (eval $ac_try) 2>&5
17201   ac_status=$?
17202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203   (exit $ac_status); }; } &&
17204          { ac_try='test -s conftest$ac_exeext'
17205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17206   (eval $ac_try) 2>&5
17207   ac_status=$?
17208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209   (exit $ac_status); }; }; then
17210   ac_cv_lib_dld_shl_load=yes
17211 else
17212   echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17214
17215 ac_cv_lib_dld_shl_load=no
17216 fi
17217 rm -f conftest.err conftest.$ac_objext \
17218       conftest$ac_exeext conftest.$ac_ext
17219 LIBS=$ac_check_lib_save_LIBS
17220 fi
17221 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17222 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17223 if test $ac_cv_lib_dld_shl_load = yes; then
17224   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17225 else
17226   echo "$as_me:$LINENO: checking for dlopen" >&5
17227 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17228 if test "${ac_cv_func_dlopen+set}" = set; then
17229   echo $ECHO_N "(cached) $ECHO_C" >&6
17230 else
17231   cat >conftest.$ac_ext <<_ACEOF
17232 /* confdefs.h.  */
17233 _ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h.  */
17237 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17239 #define dlopen innocuous_dlopen
17240
17241 /* System header to define __stub macros and hopefully few prototypes,
17242     which can conflict with char dlopen (); below.
17243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17244     <limits.h> exists even on freestanding compilers.  */
17245
17246 #ifdef __STDC__
17247 # include <limits.h>
17248 #else
17249 # include <assert.h>
17250 #endif
17251
17252 #undef dlopen
17253
17254 /* Override any gcc2 internal prototype to avoid an error.  */
17255 #ifdef __cplusplus
17256 extern "C"
17257 {
17258 #endif
17259 /* We use char because int might match the return type of a gcc2
17260    builtin and then its argument prototype would still apply.  */
17261 char dlopen ();
17262 /* The GNU C library defines this for functions which it implements
17263     to always fail with ENOSYS.  Some functions are actually named
17264     something starting with __ and the normal name is an alias.  */
17265 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17266 choke me
17267 #else
17268 char (*f) () = dlopen;
17269 #endif
17270 #ifdef __cplusplus
17271 }
17272 #endif
17273
17274 int
17275 main ()
17276 {
17277 return f != dlopen;
17278   ;
17279   return 0;
17280 }
17281 _ACEOF
17282 rm -f conftest.$ac_objext conftest$ac_exeext
17283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17284   (eval $ac_link) 2>conftest.er1
17285   ac_status=$?
17286   grep -v '^ *+' conftest.er1 >conftest.err
17287   rm -f conftest.er1
17288   cat conftest.err >&5
17289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290   (exit $ac_status); } &&
17291          { ac_try='test -z "$ac_c_werror_flag"
17292                          || test ! -s conftest.err'
17293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17294   (eval $ac_try) 2>&5
17295   ac_status=$?
17296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297   (exit $ac_status); }; } &&
17298          { ac_try='test -s conftest$ac_exeext'
17299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300   (eval $ac_try) 2>&5
17301   ac_status=$?
17302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303   (exit $ac_status); }; }; then
17304   ac_cv_func_dlopen=yes
17305 else
17306   echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17308
17309 ac_cv_func_dlopen=no
17310 fi
17311 rm -f conftest.err conftest.$ac_objext \
17312       conftest$ac_exeext conftest.$ac_ext
17313 fi
17314 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17315 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17316 if test $ac_cv_func_dlopen = yes; then
17317   lt_cv_dlopen="dlopen"
17318 else
17319   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17320 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17321 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17322   echo $ECHO_N "(cached) $ECHO_C" >&6
17323 else
17324   ac_check_lib_save_LIBS=$LIBS
17325 LIBS="-ldl  $LIBS"
17326 cat >conftest.$ac_ext <<_ACEOF
17327 /* confdefs.h.  */
17328 _ACEOF
17329 cat confdefs.h >>conftest.$ac_ext
17330 cat >>conftest.$ac_ext <<_ACEOF
17331 /* end confdefs.h.  */
17332
17333 /* Override any gcc2 internal prototype to avoid an error.  */
17334 #ifdef __cplusplus
17335 extern "C"
17336 #endif
17337 /* We use char because int might match the return type of a gcc2
17338    builtin and then its argument prototype would still apply.  */
17339 char dlopen ();
17340 int
17341 main ()
17342 {
17343 dlopen ();
17344   ;
17345   return 0;
17346 }
17347 _ACEOF
17348 rm -f conftest.$ac_objext conftest$ac_exeext
17349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17350   (eval $ac_link) 2>conftest.er1
17351   ac_status=$?
17352   grep -v '^ *+' conftest.er1 >conftest.err
17353   rm -f conftest.er1
17354   cat conftest.err >&5
17355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356   (exit $ac_status); } &&
17357          { ac_try='test -z "$ac_c_werror_flag"
17358                          || test ! -s conftest.err'
17359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360   (eval $ac_try) 2>&5
17361   ac_status=$?
17362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363   (exit $ac_status); }; } &&
17364          { ac_try='test -s conftest$ac_exeext'
17365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366   (eval $ac_try) 2>&5
17367   ac_status=$?
17368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369   (exit $ac_status); }; }; then
17370   ac_cv_lib_dl_dlopen=yes
17371 else
17372   echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17374
17375 ac_cv_lib_dl_dlopen=no
17376 fi
17377 rm -f conftest.err conftest.$ac_objext \
17378       conftest$ac_exeext conftest.$ac_ext
17379 LIBS=$ac_check_lib_save_LIBS
17380 fi
17381 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17382 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17383 if test $ac_cv_lib_dl_dlopen = yes; then
17384   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17385 else
17386   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17387 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17388 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17389   echo $ECHO_N "(cached) $ECHO_C" >&6
17390 else
17391   ac_check_lib_save_LIBS=$LIBS
17392 LIBS="-lsvld  $LIBS"
17393 cat >conftest.$ac_ext <<_ACEOF
17394 /* confdefs.h.  */
17395 _ACEOF
17396 cat confdefs.h >>conftest.$ac_ext
17397 cat >>conftest.$ac_ext <<_ACEOF
17398 /* end confdefs.h.  */
17399
17400 /* Override any gcc2 internal prototype to avoid an error.  */
17401 #ifdef __cplusplus
17402 extern "C"
17403 #endif
17404 /* We use char because int might match the return type of a gcc2
17405    builtin and then its argument prototype would still apply.  */
17406 char dlopen ();
17407 int
17408 main ()
17409 {
17410 dlopen ();
17411   ;
17412   return 0;
17413 }
17414 _ACEOF
17415 rm -f conftest.$ac_objext conftest$ac_exeext
17416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17417   (eval $ac_link) 2>conftest.er1
17418   ac_status=$?
17419   grep -v '^ *+' conftest.er1 >conftest.err
17420   rm -f conftest.er1
17421   cat conftest.err >&5
17422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423   (exit $ac_status); } &&
17424          { ac_try='test -z "$ac_c_werror_flag"
17425                          || test ! -s conftest.err'
17426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427   (eval $ac_try) 2>&5
17428   ac_status=$?
17429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430   (exit $ac_status); }; } &&
17431          { ac_try='test -s conftest$ac_exeext'
17432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433   (eval $ac_try) 2>&5
17434   ac_status=$?
17435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436   (exit $ac_status); }; }; then
17437   ac_cv_lib_svld_dlopen=yes
17438 else
17439   echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17441
17442 ac_cv_lib_svld_dlopen=no
17443 fi
17444 rm -f conftest.err conftest.$ac_objext \
17445       conftest$ac_exeext conftest.$ac_ext
17446 LIBS=$ac_check_lib_save_LIBS
17447 fi
17448 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17449 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17450 if test $ac_cv_lib_svld_dlopen = yes; then
17451   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17452 else
17453   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17454 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17455 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17456   echo $ECHO_N "(cached) $ECHO_C" >&6
17457 else
17458   ac_check_lib_save_LIBS=$LIBS
17459 LIBS="-ldld  $LIBS"
17460 cat >conftest.$ac_ext <<_ACEOF
17461 /* confdefs.h.  */
17462 _ACEOF
17463 cat confdefs.h >>conftest.$ac_ext
17464 cat >>conftest.$ac_ext <<_ACEOF
17465 /* end confdefs.h.  */
17466
17467 /* Override any gcc2 internal prototype to avoid an error.  */
17468 #ifdef __cplusplus
17469 extern "C"
17470 #endif
17471 /* We use char because int might match the return type of a gcc2
17472    builtin and then its argument prototype would still apply.  */
17473 char dld_link ();
17474 int
17475 main ()
17476 {
17477 dld_link ();
17478   ;
17479   return 0;
17480 }
17481 _ACEOF
17482 rm -f conftest.$ac_objext conftest$ac_exeext
17483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17484   (eval $ac_link) 2>conftest.er1
17485   ac_status=$?
17486   grep -v '^ *+' conftest.er1 >conftest.err
17487   rm -f conftest.er1
17488   cat conftest.err >&5
17489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490   (exit $ac_status); } &&
17491          { ac_try='test -z "$ac_c_werror_flag"
17492                          || test ! -s conftest.err'
17493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494   (eval $ac_try) 2>&5
17495   ac_status=$?
17496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497   (exit $ac_status); }; } &&
17498          { ac_try='test -s conftest$ac_exeext'
17499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500   (eval $ac_try) 2>&5
17501   ac_status=$?
17502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503   (exit $ac_status); }; }; then
17504   ac_cv_lib_dld_dld_link=yes
17505 else
17506   echo "$as_me: failed program was:" >&5
17507 sed 's/^/| /' conftest.$ac_ext >&5
17508
17509 ac_cv_lib_dld_dld_link=no
17510 fi
17511 rm -f conftest.err conftest.$ac_objext \
17512       conftest$ac_exeext conftest.$ac_ext
17513 LIBS=$ac_check_lib_save_LIBS
17514 fi
17515 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17516 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17517 if test $ac_cv_lib_dld_dld_link = yes; then
17518   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17519 fi
17520
17521
17522 fi
17523
17524
17525 fi
17526
17527
17528 fi
17529
17530
17531 fi
17532
17533
17534 fi
17535
17536     ;;
17537   esac
17538
17539   if test "x$lt_cv_dlopen" != xno; then
17540     enable_dlopen=yes
17541   else
17542     enable_dlopen=no
17543   fi
17544
17545   case $lt_cv_dlopen in
17546   dlopen)
17547     save_CPPFLAGS="$CPPFLAGS"
17548     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17549
17550     save_LDFLAGS="$LDFLAGS"
17551     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17552
17553     save_LIBS="$LIBS"
17554     LIBS="$lt_cv_dlopen_libs $LIBS"
17555
17556     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17557 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17558 if test "${lt_cv_dlopen_self+set}" = set; then
17559   echo $ECHO_N "(cached) $ECHO_C" >&6
17560 else
17561           if test "$cross_compiling" = yes; then :
17562   lt_cv_dlopen_self=cross
17563 else
17564   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17565   lt_status=$lt_dlunknown
17566   cat > conftest.$ac_ext <<EOF
17567 #line 17567 "configure"
17568 #include "confdefs.h"
17569
17570 #if HAVE_DLFCN_H
17571 #include <dlfcn.h>
17572 #endif
17573
17574 #include <stdio.h>
17575
17576 #ifdef RTLD_GLOBAL
17577 #  define LT_DLGLOBAL           RTLD_GLOBAL
17578 #else
17579 #  ifdef DL_GLOBAL
17580 #    define LT_DLGLOBAL         DL_GLOBAL
17581 #  else
17582 #    define LT_DLGLOBAL         0
17583 #  endif
17584 #endif
17585
17586 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17587    find out it does not work in some platform. */
17588 #ifndef LT_DLLAZY_OR_NOW
17589 #  ifdef RTLD_LAZY
17590 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17591 #  else
17592 #    ifdef DL_LAZY
17593 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17594 #    else
17595 #      ifdef RTLD_NOW
17596 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17597 #      else
17598 #        ifdef DL_NOW
17599 #          define LT_DLLAZY_OR_NOW      DL_NOW
17600 #        else
17601 #          define LT_DLLAZY_OR_NOW      0
17602 #        endif
17603 #      endif
17604 #    endif
17605 #  endif
17606 #endif
17607
17608 #ifdef __cplusplus
17609 extern "C" void exit (int);
17610 #endif
17611
17612 void fnord() { int i=42;}
17613 int main ()
17614 {
17615   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17616   int status = $lt_dlunknown;
17617
17618   if (self)
17619     {
17620       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17621       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17622       /* dlclose (self); */
17623     }
17624
17625     exit (status);
17626 }
17627 EOF
17628   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17629   (eval $ac_link) 2>&5
17630   ac_status=$?
17631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17633     (./conftest; exit; ) 2>/dev/null
17634     lt_status=$?
17635     case x$lt_status in
17636       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17637       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17638       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17639     esac
17640   else :
17641     # compilation failed
17642     lt_cv_dlopen_self=no
17643   fi
17644 fi
17645 rm -fr conftest*
17646
17647
17648 fi
17649 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17650 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17651
17652     if test "x$lt_cv_dlopen_self" = xyes; then
17653       LDFLAGS="$LDFLAGS $link_static_flag"
17654       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17655 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17656 if test "${lt_cv_dlopen_self_static+set}" = set; then
17657   echo $ECHO_N "(cached) $ECHO_C" >&6
17658 else
17659           if test "$cross_compiling" = yes; then :
17660   lt_cv_dlopen_self_static=cross
17661 else
17662   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17663   lt_status=$lt_dlunknown
17664   cat > conftest.$ac_ext <<EOF
17665 #line 17665 "configure"
17666 #include "confdefs.h"
17667
17668 #if HAVE_DLFCN_H
17669 #include <dlfcn.h>
17670 #endif
17671
17672 #include <stdio.h>
17673
17674 #ifdef RTLD_GLOBAL
17675 #  define LT_DLGLOBAL           RTLD_GLOBAL
17676 #else
17677 #  ifdef DL_GLOBAL
17678 #    define LT_DLGLOBAL         DL_GLOBAL
17679 #  else
17680 #    define LT_DLGLOBAL         0
17681 #  endif
17682 #endif
17683
17684 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17685    find out it does not work in some platform. */
17686 #ifndef LT_DLLAZY_OR_NOW
17687 #  ifdef RTLD_LAZY
17688 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17689 #  else
17690 #    ifdef DL_LAZY
17691 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17692 #    else
17693 #      ifdef RTLD_NOW
17694 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17695 #      else
17696 #        ifdef DL_NOW
17697 #          define LT_DLLAZY_OR_NOW      DL_NOW
17698 #        else
17699 #          define LT_DLLAZY_OR_NOW      0
17700 #        endif
17701 #      endif
17702 #    endif
17703 #  endif
17704 #endif
17705
17706 #ifdef __cplusplus
17707 extern "C" void exit (int);
17708 #endif
17709
17710 void fnord() { int i=42;}
17711 int main ()
17712 {
17713   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17714   int status = $lt_dlunknown;
17715
17716   if (self)
17717     {
17718       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17719       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17720       /* dlclose (self); */
17721     }
17722
17723     exit (status);
17724 }
17725 EOF
17726   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17727   (eval $ac_link) 2>&5
17728   ac_status=$?
17729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17731     (./conftest; exit; ) 2>/dev/null
17732     lt_status=$?
17733     case x$lt_status in
17734       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17735       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17736       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17737     esac
17738   else :
17739     # compilation failed
17740     lt_cv_dlopen_self_static=no
17741   fi
17742 fi
17743 rm -fr conftest*
17744
17745
17746 fi
17747 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17748 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17749     fi
17750
17751     CPPFLAGS="$save_CPPFLAGS"
17752     LDFLAGS="$save_LDFLAGS"
17753     LIBS="$save_LIBS"
17754     ;;
17755   esac
17756
17757   case $lt_cv_dlopen_self in
17758   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17759   *) enable_dlopen_self=unknown ;;
17760   esac
17761
17762   case $lt_cv_dlopen_self_static in
17763   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17764   *) enable_dlopen_self_static=unknown ;;
17765   esac
17766 fi
17767
17768
17769 # The else clause should only fire when bootstrapping the
17770 # libtool distribution, otherwise you forgot to ship ltmain.sh
17771 # with your package, and you will get complaints that there are
17772 # no rules to generate ltmain.sh.
17773 if test -f "$ltmain"; then
17774   # See if we are running on zsh, and set the options which allow our commands through
17775   # without removal of \ escapes.
17776   if test -n "${ZSH_VERSION+set}" ; then
17777     setopt NO_GLOB_SUBST
17778   fi
17779   # Now quote all the things that may contain metacharacters while being
17780   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17781   # variables and quote the copies for generation of the libtool script.
17782   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17783     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17784     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17785     deplibs_check_method reload_flag reload_cmds need_locks \
17786     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17787     lt_cv_sys_global_symbol_to_c_name_address \
17788     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17789     old_postinstall_cmds old_postuninstall_cmds \
17790     compiler_GCJ \
17791     CC_GCJ \
17792     LD_GCJ \
17793     lt_prog_compiler_wl_GCJ \
17794     lt_prog_compiler_pic_GCJ \
17795     lt_prog_compiler_static_GCJ \
17796     lt_prog_compiler_no_builtin_flag_GCJ \
17797     export_dynamic_flag_spec_GCJ \
17798     thread_safe_flag_spec_GCJ \
17799     whole_archive_flag_spec_GCJ \
17800     enable_shared_with_static_runtimes_GCJ \
17801     old_archive_cmds_GCJ \
17802     old_archive_from_new_cmds_GCJ \
17803     predep_objects_GCJ \
17804     postdep_objects_GCJ \
17805     predeps_GCJ \
17806     postdeps_GCJ \
17807     compiler_lib_search_path_GCJ \
17808     archive_cmds_GCJ \
17809     archive_expsym_cmds_GCJ \
17810     postinstall_cmds_GCJ \
17811     postuninstall_cmds_GCJ \
17812     old_archive_from_expsyms_cmds_GCJ \
17813     allow_undefined_flag_GCJ \
17814     no_undefined_flag_GCJ \
17815     export_symbols_cmds_GCJ \
17816     hardcode_libdir_flag_spec_GCJ \
17817     hardcode_libdir_flag_spec_ld_GCJ \
17818     hardcode_libdir_separator_GCJ \
17819     hardcode_automatic_GCJ \
17820     module_cmds_GCJ \
17821     module_expsym_cmds_GCJ \
17822     lt_cv_prog_compiler_c_o_GCJ \
17823     exclude_expsyms_GCJ \
17824     include_expsyms_GCJ; do
17825
17826     case $var in
17827     old_archive_cmds_GCJ | \
17828     old_archive_from_new_cmds_GCJ | \
17829     archive_cmds_GCJ | \
17830     archive_expsym_cmds_GCJ | \
17831     module_cmds_GCJ | \
17832     module_expsym_cmds_GCJ | \
17833     old_archive_from_expsyms_cmds_GCJ | \
17834     export_symbols_cmds_GCJ | \
17835     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17836     postinstall_cmds | postuninstall_cmds | \
17837     old_postinstall_cmds | old_postuninstall_cmds | \
17838     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17839       # Double-quote double-evaled strings.
17840       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17841       ;;
17842     *)
17843       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17844       ;;
17845     esac
17846   done
17847
17848   case $lt_echo in
17849   *'\$0 --fallback-echo"')
17850     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17851     ;;
17852   esac
17853
17854 cfgfile="$ofile"
17855
17856   cat <<__EOF__ >> "$cfgfile"
17857 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17858
17859 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17860
17861 # Shell to use when invoking shell scripts.
17862 SHELL=$lt_SHELL
17863
17864 # Whether or not to build shared libraries.
17865 build_libtool_libs=$enable_shared
17866
17867 # Whether or not to build static libraries.
17868 build_old_libs=$enable_static
17869
17870 # Whether or not to add -lc for building shared libraries.
17871 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17872
17873 # Whether or not to disallow shared libs when runtime libs are static
17874 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17875
17876 # Whether or not to optimize for fast installation.
17877 fast_install=$enable_fast_install
17878
17879 # The host system.
17880 host_alias=$host_alias
17881 host=$host
17882
17883 # An echo program that does not interpret backslashes.
17884 echo=$lt_echo
17885
17886 # The archiver.
17887 AR=$lt_AR
17888 AR_FLAGS=$lt_AR_FLAGS
17889
17890 # A C compiler.
17891 LTCC=$lt_LTCC
17892
17893 # A language-specific compiler.
17894 CC=$lt_compiler_GCJ
17895
17896 # Is the compiler the GNU C compiler?
17897 with_gcc=$GCC_GCJ
17898
17899 # An ERE matcher.
17900 EGREP=$lt_EGREP
17901
17902 # The linker used to build libraries.
17903 LD=$lt_LD_GCJ
17904
17905 # Whether we need hard or soft links.
17906 LN_S=$lt_LN_S
17907
17908 # A BSD-compatible nm program.
17909 NM=$lt_NM
17910
17911 # A symbol stripping program
17912 STRIP=$STRIP
17913
17914 # Used to examine libraries when file_magic_cmd begins "file"
17915 MAGIC_CMD=$MAGIC_CMD
17916
17917 # Used on cygwin: DLL creation program.
17918 DLLTOOL="$DLLTOOL"
17919
17920 # Used on cygwin: object dumper.
17921 OBJDUMP="$OBJDUMP"
17922
17923 # Used on cygwin: assembler.
17924 AS="$AS"
17925
17926 # The name of the directory that contains temporary libtool files.
17927 objdir=$objdir
17928
17929 # How to create reloadable object files.
17930 reload_flag=$lt_reload_flag
17931 reload_cmds=$lt_reload_cmds
17932
17933 # How to pass a linker flag through the compiler.
17934 wl=$lt_lt_prog_compiler_wl_GCJ
17935
17936 # Object file suffix (normally "o").
17937 objext="$ac_objext"
17938
17939 # Old archive suffix (normally "a").
17940 libext="$libext"
17941
17942 # Shared library suffix (normally ".so").
17943 shrext='$shrext'
17944
17945 # Executable file suffix (normally "").
17946 exeext="$exeext"
17947
17948 # Additional compiler flags for building library objects.
17949 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17950 pic_mode=$pic_mode
17951
17952 # What is the maximum length of a command?
17953 max_cmd_len=$lt_cv_sys_max_cmd_len
17954
17955 # Does compiler simultaneously support -c and -o options?
17956 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17957
17958 # Must we lock files when doing compilation ?
17959 need_locks=$lt_need_locks
17960
17961 # Do we need the lib prefix for modules?
17962 need_lib_prefix=$need_lib_prefix
17963
17964 # Do we need a version for libraries?
17965 need_version=$need_version
17966
17967 # Whether dlopen is supported.
17968 dlopen_support=$enable_dlopen
17969
17970 # Whether dlopen of programs is supported.
17971 dlopen_self=$enable_dlopen_self
17972
17973 # Whether dlopen of statically linked programs is supported.
17974 dlopen_self_static=$enable_dlopen_self_static
17975
17976 # Compiler flag to prevent dynamic linking.
17977 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17978
17979 # Compiler flag to turn off builtin functions.
17980 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17981
17982 # Compiler flag to allow reflexive dlopens.
17983 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17984
17985 # Compiler flag to generate shared objects directly from archives.
17986 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17987
17988 # Compiler flag to generate thread-safe objects.
17989 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17990
17991 # Library versioning type.
17992 version_type=$version_type
17993
17994 # Format of library name prefix.
17995 libname_spec=$lt_libname_spec
17996
17997 # List of archive names.  First name is the real one, the rest are links.
17998 # The last name is the one that the linker finds with -lNAME.
17999 library_names_spec=$lt_library_names_spec
18000
18001 # The coded name of the library, if different from the real name.
18002 soname_spec=$lt_soname_spec
18003
18004 # Commands used to build and install an old-style archive.
18005 RANLIB=$lt_RANLIB
18006 old_archive_cmds=$lt_old_archive_cmds_GCJ
18007 old_postinstall_cmds=$lt_old_postinstall_cmds
18008 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18009
18010 # Create an old-style archive from a shared archive.
18011 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18012
18013 # Create a temporary old-style archive to link instead of a shared archive.
18014 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18015
18016 # Commands used to build and install a shared archive.
18017 archive_cmds=$lt_archive_cmds_GCJ
18018 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18019 postinstall_cmds=$lt_postinstall_cmds
18020 postuninstall_cmds=$lt_postuninstall_cmds
18021
18022 # Commands used to build a loadable module (assumed same as above if empty)
18023 module_cmds=$lt_module_cmds_GCJ
18024 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18025
18026 # Commands to strip libraries.
18027 old_striplib=$lt_old_striplib
18028 striplib=$lt_striplib
18029
18030 # Dependencies to place before the objects being linked to create a
18031 # shared library.
18032 predep_objects=$lt_predep_objects_GCJ
18033
18034 # Dependencies to place after the objects being linked to create a
18035 # shared library.
18036 postdep_objects=$lt_postdep_objects_GCJ
18037
18038 # Dependencies to place before the objects being linked to create a
18039 # shared library.
18040 predeps=$lt_predeps_GCJ
18041
18042 # Dependencies to place after the objects being linked to create a
18043 # shared library.
18044 postdeps=$lt_postdeps_GCJ
18045
18046 # The library search path used internally by the compiler when linking
18047 # a shared library.
18048 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18049
18050 # Method to check whether dependent libraries are shared objects.
18051 deplibs_check_method=$lt_deplibs_check_method
18052
18053 # Command to use when deplibs_check_method == file_magic.
18054 file_magic_cmd=$lt_file_magic_cmd
18055
18056 # Flag that allows shared libraries with undefined symbols to be built.
18057 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18058
18059 # Flag that forces no undefined symbols.
18060 no_undefined_flag=$lt_no_undefined_flag_GCJ
18061
18062 # Commands used to finish a libtool library installation in a directory.
18063 finish_cmds=$lt_finish_cmds
18064
18065 # Same as above, but a single script fragment to be evaled but not shown.
18066 finish_eval=$lt_finish_eval
18067
18068 # Take the output of nm and produce a listing of raw symbols and C names.
18069 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18070
18071 # Transform the output of nm in a proper C declaration
18072 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18073
18074 # Transform the output of nm in a C name address pair
18075 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18076
18077 # This is the shared library runtime path variable.
18078 runpath_var=$runpath_var
18079
18080 # This is the shared library path variable.
18081 shlibpath_var=$shlibpath_var
18082
18083 # Is shlibpath searched before the hard-coded library search path?
18084 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18085
18086 # How to hardcode a shared library path into an executable.
18087 hardcode_action=$hardcode_action_GCJ
18088
18089 # Whether we should hardcode library paths into libraries.
18090 hardcode_into_libs=$hardcode_into_libs
18091
18092 # Flag to hardcode \$libdir into a binary during linking.
18093 # This must work even if \$libdir does not exist.
18094 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18095
18096 # If ld is used when linking, flag to hardcode \$libdir into
18097 # a binary during linking. This must work even if \$libdir does
18098 # not exist.
18099 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18100
18101 # Whether we need a single -rpath flag with a separated argument.
18102 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18103
18104 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18105 # resulting binary.
18106 hardcode_direct=$hardcode_direct_GCJ
18107
18108 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18109 # resulting binary.
18110 hardcode_minus_L=$hardcode_minus_L_GCJ
18111
18112 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18113 # the resulting binary.
18114 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18115
18116 # Set to yes if building a shared library automatically hardcodes DIR into the library
18117 # and all subsequent libraries and executables linked against it.
18118 hardcode_automatic=$hardcode_automatic_GCJ
18119
18120 # Variables whose values should be saved in libtool wrapper scripts and
18121 # restored at relink time.
18122 variables_saved_for_relink="$variables_saved_for_relink"
18123
18124 # Whether libtool must link a program against all its dependency libraries.
18125 link_all_deplibs=$link_all_deplibs_GCJ
18126
18127 # Compile-time system search path for libraries
18128 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18129
18130 # Run-time system search path for libraries
18131 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18132
18133 # Fix the shell variable \$srcfile for the compiler.
18134 fix_srcfile_path="$fix_srcfile_path_GCJ"
18135
18136 # Set to yes if exported symbols are required.
18137 always_export_symbols=$always_export_symbols_GCJ
18138
18139 # The commands to list exported symbols.
18140 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18141
18142 # The commands to extract the exported symbol list from a shared archive.
18143 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18144
18145 # Symbols that should not be listed in the preloaded symbols.
18146 exclude_expsyms=$lt_exclude_expsyms_GCJ
18147
18148 # Symbols that must always be exported.
18149 include_expsyms=$lt_include_expsyms_GCJ
18150
18151 # ### END LIBTOOL TAG CONFIG: $tagname
18152
18153 __EOF__
18154
18155
18156 else
18157   # If there is no Makefile yet, we rely on a make rule to execute
18158   # `config.status --recheck' to rerun these tests and create the
18159   # libtool script then.
18160   test -f Makefile && make "$ltmain"
18161 fi
18162
18163
18164 ac_ext=c
18165 ac_cpp='$CPP $CPPFLAGS'
18166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18169
18170 CC="$lt_save_CC"
18171
18172         else
18173           tagname=""
18174         fi
18175         ;;
18176
18177       RC)
18178
18179
18180
18181 # Source file extension for RC test sources.
18182 ac_ext=rc
18183
18184 # Object file extension for compiled RC test sources.
18185 objext=o
18186 objext_RC=$objext
18187
18188 # Code to be used in simple compile tests
18189 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18190
18191 # Code to be used in simple link tests
18192 lt_simple_link_test_code="$lt_simple_compile_test_code"
18193
18194 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18195
18196 # If no C compiler was specified, use CC.
18197 LTCC=${LTCC-"$CC"}
18198
18199 # Allow CC to be a program name with arguments.
18200 compiler=$CC
18201
18202
18203 # Allow CC to be a program name with arguments.
18204 lt_save_CC="$CC"
18205 CC=${RC-"windres"}
18206 compiler=$CC
18207 compiler_RC=$CC
18208 lt_cv_prog_compiler_c_o_RC=yes
18209
18210 # The else clause should only fire when bootstrapping the
18211 # libtool distribution, otherwise you forgot to ship ltmain.sh
18212 # with your package, and you will get complaints that there are
18213 # no rules to generate ltmain.sh.
18214 if test -f "$ltmain"; then
18215   # See if we are running on zsh, and set the options which allow our commands through
18216   # without removal of \ escapes.
18217   if test -n "${ZSH_VERSION+set}" ; then
18218     setopt NO_GLOB_SUBST
18219   fi
18220   # Now quote all the things that may contain metacharacters while being
18221   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18222   # variables and quote the copies for generation of the libtool script.
18223   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18224     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18225     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18226     deplibs_check_method reload_flag reload_cmds need_locks \
18227     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18228     lt_cv_sys_global_symbol_to_c_name_address \
18229     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18230     old_postinstall_cmds old_postuninstall_cmds \
18231     compiler_RC \
18232     CC_RC \
18233     LD_RC \
18234     lt_prog_compiler_wl_RC \
18235     lt_prog_compiler_pic_RC \
18236     lt_prog_compiler_static_RC \
18237     lt_prog_compiler_no_builtin_flag_RC \
18238     export_dynamic_flag_spec_RC \
18239     thread_safe_flag_spec_RC \
18240     whole_archive_flag_spec_RC \
18241     enable_shared_with_static_runtimes_RC \
18242     old_archive_cmds_RC \
18243     old_archive_from_new_cmds_RC \
18244     predep_objects_RC \
18245     postdep_objects_RC \
18246     predeps_RC \
18247     postdeps_RC \
18248     compiler_lib_search_path_RC \
18249     archive_cmds_RC \
18250     archive_expsym_cmds_RC \
18251     postinstall_cmds_RC \
18252     postuninstall_cmds_RC \
18253     old_archive_from_expsyms_cmds_RC \
18254     allow_undefined_flag_RC \
18255     no_undefined_flag_RC \
18256     export_symbols_cmds_RC \
18257     hardcode_libdir_flag_spec_RC \
18258     hardcode_libdir_flag_spec_ld_RC \
18259     hardcode_libdir_separator_RC \
18260     hardcode_automatic_RC \
18261     module_cmds_RC \
18262     module_expsym_cmds_RC \
18263     lt_cv_prog_compiler_c_o_RC \
18264     exclude_expsyms_RC \
18265     include_expsyms_RC; do
18266
18267     case $var in
18268     old_archive_cmds_RC | \
18269     old_archive_from_new_cmds_RC | \
18270     archive_cmds_RC | \
18271     archive_expsym_cmds_RC | \
18272     module_cmds_RC | \
18273     module_expsym_cmds_RC | \
18274     old_archive_from_expsyms_cmds_RC | \
18275     export_symbols_cmds_RC | \
18276     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18277     postinstall_cmds | postuninstall_cmds | \
18278     old_postinstall_cmds | old_postuninstall_cmds | \
18279     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18280       # Double-quote double-evaled strings.
18281       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18282       ;;
18283     *)
18284       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18285       ;;
18286     esac
18287   done
18288
18289   case $lt_echo in
18290   *'\$0 --fallback-echo"')
18291     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18292     ;;
18293   esac
18294
18295 cfgfile="$ofile"
18296
18297   cat <<__EOF__ >> "$cfgfile"
18298 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18299
18300 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18301
18302 # Shell to use when invoking shell scripts.
18303 SHELL=$lt_SHELL
18304
18305 # Whether or not to build shared libraries.
18306 build_libtool_libs=$enable_shared
18307
18308 # Whether or not to build static libraries.
18309 build_old_libs=$enable_static
18310
18311 # Whether or not to add -lc for building shared libraries.
18312 build_libtool_need_lc=$archive_cmds_need_lc_RC
18313
18314 # Whether or not to disallow shared libs when runtime libs are static
18315 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18316
18317 # Whether or not to optimize for fast installation.
18318 fast_install=$enable_fast_install
18319
18320 # The host system.
18321 host_alias=$host_alias
18322 host=$host
18323
18324 # An echo program that does not interpret backslashes.
18325 echo=$lt_echo
18326
18327 # The archiver.
18328 AR=$lt_AR
18329 AR_FLAGS=$lt_AR_FLAGS
18330
18331 # A C compiler.
18332 LTCC=$lt_LTCC
18333
18334 # A language-specific compiler.
18335 CC=$lt_compiler_RC
18336
18337 # Is the compiler the GNU C compiler?
18338 with_gcc=$GCC_RC
18339
18340 # An ERE matcher.
18341 EGREP=$lt_EGREP
18342
18343 # The linker used to build libraries.
18344 LD=$lt_LD_RC
18345
18346 # Whether we need hard or soft links.
18347 LN_S=$lt_LN_S
18348
18349 # A BSD-compatible nm program.
18350 NM=$lt_NM
18351
18352 # A symbol stripping program
18353 STRIP=$STRIP
18354
18355 # Used to examine libraries when file_magic_cmd begins "file"
18356 MAGIC_CMD=$MAGIC_CMD
18357
18358 # Used on cygwin: DLL creation program.
18359 DLLTOOL="$DLLTOOL"
18360
18361 # Used on cygwin: object dumper.
18362 OBJDUMP="$OBJDUMP"
18363
18364 # Used on cygwin: assembler.
18365 AS="$AS"
18366
18367 # The name of the directory that contains temporary libtool files.
18368 objdir=$objdir
18369
18370 # How to create reloadable object files.
18371 reload_flag=$lt_reload_flag
18372 reload_cmds=$lt_reload_cmds
18373
18374 # How to pass a linker flag through the compiler.
18375 wl=$lt_lt_prog_compiler_wl_RC
18376
18377 # Object file suffix (normally "o").
18378 objext="$ac_objext"
18379
18380 # Old archive suffix (normally "a").
18381 libext="$libext"
18382
18383 # Shared library suffix (normally ".so").
18384 shrext='$shrext'
18385
18386 # Executable file suffix (normally "").
18387 exeext="$exeext"
18388
18389 # Additional compiler flags for building library objects.
18390 pic_flag=$lt_lt_prog_compiler_pic_RC
18391 pic_mode=$pic_mode
18392
18393 # What is the maximum length of a command?
18394 max_cmd_len=$lt_cv_sys_max_cmd_len
18395
18396 # Does compiler simultaneously support -c and -o options?
18397 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18398
18399 # Must we lock files when doing compilation ?
18400 need_locks=$lt_need_locks
18401
18402 # Do we need the lib prefix for modules?
18403 need_lib_prefix=$need_lib_prefix
18404
18405 # Do we need a version for libraries?
18406 need_version=$need_version
18407
18408 # Whether dlopen is supported.
18409 dlopen_support=$enable_dlopen
18410
18411 # Whether dlopen of programs is supported.
18412 dlopen_self=$enable_dlopen_self
18413
18414 # Whether dlopen of statically linked programs is supported.
18415 dlopen_self_static=$enable_dlopen_self_static
18416
18417 # Compiler flag to prevent dynamic linking.
18418 link_static_flag=$lt_lt_prog_compiler_static_RC
18419
18420 # Compiler flag to turn off builtin functions.
18421 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18422
18423 # Compiler flag to allow reflexive dlopens.
18424 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18425
18426 # Compiler flag to generate shared objects directly from archives.
18427 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18428
18429 # Compiler flag to generate thread-safe objects.
18430 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18431
18432 # Library versioning type.
18433 version_type=$version_type
18434
18435 # Format of library name prefix.
18436 libname_spec=$lt_libname_spec
18437
18438 # List of archive names.  First name is the real one, the rest are links.
18439 # The last name is the one that the linker finds with -lNAME.
18440 library_names_spec=$lt_library_names_spec
18441
18442 # The coded name of the library, if different from the real name.
18443 soname_spec=$lt_soname_spec
18444
18445 # Commands used to build and install an old-style archive.
18446 RANLIB=$lt_RANLIB
18447 old_archive_cmds=$lt_old_archive_cmds_RC
18448 old_postinstall_cmds=$lt_old_postinstall_cmds
18449 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18450
18451 # Create an old-style archive from a shared archive.
18452 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18453
18454 # Create a temporary old-style archive to link instead of a shared archive.
18455 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18456
18457 # Commands used to build and install a shared archive.
18458 archive_cmds=$lt_archive_cmds_RC
18459 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18460 postinstall_cmds=$lt_postinstall_cmds
18461 postuninstall_cmds=$lt_postuninstall_cmds
18462
18463 # Commands used to build a loadable module (assumed same as above if empty)
18464 module_cmds=$lt_module_cmds_RC
18465 module_expsym_cmds=$lt_module_expsym_cmds_RC
18466
18467 # Commands to strip libraries.
18468 old_striplib=$lt_old_striplib
18469 striplib=$lt_striplib
18470
18471 # Dependencies to place before the objects being linked to create a
18472 # shared library.
18473 predep_objects=$lt_predep_objects_RC
18474
18475 # Dependencies to place after the objects being linked to create a
18476 # shared library.
18477 postdep_objects=$lt_postdep_objects_RC
18478
18479 # Dependencies to place before the objects being linked to create a
18480 # shared library.
18481 predeps=$lt_predeps_RC
18482
18483 # Dependencies to place after the objects being linked to create a
18484 # shared library.
18485 postdeps=$lt_postdeps_RC
18486
18487 # The library search path used internally by the compiler when linking
18488 # a shared library.
18489 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18490
18491 # Method to check whether dependent libraries are shared objects.
18492 deplibs_check_method=$lt_deplibs_check_method
18493
18494 # Command to use when deplibs_check_method == file_magic.
18495 file_magic_cmd=$lt_file_magic_cmd
18496
18497 # Flag that allows shared libraries with undefined symbols to be built.
18498 allow_undefined_flag=$lt_allow_undefined_flag_RC
18499
18500 # Flag that forces no undefined symbols.
18501 no_undefined_flag=$lt_no_undefined_flag_RC
18502
18503 # Commands used to finish a libtool library installation in a directory.
18504 finish_cmds=$lt_finish_cmds
18505
18506 # Same as above, but a single script fragment to be evaled but not shown.
18507 finish_eval=$lt_finish_eval
18508
18509 # Take the output of nm and produce a listing of raw symbols and C names.
18510 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18511
18512 # Transform the output of nm in a proper C declaration
18513 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18514
18515 # Transform the output of nm in a C name address pair
18516 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18517
18518 # This is the shared library runtime path variable.
18519 runpath_var=$runpath_var
18520
18521 # This is the shared library path variable.
18522 shlibpath_var=$shlibpath_var
18523
18524 # Is shlibpath searched before the hard-coded library search path?
18525 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18526
18527 # How to hardcode a shared library path into an executable.
18528 hardcode_action=$hardcode_action_RC
18529
18530 # Whether we should hardcode library paths into libraries.
18531 hardcode_into_libs=$hardcode_into_libs
18532
18533 # Flag to hardcode \$libdir into a binary during linking.
18534 # This must work even if \$libdir does not exist.
18535 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18536
18537 # If ld is used when linking, flag to hardcode \$libdir into
18538 # a binary during linking. This must work even if \$libdir does
18539 # not exist.
18540 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18541
18542 # Whether we need a single -rpath flag with a separated argument.
18543 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18544
18545 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18546 # resulting binary.
18547 hardcode_direct=$hardcode_direct_RC
18548
18549 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18550 # resulting binary.
18551 hardcode_minus_L=$hardcode_minus_L_RC
18552
18553 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18554 # the resulting binary.
18555 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18556
18557 # Set to yes if building a shared library automatically hardcodes DIR into the library
18558 # and all subsequent libraries and executables linked against it.
18559 hardcode_automatic=$hardcode_automatic_RC
18560
18561 # Variables whose values should be saved in libtool wrapper scripts and
18562 # restored at relink time.
18563 variables_saved_for_relink="$variables_saved_for_relink"
18564
18565 # Whether libtool must link a program against all its dependency libraries.
18566 link_all_deplibs=$link_all_deplibs_RC
18567
18568 # Compile-time system search path for libraries
18569 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18570
18571 # Run-time system search path for libraries
18572 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18573
18574 # Fix the shell variable \$srcfile for the compiler.
18575 fix_srcfile_path="$fix_srcfile_path_RC"
18576
18577 # Set to yes if exported symbols are required.
18578 always_export_symbols=$always_export_symbols_RC
18579
18580 # The commands to list exported symbols.
18581 export_symbols_cmds=$lt_export_symbols_cmds_RC
18582
18583 # The commands to extract the exported symbol list from a shared archive.
18584 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18585
18586 # Symbols that should not be listed in the preloaded symbols.
18587 exclude_expsyms=$lt_exclude_expsyms_RC
18588
18589 # Symbols that must always be exported.
18590 include_expsyms=$lt_include_expsyms_RC
18591
18592 # ### END LIBTOOL TAG CONFIG: $tagname
18593
18594 __EOF__
18595
18596
18597 else
18598   # If there is no Makefile yet, we rely on a make rule to execute
18599   # `config.status --recheck' to rerun these tests and create the
18600   # libtool script then.
18601   test -f Makefile && make "$ltmain"
18602 fi
18603
18604
18605 ac_ext=c
18606 ac_cpp='$CPP $CPPFLAGS'
18607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18610
18611 CC="$lt_save_CC"
18612
18613         ;;
18614
18615       *)
18616         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18617 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18618    { (exit 1); exit 1; }; }
18619         ;;
18620       esac
18621
18622       # Append the new tag name to the list of available tags.
18623       if test -n "$tagname" ; then
18624       available_tags="$available_tags $tagname"
18625     fi
18626     fi
18627   done
18628   IFS="$lt_save_ifs"
18629
18630   # Now substitute the updated list of available tags.
18631   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18632     mv "${ofile}T" "$ofile"
18633     chmod +x "$ofile"
18634   else
18635     rm -f "${ofile}T"
18636     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18637 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18638    { (exit 1); exit 1; }; }
18639   fi
18640 fi
18641
18642
18643
18644 # This can be used to rebuild libtool when needed
18645 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18646
18647 # Always use our own libtool.
18648 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18649
18650 # Prevent multiple expansion
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672 # Extract the first word of "dot", so it can be a program name with args.
18673 set dummy dot; ac_word=$2
18674 echo "$as_me:$LINENO: checking for $ac_word" >&5
18675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18676 if test "${ac_cv_path_DOT+set}" = set; then
18677   echo $ECHO_N "(cached) $ECHO_C" >&6
18678 else
18679   case $DOT in
18680   [\\/]* | ?:[\\/]*)
18681   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18682   ;;
18683   *)
18684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18685 for as_dir in $PATH
18686 do
18687   IFS=$as_save_IFS
18688   test -z "$as_dir" && as_dir=.
18689   for ac_exec_ext in '' $ac_executable_extensions; do
18690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18691     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18693     break 2
18694   fi
18695 done
18696 done
18697
18698   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18699   ;;
18700 esac
18701 fi
18702 DOT=$ac_cv_path_DOT
18703
18704 if test -n "$DOT"; then
18705   echo "$as_me:$LINENO: result: $DOT" >&5
18706 echo "${ECHO_T}$DOT" >&6
18707 else
18708   echo "$as_me:$LINENO: result: no" >&5
18709 echo "${ECHO_T}no" >&6
18710 fi
18711
18712 # Extract the first word of "etags", so it can be a program name with args.
18713 set dummy etags; ac_word=$2
18714 echo "$as_me:$LINENO: checking for $ac_word" >&5
18715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18716 if test "${ac_cv_path_ETAGS+set}" = set; then
18717   echo $ECHO_N "(cached) $ECHO_C" >&6
18718 else
18719   case $ETAGS in
18720   [\\/]* | ?:[\\/]*)
18721   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18722   ;;
18723   *)
18724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18725 for as_dir in $PATH
18726 do
18727   IFS=$as_save_IFS
18728   test -z "$as_dir" && as_dir=.
18729   for ac_exec_ext in '' $ac_executable_extensions; do
18730   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18731     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18733     break 2
18734   fi
18735 done
18736 done
18737
18738   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18739   ;;
18740 esac
18741 fi
18742 ETAGS=$ac_cv_path_ETAGS
18743
18744 if test -n "$ETAGS"; then
18745   echo "$as_me:$LINENO: result: $ETAGS" >&5
18746 echo "${ECHO_T}$ETAGS" >&6
18747 else
18748   echo "$as_me:$LINENO: result: no" >&5
18749 echo "${ECHO_T}no" >&6
18750 fi
18751
18752 etags_version=`$ETAGS --version 2>&1`
18753 case "$etags_version" in
18754         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18755         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18756         *) ETAGSFLAGS="" ;;
18757 esac
18758 ETAGSFLAGS=$ETAGSFLAGS
18759
18760 # Extract the first word of "python", so it can be a program name with args.
18761 set dummy python; ac_word=$2
18762 echo "$as_me:$LINENO: checking for $ac_word" >&5
18763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18764 if test "${ac_cv_path_PYTHON+set}" = set; then
18765   echo $ECHO_N "(cached) $ECHO_C" >&6
18766 else
18767   case $PYTHON in
18768   [\\/]* | ?:[\\/]*)
18769   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18770   ;;
18771   *)
18772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18773 for as_dir in $PATH
18774 do
18775   IFS=$as_save_IFS
18776   test -z "$as_dir" && as_dir=.
18777   for ac_exec_ext in '' $ac_executable_extensions; do
18778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18779     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18781     break 2
18782   fi
18783 done
18784 done
18785
18786   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18787   ;;
18788 esac
18789 fi
18790 PYTHON=$ac_cv_path_PYTHON
18791
18792 if test -n "$PYTHON"; then
18793   echo "$as_me:$LINENO: result: $PYTHON" >&5
18794 echo "${ECHO_T}$PYTHON" >&6
18795 else
18796   echo "$as_me:$LINENO: result: no" >&5
18797 echo "${ECHO_T}no" >&6
18798 fi
18799
18800 if test "$PYTHON" = "false"
18801 then
18802         { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18803 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18804 fi
18805 # Extract the first word of "qmtest", so it can be a program name with args.
18806 set dummy qmtest; ac_word=$2
18807 echo "$as_me:$LINENO: checking for $ac_word" >&5
18808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18809 if test "${ac_cv_path_QMTEST+set}" = set; then
18810   echo $ECHO_N "(cached) $ECHO_C" >&6
18811 else
18812   case $QMTEST in
18813   [\\/]* | ?:[\\/]*)
18814   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18815   ;;
18816   *)
18817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18818 for as_dir in $PATH
18819 do
18820   IFS=$as_save_IFS
18821   test -z "$as_dir" && as_dir=.
18822   for ac_exec_ext in '' $ac_executable_extensions; do
18823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18824     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18826     break 2
18827   fi
18828 done
18829 done
18830
18831   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18832   ;;
18833 esac
18834 fi
18835 QMTEST=$ac_cv_path_QMTEST
18836
18837 if test -n "$QMTEST"; then
18838   echo "$as_me:$LINENO: result: $QMTEST" >&5
18839 echo "${ECHO_T}$QMTEST" >&6
18840 else
18841   echo "$as_me:$LINENO: result: no" >&5
18842 echo "${ECHO_T}no" >&6
18843 fi
18844
18845 if test "$QMTEST" = "false"
18846 then
18847         { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18848 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18849 fi
18850
18851 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18852 pymajor=`echo $pyversion | cut -d. -f1`
18853 pyminor=`echo $pyversion | cut -d. -f2`
18854
18855 if test "$pymajor" -ge "2"
18856 then
18857         if test "$pymajor" -eq "2"
18858         then
18859                 if test "$pyminor" -lt "2"
18860                 then
18861                         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18862 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18863                 fi
18864         fi
18865 else
18866         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18867 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18868 fi
18869
18870
18871
18872
18873 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18874 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18875 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18876   echo $ECHO_N "(cached) $ECHO_C" >&6
18877 else
18878   ac_check_lib_save_LIBS=$LIBS
18879 LIBS="-lelf  $LIBS"
18880 cat >conftest.$ac_ext <<_ACEOF
18881 /* confdefs.h.  */
18882 _ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h.  */
18886
18887 /* Override any gcc2 internal prototype to avoid an error.  */
18888 #ifdef __cplusplus
18889 extern "C"
18890 #endif
18891 /* We use char because int might match the return type of a gcc2
18892    builtin and then its argument prototype would still apply.  */
18893 char elf_begin ();
18894 int
18895 main ()
18896 {
18897 elf_begin ();
18898   ;
18899   return 0;
18900 }
18901 _ACEOF
18902 rm -f conftest.$ac_objext conftest$ac_exeext
18903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18904   (eval $ac_link) 2>conftest.er1
18905   ac_status=$?
18906   grep -v '^ *+' conftest.er1 >conftest.err
18907   rm -f conftest.er1
18908   cat conftest.err >&5
18909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910   (exit $ac_status); } &&
18911          { ac_try='test -z "$ac_c_werror_flag"
18912                          || test ! -s conftest.err'
18913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18914   (eval $ac_try) 2>&5
18915   ac_status=$?
18916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917   (exit $ac_status); }; } &&
18918          { ac_try='test -s conftest$ac_exeext'
18919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18920   (eval $ac_try) 2>&5
18921   ac_status=$?
18922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923   (exit $ac_status); }; }; then
18924   ac_cv_lib_elf_elf_begin=yes
18925 else
18926   echo "$as_me: failed program was:" >&5
18927 sed 's/^/| /' conftest.$ac_ext >&5
18928
18929 ac_cv_lib_elf_elf_begin=no
18930 fi
18931 rm -f conftest.err conftest.$ac_objext \
18932       conftest$ac_exeext conftest.$ac_ext
18933 LIBS=$ac_check_lib_save_LIBS
18934 fi
18935 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18936 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18937 if test $ac_cv_lib_elf_elf_begin = yes; then
18938   cat >>confdefs.h <<_ACEOF
18939 #define HAVE_LIBELF 1
18940 _ACEOF
18941
18942   LIBS="-lelf $LIBS"
18943
18944 fi
18945
18946
18947 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18948 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18949 if test "${ac_cv_search_dlopen+set}" = set; then
18950   echo $ECHO_N "(cached) $ECHO_C" >&6
18951 else
18952   ac_func_search_save_LIBS=$LIBS
18953 ac_cv_search_dlopen=no
18954 cat >conftest.$ac_ext <<_ACEOF
18955 /* confdefs.h.  */
18956 _ACEOF
18957 cat confdefs.h >>conftest.$ac_ext
18958 cat >>conftest.$ac_ext <<_ACEOF
18959 /* end confdefs.h.  */
18960
18961 /* Override any gcc2 internal prototype to avoid an error.  */
18962 #ifdef __cplusplus
18963 extern "C"
18964 #endif
18965 /* We use char because int might match the return type of a gcc2
18966    builtin and then its argument prototype would still apply.  */
18967 char dlopen ();
18968 int
18969 main ()
18970 {
18971 dlopen ();
18972   ;
18973   return 0;
18974 }
18975 _ACEOF
18976 rm -f conftest.$ac_objext conftest$ac_exeext
18977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18978   (eval $ac_link) 2>conftest.er1
18979   ac_status=$?
18980   grep -v '^ *+' conftest.er1 >conftest.err
18981   rm -f conftest.er1
18982   cat conftest.err >&5
18983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984   (exit $ac_status); } &&
18985          { ac_try='test -z "$ac_c_werror_flag"
18986                          || test ! -s conftest.err'
18987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18988   (eval $ac_try) 2>&5
18989   ac_status=$?
18990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991   (exit $ac_status); }; } &&
18992          { ac_try='test -s conftest$ac_exeext'
18993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994   (eval $ac_try) 2>&5
18995   ac_status=$?
18996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997   (exit $ac_status); }; }; then
18998   ac_cv_search_dlopen="none required"
18999 else
19000   echo "$as_me: failed program was:" >&5
19001 sed 's/^/| /' conftest.$ac_ext >&5
19002
19003 fi
19004 rm -f conftest.err conftest.$ac_objext \
19005       conftest$ac_exeext conftest.$ac_ext
19006 if test "$ac_cv_search_dlopen" = no; then
19007   for ac_lib in dl; do
19008     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19009     cat >conftest.$ac_ext <<_ACEOF
19010 /* confdefs.h.  */
19011 _ACEOF
19012 cat confdefs.h >>conftest.$ac_ext
19013 cat >>conftest.$ac_ext <<_ACEOF
19014 /* end confdefs.h.  */
19015
19016 /* Override any gcc2 internal prototype to avoid an error.  */
19017 #ifdef __cplusplus
19018 extern "C"
19019 #endif
19020 /* We use char because int might match the return type of a gcc2
19021    builtin and then its argument prototype would still apply.  */
19022 char dlopen ();
19023 int
19024 main ()
19025 {
19026 dlopen ();
19027   ;
19028   return 0;
19029 }
19030 _ACEOF
19031 rm -f conftest.$ac_objext conftest$ac_exeext
19032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19033   (eval $ac_link) 2>conftest.er1
19034   ac_status=$?
19035   grep -v '^ *+' conftest.er1 >conftest.err
19036   rm -f conftest.er1
19037   cat conftest.err >&5
19038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039   (exit $ac_status); } &&
19040          { ac_try='test -z "$ac_c_werror_flag"
19041                          || test ! -s conftest.err'
19042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19043   (eval $ac_try) 2>&5
19044   ac_status=$?
19045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046   (exit $ac_status); }; } &&
19047          { ac_try='test -s conftest$ac_exeext'
19048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19049   (eval $ac_try) 2>&5
19050   ac_status=$?
19051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052   (exit $ac_status); }; }; then
19053   ac_cv_search_dlopen="-l$ac_lib"
19054 break
19055 else
19056   echo "$as_me: failed program was:" >&5
19057 sed 's/^/| /' conftest.$ac_ext >&5
19058
19059 fi
19060 rm -f conftest.err conftest.$ac_objext \
19061       conftest$ac_exeext conftest.$ac_ext
19062   done
19063 fi
19064 LIBS=$ac_func_search_save_LIBS
19065 fi
19066 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19067 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19068 if test "$ac_cv_search_dlopen" != no; then
19069   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
19070
19071 cat >>confdefs.h <<\_ACEOF
19072 #define HAVE_DLOPEN 1
19073 _ACEOF
19074
19075 else
19076   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19077 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
19078 fi
19079
19080
19081 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19082 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19083 if test "${ac_cv_search_mallinfo+set}" = set; then
19084   echo $ECHO_N "(cached) $ECHO_C" >&6
19085 else
19086   ac_func_search_save_LIBS=$LIBS
19087 ac_cv_search_mallinfo=no
19088 cat >conftest.$ac_ext <<_ACEOF
19089 /* confdefs.h.  */
19090 _ACEOF
19091 cat confdefs.h >>conftest.$ac_ext
19092 cat >>conftest.$ac_ext <<_ACEOF
19093 /* end confdefs.h.  */
19094
19095 /* Override any gcc2 internal prototype to avoid an error.  */
19096 #ifdef __cplusplus
19097 extern "C"
19098 #endif
19099 /* We use char because int might match the return type of a gcc2
19100    builtin and then its argument prototype would still apply.  */
19101 char mallinfo ();
19102 int
19103 main ()
19104 {
19105 mallinfo ();
19106   ;
19107   return 0;
19108 }
19109 _ACEOF
19110 rm -f conftest.$ac_objext conftest$ac_exeext
19111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19112   (eval $ac_link) 2>conftest.er1
19113   ac_status=$?
19114   grep -v '^ *+' conftest.er1 >conftest.err
19115   rm -f conftest.er1
19116   cat conftest.err >&5
19117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118   (exit $ac_status); } &&
19119          { ac_try='test -z "$ac_c_werror_flag"
19120                          || test ! -s conftest.err'
19121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122   (eval $ac_try) 2>&5
19123   ac_status=$?
19124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125   (exit $ac_status); }; } &&
19126          { ac_try='test -s conftest$ac_exeext'
19127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128   (eval $ac_try) 2>&5
19129   ac_status=$?
19130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131   (exit $ac_status); }; }; then
19132   ac_cv_search_mallinfo="none required"
19133 else
19134   echo "$as_me: failed program was:" >&5
19135 sed 's/^/| /' conftest.$ac_ext >&5
19136
19137 fi
19138 rm -f conftest.err conftest.$ac_objext \
19139       conftest$ac_exeext conftest.$ac_ext
19140 if test "$ac_cv_search_mallinfo" = no; then
19141   for ac_lib in malloc; do
19142     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19143     cat >conftest.$ac_ext <<_ACEOF
19144 /* confdefs.h.  */
19145 _ACEOF
19146 cat confdefs.h >>conftest.$ac_ext
19147 cat >>conftest.$ac_ext <<_ACEOF
19148 /* end confdefs.h.  */
19149
19150 /* Override any gcc2 internal prototype to avoid an error.  */
19151 #ifdef __cplusplus
19152 extern "C"
19153 #endif
19154 /* We use char because int might match the return type of a gcc2
19155    builtin and then its argument prototype would still apply.  */
19156 char mallinfo ();
19157 int
19158 main ()
19159 {
19160 mallinfo ();
19161   ;
19162   return 0;
19163 }
19164 _ACEOF
19165 rm -f conftest.$ac_objext conftest$ac_exeext
19166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19167   (eval $ac_link) 2>conftest.er1
19168   ac_status=$?
19169   grep -v '^ *+' conftest.er1 >conftest.err
19170   rm -f conftest.er1
19171   cat conftest.err >&5
19172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173   (exit $ac_status); } &&
19174          { ac_try='test -z "$ac_c_werror_flag"
19175                          || test ! -s conftest.err'
19176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19177   (eval $ac_try) 2>&5
19178   ac_status=$?
19179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180   (exit $ac_status); }; } &&
19181          { ac_try='test -s conftest$ac_exeext'
19182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183   (eval $ac_try) 2>&5
19184   ac_status=$?
19185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186   (exit $ac_status); }; }; then
19187   ac_cv_search_mallinfo="-l$ac_lib"
19188 break
19189 else
19190   echo "$as_me: failed program was:" >&5
19191 sed 's/^/| /' conftest.$ac_ext >&5
19192
19193 fi
19194 rm -f conftest.err conftest.$ac_objext \
19195       conftest$ac_exeext conftest.$ac_ext
19196   done
19197 fi
19198 LIBS=$ac_func_search_save_LIBS
19199 fi
19200 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19201 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19202 if test "$ac_cv_search_mallinfo" != no; then
19203   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
19204
19205 cat >>confdefs.h <<\_ACEOF
19206 #define HAVE_MALLINFO 1
19207 _ACEOF
19208
19209 fi
19210
19211
19212 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19213 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19214 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19215   echo $ECHO_N "(cached) $ECHO_C" >&6
19216 else
19217   ac_func_search_save_LIBS=$LIBS
19218 ac_cv_search_pthread_mutex_lock=no
19219 cat >conftest.$ac_ext <<_ACEOF
19220 /* confdefs.h.  */
19221 _ACEOF
19222 cat confdefs.h >>conftest.$ac_ext
19223 cat >>conftest.$ac_ext <<_ACEOF
19224 /* end confdefs.h.  */
19225
19226 /* Override any gcc2 internal prototype to avoid an error.  */
19227 #ifdef __cplusplus
19228 extern "C"
19229 #endif
19230 /* We use char because int might match the return type of a gcc2
19231    builtin and then its argument prototype would still apply.  */
19232 char pthread_mutex_lock ();
19233 int
19234 main ()
19235 {
19236 pthread_mutex_lock ();
19237   ;
19238   return 0;
19239 }
19240 _ACEOF
19241 rm -f conftest.$ac_objext conftest$ac_exeext
19242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19243   (eval $ac_link) 2>conftest.er1
19244   ac_status=$?
19245   grep -v '^ *+' conftest.er1 >conftest.err
19246   rm -f conftest.er1
19247   cat conftest.err >&5
19248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249   (exit $ac_status); } &&
19250          { ac_try='test -z "$ac_c_werror_flag"
19251                          || test ! -s conftest.err'
19252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253   (eval $ac_try) 2>&5
19254   ac_status=$?
19255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256   (exit $ac_status); }; } &&
19257          { ac_try='test -s conftest$ac_exeext'
19258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259   (eval $ac_try) 2>&5
19260   ac_status=$?
19261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262   (exit $ac_status); }; }; then
19263   ac_cv_search_pthread_mutex_lock="none required"
19264 else
19265   echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.$ac_ext >&5
19267
19268 fi
19269 rm -f conftest.err conftest.$ac_objext \
19270       conftest$ac_exeext conftest.$ac_ext
19271 if test "$ac_cv_search_pthread_mutex_lock" = no; then
19272   for ac_lib in pthread; do
19273     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19274     cat >conftest.$ac_ext <<_ACEOF
19275 /* confdefs.h.  */
19276 _ACEOF
19277 cat confdefs.h >>conftest.$ac_ext
19278 cat >>conftest.$ac_ext <<_ACEOF
19279 /* end confdefs.h.  */
19280
19281 /* Override any gcc2 internal prototype to avoid an error.  */
19282 #ifdef __cplusplus
19283 extern "C"
19284 #endif
19285 /* We use char because int might match the return type of a gcc2
19286    builtin and then its argument prototype would still apply.  */
19287 char pthread_mutex_lock ();
19288 int
19289 main ()
19290 {
19291 pthread_mutex_lock ();
19292   ;
19293   return 0;
19294 }
19295 _ACEOF
19296 rm -f conftest.$ac_objext conftest$ac_exeext
19297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19298   (eval $ac_link) 2>conftest.er1
19299   ac_status=$?
19300   grep -v '^ *+' conftest.er1 >conftest.err
19301   rm -f conftest.er1
19302   cat conftest.err >&5
19303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304   (exit $ac_status); } &&
19305          { ac_try='test -z "$ac_c_werror_flag"
19306                          || test ! -s conftest.err'
19307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308   (eval $ac_try) 2>&5
19309   ac_status=$?
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); }; } &&
19312          { ac_try='test -s conftest$ac_exeext'
19313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314   (eval $ac_try) 2>&5
19315   ac_status=$?
19316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317   (exit $ac_status); }; }; then
19318   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19319 break
19320 else
19321   echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19323
19324 fi
19325 rm -f conftest.err conftest.$ac_objext \
19326       conftest$ac_exeext conftest.$ac_ext
19327   done
19328 fi
19329 LIBS=$ac_func_search_save_LIBS
19330 fi
19331 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19332 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19333 if test "$ac_cv_search_pthread_mutex_lock" != no; then
19334   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
19335   HAVE_PTHREAD_MUTEX_LOCK=1
19336 else
19337   HAVE_PTHREAD_MUTEX_LOCK=0
19338 fi
19339
19340
19341
19342 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19343 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19344 if test "${ac_cv_header_stdc+set}" = set; then
19345   echo $ECHO_N "(cached) $ECHO_C" >&6
19346 else
19347   cat >conftest.$ac_ext <<_ACEOF
19348 /* confdefs.h.  */
19349 _ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h.  */
19353 #include <stdlib.h>
19354 #include <stdarg.h>
19355 #include <string.h>
19356 #include <float.h>
19357
19358 int
19359 main ()
19360 {
19361
19362   ;
19363   return 0;
19364 }
19365 _ACEOF
19366 rm -f conftest.$ac_objext
19367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19368   (eval $ac_compile) 2>conftest.er1
19369   ac_status=$?
19370   grep -v '^ *+' conftest.er1 >conftest.err
19371   rm -f conftest.er1
19372   cat conftest.err >&5
19373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374   (exit $ac_status); } &&
19375          { ac_try='test -z "$ac_c_werror_flag"
19376                          || test ! -s conftest.err'
19377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378   (eval $ac_try) 2>&5
19379   ac_status=$?
19380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381   (exit $ac_status); }; } &&
19382          { ac_try='test -s conftest.$ac_objext'
19383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384   (eval $ac_try) 2>&5
19385   ac_status=$?
19386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387   (exit $ac_status); }; }; then
19388   ac_cv_header_stdc=yes
19389 else
19390   echo "$as_me: failed program was:" >&5
19391 sed 's/^/| /' conftest.$ac_ext >&5
19392
19393 ac_cv_header_stdc=no
19394 fi
19395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19396
19397 if test $ac_cv_header_stdc = yes; then
19398   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19399   cat >conftest.$ac_ext <<_ACEOF
19400 /* confdefs.h.  */
19401 _ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h.  */
19405 #include <string.h>
19406
19407 _ACEOF
19408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19409   $EGREP "memchr" >/dev/null 2>&1; then
19410   :
19411 else
19412   ac_cv_header_stdc=no
19413 fi
19414 rm -f conftest*
19415
19416 fi
19417
19418 if test $ac_cv_header_stdc = yes; then
19419   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19420   cat >conftest.$ac_ext <<_ACEOF
19421 /* confdefs.h.  */
19422 _ACEOF
19423 cat confdefs.h >>conftest.$ac_ext
19424 cat >>conftest.$ac_ext <<_ACEOF
19425 /* end confdefs.h.  */
19426 #include <stdlib.h>
19427
19428 _ACEOF
19429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19430   $EGREP "free" >/dev/null 2>&1; then
19431   :
19432 else
19433   ac_cv_header_stdc=no
19434 fi
19435 rm -f conftest*
19436
19437 fi
19438
19439 if test $ac_cv_header_stdc = yes; then
19440   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19441   if test "$cross_compiling" = yes; then
19442   :
19443 else
19444   cat >conftest.$ac_ext <<_ACEOF
19445 /* confdefs.h.  */
19446 _ACEOF
19447 cat confdefs.h >>conftest.$ac_ext
19448 cat >>conftest.$ac_ext <<_ACEOF
19449 /* end confdefs.h.  */
19450 #include <ctype.h>
19451 #if ((' ' & 0x0FF) == 0x020)
19452 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19453 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19454 #else
19455 # define ISLOWER(c) \
19456                    (('a' <= (c) && (c) <= 'i') \
19457                      || ('j' <= (c) && (c) <= 'r') \
19458                      || ('s' <= (c) && (c) <= 'z'))
19459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19460 #endif
19461
19462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19463 int
19464 main ()
19465 {
19466   int i;
19467   for (i = 0; i < 256; i++)
19468     if (XOR (islower (i), ISLOWER (i))
19469         || toupper (i) != TOUPPER (i))
19470       exit(2);
19471   exit (0);
19472 }
19473 _ACEOF
19474 rm -f conftest$ac_exeext
19475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19476   (eval $ac_link) 2>&5
19477   ac_status=$?
19478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481   (eval $ac_try) 2>&5
19482   ac_status=$?
19483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484   (exit $ac_status); }; }; then
19485   :
19486 else
19487   echo "$as_me: program exited with status $ac_status" >&5
19488 echo "$as_me: failed program was:" >&5
19489 sed 's/^/| /' conftest.$ac_ext >&5
19490
19491 ( exit $ac_status )
19492 ac_cv_header_stdc=no
19493 fi
19494 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19495 fi
19496 fi
19497 fi
19498 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19499 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19500 if test $ac_cv_header_stdc = yes; then
19501
19502 cat >>confdefs.h <<\_ACEOF
19503 #define STDC_HEADERS 1
19504 _ACEOF
19505
19506 fi
19507
19508 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19509 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19510 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19511   echo $ECHO_N "(cached) $ECHO_C" >&6
19512 else
19513   cat >conftest.$ac_ext <<_ACEOF
19514 /* confdefs.h.  */
19515 _ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h.  */
19519 #include <sys/types.h>
19520 #include <sys/wait.h>
19521 #ifndef WEXITSTATUS
19522 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19523 #endif
19524 #ifndef WIFEXITED
19525 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19526 #endif
19527
19528 int
19529 main ()
19530 {
19531   int s;
19532   wait (&s);
19533   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19534   ;
19535   return 0;
19536 }
19537 _ACEOF
19538 rm -f conftest.$ac_objext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19540   (eval $ac_compile) 2>conftest.er1
19541   ac_status=$?
19542   grep -v '^ *+' conftest.er1 >conftest.err
19543   rm -f conftest.er1
19544   cat conftest.err >&5
19545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546   (exit $ac_status); } &&
19547          { ac_try='test -z "$ac_c_werror_flag"
19548                          || test ! -s conftest.err'
19549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550   (eval $ac_try) 2>&5
19551   ac_status=$?
19552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553   (exit $ac_status); }; } &&
19554          { ac_try='test -s conftest.$ac_objext'
19555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19556   (eval $ac_try) 2>&5
19557   ac_status=$?
19558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559   (exit $ac_status); }; }; then
19560   ac_cv_header_sys_wait_h=yes
19561 else
19562   echo "$as_me: failed program was:" >&5
19563 sed 's/^/| /' conftest.$ac_ext >&5
19564
19565 ac_cv_header_sys_wait_h=no
19566 fi
19567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19568 fi
19569 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19570 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19571 if test $ac_cv_header_sys_wait_h = yes; then
19572
19573 cat >>confdefs.h <<\_ACEOF
19574 #define HAVE_SYS_WAIT_H 1
19575 _ACEOF
19576
19577 fi
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591 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
19592 do
19593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19595   echo "$as_me:$LINENO: checking for $ac_header" >&5
19596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19598   echo $ECHO_N "(cached) $ECHO_C" >&6
19599 fi
19600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19602 else
19603   # Is the header compilable?
19604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19606 cat >conftest.$ac_ext <<_ACEOF
19607 /* confdefs.h.  */
19608 _ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h.  */
19612 $ac_includes_default
19613 #include <$ac_header>
19614 _ACEOF
19615 rm -f conftest.$ac_objext
19616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19617   (eval $ac_compile) 2>conftest.er1
19618   ac_status=$?
19619   grep -v '^ *+' conftest.er1 >conftest.err
19620   rm -f conftest.er1
19621   cat conftest.err >&5
19622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623   (exit $ac_status); } &&
19624          { ac_try='test -z "$ac_c_werror_flag"
19625                          || test ! -s conftest.err'
19626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19627   (eval $ac_try) 2>&5
19628   ac_status=$?
19629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630   (exit $ac_status); }; } &&
19631          { ac_try='test -s conftest.$ac_objext'
19632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19633   (eval $ac_try) 2>&5
19634   ac_status=$?
19635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636   (exit $ac_status); }; }; then
19637   ac_header_compiler=yes
19638 else
19639   echo "$as_me: failed program was:" >&5
19640 sed 's/^/| /' conftest.$ac_ext >&5
19641
19642 ac_header_compiler=no
19643 fi
19644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19646 echo "${ECHO_T}$ac_header_compiler" >&6
19647
19648 # Is the header present?
19649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19651 cat >conftest.$ac_ext <<_ACEOF
19652 /* confdefs.h.  */
19653 _ACEOF
19654 cat confdefs.h >>conftest.$ac_ext
19655 cat >>conftest.$ac_ext <<_ACEOF
19656 /* end confdefs.h.  */
19657 #include <$ac_header>
19658 _ACEOF
19659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19660   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19661   ac_status=$?
19662   grep -v '^ *+' conftest.er1 >conftest.err
19663   rm -f conftest.er1
19664   cat conftest.err >&5
19665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666   (exit $ac_status); } >/dev/null; then
19667   if test -s conftest.err; then
19668     ac_cpp_err=$ac_c_preproc_warn_flag
19669     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19670   else
19671     ac_cpp_err=
19672   fi
19673 else
19674   ac_cpp_err=yes
19675 fi
19676 if test -z "$ac_cpp_err"; then
19677   ac_header_preproc=yes
19678 else
19679   echo "$as_me: failed program was:" >&5
19680 sed 's/^/| /' conftest.$ac_ext >&5
19681
19682   ac_header_preproc=no
19683 fi
19684 rm -f conftest.err conftest.$ac_ext
19685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19686 echo "${ECHO_T}$ac_header_preproc" >&6
19687
19688 # So?  What about this header?
19689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19690   yes:no: )
19691     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19694 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19695     ac_header_preproc=yes
19696     ;;
19697   no:yes:* )
19698     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19700     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19701 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19702     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19703 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19704     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19705 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19706     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19708     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19709 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19710     (
19711       cat <<\_ASBOX
19712 ## ----------------------------------- ##
19713 ## Report this to llvmbugs@cs.uiuc.edu ##
19714 ## ----------------------------------- ##
19715 _ASBOX
19716     ) |
19717       sed "s/^/$as_me: WARNING:     /" >&2
19718     ;;
19719 esac
19720 echo "$as_me:$LINENO: checking for $ac_header" >&5
19721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19723   echo $ECHO_N "(cached) $ECHO_C" >&6
19724 else
19725   eval "$as_ac_Header=\$ac_header_preproc"
19726 fi
19727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19729
19730 fi
19731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19732   cat >>confdefs.h <<_ACEOF
19733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19734 _ACEOF
19735
19736 fi
19737
19738 done
19739
19740
19741 if test "${ac_cv_header_sys_types_h+set}" = set; then
19742   echo "$as_me:$LINENO: checking for sys/types.h" >&5
19743 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19744 if test "${ac_cv_header_sys_types_h+set}" = set; then
19745   echo $ECHO_N "(cached) $ECHO_C" >&6
19746 fi
19747 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19748 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19749 else
19750   # Is the header compilable?
19751 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19752 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19753 cat >conftest.$ac_ext <<_ACEOF
19754 /* confdefs.h.  */
19755 _ACEOF
19756 cat confdefs.h >>conftest.$ac_ext
19757 cat >>conftest.$ac_ext <<_ACEOF
19758 /* end confdefs.h.  */
19759 $ac_includes_default
19760 #include <sys/types.h>
19761 _ACEOF
19762 rm -f conftest.$ac_objext
19763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19764   (eval $ac_compile) 2>conftest.er1
19765   ac_status=$?
19766   grep -v '^ *+' conftest.er1 >conftest.err
19767   rm -f conftest.er1
19768   cat conftest.err >&5
19769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770   (exit $ac_status); } &&
19771          { ac_try='test -z "$ac_c_werror_flag"
19772                          || test ! -s conftest.err'
19773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19774   (eval $ac_try) 2>&5
19775   ac_status=$?
19776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777   (exit $ac_status); }; } &&
19778          { ac_try='test -s conftest.$ac_objext'
19779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780   (eval $ac_try) 2>&5
19781   ac_status=$?
19782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783   (exit $ac_status); }; }; then
19784   ac_header_compiler=yes
19785 else
19786   echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19788
19789 ac_header_compiler=no
19790 fi
19791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19793 echo "${ECHO_T}$ac_header_compiler" >&6
19794
19795 # Is the header present?
19796 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19797 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19798 cat >conftest.$ac_ext <<_ACEOF
19799 /* confdefs.h.  */
19800 _ACEOF
19801 cat confdefs.h >>conftest.$ac_ext
19802 cat >>conftest.$ac_ext <<_ACEOF
19803 /* end confdefs.h.  */
19804 #include <sys/types.h>
19805 _ACEOF
19806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19807   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19808   ac_status=$?
19809   grep -v '^ *+' conftest.er1 >conftest.err
19810   rm -f conftest.er1
19811   cat conftest.err >&5
19812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813   (exit $ac_status); } >/dev/null; then
19814   if test -s conftest.err; then
19815     ac_cpp_err=$ac_c_preproc_warn_flag
19816     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19817   else
19818     ac_cpp_err=
19819   fi
19820 else
19821   ac_cpp_err=yes
19822 fi
19823 if test -z "$ac_cpp_err"; then
19824   ac_header_preproc=yes
19825 else
19826   echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19828
19829   ac_header_preproc=no
19830 fi
19831 rm -f conftest.err conftest.$ac_ext
19832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19833 echo "${ECHO_T}$ac_header_preproc" >&6
19834
19835 # So?  What about this header?
19836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19837   yes:no: )
19838     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19839 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19840     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
19841 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
19842     ac_header_preproc=yes
19843     ;;
19844   no:yes:* )
19845     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19846 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19847     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
19848 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
19849     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
19850 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
19851     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
19852 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19853     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19854 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19855     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
19856 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
19857     (
19858       cat <<\_ASBOX
19859 ## ----------------------------------- ##
19860 ## Report this to llvmbugs@cs.uiuc.edu ##
19861 ## ----------------------------------- ##
19862 _ASBOX
19863     ) |
19864       sed "s/^/$as_me: WARNING:     /" >&2
19865     ;;
19866 esac
19867 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19868 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19869 if test "${ac_cv_header_sys_types_h+set}" = set; then
19870   echo $ECHO_N "(cached) $ECHO_C" >&6
19871 else
19872   ac_cv_header_sys_types_h=$ac_header_preproc
19873 fi
19874 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19875 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19876
19877 fi
19878 if test $ac_cv_header_sys_types_h = yes; then
19879   INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19880 else
19881   INCLUDE_SYS_TYPES_H=''
19882 fi
19883
19884
19885
19886 if test "${ac_cv_header_inttypes_h+set}" = set; then
19887   echo "$as_me:$LINENO: checking for inttypes.h" >&5
19888 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19889 if test "${ac_cv_header_inttypes_h+set}" = set; then
19890   echo $ECHO_N "(cached) $ECHO_C" >&6
19891 fi
19892 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19893 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19894 else
19895   # Is the header compilable?
19896 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19897 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19898 cat >conftest.$ac_ext <<_ACEOF
19899 /* confdefs.h.  */
19900 _ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h.  */
19904 $ac_includes_default
19905 #include <inttypes.h>
19906 _ACEOF
19907 rm -f conftest.$ac_objext
19908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19909   (eval $ac_compile) 2>conftest.er1
19910   ac_status=$?
19911   grep -v '^ *+' conftest.er1 >conftest.err
19912   rm -f conftest.er1
19913   cat conftest.err >&5
19914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915   (exit $ac_status); } &&
19916          { ac_try='test -z "$ac_c_werror_flag"
19917                          || test ! -s conftest.err'
19918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919   (eval $ac_try) 2>&5
19920   ac_status=$?
19921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922   (exit $ac_status); }; } &&
19923          { ac_try='test -s conftest.$ac_objext'
19924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19925   (eval $ac_try) 2>&5
19926   ac_status=$?
19927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928   (exit $ac_status); }; }; then
19929   ac_header_compiler=yes
19930 else
19931   echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19933
19934 ac_header_compiler=no
19935 fi
19936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19937 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19938 echo "${ECHO_T}$ac_header_compiler" >&6
19939
19940 # Is the header present?
19941 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19942 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19943 cat >conftest.$ac_ext <<_ACEOF
19944 /* confdefs.h.  */
19945 _ACEOF
19946 cat confdefs.h >>conftest.$ac_ext
19947 cat >>conftest.$ac_ext <<_ACEOF
19948 /* end confdefs.h.  */
19949 #include <inttypes.h>
19950 _ACEOF
19951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19952   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19953   ac_status=$?
19954   grep -v '^ *+' conftest.er1 >conftest.err
19955   rm -f conftest.er1
19956   cat conftest.err >&5
19957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958   (exit $ac_status); } >/dev/null; then
19959   if test -s conftest.err; then
19960     ac_cpp_err=$ac_c_preproc_warn_flag
19961     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19962   else
19963     ac_cpp_err=
19964   fi
19965 else
19966   ac_cpp_err=yes
19967 fi
19968 if test -z "$ac_cpp_err"; then
19969   ac_header_preproc=yes
19970 else
19971   echo "$as_me: failed program was:" >&5
19972 sed 's/^/| /' conftest.$ac_ext >&5
19973
19974   ac_header_preproc=no
19975 fi
19976 rm -f conftest.err conftest.$ac_ext
19977 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19978 echo "${ECHO_T}$ac_header_preproc" >&6
19979
19980 # So?  What about this header?
19981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19982   yes:no: )
19983     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19984 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19985     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
19986 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
19987     ac_header_preproc=yes
19988     ;;
19989   no:yes:* )
19990     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19991 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19992     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
19993 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
19994     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
19995 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
19996     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
19997 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19998     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19999 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20000     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20001 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20002     (
20003       cat <<\_ASBOX
20004 ## ----------------------------------- ##
20005 ## Report this to llvmbugs@cs.uiuc.edu ##
20006 ## ----------------------------------- ##
20007 _ASBOX
20008     ) |
20009       sed "s/^/$as_me: WARNING:     /" >&2
20010     ;;
20011 esac
20012 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20013 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20014 if test "${ac_cv_header_inttypes_h+set}" = set; then
20015   echo $ECHO_N "(cached) $ECHO_C" >&6
20016 else
20017   ac_cv_header_inttypes_h=$ac_header_preproc
20018 fi
20019 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20020 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20021
20022 fi
20023 if test $ac_cv_header_inttypes_h = yes; then
20024   INCLUDE_INTTYPES_H='#include <inttypes.h>'
20025 else
20026   INCLUDE_INTTYPES_H=''
20027 fi
20028
20029
20030
20031 if test "${ac_cv_header_stdint_h+set}" = set; then
20032   echo "$as_me:$LINENO: checking for stdint.h" >&5
20033 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20034 if test "${ac_cv_header_stdint_h+set}" = set; then
20035   echo $ECHO_N "(cached) $ECHO_C" >&6
20036 fi
20037 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20038 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20039 else
20040   # Is the header compilable?
20041 echo "$as_me:$LINENO: checking stdint.h usability" >&5
20042 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20043 cat >conftest.$ac_ext <<_ACEOF
20044 /* confdefs.h.  */
20045 _ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h.  */
20049 $ac_includes_default
20050 #include <stdint.h>
20051 _ACEOF
20052 rm -f conftest.$ac_objext
20053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20054   (eval $ac_compile) 2>conftest.er1
20055   ac_status=$?
20056   grep -v '^ *+' conftest.er1 >conftest.err
20057   rm -f conftest.er1
20058   cat conftest.err >&5
20059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060   (exit $ac_status); } &&
20061          { ac_try='test -z "$ac_c_werror_flag"
20062                          || test ! -s conftest.err'
20063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20064   (eval $ac_try) 2>&5
20065   ac_status=$?
20066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067   (exit $ac_status); }; } &&
20068          { ac_try='test -s conftest.$ac_objext'
20069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20070   (eval $ac_try) 2>&5
20071   ac_status=$?
20072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073   (exit $ac_status); }; }; then
20074   ac_header_compiler=yes
20075 else
20076   echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20078
20079 ac_header_compiler=no
20080 fi
20081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20083 echo "${ECHO_T}$ac_header_compiler" >&6
20084
20085 # Is the header present?
20086 echo "$as_me:$LINENO: checking stdint.h presence" >&5
20087 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20088 cat >conftest.$ac_ext <<_ACEOF
20089 /* confdefs.h.  */
20090 _ACEOF
20091 cat confdefs.h >>conftest.$ac_ext
20092 cat >>conftest.$ac_ext <<_ACEOF
20093 /* end confdefs.h.  */
20094 #include <stdint.h>
20095 _ACEOF
20096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20097   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20098   ac_status=$?
20099   grep -v '^ *+' conftest.er1 >conftest.err
20100   rm -f conftest.er1
20101   cat conftest.err >&5
20102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103   (exit $ac_status); } >/dev/null; then
20104   if test -s conftest.err; then
20105     ac_cpp_err=$ac_c_preproc_warn_flag
20106     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20107   else
20108     ac_cpp_err=
20109   fi
20110 else
20111   ac_cpp_err=yes
20112 fi
20113 if test -z "$ac_cpp_err"; then
20114   ac_header_preproc=yes
20115 else
20116   echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20118
20119   ac_header_preproc=no
20120 fi
20121 rm -f conftest.err conftest.$ac_ext
20122 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20123 echo "${ECHO_T}$ac_header_preproc" >&6
20124
20125 # So?  What about this header?
20126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20127   yes:no: )
20128     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20129 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20130     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20131 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20132     ac_header_preproc=yes
20133     ;;
20134   no:yes:* )
20135     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20136 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20137     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
20138 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
20139     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20140 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20141     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
20142 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20143     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20144 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20145     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20146 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20147     (
20148       cat <<\_ASBOX
20149 ## ----------------------------------- ##
20150 ## Report this to llvmbugs@cs.uiuc.edu ##
20151 ## ----------------------------------- ##
20152 _ASBOX
20153     ) |
20154       sed "s/^/$as_me: WARNING:     /" >&2
20155     ;;
20156 esac
20157 echo "$as_me:$LINENO: checking for stdint.h" >&5
20158 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20159 if test "${ac_cv_header_stdint_h+set}" = set; then
20160   echo $ECHO_N "(cached) $ECHO_C" >&6
20161 else
20162   ac_cv_header_stdint_h=$ac_header_preproc
20163 fi
20164 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20165 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20166
20167 fi
20168 if test $ac_cv_header_stdint_h = yes; then
20169   INCLUDE_STDINT_H='#include <stdint.h>'
20170 else
20171   INCLUDE_STDINT_H=''
20172 fi
20173
20174
20175
20176
20177
20178 echo "$as_me:$LINENO: checking for pid_t" >&5
20179 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20180 if test "${ac_cv_type_pid_t+set}" = set; then
20181   echo $ECHO_N "(cached) $ECHO_C" >&6
20182 else
20183   cat >conftest.$ac_ext <<_ACEOF
20184 /* confdefs.h.  */
20185 _ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h.  */
20189 $ac_includes_default
20190 int
20191 main ()
20192 {
20193 if ((pid_t *) 0)
20194   return 0;
20195 if (sizeof (pid_t))
20196   return 0;
20197   ;
20198   return 0;
20199 }
20200 _ACEOF
20201 rm -f conftest.$ac_objext
20202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20203   (eval $ac_compile) 2>conftest.er1
20204   ac_status=$?
20205   grep -v '^ *+' conftest.er1 >conftest.err
20206   rm -f conftest.er1
20207   cat conftest.err >&5
20208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209   (exit $ac_status); } &&
20210          { ac_try='test -z "$ac_c_werror_flag"
20211                          || test ! -s conftest.err'
20212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20213   (eval $ac_try) 2>&5
20214   ac_status=$?
20215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216   (exit $ac_status); }; } &&
20217          { ac_try='test -s conftest.$ac_objext'
20218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219   (eval $ac_try) 2>&5
20220   ac_status=$?
20221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222   (exit $ac_status); }; }; then
20223   ac_cv_type_pid_t=yes
20224 else
20225   echo "$as_me: failed program was:" >&5
20226 sed 's/^/| /' conftest.$ac_ext >&5
20227
20228 ac_cv_type_pid_t=no
20229 fi
20230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20231 fi
20232 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20233 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20234 if test $ac_cv_type_pid_t = yes; then
20235   :
20236 else
20237
20238 cat >>confdefs.h <<_ACEOF
20239 #define pid_t int
20240 _ACEOF
20241
20242 fi
20243
20244 echo "$as_me:$LINENO: checking for size_t" >&5
20245 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20246 if test "${ac_cv_type_size_t+set}" = set; then
20247   echo $ECHO_N "(cached) $ECHO_C" >&6
20248 else
20249   cat >conftest.$ac_ext <<_ACEOF
20250 /* confdefs.h.  */
20251 _ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h.  */
20255 $ac_includes_default
20256 int
20257 main ()
20258 {
20259 if ((size_t *) 0)
20260   return 0;
20261 if (sizeof (size_t))
20262   return 0;
20263   ;
20264   return 0;
20265 }
20266 _ACEOF
20267 rm -f conftest.$ac_objext
20268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20269   (eval $ac_compile) 2>conftest.er1
20270   ac_status=$?
20271   grep -v '^ *+' conftest.er1 >conftest.err
20272   rm -f conftest.er1
20273   cat conftest.err >&5
20274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275   (exit $ac_status); } &&
20276          { ac_try='test -z "$ac_c_werror_flag"
20277                          || test ! -s conftest.err'
20278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20279   (eval $ac_try) 2>&5
20280   ac_status=$?
20281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282   (exit $ac_status); }; } &&
20283          { ac_try='test -s conftest.$ac_objext'
20284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20285   (eval $ac_try) 2>&5
20286   ac_status=$?
20287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288   (exit $ac_status); }; }; then
20289   ac_cv_type_size_t=yes
20290 else
20291   echo "$as_me: failed program was:" >&5
20292 sed 's/^/| /' conftest.$ac_ext >&5
20293
20294 ac_cv_type_size_t=no
20295 fi
20296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20297 fi
20298 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20299 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20300 if test $ac_cv_type_size_t = yes; then
20301   :
20302 else
20303
20304 cat >>confdefs.h <<_ACEOF
20305 #define size_t unsigned
20306 _ACEOF
20307
20308 fi
20309
20310 echo "$as_me:$LINENO: checking for int64_t" >&5
20311 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20312 if test "${ac_cv_type_int64_t+set}" = set; then
20313   echo $ECHO_N "(cached) $ECHO_C" >&6
20314 else
20315   cat >conftest.$ac_ext <<_ACEOF
20316 /* confdefs.h.  */
20317 _ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h.  */
20321 $ac_includes_default
20322 int
20323 main ()
20324 {
20325 if ((int64_t *) 0)
20326   return 0;
20327 if (sizeof (int64_t))
20328   return 0;
20329   ;
20330   return 0;
20331 }
20332 _ACEOF
20333 rm -f conftest.$ac_objext
20334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20335   (eval $ac_compile) 2>conftest.er1
20336   ac_status=$?
20337   grep -v '^ *+' conftest.er1 >conftest.err
20338   rm -f conftest.er1
20339   cat conftest.err >&5
20340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341   (exit $ac_status); } &&
20342          { ac_try='test -z "$ac_c_werror_flag"
20343                          || test ! -s conftest.err'
20344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345   (eval $ac_try) 2>&5
20346   ac_status=$?
20347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348   (exit $ac_status); }; } &&
20349          { ac_try='test -s conftest.$ac_objext'
20350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20351   (eval $ac_try) 2>&5
20352   ac_status=$?
20353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354   (exit $ac_status); }; }; then
20355   ac_cv_type_int64_t=yes
20356 else
20357   echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20359
20360 ac_cv_type_int64_t=no
20361 fi
20362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20363 fi
20364 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20365 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20366 if test $ac_cv_type_int64_t = yes; then
20367
20368 cat >>confdefs.h <<_ACEOF
20369 #define HAVE_INT64_T 1
20370 _ACEOF
20371
20372
20373 else
20374   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20375 echo "$as_me: error: Type int64_t required but not found" >&2;}
20376    { (exit 1); exit 1; }; }
20377 fi
20378
20379 echo "$as_me:$LINENO: checking for uint64_t" >&5
20380 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20381 if test "${ac_cv_type_uint64_t+set}" = set; then
20382   echo $ECHO_N "(cached) $ECHO_C" >&6
20383 else
20384   cat >conftest.$ac_ext <<_ACEOF
20385 /* confdefs.h.  */
20386 _ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h.  */
20390 $ac_includes_default
20391 int
20392 main ()
20393 {
20394 if ((uint64_t *) 0)
20395   return 0;
20396 if (sizeof (uint64_t))
20397   return 0;
20398   ;
20399   return 0;
20400 }
20401 _ACEOF
20402 rm -f conftest.$ac_objext
20403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20404   (eval $ac_compile) 2>conftest.er1
20405   ac_status=$?
20406   grep -v '^ *+' conftest.er1 >conftest.err
20407   rm -f conftest.er1
20408   cat conftest.err >&5
20409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410   (exit $ac_status); } &&
20411          { ac_try='test -z "$ac_c_werror_flag"
20412                          || test ! -s conftest.err'
20413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20414   (eval $ac_try) 2>&5
20415   ac_status=$?
20416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417   (exit $ac_status); }; } &&
20418          { ac_try='test -s conftest.$ac_objext'
20419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420   (eval $ac_try) 2>&5
20421   ac_status=$?
20422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423   (exit $ac_status); }; }; then
20424   ac_cv_type_uint64_t=yes
20425 else
20426   echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20428
20429 ac_cv_type_uint64_t=no
20430 fi
20431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20432 fi
20433 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20434 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20435 if test $ac_cv_type_uint64_t = yes; then
20436
20437 cat >>confdefs.h <<_ACEOF
20438 #define HAVE_UINT64_T 1
20439 _ACEOF
20440
20441
20442 else
20443   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20444 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20445    { (exit 1); exit 1; }; }
20446 fi
20447
20448 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20449 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20450 if test "${ac_cv_header_time+set}" = set; then
20451   echo $ECHO_N "(cached) $ECHO_C" >&6
20452 else
20453   cat >conftest.$ac_ext <<_ACEOF
20454 /* confdefs.h.  */
20455 _ACEOF
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h.  */
20459 #include <sys/types.h>
20460 #include <sys/time.h>
20461 #include <time.h>
20462
20463 int
20464 main ()
20465 {
20466 if ((struct tm *) 0)
20467 return 0;
20468   ;
20469   return 0;
20470 }
20471 _ACEOF
20472 rm -f conftest.$ac_objext
20473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20474   (eval $ac_compile) 2>conftest.er1
20475   ac_status=$?
20476   grep -v '^ *+' conftest.er1 >conftest.err
20477   rm -f conftest.er1
20478   cat conftest.err >&5
20479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480   (exit $ac_status); } &&
20481          { ac_try='test -z "$ac_c_werror_flag"
20482                          || test ! -s conftest.err'
20483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484   (eval $ac_try) 2>&5
20485   ac_status=$?
20486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487   (exit $ac_status); }; } &&
20488          { ac_try='test -s conftest.$ac_objext'
20489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490   (eval $ac_try) 2>&5
20491   ac_status=$?
20492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493   (exit $ac_status); }; }; then
20494   ac_cv_header_time=yes
20495 else
20496   echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20498
20499 ac_cv_header_time=no
20500 fi
20501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20502 fi
20503 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20504 echo "${ECHO_T}$ac_cv_header_time" >&6
20505 if test $ac_cv_header_time = yes; then
20506
20507 cat >>confdefs.h <<\_ACEOF
20508 #define TIME_WITH_SYS_TIME 1
20509 _ACEOF
20510
20511 fi
20512
20513 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20514 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20515 if test "${ac_cv_struct_tm+set}" = set; then
20516   echo $ECHO_N "(cached) $ECHO_C" >&6
20517 else
20518   cat >conftest.$ac_ext <<_ACEOF
20519 /* confdefs.h.  */
20520 _ACEOF
20521 cat confdefs.h >>conftest.$ac_ext
20522 cat >>conftest.$ac_ext <<_ACEOF
20523 /* end confdefs.h.  */
20524 #include <sys/types.h>
20525 #include <time.h>
20526
20527 int
20528 main ()
20529 {
20530 struct tm *tp; tp->tm_sec;
20531   ;
20532   return 0;
20533 }
20534 _ACEOF
20535 rm -f conftest.$ac_objext
20536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20537   (eval $ac_compile) 2>conftest.er1
20538   ac_status=$?
20539   grep -v '^ *+' conftest.er1 >conftest.err
20540   rm -f conftest.er1
20541   cat conftest.err >&5
20542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543   (exit $ac_status); } &&
20544          { ac_try='test -z "$ac_c_werror_flag"
20545                          || test ! -s conftest.err'
20546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547   (eval $ac_try) 2>&5
20548   ac_status=$?
20549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550   (exit $ac_status); }; } &&
20551          { ac_try='test -s conftest.$ac_objext'
20552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20553   (eval $ac_try) 2>&5
20554   ac_status=$?
20555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556   (exit $ac_status); }; }; then
20557   ac_cv_struct_tm=time.h
20558 else
20559   echo "$as_me: failed program was:" >&5
20560 sed 's/^/| /' conftest.$ac_ext >&5
20561
20562 ac_cv_struct_tm=sys/time.h
20563 fi
20564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20565 fi
20566 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20567 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20568 if test $ac_cv_struct_tm = sys/time.h; then
20569
20570 cat >>confdefs.h <<\_ACEOF
20571 #define TM_IN_SYS_TIME 1
20572 _ACEOF
20573
20574 fi
20575
20576
20577
20578         echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20579 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
20580
20581
20582         ac_ext=c
20583 ac_cpp='$CPP $CPPFLAGS'
20584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20587
20588         if test "$cross_compiling" = yes; then
20589   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20590 See \`config.log' for more details." >&5
20591 echo "$as_me: error: cannot run test program while cross compiling
20592 See \`config.log' for more details." >&2;}
20593    { (exit 1); exit 1; }; }
20594 else
20595   cat >conftest.$ac_ext <<_ACEOF
20596 /* confdefs.h.  */
20597 _ACEOF
20598 cat confdefs.h >>conftest.$ac_ext
20599 cat >>conftest.$ac_ext <<_ACEOF
20600 /* end confdefs.h.  */
20601 #include <stdio.h>
20602                                  #include <stdlib.h>
20603 int
20604 main ()
20605 {
20606
20607                                  volatile double A, B;
20608                                  char Buffer[100];
20609                                  A = 1;
20610                                  A /= 10.0;
20611                                  sprintf(Buffer, "%a", A);
20612                                  B = atof(Buffer);
20613                                  if (A != B)
20614                                                          return (1);
20615                                  if (A != 0x1.999999999999ap-4)
20616                                                          return (1);
20617                                  return (0);
20618   ;
20619   return 0;
20620 }
20621 _ACEOF
20622 rm -f conftest$ac_exeext
20623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20624   (eval $ac_link) 2>&5
20625   ac_status=$?
20626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629   (eval $ac_try) 2>&5
20630   ac_status=$?
20631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632   (exit $ac_status); }; }; then
20633   ac_c_printf_a=yes
20634 else
20635   echo "$as_me: program exited with status $ac_status" >&5
20636 echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20638
20639 ( exit $ac_status )
20640 ac_c_printf_a=no
20641 fi
20642 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20643 fi
20644         ac_ext=c
20645 ac_cpp='$CPP $CPPFLAGS'
20646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20649
20650         echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20651 echo "${ECHO_T}$ac_c_printf_a" >&6
20652         if test "$ac_c_printf_a" = "yes"; then
20653
20654 cat >>confdefs.h <<\_ACEOF
20655 #define HAVE_PRINTF_A 1
20656 _ACEOF
20657
20658         fi
20659
20660
20661 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20662 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20663 if test "${ac_cv_c_bigendian+set}" = set; then
20664   echo $ECHO_N "(cached) $ECHO_C" >&6
20665 else
20666   # See if sys/param.h defines the BYTE_ORDER macro.
20667 cat >conftest.$ac_ext <<_ACEOF
20668 /* confdefs.h.  */
20669 _ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h.  */
20673 #include <sys/types.h>
20674 #include <sys/param.h>
20675
20676 int
20677 main ()
20678 {
20679 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20680  bogus endian macros
20681 #endif
20682
20683   ;
20684   return 0;
20685 }
20686 _ACEOF
20687 rm -f conftest.$ac_objext
20688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20689   (eval $ac_compile) 2>conftest.er1
20690   ac_status=$?
20691   grep -v '^ *+' conftest.er1 >conftest.err
20692   rm -f conftest.er1
20693   cat conftest.err >&5
20694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695   (exit $ac_status); } &&
20696          { ac_try='test -z "$ac_c_werror_flag"
20697                          || test ! -s conftest.err'
20698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20699   (eval $ac_try) 2>&5
20700   ac_status=$?
20701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702   (exit $ac_status); }; } &&
20703          { ac_try='test -s conftest.$ac_objext'
20704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705   (eval $ac_try) 2>&5
20706   ac_status=$?
20707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708   (exit $ac_status); }; }; then
20709   # It does; now see whether it defined to BIG_ENDIAN or not.
20710 cat >conftest.$ac_ext <<_ACEOF
20711 /* confdefs.h.  */
20712 _ACEOF
20713 cat confdefs.h >>conftest.$ac_ext
20714 cat >>conftest.$ac_ext <<_ACEOF
20715 /* end confdefs.h.  */
20716 #include <sys/types.h>
20717 #include <sys/param.h>
20718
20719 int
20720 main ()
20721 {
20722 #if BYTE_ORDER != BIG_ENDIAN
20723  not big endian
20724 #endif
20725
20726   ;
20727   return 0;
20728 }
20729 _ACEOF
20730 rm -f conftest.$ac_objext
20731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20732   (eval $ac_compile) 2>conftest.er1
20733   ac_status=$?
20734   grep -v '^ *+' conftest.er1 >conftest.err
20735   rm -f conftest.er1
20736   cat conftest.err >&5
20737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738   (exit $ac_status); } &&
20739          { ac_try='test -z "$ac_c_werror_flag"
20740                          || test ! -s conftest.err'
20741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742   (eval $ac_try) 2>&5
20743   ac_status=$?
20744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745   (exit $ac_status); }; } &&
20746          { ac_try='test -s conftest.$ac_objext'
20747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20748   (eval $ac_try) 2>&5
20749   ac_status=$?
20750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751   (exit $ac_status); }; }; then
20752   ac_cv_c_bigendian=yes
20753 else
20754   echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20756
20757 ac_cv_c_bigendian=no
20758 fi
20759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20760 else
20761   echo "$as_me: failed program was:" >&5
20762 sed 's/^/| /' conftest.$ac_ext >&5
20763
20764 # It does not; compile a test program.
20765 if test "$cross_compiling" = yes; then
20766   # try to guess the endianness by grepping values into an object file
20767   ac_cv_c_bigendian=unknown
20768   cat >conftest.$ac_ext <<_ACEOF
20769 /* confdefs.h.  */
20770 _ACEOF
20771 cat confdefs.h >>conftest.$ac_ext
20772 cat >>conftest.$ac_ext <<_ACEOF
20773 /* end confdefs.h.  */
20774 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20775 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20776 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20777 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20778 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20779 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20780 int
20781 main ()
20782 {
20783  _ascii (); _ebcdic ();
20784   ;
20785   return 0;
20786 }
20787 _ACEOF
20788 rm -f conftest.$ac_objext
20789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20790   (eval $ac_compile) 2>conftest.er1
20791   ac_status=$?
20792   grep -v '^ *+' conftest.er1 >conftest.err
20793   rm -f conftest.er1
20794   cat conftest.err >&5
20795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796   (exit $ac_status); } &&
20797          { ac_try='test -z "$ac_c_werror_flag"
20798                          || test ! -s conftest.err'
20799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800   (eval $ac_try) 2>&5
20801   ac_status=$?
20802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803   (exit $ac_status); }; } &&
20804          { ac_try='test -s conftest.$ac_objext'
20805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806   (eval $ac_try) 2>&5
20807   ac_status=$?
20808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809   (exit $ac_status); }; }; then
20810   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20811   ac_cv_c_bigendian=yes
20812 fi
20813 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20814   if test "$ac_cv_c_bigendian" = unknown; then
20815     ac_cv_c_bigendian=no
20816   else
20817     # finding both strings is unlikely to happen, but who knows?
20818     ac_cv_c_bigendian=unknown
20819   fi
20820 fi
20821 else
20822   echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20824
20825 fi
20826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20827 else
20828   cat >conftest.$ac_ext <<_ACEOF
20829 /* confdefs.h.  */
20830 _ACEOF
20831 cat confdefs.h >>conftest.$ac_ext
20832 cat >>conftest.$ac_ext <<_ACEOF
20833 /* end confdefs.h.  */
20834 int
20835 main ()
20836 {
20837   /* Are we little or big endian?  From Harbison&Steele.  */
20838   union
20839   {
20840     long l;
20841     char c[sizeof (long)];
20842   } u;
20843   u.l = 1;
20844   exit (u.c[sizeof (long) - 1] == 1);
20845 }
20846 _ACEOF
20847 rm -f conftest$ac_exeext
20848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20849   (eval $ac_link) 2>&5
20850   ac_status=$?
20851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854   (eval $ac_try) 2>&5
20855   ac_status=$?
20856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857   (exit $ac_status); }; }; then
20858   ac_cv_c_bigendian=no
20859 else
20860   echo "$as_me: program exited with status $ac_status" >&5
20861 echo "$as_me: failed program was:" >&5
20862 sed 's/^/| /' conftest.$ac_ext >&5
20863
20864 ( exit $ac_status )
20865 ac_cv_c_bigendian=yes
20866 fi
20867 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20868 fi
20869 fi
20870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20871 fi
20872 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20873 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20874 case $ac_cv_c_bigendian in
20875   yes)
20876     ENDIAN=big
20877  ;;
20878   no)
20879     ENDIAN=little
20880  ;;
20881   *)
20882     { { echo "$as_me:$LINENO: error: unknown endianness
20883 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20884 echo "$as_me: error: unknown endianness
20885 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20886    { (exit 1); exit 1; }; } ;;
20887 esac
20888
20889
20890 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20891 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20892 if test "${ac_cv_cxx_namespaces+set}" = set; then
20893   echo $ECHO_N "(cached) $ECHO_C" >&6
20894 else
20895
20896
20897  ac_ext=cc
20898 ac_cpp='$CXXCPP $CPPFLAGS'
20899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20902
20903  cat >conftest.$ac_ext <<_ACEOF
20904 /* confdefs.h.  */
20905 _ACEOF
20906 cat confdefs.h >>conftest.$ac_ext
20907 cat >>conftest.$ac_ext <<_ACEOF
20908 /* end confdefs.h.  */
20909 namespace Outer { namespace Inner { int i = 0; }}
20910 int
20911 main ()
20912 {
20913 using namespace Outer::Inner; return i;
20914   ;
20915   return 0;
20916 }
20917 _ACEOF
20918 rm -f conftest.$ac_objext
20919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20920   (eval $ac_compile) 2>conftest.er1
20921   ac_status=$?
20922   grep -v '^ *+' conftest.er1 >conftest.err
20923   rm -f conftest.er1
20924   cat conftest.err >&5
20925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926   (exit $ac_status); } &&
20927          { ac_try='test -z "$ac_cxx_werror_flag"
20928                          || test ! -s conftest.err'
20929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930   (eval $ac_try) 2>&5
20931   ac_status=$?
20932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933   (exit $ac_status); }; } &&
20934          { ac_try='test -s conftest.$ac_objext'
20935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936   (eval $ac_try) 2>&5
20937   ac_status=$?
20938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939   (exit $ac_status); }; }; then
20940   ac_cv_cxx_namespaces=yes
20941 else
20942   echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.$ac_ext >&5
20944
20945 ac_cv_cxx_namespaces=no
20946 fi
20947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20948  ac_ext=c
20949 ac_cpp='$CPP $CPPFLAGS'
20950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20953
20954
20955 fi
20956 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20957 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20958 if test "$ac_cv_cxx_namespaces" = yes; then
20959
20960 cat >>confdefs.h <<\_ACEOF
20961 #define HAVE_NAMESPACES
20962 _ACEOF
20963
20964 fi
20965
20966 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20967 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20968 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20969   echo $ECHO_N "(cached) $ECHO_C" >&6
20970 else
20971
20972
20973
20974   ac_ext=cc
20975 ac_cpp='$CXXCPP $CPPFLAGS'
20976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20979
20980   cat >conftest.$ac_ext <<_ACEOF
20981 /* confdefs.h.  */
20982 _ACEOF
20983 cat confdefs.h >>conftest.$ac_ext
20984 cat >>conftest.$ac_ext <<_ACEOF
20985 /* end confdefs.h.  */
20986 #include <ext/hash_map>
20987 #ifdef HAVE_NAMESPACES
20988 using namespace std;
20989 #endif
20990 int
20991 main ()
20992 {
20993 hash_map<int, int> t;
20994   ;
20995   return 0;
20996 }
20997 _ACEOF
20998 rm -f conftest.$ac_objext
20999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21000   (eval $ac_compile) 2>conftest.er1
21001   ac_status=$?
21002   grep -v '^ *+' conftest.er1 >conftest.err
21003   rm -f conftest.er1
21004   cat conftest.err >&5
21005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006   (exit $ac_status); } &&
21007          { ac_try='test -z "$ac_cxx_werror_flag"
21008                          || test ! -s conftest.err'
21009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010   (eval $ac_try) 2>&5
21011   ac_status=$?
21012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013   (exit $ac_status); }; } &&
21014          { ac_try='test -s conftest.$ac_objext'
21015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21016   (eval $ac_try) 2>&5
21017   ac_status=$?
21018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019   (exit $ac_status); }; }; then
21020   ac_cv_cxx_have_std_ext_hash_map=yes
21021 else
21022   echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21024
21025 ac_cv_cxx_have_std_ext_hash_map=no
21026 fi
21027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21028   ac_ext=c
21029 ac_cpp='$CPP $CPPFLAGS'
21030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21033
21034 fi
21035 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21036 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
21037  HAVE_STD_EXT_HASH_MAP=0
21038  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21039  then
21040    HAVE_STD_EXT_HASH_MAP=1
21041  fi
21042
21043  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21044 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21045 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21046   echo $ECHO_N "(cached) $ECHO_C" >&6
21047 else
21048
21049
21050
21051   ac_ext=cc
21052 ac_cpp='$CXXCPP $CPPFLAGS'
21053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21056
21057   cat >conftest.$ac_ext <<_ACEOF
21058 /* confdefs.h.  */
21059 _ACEOF
21060 cat confdefs.h >>conftest.$ac_ext
21061 cat >>conftest.$ac_ext <<_ACEOF
21062 /* end confdefs.h.  */
21063 #include <ext/hash_map>
21064 #ifdef HAVE_NAMESPACES
21065 using namespace __gnu_cxx;
21066 #endif
21067 int
21068 main ()
21069 {
21070 hash_map<int,int> t;
21071   ;
21072   return 0;
21073 }
21074 _ACEOF
21075 rm -f conftest.$ac_objext
21076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21077   (eval $ac_compile) 2>conftest.er1
21078   ac_status=$?
21079   grep -v '^ *+' conftest.er1 >conftest.err
21080   rm -f conftest.er1
21081   cat conftest.err >&5
21082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083   (exit $ac_status); } &&
21084          { ac_try='test -z "$ac_cxx_werror_flag"
21085                          || test ! -s conftest.err'
21086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21087   (eval $ac_try) 2>&5
21088   ac_status=$?
21089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090   (exit $ac_status); }; } &&
21091          { ac_try='test -s conftest.$ac_objext'
21092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21093   (eval $ac_try) 2>&5
21094   ac_status=$?
21095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096   (exit $ac_status); }; }; then
21097   ac_cv_cxx_have_gnu_ext_hash_map=yes
21098 else
21099   echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21101
21102 ac_cv_cxx_have_gnu_ext_hash_map=no
21103 fi
21104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21105   ac_ext=c
21106 ac_cpp='$CPP $CPPFLAGS'
21107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21110
21111 fi
21112 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21113 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
21114  HAVE_GNU_EXT_HASH_MAP=0
21115  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21116  then
21117    HAVE_GNU_EXT_HASH_MAP=1
21118  fi
21119
21120  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21121 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21122 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21123   echo $ECHO_N "(cached) $ECHO_C" >&6
21124 else
21125
21126
21127
21128   ac_ext=cc
21129 ac_cpp='$CXXCPP $CPPFLAGS'
21130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21133
21134   cat >conftest.$ac_ext <<_ACEOF
21135 /* confdefs.h.  */
21136 _ACEOF
21137 cat confdefs.h >>conftest.$ac_ext
21138 cat >>conftest.$ac_ext <<_ACEOF
21139 /* end confdefs.h.  */
21140 #include <hash_map>
21141 int
21142 main ()
21143 {
21144 hash_map<int,int> t;
21145   ;
21146   return 0;
21147 }
21148 _ACEOF
21149 rm -f conftest.$ac_objext
21150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21151   (eval $ac_compile) 2>conftest.er1
21152   ac_status=$?
21153   grep -v '^ *+' conftest.er1 >conftest.err
21154   rm -f conftest.er1
21155   cat conftest.err >&5
21156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157   (exit $ac_status); } &&
21158          { ac_try='test -z "$ac_cxx_werror_flag"
21159                          || test ! -s conftest.err'
21160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21161   (eval $ac_try) 2>&5
21162   ac_status=$?
21163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164   (exit $ac_status); }; } &&
21165          { ac_try='test -s conftest.$ac_objext'
21166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167   (eval $ac_try) 2>&5
21168   ac_status=$?
21169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170   (exit $ac_status); }; }; then
21171   ac_cv_cxx_have_global_hash_map=yes
21172 else
21173   echo "$as_me: failed program was:" >&5
21174 sed 's/^/| /' conftest.$ac_ext >&5
21175
21176 ac_cv_cxx_have_global_hash_map=no
21177 fi
21178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21179   ac_ext=c
21180 ac_cpp='$CPP $CPPFLAGS'
21181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21184
21185 fi
21186 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21187 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
21188  HAVE_GLOBAL_HASH_MAP=0
21189  if test "$ac_cv_cxx_have_global_hash_map" = yes
21190  then
21191    HAVE_GLOBAL_HASH_MAP=1
21192  fi
21193
21194 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21195 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21196 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
21197   echo $ECHO_N "(cached) $ECHO_C" >&6
21198 else
21199
21200
21201
21202   ac_ext=cc
21203 ac_cpp='$CXXCPP $CPPFLAGS'
21204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21207
21208   cat >conftest.$ac_ext <<_ACEOF
21209 /* confdefs.h.  */
21210 _ACEOF
21211 cat confdefs.h >>conftest.$ac_ext
21212 cat >>conftest.$ac_ext <<_ACEOF
21213 /* end confdefs.h.  */
21214 #include <ext/hash_set>
21215 #ifdef HAVE_NAMESPACES
21216 using namespace std;
21217 #endif
21218 int
21219 main ()
21220 {
21221 hash_set<int> t;
21222   ;
21223   return 0;
21224 }
21225 _ACEOF
21226 rm -f conftest.$ac_objext
21227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21228   (eval $ac_compile) 2>conftest.er1
21229   ac_status=$?
21230   grep -v '^ *+' conftest.er1 >conftest.err
21231   rm -f conftest.er1
21232   cat conftest.err >&5
21233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234   (exit $ac_status); } &&
21235          { ac_try='test -z "$ac_cxx_werror_flag"
21236                          || test ! -s conftest.err'
21237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21238   (eval $ac_try) 2>&5
21239   ac_status=$?
21240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241   (exit $ac_status); }; } &&
21242          { ac_try='test -s conftest.$ac_objext'
21243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21244   (eval $ac_try) 2>&5
21245   ac_status=$?
21246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247   (exit $ac_status); }; }; then
21248   ac_cv_cxx_have_std_ext_hash_set=yes
21249 else
21250   echo "$as_me: failed program was:" >&5
21251 sed 's/^/| /' conftest.$ac_ext >&5
21252
21253 ac_cv_cxx_have_std_ext_hash_set=no
21254 fi
21255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21256   ac_ext=c
21257 ac_cpp='$CPP $CPPFLAGS'
21258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21261
21262 fi
21263 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21264 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
21265  HAVE_STD_EXT_HASH_SET=0
21266  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21267  then
21268    HAVE_STD_EXT_HASH_SET=1
21269  fi
21270
21271  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21272 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21273 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21274   echo $ECHO_N "(cached) $ECHO_C" >&6
21275 else
21276
21277
21278
21279   ac_ext=cc
21280 ac_cpp='$CXXCPP $CPPFLAGS'
21281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21284
21285   cat >conftest.$ac_ext <<_ACEOF
21286 /* confdefs.h.  */
21287 _ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h.  */
21291 #include <ext/hash_set>
21292 #ifdef HAVE_NAMESPACES
21293 using namespace __gnu_cxx;
21294 #endif
21295 int
21296 main ()
21297 {
21298 hash_set<int> t;
21299   ;
21300   return 0;
21301 }
21302 _ACEOF
21303 rm -f conftest.$ac_objext
21304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21305   (eval $ac_compile) 2>conftest.er1
21306   ac_status=$?
21307   grep -v '^ *+' conftest.er1 >conftest.err
21308   rm -f conftest.er1
21309   cat conftest.err >&5
21310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311   (exit $ac_status); } &&
21312          { ac_try='test -z "$ac_cxx_werror_flag"
21313                          || test ! -s conftest.err'
21314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315   (eval $ac_try) 2>&5
21316   ac_status=$?
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); }; } &&
21319          { ac_try='test -s conftest.$ac_objext'
21320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21321   (eval $ac_try) 2>&5
21322   ac_status=$?
21323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324   (exit $ac_status); }; }; then
21325   ac_cv_cxx_have_gnu_ext_hash_set=yes
21326 else
21327   echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21329
21330 ac_cv_cxx_have_gnu_ext_hash_set=no
21331 fi
21332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21333   ac_ext=c
21334 ac_cpp='$CPP $CPPFLAGS'
21335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21338
21339 fi
21340 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21341 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
21342  HAVE_GNU_EXT_HASH_SET=0
21343  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21344  then
21345    HAVE_GNU_EXT_HASH_SET=1
21346  fi
21347
21348  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21349 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21350 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21351   echo $ECHO_N "(cached) $ECHO_C" >&6
21352 else
21353
21354
21355
21356   ac_ext=cc
21357 ac_cpp='$CXXCPP $CPPFLAGS'
21358 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21359 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21360 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21361
21362   cat >conftest.$ac_ext <<_ACEOF
21363 /* confdefs.h.  */
21364 _ACEOF
21365 cat confdefs.h >>conftest.$ac_ext
21366 cat >>conftest.$ac_ext <<_ACEOF
21367 /* end confdefs.h.  */
21368 #include <hash_set>
21369 int
21370 main ()
21371 {
21372 hash_set<int> t; return 0;
21373   ;
21374   return 0;
21375 }
21376 _ACEOF
21377 rm -f conftest.$ac_objext
21378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21379   (eval $ac_compile) 2>conftest.er1
21380   ac_status=$?
21381   grep -v '^ *+' conftest.er1 >conftest.err
21382   rm -f conftest.er1
21383   cat conftest.err >&5
21384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385   (exit $ac_status); } &&
21386          { ac_try='test -z "$ac_cxx_werror_flag"
21387                          || test ! -s conftest.err'
21388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21389   (eval $ac_try) 2>&5
21390   ac_status=$?
21391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392   (exit $ac_status); }; } &&
21393          { ac_try='test -s conftest.$ac_objext'
21394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21395   (eval $ac_try) 2>&5
21396   ac_status=$?
21397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398   (exit $ac_status); }; }; then
21399   ac_cv_cxx_have_global_hash_set=yes
21400 else
21401   echo "$as_me: failed program was:" >&5
21402 sed 's/^/| /' conftest.$ac_ext >&5
21403
21404 ac_cv_cxx_have_global_hash_set=no
21405 fi
21406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21407   ac_ext=c
21408 ac_cpp='$CPP $CPPFLAGS'
21409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21412
21413 fi
21414 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21415 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
21416  HAVE_GLOBAL_HASH_SET=0
21417  if test "$ac_cv_cxx_have_global_hash_set" = yes
21418  then
21419    HAVE_GLOBAL_HASH_SET=1
21420  fi
21421
21422 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21423 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21424 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21425   echo $ECHO_N "(cached) $ECHO_C" >&6
21426 else
21427
21428
21429
21430   ac_ext=cc
21431 ac_cpp='$CXXCPP $CPPFLAGS'
21432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21435
21436   cat >conftest.$ac_ext <<_ACEOF
21437 /* confdefs.h.  */
21438 _ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h.  */
21442 #include <iterator>
21443 #ifdef HAVE_NAMESPACES
21444 using namespace std;
21445 #endif
21446 int
21447 main ()
21448 {
21449 iterator<int,int,int> t; return 0;
21450   ;
21451   return 0;
21452 }
21453 _ACEOF
21454 rm -f conftest.$ac_objext
21455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21456   (eval $ac_compile) 2>conftest.er1
21457   ac_status=$?
21458   grep -v '^ *+' conftest.er1 >conftest.err
21459   rm -f conftest.er1
21460   cat conftest.err >&5
21461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462   (exit $ac_status); } &&
21463          { ac_try='test -z "$ac_cxx_werror_flag"
21464                          || test ! -s conftest.err'
21465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21466   (eval $ac_try) 2>&5
21467   ac_status=$?
21468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469   (exit $ac_status); }; } &&
21470          { ac_try='test -s conftest.$ac_objext'
21471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472   (eval $ac_try) 2>&5
21473   ac_status=$?
21474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475   (exit $ac_status); }; }; then
21476   ac_cv_cxx_have_std_iterator=yes
21477 else
21478   echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21480
21481 ac_cv_cxx_have_std_iterator=no
21482 fi
21483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21484   ac_ext=c
21485 ac_cpp='$CPP $CPPFLAGS'
21486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21489
21490
21491 fi
21492 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21493 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
21494 HAVE_STD_ITERATOR=0
21495 if test "$ac_cv_cxx_have_std_iterator" = yes
21496 then
21497    HAVE_STD_ITERATOR=1
21498 fi
21499
21500 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21501 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21502 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21503   echo $ECHO_N "(cached) $ECHO_C" >&6
21504 else
21505
21506
21507
21508   ac_ext=cc
21509 ac_cpp='$CXXCPP $CPPFLAGS'
21510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21513
21514   cat >conftest.$ac_ext <<_ACEOF
21515 /* confdefs.h.  */
21516 _ACEOF
21517 cat confdefs.h >>conftest.$ac_ext
21518 cat >>conftest.$ac_ext <<_ACEOF
21519 /* end confdefs.h.  */
21520 #include <iterator>
21521 #ifdef HAVE_NAMESPACES
21522 using namespace std;
21523 #endif
21524 int
21525 main ()
21526 {
21527 bidirectional_iterator<int,int> t; return 0;
21528   ;
21529   return 0;
21530 }
21531 _ACEOF
21532 rm -f conftest.$ac_objext
21533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21534   (eval $ac_compile) 2>conftest.er1
21535   ac_status=$?
21536   grep -v '^ *+' conftest.er1 >conftest.err
21537   rm -f conftest.er1
21538   cat conftest.err >&5
21539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540   (exit $ac_status); } &&
21541          { ac_try='test -z "$ac_cxx_werror_flag"
21542                          || test ! -s conftest.err'
21543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544   (eval $ac_try) 2>&5
21545   ac_status=$?
21546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547   (exit $ac_status); }; } &&
21548          { ac_try='test -s conftest.$ac_objext'
21549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550   (eval $ac_try) 2>&5
21551   ac_status=$?
21552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553   (exit $ac_status); }; }; then
21554   ac_cv_cxx_have_bi_iterator=yes
21555 else
21556   echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21558
21559 ac_cv_cxx_have_bi_iterator=no
21560 fi
21561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21562   ac_ext=c
21563 ac_cpp='$CPP $CPPFLAGS'
21564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21567
21568
21569 fi
21570 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21571 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
21572 HAVE_BI_ITERATOR=0
21573 if test "$ac_cv_cxx_have_bi_iterator" = yes
21574 then
21575    HAVE_BI_ITERATOR=1
21576 fi
21577
21578 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21579 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21580 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21581   echo $ECHO_N "(cached) $ECHO_C" >&6
21582 else
21583
21584
21585
21586   ac_ext=cc
21587 ac_cpp='$CXXCPP $CPPFLAGS'
21588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21591
21592   cat >conftest.$ac_ext <<_ACEOF
21593 /* confdefs.h.  */
21594 _ACEOF
21595 cat confdefs.h >>conftest.$ac_ext
21596 cat >>conftest.$ac_ext <<_ACEOF
21597 /* end confdefs.h.  */
21598 #include <iterator>
21599 #ifdef HAVE_NAMESPACES
21600 using namespace std;
21601 #endif
21602 int
21603 main ()
21604 {
21605 forward_iterator<int,int> t; return 0;
21606   ;
21607   return 0;
21608 }
21609 _ACEOF
21610 rm -f conftest.$ac_objext
21611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21612   (eval $ac_compile) 2>conftest.er1
21613   ac_status=$?
21614   grep -v '^ *+' conftest.er1 >conftest.err
21615   rm -f conftest.er1
21616   cat conftest.err >&5
21617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618   (exit $ac_status); } &&
21619          { ac_try='test -z "$ac_cxx_werror_flag"
21620                          || test ! -s conftest.err'
21621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21622   (eval $ac_try) 2>&5
21623   ac_status=$?
21624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625   (exit $ac_status); }; } &&
21626          { ac_try='test -s conftest.$ac_objext'
21627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21628   (eval $ac_try) 2>&5
21629   ac_status=$?
21630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631   (exit $ac_status); }; }; then
21632   ac_cv_cxx_have_fwd_iterator=yes
21633 else
21634   echo "$as_me: failed program was:" >&5
21635 sed 's/^/| /' conftest.$ac_ext >&5
21636
21637 ac_cv_cxx_have_fwd_iterator=no
21638 fi
21639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21640   ac_ext=c
21641 ac_cpp='$CPP $CPPFLAGS'
21642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21645
21646
21647 fi
21648 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21649 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
21650 HAVE_FWD_ITERATOR=0
21651 if test "$ac_cv_cxx_have_fwd_iterator" = yes
21652 then
21653    HAVE_FWD_ITERATOR=1
21654 fi
21655
21656
21657
21658 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21659 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21660 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21661   echo $ECHO_N "(cached) $ECHO_C" >&6
21662 else
21663   ac_ext=cc
21664 ac_cpp='$CXXCPP $CPPFLAGS'
21665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21668
21669   cat >conftest.$ac_ext <<_ACEOF
21670 /* confdefs.h.  */
21671 _ACEOF
21672 cat confdefs.h >>conftest.$ac_ext
21673 cat >>conftest.$ac_ext <<_ACEOF
21674 /* end confdefs.h.  */
21675 #include <math.h>
21676                      int foo(float f) {return isnan(f);}
21677 _ACEOF
21678 rm -f conftest.$ac_objext
21679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21680   (eval $ac_compile) 2>conftest.er1
21681   ac_status=$?
21682   grep -v '^ *+' conftest.er1 >conftest.err
21683   rm -f conftest.er1
21684   cat conftest.err >&5
21685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686   (exit $ac_status); } &&
21687          { ac_try='test -z "$ac_cxx_werror_flag"
21688                          || test ! -s conftest.err'
21689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690   (eval $ac_try) 2>&5
21691   ac_status=$?
21692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693   (exit $ac_status); }; } &&
21694          { ac_try='test -s conftest.$ac_objext'
21695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696   (eval $ac_try) 2>&5
21697   ac_status=$?
21698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699   (exit $ac_status); }; }; then
21700   ac_cv_func_isnan_in_math_h=yes
21701 else
21702   echo "$as_me: failed program was:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21704
21705 ac_cv_func_isnan_in_math_h=no
21706 fi
21707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21708  ac_ext=c
21709 ac_cpp='$CPP $CPPFLAGS'
21710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21713
21714 fi
21715 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
21716 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
21717  if test "$ac_cv_func_isnan_in_math_h" = "yes"
21718  then
21719
21720 cat >>confdefs.h <<\_ACEOF
21721 #define HAVE_ISNAN_IN_MATH_H 1
21722 _ACEOF
21723
21724  fi
21725 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
21726 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
21727 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
21728   echo $ECHO_N "(cached) $ECHO_C" >&6
21729 else
21730   ac_ext=cc
21731 ac_cpp='$CXXCPP $CPPFLAGS'
21732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21735
21736   cat >conftest.$ac_ext <<_ACEOF
21737 /* confdefs.h.  */
21738 _ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h.  */
21742 #include <cmath>
21743                      int foo(float f) {return isnan(f);}
21744 _ACEOF
21745 rm -f conftest.$ac_objext
21746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21747   (eval $ac_compile) 2>conftest.er1
21748   ac_status=$?
21749   grep -v '^ *+' conftest.er1 >conftest.err
21750   rm -f conftest.er1
21751   cat conftest.err >&5
21752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753   (exit $ac_status); } &&
21754          { ac_try='test -z "$ac_cxx_werror_flag"
21755                          || test ! -s conftest.err'
21756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757   (eval $ac_try) 2>&5
21758   ac_status=$?
21759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); }; } &&
21761          { ac_try='test -s conftest.$ac_objext'
21762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21763   (eval $ac_try) 2>&5
21764   ac_status=$?
21765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766   (exit $ac_status); }; }; then
21767   ac_cv_func_isnan_in_cmath=yes
21768 else
21769   echo "$as_me: failed program was:" >&5
21770 sed 's/^/| /' conftest.$ac_ext >&5
21771
21772 ac_cv_func_isnan_in_cmath=no
21773 fi
21774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21775  ac_ext=c
21776 ac_cpp='$CPP $CPPFLAGS'
21777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21780
21781 fi
21782 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21783 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21784  if test "$ac_cv_func_isnan_in_cmath" = "yes"
21785  then
21786
21787 cat >>confdefs.h <<\_ACEOF
21788 #define HAVE_ISNAN_IN_CMATH 1
21789 _ACEOF
21790
21791  fi
21792 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21793 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21794 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21795   echo $ECHO_N "(cached) $ECHO_C" >&6
21796 else
21797   ac_ext=cc
21798 ac_cpp='$CXXCPP $CPPFLAGS'
21799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21802
21803   cat >conftest.$ac_ext <<_ACEOF
21804 /* confdefs.h.  */
21805 _ACEOF
21806 cat confdefs.h >>conftest.$ac_ext
21807 cat >>conftest.$ac_ext <<_ACEOF
21808 /* end confdefs.h.  */
21809 #include <cmath>
21810                      using std::isnan; int foo(float f) {return isnan(f);}
21811 _ACEOF
21812 rm -f conftest.$ac_objext
21813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21814   (eval $ac_compile) 2>conftest.er1
21815   ac_status=$?
21816   grep -v '^ *+' conftest.er1 >conftest.err
21817   rm -f conftest.er1
21818   cat conftest.err >&5
21819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820   (exit $ac_status); } &&
21821          { ac_try='test -z "$ac_cxx_werror_flag"
21822                          || test ! -s conftest.err'
21823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21824   (eval $ac_try) 2>&5
21825   ac_status=$?
21826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827   (exit $ac_status); }; } &&
21828          { ac_try='test -s conftest.$ac_objext'
21829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21830   (eval $ac_try) 2>&5
21831   ac_status=$?
21832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833   (exit $ac_status); }; }; then
21834   ac_cv_func_std_isnan_in_cmath=yes
21835 else
21836   echo "$as_me: failed program was:" >&5
21837 sed 's/^/| /' conftest.$ac_ext >&5
21838
21839 ac_cv_func_std_isnan_in_cmath=no
21840 fi
21841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21842  ac_ext=c
21843 ac_cpp='$CPP $CPPFLAGS'
21844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21847
21848 fi
21849 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21850 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21851  if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21852  then
21853
21854 cat >>confdefs.h <<\_ACEOF
21855 #define HAVE_STD_ISNAN_IN_CMATH 1
21856 _ACEOF
21857
21858  fi
21859
21860
21861 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21862 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21863 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21864   echo $ECHO_N "(cached) $ECHO_C" >&6
21865 else
21866   ac_ext=cc
21867 ac_cpp='$CXXCPP $CPPFLAGS'
21868 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21869 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21870 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21871
21872   cat >conftest.$ac_ext <<_ACEOF
21873 /* confdefs.h.  */
21874 _ACEOF
21875 cat confdefs.h >>conftest.$ac_ext
21876 cat >>conftest.$ac_ext <<_ACEOF
21877 /* end confdefs.h.  */
21878 #include <math.h>
21879                      int foo(float f) {return isinf(f);}
21880 _ACEOF
21881 rm -f conftest.$ac_objext
21882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21883   (eval $ac_compile) 2>conftest.er1
21884   ac_status=$?
21885   grep -v '^ *+' conftest.er1 >conftest.err
21886   rm -f conftest.er1
21887   cat conftest.err >&5
21888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889   (exit $ac_status); } &&
21890          { ac_try='test -z "$ac_cxx_werror_flag"
21891                          || test ! -s conftest.err'
21892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21893   (eval $ac_try) 2>&5
21894   ac_status=$?
21895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896   (exit $ac_status); }; } &&
21897          { ac_try='test -s conftest.$ac_objext'
21898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21899   (eval $ac_try) 2>&5
21900   ac_status=$?
21901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902   (exit $ac_status); }; }; then
21903   ac_cv_func_isinf_in_math_h=yes
21904 else
21905   echo "$as_me: failed program was:" >&5
21906 sed 's/^/| /' conftest.$ac_ext >&5
21907
21908 ac_cv_func_isinf_in_math_h=no
21909 fi
21910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21911  ac_ext=c
21912 ac_cpp='$CPP $CPPFLAGS'
21913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21916
21917 fi
21918 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21919 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21920  if test "$ac_cv_func_isinf_in_math_h" = "yes"
21921  then
21922
21923 cat >>confdefs.h <<\_ACEOF
21924 #define HAVE_ISINF_IN_MATH_H 1
21925 _ACEOF
21926
21927  fi
21928 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21929 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21930 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21931   echo $ECHO_N "(cached) $ECHO_C" >&6
21932 else
21933   ac_ext=cc
21934 ac_cpp='$CXXCPP $CPPFLAGS'
21935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21938
21939   cat >conftest.$ac_ext <<_ACEOF
21940 /* confdefs.h.  */
21941 _ACEOF
21942 cat confdefs.h >>conftest.$ac_ext
21943 cat >>conftest.$ac_ext <<_ACEOF
21944 /* end confdefs.h.  */
21945 #include <cmath>
21946                      int foo(float f) {return isinf(f);}
21947 _ACEOF
21948 rm -f conftest.$ac_objext
21949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21950   (eval $ac_compile) 2>conftest.er1
21951   ac_status=$?
21952   grep -v '^ *+' conftest.er1 >conftest.err
21953   rm -f conftest.er1
21954   cat conftest.err >&5
21955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956   (exit $ac_status); } &&
21957          { ac_try='test -z "$ac_cxx_werror_flag"
21958                          || test ! -s conftest.err'
21959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960   (eval $ac_try) 2>&5
21961   ac_status=$?
21962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963   (exit $ac_status); }; } &&
21964          { ac_try='test -s conftest.$ac_objext'
21965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966   (eval $ac_try) 2>&5
21967   ac_status=$?
21968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969   (exit $ac_status); }; }; then
21970   ac_cv_func_isinf_in_cmath=yes
21971 else
21972   echo "$as_me: failed program was:" >&5
21973 sed 's/^/| /' conftest.$ac_ext >&5
21974
21975 ac_cv_func_isinf_in_cmath=no
21976 fi
21977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21978  ac_ext=c
21979 ac_cpp='$CPP $CPPFLAGS'
21980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21983
21984 fi
21985 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21986 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
21987  if test "$ac_cv_func_isinf_in_cmath" = "yes"
21988  then
21989
21990 cat >>confdefs.h <<\_ACEOF
21991 #define HAVE_ISINF_IN_CMATH 1
21992 _ACEOF
21993
21994  fi
21995 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21996 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
21997 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21998   echo $ECHO_N "(cached) $ECHO_C" >&6
21999 else
22000   ac_ext=cc
22001 ac_cpp='$CXXCPP $CPPFLAGS'
22002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22005
22006   cat >conftest.$ac_ext <<_ACEOF
22007 /* confdefs.h.  */
22008 _ACEOF
22009 cat confdefs.h >>conftest.$ac_ext
22010 cat >>conftest.$ac_ext <<_ACEOF
22011 /* end confdefs.h.  */
22012 #include <cmath>
22013                      using std::isinf; int foo(float f) {return isinf(f);}
22014 _ACEOF
22015 rm -f conftest.$ac_objext
22016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22017   (eval $ac_compile) 2>conftest.er1
22018   ac_status=$?
22019   grep -v '^ *+' conftest.er1 >conftest.err
22020   rm -f conftest.er1
22021   cat conftest.err >&5
22022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023   (exit $ac_status); } &&
22024          { ac_try='test -z "$ac_cxx_werror_flag"
22025                          || test ! -s conftest.err'
22026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22027   (eval $ac_try) 2>&5
22028   ac_status=$?
22029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030   (exit $ac_status); }; } &&
22031          { ac_try='test -s conftest.$ac_objext'
22032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22033   (eval $ac_try) 2>&5
22034   ac_status=$?
22035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036   (exit $ac_status); }; }; then
22037   ac_cv_func_std_isinf_in_cmath=yes
22038 else
22039   echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22041
22042 ac_cv_func_std_isinf_in_cmath=no
22043 fi
22044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22045  ac_ext=c
22046 ac_cpp='$CPP $CPPFLAGS'
22047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22050
22051 fi
22052 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22053 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22054  if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22055  then
22056
22057 cat >>confdefs.h <<\_ACEOF
22058 #define HAVE_STD_ISINF_IN_CMATH 1
22059 _ACEOF
22060
22061  fi
22062 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22063 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22064 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22065   echo $ECHO_N "(cached) $ECHO_C" >&6
22066 else
22067   ac_ext=cc
22068 ac_cpp='$CXXCPP $CPPFLAGS'
22069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22072
22073   cat >conftest.$ac_ext <<_ACEOF
22074 /* confdefs.h.  */
22075 _ACEOF
22076 cat confdefs.h >>conftest.$ac_ext
22077 cat >>conftest.$ac_ext <<_ACEOF
22078 /* end confdefs.h.  */
22079 #include <ieeefp.h>
22080                      int foo(float f) {return finite(f);}
22081 _ACEOF
22082 rm -f conftest.$ac_objext
22083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22084   (eval $ac_compile) 2>conftest.er1
22085   ac_status=$?
22086   grep -v '^ *+' conftest.er1 >conftest.err
22087   rm -f conftest.er1
22088   cat conftest.err >&5
22089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090   (exit $ac_status); } &&
22091          { ac_try='test -z "$ac_cxx_werror_flag"
22092                          || test ! -s conftest.err'
22093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22094   (eval $ac_try) 2>&5
22095   ac_status=$?
22096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097   (exit $ac_status); }; } &&
22098          { ac_try='test -s conftest.$ac_objext'
22099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22100   (eval $ac_try) 2>&5
22101   ac_status=$?
22102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103   (exit $ac_status); }; }; then
22104   ac_cv_func_finite_in_ieeefp_h=yes
22105 else
22106   echo "$as_me: failed program was:" >&5
22107 sed 's/^/| /' conftest.$ac_ext >&5
22108
22109 ac_cv_func_finite_in_ieeefp_h=no
22110 fi
22111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22112  ac_ext=c
22113 ac_cpp='$CPP $CPPFLAGS'
22114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22117
22118 fi
22119 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22120 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22121  if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22122  then
22123
22124 cat >>confdefs.h <<\_ACEOF
22125 #define HAVE_FINITE_IN_IEEEFP_H 1
22126 _ACEOF
22127
22128  fi
22129
22130
22131 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22132 # for constant arguments.  Useless!
22133 echo "$as_me:$LINENO: checking for working alloca.h" >&5
22134 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22135 if test "${ac_cv_working_alloca_h+set}" = set; then
22136   echo $ECHO_N "(cached) $ECHO_C" >&6
22137 else
22138   cat >conftest.$ac_ext <<_ACEOF
22139 /* confdefs.h.  */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h.  */
22144 #include <alloca.h>
22145 int
22146 main ()
22147 {
22148 char *p = (char *) alloca (2 * sizeof (int));
22149   ;
22150   return 0;
22151 }
22152 _ACEOF
22153 rm -f conftest.$ac_objext conftest$ac_exeext
22154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22155   (eval $ac_link) 2>conftest.er1
22156   ac_status=$?
22157   grep -v '^ *+' conftest.er1 >conftest.err
22158   rm -f conftest.er1
22159   cat conftest.err >&5
22160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161   (exit $ac_status); } &&
22162          { ac_try='test -z "$ac_c_werror_flag"
22163                          || test ! -s conftest.err'
22164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22165   (eval $ac_try) 2>&5
22166   ac_status=$?
22167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168   (exit $ac_status); }; } &&
22169          { ac_try='test -s conftest$ac_exeext'
22170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22171   (eval $ac_try) 2>&5
22172   ac_status=$?
22173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174   (exit $ac_status); }; }; then
22175   ac_cv_working_alloca_h=yes
22176 else
22177   echo "$as_me: failed program was:" >&5
22178 sed 's/^/| /' conftest.$ac_ext >&5
22179
22180 ac_cv_working_alloca_h=no
22181 fi
22182 rm -f conftest.err conftest.$ac_objext \
22183       conftest$ac_exeext conftest.$ac_ext
22184 fi
22185 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22186 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22187 if test $ac_cv_working_alloca_h = yes; then
22188
22189 cat >>confdefs.h <<\_ACEOF
22190 #define HAVE_ALLOCA_H 1
22191 _ACEOF
22192
22193 fi
22194
22195 echo "$as_me:$LINENO: checking for alloca" >&5
22196 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22197 if test "${ac_cv_func_alloca_works+set}" = set; then
22198   echo $ECHO_N "(cached) $ECHO_C" >&6
22199 else
22200   cat >conftest.$ac_ext <<_ACEOF
22201 /* confdefs.h.  */
22202 _ACEOF
22203 cat confdefs.h >>conftest.$ac_ext
22204 cat >>conftest.$ac_ext <<_ACEOF
22205 /* end confdefs.h.  */
22206 #ifdef __GNUC__
22207 # define alloca __builtin_alloca
22208 #else
22209 # ifdef _MSC_VER
22210 #  include <malloc.h>
22211 #  define alloca _alloca
22212 # else
22213 #  if HAVE_ALLOCA_H
22214 #   include <alloca.h>
22215 #  else
22216 #   ifdef _AIX
22217  #pragma alloca
22218 #   else
22219 #    ifndef alloca /* predefined by HP cc +Olibcalls */
22220 char *alloca ();
22221 #    endif
22222 #   endif
22223 #  endif
22224 # endif
22225 #endif
22226
22227 int
22228 main ()
22229 {
22230 char *p = (char *) alloca (1);
22231   ;
22232   return 0;
22233 }
22234 _ACEOF
22235 rm -f conftest.$ac_objext conftest$ac_exeext
22236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22237   (eval $ac_link) 2>conftest.er1
22238   ac_status=$?
22239   grep -v '^ *+' conftest.er1 >conftest.err
22240   rm -f conftest.er1
22241   cat conftest.err >&5
22242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243   (exit $ac_status); } &&
22244          { ac_try='test -z "$ac_c_werror_flag"
22245                          || test ! -s conftest.err'
22246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22247   (eval $ac_try) 2>&5
22248   ac_status=$?
22249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250   (exit $ac_status); }; } &&
22251          { ac_try='test -s conftest$ac_exeext'
22252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22253   (eval $ac_try) 2>&5
22254   ac_status=$?
22255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256   (exit $ac_status); }; }; then
22257   ac_cv_func_alloca_works=yes
22258 else
22259   echo "$as_me: failed program was:" >&5
22260 sed 's/^/| /' conftest.$ac_ext >&5
22261
22262 ac_cv_func_alloca_works=no
22263 fi
22264 rm -f conftest.err conftest.$ac_objext \
22265       conftest$ac_exeext conftest.$ac_ext
22266 fi
22267 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22268 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22269
22270 if test $ac_cv_func_alloca_works = yes; then
22271
22272 cat >>confdefs.h <<\_ACEOF
22273 #define HAVE_ALLOCA 1
22274 _ACEOF
22275
22276 else
22277   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22278 # that cause trouble.  Some versions do not even contain alloca or
22279 # contain a buggy version.  If you still want to use their alloca,
22280 # use ar to extract alloca.o from them instead of compiling alloca.c.
22281
22282 ALLOCA=alloca.$ac_objext
22283
22284 cat >>confdefs.h <<\_ACEOF
22285 #define C_ALLOCA 1
22286 _ACEOF
22287
22288
22289 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22290 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22291 if test "${ac_cv_os_cray+set}" = set; then
22292   echo $ECHO_N "(cached) $ECHO_C" >&6
22293 else
22294   cat >conftest.$ac_ext <<_ACEOF
22295 /* confdefs.h.  */
22296 _ACEOF
22297 cat confdefs.h >>conftest.$ac_ext
22298 cat >>conftest.$ac_ext <<_ACEOF
22299 /* end confdefs.h.  */
22300 #if defined(CRAY) && ! defined(CRAY2)
22301 webecray
22302 #else
22303 wenotbecray
22304 #endif
22305
22306 _ACEOF
22307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22308   $EGREP "webecray" >/dev/null 2>&1; then
22309   ac_cv_os_cray=yes
22310 else
22311   ac_cv_os_cray=no
22312 fi
22313 rm -f conftest*
22314
22315 fi
22316 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22317 echo "${ECHO_T}$ac_cv_os_cray" >&6
22318 if test $ac_cv_os_cray = yes; then
22319   for ac_func in _getb67 GETB67 getb67; do
22320     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22321 echo "$as_me:$LINENO: checking for $ac_func" >&5
22322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22323 if eval "test \"\${$as_ac_var+set}\" = set"; then
22324   echo $ECHO_N "(cached) $ECHO_C" >&6
22325 else
22326   cat >conftest.$ac_ext <<_ACEOF
22327 /* confdefs.h.  */
22328 _ACEOF
22329 cat confdefs.h >>conftest.$ac_ext
22330 cat >>conftest.$ac_ext <<_ACEOF
22331 /* end confdefs.h.  */
22332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22334 #define $ac_func innocuous_$ac_func
22335
22336 /* System header to define __stub macros and hopefully few prototypes,
22337     which can conflict with char $ac_func (); below.
22338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22339     <limits.h> exists even on freestanding compilers.  */
22340
22341 #ifdef __STDC__
22342 # include <limits.h>
22343 #else
22344 # include <assert.h>
22345 #endif
22346
22347 #undef $ac_func
22348
22349 /* Override any gcc2 internal prototype to avoid an error.  */
22350 #ifdef __cplusplus
22351 extern "C"
22352 {
22353 #endif
22354 /* We use char because int might match the return type of a gcc2
22355    builtin and then its argument prototype would still apply.  */
22356 char $ac_func ();
22357 /* The GNU C library defines this for functions which it implements
22358     to always fail with ENOSYS.  Some functions are actually named
22359     something starting with __ and the normal name is an alias.  */
22360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22361 choke me
22362 #else
22363 char (*f) () = $ac_func;
22364 #endif
22365 #ifdef __cplusplus
22366 }
22367 #endif
22368
22369 int
22370 main ()
22371 {
22372 return f != $ac_func;
22373   ;
22374   return 0;
22375 }
22376 _ACEOF
22377 rm -f conftest.$ac_objext conftest$ac_exeext
22378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22379   (eval $ac_link) 2>conftest.er1
22380   ac_status=$?
22381   grep -v '^ *+' conftest.er1 >conftest.err
22382   rm -f conftest.er1
22383   cat conftest.err >&5
22384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385   (exit $ac_status); } &&
22386          { ac_try='test -z "$ac_c_werror_flag"
22387                          || test ! -s conftest.err'
22388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22389   (eval $ac_try) 2>&5
22390   ac_status=$?
22391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392   (exit $ac_status); }; } &&
22393          { ac_try='test -s conftest$ac_exeext'
22394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22395   (eval $ac_try) 2>&5
22396   ac_status=$?
22397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398   (exit $ac_status); }; }; then
22399   eval "$as_ac_var=yes"
22400 else
22401   echo "$as_me: failed program was:" >&5
22402 sed 's/^/| /' conftest.$ac_ext >&5
22403
22404 eval "$as_ac_var=no"
22405 fi
22406 rm -f conftest.err conftest.$ac_objext \
22407       conftest$ac_exeext conftest.$ac_ext
22408 fi
22409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22411 if test `eval echo '${'$as_ac_var'}'` = yes; then
22412
22413 cat >>confdefs.h <<_ACEOF
22414 #define CRAY_STACKSEG_END $ac_func
22415 _ACEOF
22416
22417     break
22418 fi
22419
22420   done
22421 fi
22422
22423 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22424 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22425 if test "${ac_cv_c_stack_direction+set}" = set; then
22426   echo $ECHO_N "(cached) $ECHO_C" >&6
22427 else
22428   if test "$cross_compiling" = yes; then
22429   ac_cv_c_stack_direction=0
22430 else
22431   cat >conftest.$ac_ext <<_ACEOF
22432 /* confdefs.h.  */
22433 _ACEOF
22434 cat confdefs.h >>conftest.$ac_ext
22435 cat >>conftest.$ac_ext <<_ACEOF
22436 /* end confdefs.h.  */
22437 int
22438 find_stack_direction ()
22439 {
22440   static char *addr = 0;
22441   auto char dummy;
22442   if (addr == 0)
22443     {
22444       addr = &dummy;
22445       return find_stack_direction ();
22446     }
22447   else
22448     return (&dummy > addr) ? 1 : -1;
22449 }
22450
22451 int
22452 main ()
22453 {
22454   exit (find_stack_direction () < 0);
22455 }
22456 _ACEOF
22457 rm -f conftest$ac_exeext
22458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22459   (eval $ac_link) 2>&5
22460   ac_status=$?
22461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22464   (eval $ac_try) 2>&5
22465   ac_status=$?
22466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467   (exit $ac_status); }; }; then
22468   ac_cv_c_stack_direction=1
22469 else
22470   echo "$as_me: program exited with status $ac_status" >&5
22471 echo "$as_me: failed program was:" >&5
22472 sed 's/^/| /' conftest.$ac_ext >&5
22473
22474 ( exit $ac_status )
22475 ac_cv_c_stack_direction=-1
22476 fi
22477 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22478 fi
22479 fi
22480 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22481 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22482
22483 cat >>confdefs.h <<_ACEOF
22484 #define STACK_DIRECTION $ac_cv_c_stack_direction
22485 _ACEOF
22486
22487
22488 fi
22489
22490
22491
22492 for ac_header in stdlib.h unistd.h
22493 do
22494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22496   echo "$as_me:$LINENO: checking for $ac_header" >&5
22497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22499   echo $ECHO_N "(cached) $ECHO_C" >&6
22500 fi
22501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22503 else
22504   # Is the header compilable?
22505 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22507 cat >conftest.$ac_ext <<_ACEOF
22508 /* confdefs.h.  */
22509 _ACEOF
22510 cat confdefs.h >>conftest.$ac_ext
22511 cat >>conftest.$ac_ext <<_ACEOF
22512 /* end confdefs.h.  */
22513 $ac_includes_default
22514 #include <$ac_header>
22515 _ACEOF
22516 rm -f conftest.$ac_objext
22517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22518   (eval $ac_compile) 2>conftest.er1
22519   ac_status=$?
22520   grep -v '^ *+' conftest.er1 >conftest.err
22521   rm -f conftest.er1
22522   cat conftest.err >&5
22523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524   (exit $ac_status); } &&
22525          { ac_try='test -z "$ac_c_werror_flag"
22526                          || test ! -s conftest.err'
22527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22528   (eval $ac_try) 2>&5
22529   ac_status=$?
22530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531   (exit $ac_status); }; } &&
22532          { ac_try='test -s conftest.$ac_objext'
22533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534   (eval $ac_try) 2>&5
22535   ac_status=$?
22536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537   (exit $ac_status); }; }; then
22538   ac_header_compiler=yes
22539 else
22540   echo "$as_me: failed program was:" >&5
22541 sed 's/^/| /' conftest.$ac_ext >&5
22542
22543 ac_header_compiler=no
22544 fi
22545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22547 echo "${ECHO_T}$ac_header_compiler" >&6
22548
22549 # Is the header present?
22550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22552 cat >conftest.$ac_ext <<_ACEOF
22553 /* confdefs.h.  */
22554 _ACEOF
22555 cat confdefs.h >>conftest.$ac_ext
22556 cat >>conftest.$ac_ext <<_ACEOF
22557 /* end confdefs.h.  */
22558 #include <$ac_header>
22559 _ACEOF
22560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22561   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22562   ac_status=$?
22563   grep -v '^ *+' conftest.er1 >conftest.err
22564   rm -f conftest.er1
22565   cat conftest.err >&5
22566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567   (exit $ac_status); } >/dev/null; then
22568   if test -s conftest.err; then
22569     ac_cpp_err=$ac_c_preproc_warn_flag
22570     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22571   else
22572     ac_cpp_err=
22573   fi
22574 else
22575   ac_cpp_err=yes
22576 fi
22577 if test -z "$ac_cpp_err"; then
22578   ac_header_preproc=yes
22579 else
22580   echo "$as_me: failed program was:" >&5
22581 sed 's/^/| /' conftest.$ac_ext >&5
22582
22583   ac_header_preproc=no
22584 fi
22585 rm -f conftest.err conftest.$ac_ext
22586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22587 echo "${ECHO_T}$ac_header_preproc" >&6
22588
22589 # So?  What about this header?
22590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22591   yes:no: )
22592     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22596     ac_header_preproc=yes
22597     ;;
22598   no:yes:* )
22599     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22601     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22602 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22603     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22605     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22606 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22609     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22611     (
22612       cat <<\_ASBOX
22613 ## ----------------------------------- ##
22614 ## Report this to llvmbugs@cs.uiuc.edu ##
22615 ## ----------------------------------- ##
22616 _ASBOX
22617     ) |
22618       sed "s/^/$as_me: WARNING:     /" >&2
22619     ;;
22620 esac
22621 echo "$as_me:$LINENO: checking for $ac_header" >&5
22622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22624   echo $ECHO_N "(cached) $ECHO_C" >&6
22625 else
22626   eval "$as_ac_Header=\$ac_header_preproc"
22627 fi
22628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22630
22631 fi
22632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22633   cat >>confdefs.h <<_ACEOF
22634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22635 _ACEOF
22636
22637 fi
22638
22639 done
22640
22641
22642 for ac_func in getpagesize
22643 do
22644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22645 echo "$as_me:$LINENO: checking for $ac_func" >&5
22646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22647 if eval "test \"\${$as_ac_var+set}\" = set"; then
22648   echo $ECHO_N "(cached) $ECHO_C" >&6
22649 else
22650   cat >conftest.$ac_ext <<_ACEOF
22651 /* confdefs.h.  */
22652 _ACEOF
22653 cat confdefs.h >>conftest.$ac_ext
22654 cat >>conftest.$ac_ext <<_ACEOF
22655 /* end confdefs.h.  */
22656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22657    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22658 #define $ac_func innocuous_$ac_func
22659
22660 /* System header to define __stub macros and hopefully few prototypes,
22661     which can conflict with char $ac_func (); below.
22662     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22663     <limits.h> exists even on freestanding compilers.  */
22664
22665 #ifdef __STDC__
22666 # include <limits.h>
22667 #else
22668 # include <assert.h>
22669 #endif
22670
22671 #undef $ac_func
22672
22673 /* Override any gcc2 internal prototype to avoid an error.  */
22674 #ifdef __cplusplus
22675 extern "C"
22676 {
22677 #endif
22678 /* We use char because int might match the return type of a gcc2
22679    builtin and then its argument prototype would still apply.  */
22680 char $ac_func ();
22681 /* The GNU C library defines this for functions which it implements
22682     to always fail with ENOSYS.  Some functions are actually named
22683     something starting with __ and the normal name is an alias.  */
22684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22685 choke me
22686 #else
22687 char (*f) () = $ac_func;
22688 #endif
22689 #ifdef __cplusplus
22690 }
22691 #endif
22692
22693 int
22694 main ()
22695 {
22696 return f != $ac_func;
22697   ;
22698   return 0;
22699 }
22700 _ACEOF
22701 rm -f conftest.$ac_objext conftest$ac_exeext
22702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22703   (eval $ac_link) 2>conftest.er1
22704   ac_status=$?
22705   grep -v '^ *+' conftest.er1 >conftest.err
22706   rm -f conftest.er1
22707   cat conftest.err >&5
22708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709   (exit $ac_status); } &&
22710          { ac_try='test -z "$ac_c_werror_flag"
22711                          || test ! -s conftest.err'
22712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22713   (eval $ac_try) 2>&5
22714   ac_status=$?
22715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716   (exit $ac_status); }; } &&
22717          { ac_try='test -s conftest$ac_exeext'
22718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22719   (eval $ac_try) 2>&5
22720   ac_status=$?
22721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722   (exit $ac_status); }; }; then
22723   eval "$as_ac_var=yes"
22724 else
22725   echo "$as_me: failed program was:" >&5
22726 sed 's/^/| /' conftest.$ac_ext >&5
22727
22728 eval "$as_ac_var=no"
22729 fi
22730 rm -f conftest.err conftest.$ac_objext \
22731       conftest$ac_exeext conftest.$ac_ext
22732 fi
22733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22735 if test `eval echo '${'$as_ac_var'}'` = yes; then
22736   cat >>confdefs.h <<_ACEOF
22737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22738 _ACEOF
22739
22740 fi
22741 done
22742
22743 echo "$as_me:$LINENO: checking for working mmap" >&5
22744 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22745 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22746   echo $ECHO_N "(cached) $ECHO_C" >&6
22747 else
22748   if test "$cross_compiling" = yes; then
22749   ac_cv_func_mmap_fixed_mapped=no
22750 else
22751   cat >conftest.$ac_ext <<_ACEOF
22752 /* confdefs.h.  */
22753 _ACEOF
22754 cat confdefs.h >>conftest.$ac_ext
22755 cat >>conftest.$ac_ext <<_ACEOF
22756 /* end confdefs.h.  */
22757 $ac_includes_default
22758 /* malloc might have been renamed as rpl_malloc. */
22759 #undef malloc
22760
22761 /* Thanks to Mike Haertel and Jim Avera for this test.
22762    Here is a matrix of mmap possibilities:
22763         mmap private not fixed
22764         mmap private fixed at somewhere currently unmapped
22765         mmap private fixed at somewhere already mapped
22766         mmap shared not fixed
22767         mmap shared fixed at somewhere currently unmapped
22768         mmap shared fixed at somewhere already mapped
22769    For private mappings, we should verify that changes cannot be read()
22770    back from the file, nor mmap's back from the file at a different
22771    address.  (There have been systems where private was not correctly
22772    implemented like the infamous i386 svr4.0, and systems where the
22773    VM page cache was not coherent with the file system buffer cache
22774    like early versions of FreeBSD and possibly contemporary NetBSD.)
22775    For shared mappings, we should conversely verify that changes get
22776    propagated back to all the places they're supposed to be.
22777
22778    Grep wants private fixed already mapped.
22779    The main things grep needs to know about mmap are:
22780    * does it exist and is it safe to write into the mmap'd area
22781    * how to use it (BSD variants)  */
22782
22783 #include <fcntl.h>
22784 #include <sys/mman.h>
22785
22786 #if !STDC_HEADERS && !HAVE_STDLIB_H
22787 char *malloc ();
22788 #endif
22789
22790 /* This mess was copied from the GNU getpagesize.h.  */
22791 #if !HAVE_GETPAGESIZE
22792 /* Assume that all systems that can run configure have sys/param.h.  */
22793 # if !HAVE_SYS_PARAM_H
22794 #  define HAVE_SYS_PARAM_H 1
22795 # endif
22796
22797 # ifdef _SC_PAGESIZE
22798 #  define getpagesize() sysconf(_SC_PAGESIZE)
22799 # else /* no _SC_PAGESIZE */
22800 #  if HAVE_SYS_PARAM_H
22801 #   include <sys/param.h>
22802 #   ifdef EXEC_PAGESIZE
22803 #    define getpagesize() EXEC_PAGESIZE
22804 #   else /* no EXEC_PAGESIZE */
22805 #    ifdef NBPG
22806 #     define getpagesize() NBPG * CLSIZE
22807 #     ifndef CLSIZE
22808 #      define CLSIZE 1
22809 #     endif /* no CLSIZE */
22810 #    else /* no NBPG */
22811 #     ifdef NBPC
22812 #      define getpagesize() NBPC
22813 #     else /* no NBPC */
22814 #      ifdef PAGESIZE
22815 #       define getpagesize() PAGESIZE
22816 #      endif /* PAGESIZE */
22817 #     endif /* no NBPC */
22818 #    endif /* no NBPG */
22819 #   endif /* no EXEC_PAGESIZE */
22820 #  else /* no HAVE_SYS_PARAM_H */
22821 #   define getpagesize() 8192   /* punt totally */
22822 #  endif /* no HAVE_SYS_PARAM_H */
22823 # endif /* no _SC_PAGESIZE */
22824
22825 #endif /* no HAVE_GETPAGESIZE */
22826
22827 int
22828 main ()
22829 {
22830   char *data, *data2, *data3;
22831   int i, pagesize;
22832   int fd;
22833
22834   pagesize = getpagesize ();
22835
22836   /* First, make a file with some known garbage in it. */
22837   data = (char *) malloc (pagesize);
22838   if (!data)
22839     exit (1);
22840   for (i = 0; i < pagesize; ++i)
22841     *(data + i) = rand ();
22842   umask (0);
22843   fd = creat ("conftest.mmap", 0600);
22844   if (fd < 0)
22845     exit (1);
22846   if (write (fd, data, pagesize) != pagesize)
22847     exit (1);
22848   close (fd);
22849
22850   /* Next, try to mmap the file at a fixed address which already has
22851      something else allocated at it.  If we can, also make sure that
22852      we see the same garbage.  */
22853   fd = open ("conftest.mmap", O_RDWR);
22854   if (fd < 0)
22855     exit (1);
22856   data2 = (char *) malloc (2 * pagesize);
22857   if (!data2)
22858     exit (1);
22859   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
22860   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22861                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22862     exit (1);
22863   for (i = 0; i < pagesize; ++i)
22864     if (*(data + i) != *(data2 + i))
22865       exit (1);
22866
22867   /* Finally, make sure that changes to the mapped area do not
22868      percolate back to the file as seen by read().  (This is a bug on
22869      some variants of i386 svr4.0.)  */
22870   for (i = 0; i < pagesize; ++i)
22871     *(data2 + i) = *(data2 + i) + 1;
22872   data3 = (char *) malloc (pagesize);
22873   if (!data3)
22874     exit (1);
22875   if (read (fd, data3, pagesize) != pagesize)
22876     exit (1);
22877   for (i = 0; i < pagesize; ++i)
22878     if (*(data + i) != *(data3 + i))
22879       exit (1);
22880   close (fd);
22881   exit (0);
22882 }
22883 _ACEOF
22884 rm -f conftest$ac_exeext
22885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22886   (eval $ac_link) 2>&5
22887   ac_status=$?
22888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22891   (eval $ac_try) 2>&5
22892   ac_status=$?
22893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894   (exit $ac_status); }; }; then
22895   ac_cv_func_mmap_fixed_mapped=yes
22896 else
22897   echo "$as_me: program exited with status $ac_status" >&5
22898 echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22900
22901 ( exit $ac_status )
22902 ac_cv_func_mmap_fixed_mapped=no
22903 fi
22904 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22905 fi
22906 fi
22907 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22908 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22909 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22910
22911 cat >>confdefs.h <<\_ACEOF
22912 #define HAVE_MMAP 1
22913 _ACEOF
22914
22915 fi
22916 rm -f conftest.mmap
22917
22918 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22919 then
22920         { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
22921 echo "$as_me: WARNING: mmap() required but not found" >&2;}
22922 fi
22923 echo "$as_me:$LINENO: checking for mmap of files" >&5
22924 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22925 if test "${ac_cv_func_mmap_file+set}" = set; then
22926   echo $ECHO_N "(cached) $ECHO_C" >&6
22927 else
22928
22929
22930   ac_ext=c
22931 ac_cpp='$CPP $CPPFLAGS'
22932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22935
22936   if test "$cross_compiling" = yes; then
22937   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22938 See \`config.log' for more details." >&5
22939 echo "$as_me: error: cannot run test program while cross compiling
22940 See \`config.log' for more details." >&2;}
22941    { (exit 1); exit 1; }; }
22942 else
22943   cat >conftest.$ac_ext <<_ACEOF
22944 /* confdefs.h.  */
22945 _ACEOF
22946 cat confdefs.h >>conftest.$ac_ext
22947 cat >>conftest.$ac_ext <<_ACEOF
22948 /* end confdefs.h.  */
22949
22950 #ifdef HAVE_SYS_TYPES_H
22951 #include <sys/types.h>
22952 #endif
22953
22954 #ifdef HAVE_SYS_MMAN_H
22955 #include <sys/mman.h>
22956 #endif
22957
22958 #ifdef HAVE_FCNTL_H
22959 #include <fcntl.h>
22960 #endif
22961
22962   int fd;
22963   int main () {
22964   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
22965 _ACEOF
22966 rm -f conftest$ac_exeext
22967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22968   (eval $ac_link) 2>&5
22969   ac_status=$?
22970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973   (eval $ac_try) 2>&5
22974   ac_status=$?
22975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976   (exit $ac_status); }; }; then
22977   ac_cv_func_mmap_file=yes
22978 else
22979   echo "$as_me: program exited with status $ac_status" >&5
22980 echo "$as_me: failed program was:" >&5
22981 sed 's/^/| /' conftest.$ac_ext >&5
22982
22983 ( exit $ac_status )
22984 ac_cv_func_mmap_file=no
22985 fi
22986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22987 fi
22988   ac_ext=c
22989 ac_cpp='$CPP $CPPFLAGS'
22990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22993
22994
22995 fi
22996 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22997 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22998 if test "$ac_cv_func_mmap_file" = yes; then
22999
23000 cat >>confdefs.h <<\_ACEOF
23001 #define HAVE_MMAP_FILE
23002 _ACEOF
23003
23004    MMAP_FILE=yes
23005
23006 fi
23007
23008 if test "$ac_cv_func_mmap_file" = "no"
23009 then
23010         { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23011 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
23012 fi
23013 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23014 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23015 if test "${ac_cv_header_mmap_anon+set}" = set; then
23016   echo $ECHO_N "(cached) $ECHO_C" >&6
23017 else
23018
23019
23020   ac_ext=c
23021 ac_cpp='$CPP $CPPFLAGS'
23022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23025
23026   cat >conftest.$ac_ext <<_ACEOF
23027 /* confdefs.h.  */
23028 _ACEOF
23029 cat confdefs.h >>conftest.$ac_ext
23030 cat >>conftest.$ac_ext <<_ACEOF
23031 /* end confdefs.h.  */
23032 #include <sys/mman.h>
23033   #include <unistd.h>
23034   #include <fcntl.h>
23035 int
23036 main ()
23037 {
23038 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23039   ;
23040   return 0;
23041 }
23042 _ACEOF
23043 rm -f conftest.$ac_objext
23044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23045   (eval $ac_compile) 2>conftest.er1
23046   ac_status=$?
23047   grep -v '^ *+' conftest.er1 >conftest.err
23048   rm -f conftest.er1
23049   cat conftest.err >&5
23050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051   (exit $ac_status); } &&
23052          { ac_try='test -z "$ac_c_werror_flag"
23053                          || test ! -s conftest.err'
23054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23055   (eval $ac_try) 2>&5
23056   ac_status=$?
23057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058   (exit $ac_status); }; } &&
23059          { ac_try='test -s conftest.$ac_objext'
23060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23061   (eval $ac_try) 2>&5
23062   ac_status=$?
23063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064   (exit $ac_status); }; }; then
23065   ac_cv_header_mmap_anon=yes
23066 else
23067   echo "$as_me: failed program was:" >&5
23068 sed 's/^/| /' conftest.$ac_ext >&5
23069
23070 ac_cv_header_mmap_anon=no
23071 fi
23072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23073   ac_ext=c
23074 ac_cpp='$CPP $CPPFLAGS'
23075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23078
23079
23080 fi
23081 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23082 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23083 if test "$ac_cv_header_mmap_anon" = yes; then
23084
23085 cat >>confdefs.h <<\_ACEOF
23086 #define HAVE_MMAP_ANONYMOUS
23087 _ACEOF
23088
23089 fi
23090
23091 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23092 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23093 if test "${ac_cv_type_signal+set}" = set; then
23094   echo $ECHO_N "(cached) $ECHO_C" >&6
23095 else
23096   cat >conftest.$ac_ext <<_ACEOF
23097 /* confdefs.h.  */
23098 _ACEOF
23099 cat confdefs.h >>conftest.$ac_ext
23100 cat >>conftest.$ac_ext <<_ACEOF
23101 /* end confdefs.h.  */
23102 #include <sys/types.h>
23103 #include <signal.h>
23104 #ifdef signal
23105 # undef signal
23106 #endif
23107 #ifdef __cplusplus
23108 extern "C" void (*signal (int, void (*)(int)))(int);
23109 #else
23110 void (*signal ()) ();
23111 #endif
23112
23113 int
23114 main ()
23115 {
23116 int i;
23117   ;
23118   return 0;
23119 }
23120 _ACEOF
23121 rm -f conftest.$ac_objext
23122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23123   (eval $ac_compile) 2>conftest.er1
23124   ac_status=$?
23125   grep -v '^ *+' conftest.er1 >conftest.err
23126   rm -f conftest.er1
23127   cat conftest.err >&5
23128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129   (exit $ac_status); } &&
23130          { ac_try='test -z "$ac_c_werror_flag"
23131                          || test ! -s conftest.err'
23132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23133   (eval $ac_try) 2>&5
23134   ac_status=$?
23135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136   (exit $ac_status); }; } &&
23137          { ac_try='test -s conftest.$ac_objext'
23138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23139   (eval $ac_try) 2>&5
23140   ac_status=$?
23141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142   (exit $ac_status); }; }; then
23143   ac_cv_type_signal=void
23144 else
23145   echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23147
23148 ac_cv_type_signal=int
23149 fi
23150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23151 fi
23152 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23153 echo "${ECHO_T}$ac_cv_type_signal" >&6
23154
23155 cat >>confdefs.h <<_ACEOF
23156 #define RETSIGTYPE $ac_cv_type_signal
23157 _ACEOF
23158
23159
23160
23161
23162
23163
23164
23165
23166
23167
23168
23169 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
23170 do
23171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23172 echo "$as_me:$LINENO: checking for $ac_func" >&5
23173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23174 if eval "test \"\${$as_ac_var+set}\" = set"; then
23175   echo $ECHO_N "(cached) $ECHO_C" >&6
23176 else
23177   cat >conftest.$ac_ext <<_ACEOF
23178 /* confdefs.h.  */
23179 _ACEOF
23180 cat confdefs.h >>conftest.$ac_ext
23181 cat >>conftest.$ac_ext <<_ACEOF
23182 /* end confdefs.h.  */
23183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23185 #define $ac_func innocuous_$ac_func
23186
23187 /* System header to define __stub macros and hopefully few prototypes,
23188     which can conflict with char $ac_func (); below.
23189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23190     <limits.h> exists even on freestanding compilers.  */
23191
23192 #ifdef __STDC__
23193 # include <limits.h>
23194 #else
23195 # include <assert.h>
23196 #endif
23197
23198 #undef $ac_func
23199
23200 /* Override any gcc2 internal prototype to avoid an error.  */
23201 #ifdef __cplusplus
23202 extern "C"
23203 {
23204 #endif
23205 /* We use char because int might match the return type of a gcc2
23206    builtin and then its argument prototype would still apply.  */
23207 char $ac_func ();
23208 /* The GNU C library defines this for functions which it implements
23209     to always fail with ENOSYS.  Some functions are actually named
23210     something starting with __ and the normal name is an alias.  */
23211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23212 choke me
23213 #else
23214 char (*f) () = $ac_func;
23215 #endif
23216 #ifdef __cplusplus
23217 }
23218 #endif
23219
23220 int
23221 main ()
23222 {
23223 return f != $ac_func;
23224   ;
23225   return 0;
23226 }
23227 _ACEOF
23228 rm -f conftest.$ac_objext conftest$ac_exeext
23229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23230   (eval $ac_link) 2>conftest.er1
23231   ac_status=$?
23232   grep -v '^ *+' conftest.er1 >conftest.err
23233   rm -f conftest.er1
23234   cat conftest.err >&5
23235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236   (exit $ac_status); } &&
23237          { ac_try='test -z "$ac_c_werror_flag"
23238                          || test ! -s conftest.err'
23239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23240   (eval $ac_try) 2>&5
23241   ac_status=$?
23242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243   (exit $ac_status); }; } &&
23244          { ac_try='test -s conftest$ac_exeext'
23245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23246   (eval $ac_try) 2>&5
23247   ac_status=$?
23248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23249   (exit $ac_status); }; }; then
23250   eval "$as_ac_var=yes"
23251 else
23252   echo "$as_me: failed program was:" >&5
23253 sed 's/^/| /' conftest.$ac_ext >&5
23254
23255 eval "$as_ac_var=no"
23256 fi
23257 rm -f conftest.err conftest.$ac_objext \
23258       conftest$ac_exeext conftest.$ac_ext
23259 fi
23260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23261 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23262 if test `eval echo '${'$as_ac_var'}'` = yes; then
23263   cat >>confdefs.h <<_ACEOF
23264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23265 _ACEOF
23266
23267 fi
23268 done
23269
23270 echo "$as_me:$LINENO: checking for mprotect" >&5
23271 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23272 if test "${ac_cv_func_mprotect+set}" = set; then
23273   echo $ECHO_N "(cached) $ECHO_C" >&6
23274 else
23275   cat >conftest.$ac_ext <<_ACEOF
23276 /* confdefs.h.  */
23277 _ACEOF
23278 cat confdefs.h >>conftest.$ac_ext
23279 cat >>conftest.$ac_ext <<_ACEOF
23280 /* end confdefs.h.  */
23281 /* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23283 #define mprotect innocuous_mprotect
23284
23285 /* System header to define __stub macros and hopefully few prototypes,
23286     which can conflict with char mprotect (); below.
23287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23288     <limits.h> exists even on freestanding compilers.  */
23289
23290 #ifdef __STDC__
23291 # include <limits.h>
23292 #else
23293 # include <assert.h>
23294 #endif
23295
23296 #undef mprotect
23297
23298 /* Override any gcc2 internal prototype to avoid an error.  */
23299 #ifdef __cplusplus
23300 extern "C"
23301 {
23302 #endif
23303 /* We use char because int might match the return type of a gcc2
23304    builtin and then its argument prototype would still apply.  */
23305 char mprotect ();
23306 /* The GNU C library defines this for functions which it implements
23307     to always fail with ENOSYS.  Some functions are actually named
23308     something starting with __ and the normal name is an alias.  */
23309 #if defined (__stub_mprotect) || defined (__stub___mprotect)
23310 choke me
23311 #else
23312 char (*f) () = mprotect;
23313 #endif
23314 #ifdef __cplusplus
23315 }
23316 #endif
23317
23318 int
23319 main ()
23320 {
23321 return f != mprotect;
23322   ;
23323   return 0;
23324 }
23325 _ACEOF
23326 rm -f conftest.$ac_objext conftest$ac_exeext
23327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23328   (eval $ac_link) 2>conftest.er1
23329   ac_status=$?
23330   grep -v '^ *+' conftest.er1 >conftest.err
23331   rm -f conftest.er1
23332   cat conftest.err >&5
23333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334   (exit $ac_status); } &&
23335          { ac_try='test -z "$ac_c_werror_flag"
23336                          || test ! -s conftest.err'
23337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23338   (eval $ac_try) 2>&5
23339   ac_status=$?
23340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341   (exit $ac_status); }; } &&
23342          { ac_try='test -s conftest$ac_exeext'
23343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23344   (eval $ac_try) 2>&5
23345   ac_status=$?
23346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347   (exit $ac_status); }; }; then
23348   ac_cv_func_mprotect=yes
23349 else
23350   echo "$as_me: failed program was:" >&5
23351 sed 's/^/| /' conftest.$ac_ext >&5
23352
23353 ac_cv_func_mprotect=no
23354 fi
23355 rm -f conftest.err conftest.$ac_objext \
23356       conftest$ac_exeext conftest.$ac_ext
23357 fi
23358 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23359 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23360 if test $ac_cv_func_mprotect = yes; then
23361   :
23362 else
23363   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23364 echo "$as_me: error: Function mprotect() required but not found" >&2;}
23365    { (exit 1); exit 1; }; }
23366 fi
23367
23368
23369
23370   echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23371 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
23372
23373
23374   ac_ext=c
23375 ac_cpp='$CPP $CPPFLAGS'
23376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23379
23380   oldcflags="$CFLAGS"
23381   CFLAGS="$CFLAGS -Wl,-R."
23382   cat >conftest.$ac_ext <<_ACEOF
23383 int main() { return 0; }
23384 _ACEOF
23385 rm -f conftest.$ac_objext conftest$ac_exeext
23386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23387   (eval $ac_link) 2>conftest.er1
23388   ac_status=$?
23389   grep -v '^ *+' conftest.er1 >conftest.err
23390   rm -f conftest.er1
23391   cat conftest.err >&5
23392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393   (exit $ac_status); } &&
23394          { ac_try='test -z "$ac_c_werror_flag"
23395                          || test ! -s conftest.err'
23396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23397   (eval $ac_try) 2>&5
23398   ac_status=$?
23399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400   (exit $ac_status); }; } &&
23401          { ac_try='test -s conftest$ac_exeext'
23402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23403   (eval $ac_try) 2>&5
23404   ac_status=$?
23405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406   (exit $ac_status); }; }; then
23407   ac_cv_link_use_r=yes
23408 else
23409   echo "$as_me: failed program was:" >&5
23410 sed 's/^/| /' conftest.$ac_ext >&5
23411
23412 ac_cv_link_use_r=no
23413 fi
23414 rm -f conftest.err conftest.$ac_objext \
23415       conftest$ac_exeext conftest.$ac_ext
23416   CFLAGS="$oldcflags"
23417   ac_ext=c
23418 ac_cpp='$CPP $CPPFLAGS'
23419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23422
23423   echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23424 echo "${ECHO_T}$ac_cv_link_use_r" >&6
23425   if test "$ac_cv_link_use_r" = yes
23426   then
23427
23428 cat >>confdefs.h <<\_ACEOF
23429 #define HAVE_LINK_R 1
23430 _ACEOF
23431
23432   fi
23433
23434
23435 # Check whether --enable-optimized or --disable-optimized was given.
23436 if test "${enable_optimized+set}" = set; then
23437   enableval="$enable_optimized"
23438
23439 else
23440   enableval=no
23441 fi;
23442 if test ${enableval} = "no"
23443 then
23444         ENABLE_OPTIMIZED=
23445
23446 else
23447         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23448
23449 fi
23450
23451
23452
23453
23454  # Check whether --enable-spec95 or --disable-spec95 was given.
23455 if test "${enable_spec95+set}" = set; then
23456   enableval="$enable_spec95"
23457   checkresult=$enableval
23458 else
23459   checkresult=auto
23460 fi;
23461 echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
23462 echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
23463 case "$checkresult" in
23464 auto|yes)
23465     defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
23466         if test -d "$defaultdir"
23467         then
23468                 SPEC95_ROOT=$defaultdir
23469
23470                 USE_SPEC95=USE_SPEC95=1
23471
23472         checkresult="yes, found in $defaultdir"
23473     else
23474         checkresult=no
23475     fi
23476     ;;
23477 no)
23478
23479
23480     checkresult=no
23481     ;;
23482 *)  if test -d "$checkresult"
23483     then
23484         SPEC95_ROOT="$checkresult"
23485
23486         USE_SPEC95=USE_SPEC95=1
23487
23488         checkresult="yes, in $checkresult"
23489     else
23490
23491
23492         checkresult="no, not found in $checkresult"
23493     fi
23494     ;;
23495 esac
23496 echo "$as_me:$LINENO: result: $checkresult" >&5
23497 echo "${ECHO_T}$checkresult" >&6
23498
23499
23500
23501  # Check whether --enable-spec2000 or --disable-spec2000 was given.
23502 if test "${enable_spec2000+set}" = set; then
23503   enableval="$enable_spec2000"
23504   checkresult=$enableval
23505 else
23506   checkresult=auto
23507 fi;
23508 echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
23509 echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
23510 case "$checkresult" in
23511 auto|yes)
23512     defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23513         if test -d "$defaultdir"
23514         then
23515                 SPEC2000_ROOT=$defaultdir
23516
23517                 USE_SPEC2000=USE_SPEC2000=1
23518
23519         checkresult="yes, found in $defaultdir"
23520     else
23521         checkresult=no
23522     fi
23523     ;;
23524 no)
23525
23526
23527     checkresult=no
23528     ;;
23529 *)  if test -d "$checkresult"
23530     then
23531         SPEC2000_ROOT="$checkresult"
23532
23533         USE_SPEC2000=USE_SPEC2000=1
23534
23535         checkresult="yes, in $checkresult"
23536     else
23537
23538
23539         checkresult="no, not found in $checkresult"
23540     fi
23541     ;;
23542 esac
23543 echo "$as_me:$LINENO: result: $checkresult" >&5
23544 echo "${ECHO_T}$checkresult" >&6
23545
23546
23547
23548  # Check whether --enable-povray or --disable-povray was given.
23549 if test "${enable_povray+set}" = set; then
23550   enableval="$enable_povray"
23551   checkresult=$enableval
23552 else
23553   checkresult=auto
23554 fi;
23555 echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
23556 echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
23557 case "$checkresult" in
23558 auto|yes)
23559     defaultdir=/home/vadve/shared/benchmarks/povray31
23560         if test -d "$defaultdir"
23561         then
23562                 POVRAY_ROOT=$defaultdir
23563
23564                 USE_POVRAY=USE_POVRAY=1
23565
23566         checkresult="yes, found in $defaultdir"
23567     else
23568         checkresult=no
23569     fi
23570     ;;
23571 no)
23572
23573
23574     checkresult=no
23575     ;;
23576 *)  if test -d "$checkresult"
23577     then
23578         POVRAY_ROOT="$checkresult"
23579
23580         USE_POVRAY=USE_POVRAY=1
23581
23582         checkresult="yes, in $checkresult"
23583     else
23584
23585
23586         checkresult="no, not found in $checkresult"
23587     fi
23588     ;;
23589 esac
23590 echo "$as_me:$LINENO: result: $checkresult" >&5
23591 echo "${ECHO_T}$checkresult" >&6
23592
23593
23594
23595 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
23596 if test "${enable_precompiled_bytecode+set}" = set; then
23597   enableval="$enable_precompiled_bytecode"
23598
23599 else
23600   enableval=no
23601 fi;
23602 if test ${enableval} = "no"
23603 then
23604         UPB=
23605
23606 else
23607         UPB=USE_PRECOMPILED_BYTECODE=1
23608
23609 fi
23610
23611 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
23612 if test "${enable_llc_diffs+set}" = set; then
23613   enableval="$enable_llc_diffs"
23614
23615 else
23616   enableval=yes
23617 fi;
23618 if test ${enableval} = "no"
23619 then
23620         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
23621
23622 else
23623         DISABLE_LLC_DIFFS=
23624
23625 fi
23626
23627 # Check whether --enable-jit or --disable-jit was given.
23628 if test "${enable_jit+set}" = set; then
23629   enableval="$enable_jit"
23630
23631 else
23632   enableval=default
23633 fi;
23634 if test ${enableval} = "no"
23635 then
23636         JIT=
23637
23638 else
23639         case $target in
23640                 *i*86*)
23641                         JIT=TARGET_HAS_JIT=1
23642
23643                         ;;
23644                 *sparc*)
23645                         JIT=TARGET_HAS_JIT=1
23646
23647                         ;;
23648                 *)
23649                         JIT=
23650
23651                         ;;
23652         esac
23653 fi
23654
23655
23656 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23657 if test "${with_llvmgccdir+set}" = set; then
23658   withval="$with_llvmgccdir"
23659   LLVMGCCDIR=$withval
23660
23661 fi;
23662 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23663 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23664 LLVM_GCC_CHECK=no
23665 if test -d "$LLVMGCCDIR"
23666 then
23667         if test -x "$LLVMGCCDIR/bin/gcc"
23668         then
23669                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23670         fi
23671 fi
23672 llvmgccwarn=no
23673 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23674 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23675 if test "$LLVM_GCC_CHECK" = "no"
23676 then
23677     llvmgccwarn=yes
23678 fi
23679 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23680 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23681 LLVM_GCC_SANE=no
23682 if test -x "$LLVM_GCC_CHECK"
23683 then
23684         cp /dev/null conftest.c
23685     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23686         if test $? -eq 0
23687         then
23688                 LLVM_GCC_SANE=yes
23689         fi
23690         rm conftest.c
23691         llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
23692         LLVMCC1=$llvmcc1path
23693
23694         llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
23695         LLVMCC1PLUS=$llvmcc1pluspath
23696
23697 fi
23698 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23699 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23700 if test "$LLVM_GCC_SANE" = "no"
23701 then
23702         llvmgccwarn=yes
23703 fi
23704
23705
23706 # Check whether --with-bcrepos or --without-bcrepos was given.
23707 if test "${with_bcrepos+set}" = set; then
23708   withval="$with_bcrepos"
23709   BCR=$withval
23710
23711 else
23712   BCR=/home/vadve/lattner/LLVMPrograms
23713
23714 fi;
23715
23716
23717 # Check whether --with-papi or --without-papi was given.
23718 if test "${with_papi+set}" = set; then
23719   withval="$with_papi"
23720   PAPIDIR=$withval
23721
23722 else
23723   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
23724
23725 fi;
23726
23727 echo "$as_me:$LINENO: checking for shared library suffix" >&5
23728 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23729 eval "SHLIBEXT=$shrext"
23730 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23731 echo "${ECHO_T}$SHLIBEXT" >&6
23732 SHLIBEXT=$SHLIBEXT
23733
23734
23735 cat >>confdefs.h <<_ACEOF
23736 #define SHLIBEXT "$SHLIBEXT"
23737 _ACEOF
23738
23739
23740 # Translate the various configuration directories and other basic
23741 # information into substitutions that will end up in config.h.in so
23742 # that these configured values can be hard-wired into a program.
23743 eval LLVM_PREFIX="${prefix}";
23744 eval LLVM_BINDIR="${prefix}/bin";
23745 eval LLVM_LIBDIR="${prefix}/lib";
23746 eval LLVM_DATADIR="${prefix}/data";
23747 eval LLVM_DOCSDIR="${prefix}/docs";
23748 eval LLVM_ETCDIR="${prefix}/etc";
23749 eval LLVM_INCLUDEDIR="${prefix}/include";
23750 eval LLVM_INFODIR="${prefix}/info";
23751 eval LLVM_MANDIR="${prefix}/man";
23752 LLVM_CONFIGTIME=`date`
23753
23754
23755
23756
23757
23758
23759
23760
23761
23762
23763
23764 cat >>confdefs.h <<_ACEOF
23765 #define LLVM_PREFIX "$LLVM_PREFIX"
23766 _ACEOF
23767
23768
23769 cat >>confdefs.h <<_ACEOF
23770 #define LLVM_BINDIR "$LLVM_BINDIR"
23771 _ACEOF
23772
23773
23774 cat >>confdefs.h <<_ACEOF
23775 #define LLVM_LIBDIR "$LLVM_LIBDIR"
23776 _ACEOF
23777
23778
23779 cat >>confdefs.h <<_ACEOF
23780 #define LLVM_DATADIR "$LLVM_DATADIR"
23781 _ACEOF
23782
23783
23784 cat >>confdefs.h <<_ACEOF
23785 #define LLVM_DATADIR "$LLVM_DOCSDIR"
23786 _ACEOF
23787
23788
23789 cat >>confdefs.h <<_ACEOF
23790 #define LLVM_ETCDIR "$LLVM_ETCDIR"
23791 _ACEOF
23792
23793
23794 cat >>confdefs.h <<_ACEOF
23795 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23796 _ACEOF
23797
23798
23799 cat >>confdefs.h <<_ACEOF
23800 #define LLVM_INFODIR "$LLVM_INFODIR"
23801 _ACEOF
23802
23803
23804 cat >>confdefs.h <<_ACEOF
23805 #define LLVM_MANDIR "$LLVM_MANDIR"
23806 _ACEOF
23807
23808
23809 cat >>confdefs.h <<_ACEOF
23810 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23811 _ACEOF
23812
23813
23814 cat >confcache <<\_ACEOF
23815 # This file is a shell script that caches the results of configure
23816 # tests run on this system so they can be shared between configure
23817 # scripts and configure runs, see configure's option --config-cache.
23818 # It is not useful on other systems.  If it contains results you don't
23819 # want to keep, you may remove or edit it.
23820 #
23821 # config.status only pays attention to the cache file if you give it
23822 # the --recheck option to rerun configure.
23823 #
23824 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23825 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23826 # following values.
23827
23828 _ACEOF
23829
23830 # The following way of writing the cache mishandles newlines in values,
23831 # but we know of no workaround that is simple, portable, and efficient.
23832 # So, don't put newlines in cache variables' values.
23833 # Ultrix sh set writes to stderr and can't be redirected directly,
23834 # and sets the high bit in the cache file unless we assign to the vars.
23835 {
23836   (set) 2>&1 |
23837     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23838     *ac_space=\ *)
23839       # `set' does not quote correctly, so add quotes (double-quote
23840       # substitution turns \\\\ into \\, and sed turns \\ into \).
23841       sed -n \
23842         "s/'/'\\\\''/g;
23843           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23844       ;;
23845     *)
23846       # `set' quotes correctly as required by POSIX, so do not add quotes.
23847       sed -n \
23848         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23849       ;;
23850     esac;
23851 } |
23852   sed '
23853      t clear
23854      : clear
23855      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23856      t end
23857      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23858      : end' >>confcache
23859 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23860   if test -w $cache_file; then
23861     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23862     cat confcache >$cache_file
23863   else
23864     echo "not updating unwritable cache $cache_file"
23865   fi
23866 fi
23867 rm -f confcache
23868
23869 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23870 # Let make expand exec_prefix.
23871 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23872
23873 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23874 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23875 # trailing colons and then remove the whole line if VPATH becomes empty
23876 # (actually we leave an empty line to preserve line numbers).
23877 if test "x$srcdir" = x.; then
23878   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23879 s/:*\$(srcdir):*/:/;
23880 s/:*\${srcdir}:*/:/;
23881 s/:*@srcdir@:*/:/;
23882 s/^\([^=]*=[     ]*\):*/\1/;
23883 s/:*$//;
23884 s/^[^=]*=[       ]*$//;
23885 }'
23886 fi
23887
23888 DEFS=-DHAVE_CONFIG_H
23889
23890 ac_libobjs=
23891 ac_ltlibobjs=
23892 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23893   # 1. Remove the extension, and $U if already installed.
23894   ac_i=`echo "$ac_i" |
23895          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23896   # 2. Add them.
23897   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23898   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23899 done
23900 LIBOBJS=$ac_libobjs
23901
23902 LTLIBOBJS=$ac_ltlibobjs
23903
23904
23905
23906 : ${CONFIG_STATUS=./config.status}
23907 ac_clean_files_save=$ac_clean_files
23908 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23909 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23910 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23911 cat >$CONFIG_STATUS <<_ACEOF
23912 #! $SHELL
23913 # Generated by $as_me.
23914 # Run this file to recreate the current configuration.
23915 # Compiler output produced by configure, useful for debugging
23916 # configure, is in config.log if it exists.
23917
23918 debug=false
23919 ac_cs_recheck=false
23920 ac_cs_silent=false
23921 SHELL=\${CONFIG_SHELL-$SHELL}
23922 _ACEOF
23923
23924 cat >>$CONFIG_STATUS <<\_ACEOF
23925 ## --------------------- ##
23926 ## M4sh Initialization.  ##
23927 ## --------------------- ##
23928
23929 # Be Bourne compatible
23930 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23931   emulate sh
23932   NULLCMD=:
23933   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23934   # is contrary to our usage.  Disable this feature.
23935   alias -g '${1+"$@"}'='"$@"'
23936 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23937   set -o posix
23938 fi
23939 DUALCASE=1; export DUALCASE # for MKS sh
23940
23941 # Support unset when possible.
23942 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23943   as_unset=unset
23944 else
23945   as_unset=false
23946 fi
23947
23948
23949 # Work around bugs in pre-3.0 UWIN ksh.
23950 $as_unset ENV MAIL MAILPATH
23951 PS1='$ '
23952 PS2='> '
23953 PS4='+ '
23954
23955 # NLS nuisances.
23956 for as_var in \
23957   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23958   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23959   LC_TELEPHONE LC_TIME
23960 do
23961   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23962     eval $as_var=C; export $as_var
23963   else
23964     $as_unset $as_var
23965   fi
23966 done
23967
23968 # Required to use basename.
23969 if expr a : '\(a\)' >/dev/null 2>&1; then
23970   as_expr=expr
23971 else
23972   as_expr=false
23973 fi
23974
23975 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23976   as_basename=basename
23977 else
23978   as_basename=false
23979 fi
23980
23981
23982 # Name of the executable.
23983 as_me=`$as_basename "$0" ||
23984 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23985          X"$0" : 'X\(//\)$' \| \
23986          X"$0" : 'X\(/\)$' \| \
23987          .     : '\(.\)' 2>/dev/null ||
23988 echo X/"$0" |
23989     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23990           /^X\/\(\/\/\)$/{ s//\1/; q; }
23991           /^X\/\(\/\).*/{ s//\1/; q; }
23992           s/.*/./; q'`
23993
23994
23995 # PATH needs CR, and LINENO needs CR and PATH.
23996 # Avoid depending upon Character Ranges.
23997 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23998 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23999 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24000 as_cr_digits='0123456789'
24001 as_cr_alnum=$as_cr_Letters$as_cr_digits
24002
24003 # The user is always right.
24004 if test "${PATH_SEPARATOR+set}" != set; then
24005   echo "#! /bin/sh" >conf$$.sh
24006   echo  "exit 0"   >>conf$$.sh
24007   chmod +x conf$$.sh
24008   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24009     PATH_SEPARATOR=';'
24010   else
24011     PATH_SEPARATOR=:
24012   fi
24013   rm -f conf$$.sh
24014 fi
24015
24016
24017   as_lineno_1=$LINENO
24018   as_lineno_2=$LINENO
24019   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24020   test "x$as_lineno_1" != "x$as_lineno_2" &&
24021   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
24022   # Find who we are.  Look in the path if we contain no path at all
24023   # relative or not.
24024   case $0 in
24025     *[\\/]* ) as_myself=$0 ;;
24026     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24027 for as_dir in $PATH
24028 do
24029   IFS=$as_save_IFS
24030   test -z "$as_dir" && as_dir=.
24031   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24032 done
24033
24034        ;;
24035   esac
24036   # We did not find ourselves, most probably we were run as `sh COMMAND'
24037   # in which case we are not to be found in the path.
24038   if test "x$as_myself" = x; then
24039     as_myself=$0
24040   fi
24041   if test ! -f "$as_myself"; then
24042     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24043 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24044    { (exit 1); exit 1; }; }
24045   fi
24046   case $CONFIG_SHELL in
24047   '')
24048     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24049 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24050 do
24051   IFS=$as_save_IFS
24052   test -z "$as_dir" && as_dir=.
24053   for as_base in sh bash ksh sh5; do
24054          case $as_dir in
24055          /*)
24056            if ("$as_dir/$as_base" -c '
24057   as_lineno_1=$LINENO
24058   as_lineno_2=$LINENO
24059   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24060   test "x$as_lineno_1" != "x$as_lineno_2" &&
24061   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
24062              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24063              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24064              CONFIG_SHELL=$as_dir/$as_base
24065              export CONFIG_SHELL
24066              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24067            fi;;
24068          esac
24069        done
24070 done
24071 ;;
24072   esac
24073
24074   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24075   # uniformly replaced by the line number.  The first 'sed' inserts a
24076   # line-number line before each line; the second 'sed' does the real
24077   # work.  The second script uses 'N' to pair each line-number line
24078   # with the numbered line, and appends trailing '-' during
24079   # substitution so that $LINENO is not a special case at line end.
24080   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24081   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
24082   sed '=' <$as_myself |
24083     sed '
24084       N
24085       s,$,-,
24086       : loop
24087       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24088       t loop
24089       s,-$,,
24090       s,^['$as_cr_digits']*\n,,
24091     ' >$as_me.lineno &&
24092   chmod +x $as_me.lineno ||
24093     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24094 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24095    { (exit 1); exit 1; }; }
24096
24097   # Don't try to exec as it changes $[0], causing all sort of problems
24098   # (the dirname of $[0] is not the place where we might find the
24099   # original and so on.  Autoconf is especially sensible to this).
24100   . ./$as_me.lineno
24101   # Exit status is that of the last command.
24102   exit
24103 }
24104
24105
24106 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24107   *c*,-n*) ECHO_N= ECHO_C='
24108 ' ECHO_T='      ' ;;
24109   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24110   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
24111 esac
24112
24113 if expr a : '\(a\)' >/dev/null 2>&1; then
24114   as_expr=expr
24115 else
24116   as_expr=false
24117 fi
24118
24119 rm -f conf$$ conf$$.exe conf$$.file
24120 echo >conf$$.file
24121 if ln -s conf$$.file conf$$ 2>/dev/null; then
24122   # We could just check for DJGPP; but this test a) works b) is more generic
24123   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24124   if test -f conf$$.exe; then
24125     # Don't use ln at all; we don't have any links
24126     as_ln_s='cp -p'
24127   else
24128     as_ln_s='ln -s'
24129   fi
24130 elif ln conf$$.file conf$$ 2>/dev/null; then
24131   as_ln_s=ln
24132 else
24133   as_ln_s='cp -p'
24134 fi
24135 rm -f conf$$ conf$$.exe conf$$.file
24136
24137 if mkdir -p . 2>/dev/null; then
24138   as_mkdir_p=:
24139 else
24140   test -d ./-p && rmdir ./-p
24141   as_mkdir_p=false
24142 fi
24143
24144 as_executable_p="test -f"
24145
24146 # Sed expression to map a string onto a valid CPP name.
24147 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24148
24149 # Sed expression to map a string onto a valid variable name.
24150 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24151
24152
24153 # IFS
24154 # We need space, tab and new line, in precisely that order.
24155 as_nl='
24156 '
24157 IFS="   $as_nl"
24158
24159 # CDPATH.
24160 $as_unset CDPATH
24161
24162 exec 6>&1
24163
24164 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24165 # report actual input values of CONFIG_FILES etc. instead of their
24166 # values after options handling.  Logging --version etc. is OK.
24167 exec 5>>config.log
24168 {
24169   echo
24170   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24171 ## Running $as_me. ##
24172 _ASBOX
24173 } >&5
24174 cat >&5 <<_CSEOF
24175
24176 This file was extended by LLVM $as_me 1.4, which was
24177 generated by GNU Autoconf 2.59.  Invocation command line was
24178
24179   CONFIG_FILES    = $CONFIG_FILES
24180   CONFIG_HEADERS  = $CONFIG_HEADERS
24181   CONFIG_LINKS    = $CONFIG_LINKS
24182   CONFIG_COMMANDS = $CONFIG_COMMANDS
24183   $ $0 $@
24184
24185 _CSEOF
24186 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24187 echo >&5
24188 _ACEOF
24189
24190 # Files that config.status was made for.
24191 if test -n "$ac_config_files"; then
24192   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24193 fi
24194
24195 if test -n "$ac_config_headers"; then
24196   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24197 fi
24198
24199 if test -n "$ac_config_links"; then
24200   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24201 fi
24202
24203 if test -n "$ac_config_commands"; then
24204   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24205 fi
24206
24207 cat >>$CONFIG_STATUS <<\_ACEOF
24208
24209 ac_cs_usage="\
24210 \`$as_me' instantiates files from templates according to the
24211 current configuration.
24212
24213 Usage: $0 [OPTIONS] [FILE]...
24214
24215   -h, --help       print this help, then exit
24216   -V, --version    print version number, then exit
24217   -q, --quiet      do not print progress messages
24218   -d, --debug      don't remove temporary files
24219       --recheck    update $as_me by reconfiguring in the same conditions
24220   --file=FILE[:TEMPLATE]
24221                    instantiate the configuration file FILE
24222   --header=FILE[:TEMPLATE]
24223                    instantiate the configuration header FILE
24224
24225 Configuration files:
24226 $config_files
24227
24228 Configuration headers:
24229 $config_headers
24230
24231 Configuration commands:
24232 $config_commands
24233
24234 Report bugs to <bug-autoconf@gnu.org>."
24235 _ACEOF
24236
24237 cat >>$CONFIG_STATUS <<_ACEOF
24238 ac_cs_version="\\
24239 LLVM config.status 1.4
24240 configured by $0, generated by GNU Autoconf 2.59,
24241   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24242
24243 Copyright (C) 2003 Free Software Foundation, Inc.
24244 This config.status script is free software; the Free Software Foundation
24245 gives unlimited permission to copy, distribute and modify it."
24246 srcdir=$srcdir
24247 INSTALL="$INSTALL"
24248 _ACEOF
24249
24250 cat >>$CONFIG_STATUS <<\_ACEOF
24251 # If no file are specified by the user, then we need to provide default
24252 # value.  By we need to know if files were specified by the user.
24253 ac_need_defaults=:
24254 while test $# != 0
24255 do
24256   case $1 in
24257   --*=*)
24258     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24259     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24260     ac_shift=:
24261     ;;
24262   -*)
24263     ac_option=$1
24264     ac_optarg=$2
24265     ac_shift=shift
24266     ;;
24267   *) # This is not an option, so the user has probably given explicit
24268      # arguments.
24269      ac_option=$1
24270      ac_need_defaults=false;;
24271   esac
24272
24273   case $ac_option in
24274   # Handling of the options.
24275 _ACEOF
24276 cat >>$CONFIG_STATUS <<\_ACEOF
24277   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24278     ac_cs_recheck=: ;;
24279   --version | --vers* | -V )
24280     echo "$ac_cs_version"; exit 0 ;;
24281   --he | --h)
24282     # Conflict between --help and --header
24283     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24284 Try \`$0 --help' for more information." >&5
24285 echo "$as_me: error: ambiguous option: $1
24286 Try \`$0 --help' for more information." >&2;}
24287    { (exit 1); exit 1; }; };;
24288   --help | --hel | -h )
24289     echo "$ac_cs_usage"; exit 0 ;;
24290   --debug | --d* | -d )
24291     debug=: ;;
24292   --file | --fil | --fi | --f )
24293     $ac_shift
24294     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24295     ac_need_defaults=false;;
24296   --header | --heade | --head | --hea )
24297     $ac_shift
24298     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24299     ac_need_defaults=false;;
24300   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24301   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24302     ac_cs_silent=: ;;
24303
24304   # This is an error.
24305   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24306 Try \`$0 --help' for more information." >&5
24307 echo "$as_me: error: unrecognized option: $1
24308 Try \`$0 --help' for more information." >&2;}
24309    { (exit 1); exit 1; }; } ;;
24310
24311   *) ac_config_targets="$ac_config_targets $1" ;;
24312
24313   esac
24314   shift
24315 done
24316
24317 ac_configure_extra_args=
24318
24319 if $ac_cs_silent; then
24320   exec 6>/dev/null
24321   ac_configure_extra_args="$ac_configure_extra_args --silent"
24322 fi
24323
24324 _ACEOF
24325 cat >>$CONFIG_STATUS <<_ACEOF
24326 if \$ac_cs_recheck; then
24327   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24328   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24329 fi
24330
24331 _ACEOF
24332
24333 cat >>$CONFIG_STATUS <<_ACEOF
24334 #
24335 # INIT-COMMANDS section.
24336 #
24337
24338 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24339 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
24340 ${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
24341 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
24342 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
24343 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24344 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24345 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24346 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
24347 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
24348 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
24349 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests`
24350 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
24351 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
24352 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
24353 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
24354 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
24355 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
24356 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
24357 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
24358 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
24359 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
24360 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
24361 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
24362 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
24363 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
24364 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
24365 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
24366 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
24367 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
24368 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
24369 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
24370 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
24371 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
24372 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
24373 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
24374 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
24375 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
24376 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
24377 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
24378 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
24379 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
24380 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
24381 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
24382 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
24383 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
24384 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
24385 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
24386 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
24387 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
24388 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
24389
24390 _ACEOF
24391
24392
24393
24394 cat >>$CONFIG_STATUS <<\_ACEOF
24395 for ac_config_target in $ac_config_targets
24396 do
24397   case "$ac_config_target" in
24398   # Handling of arguments.
24399   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
24400   "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
24401   "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
24402   "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
24403   "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
24404   "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
24405   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24406   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
24407   "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
24408   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
24409   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
24410   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24411   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
24412   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24413   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
24414   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
24415   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
24416   "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;;
24417   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
24418   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
24419   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
24420   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
24421   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
24422   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
24423   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
24424   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
24425   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
24426   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
24427   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
24428   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
24429   "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
24430   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
24431   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
24432   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
24433   "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
24434   "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
24435   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
24436   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
24437   "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
24438   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
24439   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
24440   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
24441   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
24442   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
24443   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
24444   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
24445   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
24446   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
24447   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
24448   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
24449   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
24450   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
24451   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
24452   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
24453   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
24454   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
24455   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
24456   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
24457   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24458 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24459    { (exit 1); exit 1; }; };;
24460   esac
24461 done
24462
24463 # If the user did not use the arguments to specify the items to instantiate,
24464 # then the envvar interface is used.  Set only those that are not.
24465 # We use the long form for the default assignment because of an extremely
24466 # bizarre bug on SunOS 4.1.3.
24467 if $ac_need_defaults; then
24468   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24469   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24470   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24471 fi
24472
24473 # Have a temporary directory for convenience.  Make it in the build tree
24474 # simply because there is no reason to put it here, and in addition,
24475 # creating and moving files from /tmp can sometimes cause problems.
24476 # Create a temporary directory, and hook for its removal unless debugging.
24477 $debug ||
24478 {
24479   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24480   trap '{ (exit 1); exit 1; }' 1 2 13 15
24481 }
24482
24483 # Create a (secure) tmp directory for tmp files.
24484
24485 {
24486   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24487   test -n "$tmp" && test -d "$tmp"
24488 }  ||
24489 {
24490   tmp=./confstat$$-$RANDOM
24491   (umask 077 && mkdir $tmp)
24492 } ||
24493 {
24494    echo "$me: cannot create a temporary directory in ." >&2
24495    { (exit 1); exit 1; }
24496 }
24497
24498 _ACEOF
24499
24500 cat >>$CONFIG_STATUS <<_ACEOF
24501
24502 #
24503 # CONFIG_FILES section.
24504 #
24505
24506 # No need to generate the scripts if there are no CONFIG_FILES.
24507 # This happens for instance when ./config.status config.h
24508 if test -n "\$CONFIG_FILES"; then
24509   # Protect against being on the right side of a sed subst in config.status.
24510   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24511    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24512 s,@SHELL@,$SHELL,;t t
24513 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24514 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24515 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24516 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24517 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24518 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24519 s,@exec_prefix@,$exec_prefix,;t t
24520 s,@prefix@,$prefix,;t t
24521 s,@program_transform_name@,$program_transform_name,;t t
24522 s,@bindir@,$bindir,;t t
24523 s,@sbindir@,$sbindir,;t t
24524 s,@libexecdir@,$libexecdir,;t t
24525 s,@datadir@,$datadir,;t t
24526 s,@sysconfdir@,$sysconfdir,;t t
24527 s,@sharedstatedir@,$sharedstatedir,;t t
24528 s,@localstatedir@,$localstatedir,;t t
24529 s,@libdir@,$libdir,;t t
24530 s,@includedir@,$includedir,;t t
24531 s,@oldincludedir@,$oldincludedir,;t t
24532 s,@infodir@,$infodir,;t t
24533 s,@mandir@,$mandir,;t t
24534 s,@build_alias@,$build_alias,;t t
24535 s,@host_alias@,$host_alias,;t t
24536 s,@target_alias@,$target_alias,;t t
24537 s,@DEFS@,$DEFS,;t t
24538 s,@ECHO_C@,$ECHO_C,;t t
24539 s,@ECHO_N@,$ECHO_N,;t t
24540 s,@ECHO_T@,$ECHO_T,;t t
24541 s,@LIBS@,$LIBS,;t t
24542 s,@subdirs@,$subdirs,;t t
24543 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24544 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24545 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24546 s,@build@,$build,;t t
24547 s,@build_cpu@,$build_cpu,;t t
24548 s,@build_vendor@,$build_vendor,;t t
24549 s,@build_os@,$build_os,;t t
24550 s,@host@,$host,;t t
24551 s,@host_cpu@,$host_cpu,;t t
24552 s,@host_vendor@,$host_vendor,;t t
24553 s,@host_os@,$host_os,;t t
24554 s,@target@,$target,;t t
24555 s,@target_cpu@,$target_cpu,;t t
24556 s,@target_vendor@,$target_vendor,;t t
24557 s,@target_os@,$target_os,;t t
24558 s,@OS@,$OS,;t t
24559 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
24560 s,@ARCH@,$ARCH,;t t
24561 s,@CXX@,$CXX,;t t
24562 s,@CXXFLAGS@,$CXXFLAGS,;t t
24563 s,@LDFLAGS@,$LDFLAGS,;t t
24564 s,@CPPFLAGS@,$CPPFLAGS,;t t
24565 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24566 s,@EXEEXT@,$EXEEXT,;t t
24567 s,@OBJEXT@,$OBJEXT,;t t
24568 s,@CC@,$CC,;t t
24569 s,@CFLAGS@,$CFLAGS,;t t
24570 s,@ac_ct_CC@,$ac_ct_CC,;t t
24571 s,@CPP@,$CPP,;t t
24572 s,@ifGNUmake@,$ifGNUmake,;t t
24573 s,@LEX@,$LEX,;t t
24574 s,@LEXLIB@,$LEXLIB,;t t
24575 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24576 s,@YACC@,$YACC,;t t
24577 s,@BISON@,$BISON,;t t
24578 s,@EGREP@,$EGREP,;t t
24579 s,@LN_S@,$LN_S,;t t
24580 s,@ECHO@,$ECHO,;t t
24581 s,@AR@,$AR,;t t
24582 s,@ac_ct_AR@,$ac_ct_AR,;t t
24583 s,@RANLIB@,$RANLIB,;t t
24584 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24585 s,@STRIP@,$STRIP,;t t
24586 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24587 s,@CXXCPP@,$CXXCPP,;t t
24588 s,@F77@,$F77,;t t
24589 s,@FFLAGS@,$FFLAGS,;t t
24590 s,@ac_ct_F77@,$ac_ct_F77,;t t
24591 s,@LIBTOOL@,$LIBTOOL,;t t
24592 s,@DOT@,$DOT,;t t
24593 s,@ETAGS@,$ETAGS,;t t
24594 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
24595 s,@PYTHON@,$PYTHON,;t t
24596 s,@QMTEST@,$QMTEST,;t t
24597 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
24598 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
24599 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
24600 s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
24601 s,@ENDIAN@,$ENDIAN,;t t
24602 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24603 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24604 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24605 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24606 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24607 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
24608 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24609 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24610 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
24611 s,@ALLOCA@,$ALLOCA,;t t
24612 s,@MMAP_FILE@,$MMAP_FILE,;t t
24613 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
24614 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
24615 s,@USE_SPEC95@,$USE_SPEC95,;t t
24616 s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
24617 s,@USE_SPEC2000@,$USE_SPEC2000,;t t
24618 s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
24619 s,@USE_POVRAY@,$USE_POVRAY,;t t
24620 s,@UPB@,$UPB,;t t
24621 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
24622 s,@JIT@,$JIT,;t t
24623 s,@LLVMCC1@,$LLVMCC1,;t t
24624 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
24625 s,@BCR@,$BCR,;t t
24626 s,@PAPIDIR@,$PAPIDIR,;t t
24627 s,@SHLIBEXT@,$SHLIBEXT,;t t
24628 s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24629 s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24630 s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24631 s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24632 s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24633 s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24634 s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24635 s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24636 s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24637 s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
24638 s,@LIBOBJS@,$LIBOBJS,;t t
24639 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24640 CEOF
24641
24642 _ACEOF
24643
24644   cat >>$CONFIG_STATUS <<\_ACEOF
24645   # Split the substitutions into bite-sized pieces for seds with
24646   # small command number limits, like on Digital OSF/1 and HP-UX.
24647   ac_max_sed_lines=48
24648   ac_sed_frag=1 # Number of current file.
24649   ac_beg=1 # First line for current file.
24650   ac_end=$ac_max_sed_lines # Line after last line for current file.
24651   ac_more_lines=:
24652   ac_sed_cmds=
24653   while $ac_more_lines; do
24654     if test $ac_beg -gt 1; then
24655       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24656     else
24657       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24658     fi
24659     if test ! -s $tmp/subs.frag; then
24660       ac_more_lines=false
24661     else
24662       # The purpose of the label and of the branching condition is to
24663       # speed up the sed processing (if there are no `@' at all, there
24664       # is no need to browse any of the substitutions).
24665       # These are the two extra sed commands mentioned above.
24666       (echo ':t
24667   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24668       if test -z "$ac_sed_cmds"; then
24669         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24670       else
24671         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24672       fi
24673       ac_sed_frag=`expr $ac_sed_frag + 1`
24674       ac_beg=$ac_end
24675       ac_end=`expr $ac_end + $ac_max_sed_lines`
24676     fi
24677   done
24678   if test -z "$ac_sed_cmds"; then
24679     ac_sed_cmds=cat
24680   fi
24681 fi # test -n "$CONFIG_FILES"
24682
24683 _ACEOF
24684 cat >>$CONFIG_STATUS <<\_ACEOF
24685 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24686   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24687   case $ac_file in
24688   - | *:- | *:-:* ) # input from stdin
24689         cat >$tmp/stdin
24690         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24691         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24692   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24693         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24694   * )   ac_file_in=$ac_file.in ;;
24695   esac
24696
24697   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24698   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24699 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24700          X"$ac_file" : 'X\(//\)[^/]' \| \
24701          X"$ac_file" : 'X\(//\)$' \| \
24702          X"$ac_file" : 'X\(/\)' \| \
24703          .     : '\(.\)' 2>/dev/null ||
24704 echo X"$ac_file" |
24705     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24706           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24707           /^X\(\/\/\)$/{ s//\1/; q; }
24708           /^X\(\/\).*/{ s//\1/; q; }
24709           s/.*/./; q'`
24710   { if $as_mkdir_p; then
24711     mkdir -p "$ac_dir"
24712   else
24713     as_dir="$ac_dir"
24714     as_dirs=
24715     while test ! -d "$as_dir"; do
24716       as_dirs="$as_dir $as_dirs"
24717       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24718 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24719          X"$as_dir" : 'X\(//\)[^/]' \| \
24720          X"$as_dir" : 'X\(//\)$' \| \
24721          X"$as_dir" : 'X\(/\)' \| \
24722          .     : '\(.\)' 2>/dev/null ||
24723 echo X"$as_dir" |
24724     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24725           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24726           /^X\(\/\/\)$/{ s//\1/; q; }
24727           /^X\(\/\).*/{ s//\1/; q; }
24728           s/.*/./; q'`
24729     done
24730     test ! -n "$as_dirs" || mkdir $as_dirs
24731   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24732 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24733    { (exit 1); exit 1; }; }; }
24734
24735   ac_builddir=.
24736
24737 if test "$ac_dir" != .; then
24738   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24739   # A "../" for each directory in $ac_dir_suffix.
24740   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24741 else
24742   ac_dir_suffix= ac_top_builddir=
24743 fi
24744
24745 case $srcdir in
24746   .)  # No --srcdir option.  We are building in place.
24747     ac_srcdir=.
24748     if test -z "$ac_top_builddir"; then
24749        ac_top_srcdir=.
24750     else
24751        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24752     fi ;;
24753   [\\/]* | ?:[\\/]* )  # Absolute path.
24754     ac_srcdir=$srcdir$ac_dir_suffix;
24755     ac_top_srcdir=$srcdir ;;
24756   *) # Relative path.
24757     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24758     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24759 esac
24760
24761 # Do not use `cd foo && pwd` to compute absolute paths, because
24762 # the directories may not exist.
24763 case `pwd` in
24764 .) ac_abs_builddir="$ac_dir";;
24765 *)
24766   case "$ac_dir" in
24767   .) ac_abs_builddir=`pwd`;;
24768   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24769   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24770   esac;;
24771 esac
24772 case $ac_abs_builddir in
24773 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24774 *)
24775   case ${ac_top_builddir}. in
24776   .) ac_abs_top_builddir=$ac_abs_builddir;;
24777   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24778   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24779   esac;;
24780 esac
24781 case $ac_abs_builddir in
24782 .) ac_abs_srcdir=$ac_srcdir;;
24783 *)
24784   case $ac_srcdir in
24785   .) ac_abs_srcdir=$ac_abs_builddir;;
24786   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24787   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24788   esac;;
24789 esac
24790 case $ac_abs_builddir in
24791 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24792 *)
24793   case $ac_top_srcdir in
24794   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24795   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24796   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24797   esac;;
24798 esac
24799
24800
24801   case $INSTALL in
24802   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24803   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24804   esac
24805
24806   if test x"$ac_file" != x-; then
24807     { echo "$as_me:$LINENO: creating $ac_file" >&5
24808 echo "$as_me: creating $ac_file" >&6;}
24809     rm -f "$ac_file"
24810   fi
24811   # Let's still pretend it is `configure' which instantiates (i.e., don't
24812   # use $as_me), people would be surprised to read:
24813   #    /* config.h.  Generated by config.status.  */
24814   if test x"$ac_file" = x-; then
24815     configure_input=
24816   else
24817     configure_input="$ac_file.  "
24818   fi
24819   configure_input=$configure_input"Generated from `echo $ac_file_in |
24820                                      sed 's,.*/,,'` by configure."
24821
24822   # First look for the input files in the build tree, otherwise in the
24823   # src tree.
24824   ac_file_inputs=`IFS=:
24825     for f in $ac_file_in; do
24826       case $f in
24827       -) echo $tmp/stdin ;;
24828       [\\/$]*)
24829          # Absolute (can't be DOS-style, as IFS=:)
24830          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24831 echo "$as_me: error: cannot find input file: $f" >&2;}
24832    { (exit 1); exit 1; }; }
24833          echo "$f";;
24834       *) # Relative
24835          if test -f "$f"; then
24836            # Build tree
24837            echo "$f"
24838          elif test -f "$srcdir/$f"; then
24839            # Source tree
24840            echo "$srcdir/$f"
24841          else
24842            # /dev/null tree
24843            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24844 echo "$as_me: error: cannot find input file: $f" >&2;}
24845    { (exit 1); exit 1; }; }
24846          fi;;
24847       esac
24848     done` || { (exit 1); exit 1; }
24849 _ACEOF
24850 cat >>$CONFIG_STATUS <<_ACEOF
24851   sed "$ac_vpsub
24852 $extrasub
24853 _ACEOF
24854 cat >>$CONFIG_STATUS <<\_ACEOF
24855 :t
24856 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24857 s,@configure_input@,$configure_input,;t t
24858 s,@srcdir@,$ac_srcdir,;t t
24859 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24860 s,@top_srcdir@,$ac_top_srcdir,;t t
24861 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24862 s,@builddir@,$ac_builddir,;t t
24863 s,@abs_builddir@,$ac_abs_builddir,;t t
24864 s,@top_builddir@,$ac_top_builddir,;t t
24865 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24866 s,@INSTALL@,$ac_INSTALL,;t t
24867 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24868   rm -f $tmp/stdin
24869   if test x"$ac_file" != x-; then
24870     mv $tmp/out $ac_file
24871   else
24872     cat $tmp/out
24873     rm -f $tmp/out
24874   fi
24875
24876 done
24877 _ACEOF
24878 cat >>$CONFIG_STATUS <<\_ACEOF
24879
24880 #
24881 # CONFIG_HEADER section.
24882 #
24883
24884 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24885 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24886 #
24887 # ac_d sets the value in "#define NAME VALUE" lines.
24888 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24889 ac_dB='[         ].*$,\1#\2'
24890 ac_dC=' '
24891 ac_dD=',;t'
24892 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24893 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24894 ac_uB='$,\1#\2define\3'
24895 ac_uC=' '
24896 ac_uD=',;t'
24897
24898 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24899   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24900   case $ac_file in
24901   - | *:- | *:-:* ) # input from stdin
24902         cat >$tmp/stdin
24903         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24904         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24905   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24906         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24907   * )   ac_file_in=$ac_file.in ;;
24908   esac
24909
24910   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24911 echo "$as_me: creating $ac_file" >&6;}
24912
24913   # First look for the input files in the build tree, otherwise in the
24914   # src tree.
24915   ac_file_inputs=`IFS=:
24916     for f in $ac_file_in; do
24917       case $f in
24918       -) echo $tmp/stdin ;;
24919       [\\/$]*)
24920          # Absolute (can't be DOS-style, as IFS=:)
24921          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24922 echo "$as_me: error: cannot find input file: $f" >&2;}
24923    { (exit 1); exit 1; }; }
24924          # Do quote $f, to prevent DOS paths from being IFS'd.
24925          echo "$f";;
24926       *) # Relative
24927          if test -f "$f"; then
24928            # Build tree
24929            echo "$f"
24930          elif test -f "$srcdir/$f"; then
24931            # Source tree
24932            echo "$srcdir/$f"
24933          else
24934            # /dev/null tree
24935            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24936 echo "$as_me: error: cannot find input file: $f" >&2;}
24937    { (exit 1); exit 1; }; }
24938          fi;;
24939       esac
24940     done` || { (exit 1); exit 1; }
24941   # Remove the trailing spaces.
24942   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24943
24944 _ACEOF
24945
24946 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24947 # `conftest.undefs', that substitutes the proper values into
24948 # config.h.in to produce config.h.  The first handles `#define'
24949 # templates, and the second `#undef' templates.
24950 # And first: Protect against being on the right side of a sed subst in
24951 # config.status.  Protect against being in an unquoted here document
24952 # in config.status.
24953 rm -f conftest.defines conftest.undefs
24954 # Using a here document instead of a string reduces the quoting nightmare.
24955 # Putting comments in sed scripts is not portable.
24956 #
24957 # `end' is used to avoid that the second main sed command (meant for
24958 # 0-ary CPP macros) applies to n-ary macro definitions.
24959 # See the Autoconf documentation for `clear'.
24960 cat >confdef2sed.sed <<\_ACEOF
24961 s/[\\&,]/\\&/g
24962 s,[\\$`],\\&,g
24963 t clear
24964 : clear
24965 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24966 t end
24967 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24968 : end
24969 _ACEOF
24970 # If some macros were called several times there might be several times
24971 # the same #defines, which is useless.  Nevertheless, we may not want to
24972 # sort them, since we want the *last* AC-DEFINE to be honored.
24973 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24974 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24975 rm -f confdef2sed.sed
24976
24977 # This sed command replaces #undef with comments.  This is necessary, for
24978 # example, in the case of _POSIX_SOURCE, which is predefined and required
24979 # on some systems where configure will not decide to define it.
24980 cat >>conftest.undefs <<\_ACEOF
24981 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24982 _ACEOF
24983
24984 # Break up conftest.defines because some shells have a limit on the size
24985 # of here documents, and old seds have small limits too (100 cmds).
24986 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24987 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24988 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24989 echo '  :' >>$CONFIG_STATUS
24990 rm -f conftest.tail
24991 while grep . conftest.defines >/dev/null
24992 do
24993   # Write a limited-size here document to $tmp/defines.sed.
24994   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24995   # Speed up: don't consider the non `#define' lines.
24996   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24997   # Work around the forget-to-reset-the-flag bug.
24998   echo 't clr' >>$CONFIG_STATUS
24999   echo ': clr' >>$CONFIG_STATUS
25000   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25001   echo 'CEOF
25002   sed -f $tmp/defines.sed $tmp/in >$tmp/out
25003   rm -f $tmp/in
25004   mv $tmp/out $tmp/in
25005 ' >>$CONFIG_STATUS
25006   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25007   rm -f conftest.defines
25008   mv conftest.tail conftest.defines
25009 done
25010 rm -f conftest.defines
25011 echo '  fi # grep' >>$CONFIG_STATUS
25012 echo >>$CONFIG_STATUS
25013
25014 # Break up conftest.undefs because some shells have a limit on the size
25015 # of here documents, and old seds have small limits too (100 cmds).
25016 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
25017 rm -f conftest.tail
25018 while grep . conftest.undefs >/dev/null
25019 do
25020   # Write a limited-size here document to $tmp/undefs.sed.
25021   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25022   # Speed up: don't consider the non `#undef'
25023   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
25024   # Work around the forget-to-reset-the-flag bug.
25025   echo 't clr' >>$CONFIG_STATUS
25026   echo ': clr' >>$CONFIG_STATUS
25027   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25028   echo 'CEOF
25029   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25030   rm -f $tmp/in
25031   mv $tmp/out $tmp/in
25032 ' >>$CONFIG_STATUS
25033   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25034   rm -f conftest.undefs
25035   mv conftest.tail conftest.undefs
25036 done
25037 rm -f conftest.undefs
25038
25039 cat >>$CONFIG_STATUS <<\_ACEOF
25040   # Let's still pretend it is `configure' which instantiates (i.e., don't
25041   # use $as_me), people would be surprised to read:
25042   #    /* config.h.  Generated by config.status.  */
25043   if test x"$ac_file" = x-; then
25044     echo "/* Generated by configure.  */" >$tmp/config.h
25045   else
25046     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
25047   fi
25048   cat $tmp/in >>$tmp/config.h
25049   rm -f $tmp/in
25050   if test x"$ac_file" != x-; then
25051     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25052       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25053 echo "$as_me: $ac_file is unchanged" >&6;}
25054     else
25055       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25056 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25057          X"$ac_file" : 'X\(//\)[^/]' \| \
25058          X"$ac_file" : 'X\(//\)$' \| \
25059          X"$ac_file" : 'X\(/\)' \| \
25060          .     : '\(.\)' 2>/dev/null ||
25061 echo X"$ac_file" |
25062     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25063           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25064           /^X\(\/\/\)$/{ s//\1/; q; }
25065           /^X\(\/\).*/{ s//\1/; q; }
25066           s/.*/./; q'`
25067       { if $as_mkdir_p; then
25068     mkdir -p "$ac_dir"
25069   else
25070     as_dir="$ac_dir"
25071     as_dirs=
25072     while test ! -d "$as_dir"; do
25073       as_dirs="$as_dir $as_dirs"
25074       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25075 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25076          X"$as_dir" : 'X\(//\)[^/]' \| \
25077          X"$as_dir" : 'X\(//\)$' \| \
25078          X"$as_dir" : 'X\(/\)' \| \
25079          .     : '\(.\)' 2>/dev/null ||
25080 echo X"$as_dir" |
25081     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25082           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25083           /^X\(\/\/\)$/{ s//\1/; q; }
25084           /^X\(\/\).*/{ s//\1/; q; }
25085           s/.*/./; q'`
25086     done
25087     test ! -n "$as_dirs" || mkdir $as_dirs
25088   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25089 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25090    { (exit 1); exit 1; }; }; }
25091
25092       rm -f $ac_file
25093       mv $tmp/config.h $ac_file
25094     fi
25095   else
25096     cat $tmp/config.h
25097     rm -f $tmp/config.h
25098   fi
25099 done
25100 _ACEOF
25101 cat >>$CONFIG_STATUS <<\_ACEOF
25102
25103 #
25104 # CONFIG_COMMANDS section.
25105 #
25106 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25107   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25108   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25109   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25110 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25111          X"$ac_dest" : 'X\(//\)[^/]' \| \
25112          X"$ac_dest" : 'X\(//\)$' \| \
25113          X"$ac_dest" : 'X\(/\)' \| \
25114          .     : '\(.\)' 2>/dev/null ||
25115 echo X"$ac_dest" |
25116     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25117           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25118           /^X\(\/\/\)$/{ s//\1/; q; }
25119           /^X\(\/\).*/{ s//\1/; q; }
25120           s/.*/./; q'`
25121   { if $as_mkdir_p; then
25122     mkdir -p "$ac_dir"
25123   else
25124     as_dir="$ac_dir"
25125     as_dirs=
25126     while test ! -d "$as_dir"; do
25127       as_dirs="$as_dir $as_dirs"
25128       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25130          X"$as_dir" : 'X\(//\)[^/]' \| \
25131          X"$as_dir" : 'X\(//\)$' \| \
25132          X"$as_dir" : 'X\(/\)' \| \
25133          .     : '\(.\)' 2>/dev/null ||
25134 echo X"$as_dir" |
25135     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25136           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25137           /^X\(\/\/\)$/{ s//\1/; q; }
25138           /^X\(\/\).*/{ s//\1/; q; }
25139           s/.*/./; q'`
25140     done
25141     test ! -n "$as_dirs" || mkdir $as_dirs
25142   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25143 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25144    { (exit 1); exit 1; }; }; }
25145
25146   ac_builddir=.
25147
25148 if test "$ac_dir" != .; then
25149   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25150   # A "../" for each directory in $ac_dir_suffix.
25151   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25152 else
25153   ac_dir_suffix= ac_top_builddir=
25154 fi
25155
25156 case $srcdir in
25157   .)  # No --srcdir option.  We are building in place.
25158     ac_srcdir=.
25159     if test -z "$ac_top_builddir"; then
25160        ac_top_srcdir=.
25161     else
25162        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25163     fi ;;
25164   [\\/]* | ?:[\\/]* )  # Absolute path.
25165     ac_srcdir=$srcdir$ac_dir_suffix;
25166     ac_top_srcdir=$srcdir ;;
25167   *) # Relative path.
25168     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25169     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25170 esac
25171
25172 # Do not use `cd foo && pwd` to compute absolute paths, because
25173 # the directories may not exist.
25174 case `pwd` in
25175 .) ac_abs_builddir="$ac_dir";;
25176 *)
25177   case "$ac_dir" in
25178   .) ac_abs_builddir=`pwd`;;
25179   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25180   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25181   esac;;
25182 esac
25183 case $ac_abs_builddir in
25184 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25185 *)
25186   case ${ac_top_builddir}. in
25187   .) ac_abs_top_builddir=$ac_abs_builddir;;
25188   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25189   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25190   esac;;
25191 esac
25192 case $ac_abs_builddir in
25193 .) ac_abs_srcdir=$ac_srcdir;;
25194 *)
25195   case $ac_srcdir in
25196   .) ac_abs_srcdir=$ac_abs_builddir;;
25197   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25198   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25199   esac;;
25200 esac
25201 case $ac_abs_builddir in
25202 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25203 *)
25204   case $ac_top_srcdir in
25205   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25206   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25207   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25208   esac;;
25209 esac
25210
25211
25212   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25213 echo "$as_me: executing $ac_dest commands" >&6;}
25214   case $ac_dest in
25215     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25216     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
25217     examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
25218     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
25219     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
25220     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25221     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
25222     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25223     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
25224     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
25225     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
25226     test/Programs/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.tests test/Programs/Makefile.tests ;;
25227     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
25228     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
25229     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
25230     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
25231     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
25232     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
25233     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
25234     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
25235     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
25236     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
25237     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
25238     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
25239     test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
25240     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
25241     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
25242     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 ;;
25243     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 ;;
25244     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 ;;
25245     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
25246     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
25247     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 ;;
25248     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 ;;
25249     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 ;;
25250     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 ;;
25251     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 ;;
25252     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 ;;
25253     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 ;;
25254     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 ;;
25255     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 ;;
25256     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 ;;
25257     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 ;;
25258     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 ;;
25259     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 ;;
25260     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
25261     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
25262     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 ;;
25263     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
25264     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
25265     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
25266   esac
25267 done
25268 _ACEOF
25269
25270 cat >>$CONFIG_STATUS <<\_ACEOF
25271
25272 { (exit 0); exit 0; }
25273 _ACEOF
25274 chmod +x $CONFIG_STATUS
25275 ac_clean_files=$ac_clean_files_save
25276
25277
25278 # configure is writing to config.log, and then calls config.status.
25279 # config.status does its own redirection, appending to config.log.
25280 # Unfortunately, on DOS this fails, as config.log is still kept open
25281 # by configure, so config.status won't be able to write to it; its
25282 # output is simply discarded.  So we exec the FD to /dev/null,
25283 # effectively closing config.log, so it can be properly (re)opened and
25284 # appended to by config.status.  When coming back to configure, we
25285 # need to make the FD available again.
25286 if test "$no_create" != yes; then
25287   ac_cs_success=:
25288   ac_config_status_args=
25289   test "$silent" = yes &&
25290     ac_config_status_args="$ac_config_status_args --quiet"
25291   exec 5>/dev/null
25292   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25293   exec 5>>config.log
25294   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25295   # would make configure fail if this is the last instruction.
25296   $ac_cs_success || { (exit 1); exit 1; }
25297 fi
25298
25299 #
25300 # CONFIG_SUBDIRS section.
25301 #
25302 if test "$no_recursion" != yes; then
25303
25304   # Remove --cache-file and --srcdir arguments so they do not pile up.
25305   ac_sub_configure_args=
25306   ac_prev=
25307   for ac_arg in $ac_configure_args; do
25308     if test -n "$ac_prev"; then
25309       ac_prev=
25310       continue
25311     fi
25312     case $ac_arg in
25313     -cache-file | --cache-file | --cache-fil | --cache-fi \
25314     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25315       ac_prev=cache_file ;;
25316     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25317     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25318     | --c=*)
25319       ;;
25320     --config-cache | -C)
25321       ;;
25322     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25323       ac_prev=srcdir ;;
25324     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25325       ;;
25326     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25327       ac_prev=prefix ;;
25328     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25329       ;;
25330     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25331     esac
25332   done
25333
25334   # Always prepend --prefix to ensure using the same prefix
25335   # in subdir configurations.
25336   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25337
25338   ac_popdir=`pwd`
25339   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25340
25341     # Do not complain, so a configure script can configure whichever
25342     # parts of a large source tree are present.
25343     test -d $srcdir/$ac_dir || continue
25344
25345     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25346 echo "$as_me: configuring in $ac_dir" >&6;}
25347     { if $as_mkdir_p; then
25348     mkdir -p "$ac_dir"
25349   else
25350     as_dir="$ac_dir"
25351     as_dirs=
25352     while test ! -d "$as_dir"; do
25353       as_dirs="$as_dir $as_dirs"
25354       as_dir=`(dirname "$as_dir") 2>/dev/null ||
25355 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25356          X"$as_dir" : 'X\(//\)[^/]' \| \
25357          X"$as_dir" : 'X\(//\)$' \| \
25358          X"$as_dir" : 'X\(/\)' \| \
25359          .     : '\(.\)' 2>/dev/null ||
25360 echo X"$as_dir" |
25361     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25362           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25363           /^X\(\/\/\)$/{ s//\1/; q; }
25364           /^X\(\/\).*/{ s//\1/; q; }
25365           s/.*/./; q'`
25366     done
25367     test ! -n "$as_dirs" || mkdir $as_dirs
25368   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25369 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25370    { (exit 1); exit 1; }; }; }
25371
25372     ac_builddir=.
25373
25374 if test "$ac_dir" != .; then
25375   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25376   # A "../" for each directory in $ac_dir_suffix.
25377   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25378 else
25379   ac_dir_suffix= ac_top_builddir=
25380 fi
25381
25382 case $srcdir in
25383   .)  # No --srcdir option.  We are building in place.
25384     ac_srcdir=.
25385     if test -z "$ac_top_builddir"; then
25386        ac_top_srcdir=.
25387     else
25388        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25389     fi ;;
25390   [\\/]* | ?:[\\/]* )  # Absolute path.
25391     ac_srcdir=$srcdir$ac_dir_suffix;
25392     ac_top_srcdir=$srcdir ;;
25393   *) # Relative path.
25394     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25395     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25396 esac
25397
25398 # Do not use `cd foo && pwd` to compute absolute paths, because
25399 # the directories may not exist.
25400 case `pwd` in
25401 .) ac_abs_builddir="$ac_dir";;
25402 *)
25403   case "$ac_dir" in
25404   .) ac_abs_builddir=`pwd`;;
25405   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25406   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25407   esac;;
25408 esac
25409 case $ac_abs_builddir in
25410 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25411 *)
25412   case ${ac_top_builddir}. in
25413   .) ac_abs_top_builddir=$ac_abs_builddir;;
25414   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25415   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25416   esac;;
25417 esac
25418 case $ac_abs_builddir in
25419 .) ac_abs_srcdir=$ac_srcdir;;
25420 *)
25421   case $ac_srcdir in
25422   .) ac_abs_srcdir=$ac_abs_builddir;;
25423   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25424   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25425   esac;;
25426 esac
25427 case $ac_abs_builddir in
25428 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25429 *)
25430   case $ac_top_srcdir in
25431   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25432   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25433   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25434   esac;;
25435 esac
25436
25437
25438     cd $ac_dir
25439
25440     # Check for guested configure; otherwise get Cygnus style configure.
25441     if test -f $ac_srcdir/configure.gnu; then
25442       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25443     elif test -f $ac_srcdir/configure; then
25444       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25445     elif test -f $ac_srcdir/configure.in; then
25446       ac_sub_configure=$ac_configure
25447     else
25448       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25449 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25450       ac_sub_configure=
25451     fi
25452
25453     # The recursion is here.
25454     if test -n "$ac_sub_configure"; then
25455       # Make the cache file name correct relative to the subdirectory.
25456       case $cache_file in
25457       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25458       *) # Relative path.
25459         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25460       esac
25461
25462       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25463 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25464       # The eval makes quoting arguments work.
25465       eval $ac_sub_configure $ac_sub_configure_args \
25466            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25467         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25468 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25469    { (exit 1); exit 1; }; }
25470     fi
25471
25472     cd $ac_popdir
25473   done
25474 fi
25475
25476
25477 if test $llvmgccwarn = yes
25478 then
25479         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25480 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25481         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25482 echo "$as_me: WARNING: ***** appear to be working." >&2;}
25483         { echo "$as_me:$LINENO: WARNING: ***** " >&5
25484 echo "$as_me: WARNING: ***** " >&2;}
25485         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25486 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25487         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25488 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25489         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25490 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25491 fi
25492