Add support for killing the program if it executes for too long.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for [LLVM] [1.3].
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/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 -n "`(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   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
248
249 case X$ECHO in
250 X*--fallback-echo)
251   # Remove one level of quotation (which was required for Make).
252   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253   ;;
254 esac
255
256 echo=${ECHO-echo}
257 if test "X$1" = X--no-reexec; then
258   # Discard the --no-reexec flag, and continue.
259   shift
260 elif test "X$1" = X--fallback-echo; then
261   # Avoid inline document here, it may be left over
262   :
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264   # Yippee, $echo works!
265   :
266 else
267   # Restart under the correct shell.
268   exec $SHELL "$0" --no-reexec ${1+"$@"}
269 fi
270
271 if test "X$1" = X--fallback-echo; then
272   # used as fallback echo
273   shift
274   cat <<EOF
275 $*
276 EOF
277   exit 0
278 fi
279
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 # if CDPATH is set.
282 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290        echo_test_string="`eval $cmd`" &&
291        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292     then
293       break
294     fi
295   done
296 fi
297
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300    test "X$echo_testing_string" = "X$echo_test_string"; then
301   :
302 else
303   # The Solaris, AIX, and Digital Unix default echo programs unquote
304   # backslashes.  This makes it impossible to quote backslashes using
305   #   echo "$something" | sed 's/\\/\\\\/g'
306   #
307   # So, first we look for a working echo in the user's PATH.
308
309   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310   for dir in $PATH /usr/ucb; do
311     IFS="$lt_save_ifs"
312     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315        test "X$echo_testing_string" = "X$echo_test_string"; then
316       echo="$dir/echo"
317       break
318     fi
319   done
320   IFS="$lt_save_ifs"
321
322   if test "X$echo" = Xecho; then
323     # We didn't find a better echo, so look for alternatives.
324     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326        test "X$echo_testing_string" = "X$echo_test_string"; then
327       # This shell has a builtin print -r that does the trick.
328       echo='print -r'
329     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330          test "X$CONFIG_SHELL" != X/bin/ksh; then
331       # If we have ksh, try running configure again with it.
332       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333       export ORIGINAL_CONFIG_SHELL
334       CONFIG_SHELL=/bin/ksh
335       export CONFIG_SHELL
336       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337     else
338       # Try using printf.
339       echo='printf %s\n'
340       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342          test "X$echo_testing_string" = "X$echo_test_string"; then
343         # Cool, printf works
344         :
345       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346            test "X$echo_testing_string" = 'X\t' &&
347            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348            test "X$echo_testing_string" = "X$echo_test_string"; then
349         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350         export CONFIG_SHELL
351         SHELL="$CONFIG_SHELL"
352         export SHELL
353         echo="$CONFIG_SHELL $0 --fallback-echo"
354       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355            test "X$echo_testing_string" = 'X\t' &&
356            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357            test "X$echo_testing_string" = "X$echo_test_string"; then
358         echo="$CONFIG_SHELL $0 --fallback-echo"
359       else
360         # maybe with a smaller string...
361         prev=:
362
363         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365           then
366             break
367           fi
368           prev="$cmd"
369         done
370
371         if test "$prev" != 'sed 50q "$0"'; then
372           echo_test_string=`eval $prev`
373           export echo_test_string
374           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375         else
376           # Oops.  We lost completely, so just stick with echo.
377           echo=echo
378         fi
379       fi
380     fi
381   fi
382 fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 ECHO=$echo
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
396
397 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
398
399 # Name of the host.
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404 exec 6>&1
405
406 #
407 # Initializations.
408 #
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
411 cross_compiling=no
412 subdirs=
413 MFLAGS=
414 MAKEFLAGS=
415 SHELL=${CONFIG_SHELL-/bin/sh}
416
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete.  It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
421
422 # Identity of this package.
423 PACKAGE_NAME='[LLVM]'
424 PACKAGE_TARNAME='--llvm--'
425 PACKAGE_VERSION='[1.3]'
426 PACKAGE_STRING='[LLVM] [1.3]'
427 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
429 ac_subdirs_all="$ac_subdirs_all projects/${i}"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
432 #include <stdio.h>
433 #if HAVE_SYS_TYPES_H
434 # include <sys/types.h>
435 #endif
436 #if HAVE_SYS_STAT_H
437 # include <sys/stat.h>
438 #endif
439 #if STDC_HEADERS
440 # include <stdlib.h>
441 # include <stddef.h>
442 #else
443 # if HAVE_STDLIB_H
444 #  include <stdlib.h>
445 # endif
446 #endif
447 #if HAVE_STRING_H
448 # if !STDC_HEADERS && HAVE_MEMORY_H
449 #  include <memory.h>
450 # endif
451 # include <string.h>
452 #endif
453 #if HAVE_STRINGS_H
454 # include <strings.h>
455 #endif
456 #if HAVE_INTTYPES_H
457 # include <inttypes.h>
458 #else
459 # if HAVE_STDINT_H
460 #  include <stdint.h>
461 # endif
462 #endif
463 #if HAVE_UNISTD_H
464 # include <unistd.h>
465 #endif"
466
467 ac_unique_file=""Makefile.config.in""
468 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 LIBOBJS LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CXX_set=${CXX+set}
910 ac_env_CXX_value=$CXX
911 ac_cv_env_CXX_set=${CXX+set}
912 ac_cv_env_CXX_value=$CXX
913 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_env_CXXFLAGS_value=$CXXFLAGS
915 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CC_set=${CC+set}
926 ac_env_CC_value=$CC
927 ac_cv_env_CC_set=${CC+set}
928 ac_cv_env_CC_value=$CC
929 ac_env_CFLAGS_set=${CFLAGS+set}
930 ac_env_CFLAGS_value=$CFLAGS
931 ac_cv_env_CFLAGS_set=${CFLAGS+set}
932 ac_cv_env_CFLAGS_value=$CFLAGS
933 ac_env_CPP_set=${CPP+set}
934 ac_env_CPP_value=$CPP
935 ac_cv_env_CPP_set=${CPP+set}
936 ac_cv_env_CPP_value=$CPP
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
949
950 #
951 # Report the --help message.
952 #
953 if test "$ac_init_help" = "long"; then
954   # Omit some internal or obsolete options to make the list less imposing.
955   # This message is too long to be a string in the A/UX 3.1 sh.
956   cat <<_ACEOF
957 \`configure' configures [LLVM] [1.3] to adapt to many kinds of systems.
958
959 Usage: $0 [OPTION]... [VAR=VALUE]...
960
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964 Defaults for the options are specified in brackets.
965
966 Configuration:
967   -h, --help              display this help and exit
968       --help=short        display options specific to this package
969       --help=recursive    display the short help of all the included packages
970   -V, --version           display version information and exit
971   -q, --quiet, --silent   do not print \`checking...' messages
972       --cache-file=FILE   cache test results in FILE [disabled]
973   -C, --config-cache      alias for \`--cache-file=config.cache'
974   -n, --no-create         do not create output files
975       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977 _ACEOF
978
979   cat <<_ACEOF
980 Installation directories:
981   --prefix=PREFIX         install architecture-independent files in PREFIX
982                           [$ac_default_prefix]
983   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                           [PREFIX]
985
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
990
991 For better control, use the options below.
992
993 Fine tuning of the installation directories:
994   --bindir=DIR           user executables [EPREFIX/bin]
995   --sbindir=DIR          system admin executables [EPREFIX/sbin]
996   --libexecdir=DIR       program executables [EPREFIX/libexec]
997   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001   --libdir=DIR           object code libraries [EPREFIX/lib]
1002   --includedir=DIR       C header files [PREFIX/include]
1003   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004   --infodir=DIR          info documentation [PREFIX/info]
1005   --mandir=DIR           man documentation [PREFIX/man]
1006 _ACEOF
1007
1008   cat <<\_ACEOF
1009
1010 System types:
1011   --build=BUILD     configure for building on BUILD [guessed]
1012   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1013   --target=TARGET   configure for building compilers for TARGET [HOST]
1014 _ACEOF
1015 fi
1016
1017 if test -n "$ac_init_help"; then
1018   case $ac_init_help in
1019      short | recursive ) echo "Configuration of [LLVM] [1.3]:";;
1020    esac
1021   cat <<\_ACEOF
1022
1023 Optional Features:
1024   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026   --enable-shared[=PKGS]
1027                           build shared libraries [default=yes]
1028   --enable-static[=PKGS]
1029                           build static libraries [default=yes]
1030   --enable-fast-install[=PKGS]
1031                           optimize for fast installation [default=yes]
1032   --disable-libtool-lock  avoid locking (might break parallel builds)
1033   --enable-optimized      Compile with optimizations enabled (default is NO)
1034   --enable-spec95=ARG     Use spec95 as a benchmark (srcs in DIR)
1035   --enable-spec2000=ARG   Use spec2000 as a benchmark (srcs in DIR)
1036   --enable-povray=ARG     Use povray as a benchmark (srcs in DIR)
1037   --enable-precompiled_bytecode
1038                           Use pre-compiled bytecode (default is NO)
1039   --enable-llc_diffs      Enable LLC Diffs when testing (default is YES)
1040   --enable-jit            Enable Just In Time Compiling (default is YES)
1041
1042 Optional Packages:
1043   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1044   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1045   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1046   --with-pic              try to use only PIC/non-PIC objects [default=use
1047                           both]
1048   --with-tags[=TAGS]
1049                           include additional configurations [automatic]
1050   --with-llvmgccdir       Location of LLVM GCC front-end
1051   --with-bcrepos          Location of Bytecode Repository
1052   --with-papi             Location of PAPI
1053
1054 Some influential environment variables:
1055   CXX         C++ compiler command
1056   CXXFLAGS    C++ compiler flags
1057   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1058               nonstandard directory <lib dir>
1059   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060               headers in a nonstandard directory <include dir>
1061   CC          C compiler command
1062   CFLAGS      C compiler flags
1063   CPP         C preprocessor
1064   CXXCPP      C++ preprocessor
1065   F77         Fortran 77 compiler command
1066   FFLAGS      Fortran 77 compiler flags
1067
1068 Use these variables to override the choices made by `configure' or to help
1069 it to find libraries and programs with nonstandard names/locations.
1070
1071 Report bugs to <llvmbugs@cs.uiuc.edu>.
1072 _ACEOF
1073 fi
1074
1075 if test "$ac_init_help" = "recursive"; then
1076   # If there are subdirs, report their specific --help.
1077   ac_popdir=`pwd`
1078   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079     test -d $ac_dir || continue
1080     ac_builddir=.
1081
1082 if test "$ac_dir" != .; then
1083   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084   # A "../" for each directory in $ac_dir_suffix.
1085   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086 else
1087   ac_dir_suffix= ac_top_builddir=
1088 fi
1089
1090 case $srcdir in
1091   .)  # No --srcdir option.  We are building in place.
1092     ac_srcdir=.
1093     if test -z "$ac_top_builddir"; then
1094        ac_top_srcdir=.
1095     else
1096        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097     fi ;;
1098   [\\/]* | ?:[\\/]* )  # Absolute path.
1099     ac_srcdir=$srcdir$ac_dir_suffix;
1100     ac_top_srcdir=$srcdir ;;
1101   *) # Relative path.
1102     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104 esac
1105 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106 # absolute.
1107 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1111
1112     cd $ac_dir
1113     # Check for guested configure; otherwise get Cygnus style configure.
1114     if test -f $ac_srcdir/configure.gnu; then
1115       echo
1116       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1117     elif test -f $ac_srcdir/configure; then
1118       echo
1119       $SHELL $ac_srcdir/configure  --help=recursive
1120     elif test -f $ac_srcdir/configure.ac ||
1121            test -f $ac_srcdir/configure.in; then
1122       echo
1123       $ac_configure --help
1124     else
1125       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126     fi
1127     cd $ac_popdir
1128   done
1129 fi
1130
1131 test -n "$ac_init_help" && exit 0
1132 if $ac_init_version; then
1133   cat <<\_ACEOF
1134 [LLVM] configure [1.3]
1135 generated by GNU Autoconf 2.57
1136
1137 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1141 _ACEOF
1142   exit 0
1143 fi
1144 exec 5>config.log
1145 cat >&5 <<_ACEOF
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1148
1149 It was created by [LLVM] $as_me [1.3], which was
1150 generated by GNU Autoconf 2.57.  Invocation command line was
1151
1152   $ $0 $@
1153
1154 _ACEOF
1155 {
1156 cat <<_ASUNAME
1157 ## --------- ##
1158 ## Platform. ##
1159 ## --------- ##
1160
1161 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1169
1170 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1171 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1172 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1174 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1175 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1176 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1177
1178 _ASUNAME
1179
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181 for as_dir in $PATH
1182 do
1183   IFS=$as_save_IFS
1184   test -z "$as_dir" && as_dir=.
1185   echo "PATH: $as_dir"
1186 done
1187
1188 } >&5
1189
1190 cat >&5 <<_ACEOF
1191
1192
1193 ## ----------- ##
1194 ## Core tests. ##
1195 ## ----------- ##
1196
1197 _ACEOF
1198
1199
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1205 ac_configure_args=
1206 ac_configure_args0=
1207 ac_configure_args1=
1208 ac_sep=
1209 ac_must_keep_next=false
1210 for ac_pass in 1 2
1211 do
1212   for ac_arg
1213   do
1214     case $ac_arg in
1215     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217     | -silent | --silent | --silen | --sile | --sil)
1218       continue ;;
1219     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221     esac
1222     case $ac_pass in
1223     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224     2)
1225       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226       if test $ac_must_keep_next = true; then
1227         ac_must_keep_next=false # Got value, back to normal.
1228       else
1229         case $ac_arg in
1230           *=* | --config-cache | -C | -disable-* | --disable-* \
1231           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233           | -with-* | --with-* | -without-* | --without-* | --x)
1234             case "$ac_configure_args0 " in
1235               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236             esac
1237             ;;
1238           -* ) ac_must_keep_next=true ;;
1239         esac
1240       fi
1241       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242       # Get rid of the leading space.
1243       ac_sep=" "
1244       ;;
1245     esac
1246   done
1247 done
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log.  We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close' the trap.
1256 trap 'exit_status=$?
1257   # Save into config.log some information that might help in debugging.
1258   {
1259     echo
1260
1261     cat <<\_ASBOX
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1265 _ASBOX
1266     echo
1267     # The following way of writing the cache mishandles newlines in values,
1268 {
1269   (set) 2>&1 |
1270     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271     *ac_space=\ *)
1272       sed -n \
1273         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275       ;;
1276     *)
1277       sed -n \
1278         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279       ;;
1280     esac;
1281 }
1282     echo
1283
1284     cat <<\_ASBOX
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1288 _ASBOX
1289     echo
1290     for ac_var in $ac_subst_vars
1291     do
1292       eval ac_val=$`echo $ac_var`
1293       echo "$ac_var='"'"'$ac_val'"'"'"
1294     done | sort
1295     echo
1296
1297     if test -n "$ac_subst_files"; then
1298       cat <<\_ASBOX
1299 ## ------------- ##
1300 ## Output files. ##
1301 ## ------------- ##
1302 _ASBOX
1303       echo
1304       for ac_var in $ac_subst_files
1305       do
1306         eval ac_val=$`echo $ac_var`
1307         echo "$ac_var='"'"'$ac_val'"'"'"
1308       done | sort
1309       echo
1310     fi
1311
1312     if test -s confdefs.h; then
1313       cat <<\_ASBOX
1314 ## ----------- ##
1315 ## confdefs.h. ##
1316 ## ----------- ##
1317 _ASBOX
1318       echo
1319       sed "/^$/d" confdefs.h | sort
1320       echo
1321     fi
1322     test "$ac_signal" != 0 &&
1323       echo "$as_me: caught signal $ac_signal"
1324     echo "$as_me: exit $exit_status"
1325   } >&5
1326   rm -f core core.* *.core &&
1327   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328     exit $exit_status
1329      ' 0
1330 for ac_signal in 1 2 13 15; do
1331   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332 done
1333 ac_signal=0
1334
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338 echo >confdefs.h
1339
1340 # Predefined preprocessor variables.
1341
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1344 _ACEOF
1345
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349 _ACEOF
1350
1351
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1354 _ACEOF
1355
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364 _ACEOF
1365
1366
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370   if test "x$prefix" != xNONE; then
1371     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372   else
1373     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374   fi
1375 fi
1376 for ac_site_file in $CONFIG_SITE; do
1377   if test -r "$ac_site_file"; then
1378     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380     sed 's/^/| /' "$ac_site_file" >&5
1381     . "$ac_site_file"
1382   fi
1383 done
1384
1385 if test -r "$cache_file"; then
1386   # Some versions of bash will fail to source /dev/null (special
1387   # files actually), so we avoid doing that.
1388   if test -f "$cache_file"; then
1389     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1391     case $cache_file in
1392       [\\/]* | ?:[\\/]* ) . $cache_file;;
1393       *)                      . ./$cache_file;;
1394     esac
1395   fi
1396 else
1397   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1399   >$cache_file
1400 fi
1401
1402 # Check that the precious variables saved in the cache have kept the same
1403 # value.
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408   eval ac_new_set=\$ac_env_${ac_var}_set
1409   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410   eval ac_new_val="\$ac_env_${ac_var}_value"
1411   case $ac_old_set,$ac_new_set in
1412     set,)
1413       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415       ac_cache_corrupted=: ;;
1416     ,set)
1417       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419       ac_cache_corrupted=: ;;
1420     ,);;
1421     *)
1422       if test "x$ac_old_val" != "x$ac_new_val"; then
1423         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1426 echo "$as_me:   former value:  $ac_old_val" >&2;}
1427         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1428 echo "$as_me:   current value: $ac_new_val" >&2;}
1429         ac_cache_corrupted=:
1430       fi;;
1431   esac
1432   # Pass precious variables to config.status.
1433   if test "$ac_new_set" = set; then
1434     case $ac_new_val in
1435     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437     *) ac_arg=$ac_var=$ac_new_val ;;
1438     esac
1439     case " $ac_configure_args " in
1440       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1441       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442     esac
1443   fi
1444 done
1445 if $ac_cache_corrupted; then
1446   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450    { (exit 1); exit 1; }; }
1451 fi
1452
1453 ac_ext=c
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486 ac_aux_dir=
1487 for ac_dir in autoconf $srcdir/autoconf; do
1488   if test -f $ac_dir/install-sh; then
1489     ac_aux_dir=$ac_dir
1490     ac_install_sh="$ac_aux_dir/install-sh -c"
1491     break
1492   elif test -f $ac_dir/install.sh; then
1493     ac_aux_dir=$ac_dir
1494     ac_install_sh="$ac_aux_dir/install.sh -c"
1495     break
1496   elif test -f $ac_dir/shtool; then
1497     ac_aux_dir=$ac_dir
1498     ac_install_sh="$ac_aux_dir/shtool install -c"
1499     break
1500   fi
1501 done
1502 if test -z "$ac_aux_dir"; then
1503   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1505    { (exit 1); exit 1; }; }
1506 fi
1507 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
1511
1512 if test ${srcdir} != "."
1513 then
1514         if test -f ${srcdir}/include/Config/config.h
1515         then
1516                 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1517 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518    { (exit 1); exit 1; }; }
1519         fi
1520 fi
1521
1522 for i in `ls ${srcdir}/projects`
1523 do
1524   if test ${i} != "CVS"
1525   then
1526     if test -f ${srcdir}/projects/${i}/configure
1527     then
1528
1529
1530 subdirs="$subdirs projects/${i}"
1531
1532     fi
1533   fi
1534 done
1535
1536           ac_config_headers="$ac_config_headers include/Config/config.h"
1537
1538
1539                                                             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"
1540
1541
1542           ac_config_commands="$ac_config_commands Makefile"
1543
1544
1545           ac_config_commands="$ac_config_commands Makefile.common"
1546
1547
1548           ac_config_commands="$ac_config_commands lib/Makefile"
1549
1550
1551           ac_config_commands="$ac_config_commands runtime/Makefile"
1552
1553
1554           ac_config_commands="$ac_config_commands test/Makefile"
1555
1556
1557           ac_config_commands="$ac_config_commands test/Makefile.tests"
1558
1559
1560           ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1561
1562
1563           ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
1564
1565
1566           ac_config_commands="$ac_config_commands test/Programs/Makefile"
1567
1568
1569           ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1570
1571
1572           ac_config_commands="$ac_config_commands test/Programs/Makefile.tests"
1573
1574
1575           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1576
1577
1578           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1579
1580
1581           ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1582
1583
1584           ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1585
1586
1587           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1588
1589
1590           ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1591
1592
1593           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1594
1595
1596           ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1597
1598
1599           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1600
1601
1602           ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1603
1604
1605           ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1606
1607
1608           ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1609
1610
1611           ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1612
1613
1614           ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1615
1616
1617           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1618
1619
1620           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1621
1622
1623           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1624
1625
1626           ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1627
1628
1629           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1630
1631
1632           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1633
1634
1635           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1636
1637
1638           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1639
1640
1641           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1642
1643
1644           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1645
1646
1647           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1648
1649
1650           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1651
1652
1653           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1654
1655
1656           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1657
1658
1659           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1660
1661
1662           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1663
1664
1665           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1666
1667
1668           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1669
1670
1671           ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1672
1673
1674           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1675
1676
1677           ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1678
1679
1680           ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1681
1682
1683           ac_config_commands="$ac_config_commands tools/Makefile"
1684
1685
1686           ac_config_commands="$ac_config_commands utils/Makefile"
1687
1688
1689           ac_config_commands="$ac_config_commands projects/Makefile"
1690
1691
1692
1693 # Find a good install program.  We prefer a C program (faster),
1694 # so one script is as good as another.  But avoid the broken or
1695 # incompatible versions:
1696 # SysV /etc/install, /usr/sbin/install
1697 # SunOS /usr/etc/install
1698 # IRIX /sbin/install
1699 # AIX /bin/install
1700 # AmigaOS /C/install, which installs bootblocks on floppy discs
1701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1704 # ./install, which can be erroneously created by make from ./install.sh.
1705 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1706 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1707 if test -z "$INSTALL"; then
1708 if test "${ac_cv_path_install+set}" = set; then
1709   echo $ECHO_N "(cached) $ECHO_C" >&6
1710 else
1711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1713 do
1714   IFS=$as_save_IFS
1715   test -z "$as_dir" && as_dir=.
1716   # Account for people who put trailing slashes in PATH elements.
1717 case $as_dir/ in
1718   ./ | .// | /cC/* | \
1719   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1720   /usr/ucb/* ) ;;
1721   *)
1722     # OSF1 and SCO ODT 3.0 have their own names for install.
1723     # Don't use installbsd from OSF since it installs stuff as root
1724     # by default.
1725     for ac_prog in ginstall scoinst install; do
1726       for ac_exec_ext in '' $ac_executable_extensions; do
1727         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1728           if test $ac_prog = install &&
1729             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1730             # AIX install.  It has an incompatible calling convention.
1731             :
1732           elif test $ac_prog = install &&
1733             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1734             # program-specific install script used by HP pwplus--don't use.
1735             :
1736           else
1737             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1738             break 3
1739           fi
1740         fi
1741       done
1742     done
1743     ;;
1744 esac
1745 done
1746
1747
1748 fi
1749   if test "${ac_cv_path_install+set}" = set; then
1750     INSTALL=$ac_cv_path_install
1751   else
1752     # As a last resort, use the slow shell script.  We don't cache a
1753     # path for INSTALL within a source directory, because that will
1754     # break other packages using the cache if that directory is
1755     # removed, or if the path is relative.
1756     INSTALL=$ac_install_sh
1757   fi
1758 fi
1759 echo "$as_me:$LINENO: result: $INSTALL" >&5
1760 echo "${ECHO_T}$INSTALL" >&6
1761
1762 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1763 # It thinks the first close brace ends the variable substitution.
1764 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1765
1766 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1767
1768 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1769
1770
1771 # Make sure we can run config.sub.
1772 $ac_config_sub sun4 >/dev/null 2>&1 ||
1773   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1774 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1775    { (exit 1); exit 1; }; }
1776
1777 echo "$as_me:$LINENO: checking build system type" >&5
1778 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1779 if test "${ac_cv_build+set}" = set; then
1780   echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782   ac_cv_build_alias=$build_alias
1783 test -z "$ac_cv_build_alias" &&
1784   ac_cv_build_alias=`$ac_config_guess`
1785 test -z "$ac_cv_build_alias" &&
1786   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1787 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1788    { (exit 1); exit 1; }; }
1789 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1790   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1791 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1792    { (exit 1); exit 1; }; }
1793
1794 fi
1795 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1796 echo "${ECHO_T}$ac_cv_build" >&6
1797 build=$ac_cv_build
1798 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1799 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1800 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1801
1802
1803 echo "$as_me:$LINENO: checking host system type" >&5
1804 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1805 if test "${ac_cv_host+set}" = set; then
1806   echo $ECHO_N "(cached) $ECHO_C" >&6
1807 else
1808   ac_cv_host_alias=$host_alias
1809 test -z "$ac_cv_host_alias" &&
1810   ac_cv_host_alias=$ac_cv_build_alias
1811 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1812   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1813 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1814    { (exit 1); exit 1; }; }
1815
1816 fi
1817 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1818 echo "${ECHO_T}$ac_cv_host" >&6
1819 host=$ac_cv_host
1820 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1821 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1822 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1823
1824
1825 echo "$as_me:$LINENO: checking target system type" >&5
1826 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1827 if test "${ac_cv_target+set}" = set; then
1828   echo $ECHO_N "(cached) $ECHO_C" >&6
1829 else
1830   ac_cv_target_alias=$target_alias
1831 test "x$ac_cv_target_alias" = "x" &&
1832   ac_cv_target_alias=$ac_cv_host_alias
1833 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1834   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1835 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1836    { (exit 1); exit 1; }; }
1837
1838 fi
1839 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1840 echo "${ECHO_T}$ac_cv_target" >&6
1841 target=$ac_cv_target
1842 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1843 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1844 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1845
1846
1847 # The aliases save the names the user supplied, while $host etc.
1848 # will get canonicalized.
1849 test -n "$target_alias" &&
1850   test "$program_prefix$program_suffix$program_transform_name" = \
1851     NONENONEs,x,x, &&
1852   program_prefix=${target_alias}-
1853
1854 case $build in
1855         *-*-linux*)
1856              OS=Linux
1857
1858                          if test -d /home/vadve/lattner/local/x86/llvm-gcc
1859                          then
1860                            LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1861
1862                          fi
1863                  ;;
1864         *-*-solaris*)
1865              OS=SunOS
1866
1867                          if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1868                          then
1869                    LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1870
1871                          fi
1872                  ;;
1873         *-*-cygwin*)
1874              OS=Cygwin
1875
1876                  ;;
1877         *-*-darwin*)
1878              OS=Darwin
1879
1880                  ;;
1881         *-*-aix*)
1882              OS=AIX
1883
1884                  ;;
1885         *)       OS=Unknown
1886
1887                  ;;
1888 esac
1889
1890 case $target in
1891         sparc*-*-solaris*)  target=sparcv9-sun-solaris2.8
1892
1893                             ;;
1894 esac
1895
1896 case $target in
1897         i*86-*)           ARCH=x86
1898
1899                           ;;
1900         sparc*-*)         ARCH=Sparc
1901
1902                           ;;
1903         powerpc*-*)       ARCH=PowerPC
1904
1905                           ;;
1906         *)                ARCH=Unknown
1907
1908                           ;;
1909 esac
1910
1911 ac_ext=cc
1912 ac_cpp='$CXXCPP $CPPFLAGS'
1913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1916 if test -n "$ac_tool_prefix"; then
1917   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1918   do
1919     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1920 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1921 echo "$as_me:$LINENO: checking for $ac_word" >&5
1922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1923 if test "${ac_cv_prog_CXX+set}" = set; then
1924   echo $ECHO_N "(cached) $ECHO_C" >&6
1925 else
1926   if test -n "$CXX"; then
1927   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1928 else
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 for as_dir in $PATH
1931 do
1932   IFS=$as_save_IFS
1933   test -z "$as_dir" && as_dir=.
1934   for ac_exec_ext in '' $ac_executable_extensions; do
1935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938     break 2
1939   fi
1940 done
1941 done
1942
1943 fi
1944 fi
1945 CXX=$ac_cv_prog_CXX
1946 if test -n "$CXX"; then
1947   echo "$as_me:$LINENO: result: $CXX" >&5
1948 echo "${ECHO_T}$CXX" >&6
1949 else
1950   echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6
1952 fi
1953
1954     test -n "$CXX" && break
1955   done
1956 fi
1957 if test -z "$CXX"; then
1958   ac_ct_CXX=$CXX
1959   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1960 do
1961   # Extract the first word of "$ac_prog", so it can be a program name with args.
1962 set dummy $ac_prog; ac_word=$2
1963 echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1966   echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968   if test -n "$ac_ct_CXX"; then
1969   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1970 else
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972 for as_dir in $PATH
1973 do
1974   IFS=$as_save_IFS
1975   test -z "$as_dir" && as_dir=.
1976   for ac_exec_ext in '' $ac_executable_extensions; do
1977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978     ac_cv_prog_ac_ct_CXX="$ac_prog"
1979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980     break 2
1981   fi
1982 done
1983 done
1984
1985 fi
1986 fi
1987 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1988 if test -n "$ac_ct_CXX"; then
1989   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1990 echo "${ECHO_T}$ac_ct_CXX" >&6
1991 else
1992   echo "$as_me:$LINENO: result: no" >&5
1993 echo "${ECHO_T}no" >&6
1994 fi
1995
1996   test -n "$ac_ct_CXX" && break
1997 done
1998 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1999
2000   CXX=$ac_ct_CXX
2001 fi
2002
2003
2004 # Provide some information about the compiler.
2005 echo "$as_me:$LINENO:" \
2006      "checking for C++ compiler version" >&5
2007 ac_compiler=`set X $ac_compile; echo $2`
2008 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2009   (eval $ac_compiler --version </dev/null >&5) 2>&5
2010   ac_status=$?
2011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012   (exit $ac_status); }
2013 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2014   (eval $ac_compiler -v </dev/null >&5) 2>&5
2015   ac_status=$?
2016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017   (exit $ac_status); }
2018 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2019   (eval $ac_compiler -V </dev/null >&5) 2>&5
2020   ac_status=$?
2021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022   (exit $ac_status); }
2023
2024 cat >conftest.$ac_ext <<_ACEOF
2025 #line $LINENO "configure"
2026 /* confdefs.h.  */
2027 _ACEOF
2028 cat confdefs.h >>conftest.$ac_ext
2029 cat >>conftest.$ac_ext <<_ACEOF
2030 /* end confdefs.h.  */
2031
2032 int
2033 main ()
2034 {
2035
2036   ;
2037   return 0;
2038 }
2039 _ACEOF
2040 ac_clean_files_save=$ac_clean_files
2041 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2042 # Try to create an executable without -o first, disregard a.out.
2043 # It will help us diagnose broken compilers, and finding out an intuition
2044 # of exeext.
2045 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2046 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2047 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2048 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2049   (eval $ac_link_default) 2>&5
2050   ac_status=$?
2051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052   (exit $ac_status); }; then
2053   # Find the output, starting from the most likely.  This scheme is
2054 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2055 # resort.
2056
2057 # Be careful to initialize this variable, since it used to be cached.
2058 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2059 ac_cv_exeext=
2060 # b.out is created by i960 compilers.
2061 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2062 do
2063   test -f "$ac_file" || continue
2064   case $ac_file in
2065     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2066         ;;
2067     conftest.$ac_ext )
2068         # This is the source file.
2069         ;;
2070     [ab].out )
2071         # We found the default executable, but exeext='' is most
2072         # certainly right.
2073         break;;
2074     *.* )
2075         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2076         # FIXME: I believe we export ac_cv_exeext for Libtool,
2077         # but it would be cool to find out if it's true.  Does anybody
2078         # maintain Libtool? --akim.
2079         export ac_cv_exeext
2080         break;;
2081     * )
2082         break;;
2083   esac
2084 done
2085 else
2086   echo "$as_me: failed program was:" >&5
2087 sed 's/^/| /' conftest.$ac_ext >&5
2088
2089 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: C++ compiler cannot create executables
2092 See \`config.log' for more details." >&2;}
2093    { (exit 77); exit 77; }; }
2094 fi
2095
2096 ac_exeext=$ac_cv_exeext
2097 echo "$as_me:$LINENO: result: $ac_file" >&5
2098 echo "${ECHO_T}$ac_file" >&6
2099
2100 # Check the compiler produces executables we can run.  If not, either
2101 # the compiler is broken, or we cross compile.
2102 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2103 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2104 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2105 # If not cross compiling, check that we can run a simple program.
2106 if test "$cross_compiling" != yes; then
2107   if { ac_try='./$ac_file'
2108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109   (eval $ac_try) 2>&5
2110   ac_status=$?
2111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112   (exit $ac_status); }; }; then
2113     cross_compiling=no
2114   else
2115     if test "$cross_compiling" = maybe; then
2116         cross_compiling=yes
2117     else
2118         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2119 If you meant to cross compile, use \`--host'.
2120 See \`config.log' for more details." >&5
2121 echo "$as_me: error: cannot run C++ compiled programs.
2122 If you meant to cross compile, use \`--host'.
2123 See \`config.log' for more details." >&2;}
2124    { (exit 1); exit 1; }; }
2125     fi
2126   fi
2127 fi
2128 echo "$as_me:$LINENO: result: yes" >&5
2129 echo "${ECHO_T}yes" >&6
2130
2131 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2132 ac_clean_files=$ac_clean_files_save
2133 # Check the compiler produces executables we can run.  If not, either
2134 # the compiler is broken, or we cross compile.
2135 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2136 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2137 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2138 echo "${ECHO_T}$cross_compiling" >&6
2139
2140 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2141 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2143   (eval $ac_link) 2>&5
2144   ac_status=$?
2145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146   (exit $ac_status); }; then
2147   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2148 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2149 # work properly (i.e., refer to `conftest.exe'), while it won't with
2150 # `rm'.
2151 for ac_file in conftest.exe conftest conftest.*; do
2152   test -f "$ac_file" || continue
2153   case $ac_file in
2154     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2155     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2156           export ac_cv_exeext
2157           break;;
2158     * ) break;;
2159   esac
2160 done
2161 else
2162   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2163 See \`config.log' for more details." >&5
2164 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2165 See \`config.log' for more details." >&2;}
2166    { (exit 1); exit 1; }; }
2167 fi
2168
2169 rm -f conftest$ac_cv_exeext
2170 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2171 echo "${ECHO_T}$ac_cv_exeext" >&6
2172
2173 rm -f conftest.$ac_ext
2174 EXEEXT=$ac_cv_exeext
2175 ac_exeext=$EXEEXT
2176 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2177 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2178 if test "${ac_cv_objext+set}" = set; then
2179   echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181   cat >conftest.$ac_ext <<_ACEOF
2182 #line $LINENO "configure"
2183 /* confdefs.h.  */
2184 _ACEOF
2185 cat confdefs.h >>conftest.$ac_ext
2186 cat >>conftest.$ac_ext <<_ACEOF
2187 /* end confdefs.h.  */
2188
2189 int
2190 main ()
2191 {
2192
2193   ;
2194   return 0;
2195 }
2196 _ACEOF
2197 rm -f conftest.o conftest.obj
2198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199   (eval $ac_compile) 2>&5
2200   ac_status=$?
2201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202   (exit $ac_status); }; then
2203   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2204   case $ac_file in
2205     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2206     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2207        break;;
2208   esac
2209 done
2210 else
2211   echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2213
2214 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2217 See \`config.log' for more details." >&2;}
2218    { (exit 1); exit 1; }; }
2219 fi
2220
2221 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2222 fi
2223 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2224 echo "${ECHO_T}$ac_cv_objext" >&6
2225 OBJEXT=$ac_cv_objext
2226 ac_objext=$OBJEXT
2227 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2228 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2229 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2230   echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232   cat >conftest.$ac_ext <<_ACEOF
2233 #line $LINENO "configure"
2234 /* confdefs.h.  */
2235 _ACEOF
2236 cat confdefs.h >>conftest.$ac_ext
2237 cat >>conftest.$ac_ext <<_ACEOF
2238 /* end confdefs.h.  */
2239
2240 int
2241 main ()
2242 {
2243 #ifndef __GNUC__
2244        choke me
2245 #endif
2246
2247   ;
2248   return 0;
2249 }
2250 _ACEOF
2251 rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253   (eval $ac_compile) 2>&5
2254   ac_status=$?
2255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256   (exit $ac_status); } &&
2257          { ac_try='test -s conftest.$ac_objext'
2258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259   (eval $ac_try) 2>&5
2260   ac_status=$?
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); }; }; then
2263   ac_compiler_gnu=yes
2264 else
2265   echo "$as_me: failed program was:" >&5
2266 sed 's/^/| /' conftest.$ac_ext >&5
2267
2268 ac_compiler_gnu=no
2269 fi
2270 rm -f conftest.$ac_objext conftest.$ac_ext
2271 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2272
2273 fi
2274 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2275 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2276 GXX=`test $ac_compiler_gnu = yes && echo yes`
2277 ac_test_CXXFLAGS=${CXXFLAGS+set}
2278 ac_save_CXXFLAGS=$CXXFLAGS
2279 CXXFLAGS="-g"
2280 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2281 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2282 if test "${ac_cv_prog_cxx_g+set}" = set; then
2283   echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285   cat >conftest.$ac_ext <<_ACEOF
2286 #line $LINENO "configure"
2287 /* confdefs.h.  */
2288 _ACEOF
2289 cat confdefs.h >>conftest.$ac_ext
2290 cat >>conftest.$ac_ext <<_ACEOF
2291 /* end confdefs.h.  */
2292
2293 int
2294 main ()
2295 {
2296
2297   ;
2298   return 0;
2299 }
2300 _ACEOF
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303   (eval $ac_compile) 2>&5
2304   ac_status=$?
2305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306   (exit $ac_status); } &&
2307          { ac_try='test -s conftest.$ac_objext'
2308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309   (eval $ac_try) 2>&5
2310   ac_status=$?
2311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312   (exit $ac_status); }; }; then
2313   ac_cv_prog_cxx_g=yes
2314 else
2315   echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2317
2318 ac_cv_prog_cxx_g=no
2319 fi
2320 rm -f conftest.$ac_objext conftest.$ac_ext
2321 fi
2322 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2323 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2324 if test "$ac_test_CXXFLAGS" = set; then
2325   CXXFLAGS=$ac_save_CXXFLAGS
2326 elif test $ac_cv_prog_cxx_g = yes; then
2327   if test "$GXX" = yes; then
2328     CXXFLAGS="-g -O2"
2329   else
2330     CXXFLAGS="-g"
2331   fi
2332 else
2333   if test "$GXX" = yes; then
2334     CXXFLAGS="-O2"
2335   else
2336     CXXFLAGS=
2337   fi
2338 fi
2339 for ac_declaration in \
2340    ''\
2341    '#include <stdlib.h>' \
2342    'extern "C" void std::exit (int) throw (); using std::exit;' \
2343    'extern "C" void std::exit (int); using std::exit;' \
2344    'extern "C" void exit (int) throw ();' \
2345    'extern "C" void exit (int);' \
2346    'void exit (int);'
2347 do
2348   cat >conftest.$ac_ext <<_ACEOF
2349 #line $LINENO "configure"
2350 /* confdefs.h.  */
2351 _ACEOF
2352 cat confdefs.h >>conftest.$ac_ext
2353 cat >>conftest.$ac_ext <<_ACEOF
2354 /* end confdefs.h.  */
2355 #include <stdlib.h>
2356 $ac_declaration
2357 int
2358 main ()
2359 {
2360 exit (42);
2361   ;
2362   return 0;
2363 }
2364 _ACEOF
2365 rm -f conftest.$ac_objext
2366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2367   (eval $ac_compile) 2>&5
2368   ac_status=$?
2369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370   (exit $ac_status); } &&
2371          { ac_try='test -s conftest.$ac_objext'
2372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373   (eval $ac_try) 2>&5
2374   ac_status=$?
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); }; }; then
2377   :
2378 else
2379   echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2381
2382 continue
2383 fi
2384 rm -f conftest.$ac_objext conftest.$ac_ext
2385   cat >conftest.$ac_ext <<_ACEOF
2386 #line $LINENO "configure"
2387 /* confdefs.h.  */
2388 _ACEOF
2389 cat confdefs.h >>conftest.$ac_ext
2390 cat >>conftest.$ac_ext <<_ACEOF
2391 /* end confdefs.h.  */
2392 $ac_declaration
2393 int
2394 main ()
2395 {
2396 exit (42);
2397   ;
2398   return 0;
2399 }
2400 _ACEOF
2401 rm -f conftest.$ac_objext
2402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403   (eval $ac_compile) 2>&5
2404   ac_status=$?
2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406   (exit $ac_status); } &&
2407          { ac_try='test -s conftest.$ac_objext'
2408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409   (eval $ac_try) 2>&5
2410   ac_status=$?
2411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412   (exit $ac_status); }; }; then
2413   break
2414 else
2415   echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2417
2418 fi
2419 rm -f conftest.$ac_objext conftest.$ac_ext
2420 done
2421 rm -f conftest*
2422 if test -n "$ac_declaration"; then
2423   echo '#ifdef __cplusplus' >>confdefs.h
2424   echo $ac_declaration      >>confdefs.h
2425   echo '#endif'             >>confdefs.h
2426 fi
2427
2428 ac_ext=c
2429 ac_cpp='$CPP $CPPFLAGS'
2430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2433
2434 ac_ext=c
2435 ac_cpp='$CPP $CPPFLAGS'
2436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2439 if test -n "$ac_tool_prefix"; then
2440   for ac_prog in gcc
2441   do
2442     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2443 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2444 echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446 if test "${ac_cv_prog_CC+set}" = set; then
2447   echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449   if test -n "$CC"; then
2450   ac_cv_prog_CC="$CC" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2454 do
2455   IFS=$as_save_IFS
2456   test -z "$as_dir" && as_dir=.
2457   for ac_exec_ext in '' $ac_executable_extensions; do
2458   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461     break 2
2462   fi
2463 done
2464 done
2465
2466 fi
2467 fi
2468 CC=$ac_cv_prog_CC
2469 if test -n "$CC"; then
2470   echo "$as_me:$LINENO: result: $CC" >&5
2471 echo "${ECHO_T}$CC" >&6
2472 else
2473   echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2475 fi
2476
2477     test -n "$CC" && break
2478   done
2479 fi
2480 if test -z "$CC"; then
2481   ac_ct_CC=$CC
2482   for ac_prog in gcc
2483 do
2484   # Extract the first word of "$ac_prog", so it can be a program name with args.
2485 set dummy $ac_prog; ac_word=$2
2486 echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2489   echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491   if test -n "$ac_ct_CC"; then
2492   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2493 else
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2496 do
2497   IFS=$as_save_IFS
2498   test -z "$as_dir" && as_dir=.
2499   for ac_exec_ext in '' $ac_executable_extensions; do
2500   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501     ac_cv_prog_ac_ct_CC="$ac_prog"
2502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503     break 2
2504   fi
2505 done
2506 done
2507
2508 fi
2509 fi
2510 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2511 if test -n "$ac_ct_CC"; then
2512   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2513 echo "${ECHO_T}$ac_ct_CC" >&6
2514 else
2515   echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6
2517 fi
2518
2519   test -n "$ac_ct_CC" && break
2520 done
2521
2522   CC=$ac_ct_CC
2523 fi
2524
2525
2526 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2527 See \`config.log' for more details." >&5
2528 echo "$as_me: error: no acceptable C compiler found in \$PATH
2529 See \`config.log' for more details." >&2;}
2530    { (exit 1); exit 1; }; }
2531
2532 # Provide some information about the compiler.
2533 echo "$as_me:$LINENO:" \
2534      "checking for C compiler version" >&5
2535 ac_compiler=`set X $ac_compile; echo $2`
2536 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2537   (eval $ac_compiler --version </dev/null >&5) 2>&5
2538   ac_status=$?
2539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540   (exit $ac_status); }
2541 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2542   (eval $ac_compiler -v </dev/null >&5) 2>&5
2543   ac_status=$?
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); }
2546 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2547   (eval $ac_compiler -V </dev/null >&5) 2>&5
2548   ac_status=$?
2549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550   (exit $ac_status); }
2551
2552 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2553 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2554 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2555   echo $ECHO_N "(cached) $ECHO_C" >&6
2556 else
2557   cat >conftest.$ac_ext <<_ACEOF
2558 #line $LINENO "configure"
2559 /* confdefs.h.  */
2560 _ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h.  */
2564
2565 int
2566 main ()
2567 {
2568 #ifndef __GNUC__
2569        choke me
2570 #endif
2571
2572   ;
2573   return 0;
2574 }
2575 _ACEOF
2576 rm -f conftest.$ac_objext
2577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2578   (eval $ac_compile) 2>&5
2579   ac_status=$?
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); } &&
2582          { ac_try='test -s conftest.$ac_objext'
2583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584   (eval $ac_try) 2>&5
2585   ac_status=$?
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); }; }; then
2588   ac_compiler_gnu=yes
2589 else
2590   echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2592
2593 ac_compiler_gnu=no
2594 fi
2595 rm -f conftest.$ac_objext conftest.$ac_ext
2596 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2597
2598 fi
2599 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2600 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2601 GCC=`test $ac_compiler_gnu = yes && echo yes`
2602 ac_test_CFLAGS=${CFLAGS+set}
2603 ac_save_CFLAGS=$CFLAGS
2604 CFLAGS="-g"
2605 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2606 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2607 if test "${ac_cv_prog_cc_g+set}" = set; then
2608   echo $ECHO_N "(cached) $ECHO_C" >&6
2609 else
2610   cat >conftest.$ac_ext <<_ACEOF
2611 #line $LINENO "configure"
2612 /* confdefs.h.  */
2613 _ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h.  */
2617
2618 int
2619 main ()
2620 {
2621
2622   ;
2623   return 0;
2624 }
2625 _ACEOF
2626 rm -f conftest.$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628   (eval $ac_compile) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); } &&
2632          { ac_try='test -s conftest.$ac_objext'
2633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634   (eval $ac_try) 2>&5
2635   ac_status=$?
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); }; }; then
2638   ac_cv_prog_cc_g=yes
2639 else
2640   echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2642
2643 ac_cv_prog_cc_g=no
2644 fi
2645 rm -f conftest.$ac_objext conftest.$ac_ext
2646 fi
2647 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2648 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2649 if test "$ac_test_CFLAGS" = set; then
2650   CFLAGS=$ac_save_CFLAGS
2651 elif test $ac_cv_prog_cc_g = yes; then
2652   if test "$GCC" = yes; then
2653     CFLAGS="-g -O2"
2654   else
2655     CFLAGS="-g"
2656   fi
2657 else
2658   if test "$GCC" = yes; then
2659     CFLAGS="-O2"
2660   else
2661     CFLAGS=
2662   fi
2663 fi
2664 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2665 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2666 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2667   echo $ECHO_N "(cached) $ECHO_C" >&6
2668 else
2669   ac_cv_prog_cc_stdc=no
2670 ac_save_CC=$CC
2671 cat >conftest.$ac_ext <<_ACEOF
2672 #line $LINENO "configure"
2673 /* confdefs.h.  */
2674 _ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h.  */
2678 #include <stdarg.h>
2679 #include <stdio.h>
2680 #include <sys/types.h>
2681 #include <sys/stat.h>
2682 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2683 struct buf { int x; };
2684 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2685 static char *e (p, i)
2686      char **p;
2687      int i;
2688 {
2689   return p[i];
2690 }
2691 static char *f (char * (*g) (char **, int), char **p, ...)
2692 {
2693   char *s;
2694   va_list v;
2695   va_start (v,p);
2696   s = g (p, va_arg (v,int));
2697   va_end (v);
2698   return s;
2699 }
2700 int test (int i, double x);
2701 struct s1 {int (*f) (int a);};
2702 struct s2 {int (*f) (double a);};
2703 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2704 int argc;
2705 char **argv;
2706 int
2707 main ()
2708 {
2709 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2710   ;
2711   return 0;
2712 }
2713 _ACEOF
2714 # Don't try gcc -ansi; that turns off useful extensions and
2715 # breaks some systems' header files.
2716 # AIX                   -qlanglvl=ansi
2717 # Ultrix and OSF/1      -std1
2718 # HP-UX 10.20 and later -Ae
2719 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2720 # SVR4                  -Xc -D__EXTENSIONS__
2721 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2722 do
2723   CC="$ac_save_CC $ac_arg"
2724   rm -f conftest.$ac_objext
2725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726   (eval $ac_compile) 2>&5
2727   ac_status=$?
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); } &&
2730          { ac_try='test -s conftest.$ac_objext'
2731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732   (eval $ac_try) 2>&5
2733   ac_status=$?
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); }; }; then
2736   ac_cv_prog_cc_stdc=$ac_arg
2737 break
2738 else
2739   echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2741
2742 fi
2743 rm -f conftest.$ac_objext
2744 done
2745 rm -f conftest.$ac_ext conftest.$ac_objext
2746 CC=$ac_save_CC
2747
2748 fi
2749
2750 case "x$ac_cv_prog_cc_stdc" in
2751   x|xno)
2752     echo "$as_me:$LINENO: result: none needed" >&5
2753 echo "${ECHO_T}none needed" >&6 ;;
2754   *)
2755     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2756 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2757     CC="$CC $ac_cv_prog_cc_stdc" ;;
2758 esac
2759
2760 # Some people use a C++ compiler to compile C.  Since we use `exit',
2761 # in C++ we need to declare it.  In case someone uses the same compiler
2762 # for both compiling C and C++ we need to have the C++ compiler decide
2763 # the declaration of exit, since it's the most demanding environment.
2764 cat >conftest.$ac_ext <<_ACEOF
2765 #ifndef __cplusplus
2766   choke me
2767 #endif
2768 _ACEOF
2769 rm -f conftest.$ac_objext
2770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2771   (eval $ac_compile) 2>&5
2772   ac_status=$?
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); } &&
2775          { ac_try='test -s conftest.$ac_objext'
2776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777   (eval $ac_try) 2>&5
2778   ac_status=$?
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); }; }; then
2781   for ac_declaration in \
2782    ''\
2783    '#include <stdlib.h>' \
2784    'extern "C" void std::exit (int) throw (); using std::exit;' \
2785    'extern "C" void std::exit (int); using std::exit;' \
2786    'extern "C" void exit (int) throw ();' \
2787    'extern "C" void exit (int);' \
2788    'void exit (int);'
2789 do
2790   cat >conftest.$ac_ext <<_ACEOF
2791 #line $LINENO "configure"
2792 /* confdefs.h.  */
2793 _ACEOF
2794 cat confdefs.h >>conftest.$ac_ext
2795 cat >>conftest.$ac_ext <<_ACEOF
2796 /* end confdefs.h.  */
2797 #include <stdlib.h>
2798 $ac_declaration
2799 int
2800 main ()
2801 {
2802 exit (42);
2803   ;
2804   return 0;
2805 }
2806 _ACEOF
2807 rm -f conftest.$ac_objext
2808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2809   (eval $ac_compile) 2>&5
2810   ac_status=$?
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); } &&
2813          { ac_try='test -s conftest.$ac_objext'
2814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815   (eval $ac_try) 2>&5
2816   ac_status=$?
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); }; }; then
2819   :
2820 else
2821   echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2823
2824 continue
2825 fi
2826 rm -f conftest.$ac_objext conftest.$ac_ext
2827   cat >conftest.$ac_ext <<_ACEOF
2828 #line $LINENO "configure"
2829 /* confdefs.h.  */
2830 _ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h.  */
2834 $ac_declaration
2835 int
2836 main ()
2837 {
2838 exit (42);
2839   ;
2840   return 0;
2841 }
2842 _ACEOF
2843 rm -f conftest.$ac_objext
2844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2845   (eval $ac_compile) 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); } &&
2849          { ac_try='test -s conftest.$ac_objext'
2850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851   (eval $ac_try) 2>&5
2852   ac_status=$?
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); }; }; then
2855   break
2856 else
2857   echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2859
2860 fi
2861 rm -f conftest.$ac_objext conftest.$ac_ext
2862 done
2863 rm -f conftest*
2864 if test -n "$ac_declaration"; then
2865   echo '#ifdef __cplusplus' >>confdefs.h
2866   echo $ac_declaration      >>confdefs.h
2867   echo '#endif'             >>confdefs.h
2868 fi
2869
2870 else
2871   echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2873
2874 fi
2875 rm -f conftest.$ac_objext conftest.$ac_ext
2876 ac_ext=c
2877 ac_cpp='$CPP $CPPFLAGS'
2878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881
2882 ac_ext=c
2883 ac_cpp='$CPP $CPPFLAGS'
2884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2887 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2888 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2889 # On Suns, sometimes $CPP names a directory.
2890 if test -n "$CPP" && test -d "$CPP"; then
2891   CPP=
2892 fi
2893 if test -z "$CPP"; then
2894   if test "${ac_cv_prog_CPP+set}" = set; then
2895   echo $ECHO_N "(cached) $ECHO_C" >&6
2896 else
2897       # Double quotes because CPP needs to be expanded
2898     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2899     do
2900       ac_preproc_ok=false
2901 for ac_c_preproc_warn_flag in '' yes
2902 do
2903   # Use a header file that comes with gcc, so configuring glibc
2904   # with a fresh cross-compiler works.
2905   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2906   # <limits.h> exists even on freestanding compilers.
2907   # On the NeXT, cc -E runs the code through the compiler's parser,
2908   # not just through cpp. "Syntax error" is here to catch this case.
2909   cat >conftest.$ac_ext <<_ACEOF
2910 #line $LINENO "configure"
2911 /* confdefs.h.  */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h.  */
2916 #ifdef __STDC__
2917 # include <limits.h>
2918 #else
2919 # include <assert.h>
2920 #endif
2921                      Syntax error
2922 _ACEOF
2923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2924   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2925   ac_status=$?
2926   grep -v '^ *+' conftest.er1 >conftest.err
2927   rm -f conftest.er1
2928   cat conftest.err >&5
2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930   (exit $ac_status); } >/dev/null; then
2931   if test -s conftest.err; then
2932     ac_cpp_err=$ac_c_preproc_warn_flag
2933   else
2934     ac_cpp_err=
2935   fi
2936 else
2937   ac_cpp_err=yes
2938 fi
2939 if test -z "$ac_cpp_err"; then
2940   :
2941 else
2942   echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2944
2945   # Broken: fails on valid input.
2946 continue
2947 fi
2948 rm -f conftest.err conftest.$ac_ext
2949
2950   # OK, works on sane cases.  Now check whether non-existent headers
2951   # can be detected and how.
2952   cat >conftest.$ac_ext <<_ACEOF
2953 #line $LINENO "configure"
2954 /* confdefs.h.  */
2955 _ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h.  */
2959 #include <ac_nonexistent.h>
2960 _ACEOF
2961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2962   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2963   ac_status=$?
2964   grep -v '^ *+' conftest.er1 >conftest.err
2965   rm -f conftest.er1
2966   cat conftest.err >&5
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); } >/dev/null; then
2969   if test -s conftest.err; then
2970     ac_cpp_err=$ac_c_preproc_warn_flag
2971   else
2972     ac_cpp_err=
2973   fi
2974 else
2975   ac_cpp_err=yes
2976 fi
2977 if test -z "$ac_cpp_err"; then
2978   # Broken: success on invalid input.
2979 continue
2980 else
2981   echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2983
2984   # Passes both tests.
2985 ac_preproc_ok=:
2986 break
2987 fi
2988 rm -f conftest.err conftest.$ac_ext
2989
2990 done
2991 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2992 rm -f conftest.err conftest.$ac_ext
2993 if $ac_preproc_ok; then
2994   break
2995 fi
2996
2997     done
2998     ac_cv_prog_CPP=$CPP
2999
3000 fi
3001   CPP=$ac_cv_prog_CPP
3002 else
3003   ac_cv_prog_CPP=$CPP
3004 fi
3005 echo "$as_me:$LINENO: result: $CPP" >&5
3006 echo "${ECHO_T}$CPP" >&6
3007 ac_preproc_ok=false
3008 for ac_c_preproc_warn_flag in '' yes
3009 do
3010   # Use a header file that comes with gcc, so configuring glibc
3011   # with a fresh cross-compiler works.
3012   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3013   # <limits.h> exists even on freestanding compilers.
3014   # On the NeXT, cc -E runs the code through the compiler's parser,
3015   # not just through cpp. "Syntax error" is here to catch this case.
3016   cat >conftest.$ac_ext <<_ACEOF
3017 #line $LINENO "configure"
3018 /* confdefs.h.  */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h.  */
3023 #ifdef __STDC__
3024 # include <limits.h>
3025 #else
3026 # include <assert.h>
3027 #endif
3028                      Syntax error
3029 _ACEOF
3030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3032   ac_status=$?
3033   grep -v '^ *+' conftest.er1 >conftest.err
3034   rm -f conftest.er1
3035   cat conftest.err >&5
3036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037   (exit $ac_status); } >/dev/null; then
3038   if test -s conftest.err; then
3039     ac_cpp_err=$ac_c_preproc_warn_flag
3040   else
3041     ac_cpp_err=
3042   fi
3043 else
3044   ac_cpp_err=yes
3045 fi
3046 if test -z "$ac_cpp_err"; then
3047   :
3048 else
3049   echo "$as_me: failed program was:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3051
3052   # Broken: fails on valid input.
3053 continue
3054 fi
3055 rm -f conftest.err conftest.$ac_ext
3056
3057   # OK, works on sane cases.  Now check whether non-existent headers
3058   # can be detected and how.
3059   cat >conftest.$ac_ext <<_ACEOF
3060 #line $LINENO "configure"
3061 /* confdefs.h.  */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h.  */
3066 #include <ac_nonexistent.h>
3067 _ACEOF
3068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3069   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3070   ac_status=$?
3071   grep -v '^ *+' conftest.er1 >conftest.err
3072   rm -f conftest.er1
3073   cat conftest.err >&5
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); } >/dev/null; then
3076   if test -s conftest.err; then
3077     ac_cpp_err=$ac_c_preproc_warn_flag
3078   else
3079     ac_cpp_err=
3080   fi
3081 else
3082   ac_cpp_err=yes
3083 fi
3084 if test -z "$ac_cpp_err"; then
3085   # Broken: success on invalid input.
3086 continue
3087 else
3088   echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3090
3091   # Passes both tests.
3092 ac_preproc_ok=:
3093 break
3094 fi
3095 rm -f conftest.err conftest.$ac_ext
3096
3097 done
3098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3099 rm -f conftest.err conftest.$ac_ext
3100 if $ac_preproc_ok; then
3101   :
3102 else
3103   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3104 See \`config.log' for more details." >&5
3105 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3106 See \`config.log' for more details." >&2;}
3107    { (exit 1); exit 1; }; }
3108 fi
3109
3110 ac_ext=c
3111 ac_cpp='$CPP $CPPFLAGS'
3112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3115
3116
3117 if test "$GCC" != "yes"
3118 then
3119         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3120 echo "$as_me: error: gcc required but not found" >&2;}
3121    { (exit 1); exit 1; }; }
3122 fi
3123 if test "$GXX" != "yes"
3124 then
3125         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3126 echo "$as_me: error: g++ required but not found" >&2;}
3127    { (exit 1); exit 1; }; }
3128 fi
3129
3130 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3131 if test "$gccmajor" -lt "3"
3132 then
3133         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3134 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
3135    { (exit 1); exit 1; }; }
3136 fi
3137
3138  echo "$as_me:$LINENO: checking for GNU make" >&5
3139 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3140 if test "${_cv_gnu_make_command+set}" = set; then
3141   echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143   _cv_gnu_make_command='' ;
3144                 for a in "$MAKE" make gmake gnumake ; do
3145                         if test -z "$a" ; then continue ; fi ;
3146                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3147                                 _cv_gnu_make_command=$a ;
3148                                 break;
3149                         fi
3150                 done ;
3151
3152 fi
3153 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3154 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3155         if test  "x$_cv_gnu_make_command" != "x"  ; then
3156                 ifGNUmake='' ;
3157         else
3158                 ifGNUmake='#' ;
3159                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3160 echo "${ECHO_T}\"Not found\"" >&6;
3161         fi
3162
3163
3164 if test -z "$_cv_gnu_make_command"
3165 then
3166         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3167 echo "$as_me: error: GNU Make required but not found" >&2;}
3168    { (exit 1); exit 1; }; }
3169 fi
3170
3171
3172 echo "$as_me:$LINENO: checking " >&5
3173 echo $ECHO_N "checking ... $ECHO_C" >&6
3174 if test "${ac_cv_has_flex+set}" = set; then
3175   echo $ECHO_N "(cached) $ECHO_C" >&6
3176 else
3177   for ac_prog in flex lex
3178 do
3179   # Extract the first word of "$ac_prog", so it can be a program name with args.
3180 set dummy $ac_prog; ac_word=$2
3181 echo "$as_me:$LINENO: checking for $ac_word" >&5
3182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3183 if test "${ac_cv_prog_LEX+set}" = set; then
3184   echo $ECHO_N "(cached) $ECHO_C" >&6
3185 else
3186   if test -n "$LEX"; then
3187   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3188 else
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3191 do
3192   IFS=$as_save_IFS
3193   test -z "$as_dir" && as_dir=.
3194   for ac_exec_ext in '' $ac_executable_extensions; do
3195   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196     ac_cv_prog_LEX="$ac_prog"
3197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3198     break 2
3199   fi
3200 done
3201 done
3202
3203 fi
3204 fi
3205 LEX=$ac_cv_prog_LEX
3206 if test -n "$LEX"; then
3207   echo "$as_me:$LINENO: result: $LEX" >&5
3208 echo "${ECHO_T}$LEX" >&6
3209 else
3210   echo "$as_me:$LINENO: result: no" >&5
3211 echo "${ECHO_T}no" >&6
3212 fi
3213
3214   test -n "$LEX" && break
3215 done
3216 test -n "$LEX" || LEX=":"
3217
3218 if test -z "$LEXLIB"
3219 then
3220   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3221 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3222 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   ac_check_lib_save_LIBS=$LIBS
3226 LIBS="-lfl  $LIBS"
3227 cat >conftest.$ac_ext <<_ACEOF
3228 #line $LINENO "configure"
3229 /* confdefs.h.  */
3230 _ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h.  */
3234
3235 /* Override any gcc2 internal prototype to avoid an error.  */
3236 #ifdef __cplusplus
3237 extern "C"
3238 #endif
3239 /* We use char because int might match the return type of a gcc2
3240    builtin and then its argument prototype would still apply.  */
3241 char yywrap ();
3242 int
3243 main ()
3244 {
3245 yywrap ();
3246   ;
3247   return 0;
3248 }
3249 _ACEOF
3250 rm -f conftest.$ac_objext conftest$ac_exeext
3251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3252   (eval $ac_link) 2>&5
3253   ac_status=$?
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); } &&
3256          { ac_try='test -s conftest$ac_exeext'
3257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258   (eval $ac_try) 2>&5
3259   ac_status=$?
3260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261   (exit $ac_status); }; }; then
3262   ac_cv_lib_fl_yywrap=yes
3263 else
3264   echo "$as_me: failed program was:" >&5
3265 sed 's/^/| /' conftest.$ac_ext >&5
3266
3267 ac_cv_lib_fl_yywrap=no
3268 fi
3269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3270 LIBS=$ac_check_lib_save_LIBS
3271 fi
3272 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3273 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3274 if test $ac_cv_lib_fl_yywrap = yes; then
3275   LEXLIB="-lfl"
3276 else
3277   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3278 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3279 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3280   echo $ECHO_N "(cached) $ECHO_C" >&6
3281 else
3282   ac_check_lib_save_LIBS=$LIBS
3283 LIBS="-ll  $LIBS"
3284 cat >conftest.$ac_ext <<_ACEOF
3285 #line $LINENO "configure"
3286 /* confdefs.h.  */
3287 _ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h.  */
3291
3292 /* Override any gcc2 internal prototype to avoid an error.  */
3293 #ifdef __cplusplus
3294 extern "C"
3295 #endif
3296 /* We use char because int might match the return type of a gcc2
3297    builtin and then its argument prototype would still apply.  */
3298 char yywrap ();
3299 int
3300 main ()
3301 {
3302 yywrap ();
3303   ;
3304   return 0;
3305 }
3306 _ACEOF
3307 rm -f conftest.$ac_objext conftest$ac_exeext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3309   (eval $ac_link) 2>&5
3310   ac_status=$?
3311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312   (exit $ac_status); } &&
3313          { ac_try='test -s conftest$ac_exeext'
3314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315   (eval $ac_try) 2>&5
3316   ac_status=$?
3317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318   (exit $ac_status); }; }; then
3319   ac_cv_lib_l_yywrap=yes
3320 else
3321   echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.$ac_ext >&5
3323
3324 ac_cv_lib_l_yywrap=no
3325 fi
3326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3327 LIBS=$ac_check_lib_save_LIBS
3328 fi
3329 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3330 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3331 if test $ac_cv_lib_l_yywrap = yes; then
3332   LEXLIB="-ll"
3333 fi
3334
3335 fi
3336
3337 fi
3338
3339 if test "x$LEX" != "x:"; then
3340   echo "$as_me:$LINENO: checking lex output file root" >&5
3341 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3342 if test "${ac_cv_prog_lex_root+set}" = set; then
3343   echo $ECHO_N "(cached) $ECHO_C" >&6
3344 else
3345   # The minimal lex program is just a single line: %%.  But some broken lexes
3346 # (Solaris, I think it was) want two %% lines, so accommodate them.
3347 cat >conftest.l <<_ACEOF
3348 %%
3349 %%
3350 _ACEOF
3351 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3352   (eval $LEX conftest.l) 2>&5
3353   ac_status=$?
3354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355   (exit $ac_status); }
3356 if test -f lex.yy.c; then
3357   ac_cv_prog_lex_root=lex.yy
3358 elif test -f lexyy.c; then
3359   ac_cv_prog_lex_root=lexyy
3360 else
3361   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3362 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3363    { (exit 1); exit 1; }; }
3364 fi
3365 fi
3366 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3367 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3368 rm -f conftest.l
3369 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3370
3371 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3372 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3373 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3374   echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376   # POSIX says lex can declare yytext either as a pointer or an array; the
3377 # default is implementation-dependent. Figure out which it is, since
3378 # not all implementations provide the %pointer and %array declarations.
3379 ac_cv_prog_lex_yytext_pointer=no
3380 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3381 ac_save_LIBS=$LIBS
3382 LIBS="$LIBS $LEXLIB"
3383 cat >conftest.$ac_ext <<_ACEOF
3384 `cat $LEX_OUTPUT_ROOT.c`
3385 _ACEOF
3386 rm -f conftest.$ac_objext conftest$ac_exeext
3387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3388   (eval $ac_link) 2>&5
3389   ac_status=$?
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); } &&
3392          { ac_try='test -s conftest$ac_exeext'
3393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394   (eval $ac_try) 2>&5
3395   ac_status=$?
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); }; }; then
3398   ac_cv_prog_lex_yytext_pointer=yes
3399 else
3400   echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3402
3403 fi
3404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3405 LIBS=$ac_save_LIBS
3406 rm -f "${LEX_OUTPUT_ROOT}.c"
3407
3408 fi
3409 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3410 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3411 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3412
3413 cat >>confdefs.h <<\_ACEOF
3414 #define YYTEXT_POINTER 1
3415 _ACEOF
3416
3417 fi
3418
3419 fi
3420
3421 fi
3422 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3423 echo "${ECHO_T}$ac_cv_has_flex" >&6
3424 if test "$LEX" != "flex"; then
3425   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3426 echo "$as_me: error: flex not found but required" >&2;}
3427    { (exit 1); exit 1; }; }
3428 fi
3429
3430 echo "$as_me:$LINENO: checking " >&5
3431 echo $ECHO_N "checking ... $ECHO_C" >&6
3432 if test "${ac_cv_has_bison+set}" = set; then
3433   echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435   for ac_prog in 'bison -y' byacc
3436 do
3437   # Extract the first word of "$ac_prog", so it can be a program name with args.
3438 set dummy $ac_prog; ac_word=$2
3439 echo "$as_me:$LINENO: checking for $ac_word" >&5
3440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3441 if test "${ac_cv_prog_YACC+set}" = set; then
3442   echo $ECHO_N "(cached) $ECHO_C" >&6
3443 else
3444   if test -n "$YACC"; then
3445   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3446 else
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3449 do
3450   IFS=$as_save_IFS
3451   test -z "$as_dir" && as_dir=.
3452   for ac_exec_ext in '' $ac_executable_extensions; do
3453   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454     ac_cv_prog_YACC="$ac_prog"
3455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456     break 2
3457   fi
3458 done
3459 done
3460
3461 fi
3462 fi
3463 YACC=$ac_cv_prog_YACC
3464 if test -n "$YACC"; then
3465   echo "$as_me:$LINENO: result: $YACC" >&5
3466 echo "${ECHO_T}$YACC" >&6
3467 else
3468   echo "$as_me:$LINENO: result: no" >&5
3469 echo "${ECHO_T}no" >&6
3470 fi
3471
3472   test -n "$YACC" && break
3473 done
3474 test -n "$YACC" || YACC="yacc"
3475
3476
3477 fi
3478 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3479 echo "${ECHO_T}$ac_cv_has_bison" >&6
3480 if test "$YACC" != "bison -y"; then
3481   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3482 echo "$as_me: error: bison not found but required" >&2;}
3483    { (exit 1); exit 1; }; }
3484 else
3485   BISON=bison
3486
3487 fi
3488
3489 # Check whether --enable-shared or --disable-shared was given.
3490 if test "${enable_shared+set}" = set; then
3491   enableval="$enable_shared"
3492   p=${PACKAGE-default}
3493     case $enableval in
3494     yes) enable_shared=yes ;;
3495     no) enable_shared=no ;;
3496     *)
3497       enable_shared=no
3498       # Look at the argument we got.  We use all the common list separators.
3499       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3500       for pkg in $enableval; do
3501         IFS="$lt_save_ifs"
3502         if test "X$pkg" = "X$p"; then
3503           enable_shared=yes
3504         fi
3505       done
3506       IFS="$lt_save_ifs"
3507       ;;
3508     esac
3509 else
3510   enable_shared=yes
3511 fi;
3512
3513 # Check whether --enable-static or --disable-static was given.
3514 if test "${enable_static+set}" = set; then
3515   enableval="$enable_static"
3516   p=${PACKAGE-default}
3517     case $enableval in
3518     yes) enable_static=yes ;;
3519     no) enable_static=no ;;
3520     *)
3521      enable_static=no
3522       # Look at the argument we got.  We use all the common list separators.
3523       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3524       for pkg in $enableval; do
3525         IFS="$lt_save_ifs"
3526         if test "X$pkg" = "X$p"; then
3527           enable_static=yes
3528         fi
3529       done
3530       IFS="$lt_save_ifs"
3531       ;;
3532     esac
3533 else
3534   enable_static=yes
3535 fi;
3536
3537 # Check whether --enable-fast-install or --disable-fast-install was given.
3538 if test "${enable_fast_install+set}" = set; then
3539   enableval="$enable_fast_install"
3540   p=${PACKAGE-default}
3541     case $enableval in
3542     yes) enable_fast_install=yes ;;
3543     no) enable_fast_install=no ;;
3544     *)
3545       enable_fast_install=no
3546       # Look at the argument we got.  We use all the common list separators.
3547       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3548       for pkg in $enableval; do
3549         IFS="$lt_save_ifs"
3550         if test "X$pkg" = "X$p"; then
3551           enable_fast_install=yes
3552         fi
3553       done
3554       IFS="$lt_save_ifs"
3555       ;;
3556     esac
3557 else
3558   enable_fast_install=yes
3559 fi;
3560
3561 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3562 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3563 if test "${lt_cv_path_SED+set}" = set; then
3564   echo $ECHO_N "(cached) $ECHO_C" >&6
3565 else
3566   # Loop through the user's path and test for sed and gsed.
3567 # Then use that list of sed's as ones to test for truncation.
3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569 for as_dir in $PATH
3570 do
3571   IFS=$as_save_IFS
3572   test -z "$as_dir" && as_dir=.
3573   for lt_ac_prog in sed gsed; do
3574     for ac_exec_ext in '' $ac_executable_extensions; do
3575       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3576         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3577       fi
3578     done
3579   done
3580 done
3581 lt_ac_max=0
3582 lt_ac_count=0
3583 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3584 # along with /bin/sed that truncates output.
3585 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3586   test ! -f $lt_ac_sed && break
3587   cat /dev/null > conftest.in
3588   lt_ac_count=0
3589   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3590   # Check for GNU sed and select it if it is found.
3591   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3592     lt_cv_path_SED=$lt_ac_sed
3593     break
3594   fi
3595   while true; do
3596     cat conftest.in conftest.in >conftest.tmp
3597     mv conftest.tmp conftest.in
3598     cp conftest.in conftest.nl
3599     echo >>conftest.nl
3600     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3601     cmp -s conftest.out conftest.nl || break
3602     # 10000 chars as input seems more than enough
3603     test $lt_ac_count -gt 10 && break
3604     lt_ac_count=`expr $lt_ac_count + 1`
3605     if test $lt_ac_count -gt $lt_ac_max; then
3606       lt_ac_max=$lt_ac_count
3607       lt_cv_path_SED=$lt_ac_sed
3608     fi
3609   done
3610 done
3611 SED=$lt_cv_path_SED
3612
3613 fi
3614
3615 echo "$as_me:$LINENO: result: $SED" >&5
3616 echo "${ECHO_T}$SED" >&6
3617
3618 echo "$as_me:$LINENO: checking for egrep" >&5
3619 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3620 if test "${ac_cv_prog_egrep+set}" = set; then
3621   echo $ECHO_N "(cached) $ECHO_C" >&6
3622 else
3623   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3624     then ac_cv_prog_egrep='grep -E'
3625     else ac_cv_prog_egrep='egrep'
3626     fi
3627 fi
3628 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3629 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3630  EGREP=$ac_cv_prog_egrep
3631
3632
3633
3634 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3635 if test "${with_gnu_ld+set}" = set; then
3636   withval="$with_gnu_ld"
3637   test "$withval" = no || with_gnu_ld=yes
3638 else
3639   with_gnu_ld=no
3640 fi;
3641 ac_prog=ld
3642 if test "$GCC" = yes; then
3643   # Check if gcc -print-prog-name=ld gives a path.
3644   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3645 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3646   case $host in
3647   *-*-mingw*)
3648     # gcc leaves a trailing carriage return which upsets mingw
3649     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3650   *)
3651     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3652   esac
3653   case $ac_prog in
3654     # Accept absolute paths.
3655     [\\/]* | ?:[\\/]*)
3656       re_direlt='/[^/][^/]*/\.\./'
3657       # Canonicalize the path of ld
3658       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3659       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3660         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3661       done
3662       test -z "$LD" && LD="$ac_prog"
3663       ;;
3664   "")
3665     # If it fails, then pretend we aren't using GCC.
3666     ac_prog=ld
3667     ;;
3668   *)
3669     # If it is relative, then search for the first ld in PATH.
3670     with_gnu_ld=unknown
3671     ;;
3672   esac
3673 elif test "$with_gnu_ld" = yes; then
3674   echo "$as_me:$LINENO: checking for GNU ld" >&5
3675 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3676 else
3677   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3678 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3679 fi
3680 if test "${lt_cv_path_LD+set}" = set; then
3681   echo $ECHO_N "(cached) $ECHO_C" >&6
3682 else
3683   if test -z "$LD"; then
3684   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3685   for ac_dir in $PATH; do
3686     IFS="$lt_save_ifs"
3687     test -z "$ac_dir" && ac_dir=.
3688     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3689       lt_cv_path_LD="$ac_dir/$ac_prog"
3690       # Check to see if the program is GNU ld.  I'd rather use --version,
3691       # but apparently some GNU ld's only accept -v.
3692       # Break only if it was the GNU/non-GNU ld that we prefer.
3693       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3694       *GNU* | *'with BFD'*)
3695         test "$with_gnu_ld" != no && break
3696         ;;
3697       *)
3698         test "$with_gnu_ld" != yes && break
3699         ;;
3700       esac
3701     fi
3702   done
3703   IFS="$lt_save_ifs"
3704 else
3705   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3706 fi
3707 fi
3708
3709 LD="$lt_cv_path_LD"
3710 if test -n "$LD"; then
3711   echo "$as_me:$LINENO: result: $LD" >&5
3712 echo "${ECHO_T}$LD" >&6
3713 else
3714   echo "$as_me:$LINENO: result: no" >&5
3715 echo "${ECHO_T}no" >&6
3716 fi
3717 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3718 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3719    { (exit 1); exit 1; }; }
3720 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3721 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3722 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3723   echo $ECHO_N "(cached) $ECHO_C" >&6
3724 else
3725   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3726 case `"$LD" -v 2>&1 </dev/null` in
3727 *GNU* | *'with BFD'*)
3728   lt_cv_prog_gnu_ld=yes
3729   ;;
3730 *)
3731   lt_cv_prog_gnu_ld=no
3732   ;;
3733 esac
3734 fi
3735 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3736 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3737 with_gnu_ld=$lt_cv_prog_gnu_ld
3738
3739
3740 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3741 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3742 if test "${lt_cv_ld_reload_flag+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   lt_cv_ld_reload_flag='-r'
3746 fi
3747 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3748 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3749 reload_flag=$lt_cv_ld_reload_flag
3750 case $reload_flag in
3751 "" | " "*) ;;
3752 *) reload_flag=" $reload_flag" ;;
3753 esac
3754 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3755
3756 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3757 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3758 if test "${lt_cv_path_NM+set}" = set; then
3759   echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761   if test -n "$NM"; then
3762   # Let the user override the test.
3763   lt_cv_path_NM="$NM"
3764 else
3765   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3766   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3767     IFS="$lt_save_ifs"
3768     test -z "$ac_dir" && ac_dir=.
3769     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3770     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3771       # Check to see if the nm accepts a BSD-compat flag.
3772       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3773       #   nm: unknown option "B" ignored
3774       # Tru64's nm complains that /dev/null is an invalid object file
3775       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3776       */dev/null* | *'Invalid file or object type'*)
3777         lt_cv_path_NM="$tmp_nm -B"
3778         break
3779         ;;
3780       *)
3781         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3782         */dev/null*)
3783           lt_cv_path_NM="$tmp_nm -p"
3784           break
3785           ;;
3786         *)
3787           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3788           continue # so that we can try to find one that supports BSD flags
3789           ;;
3790         esac
3791       esac
3792     fi
3793   done
3794   IFS="$lt_save_ifs"
3795   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3796 fi
3797 fi
3798 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3799 echo "${ECHO_T}$lt_cv_path_NM" >&6
3800 NM="$lt_cv_path_NM"
3801
3802 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3803 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3804 LN_S=$as_ln_s
3805 if test "$LN_S" = "ln -s"; then
3806   echo "$as_me:$LINENO: result: yes" >&5
3807 echo "${ECHO_T}yes" >&6
3808 else
3809   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3810 echo "${ECHO_T}no, using $LN_S" >&6
3811 fi
3812
3813 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3814 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3815 if test "${lt_cv_deplibs_check_method+set}" = set; then
3816   echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818   lt_cv_file_magic_cmd='$MAGIC_CMD'
3819 lt_cv_file_magic_test_file=
3820 lt_cv_deplibs_check_method='unknown'
3821 # Need to set the preceding variable on all platforms that support
3822 # interlibrary dependencies.
3823 # 'none' -- dependencies not supported.
3824 # `unknown' -- same as none, but documents that we really don't know.
3825 # 'pass_all' -- all dependencies passed with no checks.
3826 # 'test_compile' -- check by making test program.
3827 # 'file_magic [[regex]]' -- check by looking for files in library path
3828 # which responds to the $file_magic_cmd with a given extended regex.
3829 # If you have `file' or equivalent on your system and you're not sure
3830 # whether `pass_all' will *always* work, you probably want this one.
3831
3832 case $host_os in
3833 aix4* | aix5*)
3834   lt_cv_deplibs_check_method=pass_all
3835   ;;
3836
3837 beos*)
3838   lt_cv_deplibs_check_method=pass_all
3839   ;;
3840
3841 bsdi4*)
3842   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3843   lt_cv_file_magic_cmd='/usr/bin/file -L'
3844   lt_cv_file_magic_test_file=/shlib/libc.so
3845   ;;
3846
3847 cygwin* | mingw* | pw32*)
3848   # win32_libid is a shell function defined in ltmain.sh
3849   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3850   lt_cv_file_magic_cmd='win32_libid'
3851   ;;
3852
3853 darwin* | rhapsody*)
3854   # this will be overwritten by pass_all, but leave it in just in case
3855   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3856   lt_cv_file_magic_cmd='/usr/bin/file -L'
3857   case "$host_os" in
3858   rhapsody* | darwin1.[012])
3859     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3860     ;;
3861   *) # Darwin 1.3 on
3862     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3863     ;;
3864   esac
3865   lt_cv_deplibs_check_method=pass_all
3866   ;;
3867
3868 freebsd*)
3869   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3870     case $host_cpu in
3871     i*86 )
3872       # Not sure whether the presence of OpenBSD here was a mistake.
3873       # Let's accept both of them until this is cleared up.
3874       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3875       lt_cv_file_magic_cmd=/usr/bin/file
3876       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3877       ;;
3878     esac
3879   else
3880     lt_cv_deplibs_check_method=pass_all
3881   fi
3882   ;;
3883
3884 gnu*)
3885   lt_cv_deplibs_check_method=pass_all
3886   ;;
3887
3888 hpux10.20* | hpux11*)
3889   lt_cv_file_magic_cmd=/usr/bin/file
3890   case "$host_cpu" in
3891   ia64*)
3892     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3893     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3894     ;;
3895   hppa*64*)
3896     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]'
3897     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3898     ;;
3899   *)
3900     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3901     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3902     ;;
3903   esac
3904   ;;
3905
3906 irix5* | irix6* | nonstopux*)
3907   case $host_os in
3908   irix5* | nonstopux*)
3909     # this will be overridden with pass_all, but let us keep it just in case
3910     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3911     ;;
3912   *)
3913     case $LD in
3914     *-32|*"-32 ") libmagic=32-bit;;
3915     *-n32|*"-n32 ") libmagic=N32;;
3916     *-64|*"-64 ") libmagic=64-bit;;
3917     *) libmagic=never-match;;
3918     esac
3919     # this will be overridden with pass_all, but let us keep it just in case
3920     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3921     ;;
3922   esac
3923   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3924   lt_cv_deplibs_check_method=pass_all
3925   ;;
3926
3927 # This must be Linux ELF.
3928 linux*)
3929   case $host_cpu in
3930   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3931     lt_cv_deplibs_check_method=pass_all ;;
3932   *)
3933     # glibc up to 2.1.1 does not perform some relocations on ARM
3934     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3935   esac
3936   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3937   ;;
3938
3939 netbsd*)
3940   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3941     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3942   else
3943     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3944   fi
3945   ;;
3946
3947 newos6*)
3948   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3949   lt_cv_file_magic_cmd=/usr/bin/file
3950   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3951   ;;
3952
3953 nto-qnx)
3954   lt_cv_deplibs_check_method=unknown
3955   ;;
3956
3957 openbsd*)
3958   lt_cv_file_magic_cmd=/usr/bin/file
3959   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3960   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3961     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3962   else
3963     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3964   fi
3965   ;;
3966
3967 osf3* | osf4* | osf5*)
3968   # this will be overridden with pass_all, but let us keep it just in case
3969   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3970   lt_cv_file_magic_test_file=/shlib/libc.so
3971   lt_cv_deplibs_check_method=pass_all
3972   ;;
3973
3974 sco3.2v5*)
3975   lt_cv_deplibs_check_method=pass_all
3976   ;;
3977
3978 solaris*)
3979   lt_cv_deplibs_check_method=pass_all
3980   lt_cv_file_magic_test_file=/lib/libc.so
3981   ;;
3982
3983 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3984   case $host_vendor in
3985   motorola)
3986     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]'
3987     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3988     ;;
3989   ncr)
3990     lt_cv_deplibs_check_method=pass_all
3991     ;;
3992   sequent)
3993     lt_cv_file_magic_cmd='/bin/file'
3994     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3995     ;;
3996   sni)
3997     lt_cv_file_magic_cmd='/bin/file'
3998     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3999     lt_cv_file_magic_test_file=/lib/libc.so
4000     ;;
4001   siemens)
4002     lt_cv_deplibs_check_method=pass_all
4003     ;;
4004   esac
4005   ;;
4006
4007 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4008   lt_cv_deplibs_check_method=pass_all
4009   ;;
4010 esac
4011
4012 fi
4013 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4014 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4015 file_magic_cmd=$lt_cv_file_magic_cmd
4016 deplibs_check_method=$lt_cv_deplibs_check_method
4017 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4018
4019
4020
4021
4022 # If no C compiler was specified, use CC.
4023 LTCC=${LTCC-"$CC"}
4024
4025 # Allow CC to be a program name with arguments.
4026 compiler=$CC
4027
4028 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4029 if test "${enable_libtool_lock+set}" = set; then
4030   enableval="$enable_libtool_lock"
4031
4032 fi;
4033 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4034
4035 # Some flags need to be propagated to the compiler or linker for good
4036 # libtool support.
4037 case $host in
4038 ia64-*-hpux*)
4039   # Find out which ABI we are using.
4040   echo 'int i;' > conftest.$ac_ext
4041   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4042   (eval $ac_compile) 2>&5
4043   ac_status=$?
4044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045   (exit $ac_status); }; then
4046     case `/usr/bin/file conftest.$ac_objext` in
4047     *ELF-32*)
4048       HPUX_IA64_MODE="32"
4049       ;;
4050     *ELF-64*)
4051       HPUX_IA64_MODE="64"
4052       ;;
4053     esac
4054   fi
4055   rm -rf conftest*
4056   ;;
4057 *-*-irix6*)
4058   # Find out which ABI we are using.
4059   echo '#line 4059 "configure"' > conftest.$ac_ext
4060   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061   (eval $ac_compile) 2>&5
4062   ac_status=$?
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); }; then
4065    if test "$lt_cv_prog_gnu_ld" = yes; then
4066     case `/usr/bin/file conftest.$ac_objext` in
4067     *32-bit*)
4068       LD="${LD-ld} -melf32bsmip"
4069       ;;
4070     *N32*)
4071       LD="${LD-ld} -melf32bmipn32"
4072       ;;
4073     *64-bit*)
4074       LD="${LD-ld} -melf64bmip"
4075       ;;
4076     esac
4077    else
4078     case `/usr/bin/file conftest.$ac_objext` in
4079     *32-bit*)
4080       LD="${LD-ld} -32"
4081       ;;
4082     *N32*)
4083       LD="${LD-ld} -n32"
4084       ;;
4085     *64-bit*)
4086       LD="${LD-ld} -64"
4087       ;;
4088     esac
4089    fi
4090   fi
4091   rm -rf conftest*
4092   ;;
4093
4094 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4095   # Find out which ABI we are using.
4096   echo 'int i;' > conftest.$ac_ext
4097   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4098   (eval $ac_compile) 2>&5
4099   ac_status=$?
4100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101   (exit $ac_status); }; then
4102     case "`/usr/bin/file conftest.o`" in
4103     *32-bit*)
4104       case $host in
4105         x86_64-*linux*)
4106           LD="${LD-ld} -m elf_i386"
4107           ;;
4108         ppc64-*linux*)
4109           LD="${LD-ld} -m elf32ppclinux"
4110           ;;
4111         s390x-*linux*)
4112           LD="${LD-ld} -m elf_s390"
4113           ;;
4114         sparc64-*linux*)
4115           LD="${LD-ld} -m elf32_sparc"
4116           ;;
4117       esac
4118       ;;
4119     *64-bit*)
4120       case $host in
4121         x86_64-*linux*)
4122           LD="${LD-ld} -m elf_x86_64"
4123           ;;
4124         ppc*-*linux*|powerpc*-*linux*)
4125           LD="${LD-ld} -m elf64ppc"
4126           ;;
4127         s390*-*linux*)
4128           LD="${LD-ld} -m elf64_s390"
4129           ;;
4130         sparc*-*linux*)
4131           LD="${LD-ld} -m elf64_sparc"
4132           ;;
4133       esac
4134       ;;
4135     esac
4136   fi
4137   rm -rf conftest*
4138   ;;
4139
4140 *-*-sco3.2v5*)
4141   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4142   SAVE_CFLAGS="$CFLAGS"
4143   CFLAGS="$CFLAGS -belf"
4144   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4145 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4146 if test "${lt_cv_cc_needs_belf+set}" = set; then
4147   echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149   ac_ext=c
4150 ac_cpp='$CPP $CPPFLAGS'
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154
4155      cat >conftest.$ac_ext <<_ACEOF
4156 #line $LINENO "configure"
4157 /* confdefs.h.  */
4158 _ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h.  */
4162
4163 int
4164 main ()
4165 {
4166
4167   ;
4168   return 0;
4169 }
4170 _ACEOF
4171 rm -f conftest.$ac_objext conftest$ac_exeext
4172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4173   (eval $ac_link) 2>&5
4174   ac_status=$?
4175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176   (exit $ac_status); } &&
4177          { ac_try='test -s conftest$ac_exeext'
4178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179   (eval $ac_try) 2>&5
4180   ac_status=$?
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); }; }; then
4183   lt_cv_cc_needs_belf=yes
4184 else
4185   echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4187
4188 lt_cv_cc_needs_belf=no
4189 fi
4190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4191      ac_ext=c
4192 ac_cpp='$CPP $CPPFLAGS'
4193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196
4197 fi
4198 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4199 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4200   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4201     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4202     CFLAGS="$SAVE_CFLAGS"
4203   fi
4204   ;;
4205
4206 esac
4207
4208 need_locks="$enable_libtool_lock"
4209
4210
4211
4212 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4213 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4214 if test "${ac_cv_header_stdc+set}" = set; then
4215   echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217   cat >conftest.$ac_ext <<_ACEOF
4218 #line $LINENO "configure"
4219 /* confdefs.h.  */
4220 _ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h.  */
4224 #include <stdlib.h>
4225 #include <stdarg.h>
4226 #include <string.h>
4227 #include <float.h>
4228
4229 int
4230 main ()
4231 {
4232
4233   ;
4234   return 0;
4235 }
4236 _ACEOF
4237 rm -f conftest.$ac_objext
4238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4239   (eval $ac_compile) 2>&5
4240   ac_status=$?
4241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242   (exit $ac_status); } &&
4243          { ac_try='test -s conftest.$ac_objext'
4244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245   (eval $ac_try) 2>&5
4246   ac_status=$?
4247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248   (exit $ac_status); }; }; then
4249   ac_cv_header_stdc=yes
4250 else
4251   echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4253
4254 ac_cv_header_stdc=no
4255 fi
4256 rm -f conftest.$ac_objext conftest.$ac_ext
4257
4258 if test $ac_cv_header_stdc = yes; then
4259   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4260   cat >conftest.$ac_ext <<_ACEOF
4261 #line $LINENO "configure"
4262 /* confdefs.h.  */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h.  */
4267 #include <string.h>
4268
4269 _ACEOF
4270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4271   $EGREP "memchr" >/dev/null 2>&1; then
4272   :
4273 else
4274   ac_cv_header_stdc=no
4275 fi
4276 rm -f conftest*
4277
4278 fi
4279
4280 if test $ac_cv_header_stdc = yes; then
4281   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4282   cat >conftest.$ac_ext <<_ACEOF
4283 #line $LINENO "configure"
4284 /* confdefs.h.  */
4285 _ACEOF
4286 cat confdefs.h >>conftest.$ac_ext
4287 cat >>conftest.$ac_ext <<_ACEOF
4288 /* end confdefs.h.  */
4289 #include <stdlib.h>
4290
4291 _ACEOF
4292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4293   $EGREP "free" >/dev/null 2>&1; then
4294   :
4295 else
4296   ac_cv_header_stdc=no
4297 fi
4298 rm -f conftest*
4299
4300 fi
4301
4302 if test $ac_cv_header_stdc = yes; then
4303   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4304   if test "$cross_compiling" = yes; then
4305   :
4306 else
4307   cat >conftest.$ac_ext <<_ACEOF
4308 #line $LINENO "configure"
4309 /* confdefs.h.  */
4310 _ACEOF
4311 cat confdefs.h >>conftest.$ac_ext
4312 cat >>conftest.$ac_ext <<_ACEOF
4313 /* end confdefs.h.  */
4314 #include <ctype.h>
4315 #if ((' ' & 0x0FF) == 0x020)
4316 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4317 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4318 #else
4319 # define ISLOWER(c) \
4320                    (('a' <= (c) && (c) <= 'i') \
4321                      || ('j' <= (c) && (c) <= 'r') \
4322                      || ('s' <= (c) && (c) <= 'z'))
4323 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4324 #endif
4325
4326 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4327 int
4328 main ()
4329 {
4330   int i;
4331   for (i = 0; i < 256; i++)
4332     if (XOR (islower (i), ISLOWER (i))
4333         || toupper (i) != TOUPPER (i))
4334       exit(2);
4335   exit (0);
4336 }
4337 _ACEOF
4338 rm -f conftest$ac_exeext
4339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4340   (eval $ac_link) 2>&5
4341   ac_status=$?
4342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345   (eval $ac_try) 2>&5
4346   ac_status=$?
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); }; }; then
4349   :
4350 else
4351   echo "$as_me: program exited with status $ac_status" >&5
4352 echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4354
4355 ( exit $ac_status )
4356 ac_cv_header_stdc=no
4357 fi
4358 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4359 fi
4360 fi
4361 fi
4362 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4363 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4364 if test $ac_cv_header_stdc = yes; then
4365
4366 cat >>confdefs.h <<\_ACEOF
4367 #define STDC_HEADERS 1
4368 _ACEOF
4369
4370 fi
4371
4372 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4383                   inttypes.h stdint.h unistd.h
4384 do
4385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4386 echo "$as_me:$LINENO: checking for $ac_header" >&5
4387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4389   echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391   cat >conftest.$ac_ext <<_ACEOF
4392 #line $LINENO "configure"
4393 /* confdefs.h.  */
4394 _ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h.  */
4398 $ac_includes_default
4399
4400 #include <$ac_header>
4401 _ACEOF
4402 rm -f conftest.$ac_objext
4403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4404   (eval $ac_compile) 2>&5
4405   ac_status=$?
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); } &&
4408          { ac_try='test -s conftest.$ac_objext'
4409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410   (eval $ac_try) 2>&5
4411   ac_status=$?
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); }; }; then
4414   eval "$as_ac_Header=yes"
4415 else
4416   echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4418
4419 eval "$as_ac_Header=no"
4420 fi
4421 rm -f conftest.$ac_objext conftest.$ac_ext
4422 fi
4423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4426   cat >>confdefs.h <<_ACEOF
4427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4428 _ACEOF
4429
4430 fi
4431
4432 done
4433
4434
4435
4436 for ac_header in dlfcn.h
4437 do
4438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4440   echo "$as_me:$LINENO: checking for $ac_header" >&5
4441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4443   echo $ECHO_N "(cached) $ECHO_C" >&6
4444 fi
4445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4447 else
4448   # Is the header compilable?
4449 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4451 cat >conftest.$ac_ext <<_ACEOF
4452 #line $LINENO "configure"
4453 /* confdefs.h.  */
4454 _ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h.  */
4458 $ac_includes_default
4459 #include <$ac_header>
4460 _ACEOF
4461 rm -f conftest.$ac_objext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463   (eval $ac_compile) 2>&5
4464   ac_status=$?
4465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466   (exit $ac_status); } &&
4467          { ac_try='test -s conftest.$ac_objext'
4468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469   (eval $ac_try) 2>&5
4470   ac_status=$?
4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472   (exit $ac_status); }; }; then
4473   ac_header_compiler=yes
4474 else
4475   echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478 ac_header_compiler=no
4479 fi
4480 rm -f conftest.$ac_objext conftest.$ac_ext
4481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4482 echo "${ECHO_T}$ac_header_compiler" >&6
4483
4484 # Is the header present?
4485 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4487 cat >conftest.$ac_ext <<_ACEOF
4488 #line $LINENO "configure"
4489 /* confdefs.h.  */
4490 _ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h.  */
4494 #include <$ac_header>
4495 _ACEOF
4496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4497   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4498   ac_status=$?
4499   grep -v '^ *+' conftest.er1 >conftest.err
4500   rm -f conftest.er1
4501   cat conftest.err >&5
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); } >/dev/null; then
4504   if test -s conftest.err; then
4505     ac_cpp_err=$ac_c_preproc_warn_flag
4506   else
4507     ac_cpp_err=
4508   fi
4509 else
4510   ac_cpp_err=yes
4511 fi
4512 if test -z "$ac_cpp_err"; then
4513   ac_header_preproc=yes
4514 else
4515   echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4517
4518   ac_header_preproc=no
4519 fi
4520 rm -f conftest.err conftest.$ac_ext
4521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4522 echo "${ECHO_T}$ac_header_preproc" >&6
4523
4524 # So?  What about this header?
4525 case $ac_header_compiler:$ac_header_preproc in
4526   yes:no )
4527     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4531     (
4532       cat <<\_ASBOX
4533 ## ------------------------------------ ##
4534 ## Report this to bug-autoconf@gnu.org. ##
4535 ## ------------------------------------ ##
4536 _ASBOX
4537     ) |
4538       sed "s/^/$as_me: WARNING:     /" >&2
4539     ;;
4540   no:yes )
4541     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4543     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4545     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4547     (
4548       cat <<\_ASBOX
4549 ## ------------------------------------ ##
4550 ## Report this to bug-autoconf@gnu.org. ##
4551 ## ------------------------------------ ##
4552 _ASBOX
4553     ) |
4554       sed "s/^/$as_me: WARNING:     /" >&2
4555     ;;
4556 esac
4557 echo "$as_me:$LINENO: checking for $ac_header" >&5
4558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4560   echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562   eval "$as_ac_Header=$ac_header_preproc"
4563 fi
4564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4566
4567 fi
4568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4569   cat >>confdefs.h <<_ACEOF
4570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4571 _ACEOF
4572
4573 fi
4574
4575 done
4576
4577 ac_ext=cc
4578 ac_cpp='$CXXCPP $CPPFLAGS'
4579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4582 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4583 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4584 if test -z "$CXXCPP"; then
4585   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4586   echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588       # Double quotes because CXXCPP needs to be expanded
4589     for CXXCPP in "$CXX -E" "/lib/cpp"
4590     do
4591       ac_preproc_ok=false
4592 for ac_cxx_preproc_warn_flag in '' yes
4593 do
4594   # Use a header file that comes with gcc, so configuring glibc
4595   # with a fresh cross-compiler works.
4596   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4597   # <limits.h> exists even on freestanding compilers.
4598   # On the NeXT, cc -E runs the code through the compiler's parser,
4599   # not just through cpp. "Syntax error" is here to catch this case.
4600   cat >conftest.$ac_ext <<_ACEOF
4601 #line $LINENO "configure"
4602 /* confdefs.h.  */
4603 _ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h.  */
4607 #ifdef __STDC__
4608 # include <limits.h>
4609 #else
4610 # include <assert.h>
4611 #endif
4612                      Syntax error
4613 _ACEOF
4614 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4615   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4616   ac_status=$?
4617   grep -v '^ *+' conftest.er1 >conftest.err
4618   rm -f conftest.er1
4619   cat conftest.err >&5
4620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621   (exit $ac_status); } >/dev/null; then
4622   if test -s conftest.err; then
4623     ac_cpp_err=$ac_cxx_preproc_warn_flag
4624   else
4625     ac_cpp_err=
4626   fi
4627 else
4628   ac_cpp_err=yes
4629 fi
4630 if test -z "$ac_cpp_err"; then
4631   :
4632 else
4633   echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4635
4636   # Broken: fails on valid input.
4637 continue
4638 fi
4639 rm -f conftest.err conftest.$ac_ext
4640
4641   # OK, works on sane cases.  Now check whether non-existent headers
4642   # can be detected and how.
4643   cat >conftest.$ac_ext <<_ACEOF
4644 #line $LINENO "configure"
4645 /* confdefs.h.  */
4646 _ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h.  */
4650 #include <ac_nonexistent.h>
4651 _ACEOF
4652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4653   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
4660   if test -s conftest.err; then
4661     ac_cpp_err=$ac_cxx_preproc_warn_flag
4662   else
4663     ac_cpp_err=
4664   fi
4665 else
4666   ac_cpp_err=yes
4667 fi
4668 if test -z "$ac_cpp_err"; then
4669   # Broken: success on invalid input.
4670 continue
4671 else
4672   echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4674
4675   # Passes both tests.
4676 ac_preproc_ok=:
4677 break
4678 fi
4679 rm -f conftest.err conftest.$ac_ext
4680
4681 done
4682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4683 rm -f conftest.err conftest.$ac_ext
4684 if $ac_preproc_ok; then
4685   break
4686 fi
4687
4688     done
4689     ac_cv_prog_CXXCPP=$CXXCPP
4690
4691 fi
4692   CXXCPP=$ac_cv_prog_CXXCPP
4693 else
4694   ac_cv_prog_CXXCPP=$CXXCPP
4695 fi
4696 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4697 echo "${ECHO_T}$CXXCPP" >&6
4698 ac_preproc_ok=false
4699 for ac_cxx_preproc_warn_flag in '' yes
4700 do
4701   # Use a header file that comes with gcc, so configuring glibc
4702   # with a fresh cross-compiler works.
4703   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4704   # <limits.h> exists even on freestanding compilers.
4705   # On the NeXT, cc -E runs the code through the compiler's parser,
4706   # not just through cpp. "Syntax error" is here to catch this case.
4707   cat >conftest.$ac_ext <<_ACEOF
4708 #line $LINENO "configure"
4709 /* confdefs.h.  */
4710 _ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h.  */
4714 #ifdef __STDC__
4715 # include <limits.h>
4716 #else
4717 # include <assert.h>
4718 #endif
4719                      Syntax error
4720 _ACEOF
4721 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4722   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4723   ac_status=$?
4724   grep -v '^ *+' conftest.er1 >conftest.err
4725   rm -f conftest.er1
4726   cat conftest.err >&5
4727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728   (exit $ac_status); } >/dev/null; then
4729   if test -s conftest.err; then
4730     ac_cpp_err=$ac_cxx_preproc_warn_flag
4731   else
4732     ac_cpp_err=
4733   fi
4734 else
4735   ac_cpp_err=yes
4736 fi
4737 if test -z "$ac_cpp_err"; then
4738   :
4739 else
4740   echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4742
4743   # Broken: fails on valid input.
4744 continue
4745 fi
4746 rm -f conftest.err conftest.$ac_ext
4747
4748   # OK, works on sane cases.  Now check whether non-existent headers
4749   # can be detected and how.
4750   cat >conftest.$ac_ext <<_ACEOF
4751 #line $LINENO "configure"
4752 /* confdefs.h.  */
4753 _ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h.  */
4757 #include <ac_nonexistent.h>
4758 _ACEOF
4759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4760   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4761   ac_status=$?
4762   grep -v '^ *+' conftest.er1 >conftest.err
4763   rm -f conftest.er1
4764   cat conftest.err >&5
4765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); } >/dev/null; then
4767   if test -s conftest.err; then
4768     ac_cpp_err=$ac_cxx_preproc_warn_flag
4769   else
4770     ac_cpp_err=
4771   fi
4772 else
4773   ac_cpp_err=yes
4774 fi
4775 if test -z "$ac_cpp_err"; then
4776   # Broken: success on invalid input.
4777 continue
4778 else
4779   echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4781
4782   # Passes both tests.
4783 ac_preproc_ok=:
4784 break
4785 fi
4786 rm -f conftest.err conftest.$ac_ext
4787
4788 done
4789 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4790 rm -f conftest.err conftest.$ac_ext
4791 if $ac_preproc_ok; then
4792   :
4793 else
4794   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4795 See \`config.log' for more details." >&5
4796 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4797 See \`config.log' for more details." >&2;}
4798    { (exit 1); exit 1; }; }
4799 fi
4800
4801 ac_ext=cc
4802 ac_cpp='$CXXCPP $CPPFLAGS'
4803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4806
4807
4808 ac_ext=f
4809 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4810 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4811 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4812 if test -n "$ac_tool_prefix"; then
4813   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4814   do
4815     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4817 echo "$as_me:$LINENO: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4819 if test "${ac_cv_prog_F77+set}" = set; then
4820   echo $ECHO_N "(cached) $ECHO_C" >&6
4821 else
4822   if test -n "$F77"; then
4823   ac_cv_prog_F77="$F77" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828   IFS=$as_save_IFS
4829   test -z "$as_dir" && as_dir=.
4830   for ac_exec_ext in '' $ac_executable_extensions; do
4831   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834     break 2
4835   fi
4836 done
4837 done
4838
4839 fi
4840 fi
4841 F77=$ac_cv_prog_F77
4842 if test -n "$F77"; then
4843   echo "$as_me:$LINENO: result: $F77" >&5
4844 echo "${ECHO_T}$F77" >&6
4845 else
4846   echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6
4848 fi
4849
4850     test -n "$F77" && break
4851   done
4852 fi
4853 if test -z "$F77"; then
4854   ac_ct_F77=$F77
4855   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4856 do
4857   # Extract the first word of "$ac_prog", so it can be a program name with args.
4858 set dummy $ac_prog; ac_word=$2
4859 echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4861 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4862   echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864   if test -n "$ac_ct_F77"; then
4865   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4866 else
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4869 do
4870   IFS=$as_save_IFS
4871   test -z "$as_dir" && as_dir=.
4872   for ac_exec_ext in '' $ac_executable_extensions; do
4873   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4874     ac_cv_prog_ac_ct_F77="$ac_prog"
4875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4876     break 2
4877   fi
4878 done
4879 done
4880
4881 fi
4882 fi
4883 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4884 if test -n "$ac_ct_F77"; then
4885   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4886 echo "${ECHO_T}$ac_ct_F77" >&6
4887 else
4888   echo "$as_me:$LINENO: result: no" >&5
4889 echo "${ECHO_T}no" >&6
4890 fi
4891
4892   test -n "$ac_ct_F77" && break
4893 done
4894
4895   F77=$ac_ct_F77
4896 fi
4897
4898
4899 # Provide some information about the compiler.
4900 echo "$as_me:4900:" \
4901      "checking for Fortran 77 compiler version" >&5
4902 ac_compiler=`set X $ac_compile; echo $2`
4903 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4904   (eval $ac_compiler --version </dev/null >&5) 2>&5
4905   ac_status=$?
4906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907   (exit $ac_status); }
4908 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4909   (eval $ac_compiler -v </dev/null >&5) 2>&5
4910   ac_status=$?
4911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912   (exit $ac_status); }
4913 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4914   (eval $ac_compiler -V </dev/null >&5) 2>&5
4915   ac_status=$?
4916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917   (exit $ac_status); }
4918
4919 # If we don't use `.F' as extension, the preprocessor is not run on the
4920 # input file.
4921 ac_save_ext=$ac_ext
4922 ac_ext=F
4923 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4924 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4925 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4926   echo $ECHO_N "(cached) $ECHO_C" >&6
4927 else
4928   cat >conftest.$ac_ext <<_ACEOF
4929       program main
4930 #ifndef __GNUC__
4931        choke me
4932 #endif
4933
4934       end
4935 _ACEOF
4936 rm -f conftest.$ac_objext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4938   (eval $ac_compile) 2>&5
4939   ac_status=$?
4940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941   (exit $ac_status); } &&
4942          { ac_try='test -s conftest.$ac_objext'
4943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944   (eval $ac_try) 2>&5
4945   ac_status=$?
4946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947   (exit $ac_status); }; }; then
4948   ac_compiler_gnu=yes
4949 else
4950   echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4952
4953 ac_compiler_gnu=no
4954 fi
4955 rm -f conftest.$ac_objext conftest.$ac_ext
4956 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4957
4958 fi
4959 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4960 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4961 ac_ext=$ac_save_ext
4962 G77=`test $ac_compiler_gnu = yes && echo yes`
4963 ac_test_FFLAGS=${FFLAGS+set}
4964 ac_save_FFLAGS=$FFLAGS
4965 FFLAGS=
4966 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4967 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4968 if test "${ac_cv_prog_f77_g+set}" = set; then
4969   echo $ECHO_N "(cached) $ECHO_C" >&6
4970 else
4971   FFLAGS=-g
4972 cat >conftest.$ac_ext <<_ACEOF
4973       program main
4974
4975       end
4976 _ACEOF
4977 rm -f conftest.$ac_objext
4978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4979   (eval $ac_compile) 2>&5
4980   ac_status=$?
4981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982   (exit $ac_status); } &&
4983          { ac_try='test -s conftest.$ac_objext'
4984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985   (eval $ac_try) 2>&5
4986   ac_status=$?
4987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988   (exit $ac_status); }; }; then
4989   ac_cv_prog_f77_g=yes
4990 else
4991   echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4993
4994 ac_cv_prog_f77_g=no
4995 fi
4996 rm -f conftest.$ac_objext conftest.$ac_ext
4997
4998 fi
4999 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5000 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5001 if test "$ac_test_FFLAGS" = set; then
5002   FFLAGS=$ac_save_FFLAGS
5003 elif test $ac_cv_prog_f77_g = yes; then
5004   if test "$G77" = yes; then
5005     FFLAGS="-g -O2"
5006   else
5007     FFLAGS="-g"
5008   fi
5009 else
5010   if test "$G77" = yes; then
5011     FFLAGS="-O2"
5012   else
5013     FFLAGS=
5014   fi
5015 fi
5016 ac_ext=c
5017 ac_cpp='$CPP $CPPFLAGS'
5018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5021
5022
5023
5024 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5025
5026 # find the maximum length of command line arguments
5027 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5028 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5029 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5030   echo $ECHO_N "(cached) $ECHO_C" >&6
5031 else
5032     i=0
5033   testring="ABCD"
5034
5035   case $build_os in
5036   msdosdjgpp*)
5037     # On DJGPP, this test can blow up pretty badly due to problems in libc
5038     # (any single argument exceeding 2000 bytes causes a buffer overrun
5039     # during glob expansion).  Even if it were fixed, the result of this
5040     # check would be larger than it should be.
5041     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5042     ;;
5043
5044   gnu*)
5045     # Under GNU Hurd, this test is not required because there is
5046     # no limit to the length of command line arguments.
5047     # Libtool will interpret -1 as no limit whatsoever
5048     lt_cv_sys_max_cmd_len=-1;
5049     ;;
5050
5051   cygwin* | mingw*)
5052     # On Win9x/ME, this test blows up -- it succeeds, but takes
5053     # about 5 minutes as the teststring grows exponentially.
5054     # Worse, since 9x/ME are not pre-emptively multitasking,
5055     # you end up with a "frozen" computer, even though with patience
5056     # the test eventually succeeds (with a max line length of 256k).
5057     # Instead, let's just punt: use the minimum linelength reported by
5058     # all of the supported platforms: 8192 (on NT/2K/XP).
5059     lt_cv_sys_max_cmd_len=8192;
5060     ;;
5061
5062  *)
5063     # If test is not a shell built-in, we'll probably end up computing a
5064     # maximum length that is only half of the actual maximum length, but
5065     # we can't tell.
5066     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5067                = "XX$testring") >/dev/null 2>&1 &&
5068             new_result=`expr "X$testring" : ".*" 2>&1` &&
5069             lt_cv_sys_max_cmd_len=$new_result &&
5070             test $i != 17 # 1/2 MB should be enough
5071     do
5072       i=`expr $i + 1`
5073       testring=$testring$testring
5074     done
5075     testring=
5076     # Add a significant safety factor because C++ compilers can tack on massive
5077     # amounts of additional arguments before passing them to the linker.
5078     # It appears as though 1/2 is a usable value.
5079     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5080     ;;
5081   esac
5082
5083 fi
5084
5085 if test -n $lt_cv_sys_max_cmd_len ; then
5086   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5087 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5088 else
5089   echo "$as_me:$LINENO: result: none" >&5
5090 echo "${ECHO_T}none" >&6
5091 fi
5092
5093
5094
5095
5096 # Check for command to grab the raw symbol name followed by C symbol from nm.
5097 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5098 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5099 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5100   echo $ECHO_N "(cached) $ECHO_C" >&6
5101 else
5102
5103 # These are sane defaults that work on at least a few old systems.
5104 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5105
5106 # Character class describing NM global symbol codes.
5107 symcode='[BCDEGRST]'
5108
5109 # Regexp to match symbols that can be accessed directly from C.
5110 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5111
5112 # Transform the above into a raw symbol and a C symbol.
5113 symxfrm='\1 \2\3 \3'
5114
5115 # Transform an extracted symbol line into a proper C declaration
5116 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5117
5118 # Transform an extracted symbol line into symbol name and symbol address
5119 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'"
5120
5121 # Define system-specific variables.
5122 case $host_os in
5123 aix*)
5124   symcode='[BCDT]'
5125   ;;
5126 cygwin* | mingw* | pw32*)
5127   symcode='[ABCDGISTW]'
5128   ;;
5129 hpux*) # Its linker distinguishes data from code symbols
5130   if test "$host_cpu" = ia64; then
5131     symcode='[ABCDEGRST]'
5132   fi
5133   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5134   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'"
5135   ;;
5136 irix* | nonstopux*)
5137   symcode='[BCDEGRST]'
5138   ;;
5139 osf*)
5140   symcode='[BCDEGQRST]'
5141   ;;
5142 solaris* | sysv5*)
5143   symcode='[BDT]'
5144   ;;
5145 sysv4)
5146   symcode='[DFNSTU]'
5147   ;;
5148 esac
5149
5150 # Handle CRLF in mingw tool chain
5151 opt_cr=
5152 case $build_os in
5153 mingw*)
5154   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5155   ;;
5156 esac
5157
5158 # If we're using GNU nm, then use its standard symbol codes.
5159 case `$NM -V 2>&1` in
5160 *GNU* | *'with BFD'*)
5161   symcode='[ABCDGISTW]' ;;
5162 esac
5163
5164 # Try without a prefix undercore, then with it.
5165 for ac_symprfx in "" "_"; do
5166
5167   # Write the raw and C identifiers.
5168   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5169
5170   # Check to see that the pipe works correctly.
5171   pipe_works=no
5172
5173   rm -f conftest*
5174   cat > conftest.$ac_ext <<EOF
5175 #ifdef __cplusplus
5176 extern "C" {
5177 #endif
5178 char nm_test_var;
5179 void nm_test_func(){}
5180 #ifdef __cplusplus
5181 }
5182 #endif
5183 int main(){nm_test_var='a';nm_test_func();return(0);}
5184 EOF
5185
5186   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5187   (eval $ac_compile) 2>&5
5188   ac_status=$?
5189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190   (exit $ac_status); }; then
5191     # Now try to grab the symbols.
5192     nlist=conftest.nm
5193     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5194   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5195   ac_status=$?
5196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197   (exit $ac_status); } && test -s "$nlist"; then
5198       # Try sorting and uniquifying the output.
5199       if sort "$nlist" | uniq > "$nlist"T; then
5200         mv -f "$nlist"T "$nlist"
5201       else
5202         rm -f "$nlist"T
5203       fi
5204
5205       # Make sure that we snagged all the symbols we need.
5206       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5207         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5208           cat <<EOF > conftest.$ac_ext
5209 #ifdef __cplusplus
5210 extern "C" {
5211 #endif
5212
5213 EOF
5214           # Now generate the symbol file.
5215           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5216
5217           cat <<EOF >> conftest.$ac_ext
5218 #if defined (__STDC__) && __STDC__
5219 # define lt_ptr_t void *
5220 #else
5221 # define lt_ptr_t char *
5222 # define const
5223 #endif
5224
5225 /* The mapping between symbol names and symbols. */
5226 const struct {
5227   const char *name;
5228   lt_ptr_t address;
5229 }
5230 lt_preloaded_symbols[] =
5231 {
5232 EOF
5233           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5234           cat <<\EOF >> conftest.$ac_ext
5235   {0, (lt_ptr_t) 0}
5236 };
5237
5238 #ifdef __cplusplus
5239 }
5240 #endif
5241 EOF
5242           # Now try linking the two files.
5243           mv conftest.$ac_objext conftstm.$ac_objext
5244           lt_save_LIBS="$LIBS"
5245           lt_save_CFLAGS="$CFLAGS"
5246           LIBS="conftstm.$ac_objext"
5247           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5248           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5249   (eval $ac_link) 2>&5
5250   ac_status=$?
5251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5253             pipe_works=yes
5254           fi
5255           LIBS="$lt_save_LIBS"
5256           CFLAGS="$lt_save_CFLAGS"
5257         else
5258           echo "cannot find nm_test_func in $nlist" >&5
5259         fi
5260       else
5261         echo "cannot find nm_test_var in $nlist" >&5
5262       fi
5263     else
5264       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5265     fi
5266   else
5267     echo "$progname: failed program was:" >&5
5268     cat conftest.$ac_ext >&5
5269   fi
5270   rm -f conftest* conftst*
5271
5272   # Do not use the global_symbol_pipe unless it works.
5273   if test "$pipe_works" = yes; then
5274     break
5275   else
5276     lt_cv_sys_global_symbol_pipe=
5277   fi
5278 done
5279
5280 fi
5281
5282 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5283   lt_cv_sys_global_symbol_to_cdecl=
5284 fi
5285 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5286   echo "$as_me:$LINENO: result: failed" >&5
5287 echo "${ECHO_T}failed" >&6
5288 else
5289   echo "$as_me:$LINENO: result: ok" >&5
5290 echo "${ECHO_T}ok" >&6
5291 fi
5292
5293 echo "$as_me:$LINENO: checking for objdir" >&5
5294 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5295 if test "${lt_cv_objdir+set}" = set; then
5296   echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298   rm -f .libs 2>/dev/null
5299 mkdir .libs 2>/dev/null
5300 if test -d .libs; then
5301   lt_cv_objdir=.libs
5302 else
5303   # MS-DOS does not allow filenames that begin with a dot.
5304   lt_cv_objdir=_libs
5305 fi
5306 rmdir .libs 2>/dev/null
5307 fi
5308 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5309 echo "${ECHO_T}$lt_cv_objdir" >&6
5310 objdir=$lt_cv_objdir
5311
5312
5313
5314
5315
5316 case $host_os in
5317 aix3*)
5318   # AIX sometimes has problems with the GCC collect2 program.  For some
5319   # reason, if we set the COLLECT_NAMES environment variable, the problems
5320   # vanish in a puff of smoke.
5321   if test "X${COLLECT_NAMES+set}" != Xset; then
5322     COLLECT_NAMES=
5323     export COLLECT_NAMES
5324   fi
5325   ;;
5326 esac
5327
5328 # Sed substitution that helps us do robust quoting.  It backslashifies
5329 # metacharacters that are still active within double-quoted strings.
5330 Xsed='sed -e s/^X//'
5331 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5332
5333 # Same as above, but do not quote variable references.
5334 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5335
5336 # Sed substitution to delay expansion of an escaped shell variable in a
5337 # double_quote_subst'ed string.
5338 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5339
5340 # Sed substitution to avoid accidental globbing in evaled expressions
5341 no_glob_subst='s/\*/\\\*/g'
5342
5343 # Constants:
5344 rm="rm -f"
5345
5346 # Global variables:
5347 default_ofile=mklib
5348 can_build_shared=yes
5349
5350 # All known linkers require a `.a' archive for static linking (except M$VC,
5351 # which needs '.lib').
5352 libext=a
5353 ltmain="$ac_aux_dir/ltmain.sh"
5354 ofile="$default_ofile"
5355 with_gnu_ld="$lt_cv_prog_gnu_ld"
5356
5357 if test -n "$ac_tool_prefix"; then
5358   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5359 set dummy ${ac_tool_prefix}ar; ac_word=$2
5360 echo "$as_me:$LINENO: checking for $ac_word" >&5
5361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5362 if test "${ac_cv_prog_AR+set}" = set; then
5363   echo $ECHO_N "(cached) $ECHO_C" >&6
5364 else
5365   if test -n "$AR"; then
5366   ac_cv_prog_AR="$AR" # Let the user override the test.
5367 else
5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 for as_dir in $PATH
5370 do
5371   IFS=$as_save_IFS
5372   test -z "$as_dir" && as_dir=.
5373   for ac_exec_ext in '' $ac_executable_extensions; do
5374   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5375     ac_cv_prog_AR="${ac_tool_prefix}ar"
5376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5377     break 2
5378   fi
5379 done
5380 done
5381
5382 fi
5383 fi
5384 AR=$ac_cv_prog_AR
5385 if test -n "$AR"; then
5386   echo "$as_me:$LINENO: result: $AR" >&5
5387 echo "${ECHO_T}$AR" >&6
5388 else
5389   echo "$as_me:$LINENO: result: no" >&5
5390 echo "${ECHO_T}no" >&6
5391 fi
5392
5393 fi
5394 if test -z "$ac_cv_prog_AR"; then
5395   ac_ct_AR=$AR
5396   # Extract the first word of "ar", so it can be a program name with args.
5397 set dummy ar; ac_word=$2
5398 echo "$as_me:$LINENO: checking for $ac_word" >&5
5399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5400 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5401   echo $ECHO_N "(cached) $ECHO_C" >&6
5402 else
5403   if test -n "$ac_ct_AR"; then
5404   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5405 else
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH
5408 do
5409   IFS=$as_save_IFS
5410   test -z "$as_dir" && as_dir=.
5411   for ac_exec_ext in '' $ac_executable_extensions; do
5412   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5413     ac_cv_prog_ac_ct_AR="ar"
5414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5415     break 2
5416   fi
5417 done
5418 done
5419
5420   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5421 fi
5422 fi
5423 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5424 if test -n "$ac_ct_AR"; then
5425   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5426 echo "${ECHO_T}$ac_ct_AR" >&6
5427 else
5428   echo "$as_me:$LINENO: result: no" >&5
5429 echo "${ECHO_T}no" >&6
5430 fi
5431
5432   AR=$ac_ct_AR
5433 else
5434   AR="$ac_cv_prog_AR"
5435 fi
5436
5437 if test -n "$ac_tool_prefix"; then
5438   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5439 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5440 echo "$as_me:$LINENO: checking for $ac_word" >&5
5441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5442 if test "${ac_cv_prog_RANLIB+set}" = set; then
5443   echo $ECHO_N "(cached) $ECHO_C" >&6
5444 else
5445   if test -n "$RANLIB"; then
5446   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5447 else
5448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449 for as_dir in $PATH
5450 do
5451   IFS=$as_save_IFS
5452   test -z "$as_dir" && as_dir=.
5453   for ac_exec_ext in '' $ac_executable_extensions; do
5454   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5455     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5457     break 2
5458   fi
5459 done
5460 done
5461
5462 fi
5463 fi
5464 RANLIB=$ac_cv_prog_RANLIB
5465 if test -n "$RANLIB"; then
5466   echo "$as_me:$LINENO: result: $RANLIB" >&5
5467 echo "${ECHO_T}$RANLIB" >&6
5468 else
5469   echo "$as_me:$LINENO: result: no" >&5
5470 echo "${ECHO_T}no" >&6
5471 fi
5472
5473 fi
5474 if test -z "$ac_cv_prog_RANLIB"; then
5475   ac_ct_RANLIB=$RANLIB
5476   # Extract the first word of "ranlib", so it can be a program name with args.
5477 set dummy ranlib; ac_word=$2
5478 echo "$as_me:$LINENO: checking for $ac_word" >&5
5479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5480 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5481   echo $ECHO_N "(cached) $ECHO_C" >&6
5482 else
5483   if test -n "$ac_ct_RANLIB"; then
5484   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5485 else
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 for as_dir in $PATH
5488 do
5489   IFS=$as_save_IFS
5490   test -z "$as_dir" && as_dir=.
5491   for ac_exec_ext in '' $ac_executable_extensions; do
5492   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5493     ac_cv_prog_ac_ct_RANLIB="ranlib"
5494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5495     break 2
5496   fi
5497 done
5498 done
5499
5500   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5501 fi
5502 fi
5503 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5504 if test -n "$ac_ct_RANLIB"; then
5505   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5506 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5507 else
5508   echo "$as_me:$LINENO: result: no" >&5
5509 echo "${ECHO_T}no" >&6
5510 fi
5511
5512   RANLIB=$ac_ct_RANLIB
5513 else
5514   RANLIB="$ac_cv_prog_RANLIB"
5515 fi
5516
5517 if test -n "$ac_tool_prefix"; then
5518   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5519 set dummy ${ac_tool_prefix}strip; ac_word=$2
5520 echo "$as_me:$LINENO: checking for $ac_word" >&5
5521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5522 if test "${ac_cv_prog_STRIP+set}" = set; then
5523   echo $ECHO_N "(cached) $ECHO_C" >&6
5524 else
5525   if test -n "$STRIP"; then
5526   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5527 else
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5530 do
5531   IFS=$as_save_IFS
5532   test -z "$as_dir" && as_dir=.
5533   for ac_exec_ext in '' $ac_executable_extensions; do
5534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5535     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5537     break 2
5538   fi
5539 done
5540 done
5541
5542 fi
5543 fi
5544 STRIP=$ac_cv_prog_STRIP
5545 if test -n "$STRIP"; then
5546   echo "$as_me:$LINENO: result: $STRIP" >&5
5547 echo "${ECHO_T}$STRIP" >&6
5548 else
5549   echo "$as_me:$LINENO: result: no" >&5
5550 echo "${ECHO_T}no" >&6
5551 fi
5552
5553 fi
5554 if test -z "$ac_cv_prog_STRIP"; then
5555   ac_ct_STRIP=$STRIP
5556   # Extract the first word of "strip", so it can be a program name with args.
5557 set dummy strip; ac_word=$2
5558 echo "$as_me:$LINENO: checking for $ac_word" >&5
5559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5560 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5561   echo $ECHO_N "(cached) $ECHO_C" >&6
5562 else
5563   if test -n "$ac_ct_STRIP"; then
5564   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5565 else
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5568 do
5569   IFS=$as_save_IFS
5570   test -z "$as_dir" && as_dir=.
5571   for ac_exec_ext in '' $ac_executable_extensions; do
5572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5573     ac_cv_prog_ac_ct_STRIP="strip"
5574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5575     break 2
5576   fi
5577 done
5578 done
5579
5580   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5581 fi
5582 fi
5583 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5584 if test -n "$ac_ct_STRIP"; then
5585   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5586 echo "${ECHO_T}$ac_ct_STRIP" >&6
5587 else
5588   echo "$as_me:$LINENO: result: no" >&5
5589 echo "${ECHO_T}no" >&6
5590 fi
5591
5592   STRIP=$ac_ct_STRIP
5593 else
5594   STRIP="$ac_cv_prog_STRIP"
5595 fi
5596
5597
5598 old_CC="$CC"
5599 old_CFLAGS="$CFLAGS"
5600
5601 # Set sane defaults for various variables
5602 test -z "$AR" && AR=ar
5603 test -z "$AR_FLAGS" && AR_FLAGS=cru
5604 test -z "$AS" && AS=as
5605 test -z "$CC" && CC=cc
5606 test -z "$LTCC" && LTCC=$CC
5607 test -z "$DLLTOOL" && DLLTOOL=dlltool
5608 test -z "$LD" && LD=ld
5609 test -z "$LN_S" && LN_S="ln -s"
5610 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5611 test -z "$NM" && NM=nm
5612 test -z "$SED" && SED=sed
5613 test -z "$OBJDUMP" && OBJDUMP=objdump
5614 test -z "$RANLIB" && RANLIB=:
5615 test -z "$STRIP" && STRIP=:
5616 test -z "$ac_objext" && ac_objext=o
5617
5618 # Determine commands to create old-style static archives.
5619 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5620 old_postinstall_cmds='chmod 644 $oldlib'
5621 old_postuninstall_cmds=
5622
5623 if test -n "$RANLIB"; then
5624   case $host_os in
5625   openbsd*)
5626     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5627     ;;
5628   *)
5629     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5630     ;;
5631   esac
5632   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5633 fi
5634
5635 # Only perform the check for file, if the check method requires it
5636 case $deplibs_check_method in
5637 file_magic*)
5638   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5639     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5640 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5641 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5642   echo $ECHO_N "(cached) $ECHO_C" >&6
5643 else
5644   case $MAGIC_CMD in
5645 [\\/*] |  ?:[\\/]*)
5646   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5647   ;;
5648 *)
5649   lt_save_MAGIC_CMD="$MAGIC_CMD"
5650   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5651   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5652   for ac_dir in $ac_dummy; do
5653     IFS="$lt_save_ifs"
5654     test -z "$ac_dir" && ac_dir=.
5655     if test -f $ac_dir/${ac_tool_prefix}file; then
5656       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5657       if test -n "$file_magic_test_file"; then
5658         case $deplibs_check_method in
5659         "file_magic "*)
5660           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5661           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5662           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5663             $EGREP "$file_magic_regex" > /dev/null; then
5664             :
5665           else
5666             cat <<EOF 1>&2
5667
5668 *** Warning: the command libtool uses to detect shared libraries,
5669 *** $file_magic_cmd, produces output that libtool cannot recognize.
5670 *** The result is that libtool may fail to recognize shared libraries
5671 *** as such.  This will affect the creation of libtool libraries that
5672 *** depend on shared libraries, but programs linked with such libtool
5673 *** libraries will work regardless of this problem.  Nevertheless, you
5674 *** may want to report the problem to your system manager and/or to
5675 *** bug-libtool@gnu.org
5676
5677 EOF
5678           fi ;;
5679         esac
5680       fi
5681       break
5682     fi
5683   done
5684   IFS="$lt_save_ifs"
5685   MAGIC_CMD="$lt_save_MAGIC_CMD"
5686   ;;
5687 esac
5688 fi
5689
5690 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5691 if test -n "$MAGIC_CMD"; then
5692   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5693 echo "${ECHO_T}$MAGIC_CMD" >&6
5694 else
5695   echo "$as_me:$LINENO: result: no" >&5
5696 echo "${ECHO_T}no" >&6
5697 fi
5698
5699 if test -z "$lt_cv_path_MAGIC_CMD"; then
5700   if test -n "$ac_tool_prefix"; then
5701     echo "$as_me:$LINENO: checking for file" >&5
5702 echo $ECHO_N "checking for file... $ECHO_C" >&6
5703 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5704   echo $ECHO_N "(cached) $ECHO_C" >&6
5705 else
5706   case $MAGIC_CMD in
5707 [\\/*] |  ?:[\\/]*)
5708   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5709   ;;
5710 *)
5711   lt_save_MAGIC_CMD="$MAGIC_CMD"
5712   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5713   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5714   for ac_dir in $ac_dummy; do
5715     IFS="$lt_save_ifs"
5716     test -z "$ac_dir" && ac_dir=.
5717     if test -f $ac_dir/file; then
5718       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5719       if test -n "$file_magic_test_file"; then
5720         case $deplibs_check_method in
5721         "file_magic "*)
5722           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5723           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5724           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5725             $EGREP "$file_magic_regex" > /dev/null; then
5726             :
5727           else
5728             cat <<EOF 1>&2
5729
5730 *** Warning: the command libtool uses to detect shared libraries,
5731 *** $file_magic_cmd, produces output that libtool cannot recognize.
5732 *** The result is that libtool may fail to recognize shared libraries
5733 *** as such.  This will affect the creation of libtool libraries that
5734 *** depend on shared libraries, but programs linked with such libtool
5735 *** libraries will work regardless of this problem.  Nevertheless, you
5736 *** may want to report the problem to your system manager and/or to
5737 *** bug-libtool@gnu.org
5738
5739 EOF
5740           fi ;;
5741         esac
5742       fi
5743       break
5744     fi
5745   done
5746   IFS="$lt_save_ifs"
5747   MAGIC_CMD="$lt_save_MAGIC_CMD"
5748   ;;
5749 esac
5750 fi
5751
5752 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5753 if test -n "$MAGIC_CMD"; then
5754   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5755 echo "${ECHO_T}$MAGIC_CMD" >&6
5756 else
5757   echo "$as_me:$LINENO: result: no" >&5
5758 echo "${ECHO_T}no" >&6
5759 fi
5760
5761   else
5762     MAGIC_CMD=:
5763   fi
5764 fi
5765
5766   fi
5767   ;;
5768 esac
5769
5770 enable_dlopen=no
5771 enable_win32_dll=no
5772
5773 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5774 if test "${enable_libtool_lock+set}" = set; then
5775   enableval="$enable_libtool_lock"
5776
5777 fi;
5778 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5779
5780
5781 # Check whether --with-pic or --without-pic was given.
5782 if test "${with_pic+set}" = set; then
5783   withval="$with_pic"
5784   pic_mode="$withval"
5785 else
5786   pic_mode=default
5787 fi;
5788 test -z "$pic_mode" && pic_mode=default
5789
5790 # Use C for the default configuration in the libtool script
5791 tagname=
5792 lt_save_CC="$CC"
5793 ac_ext=c
5794 ac_cpp='$CPP $CPPFLAGS'
5795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5798
5799
5800 # Source file extension for C test sources.
5801 ac_ext=c
5802
5803 # Object file extension for compiled C test sources.
5804 objext=o
5805 objext=$objext
5806
5807 # Code to be used in simple compile tests
5808 lt_simple_compile_test_code="int some_variable = 0;\n"
5809
5810 # Code to be used in simple link tests
5811 lt_simple_link_test_code='int main(){return(0);}\n'
5812
5813
5814 # If no C compiler was specified, use CC.
5815 LTCC=${LTCC-"$CC"}
5816
5817 # Allow CC to be a program name with arguments.
5818 compiler=$CC
5819
5820
5821 #
5822 # Check for any special shared library compilation flags.
5823 #
5824 lt_prog_cc_shlib=
5825 if test "$GCC" = no; then
5826   case $host_os in
5827   sco3.2v5*)
5828     lt_prog_cc_shlib='-belf'
5829     ;;
5830   esac
5831 fi
5832 if test -n "$lt_prog_cc_shlib"; then
5833   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5834 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5835   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5836   else
5837     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5838 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5839     lt_cv_prog_cc_can_build_shared=no
5840   fi
5841 fi
5842
5843
5844 #
5845 # Check to make sure the static flag actually works.
5846 #
5847 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5848 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5849 if test "${lt_prog_compiler_static_works+set}" = set; then
5850   echo $ECHO_N "(cached) $ECHO_C" >&6
5851 else
5852   lt_prog_compiler_static_works=no
5853    save_LDFLAGS="$LDFLAGS"
5854    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5855    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5856    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5857      # The compiler can only warn and ignore the option if not recognized
5858      # So say no if there are warnings
5859      if test -s conftest.err; then
5860        # Append any errors to the config.log.
5861        cat conftest.err 1>&5
5862      else
5863        lt_prog_compiler_static_works=yes
5864      fi
5865    fi
5866    $rm conftest*
5867    LDFLAGS="$save_LDFLAGS"
5868
5869 fi
5870 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5871 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5872
5873 if test x"$lt_prog_compiler_static_works" = xyes; then
5874     :
5875 else
5876     lt_prog_compiler_static=
5877 fi
5878
5879
5880
5881
5882 lt_prog_compiler_no_builtin_flag=
5883
5884 if test "$GCC" = yes; then
5885   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5886
5887   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5888 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5889 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5890   echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892   lt_cv_prog_compiler_rtti_exceptions=no
5893   ac_outfile=conftest.$ac_objext
5894    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5895    lt_compiler_flag="-fno-rtti -fno-exceptions"
5896    # Insert the option either (1) after the last *FLAGS variable, or
5897    # (2) before a word containing "conftest.", or (3) at the end.
5898    # Note that $ac_compile itself does not contain backslashes and begins
5899    # with a dollar sign (not a hyphen), so the echo should work correctly.
5900    # The option is referenced via a variable to avoid confusing sed.
5901    lt_compile=`echo "$ac_compile" | $SED \
5902    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5903    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5904    -e 's:$: $lt_compiler_flag:'`
5905    (eval echo "\"\$as_me:5905: $lt_compile\"" >&5)
5906    (eval "$lt_compile" 2>conftest.err)
5907    ac_status=$?
5908    cat conftest.err >&5
5909    echo "$as_me:5909: \$? = $ac_status" >&5
5910    if (exit $ac_status) && test -s "$ac_outfile"; then
5911      # The compiler can only warn and ignore the option if not recognized
5912      # So say no if there are warnings
5913      if test ! -s conftest.err; then
5914        lt_cv_prog_compiler_rtti_exceptions=yes
5915      fi
5916    fi
5917    $rm conftest*
5918
5919 fi
5920 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5921 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5922
5923 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5924     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5925 else
5926     :
5927 fi
5928
5929 fi
5930
5931 lt_prog_compiler_wl=
5932 lt_prog_compiler_pic=
5933 lt_prog_compiler_static=
5934
5935 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5936 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5937
5938   if test "$GCC" = yes; then
5939     lt_prog_compiler_wl='-Wl,'
5940     lt_prog_compiler_static='-static'
5941
5942     case $host_os in
5943       aix*)
5944       # All AIX code is PIC.
5945       if test "$host_cpu" = ia64; then
5946         # AIX 5 now supports IA64 processor
5947         lt_prog_compiler_static='-Bstatic'
5948       fi
5949       ;;
5950
5951     amigaos*)
5952       # FIXME: we need at least 68020 code to build shared libraries, but
5953       # adding the `-m68020' flag to GCC prevents building anything better,
5954       # like `-m68040'.
5955       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5956       ;;
5957
5958     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5959       # PIC is the default for these OSes.
5960       ;;
5961
5962     mingw* | pw32* | os2*)
5963       # This hack is so that the source file can tell whether it is being
5964       # built for inclusion in a dll (and should export symbols for example).
5965       lt_prog_compiler_pic='-DDLL_EXPORT'
5966       ;;
5967
5968     darwin* | rhapsody*)
5969       # PIC is the default on this platform
5970       # Common symbols not allowed in MH_DYLIB files
5971       lt_prog_compiler_pic='-fno-common'
5972       ;;
5973
5974     msdosdjgpp*)
5975       # Just because we use GCC doesn't mean we suddenly get shared libraries
5976       # on systems that don't support them.
5977       lt_prog_compiler_can_build_shared=no
5978       enable_shared=no
5979       ;;
5980
5981     sysv4*MP*)
5982       if test -d /usr/nec; then
5983         lt_prog_compiler_pic=-Kconform_pic
5984       fi
5985       ;;
5986
5987     hpux*)
5988       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5989       # not for PA HP-UX.
5990       case "$host_cpu" in
5991       hppa*64*|ia64*)
5992         # +Z the default
5993         ;;
5994       *)
5995         lt_prog_compiler_pic='-fPIC'
5996         ;;
5997       esac
5998       ;;
5999
6000     *)
6001       lt_prog_compiler_pic='-fPIC'
6002       ;;
6003     esac
6004   else
6005     # PORTME Check for flag to pass linker flags through the system compiler.
6006     case $host_os in
6007     aix*)
6008       lt_prog_compiler_wl='-Wl,'
6009       if test "$host_cpu" = ia64; then
6010         # AIX 5 now supports IA64 processor
6011         lt_prog_compiler_static='-Bstatic'
6012       else
6013         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6014       fi
6015       ;;
6016
6017     mingw* | pw32* | os2*)
6018       # This hack is so that the source file can tell whether it is being
6019       # built for inclusion in a dll (and should export symbols for example).
6020       lt_prog_compiler_pic='-DDLL_EXPORT'
6021       ;;
6022
6023     hpux9* | hpux10* | hpux11*)
6024       lt_prog_compiler_wl='-Wl,'
6025       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6026       # not for PA HP-UX.
6027       case "$host_cpu" in
6028       hppa*64*|ia64*)
6029         # +Z the default
6030         ;;
6031       *)
6032         lt_prog_compiler_pic='+Z'
6033         ;;
6034       esac
6035       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6036       lt_prog_compiler_static='${wl}-a ${wl}archive'
6037       ;;
6038
6039     irix5* | irix6* | nonstopux*)
6040       lt_prog_compiler_wl='-Wl,'
6041       # PIC (with -KPIC) is the default.
6042       lt_prog_compiler_static='-non_shared'
6043       ;;
6044
6045     newsos6)
6046       lt_prog_compiler_pic='-KPIC'
6047       lt_prog_compiler_static='-Bstatic'
6048       ;;
6049
6050     linux*)
6051       case $CC in
6052       icc|ecc)
6053         lt_prog_compiler_wl='-Wl,'
6054         lt_prog_compiler_pic='-KPIC'
6055         lt_prog_compiler_static='-static'
6056         ;;
6057       ccc)
6058         lt_prog_compiler_wl='-Wl,'
6059         # All Alpha code is PIC.
6060         lt_prog_compiler_static='-non_shared'
6061         ;;
6062       esac
6063       ;;
6064
6065     osf3* | osf4* | osf5*)
6066       lt_prog_compiler_wl='-Wl,'
6067       # All OSF/1 code is PIC.
6068       lt_prog_compiler_static='-non_shared'
6069       ;;
6070
6071     sco3.2v5*)
6072       lt_prog_compiler_pic='-Kpic'
6073       lt_prog_compiler_static='-dn'
6074       ;;
6075
6076     solaris*)
6077       lt_prog_compiler_wl='-Wl,'
6078       lt_prog_compiler_pic='-KPIC'
6079       lt_prog_compiler_static='-Bstatic'
6080       ;;
6081
6082     sunos4*)
6083       lt_prog_compiler_wl='-Qoption ld '
6084       lt_prog_compiler_pic='-PIC'
6085       lt_prog_compiler_static='-Bstatic'
6086       ;;
6087
6088     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6089       lt_prog_compiler_wl='-Wl,'
6090       lt_prog_compiler_pic='-KPIC'
6091       lt_prog_compiler_static='-Bstatic'
6092       ;;
6093
6094     sysv4*MP*)
6095       if test -d /usr/nec ;then
6096         lt_prog_compiler_pic='-Kconform_pic'
6097         lt_prog_compiler_static='-Bstatic'
6098       fi
6099       ;;
6100
6101     uts4*)
6102       lt_prog_compiler_pic='-pic'
6103       lt_prog_compiler_static='-Bstatic'
6104       ;;
6105
6106     *)
6107       lt_prog_compiler_can_build_shared=no
6108       ;;
6109     esac
6110   fi
6111
6112 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6113 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6114
6115 #
6116 # Check to make sure the PIC flag actually works.
6117 #
6118 if test -n "$lt_prog_compiler_pic"; then
6119   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6120 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6121 if test "${lt_prog_compiler_pic_works+set}" = set; then
6122   echo $ECHO_N "(cached) $ECHO_C" >&6
6123 else
6124   lt_prog_compiler_pic_works=no
6125   ac_outfile=conftest.$ac_objext
6126    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6127    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6128    # Insert the option either (1) after the last *FLAGS variable, or
6129    # (2) before a word containing "conftest.", or (3) at the end.
6130    # Note that $ac_compile itself does not contain backslashes and begins
6131    # with a dollar sign (not a hyphen), so the echo should work correctly.
6132    # The option is referenced via a variable to avoid confusing sed.
6133    lt_compile=`echo "$ac_compile" | $SED \
6134    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6135    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6136    -e 's:$: $lt_compiler_flag:'`
6137    (eval echo "\"\$as_me:6137: $lt_compile\"" >&5)
6138    (eval "$lt_compile" 2>conftest.err)
6139    ac_status=$?
6140    cat conftest.err >&5
6141    echo "$as_me:6141: \$? = $ac_status" >&5
6142    if (exit $ac_status) && test -s "$ac_outfile"; then
6143      # The compiler can only warn and ignore the option if not recognized
6144      # So say no if there are warnings
6145      if test ! -s conftest.err; then
6146        lt_prog_compiler_pic_works=yes
6147      fi
6148    fi
6149    $rm conftest*
6150
6151 fi
6152 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6153 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6154
6155 if test x"$lt_prog_compiler_pic_works" = xyes; then
6156     case $lt_prog_compiler_pic in
6157      "" | " "*) ;;
6158      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6159      esac
6160 else
6161     lt_prog_compiler_pic=
6162      lt_prog_compiler_can_build_shared=no
6163 fi
6164
6165 fi
6166 case "$host_os" in
6167   # For platforms which do not support PIC, -DPIC is meaningless:
6168   *djgpp*)
6169     lt_prog_compiler_pic=
6170     ;;
6171   *)
6172     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6173     ;;
6174 esac
6175
6176 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6177 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6178 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6179   echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181   lt_cv_prog_compiler_c_o=no
6182    $rm -r conftest 2>/dev/null
6183    mkdir conftest
6184    cd conftest
6185    mkdir out
6186    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6187
6188    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6189    # that will create temporary files in the current directory regardless of
6190    # the output directory.  Thus, making CWD read-only will cause this test
6191    # to fail, enabling locking or at least warning the user not to do parallel
6192    # builds.
6193    chmod -w .
6194
6195    lt_compiler_flag="-o out/conftest2.$ac_objext"
6196    # Insert the option either (1) after the last *FLAGS variable, or
6197    # (2) before a word containing "conftest.", or (3) at the end.
6198    # Note that $ac_compile itself does not contain backslashes and begins
6199    # with a dollar sign (not a hyphen), so the echo should work correctly.
6200    lt_compile=`echo "$ac_compile" | $SED \
6201    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6202    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6203    -e 's:$: $lt_compiler_flag:'`
6204    (eval echo "\"\$as_me:6204: $lt_compile\"" >&5)
6205    (eval "$lt_compile" 2>out/conftest.err)
6206    ac_status=$?
6207    cat out/conftest.err >&5
6208    echo "$as_me:6208: \$? = $ac_status" >&5
6209    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6210    then
6211      # The compiler can only warn and ignore the option if not recognized
6212      # So say no if there are warnings
6213      if test ! -s out/conftest.err; then
6214        lt_cv_prog_compiler_c_o=yes
6215      fi
6216    fi
6217    chmod u+w .
6218    $rm conftest* out/*
6219    rmdir out
6220    cd ..
6221    rmdir conftest
6222    $rm conftest*
6223
6224 fi
6225 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6226 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6227
6228
6229 hard_links="nottested"
6230 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6231   # do not overwrite the value of need_locks provided by the user
6232   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6233 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6234   hard_links=yes
6235   $rm conftest*
6236   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6237   touch conftest.a
6238   ln conftest.a conftest.b 2>&5 || hard_links=no
6239   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6240   echo "$as_me:$LINENO: result: $hard_links" >&5
6241 echo "${ECHO_T}$hard_links" >&6
6242   if test "$hard_links" = no; then
6243     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6244 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6245     need_locks=warn
6246   fi
6247 else
6248   need_locks=no
6249 fi
6250
6251 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6252 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6253
6254   runpath_var=
6255   allow_undefined_flag=
6256   enable_shared_with_static_runtimes=no
6257   archive_cmds=
6258   archive_expsym_cmds=
6259   old_archive_From_new_cmds=
6260   old_archive_from_expsyms_cmds=
6261   export_dynamic_flag_spec=
6262   whole_archive_flag_spec=
6263   thread_safe_flag_spec=
6264   hardcode_libdir_flag_spec=
6265   hardcode_libdir_flag_spec_ld=
6266   hardcode_libdir_separator=
6267   hardcode_direct=no
6268   hardcode_minus_L=no
6269   hardcode_shlibpath_var=unsupported
6270   link_all_deplibs=unknown
6271   hardcode_automatic=no
6272   module_cmds=
6273   module_expsym_cmds=
6274   always_export_symbols=no
6275   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6276   # include_expsyms should be a list of space-separated symbols to be *always*
6277   # included in the symbol list
6278   include_expsyms=
6279   # exclude_expsyms can be an extended regexp of symbols to exclude
6280   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6281   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6282   # as well as any symbol that contains `d'.
6283   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6284   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6285   # platforms (ab)use it in PIC code, but their linkers get confused if
6286   # the symbol is explicitly referenced.  Since portable code cannot
6287   # rely on this symbol name, it's probably fine to never include it in
6288   # preloaded symbol tables.
6289   extract_expsyms_cmds=
6290
6291   case $host_os in
6292   cygwin* | mingw* | pw32*)
6293     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6294     # When not using gcc, we currently assume that we are using
6295     # Microsoft Visual C++.
6296     if test "$GCC" != yes; then
6297       with_gnu_ld=no
6298     fi
6299     ;;
6300   openbsd*)
6301     with_gnu_ld=no
6302     ;;
6303   esac
6304
6305   ld_shlibs=yes
6306   if test "$with_gnu_ld" = yes; then
6307     # If archive_cmds runs LD, not CC, wlarc should be empty
6308     wlarc='${wl}'
6309
6310     # See if GNU ld supports shared libraries.
6311     case $host_os in
6312     aix3* | aix4* | aix5*)
6313       # On AIX/PPC, the GNU linker is very broken
6314       if test "$host_cpu" != ia64; then
6315         ld_shlibs=no
6316         cat <<EOF 1>&2
6317
6318 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6319 *** to be unable to reliably create shared libraries on AIX.
6320 *** Therefore, libtool is disabling shared libraries support.  If you
6321 *** really care for shared libraries, you may want to modify your PATH
6322 *** so that a non-GNU linker is found, and then restart.
6323
6324 EOF
6325       fi
6326       ;;
6327
6328     amigaos*)
6329       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)'
6330       hardcode_libdir_flag_spec='-L$libdir'
6331       hardcode_minus_L=yes
6332
6333       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6334       # that the semantics of dynamic libraries on AmigaOS, at least up
6335       # to version 4, is to share data among multiple programs linked
6336       # with the same dynamic library.  Since this doesn't match the
6337       # behavior of shared libraries on other platforms, we can't use
6338       # them.
6339       ld_shlibs=no
6340       ;;
6341
6342     beos*)
6343       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6344         allow_undefined_flag=unsupported
6345         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6346         # support --undefined.  This deserves some investigation.  FIXME
6347         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6348       else
6349         ld_shlibs=no
6350       fi
6351       ;;
6352
6353     cygwin* | mingw* | pw32*)
6354       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6355       # as there is no search path for DLLs.
6356       hardcode_libdir_flag_spec='-L$libdir'
6357       allow_undefined_flag=unsupported
6358       always_export_symbols=no
6359       enable_shared_with_static_runtimes=yes
6360       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6361
6362       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6363         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6364         # If the export-symbols file already is a .def file (1st line
6365         # is EXPORTS), use it as is; otherwise, prepend...
6366         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6367           cp $export_symbols $output_objdir/$soname.def;
6368         else
6369           echo EXPORTS > $output_objdir/$soname.def;
6370           cat $export_symbols >> $output_objdir/$soname.def;
6371         fi~
6372         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6373       else
6374         ld_shlibs=no
6375       fi
6376       ;;
6377
6378     netbsd*)
6379       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6380         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6381         wlarc=
6382       else
6383         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6384         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6385       fi
6386       ;;
6387
6388     solaris* | sysv5*)
6389       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6390         ld_shlibs=no
6391         cat <<EOF 1>&2
6392
6393 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6394 *** create shared libraries on Solaris systems.  Therefore, libtool
6395 *** is disabling shared libraries support.  We urge you to upgrade GNU
6396 *** binutils to release 2.9.1 or newer.  Another option is to modify
6397 *** your PATH or compiler configuration so that the native linker is
6398 *** used, and then restart.
6399
6400 EOF
6401       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6402         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6403         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6404       else
6405         ld_shlibs=no
6406       fi
6407       ;;
6408
6409     sunos4*)
6410       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6411       wlarc=
6412       hardcode_direct=yes
6413       hardcode_shlibpath_var=no
6414       ;;
6415
6416     *)
6417       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6418         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6419         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6420       else
6421         ld_shlibs=no
6422       fi
6423       ;;
6424     esac
6425
6426     if test "$ld_shlibs" = yes; then
6427       runpath_var=LD_RUN_PATH
6428       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6429       export_dynamic_flag_spec='${wl}--export-dynamic'
6430       # ancient GNU ld didn't support --whole-archive et. al.
6431       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6432         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6433       else
6434         whole_archive_flag_spec=
6435       fi
6436     fi
6437   else
6438     # PORTME fill in a description of your system's linker (not GNU ld)
6439     case $host_os in
6440     aix3*)
6441       allow_undefined_flag=unsupported
6442       always_export_symbols=yes
6443       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'
6444       # Note: this linker hardcodes the directories in LIBPATH if there
6445       # are no directories specified by -L.
6446       hardcode_minus_L=yes
6447       if test "$GCC" = yes && test -z "$link_static_flag"; then
6448         # Neither direct hardcoding nor static linking is supported with a
6449         # broken collect2.
6450         hardcode_direct=unsupported
6451       fi
6452       ;;
6453
6454     aix4* | aix5*)
6455       if test "$host_cpu" = ia64; then
6456         # On IA64, the linker does run time linking by default, so we don't
6457         # have to do anything special.
6458         aix_use_runtimelinking=no
6459         exp_sym_flag='-Bexport'
6460         no_entry_flag=""
6461       else
6462         # If we're using GNU nm, then we don't want the "-C" option.
6463         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6464         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6465           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'
6466         else
6467           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'
6468         fi
6469         aix_use_runtimelinking=no
6470
6471         # Test if we are trying to use run time linking or normal
6472         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6473         # need to do runtime linking.
6474         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6475           for ld_flag in $LDFLAGS; do
6476           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6477             aix_use_runtimelinking=yes
6478             break
6479           fi
6480           done
6481         esac
6482
6483         exp_sym_flag='-bexport'
6484         no_entry_flag='-bnoentry'
6485       fi
6486
6487       # When large executables or shared objects are built, AIX ld can
6488       # have problems creating the table of contents.  If linking a library
6489       # or program results in "error TOC overflow" add -mminimal-toc to
6490       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6491       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6492
6493       archive_cmds=''
6494       hardcode_direct=yes
6495       hardcode_libdir_separator=':'
6496       link_all_deplibs=yes
6497
6498       if test "$GCC" = yes; then
6499         case $host_os in aix4.012|aix4.012.*)
6500         # We only want to do this on AIX 4.2 and lower, the check
6501         # below for broken collect2 doesn't work under 4.3+
6502           collect2name=`${CC} -print-prog-name=collect2`
6503           if test -f "$collect2name" && \
6504            strings "$collect2name" | grep resolve_lib_name >/dev/null
6505           then
6506           # We have reworked collect2
6507           hardcode_direct=yes
6508           else
6509           # We have old collect2
6510           hardcode_direct=unsupported
6511           # It fails to find uninstalled libraries when the uninstalled
6512           # path is not listed in the libpath.  Setting hardcode_minus_L
6513           # to unsupported forces relinking
6514           hardcode_minus_L=yes
6515           hardcode_libdir_flag_spec='-L$libdir'
6516           hardcode_libdir_separator=
6517           fi
6518         esac
6519         shared_flag='-shared'
6520       else
6521         # not using gcc
6522         if test "$host_cpu" = ia64; then
6523         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6524         # chokes on -Wl,-G. The following line is correct:
6525           shared_flag='-G'
6526         else
6527         if test "$aix_use_runtimelinking" = yes; then
6528             shared_flag='${wl}-G'
6529           else
6530             shared_flag='${wl}-bM:SRE'
6531         fi
6532         fi
6533       fi
6534
6535       # It seems that -bexpall does not export symbols beginning with
6536       # underscore (_), so it is better to generate a list of symbols to export.
6537       always_export_symbols=yes
6538       if test "$aix_use_runtimelinking" = yes; then
6539         # Warning - without using the other runtime loading flags (-brtl),
6540         # -berok will link without error, but may produce a broken library.
6541         allow_undefined_flag='-berok'
6542        # Determine the default libpath from the value encoded in an empty executable.
6543        cat >conftest.$ac_ext <<_ACEOF
6544 #line $LINENO "configure"
6545 /* confdefs.h.  */
6546 _ACEOF
6547 cat confdefs.h >>conftest.$ac_ext
6548 cat >>conftest.$ac_ext <<_ACEOF
6549 /* end confdefs.h.  */
6550
6551 int
6552 main ()
6553 {
6554
6555   ;
6556   return 0;
6557 }
6558 _ACEOF
6559 rm -f conftest.$ac_objext conftest$ac_exeext
6560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6561   (eval $ac_link) 2>&5
6562   ac_status=$?
6563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564   (exit $ac_status); } &&
6565          { ac_try='test -s conftest$ac_exeext'
6566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567   (eval $ac_try) 2>&5
6568   ac_status=$?
6569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570   (exit $ac_status); }; }; then
6571
6572 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6573 }'`
6574 # Check for a 64-bit object if we didn't find anything.
6575 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; }
6576 }'`; fi
6577 else
6578   echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6580
6581 fi
6582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6583 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6584
6585        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6586         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"
6587        else
6588         if test "$host_cpu" = ia64; then
6589           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6590           allow_undefined_flag="-z nodefs"
6591           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"
6592         else
6593          # Determine the default libpath from the value encoded in an empty executable.
6594          cat >conftest.$ac_ext <<_ACEOF
6595 #line $LINENO "configure"
6596 /* confdefs.h.  */
6597 _ACEOF
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h.  */
6601
6602 int
6603 main ()
6604 {
6605
6606   ;
6607   return 0;
6608 }
6609 _ACEOF
6610 rm -f conftest.$ac_objext conftest$ac_exeext
6611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6612   (eval $ac_link) 2>&5
6613   ac_status=$?
6614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615   (exit $ac_status); } &&
6616          { ac_try='test -s conftest$ac_exeext'
6617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618   (eval $ac_try) 2>&5
6619   ac_status=$?
6620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621   (exit $ac_status); }; }; then
6622
6623 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6624 }'`
6625 # Check for a 64-bit object if we didn't find anything.
6626 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; }
6627 }'`; fi
6628 else
6629   echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6631
6632 fi
6633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6634 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6635
6636          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6637           # Warning - without using the other run time loading flags,
6638           # -berok will link without error, but may produce a broken library.
6639           no_undefined_flag=' ${wl}-bernotok'
6640           allow_undefined_flag=' ${wl}-berok'
6641           # -bexpall does not export symbols beginning with underscore (_)
6642           always_export_symbols=yes
6643           # Exported symbols can be pulled into shared objects from archives
6644           whole_archive_flag_spec=' '
6645           archive_cmds_need_lc=yes
6646           # This is similar to how AIX traditionally builds it's shared libraries.
6647           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'
6648         fi
6649       fi
6650       ;;
6651
6652     amigaos*)
6653       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)'
6654       hardcode_libdir_flag_spec='-L$libdir'
6655       hardcode_minus_L=yes
6656       # see comment about different semantics on the GNU ld section
6657       ld_shlibs=no
6658       ;;
6659
6660     bsdi4*)
6661       export_dynamic_flag_spec=-rdynamic
6662       ;;
6663
6664     cygwin* | mingw* | pw32*)
6665       # When not using gcc, we currently assume that we are using
6666       # Microsoft Visual C++.
6667       # hardcode_libdir_flag_spec is actually meaningless, as there is
6668       # no search path for DLLs.
6669       hardcode_libdir_flag_spec=' '
6670       allow_undefined_flag=unsupported
6671       # Tell ltmain to make .lib files, not .a files.
6672       libext=lib
6673       # Tell ltmain to make .dll files, not .so files.
6674       shrext=".dll"
6675       # FIXME: Setting linknames here is a bad hack.
6676       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6677       # The linker will automatically build a .lib file if we build a DLL.
6678       old_archive_From_new_cmds='true'
6679       # FIXME: Should let the user specify the lib program.
6680       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6681       fix_srcfile_path='`cygpath -w "$srcfile"`'
6682       enable_shared_with_static_runtimes=yes
6683       ;;
6684
6685     darwin* | rhapsody*)
6686     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6687       archive_cmds_need_lc=no
6688       case "$host_os" in
6689       rhapsody* | darwin1.[012])
6690         allow_undefined_flag='-undefined suppress'
6691         ;;
6692       *) # Darwin 1.3 on
6693         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6694         ;;
6695       esac
6696       # FIXME: Relying on posixy $() will cause problems for
6697       #        cross-compilation, but unfortunately the echo tests do not
6698       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6699       #        `"' quotes if we put them in here... so don't!
6700         lt_int_apple_cc_single_mod=no
6701         output_verbose_link_cmd='echo'
6702         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6703           lt_int_apple_cc_single_mod=yes
6704         fi
6705         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6706           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6707         else
6708         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'
6709       fi
6710       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6711       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6712         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6713           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}'
6714         else
6715           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}'
6716         fi
6717           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}'
6718       hardcode_direct=no
6719       hardcode_automatic=yes
6720       hardcode_shlibpath_var=unsupported
6721       whole_archive_flag_spec='-all_load $convenience'
6722       link_all_deplibs=yes
6723     fi
6724       ;;
6725
6726     dgux*)
6727       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6728       hardcode_libdir_flag_spec='-L$libdir'
6729       hardcode_shlibpath_var=no
6730       ;;
6731
6732     freebsd1*)
6733       ld_shlibs=no
6734       ;;
6735
6736     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6737     # support.  Future versions do this automatically, but an explicit c++rt0.o
6738     # does not break anything, and helps significantly (at the cost of a little
6739     # extra space).
6740     freebsd2.2*)
6741       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6742       hardcode_libdir_flag_spec='-R$libdir'
6743       hardcode_direct=yes
6744       hardcode_shlibpath_var=no
6745       ;;
6746
6747     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6748     freebsd2*)
6749       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6750       hardcode_direct=yes
6751       hardcode_minus_L=yes
6752       hardcode_shlibpath_var=no
6753       ;;
6754
6755     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6756     freebsd*)
6757       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6758       hardcode_libdir_flag_spec='-R$libdir'
6759       hardcode_direct=yes
6760       hardcode_shlibpath_var=no
6761       ;;
6762
6763     hpux9*)
6764       if test "$GCC" = yes; then
6765         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'
6766       else
6767         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'
6768       fi
6769       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6770       hardcode_libdir_separator=:
6771       hardcode_direct=yes
6772
6773       # hardcode_minus_L: Not really in the search PATH,
6774       # but as the default location of the library.
6775       hardcode_minus_L=yes
6776       export_dynamic_flag_spec='${wl}-E'
6777       ;;
6778
6779     hpux10* | hpux11*)
6780       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6781         case "$host_cpu" in
6782         hppa*64*|ia64*)
6783           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6784           ;;
6785         *)
6786           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6787           ;;
6788         esac
6789       else
6790         case "$host_cpu" in
6791         hppa*64*|ia64*)
6792           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6793           ;;
6794         *)
6795           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6796           ;;
6797         esac
6798       fi
6799       if test "$with_gnu_ld" = no; then
6800         case "$host_cpu" in
6801         hppa*64*)
6802           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6803           hardcode_libdir_flag_spec_ld='+b $libdir'
6804           hardcode_libdir_separator=:
6805           hardcode_direct=no
6806           hardcode_shlibpath_var=no
6807           ;;
6808         ia64*)
6809           hardcode_libdir_flag_spec='-L$libdir'
6810           hardcode_direct=no
6811           hardcode_shlibpath_var=no
6812
6813           # hardcode_minus_L: Not really in the search PATH,
6814           # but as the default location of the library.
6815           hardcode_minus_L=yes
6816           ;;
6817         *)
6818           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6819           hardcode_libdir_separator=:
6820           hardcode_direct=yes
6821           export_dynamic_flag_spec='${wl}-E'
6822
6823           # hardcode_minus_L: Not really in the search PATH,
6824           # but as the default location of the library.
6825           hardcode_minus_L=yes
6826           ;;
6827         esac
6828       fi
6829       ;;
6830
6831     irix5* | irix6* | nonstopux*)
6832       if test "$GCC" = yes; then
6833         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'
6834       else
6835         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'
6836         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6837       fi
6838       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6839       hardcode_libdir_separator=:
6840       link_all_deplibs=yes
6841       ;;
6842
6843     netbsd*)
6844       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6845         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6846       else
6847         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6848       fi
6849       hardcode_libdir_flag_spec='-R$libdir'
6850       hardcode_direct=yes
6851       hardcode_shlibpath_var=no
6852       ;;
6853
6854     newsos6)
6855       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6856       hardcode_direct=yes
6857       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6858       hardcode_libdir_separator=:
6859       hardcode_shlibpath_var=no
6860       ;;
6861
6862     openbsd*)
6863       hardcode_direct=yes
6864       hardcode_shlibpath_var=no
6865       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6866         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6867         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6868         export_dynamic_flag_spec='${wl}-E'
6869       else
6870        case $host_os in
6871          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6872            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6873            hardcode_libdir_flag_spec='-R$libdir'
6874            ;;
6875          *)
6876            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6877            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6878            ;;
6879        esac
6880       fi
6881       ;;
6882
6883     os2*)
6884       hardcode_libdir_flag_spec='-L$libdir'
6885       hardcode_minus_L=yes
6886       allow_undefined_flag=unsupported
6887       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'
6888       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6889       ;;
6890
6891     osf3*)
6892       if test "$GCC" = yes; then
6893         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6894         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'
6895       else
6896         allow_undefined_flag=' -expect_unresolved \*'
6897         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'
6898       fi
6899       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6900       hardcode_libdir_separator=:
6901       ;;
6902
6903     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6904       if test "$GCC" = yes; then
6905         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6906         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'
6907         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6908       else
6909         allow_undefined_flag=' -expect_unresolved \*'
6910         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'
6911         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6912         $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'
6913
6914         # Both c and cxx compiler support -rpath directly
6915         hardcode_libdir_flag_spec='-rpath $libdir'
6916       fi
6917       hardcode_libdir_separator=:
6918       ;;
6919
6920     sco3.2v5*)
6921       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6922       hardcode_shlibpath_var=no
6923       export_dynamic_flag_spec='${wl}-Bexport'
6924       runpath_var=LD_RUN_PATH
6925       hardcode_runpath_var=yes
6926       ;;
6927
6928     solaris*)
6929       no_undefined_flag=' -z text'
6930       if test "$GCC" = yes; then
6931         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6932         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6933           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6934       else
6935         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6936         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6937         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6938       fi
6939       hardcode_libdir_flag_spec='-R$libdir'
6940       hardcode_shlibpath_var=no
6941       case $host_os in
6942       solaris2.[0-5] | solaris2.[0-5].*) ;;
6943       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6944         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6945       esac
6946       link_all_deplibs=yes
6947       ;;
6948
6949     sunos4*)
6950       if test "x$host_vendor" = xsequent; then
6951         # Use $CC to link under sequent, because it throws in some extra .o
6952         # files that make .init and .fini sections work.
6953         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6954       else
6955         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6956       fi
6957       hardcode_libdir_flag_spec='-L$libdir'
6958       hardcode_direct=yes
6959       hardcode_minus_L=yes
6960       hardcode_shlibpath_var=no
6961       ;;
6962
6963     sysv4)
6964       case $host_vendor in
6965         sni)
6966           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6967           hardcode_direct=yes # is this really true???
6968         ;;
6969         siemens)
6970           ## LD is ld it makes a PLAMLIB
6971           ## CC just makes a GrossModule.
6972           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6973           reload_cmds='$CC -r -o $output$reload_objs'
6974           hardcode_direct=no
6975         ;;
6976         motorola)
6977           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6978           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6979         ;;
6980       esac
6981       runpath_var='LD_RUN_PATH'
6982       hardcode_shlibpath_var=no
6983       ;;
6984
6985     sysv4.3*)
6986       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6987       hardcode_shlibpath_var=no
6988       export_dynamic_flag_spec='-Bexport'
6989       ;;
6990
6991     sysv4*MP*)
6992       if test -d /usr/nec; then
6993         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6994         hardcode_shlibpath_var=no
6995         runpath_var=LD_RUN_PATH
6996         hardcode_runpath_var=yes
6997         ld_shlibs=yes
6998       fi
6999       ;;
7000
7001     sysv4.2uw2*)
7002       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7003       hardcode_direct=yes
7004       hardcode_minus_L=no
7005       hardcode_shlibpath_var=no
7006       hardcode_runpath_var=yes
7007       runpath_var=LD_RUN_PATH
7008       ;;
7009
7010    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7011       no_undefined_flag='${wl}-z ${wl}text'
7012       if test "$GCC" = yes; then
7013         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7014       else
7015         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7016       fi
7017       runpath_var='LD_RUN_PATH'
7018       hardcode_shlibpath_var=no
7019       ;;
7020
7021     sysv5*)
7022       no_undefined_flag=' -z text'
7023       # $CC -shared without GNU ld will not create a library from C++
7024       # object files and a static libstdc++, better avoid it by now
7025       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7026       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7027                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7028       hardcode_libdir_flag_spec=
7029       hardcode_shlibpath_var=no
7030       runpath_var='LD_RUN_PATH'
7031       ;;
7032
7033     uts4*)
7034       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7035       hardcode_libdir_flag_spec='-L$libdir'
7036       hardcode_shlibpath_var=no
7037       ;;
7038
7039     *)
7040       ld_shlibs=no
7041       ;;
7042     esac
7043   fi
7044
7045 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7046 echo "${ECHO_T}$ld_shlibs" >&6
7047 test "$ld_shlibs" = no && can_build_shared=no
7048
7049 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7050 if test "$GCC" = yes; then
7051   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7052 fi
7053
7054 #
7055 # Do we need to explicitly link libc?
7056 #
7057 case "x$archive_cmds_need_lc" in
7058 x|xyes)
7059   # Assume -lc should be added
7060   archive_cmds_need_lc=yes
7061
7062   if test "$enable_shared" = yes && test "$GCC" = yes; then
7063     case $archive_cmds in
7064     *'~'*)
7065       # FIXME: we may have to deal with multi-command sequences.
7066       ;;
7067     '$CC '*)
7068       # Test whether the compiler implicitly links with -lc since on some
7069       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7070       # to ld, don't add -lc before -lgcc.
7071       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7072 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7073       $rm conftest*
7074       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7075
7076       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7077   (eval $ac_compile) 2>&5
7078   ac_status=$?
7079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080   (exit $ac_status); } 2>conftest.err; then
7081         soname=conftest
7082         lib=conftest
7083         libobjs=conftest.$ac_objext
7084         deplibs=
7085         wl=$lt_prog_compiler_wl
7086         compiler_flags=-v
7087         linker_flags=-v
7088         verstring=
7089         output_objdir=.
7090         libname=conftest
7091         lt_save_allow_undefined_flag=$allow_undefined_flag
7092         allow_undefined_flag=
7093         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7094   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7095   ac_status=$?
7096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097   (exit $ac_status); }
7098         then
7099           archive_cmds_need_lc=no
7100         else
7101           archive_cmds_need_lc=yes
7102         fi
7103         allow_undefined_flag=$lt_save_allow_undefined_flag
7104       else
7105         cat conftest.err 1>&5
7106       fi
7107       $rm conftest*
7108       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7109 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7110       ;;
7111     esac
7112   fi
7113   ;;
7114 esac
7115
7116 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7117 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7118 hardcode_action=
7119 if test -n "$hardcode_libdir_flag_spec" || \
7120    test -n "$runpath_var " || \
7121    test "X$hardcode_automatic"="Xyes" ; then
7122
7123   # We can hardcode non-existant directories.
7124   if test "$hardcode_direct" != no &&
7125      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7126      # have to relink, otherwise we might link with an installed library
7127      # when we should be linking with a yet-to-be-installed one
7128      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7129      test "$hardcode_minus_L" != no; then
7130     # Linking always hardcodes the temporary library directory.
7131     hardcode_action=relink
7132   else
7133     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7134     hardcode_action=immediate
7135   fi
7136 else
7137   # We cannot hardcode anything, or else we can only hardcode existing
7138   # directories.
7139   hardcode_action=unsupported
7140 fi
7141 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7142 echo "${ECHO_T}$hardcode_action" >&6
7143
7144 if test "$hardcode_action" = relink; then
7145   # Fast installation is not supported
7146   enable_fast_install=no
7147 elif test "$shlibpath_overrides_runpath" = yes ||
7148      test "$enable_shared" = no; then
7149   # Fast installation is not necessary
7150   enable_fast_install=needless
7151 fi
7152
7153 striplib=
7154 old_striplib=
7155 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7156 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7157 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7158   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7159   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7160   echo "$as_me:$LINENO: result: yes" >&5
7161 echo "${ECHO_T}yes" >&6
7162 else
7163 # FIXME - insert some real tests, host_os isn't really good enough
7164   case $host_os in
7165    darwin*)
7166        if test -n "$STRIP" ; then
7167          striplib="$STRIP -x"
7168          echo "$as_me:$LINENO: result: yes" >&5
7169 echo "${ECHO_T}yes" >&6
7170        else
7171   echo "$as_me:$LINENO: result: no" >&5
7172 echo "${ECHO_T}no" >&6
7173 fi
7174        ;;
7175    *)
7176   echo "$as_me:$LINENO: result: no" >&5
7177 echo "${ECHO_T}no" >&6
7178     ;;
7179   esac
7180 fi
7181
7182 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7183 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7184 library_names_spec=
7185 libname_spec='lib$name'
7186 soname_spec=
7187 shrext=".so"
7188 postinstall_cmds=
7189 postuninstall_cmds=
7190 finish_cmds=
7191 finish_eval=
7192 shlibpath_var=
7193 shlibpath_overrides_runpath=unknown
7194 version_type=none
7195 dynamic_linker="$host_os ld.so"
7196 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7197 if test "$GCC" = yes; then
7198   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7199   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7200     # if the path contains ";" then we assume it to be the separator
7201     # otherwise default to the standard path separator (i.e. ":") - it is
7202     # assumed that no part of a normal pathname contains ";" but that should
7203     # okay in the real world where ";" in dirpaths is itself problematic.
7204     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7205   else
7206     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7207   fi
7208 else
7209   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7210 fi
7211 need_lib_prefix=unknown
7212 hardcode_into_libs=no
7213
7214 # when you set need_version to no, make sure it does not cause -set_version
7215 # flags to be left without arguments
7216 need_version=unknown
7217
7218 case $host_os in
7219 aix3*)
7220   version_type=linux
7221   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7222   shlibpath_var=LIBPATH
7223
7224   # AIX 3 has no versioning support, so we append a major version to the name.
7225   soname_spec='${libname}${release}${shared_ext}$major'
7226   ;;
7227
7228 aix4* | aix5*)
7229   version_type=linux
7230   need_lib_prefix=no
7231   need_version=no
7232   hardcode_into_libs=yes
7233   if test "$host_cpu" = ia64; then
7234     # AIX 5 supports IA64
7235     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7236     shlibpath_var=LD_LIBRARY_PATH
7237   else
7238     # With GCC up to 2.95.x, collect2 would create an import file
7239     # for dependence libraries.  The import file would start with
7240     # the line `#! .'.  This would cause the generated library to
7241     # depend on `.', always an invalid library.  This was fixed in
7242     # development snapshots of GCC prior to 3.0.
7243     case $host_os in
7244       aix4 | aix4.[01] | aix4.[01].*)
7245       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7246            echo ' yes '
7247            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7248         :
7249       else
7250         can_build_shared=no
7251       fi
7252       ;;
7253     esac
7254     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7255     # soname into executable. Probably we can add versioning support to
7256     # collect2, so additional links can be useful in future.
7257     if test "$aix_use_runtimelinking" = yes; then
7258       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7259       # instead of lib<name>.a to let people know that these are not
7260       # typical AIX shared libraries.
7261       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7262     else
7263       # We preserve .a as extension for shared libraries through AIX4.2
7264       # and later when we are not doing run time linking.
7265       library_names_spec='${libname}${release}.a $libname.a'
7266       soname_spec='${libname}${release}${shared_ext}$major'
7267     fi
7268     shlibpath_var=LIBPATH
7269   fi
7270   ;;
7271
7272 amigaos*)
7273   library_names_spec='$libname.ixlibrary $libname.a'
7274   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7275   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'
7276   ;;
7277
7278 beos*)
7279   library_names_spec='${libname}${shared_ext}'
7280   dynamic_linker="$host_os ld.so"
7281   shlibpath_var=LIBRARY_PATH
7282   ;;
7283
7284 bsdi4*)
7285   version_type=linux
7286   need_version=no
7287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7288   soname_spec='${libname}${release}${shared_ext}$major'
7289   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7290   shlibpath_var=LD_LIBRARY_PATH
7291   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7292   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7293   # the default ld.so.conf also contains /usr/contrib/lib and
7294   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7295   # libtool to hard-code these into programs
7296   ;;
7297
7298 cygwin* | mingw* | pw32*)
7299   version_type=windows
7300   shrext=".dll"
7301   need_version=no
7302   need_lib_prefix=no
7303
7304   case $GCC,$host_os in
7305   yes,cygwin* | yes,mingw* | yes,pw32*)
7306     library_names_spec='$libname.dll.a'
7307     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7308     postinstall_cmds='base_file=`basename \${file}`~
7309       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7310       dldir=$destdir/`dirname \$dlpath`~
7311       test -d \$dldir || mkdir -p \$dldir~
7312       $install_prog $dir/$dlname \$dldir/$dlname'
7313     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7314       dlpath=$dir/\$dldll~
7315        $rm \$dlpath'
7316     shlibpath_overrides_runpath=yes
7317
7318     case $host_os in
7319     cygwin*)
7320       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7321       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7322       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7323       ;;
7324     mingw*)
7325       # MinGW DLLs use traditional 'lib' prefix
7326       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7327       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7328       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7329         # It is most probably a Windows format PATH printed by
7330         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7331         # path with ; separators, and with drive letters. We can handle the
7332         # drive letters (cygwin fileutils understands them), so leave them,
7333         # especially as we might pass files found there to a mingw objdump,
7334         # which wouldn't understand a cygwinified path. Ahh.
7335         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7336       else
7337         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7338       fi
7339       ;;
7340     pw32*)
7341       # pw32 DLLs use 'pw' prefix rather than 'lib'
7342       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7343       ;;
7344     esac
7345     ;;
7346
7347   *)
7348     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7349     ;;
7350   esac
7351   dynamic_linker='Win32 ld.exe'
7352   # FIXME: first we should search . and the directory the executable is in
7353   shlibpath_var=PATH
7354   ;;
7355
7356 darwin* | rhapsody*)
7357   dynamic_linker="$host_os dyld"
7358   version_type=darwin
7359   need_lib_prefix=no
7360   need_version=no
7361   # FIXME: Relying on posixy $() will cause problems for
7362   #        cross-compilation, but unfortunately the echo tests do not
7363   #        yet detect zsh echo's removal of \ escapes.
7364   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7365   soname_spec='${libname}${release}${major}$shared_ext'
7366   shlibpath_overrides_runpath=yes
7367   shlibpath_var=DYLD_LIBRARY_PATH
7368   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7369   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7370   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7371   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"`
7372   fi
7373   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7374   ;;
7375
7376 dgux*)
7377   version_type=linux
7378   need_lib_prefix=no
7379   need_version=no
7380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7381   soname_spec='${libname}${release}${shared_ext}$major'
7382   shlibpath_var=LD_LIBRARY_PATH
7383   ;;
7384
7385 freebsd1*)
7386   dynamic_linker=no
7387   ;;
7388
7389 freebsd*)
7390   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7391   version_type=freebsd-$objformat
7392   case $version_type in
7393     freebsd-elf*)
7394       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7395       need_version=no
7396       need_lib_prefix=no
7397       ;;
7398     freebsd-*)
7399       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7400       need_version=yes
7401       ;;
7402   esac
7403   shlibpath_var=LD_LIBRARY_PATH
7404   case $host_os in
7405   freebsd2*)
7406     shlibpath_overrides_runpath=yes
7407     ;;
7408   freebsd3.01* | freebsdelf3.01*)
7409     shlibpath_overrides_runpath=yes
7410     hardcode_into_libs=yes
7411     ;;
7412   *) # from 3.2 on
7413     shlibpath_overrides_runpath=no
7414     hardcode_into_libs=yes
7415     ;;
7416   esac
7417   ;;
7418
7419 gnu*)
7420   version_type=linux
7421   need_lib_prefix=no
7422   need_version=no
7423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7424   soname_spec='${libname}${release}${shared_ext}$major'
7425   shlibpath_var=LD_LIBRARY_PATH
7426   hardcode_into_libs=yes
7427   ;;
7428
7429 hpux9* | hpux10* | hpux11*)
7430   # Give a soname corresponding to the major version so that dld.sl refuses to
7431   # link against other versions.
7432   version_type=sunos
7433   need_lib_prefix=no
7434   need_version=no
7435   case "$host_cpu" in
7436   ia64*)
7437     shrext='.so'
7438     hardcode_into_libs=yes
7439     dynamic_linker="$host_os dld.so"
7440     shlibpath_var=LD_LIBRARY_PATH
7441     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7443     soname_spec='${libname}${release}${shared_ext}$major'
7444     if test "X$HPUX_IA64_MODE" = X32; then
7445       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7446     else
7447       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7448     fi
7449     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7450     ;;
7451    hppa*64*)
7452      shrext='.sl'
7453      hardcode_into_libs=yes
7454      dynamic_linker="$host_os dld.sl"
7455      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7456      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7457      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7458      soname_spec='${libname}${release}${shared_ext}$major'
7459      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7460      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7461      ;;
7462    *)
7463     shrext='.sl'
7464     dynamic_linker="$host_os dld.sl"
7465     shlibpath_var=SHLIB_PATH
7466     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7467     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7468     soname_spec='${libname}${release}${shared_ext}$major'
7469     ;;
7470   esac
7471   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7472   postinstall_cmds='chmod 555 $lib'
7473   ;;
7474
7475 irix5* | irix6* | nonstopux*)
7476   case $host_os in
7477     nonstopux*) version_type=nonstopux ;;
7478     *)
7479         if test "$lt_cv_prog_gnu_ld" = yes; then
7480                 version_type=linux
7481         else
7482                 version_type=irix
7483         fi ;;
7484   esac
7485   need_lib_prefix=no
7486   need_version=no
7487   soname_spec='${libname}${release}${shared_ext}$major'
7488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7489   case $host_os in
7490   irix5* | nonstopux*)
7491     libsuff= shlibsuff=
7492     ;;
7493   *)
7494     case $LD in # libtool.m4 will add one of these switches to LD
7495     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7496       libsuff= shlibsuff= libmagic=32-bit;;
7497     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7498       libsuff=32 shlibsuff=N32 libmagic=N32;;
7499     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7500       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7501     *) libsuff= shlibsuff= libmagic=never-match;;
7502     esac
7503     ;;
7504   esac
7505   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7506   shlibpath_overrides_runpath=no
7507   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7508   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7509   hardcode_into_libs=yes
7510   ;;
7511
7512 # No shared lib support for Linux oldld, aout, or coff.
7513 linux*oldld* | linux*aout* | linux*coff*)
7514   dynamic_linker=no
7515   ;;
7516
7517 # This must be Linux ELF.
7518 linux*)
7519   version_type=linux
7520   need_lib_prefix=no
7521   need_version=no
7522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7523   soname_spec='${libname}${release}${shared_ext}$major'
7524   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7525   shlibpath_var=LD_LIBRARY_PATH
7526   shlibpath_overrides_runpath=no
7527   # This implies no fast_install, which is unacceptable.
7528   # Some rework will be needed to allow for fast_install
7529   # before this can be enabled.
7530   hardcode_into_libs=yes
7531
7532   # We used to test for /lib/ld.so.1 and disable shared libraries on
7533   # powerpc, because MkLinux only supported shared libraries with the
7534   # GNU dynamic linker.  Since this was broken with cross compilers,
7535   # most powerpc-linux boxes support dynamic linking these days and
7536   # people can always --disable-shared, the test was removed, and we
7537   # assume the GNU/Linux dynamic linker is in use.
7538   dynamic_linker='GNU/Linux ld.so'
7539   ;;
7540
7541 netbsd*)
7542   version_type=sunos
7543   need_lib_prefix=no
7544   need_version=no
7545   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7546     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7547     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7548     dynamic_linker='NetBSD (a.out) ld.so'
7549   else
7550     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7551     soname_spec='${libname}${release}${shared_ext}$major'
7552     dynamic_linker='NetBSD ld.elf_so'
7553   fi
7554   shlibpath_var=LD_LIBRARY_PATH
7555   shlibpath_overrides_runpath=yes
7556   hardcode_into_libs=yes
7557   ;;
7558
7559 newsos6)
7560   version_type=linux
7561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7562   shlibpath_var=LD_LIBRARY_PATH
7563   shlibpath_overrides_runpath=yes
7564   ;;
7565
7566 nto-qnx)
7567   version_type=linux
7568   need_lib_prefix=no
7569   need_version=no
7570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7571   soname_spec='${libname}${release}${shared_ext}$major'
7572   shlibpath_var=LD_LIBRARY_PATH
7573   shlibpath_overrides_runpath=yes
7574   ;;
7575
7576 openbsd*)
7577   version_type=sunos
7578   need_lib_prefix=no
7579   need_version=no
7580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7581   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7582   shlibpath_var=LD_LIBRARY_PATH
7583   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7584     case $host_os in
7585       openbsd2.[89] | openbsd2.[89].*)
7586         shlibpath_overrides_runpath=no
7587         ;;
7588       *)
7589         shlibpath_overrides_runpath=yes
7590         ;;
7591       esac
7592   else
7593     shlibpath_overrides_runpath=yes
7594   fi
7595   ;;
7596
7597 os2*)
7598   libname_spec='$name'
7599   shrext=".dll"
7600   need_lib_prefix=no
7601   library_names_spec='$libname${shared_ext} $libname.a'
7602   dynamic_linker='OS/2 ld.exe'
7603   shlibpath_var=LIBPATH
7604   ;;
7605
7606 osf3* | osf4* | osf5*)
7607   version_type=osf
7608   need_lib_prefix=no
7609   need_version=no
7610   soname_spec='${libname}${release}${shared_ext}$major'
7611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7612   shlibpath_var=LD_LIBRARY_PATH
7613   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7614   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7615   ;;
7616
7617 sco3.2v5*)
7618   version_type=osf
7619   soname_spec='${libname}${release}${shared_ext}$major'
7620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7621   shlibpath_var=LD_LIBRARY_PATH
7622   ;;
7623
7624 solaris*)
7625   version_type=linux
7626   need_lib_prefix=no
7627   need_version=no
7628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7629   soname_spec='${libname}${release}${shared_ext}$major'
7630   shlibpath_var=LD_LIBRARY_PATH
7631   shlibpath_overrides_runpath=yes
7632   hardcode_into_libs=yes
7633   # ldd complains unless libraries are executable
7634   postinstall_cmds='chmod +x $lib'
7635   ;;
7636
7637 sunos4*)
7638   version_type=sunos
7639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7640   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7641   shlibpath_var=LD_LIBRARY_PATH
7642   shlibpath_overrides_runpath=yes
7643   if test "$with_gnu_ld" = yes; then
7644     need_lib_prefix=no
7645   fi
7646   need_version=yes
7647   ;;
7648
7649 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7650   version_type=linux
7651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7652   soname_spec='${libname}${release}${shared_ext}$major'
7653   shlibpath_var=LD_LIBRARY_PATH
7654   case $host_vendor in
7655     sni)
7656       shlibpath_overrides_runpath=no
7657       need_lib_prefix=no
7658       export_dynamic_flag_spec='${wl}-Blargedynsym'
7659       runpath_var=LD_RUN_PATH
7660       ;;
7661     siemens)
7662       need_lib_prefix=no
7663       ;;
7664     motorola)
7665       need_lib_prefix=no
7666       need_version=no
7667       shlibpath_overrides_runpath=no
7668       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7669       ;;
7670   esac
7671   ;;
7672
7673 sysv4*MP*)
7674   if test -d /usr/nec ;then
7675     version_type=linux
7676     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7677     soname_spec='$libname${shared_ext}.$major'
7678     shlibpath_var=LD_LIBRARY_PATH
7679   fi
7680   ;;
7681
7682 uts4*)
7683   version_type=linux
7684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7685   soname_spec='${libname}${release}${shared_ext}$major'
7686   shlibpath_var=LD_LIBRARY_PATH
7687   ;;
7688
7689 *)
7690   dynamic_linker=no
7691   ;;
7692 esac
7693 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7694 echo "${ECHO_T}$dynamic_linker" >&6
7695 test "$dynamic_linker" = no && can_build_shared=no
7696
7697 if test "x$enable_dlopen" != xyes; then
7698   enable_dlopen=unknown
7699   enable_dlopen_self=unknown
7700   enable_dlopen_self_static=unknown
7701 else
7702   lt_cv_dlopen=no
7703   lt_cv_dlopen_libs=
7704
7705   case $host_os in
7706   beos*)
7707     lt_cv_dlopen="load_add_on"
7708     lt_cv_dlopen_libs=
7709     lt_cv_dlopen_self=yes
7710     ;;
7711
7712   mingw* | pw32*)
7713     lt_cv_dlopen="LoadLibrary"
7714     lt_cv_dlopen_libs=
7715    ;;
7716
7717   cygwin*)
7718     lt_cv_dlopen="dlopen"
7719     lt_cv_dlopen_libs=
7720    ;;
7721
7722   darwin*)
7723   # if libdl is installed we need to link against it
7724     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7725 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7726 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7727   echo $ECHO_N "(cached) $ECHO_C" >&6
7728 else
7729   ac_check_lib_save_LIBS=$LIBS
7730 LIBS="-ldl  $LIBS"
7731 cat >conftest.$ac_ext <<_ACEOF
7732 #line $LINENO "configure"
7733 /* confdefs.h.  */
7734 _ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h.  */
7738
7739 /* Override any gcc2 internal prototype to avoid an error.  */
7740 #ifdef __cplusplus
7741 extern "C"
7742 #endif
7743 /* We use char because int might match the return type of a gcc2
7744    builtin and then its argument prototype would still apply.  */
7745 char dlopen ();
7746 int
7747 main ()
7748 {
7749 dlopen ();
7750   ;
7751   return 0;
7752 }
7753 _ACEOF
7754 rm -f conftest.$ac_objext conftest$ac_exeext
7755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7756   (eval $ac_link) 2>&5
7757   ac_status=$?
7758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759   (exit $ac_status); } &&
7760          { ac_try='test -s conftest$ac_exeext'
7761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762   (eval $ac_try) 2>&5
7763   ac_status=$?
7764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765   (exit $ac_status); }; }; then
7766   ac_cv_lib_dl_dlopen=yes
7767 else
7768   echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7770
7771 ac_cv_lib_dl_dlopen=no
7772 fi
7773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7774 LIBS=$ac_check_lib_save_LIBS
7775 fi
7776 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7777 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7778 if test $ac_cv_lib_dl_dlopen = yes; then
7779   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7780 else
7781
7782     lt_cv_dlopen="dyld"
7783     lt_cv_dlopen_libs=
7784     lt_cv_dlopen_self=yes
7785
7786 fi
7787
7788    ;;
7789
7790   *)
7791     echo "$as_me:$LINENO: checking for shl_load" >&5
7792 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7793 if test "${ac_cv_func_shl_load+set}" = set; then
7794   echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796   cat >conftest.$ac_ext <<_ACEOF
7797 #line $LINENO "configure"
7798 /* confdefs.h.  */
7799 _ACEOF
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h.  */
7803 /* System header to define __stub macros and hopefully few prototypes,
7804     which can conflict with char shl_load (); below.
7805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7806     <limits.h> exists even on freestanding compilers.  */
7807 #ifdef __STDC__
7808 # include <limits.h>
7809 #else
7810 # include <assert.h>
7811 #endif
7812 /* Override any gcc2 internal prototype to avoid an error.  */
7813 #ifdef __cplusplus
7814 extern "C"
7815 {
7816 #endif
7817 /* We use char because int might match the return type of a gcc2
7818    builtin and then its argument prototype would still apply.  */
7819 char shl_load ();
7820 /* The GNU C library defines this for functions which it implements
7821     to always fail with ENOSYS.  Some functions are actually named
7822     something starting with __ and the normal name is an alias.  */
7823 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7824 choke me
7825 #else
7826 char (*f) () = shl_load;
7827 #endif
7828 #ifdef __cplusplus
7829 }
7830 #endif
7831
7832 int
7833 main ()
7834 {
7835 return f != shl_load;
7836   ;
7837   return 0;
7838 }
7839 _ACEOF
7840 rm -f conftest.$ac_objext conftest$ac_exeext
7841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7842   (eval $ac_link) 2>&5
7843   ac_status=$?
7844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845   (exit $ac_status); } &&
7846          { ac_try='test -s conftest$ac_exeext'
7847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7848   (eval $ac_try) 2>&5
7849   ac_status=$?
7850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851   (exit $ac_status); }; }; then
7852   ac_cv_func_shl_load=yes
7853 else
7854   echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7856
7857 ac_cv_func_shl_load=no
7858 fi
7859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7860 fi
7861 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7862 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7863 if test $ac_cv_func_shl_load = yes; then
7864   lt_cv_dlopen="shl_load"
7865 else
7866   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7867 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7868 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7869   echo $ECHO_N "(cached) $ECHO_C" >&6
7870 else
7871   ac_check_lib_save_LIBS=$LIBS
7872 LIBS="-ldld  $LIBS"
7873 cat >conftest.$ac_ext <<_ACEOF
7874 #line $LINENO "configure"
7875 /* confdefs.h.  */
7876 _ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h.  */
7880
7881 /* Override any gcc2 internal prototype to avoid an error.  */
7882 #ifdef __cplusplus
7883 extern "C"
7884 #endif
7885 /* We use char because int might match the return type of a gcc2
7886    builtin and then its argument prototype would still apply.  */
7887 char shl_load ();
7888 int
7889 main ()
7890 {
7891 shl_load ();
7892   ;
7893   return 0;
7894 }
7895 _ACEOF
7896 rm -f conftest.$ac_objext conftest$ac_exeext
7897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7898   (eval $ac_link) 2>&5
7899   ac_status=$?
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); } &&
7902          { ac_try='test -s conftest$ac_exeext'
7903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904   (eval $ac_try) 2>&5
7905   ac_status=$?
7906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); }; }; then
7908   ac_cv_lib_dld_shl_load=yes
7909 else
7910   echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7912
7913 ac_cv_lib_dld_shl_load=no
7914 fi
7915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7916 LIBS=$ac_check_lib_save_LIBS
7917 fi
7918 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7919 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7920 if test $ac_cv_lib_dld_shl_load = yes; then
7921   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7922 else
7923   echo "$as_me:$LINENO: checking for dlopen" >&5
7924 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7925 if test "${ac_cv_func_dlopen+set}" = set; then
7926   echo $ECHO_N "(cached) $ECHO_C" >&6
7927 else
7928   cat >conftest.$ac_ext <<_ACEOF
7929 #line $LINENO "configure"
7930 /* confdefs.h.  */
7931 _ACEOF
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h.  */
7935 /* System header to define __stub macros and hopefully few prototypes,
7936     which can conflict with char dlopen (); below.
7937     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7938     <limits.h> exists even on freestanding compilers.  */
7939 #ifdef __STDC__
7940 # include <limits.h>
7941 #else
7942 # include <assert.h>
7943 #endif
7944 /* Override any gcc2 internal prototype to avoid an error.  */
7945 #ifdef __cplusplus
7946 extern "C"
7947 {
7948 #endif
7949 /* We use char because int might match the return type of a gcc2
7950    builtin and then its argument prototype would still apply.  */
7951 char dlopen ();
7952 /* The GNU C library defines this for functions which it implements
7953     to always fail with ENOSYS.  Some functions are actually named
7954     something starting with __ and the normal name is an alias.  */
7955 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7956 choke me
7957 #else
7958 char (*f) () = dlopen;
7959 #endif
7960 #ifdef __cplusplus
7961 }
7962 #endif
7963
7964 int
7965 main ()
7966 {
7967 return f != dlopen;
7968   ;
7969   return 0;
7970 }
7971 _ACEOF
7972 rm -f conftest.$ac_objext conftest$ac_exeext
7973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7974   (eval $ac_link) 2>&5
7975   ac_status=$?
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); } &&
7978          { ac_try='test -s conftest$ac_exeext'
7979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7980   (eval $ac_try) 2>&5
7981   ac_status=$?
7982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983   (exit $ac_status); }; }; then
7984   ac_cv_func_dlopen=yes
7985 else
7986   echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7988
7989 ac_cv_func_dlopen=no
7990 fi
7991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7992 fi
7993 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7994 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7995 if test $ac_cv_func_dlopen = yes; then
7996   lt_cv_dlopen="dlopen"
7997 else
7998   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7999 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8000 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8001   echo $ECHO_N "(cached) $ECHO_C" >&6
8002 else
8003   ac_check_lib_save_LIBS=$LIBS
8004 LIBS="-ldl  $LIBS"
8005 cat >conftest.$ac_ext <<_ACEOF
8006 #line $LINENO "configure"
8007 /* confdefs.h.  */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h.  */
8012
8013 /* Override any gcc2 internal prototype to avoid an error.  */
8014 #ifdef __cplusplus
8015 extern "C"
8016 #endif
8017 /* We use char because int might match the return type of a gcc2
8018    builtin and then its argument prototype would still apply.  */
8019 char dlopen ();
8020 int
8021 main ()
8022 {
8023 dlopen ();
8024   ;
8025   return 0;
8026 }
8027 _ACEOF
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8030   (eval $ac_link) 2>&5
8031   ac_status=$?
8032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033   (exit $ac_status); } &&
8034          { ac_try='test -s conftest$ac_exeext'
8035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036   (eval $ac_try) 2>&5
8037   ac_status=$?
8038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039   (exit $ac_status); }; }; then
8040   ac_cv_lib_dl_dlopen=yes
8041 else
8042   echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.$ac_ext >&5
8044
8045 ac_cv_lib_dl_dlopen=no
8046 fi
8047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8048 LIBS=$ac_check_lib_save_LIBS
8049 fi
8050 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8051 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8052 if test $ac_cv_lib_dl_dlopen = yes; then
8053   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8054 else
8055   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8056 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8057 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8058   echo $ECHO_N "(cached) $ECHO_C" >&6
8059 else
8060   ac_check_lib_save_LIBS=$LIBS
8061 LIBS="-lsvld  $LIBS"
8062 cat >conftest.$ac_ext <<_ACEOF
8063 #line $LINENO "configure"
8064 /* confdefs.h.  */
8065 _ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h.  */
8069
8070 /* Override any gcc2 internal prototype to avoid an error.  */
8071 #ifdef __cplusplus
8072 extern "C"
8073 #endif
8074 /* We use char because int might match the return type of a gcc2
8075    builtin and then its argument prototype would still apply.  */
8076 char dlopen ();
8077 int
8078 main ()
8079 {
8080 dlopen ();
8081   ;
8082   return 0;
8083 }
8084 _ACEOF
8085 rm -f conftest.$ac_objext conftest$ac_exeext
8086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8087   (eval $ac_link) 2>&5
8088   ac_status=$?
8089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090   (exit $ac_status); } &&
8091          { ac_try='test -s conftest$ac_exeext'
8092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093   (eval $ac_try) 2>&5
8094   ac_status=$?
8095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   (exit $ac_status); }; }; then
8097   ac_cv_lib_svld_dlopen=yes
8098 else
8099   echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8101
8102 ac_cv_lib_svld_dlopen=no
8103 fi
8104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8105 LIBS=$ac_check_lib_save_LIBS
8106 fi
8107 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8108 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8109 if test $ac_cv_lib_svld_dlopen = yes; then
8110   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8111 else
8112   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8113 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8114 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8115   echo $ECHO_N "(cached) $ECHO_C" >&6
8116 else
8117   ac_check_lib_save_LIBS=$LIBS
8118 LIBS="-ldld  $LIBS"
8119 cat >conftest.$ac_ext <<_ACEOF
8120 #line $LINENO "configure"
8121 /* confdefs.h.  */
8122 _ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h.  */
8126
8127 /* Override any gcc2 internal prototype to avoid an error.  */
8128 #ifdef __cplusplus
8129 extern "C"
8130 #endif
8131 /* We use char because int might match the return type of a gcc2
8132    builtin and then its argument prototype would still apply.  */
8133 char dld_link ();
8134 int
8135 main ()
8136 {
8137 dld_link ();
8138   ;
8139   return 0;
8140 }
8141 _ACEOF
8142 rm -f conftest.$ac_objext conftest$ac_exeext
8143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8144   (eval $ac_link) 2>&5
8145   ac_status=$?
8146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147   (exit $ac_status); } &&
8148          { ac_try='test -s conftest$ac_exeext'
8149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150   (eval $ac_try) 2>&5
8151   ac_status=$?
8152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153   (exit $ac_status); }; }; then
8154   ac_cv_lib_dld_dld_link=yes
8155 else
8156   echo "$as_me: failed program was:" >&5
8157 sed 's/^/| /' conftest.$ac_ext >&5
8158
8159 ac_cv_lib_dld_dld_link=no
8160 fi
8161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8162 LIBS=$ac_check_lib_save_LIBS
8163 fi
8164 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8165 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8166 if test $ac_cv_lib_dld_dld_link = yes; then
8167   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8168 fi
8169
8170
8171 fi
8172
8173
8174 fi
8175
8176
8177 fi
8178
8179
8180 fi
8181
8182
8183 fi
8184
8185     ;;
8186   esac
8187
8188   if test "x$lt_cv_dlopen" != xno; then
8189     enable_dlopen=yes
8190   else
8191     enable_dlopen=no
8192   fi
8193
8194   case $lt_cv_dlopen in
8195   dlopen)
8196     save_CPPFLAGS="$CPPFLAGS"
8197     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8198
8199     save_LDFLAGS="$LDFLAGS"
8200     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8201
8202     save_LIBS="$LIBS"
8203     LIBS="$lt_cv_dlopen_libs $LIBS"
8204
8205     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8206 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8207 if test "${lt_cv_dlopen_self+set}" = set; then
8208   echo $ECHO_N "(cached) $ECHO_C" >&6
8209 else
8210           if test "$cross_compiling" = yes; then :
8211   lt_cv_dlopen_self=cross
8212 else
8213   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8214   lt_status=$lt_dlunknown
8215   cat > conftest.$ac_ext <<EOF
8216 #line 8216 "configure"
8217 #include "confdefs.h"
8218
8219 #if HAVE_DLFCN_H
8220 #include <dlfcn.h>
8221 #endif
8222
8223 #include <stdio.h>
8224
8225 #ifdef RTLD_GLOBAL
8226 #  define LT_DLGLOBAL           RTLD_GLOBAL
8227 #else
8228 #  ifdef DL_GLOBAL
8229 #    define LT_DLGLOBAL         DL_GLOBAL
8230 #  else
8231 #    define LT_DLGLOBAL         0
8232 #  endif
8233 #endif
8234
8235 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8236    find out it does not work in some platform. */
8237 #ifndef LT_DLLAZY_OR_NOW
8238 #  ifdef RTLD_LAZY
8239 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8240 #  else
8241 #    ifdef DL_LAZY
8242 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8243 #    else
8244 #      ifdef RTLD_NOW
8245 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8246 #      else
8247 #        ifdef DL_NOW
8248 #          define LT_DLLAZY_OR_NOW      DL_NOW
8249 #        else
8250 #          define LT_DLLAZY_OR_NOW      0
8251 #        endif
8252 #      endif
8253 #    endif
8254 #  endif
8255 #endif
8256
8257 #ifdef __cplusplus
8258 extern "C" void exit (int);
8259 #endif
8260
8261 void fnord() { int i=42;}
8262 int main ()
8263 {
8264   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8265   int status = $lt_dlunknown;
8266
8267   if (self)
8268     {
8269       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8270       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8271       /* dlclose (self); */
8272     }
8273
8274     exit (status);
8275 }
8276 EOF
8277   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8278   (eval $ac_link) 2>&5
8279   ac_status=$?
8280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8282     (./conftest; exit; ) 2>/dev/null
8283     lt_status=$?
8284     case x$lt_status in
8285       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8286       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8287       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8288     esac
8289   else :
8290     # compilation failed
8291     lt_cv_dlopen_self=no
8292   fi
8293 fi
8294 rm -fr conftest*
8295
8296
8297 fi
8298 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8299 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8300
8301     if test "x$lt_cv_dlopen_self" = xyes; then
8302       LDFLAGS="$LDFLAGS $link_static_flag"
8303       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8304 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8305 if test "${lt_cv_dlopen_self_static+set}" = set; then
8306   echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308           if test "$cross_compiling" = yes; then :
8309   lt_cv_dlopen_self_static=cross
8310 else
8311   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8312   lt_status=$lt_dlunknown
8313   cat > conftest.$ac_ext <<EOF
8314 #line 8314 "configure"
8315 #include "confdefs.h"
8316
8317 #if HAVE_DLFCN_H
8318 #include <dlfcn.h>
8319 #endif
8320
8321 #include <stdio.h>
8322
8323 #ifdef RTLD_GLOBAL
8324 #  define LT_DLGLOBAL           RTLD_GLOBAL
8325 #else
8326 #  ifdef DL_GLOBAL
8327 #    define LT_DLGLOBAL         DL_GLOBAL
8328 #  else
8329 #    define LT_DLGLOBAL         0
8330 #  endif
8331 #endif
8332
8333 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8334    find out it does not work in some platform. */
8335 #ifndef LT_DLLAZY_OR_NOW
8336 #  ifdef RTLD_LAZY
8337 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8338 #  else
8339 #    ifdef DL_LAZY
8340 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8341 #    else
8342 #      ifdef RTLD_NOW
8343 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8344 #      else
8345 #        ifdef DL_NOW
8346 #          define LT_DLLAZY_OR_NOW      DL_NOW
8347 #        else
8348 #          define LT_DLLAZY_OR_NOW      0
8349 #        endif
8350 #      endif
8351 #    endif
8352 #  endif
8353 #endif
8354
8355 #ifdef __cplusplus
8356 extern "C" void exit (int);
8357 #endif
8358
8359 void fnord() { int i=42;}
8360 int main ()
8361 {
8362   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8363   int status = $lt_dlunknown;
8364
8365   if (self)
8366     {
8367       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8368       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8369       /* dlclose (self); */
8370     }
8371
8372     exit (status);
8373 }
8374 EOF
8375   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8376   (eval $ac_link) 2>&5
8377   ac_status=$?
8378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8380     (./conftest; exit; ) 2>/dev/null
8381     lt_status=$?
8382     case x$lt_status in
8383       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8384       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8385       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8386     esac
8387   else :
8388     # compilation failed
8389     lt_cv_dlopen_self_static=no
8390   fi
8391 fi
8392 rm -fr conftest*
8393
8394
8395 fi
8396 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8397 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8398     fi
8399
8400     CPPFLAGS="$save_CPPFLAGS"
8401     LDFLAGS="$save_LDFLAGS"
8402     LIBS="$save_LIBS"
8403     ;;
8404   esac
8405
8406   case $lt_cv_dlopen_self in
8407   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8408   *) enable_dlopen_self=unknown ;;
8409   esac
8410
8411   case $lt_cv_dlopen_self_static in
8412   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8413   *) enable_dlopen_self_static=unknown ;;
8414   esac
8415 fi
8416
8417
8418 # Report which librarie types wil actually be built
8419 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8420 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8421 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8422 echo "${ECHO_T}$can_build_shared" >&6
8423
8424 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8425 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8426 test "$can_build_shared" = "no" && enable_shared=no
8427
8428 # On AIX, shared libraries and static libraries use the same namespace, and
8429 # are all built from PIC.
8430 case "$host_os" in
8431 aix3*)
8432   test "$enable_shared" = yes && enable_static=no
8433   if test -n "$RANLIB"; then
8434     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8435     postinstall_cmds='$RANLIB $lib'
8436   fi
8437   ;;
8438
8439 aix4*)
8440   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8441     test "$enable_shared" = yes && enable_static=no
8442   fi
8443   ;;
8444   darwin* | rhapsody*)
8445   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8446     archive_cmds_need_lc=no
8447     case "$host_os" in
8448     rhapsody* | darwin1.[012])
8449       allow_undefined_flag='-undefined suppress'
8450       ;;
8451     *) # Darwin 1.3 on
8452       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8453       ;;
8454     esac
8455     # FIXME: Relying on posixy $() will cause problems for
8456     #        cross-compilation, but unfortunately the echo tests do not
8457     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8458     #          `"' quotes if we put them in here... so don't!
8459                 output_verbose_link_cmd='echo'
8460     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8461     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8462     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8463                   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}'
8464                   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}'
8465     hardcode_direct=no
8466     hardcode_automatic=yes
8467     hardcode_shlibpath_var=unsupported
8468     whole_archive_flag_spec='-all_load $convenience'
8469     link_all_deplibs=yes
8470     fi
8471     ;;
8472 esac
8473 echo "$as_me:$LINENO: result: $enable_shared" >&5
8474 echo "${ECHO_T}$enable_shared" >&6
8475
8476 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8477 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8478 # Make sure either enable_shared or enable_static is yes.
8479 test "$enable_shared" = yes || enable_static=yes
8480 echo "$as_me:$LINENO: result: $enable_static" >&5
8481 echo "${ECHO_T}$enable_static" >&6
8482
8483 # The else clause should only fire when bootstrapping the
8484 # libtool distribution, otherwise you forgot to ship ltmain.sh
8485 # with your package, and you will get complaints that there are
8486 # no rules to generate ltmain.sh.
8487 if test -f "$ltmain"; then
8488   # See if we are running on zsh, and set the options which allow our commands through
8489   # without removal of \ escapes.
8490   if test -n "${ZSH_VERSION+set}" ; then
8491     setopt NO_GLOB_SUBST
8492   fi
8493   # Now quote all the things that may contain metacharacters while being
8494   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8495   # variables and quote the copies for generation of the libtool script.
8496   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8497     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8498     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8499     deplibs_check_method reload_flag reload_cmds need_locks \
8500     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8501     lt_cv_sys_global_symbol_to_c_name_address \
8502     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8503     old_postinstall_cmds old_postuninstall_cmds \
8504     compiler \
8505     CC \
8506     LD \
8507     lt_prog_compiler_wl \
8508     lt_prog_compiler_pic \
8509     lt_prog_compiler_static \
8510     lt_prog_compiler_no_builtin_flag \
8511     export_dynamic_flag_spec \
8512     thread_safe_flag_spec \
8513     whole_archive_flag_spec \
8514     enable_shared_with_static_runtimes \
8515     old_archive_cmds \
8516     old_archive_from_new_cmds \
8517     predep_objects \
8518     postdep_objects \
8519     predeps \
8520     postdeps \
8521     compiler_lib_search_path \
8522     archive_cmds \
8523     archive_expsym_cmds \
8524     postinstall_cmds \
8525     postuninstall_cmds \
8526     old_archive_from_expsyms_cmds \
8527     allow_undefined_flag \
8528     no_undefined_flag \
8529     export_symbols_cmds \
8530     hardcode_libdir_flag_spec \
8531     hardcode_libdir_flag_spec_ld \
8532     hardcode_libdir_separator \
8533     hardcode_automatic \
8534     module_cmds \
8535     module_expsym_cmds \
8536     lt_cv_prog_compiler_c_o \
8537     exclude_expsyms \
8538     include_expsyms; do
8539
8540     case $var in
8541     old_archive_cmds | \
8542     old_archive_from_new_cmds | \
8543     archive_cmds | \
8544     archive_expsym_cmds | \
8545     module_cmds | \
8546     module_expsym_cmds | \
8547     old_archive_from_expsyms_cmds | \
8548     export_symbols_cmds | \
8549     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8550     postinstall_cmds | postuninstall_cmds | \
8551     old_postinstall_cmds | old_postuninstall_cmds | \
8552     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8553       # Double-quote double-evaled strings.
8554       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8555       ;;
8556     *)
8557       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8558       ;;
8559     esac
8560   done
8561
8562   case $lt_echo in
8563   *'\$0 --fallback-echo"')
8564     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8565     ;;
8566   esac
8567
8568 cfgfile="${ofile}T"
8569   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8570   $rm -f "$cfgfile"
8571   { echo "$as_me:$LINENO: creating $ofile" >&5
8572 echo "$as_me: creating $ofile" >&6;}
8573
8574   cat <<__EOF__ >> "$cfgfile"
8575 #! $SHELL
8576
8577 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8578 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8579 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8580 #
8581 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8582 # Free Software Foundation, Inc.
8583 #
8584 # This file is part of GNU Libtool:
8585 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8586 #
8587 # This program is free software; you can redistribute it and/or modify
8588 # it under the terms of the GNU General Public License as published by
8589 # the Free Software Foundation; either version 2 of the License, or
8590 # (at your option) any later version.
8591 #
8592 # This program is distributed in the hope that it will be useful, but
8593 # WITHOUT ANY WARRANTY; without even the implied warranty of
8594 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8595 # General Public License for more details.
8596 #
8597 # You should have received a copy of the GNU General Public License
8598 # along with this program; if not, write to the Free Software
8599 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8600 #
8601 # As a special exception to the GNU General Public License, if you
8602 # distribute this file as part of a program that contains a
8603 # configuration script generated by Autoconf, you may include it under
8604 # the same distribution terms that you use for the rest of that program.
8605
8606 # A sed program that does not truncate output.
8607 SED=$lt_SED
8608
8609 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8610 Xsed="$SED -e s/^X//"
8611
8612 # The HP-UX ksh and POSIX shell print the target directory to stdout
8613 # if CDPATH is set.
8614 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8615
8616 # The names of the tagged configurations supported by this script.
8617 available_tags=
8618
8619 # ### BEGIN LIBTOOL CONFIG
8620
8621 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8622
8623 # Shell to use when invoking shell scripts.
8624 SHELL=$lt_SHELL
8625
8626 # Whether or not to build shared libraries.
8627 build_libtool_libs=$enable_shared
8628
8629 # Whether or not to build static libraries.
8630 build_old_libs=$enable_static
8631
8632 # Whether or not to add -lc for building shared libraries.
8633 build_libtool_need_lc=$archive_cmds_need_lc
8634
8635 # Whether or not to disallow shared libs when runtime libs are static
8636 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8637
8638 # Whether or not to optimize for fast installation.
8639 fast_install=$enable_fast_install
8640
8641 # The host system.
8642 host_alias=$host_alias
8643 host=$host
8644
8645 # An echo program that does not interpret backslashes.
8646 echo=$lt_echo
8647
8648 # The archiver.
8649 AR=$lt_AR
8650 AR_FLAGS=$lt_AR_FLAGS
8651
8652 # A C compiler.
8653 LTCC=$lt_LTCC
8654
8655 # A language-specific compiler.
8656 CC=$lt_compiler
8657
8658 # Is the compiler the GNU C compiler?
8659 with_gcc=$GCC
8660
8661 # An ERE matcher.
8662 EGREP=$lt_EGREP
8663
8664 # The linker used to build libraries.
8665 LD=$lt_LD
8666
8667 # Whether we need hard or soft links.
8668 LN_S=$lt_LN_S
8669
8670 # A BSD-compatible nm program.
8671 NM=$lt_NM
8672
8673 # A symbol stripping program
8674 STRIP=$STRIP
8675
8676 # Used to examine libraries when file_magic_cmd begins "file"
8677 MAGIC_CMD=$MAGIC_CMD
8678
8679 # Used on cygwin: DLL creation program.
8680 DLLTOOL="$DLLTOOL"
8681
8682 # Used on cygwin: object dumper.
8683 OBJDUMP="$OBJDUMP"
8684
8685 # Used on cygwin: assembler.
8686 AS="$AS"
8687
8688 # The name of the directory that contains temporary libtool files.
8689 objdir=$objdir
8690
8691 # How to create reloadable object files.
8692 reload_flag=$lt_reload_flag
8693 reload_cmds=$lt_reload_cmds
8694
8695 # How to pass a linker flag through the compiler.
8696 wl=$lt_lt_prog_compiler_wl
8697
8698 # Object file suffix (normally "o").
8699 objext="$ac_objext"
8700
8701 # Old archive suffix (normally "a").
8702 libext="$libext"
8703
8704 # Shared library suffix (normally ".so").
8705 shrext='$shrext'
8706
8707 # Executable file suffix (normally "").
8708 exeext="$exeext"
8709
8710 # Additional compiler flags for building library objects.
8711 pic_flag=$lt_lt_prog_compiler_pic
8712 pic_mode=$pic_mode
8713
8714 # What is the maximum length of a command?
8715 max_cmd_len=$lt_cv_sys_max_cmd_len
8716
8717 # Does compiler simultaneously support -c and -o options?
8718 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8719
8720 # Must we lock files when doing compilation ?
8721 need_locks=$lt_need_locks
8722
8723 # Do we need the lib prefix for modules?
8724 need_lib_prefix=$need_lib_prefix
8725
8726 # Do we need a version for libraries?
8727 need_version=$need_version
8728
8729 # Whether dlopen is supported.
8730 dlopen_support=$enable_dlopen
8731
8732 # Whether dlopen of programs is supported.
8733 dlopen_self=$enable_dlopen_self
8734
8735 # Whether dlopen of statically linked programs is supported.
8736 dlopen_self_static=$enable_dlopen_self_static
8737
8738 # Compiler flag to prevent dynamic linking.
8739 link_static_flag=$lt_lt_prog_compiler_static
8740
8741 # Compiler flag to turn off builtin functions.
8742 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8743
8744 # Compiler flag to allow reflexive dlopens.
8745 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8746
8747 # Compiler flag to generate shared objects directly from archives.
8748 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8749
8750 # Compiler flag to generate thread-safe objects.
8751 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8752
8753 # Library versioning type.
8754 version_type=$version_type
8755
8756 # Format of library name prefix.
8757 libname_spec=$lt_libname_spec
8758
8759 # List of archive names.  First name is the real one, the rest are links.
8760 # The last name is the one that the linker finds with -lNAME.
8761 library_names_spec=$lt_library_names_spec
8762
8763 # The coded name of the library, if different from the real name.
8764 soname_spec=$lt_soname_spec
8765
8766 # Commands used to build and install an old-style archive.
8767 RANLIB=$lt_RANLIB
8768 old_archive_cmds=$lt_old_archive_cmds
8769 old_postinstall_cmds=$lt_old_postinstall_cmds
8770 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8771
8772 # Create an old-style archive from a shared archive.
8773 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8774
8775 # Create a temporary old-style archive to link instead of a shared archive.
8776 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8777
8778 # Commands used to build and install a shared archive.
8779 archive_cmds=$lt_archive_cmds
8780 archive_expsym_cmds=$lt_archive_expsym_cmds
8781 postinstall_cmds=$lt_postinstall_cmds
8782 postuninstall_cmds=$lt_postuninstall_cmds
8783
8784 # Commands used to build a loadable module (assumed same as above if empty)
8785 module_cmds=$lt_module_cmds
8786 module_expsym_cmds=$lt_module_expsym_cmds
8787
8788 # Commands to strip libraries.
8789 old_striplib=$lt_old_striplib
8790 striplib=$lt_striplib
8791
8792 # Dependencies to place before the objects being linked to create a
8793 # shared library.
8794 predep_objects=$lt_predep_objects
8795
8796 # Dependencies to place after the objects being linked to create a
8797 # shared library.
8798 postdep_objects=$lt_postdep_objects
8799
8800 # Dependencies to place before the objects being linked to create a
8801 # shared library.
8802 predeps=$lt_predeps
8803
8804 # Dependencies to place after the objects being linked to create a
8805 # shared library.
8806 postdeps=$lt_postdeps
8807
8808 # The library search path used internally by the compiler when linking
8809 # a shared library.
8810 compiler_lib_search_path=$lt_compiler_lib_search_path
8811
8812 # Method to check whether dependent libraries are shared objects.
8813 deplibs_check_method=$lt_deplibs_check_method
8814
8815 # Command to use when deplibs_check_method == file_magic.
8816 file_magic_cmd=$lt_file_magic_cmd
8817
8818 # Flag that allows shared libraries with undefined symbols to be built.
8819 allow_undefined_flag=$lt_allow_undefined_flag
8820
8821 # Flag that forces no undefined symbols.
8822 no_undefined_flag=$lt_no_undefined_flag
8823
8824 # Commands used to finish a libtool library installation in a directory.
8825 finish_cmds=$lt_finish_cmds
8826
8827 # Same as above, but a single script fragment to be evaled but not shown.
8828 finish_eval=$lt_finish_eval
8829
8830 # Take the output of nm and produce a listing of raw symbols and C names.
8831 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8832
8833 # Transform the output of nm in a proper C declaration
8834 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8835
8836 # Transform the output of nm in a C name address pair
8837 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8838
8839 # This is the shared library runtime path variable.
8840 runpath_var=$runpath_var
8841
8842 # This is the shared library path variable.
8843 shlibpath_var=$shlibpath_var
8844
8845 # Is shlibpath searched before the hard-coded library search path?
8846 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8847
8848 # How to hardcode a shared library path into an executable.
8849 hardcode_action=$hardcode_action
8850
8851 # Whether we should hardcode library paths into libraries.
8852 hardcode_into_libs=$hardcode_into_libs
8853
8854 # Flag to hardcode \$libdir into a binary during linking.
8855 # This must work even if \$libdir does not exist.
8856 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8857
8858 # If ld is used when linking, flag to hardcode \$libdir into
8859 # a binary during linking. This must work even if \$libdir does
8860 # not exist.
8861 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8862
8863 # Whether we need a single -rpath flag with a separated argument.
8864 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8865
8866 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8867 # resulting binary.
8868 hardcode_direct=$hardcode_direct
8869
8870 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8871 # resulting binary.
8872 hardcode_minus_L=$hardcode_minus_L
8873
8874 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8875 # the resulting binary.
8876 hardcode_shlibpath_var=$hardcode_shlibpath_var
8877
8878 # Set to yes if building a shared library automatically hardcodes DIR into the library
8879 # and all subsequent libraries and executables linked against it.
8880 hardcode_automatic=$hardcode_automatic
8881
8882 # Variables whose values should be saved in libtool wrapper scripts and
8883 # restored at relink time.
8884 variables_saved_for_relink="$variables_saved_for_relink"
8885
8886 # Whether libtool must link a program against all its dependency libraries.
8887 link_all_deplibs=$link_all_deplibs
8888
8889 # Compile-time system search path for libraries
8890 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8891
8892 # Run-time system search path for libraries
8893 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8894
8895 # Fix the shell variable \$srcfile for the compiler.
8896 fix_srcfile_path="$fix_srcfile_path"
8897
8898 # Set to yes if exported symbols are required.
8899 always_export_symbols=$always_export_symbols
8900
8901 # The commands to list exported symbols.
8902 export_symbols_cmds=$lt_export_symbols_cmds
8903
8904 # The commands to extract the exported symbol list from a shared archive.
8905 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8906
8907 # Symbols that should not be listed in the preloaded symbols.
8908 exclude_expsyms=$lt_exclude_expsyms
8909
8910 # Symbols that must always be exported.
8911 include_expsyms=$lt_include_expsyms
8912
8913 # ### END LIBTOOL CONFIG
8914
8915 __EOF__
8916
8917
8918   case $host_os in
8919   aix3*)
8920     cat <<\EOF >> "$cfgfile"
8921
8922 # AIX sometimes has problems with the GCC collect2 program.  For some
8923 # reason, if we set the COLLECT_NAMES environment variable, the problems
8924 # vanish in a puff of smoke.
8925 if test "X${COLLECT_NAMES+set}" != Xset; then
8926   COLLECT_NAMES=
8927   export COLLECT_NAMES
8928 fi
8929 EOF
8930     ;;
8931   esac
8932
8933   # We use sed instead of cat because bash on DJGPP gets confused if
8934   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8935   # text mode, it properly converts lines to CR/LF.  This bash problem
8936   # is reportedly fixed, but why not run on old versions too?
8937   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8938
8939   mv -f "$cfgfile" "$ofile" || \
8940     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8941   chmod +x "$ofile"
8942
8943 else
8944   # If there is no Makefile yet, we rely on a make rule to execute
8945   # `config.status --recheck' to rerun these tests and create the
8946   # libtool script then.
8947   test -f Makefile && make "$ltmain"
8948 fi
8949
8950
8951 ac_ext=c
8952 ac_cpp='$CPP $CPPFLAGS'
8953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8956
8957 CC="$lt_save_CC"
8958
8959
8960 # Check whether --with-tags or --without-tags was given.
8961 if test "${with_tags+set}" = set; then
8962   withval="$with_tags"
8963   tagnames="$withval"
8964 fi;
8965
8966 if test -f "$ltmain" && test -n "$tagnames"; then
8967   if test ! -f "${ofile}"; then
8968     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8969 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8970   fi
8971
8972   if test -z "$LTCC"; then
8973     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8974     if test -z "$LTCC"; then
8975       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8976 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8977     else
8978       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8979 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8980     fi
8981   fi
8982
8983   # Extract list of available tagged configurations in $ofile.
8984   # Note that this assumes the entire list is on one line.
8985   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8986
8987   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8988   for tagname in $tagnames; do
8989     IFS="$lt_save_ifs"
8990     # Check whether tagname contains only valid characters
8991     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8992     "") ;;
8993     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8994 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8995    { (exit 1); exit 1; }; }
8996         ;;
8997     esac
8998
8999     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9000     then
9001       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9002 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9003    { (exit 1); exit 1; }; }
9004     fi
9005
9006     # Update the list of available tags.
9007     if test -n "$tagname"; then
9008       echo appending configuration tag \"$tagname\" to $ofile
9009
9010       case $tagname in
9011       CXX)
9012         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9013           ac_ext=cc
9014 ac_cpp='$CXXCPP $CPPFLAGS'
9015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9018
9019
9020
9021
9022 archive_cmds_need_lc_CXX=no
9023 allow_undefined_flag_CXX=
9024 always_export_symbols_CXX=no
9025 archive_expsym_cmds_CXX=
9026 export_dynamic_flag_spec_CXX=
9027 hardcode_direct_CXX=no
9028 hardcode_libdir_flag_spec_CXX=
9029 hardcode_libdir_flag_spec_ld_CXX=
9030 hardcode_libdir_separator_CXX=
9031 hardcode_minus_L_CXX=no
9032 hardcode_automatic_CXX=no
9033 module_cmds_CXX=
9034 module_expsym_cmds_CXX=
9035 link_all_deplibs_CXX=unknown
9036 old_archive_cmds_CXX=$old_archive_cmds
9037 no_undefined_flag_CXX=
9038 whole_archive_flag_spec_CXX=
9039 enable_shared_with_static_runtimes_CXX=no
9040
9041 # Dependencies to place before and after the object being linked:
9042 predep_objects_CXX=
9043 postdep_objects_CXX=
9044 predeps_CXX=
9045 postdeps_CXX=
9046 compiler_lib_search_path_CXX=
9047
9048 # Source file extension for C++ test sources.
9049 ac_ext=cc
9050
9051 # Object file extension for compiled C++ test sources.
9052 objext=o
9053 objext_CXX=$objext
9054
9055 # Code to be used in simple compile tests
9056 lt_simple_compile_test_code="int some_variable = 0;\n"
9057
9058 # Code to be used in simple link tests
9059 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9060
9061 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9062
9063 # If no C compiler was specified, use CC.
9064 LTCC=${LTCC-"$CC"}
9065
9066 # Allow CC to be a program name with arguments.
9067 compiler=$CC
9068
9069
9070 # Allow CC to be a program name with arguments.
9071 lt_save_CC=$CC
9072 lt_save_LD=$LD
9073 lt_save_GCC=$GCC
9074 GCC=$GXX
9075 lt_save_with_gnu_ld=$with_gnu_ld
9076 lt_save_path_LD=$lt_cv_path_LD
9077 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9078   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9079 else
9080   unset lt_cv_prog_gnu_ld
9081 fi
9082 if test -n "${lt_cv_path_LDCXX+set}"; then
9083   lt_cv_path_LD=$lt_cv_path_LDCXX
9084 else
9085   unset lt_cv_path_LD
9086 fi
9087 test -z "${LDCXX+set}" || LD=$LDCXX
9088 CC=${CXX-"c++"}
9089 compiler=$CC
9090 compiler_CXX=$CC
9091 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9092
9093 # We don't want -fno-exception wen compiling C++ code, so set the
9094 # no_builtin_flag separately
9095 if test "$GXX" = yes; then
9096   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9097 else
9098   lt_prog_compiler_no_builtin_flag_CXX=
9099 fi
9100
9101 if test "$GXX" = yes; then
9102   # Set up default GNU C++ configuration
9103
9104
9105 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9106 if test "${with_gnu_ld+set}" = set; then
9107   withval="$with_gnu_ld"
9108   test "$withval" = no || with_gnu_ld=yes
9109 else
9110   with_gnu_ld=no
9111 fi;
9112 ac_prog=ld
9113 if test "$GCC" = yes; then
9114   # Check if gcc -print-prog-name=ld gives a path.
9115   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9116 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9117   case $host in
9118   *-*-mingw*)
9119     # gcc leaves a trailing carriage return which upsets mingw
9120     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9121   *)
9122     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9123   esac
9124   case $ac_prog in
9125     # Accept absolute paths.
9126     [\\/]* | ?:[\\/]*)
9127       re_direlt='/[^/][^/]*/\.\./'
9128       # Canonicalize the path of ld
9129       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9130       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9131         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9132       done
9133       test -z "$LD" && LD="$ac_prog"
9134       ;;
9135   "")
9136     # If it fails, then pretend we aren't using GCC.
9137     ac_prog=ld
9138     ;;
9139   *)
9140     # If it is relative, then search for the first ld in PATH.
9141     with_gnu_ld=unknown
9142     ;;
9143   esac
9144 elif test "$with_gnu_ld" = yes; then
9145   echo "$as_me:$LINENO: checking for GNU ld" >&5
9146 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9147 else
9148   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9149 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9150 fi
9151 if test "${lt_cv_path_LD+set}" = set; then
9152   echo $ECHO_N "(cached) $ECHO_C" >&6
9153 else
9154   if test -z "$LD"; then
9155   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9156   for ac_dir in $PATH; do
9157     IFS="$lt_save_ifs"
9158     test -z "$ac_dir" && ac_dir=.
9159     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9160       lt_cv_path_LD="$ac_dir/$ac_prog"
9161       # Check to see if the program is GNU ld.  I'd rather use --version,
9162       # but apparently some GNU ld's only accept -v.
9163       # Break only if it was the GNU/non-GNU ld that we prefer.
9164       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9165       *GNU* | *'with BFD'*)
9166         test "$with_gnu_ld" != no && break
9167         ;;
9168       *)
9169         test "$with_gnu_ld" != yes && break
9170         ;;
9171       esac
9172     fi
9173   done
9174   IFS="$lt_save_ifs"
9175 else
9176   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9177 fi
9178 fi
9179
9180 LD="$lt_cv_path_LD"
9181 if test -n "$LD"; then
9182   echo "$as_me:$LINENO: result: $LD" >&5
9183 echo "${ECHO_T}$LD" >&6
9184 else
9185   echo "$as_me:$LINENO: result: no" >&5
9186 echo "${ECHO_T}no" >&6
9187 fi
9188 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9189 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9190    { (exit 1); exit 1; }; }
9191 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9192 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9193 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9194   echo $ECHO_N "(cached) $ECHO_C" >&6
9195 else
9196   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9197 case `"$LD" -v 2>&1 </dev/null` in
9198 *GNU* | *'with BFD'*)
9199   lt_cv_prog_gnu_ld=yes
9200   ;;
9201 *)
9202   lt_cv_prog_gnu_ld=no
9203   ;;
9204 esac
9205 fi
9206 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9207 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9208 with_gnu_ld=$lt_cv_prog_gnu_ld
9209
9210
9211
9212   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9213   # archiving commands below assume that GNU ld is being used.
9214   if test "$with_gnu_ld" = yes; then
9215     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9216     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'
9217
9218     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9219     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9220
9221     # If archive_cmds runs LD, not CC, wlarc should be empty
9222     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9223     #     investigate it a little bit more. (MM)
9224     wlarc='${wl}'
9225
9226     # ancient GNU ld didn't support --whole-archive et. al.
9227     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9228         grep 'no-whole-archive' > /dev/null; then
9229       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9230     else
9231       whole_archive_flag_spec_CXX=
9232     fi
9233   else
9234     with_gnu_ld=no
9235     wlarc=
9236
9237     # A generic and very simple default shared library creation
9238     # command for GNU C++ for the case where it uses the native
9239     # linker, instead of GNU ld.  If possible, this setting should
9240     # overridden to take advantage of the native linker features on
9241     # the platform it is being used on.
9242     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9243   fi
9244
9245   # Commands to make compiler produce verbose output that lists
9246   # what "hidden" libraries, object files and flags are used when
9247   # linking a shared library.
9248   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9249
9250 else
9251   GXX=no
9252   with_gnu_ld=no
9253   wlarc=
9254 fi
9255
9256 # PORTME: fill in a description of your system's C++ link characteristics
9257 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9258 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9259 ld_shlibs_CXX=yes
9260 case $host_os in
9261   aix3*)
9262     # FIXME: insert proper C++ library support
9263     ld_shlibs_CXX=no
9264     ;;
9265   aix4* | aix5*)
9266     if test "$host_cpu" = ia64; then
9267       # On IA64, the linker does run time linking by default, so we don't
9268       # have to do anything special.
9269       aix_use_runtimelinking=no
9270       exp_sym_flag='-Bexport'
9271       no_entry_flag=""
9272     else
9273       aix_use_runtimelinking=no
9274
9275       # Test if we are trying to use run time linking or normal
9276       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9277       # need to do runtime linking.
9278       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9279         for ld_flag in $LDFLAGS; do
9280           case $ld_flag in
9281           *-brtl*)
9282             aix_use_runtimelinking=yes
9283             break
9284             ;;
9285           esac
9286         done
9287       esac
9288
9289       exp_sym_flag='-bexport'
9290       no_entry_flag='-bnoentry'
9291     fi
9292
9293     # When large executables or shared objects are built, AIX ld can
9294     # have problems creating the table of contents.  If linking a library
9295     # or program results in "error TOC overflow" add -mminimal-toc to
9296     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9297     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9298
9299     archive_cmds_CXX=''
9300     hardcode_direct_CXX=yes
9301     hardcode_libdir_separator_CXX=':'
9302     link_all_deplibs_CXX=yes
9303
9304     if test "$GXX" = yes; then
9305       case $host_os in aix4.012|aix4.012.*)
9306       # We only want to do this on AIX 4.2 and lower, the check
9307       # below for broken collect2 doesn't work under 4.3+
9308         collect2name=`${CC} -print-prog-name=collect2`
9309         if test -f "$collect2name" && \
9310            strings "$collect2name" | grep resolve_lib_name >/dev/null
9311         then
9312           # We have reworked collect2
9313           hardcode_direct_CXX=yes
9314         else
9315           # We have old collect2
9316           hardcode_direct_CXX=unsupported
9317           # It fails to find uninstalled libraries when the uninstalled
9318           # path is not listed in the libpath.  Setting hardcode_minus_L
9319           # to unsupported forces relinking
9320           hardcode_minus_L_CXX=yes
9321           hardcode_libdir_flag_spec_CXX='-L$libdir'
9322           hardcode_libdir_separator_CXX=
9323         fi
9324       esac
9325       shared_flag='-shared'
9326     else
9327       # not using gcc
9328       if test "$host_cpu" = ia64; then
9329         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9330         # chokes on -Wl,-G. The following line is correct:
9331         shared_flag='-G'
9332       else
9333         if test "$aix_use_runtimelinking" = yes; then
9334           shared_flag='${wl}-G'
9335         else
9336           shared_flag='${wl}-bM:SRE'
9337         fi
9338       fi
9339     fi
9340
9341     # It seems that -bexpall does not export symbols beginning with
9342     # underscore (_), so it is better to generate a list of symbols to export.
9343     always_export_symbols_CXX=yes
9344     if test "$aix_use_runtimelinking" = yes; then
9345       # Warning - without using the other runtime loading flags (-brtl),
9346       # -berok will link without error, but may produce a broken library.
9347       allow_undefined_flag_CXX='-berok'
9348       # Determine the default libpath from the value encoded in an empty executable.
9349       cat >conftest.$ac_ext <<_ACEOF
9350 #line $LINENO "configure"
9351 /* confdefs.h.  */
9352 _ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h.  */
9356
9357 int
9358 main ()
9359 {
9360
9361   ;
9362   return 0;
9363 }
9364 _ACEOF
9365 rm -f conftest.$ac_objext conftest$ac_exeext
9366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9367   (eval $ac_link) 2>&5
9368   ac_status=$?
9369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370   (exit $ac_status); } &&
9371          { ac_try='test -s conftest$ac_exeext'
9372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373   (eval $ac_try) 2>&5
9374   ac_status=$?
9375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376   (exit $ac_status); }; }; then
9377
9378 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9379 }'`
9380 # Check for a 64-bit object if we didn't find anything.
9381 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; }
9382 }'`; fi
9383 else
9384   echo "$as_me: failed program was:" >&5
9385 sed 's/^/| /' conftest.$ac_ext >&5
9386
9387 fi
9388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9389 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9390
9391       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9392
9393       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"
9394      else
9395       if test "$host_cpu" = ia64; then
9396         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9397         allow_undefined_flag_CXX="-z nodefs"
9398         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"
9399       else
9400         # Determine the default libpath from the value encoded in an empty executable.
9401         cat >conftest.$ac_ext <<_ACEOF
9402 #line $LINENO "configure"
9403 /* confdefs.h.  */
9404 _ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h.  */
9408
9409 int
9410 main ()
9411 {
9412
9413   ;
9414   return 0;
9415 }
9416 _ACEOF
9417 rm -f conftest.$ac_objext conftest$ac_exeext
9418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9419   (eval $ac_link) 2>&5
9420   ac_status=$?
9421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422   (exit $ac_status); } &&
9423          { ac_try='test -s conftest$ac_exeext'
9424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9425   (eval $ac_try) 2>&5
9426   ac_status=$?
9427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428   (exit $ac_status); }; }; then
9429
9430 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9431 }'`
9432 # Check for a 64-bit object if we didn't find anything.
9433 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; }
9434 }'`; fi
9435 else
9436   echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9438
9439 fi
9440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9441 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9442
9443         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9444         # Warning - without using the other run time loading flags,
9445         # -berok will link without error, but may produce a broken library.
9446         no_undefined_flag_CXX=' ${wl}-bernotok'
9447         allow_undefined_flag_CXX=' ${wl}-berok'
9448         # -bexpall does not export symbols beginning with underscore (_)
9449         always_export_symbols_CXX=yes
9450         # Exported symbols can be pulled into shared objects from archives
9451         whole_archive_flag_spec_CXX=' '
9452         archive_cmds_need_lc_CXX=yes
9453         # This is similar to how AIX traditionally builds it's shared libraries.
9454         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'
9455       fi
9456     fi
9457     ;;
9458   chorus*)
9459     case $cc_basename in
9460       *)
9461         # FIXME: insert proper C++ library support
9462         ld_shlibs_CXX=no
9463         ;;
9464     esac
9465     ;;
9466
9467   cygwin* | mingw* | pw32*)
9468     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9469     # as there is no search path for DLLs.
9470     hardcode_libdir_flag_spec_CXX='-L$libdir'
9471     allow_undefined_flag_CXX=unsupported
9472     always_export_symbols_CXX=no
9473     enable_shared_with_static_runtimes_CXX=yes
9474
9475     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9476       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'
9477       # If the export-symbols file already is a .def file (1st line
9478       # is EXPORTS), use it as is; otherwise, prepend...
9479       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9480         cp $export_symbols $output_objdir/$soname.def;
9481       else
9482         echo EXPORTS > $output_objdir/$soname.def;
9483         cat $export_symbols >> $output_objdir/$soname.def;
9484       fi~
9485       $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'
9486     else
9487       ld_shlibs_CXX=no
9488     fi
9489   ;;
9490
9491   darwin* | rhapsody*)
9492    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9493     archive_cmds_need_lc_CXX=no
9494     case "$host_os" in
9495     rhapsody* | darwin1.[012])
9496       allow_undefined_flag_CXX='-undefined suppress'
9497       ;;
9498     *) # Darwin 1.3 on
9499       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9500       ;;
9501     esac
9502         lt_int_apple_cc_single_mod=no
9503         output_verbose_link_cmd='echo'
9504         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9505           lt_int_apple_cc_single_mod=yes
9506         fi
9507         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9508           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9509         else
9510         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'
9511       fi
9512       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9513
9514     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9515       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9516         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}'
9517       else
9518         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}'
9519       fi
9520         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}'
9521     hardcode_direct_CXX=no
9522     hardcode_automatic_CXX=yes
9523     hardcode_shlibpath_var_CXX=unsupported
9524     whole_archive_flag_spec_CXX='-all_load $convenience'
9525     link_all_deplibs_CXX=yes
9526    fi
9527     ;;
9528
9529   dgux*)
9530     case $cc_basename in
9531       ec++)
9532         # FIXME: insert proper C++ library support
9533         ld_shlibs_CXX=no
9534         ;;
9535       ghcx)
9536         # Green Hills C++ Compiler
9537         # FIXME: insert proper C++ library support
9538         ld_shlibs_CXX=no
9539         ;;
9540       *)
9541         # FIXME: insert proper C++ library support
9542         ld_shlibs_CXX=no
9543         ;;
9544     esac
9545     ;;
9546   freebsd12*)
9547     # C++ shared libraries reported to be fairly broken before switch to ELF
9548     ld_shlibs_CXX=no
9549     ;;
9550   freebsd-elf*)
9551     archive_cmds_need_lc_CXX=no
9552     ;;
9553   freebsd*)
9554     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9555     # conventions
9556     ld_shlibs_CXX=yes
9557     ;;
9558   gnu*)
9559     ;;
9560   hpux9*)
9561     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9562     hardcode_libdir_separator_CXX=:
9563     export_dynamic_flag_spec_CXX='${wl}-E'
9564     hardcode_direct_CXX=yes
9565     hardcode_minus_L_CXX=yes # Not in the search PATH,
9566                                 # but as the default
9567                                 # location of the library.
9568
9569     case $cc_basename in
9570     CC)
9571       # FIXME: insert proper C++ library support
9572       ld_shlibs_CXX=no
9573       ;;
9574     aCC)
9575       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'
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       #
9580       # There doesn't appear to be a way to prevent this compiler from
9581       # explicitly linking system object files so we need to strip them
9582       # from the output so that they don't get included in the library
9583       # dependencies.
9584       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'
9585       ;;
9586     *)
9587       if test "$GXX" = yes; then
9588         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'
9589       else
9590         # FIXME: insert proper C++ library support
9591         ld_shlibs_CXX=no
9592       fi
9593       ;;
9594     esac
9595     ;;
9596   hpux10*|hpux11*)
9597     if test $with_gnu_ld = no; then
9598       case "$host_cpu" in
9599       hppa*64*)
9600         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9601         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9602         hardcode_libdir_separator_CXX=:
9603         ;;
9604       ia64*)
9605         hardcode_libdir_flag_spec_CXX='-L$libdir'
9606         ;;
9607       *)
9608         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9609         hardcode_libdir_separator_CXX=:
9610         export_dynamic_flag_spec_CXX='${wl}-E'
9611         ;;
9612       esac
9613     fi
9614     case "$host_cpu" in
9615     hppa*64*)
9616       hardcode_direct_CXX=no
9617       hardcode_shlibpath_var_CXX=no
9618       ;;
9619     ia64*)
9620       hardcode_direct_CXX=no
9621       hardcode_shlibpath_var_CXX=no
9622       hardcode_minus_L_CXX=yes # Not in the search PATH,
9623                                               # but as the default
9624                                               # location of the library.
9625       ;;
9626     *)
9627       hardcode_direct_CXX=yes
9628       hardcode_minus_L_CXX=yes # Not in the search PATH,
9629                                               # but as the default
9630                                               # location of the library.
9631       ;;
9632     esac
9633
9634     case $cc_basename in
9635       CC)
9636         # FIXME: insert proper C++ library support
9637         ld_shlibs_CXX=no
9638         ;;
9639       aCC)
9640         case "$host_cpu" in
9641         hppa*64*|ia64*)
9642           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9643           ;;
9644         *)
9645           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9646           ;;
9647         esac
9648         # Commands to make compiler produce verbose output that lists
9649         # what "hidden" libraries, object files and flags are used when
9650         # linking a shared library.
9651         #
9652         # There doesn't appear to be a way to prevent this compiler from
9653         # explicitly linking system object files so we need to strip them
9654         # from the output so that they don't get included in the library
9655         # dependencies.
9656         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'
9657         ;;
9658       *)
9659         if test "$GXX" = yes; then
9660           if test $with_gnu_ld = no; then
9661             case "$host_cpu" in
9662             ia64*|hppa*64*)
9663               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9664               ;;
9665             *)
9666               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'
9667               ;;
9668             esac
9669           fi
9670         else
9671           # FIXME: insert proper C++ library support
9672           ld_shlibs_CXX=no
9673         fi
9674         ;;
9675     esac
9676     ;;
9677   irix5* | irix6*)
9678     case $cc_basename in
9679       CC)
9680         # SGI C++
9681         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'
9682
9683         # Archives containing C++ object files must be created using
9684         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9685         # necessary to make sure instantiated templates are included
9686         # in the archive.
9687         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9688         ;;
9689       *)
9690         if test "$GXX" = yes; then
9691           if test "$with_gnu_ld" = no; then
9692             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'
9693           else
9694             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'
9695           fi
9696         fi
9697         link_all_deplibs_CXX=yes
9698         ;;
9699     esac
9700     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9701     hardcode_libdir_separator_CXX=:
9702     ;;
9703   linux*)
9704     case $cc_basename in
9705       KCC)
9706         # Kuck and Associates, Inc. (KAI) C++ Compiler
9707
9708         # KCC will only create a shared library if the output file
9709         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9710         # to its proper name (with version) after linking.
9711         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'
9712         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'
9713         # Commands to make compiler produce verbose output that lists
9714         # what "hidden" libraries, object files and flags are used when
9715         # linking a shared library.
9716         #
9717         # There doesn't appear to be a way to prevent this compiler from
9718         # explicitly linking system object files so we need to strip them
9719         # from the output so that they don't get included in the library
9720         # dependencies.
9721         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'
9722
9723         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9724         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9725
9726         # Archives containing C++ object files must be created using
9727         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9728         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9729         ;;
9730       icpc)
9731         # Intel C++
9732         with_gnu_ld=yes
9733         archive_cmds_need_lc_CXX=no
9734         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9735         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'
9736         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9737         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9738         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9739         ;;
9740       cxx)
9741         # Compaq C++
9742         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9743         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'
9744
9745         runpath_var=LD_RUN_PATH
9746         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9747         hardcode_libdir_separator_CXX=:
9748
9749         # Commands to make compiler produce verbose output that lists
9750         # what "hidden" libraries, object files and flags are used when
9751         # linking a shared library.
9752         #
9753         # There doesn't appear to be a way to prevent this compiler from
9754         # explicitly linking system object files so we need to strip them
9755         # from the output so that they don't get included in the library
9756         # dependencies.
9757         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'
9758         ;;
9759     esac
9760     ;;
9761   lynxos*)
9762     # FIXME: insert proper C++ library support
9763     ld_shlibs_CXX=no
9764     ;;
9765   m88k*)
9766     # FIXME: insert proper C++ library support
9767     ld_shlibs_CXX=no
9768     ;;
9769   mvs*)
9770     case $cc_basename in
9771       cxx)
9772         # FIXME: insert proper C++ library support
9773         ld_shlibs_CXX=no
9774         ;;
9775       *)
9776         # FIXME: insert proper C++ library support
9777         ld_shlibs_CXX=no
9778         ;;
9779     esac
9780     ;;
9781   netbsd*)
9782     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9783       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9784       wlarc=
9785       hardcode_libdir_flag_spec_CXX='-R$libdir'
9786       hardcode_direct_CXX=yes
9787       hardcode_shlibpath_var_CXX=no
9788     fi
9789     # Workaround some broken pre-1.5 toolchains
9790     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9791     ;;
9792   osf3*)
9793     case $cc_basename in
9794       KCC)
9795         # Kuck and Associates, Inc. (KAI) C++ Compiler
9796
9797         # KCC will only create a shared library if the output file
9798         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9799         # to its proper name (with version) after linking.
9800         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'
9801
9802         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9803         hardcode_libdir_separator_CXX=:
9804
9805         # Archives containing C++ object files must be created using
9806         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9807         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9808
9809         ;;
9810       RCC)
9811         # Rational C++ 2.4.1
9812         # FIXME: insert proper C++ library support
9813         ld_shlibs_CXX=no
9814         ;;
9815       cxx)
9816         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9817         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'
9818
9819         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9820         hardcode_libdir_separator_CXX=:
9821
9822         # Commands to make compiler produce verbose output that lists
9823         # what "hidden" libraries, object files and flags are used when
9824         # linking a shared library.
9825         #
9826         # There doesn't appear to be a way to prevent this compiler from
9827         # explicitly linking system object files so we need to strip them
9828         # from the output so that they don't get included in the library
9829         # dependencies.
9830         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'
9831         ;;
9832       *)
9833         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9834           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9835           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'
9836
9837           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9838           hardcode_libdir_separator_CXX=:
9839
9840           # Commands to make compiler produce verbose output that lists
9841           # what "hidden" libraries, object files and flags are used when
9842           # linking a shared library.
9843           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9844
9845         else
9846           # FIXME: insert proper C++ library support
9847           ld_shlibs_CXX=no
9848         fi
9849         ;;
9850     esac
9851     ;;
9852   osf4* | osf5*)
9853     case $cc_basename in
9854       KCC)
9855         # Kuck and Associates, Inc. (KAI) C++ Compiler
9856
9857         # KCC will only create a shared library if the output file
9858         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9859         # to its proper name (with version) after linking.
9860         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'
9861
9862         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9863         hardcode_libdir_separator_CXX=:
9864
9865         # Archives containing C++ object files must be created using
9866         # the KAI C++ compiler.
9867         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9868         ;;
9869       RCC)
9870         # Rational C++ 2.4.1
9871         # FIXME: insert proper C++ library support
9872         ld_shlibs_CXX=no
9873         ;;
9874       cxx)
9875         allow_undefined_flag_CXX=' -expect_unresolved \*'
9876         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'
9877         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9878           echo "-hidden">> $lib.exp~
9879           $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~
9880           $rm $lib.exp'
9881
9882         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9883         hardcode_libdir_separator_CXX=:
9884
9885         # Commands to make compiler produce verbose output that lists
9886         # what "hidden" libraries, object files and flags are used when
9887         # linking a shared library.
9888         #
9889         # There doesn't appear to be a way to prevent this compiler from
9890         # explicitly linking system object files so we need to strip them
9891         # from the output so that they don't get included in the library
9892         # dependencies.
9893         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'
9894         ;;
9895       *)
9896         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9897           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9898          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'
9899
9900           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9901           hardcode_libdir_separator_CXX=:
9902
9903           # Commands to make compiler produce verbose output that lists
9904           # what "hidden" libraries, object files and flags are used when
9905           # linking a shared library.
9906           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9907
9908         else
9909           # FIXME: insert proper C++ library support
9910           ld_shlibs_CXX=no
9911         fi
9912         ;;
9913     esac
9914     ;;
9915   psos*)
9916     # FIXME: insert proper C++ library support
9917     ld_shlibs_CXX=no
9918     ;;
9919   sco*)
9920     archive_cmds_need_lc_CXX=no
9921     case $cc_basename in
9922       CC)
9923         # FIXME: insert proper C++ library support
9924         ld_shlibs_CXX=no
9925         ;;
9926       *)
9927         # FIXME: insert proper C++ library support
9928         ld_shlibs_CXX=no
9929         ;;
9930     esac
9931     ;;
9932   sunos4*)
9933     case $cc_basename in
9934       CC)
9935         # Sun C++ 4.x
9936         # FIXME: insert proper C++ library support
9937         ld_shlibs_CXX=no
9938         ;;
9939       lcc)
9940         # Lucid
9941         # FIXME: insert proper C++ library support
9942         ld_shlibs_CXX=no
9943         ;;
9944       *)
9945         # FIXME: insert proper C++ library support
9946         ld_shlibs_CXX=no
9947         ;;
9948     esac
9949     ;;
9950   solaris*)
9951     case $cc_basename in
9952       CC)
9953         # Sun C++ 4.2, 5.x and Centerline C++
9954         no_undefined_flag_CXX=' -zdefs'
9955         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9956         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9957         $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'
9958
9959         hardcode_libdir_flag_spec_CXX='-R$libdir'
9960         hardcode_shlibpath_var_CXX=no
9961         case $host_os in
9962           solaris2.0-5 | solaris2.0-5.*) ;;
9963           *)
9964             # The C++ compiler is used as linker so we must use $wl
9965             # flag to pass the commands to the underlying system
9966             # linker.
9967             # Supported since Solaris 2.6 (maybe 2.5.1?)
9968             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9969             ;;
9970         esac
9971         link_all_deplibs_CXX=yes
9972
9973         # Commands to make compiler produce verbose output that lists
9974         # what "hidden" libraries, object files and flags are used when
9975         # linking a shared library.
9976         #
9977         # There doesn't appear to be a way to prevent this compiler from
9978         # explicitly linking system object files so we need to strip them
9979         # from the output so that they don't get included in the library
9980         # dependencies.
9981         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'
9982
9983         # Archives containing C++ object files must be created using
9984         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
9985         # necessary to make sure instantiated templates are included
9986         # in the archive.
9987         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9988         ;;
9989       gcx)
9990         # Green Hills C++ Compiler
9991         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9992
9993         # The C++ compiler must be used to create the archive.
9994         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9995         ;;
9996       *)
9997         # GNU C++ compiler with Solaris linker
9998         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9999           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10000           if $CC --version | grep -v '^2\.7' > /dev/null; then
10001             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10002             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10003                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10004
10005             # Commands to make compiler produce verbose output that lists
10006             # what "hidden" libraries, object files and flags are used when
10007             # linking a shared library.
10008             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10009           else
10010             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10011             # platform.
10012             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10013             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10014                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10015
10016             # Commands to make compiler produce verbose output that lists
10017             # what "hidden" libraries, object files and flags are used when
10018             # linking a shared library.
10019             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10020           fi
10021
10022           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10023         fi
10024         ;;
10025     esac
10026     ;;
10027   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10028     archive_cmds_need_lc_CXX=no
10029     ;;
10030   tandem*)
10031     case $cc_basename in
10032       NCC)
10033         # NonStop-UX NCC 3.20
10034         # FIXME: insert proper C++ library support
10035         ld_shlibs_CXX=no
10036         ;;
10037       *)
10038         # FIXME: insert proper C++ library support
10039         ld_shlibs_CXX=no
10040         ;;
10041     esac
10042     ;;
10043   vxworks*)
10044     # FIXME: insert proper C++ library support
10045     ld_shlibs_CXX=no
10046     ;;
10047   *)
10048     # FIXME: insert proper C++ library support
10049     ld_shlibs_CXX=no
10050     ;;
10051 esac
10052 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10053 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10054 test "$ld_shlibs_CXX" = no && can_build_shared=no
10055
10056 GCC_CXX="$GXX"
10057 LD_CXX="$LD"
10058
10059
10060 cat > conftest.$ac_ext <<EOF
10061 class Foo
10062 {
10063 public:
10064   Foo (void) { a = 0; }
10065 private:
10066   int a;
10067 };
10068 EOF
10069
10070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10071   (eval $ac_compile) 2>&5
10072   ac_status=$?
10073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074   (exit $ac_status); }; then
10075   # Parse the compiler output and extract the necessary
10076   # objects, libraries and library flags.
10077
10078   # Sentinel used to keep track of whether or not we are before
10079   # the conftest object file.
10080   pre_test_object_deps_done=no
10081
10082   # The `*' in the case matches for architectures that use `case' in
10083   # $output_verbose_cmd can trigger glob expansion during the loop
10084   # eval without this substitution.
10085   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10086
10087   for p in `eval $output_verbose_link_cmd`; do
10088     case $p in
10089
10090     -L* | -R* | -l*)
10091        # Some compilers place space between "-{L,R}" and the path.
10092        # Remove the space.
10093        if test $p = "-L" \
10094           || test $p = "-R"; then
10095          prev=$p
10096          continue
10097        else
10098          prev=
10099        fi
10100
10101        if test "$pre_test_object_deps_done" = no; then
10102          case $p in
10103          -L* | -R*)
10104            # Internal compiler library paths should come after those
10105            # provided the user.  The postdeps already come after the
10106            # user supplied libs so there is no need to process them.
10107            if test -z "$compiler_lib_search_path_CXX"; then
10108              compiler_lib_search_path_CXX="${prev}${p}"
10109            else
10110              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10111            fi
10112            ;;
10113          # The "-l" case would never come before the object being
10114          # linked, so don't bother handling this case.
10115          esac
10116        else
10117          if test -z "$postdeps_CXX"; then
10118            postdeps_CXX="${prev}${p}"
10119          else
10120            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10121          fi
10122        fi
10123        ;;
10124
10125     *.$objext)
10126        # This assumes that the test object file only shows up
10127        # once in the compiler output.
10128        if test "$p" = "conftest.$objext"; then
10129          pre_test_object_deps_done=yes
10130          continue
10131        fi
10132
10133        if test "$pre_test_object_deps_done" = no; then
10134          if test -z "$predep_objects_CXX"; then
10135            predep_objects_CXX="$p"
10136          else
10137            predep_objects_CXX="$predep_objects_CXX $p"
10138          fi
10139        else
10140          if test -z "$postdep_objects_CXX"; then
10141            postdep_objects_CXX="$p"
10142          else
10143            postdep_objects_CXX="$postdep_objects_CXX $p"
10144          fi
10145        fi
10146        ;;
10147
10148     *) ;; # Ignore the rest.
10149
10150     esac
10151   done
10152
10153   # Clean up.
10154   rm -f a.out a.exe
10155 else
10156   echo "libtool.m4: error: problem compiling CXX test program"
10157 fi
10158
10159 $rm -f confest.$objext
10160
10161 case " $postdeps_CXX " in
10162 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10163 esac
10164
10165 lt_prog_compiler_wl_CXX=
10166 lt_prog_compiler_pic_CXX=
10167 lt_prog_compiler_static_CXX=
10168
10169 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10170 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10171
10172   # C++ specific cases for pic, static, wl, etc.
10173   if test "$GXX" = yes; then
10174     lt_prog_compiler_wl_CXX='-Wl,'
10175     lt_prog_compiler_static_CXX='-static'
10176
10177     case $host_os in
10178     aix*)
10179       # All AIX code is PIC.
10180       if test "$host_cpu" = ia64; then
10181         # AIX 5 now supports IA64 processor
10182         lt_prog_compiler_static_CXX='-Bstatic'
10183       fi
10184       ;;
10185     amigaos*)
10186       # FIXME: we need at least 68020 code to build shared libraries, but
10187       # adding the `-m68020' flag to GCC prevents building anything better,
10188       # like `-m68040'.
10189       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10190       ;;
10191     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10192       # PIC is the default for these OSes.
10193       ;;
10194     mingw* | os2* | pw32*)
10195       # This hack is so that the source file can tell whether it is being
10196       # built for inclusion in a dll (and should export symbols for example).
10197       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10198       ;;
10199     darwin* | rhapsody*)
10200       # PIC is the default on this platform
10201       # Common symbols not allowed in MH_DYLIB files
10202       lt_prog_compiler_pic_CXX='-fno-common'
10203       ;;
10204     *djgpp*)
10205       # DJGPP does not support shared libraries at all
10206       lt_prog_compiler_pic_CXX=
10207       ;;
10208     sysv4*MP*)
10209       if test -d /usr/nec; then
10210         lt_prog_compiler_pic_CXX=-Kconform_pic
10211       fi
10212       ;;
10213     hpux*)
10214       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10215       # not for PA HP-UX.
10216       case "$host_cpu" in
10217       hppa*64*|ia64*)
10218         ;;
10219       *)
10220         lt_prog_compiler_pic_CXX='-fPIC'
10221         ;;
10222       esac
10223       ;;
10224     *)
10225       lt_prog_compiler_pic_CXX='-fPIC'
10226       ;;
10227     esac
10228   else
10229     case $host_os in
10230       aix4* | aix5*)
10231         # All AIX code is PIC.
10232         if test "$host_cpu" = ia64; then
10233           # AIX 5 now supports IA64 processor
10234           lt_prog_compiler_static_CXX='-Bstatic'
10235         else
10236           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10237         fi
10238         ;;
10239       chorus*)
10240         case $cc_basename in
10241         cxch68)
10242           # Green Hills C++ Compiler
10243           # _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"
10244           ;;
10245         esac
10246         ;;
10247       dgux*)
10248         case $cc_basename in
10249           ec++)
10250             lt_prog_compiler_pic_CXX='-KPIC'
10251             ;;
10252           ghcx)
10253             # Green Hills C++ Compiler
10254             lt_prog_compiler_pic_CXX='-pic'
10255             ;;
10256           *)
10257             ;;
10258         esac
10259         ;;
10260       freebsd*)
10261         # FreeBSD uses GNU C++
10262         ;;
10263       hpux9* | hpux10* | hpux11*)
10264         case $cc_basename in
10265           CC)
10266             lt_prog_compiler_wl_CXX='-Wl,'
10267             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10268             if test "$host_cpu" != ia64; then
10269               lt_prog_compiler_pic_CXX='+Z'
10270             fi
10271             ;;
10272           aCC)
10273             lt_prog_compiler_wl_CXX='-Wl,'
10274             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10275             case "$host_cpu" in
10276             hppa*64*|ia64*)
10277               # +Z the default
10278               ;;
10279             *)
10280               lt_prog_compiler_pic_CXX='+Z'
10281               ;;
10282             esac
10283             ;;
10284           *)
10285             ;;
10286         esac
10287         ;;
10288       irix5* | irix6* | nonstopux*)
10289         case $cc_basename in
10290           CC)
10291             lt_prog_compiler_wl_CXX='-Wl,'
10292             lt_prog_compiler_static_CXX='-non_shared'
10293             # CC pic flag -KPIC is the default.
10294             ;;
10295           *)
10296             ;;
10297         esac
10298         ;;
10299       linux*)
10300         case $cc_basename in
10301           KCC)
10302             # KAI C++ Compiler
10303             lt_prog_compiler_wl_CXX='--backend -Wl,'
10304             lt_prog_compiler_pic_CXX='-fPIC'
10305             ;;
10306           icpc)
10307             # Intel C++
10308             lt_prog_compiler_wl_CXX='-Wl,'
10309             lt_prog_compiler_pic_CXX='-KPIC'
10310             lt_prog_compiler_static_CXX='-static'
10311             ;;
10312           cxx)
10313             # Compaq C++
10314             # Make sure the PIC flag is empty.  It appears that all Alpha
10315             # Linux and Compaq Tru64 Unix objects are PIC.
10316             lt_prog_compiler_pic_CXX=
10317             lt_prog_compiler_static_CXX='-non_shared'
10318             ;;
10319           *)
10320             ;;
10321         esac
10322         ;;
10323       lynxos*)
10324         ;;
10325       m88k*)
10326         ;;
10327       mvs*)
10328         case $cc_basename in
10329           cxx)
10330             lt_prog_compiler_pic_CXX='-W c,exportall'
10331             ;;
10332           *)
10333             ;;
10334         esac
10335         ;;
10336       netbsd*)
10337         ;;
10338       osf3* | osf4* | osf5*)
10339         case $cc_basename in
10340           KCC)
10341             lt_prog_compiler_wl_CXX='--backend -Wl,'
10342             ;;
10343           RCC)
10344             # Rational C++ 2.4.1
10345             lt_prog_compiler_pic_CXX='-pic'
10346             ;;
10347           cxx)
10348             # Digital/Compaq C++
10349             lt_prog_compiler_wl_CXX='-Wl,'
10350             # Make sure the PIC flag is empty.  It appears that all Alpha
10351             # Linux and Compaq Tru64 Unix objects are PIC.
10352             lt_prog_compiler_pic_CXX=
10353             lt_prog_compiler_static_CXX='-non_shared'
10354             ;;
10355           *)
10356             ;;
10357         esac
10358         ;;
10359       psos*)
10360         ;;
10361       sco*)
10362         case $cc_basename in
10363           CC)
10364             lt_prog_compiler_pic_CXX='-fPIC'
10365             ;;
10366           *)
10367             ;;
10368         esac
10369         ;;
10370       solaris*)
10371         case $cc_basename in
10372           CC)
10373             # Sun C++ 4.2, 5.x and Centerline C++
10374             lt_prog_compiler_pic_CXX='-KPIC'
10375             lt_prog_compiler_static_CXX='-Bstatic'
10376             lt_prog_compiler_wl_CXX='-Qoption ld '
10377             ;;
10378           gcx)
10379             # Green Hills C++ Compiler
10380             lt_prog_compiler_pic_CXX='-PIC'
10381             ;;
10382           *)
10383             ;;
10384         esac
10385         ;;
10386       sunos4*)
10387         case $cc_basename in
10388           CC)
10389             # Sun C++ 4.x
10390             lt_prog_compiler_pic_CXX='-pic'
10391             lt_prog_compiler_static_CXX='-Bstatic'
10392             ;;
10393           lcc)
10394             # Lucid
10395             lt_prog_compiler_pic_CXX='-pic'
10396             ;;
10397           *)
10398             ;;
10399         esac
10400         ;;
10401       tandem*)
10402         case $cc_basename in
10403           NCC)
10404             # NonStop-UX NCC 3.20
10405             lt_prog_compiler_pic_CXX='-KPIC'
10406             ;;
10407           *)
10408             ;;
10409         esac
10410         ;;
10411       unixware*)
10412         ;;
10413       vxworks*)
10414         ;;
10415       *)
10416         lt_prog_compiler_can_build_shared_CXX=no
10417         ;;
10418     esac
10419   fi
10420
10421 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10422 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10423
10424 #
10425 # Check to make sure the PIC flag actually works.
10426 #
10427 if test -n "$lt_prog_compiler_pic_CXX"; then
10428   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10429 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10430 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10431   echo $ECHO_N "(cached) $ECHO_C" >&6
10432 else
10433   lt_prog_compiler_pic_works_CXX=no
10434   ac_outfile=conftest.$ac_objext
10435    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10436    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10437    # Insert the option either (1) after the last *FLAGS variable, or
10438    # (2) before a word containing "conftest.", or (3) at the end.
10439    # Note that $ac_compile itself does not contain backslashes and begins
10440    # with a dollar sign (not a hyphen), so the echo should work correctly.
10441    # The option is referenced via a variable to avoid confusing sed.
10442    lt_compile=`echo "$ac_compile" | $SED \
10443    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10444    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10445    -e 's:$: $lt_compiler_flag:'`
10446    (eval echo "\"\$as_me:10446: $lt_compile\"" >&5)
10447    (eval "$lt_compile" 2>conftest.err)
10448    ac_status=$?
10449    cat conftest.err >&5
10450    echo "$as_me:10450: \$? = $ac_status" >&5
10451    if (exit $ac_status) && test -s "$ac_outfile"; then
10452      # The compiler can only warn and ignore the option if not recognized
10453      # So say no if there are warnings
10454      if test ! -s conftest.err; then
10455        lt_prog_compiler_pic_works_CXX=yes
10456      fi
10457    fi
10458    $rm conftest*
10459
10460 fi
10461 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10462 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10463
10464 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10465     case $lt_prog_compiler_pic_CXX in
10466      "" | " "*) ;;
10467      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10468      esac
10469 else
10470     lt_prog_compiler_pic_CXX=
10471      lt_prog_compiler_can_build_shared_CXX=no
10472 fi
10473
10474 fi
10475 case "$host_os" in
10476   # For platforms which do not support PIC, -DPIC is meaningless:
10477   *djgpp*)
10478     lt_prog_compiler_pic_CXX=
10479     ;;
10480   *)
10481     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10482     ;;
10483 esac
10484
10485 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10486 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10487 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10488   echo $ECHO_N "(cached) $ECHO_C" >&6
10489 else
10490   lt_cv_prog_compiler_c_o_CXX=no
10491    $rm -r conftest 2>/dev/null
10492    mkdir conftest
10493    cd conftest
10494    mkdir out
10495    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10496
10497    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10498    # that will create temporary files in the current directory regardless of
10499    # the output directory.  Thus, making CWD read-only will cause this test
10500    # to fail, enabling locking or at least warning the user not to do parallel
10501    # builds.
10502    chmod -w .
10503
10504    lt_compiler_flag="-o out/conftest2.$ac_objext"
10505    # Insert the option either (1) after the last *FLAGS variable, or
10506    # (2) before a word containing "conftest.", or (3) at the end.
10507    # Note that $ac_compile itself does not contain backslashes and begins
10508    # with a dollar sign (not a hyphen), so the echo should work correctly.
10509    lt_compile=`echo "$ac_compile" | $SED \
10510    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10511    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10512    -e 's:$: $lt_compiler_flag:'`
10513    (eval echo "\"\$as_me:10513: $lt_compile\"" >&5)
10514    (eval "$lt_compile" 2>out/conftest.err)
10515    ac_status=$?
10516    cat out/conftest.err >&5
10517    echo "$as_me:10517: \$? = $ac_status" >&5
10518    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10519    then
10520      # The compiler can only warn and ignore the option if not recognized
10521      # So say no if there are warnings
10522      if test ! -s out/conftest.err; then
10523        lt_cv_prog_compiler_c_o_CXX=yes
10524      fi
10525    fi
10526    chmod u+w .
10527    $rm conftest* out/*
10528    rmdir out
10529    cd ..
10530    rmdir conftest
10531    $rm conftest*
10532
10533 fi
10534 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10535 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10536
10537
10538 hard_links="nottested"
10539 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10540   # do not overwrite the value of need_locks provided by the user
10541   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10542 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10543   hard_links=yes
10544   $rm conftest*
10545   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10546   touch conftest.a
10547   ln conftest.a conftest.b 2>&5 || hard_links=no
10548   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10549   echo "$as_me:$LINENO: result: $hard_links" >&5
10550 echo "${ECHO_T}$hard_links" >&6
10551   if test "$hard_links" = no; then
10552     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10553 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10554     need_locks=warn
10555   fi
10556 else
10557   need_locks=no
10558 fi
10559
10560 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10561 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10562
10563   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10564   case $host_os in
10565   aix4* | aix5*)
10566     # If we're using GNU nm, then we don't want the "-C" option.
10567     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10568     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10569       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'
10570     else
10571       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'
10572     fi
10573     ;;
10574   pw32*)
10575     export_symbols_cmds_CXX="$ltdll_cmds"
10576   ;;
10577   cygwin* | mingw*)
10578     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10579   ;;
10580   *)
10581     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10582   ;;
10583   esac
10584
10585 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10586 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10587 test "$ld_shlibs_CXX" = no && can_build_shared=no
10588
10589 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10590 if test "$GCC" = yes; then
10591   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10592 fi
10593
10594 #
10595 # Do we need to explicitly link libc?
10596 #
10597 case "x$archive_cmds_need_lc_CXX" in
10598 x|xyes)
10599   # Assume -lc should be added
10600   archive_cmds_need_lc_CXX=yes
10601
10602   if test "$enable_shared" = yes && test "$GCC" = yes; then
10603     case $archive_cmds_CXX in
10604     *'~'*)
10605       # FIXME: we may have to deal with multi-command sequences.
10606       ;;
10607     '$CC '*)
10608       # Test whether the compiler implicitly links with -lc since on some
10609       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10610       # to ld, don't add -lc before -lgcc.
10611       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10612 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10613       $rm conftest*
10614       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10615
10616       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10617   (eval $ac_compile) 2>&5
10618   ac_status=$?
10619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620   (exit $ac_status); } 2>conftest.err; then
10621         soname=conftest
10622         lib=conftest
10623         libobjs=conftest.$ac_objext
10624         deplibs=
10625         wl=$lt_prog_compiler_wl_CXX
10626         compiler_flags=-v
10627         linker_flags=-v
10628         verstring=
10629         output_objdir=.
10630         libname=conftest
10631         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10632         allow_undefined_flag_CXX=
10633         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10634   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10635   ac_status=$?
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); }
10638         then
10639           archive_cmds_need_lc_CXX=no
10640         else
10641           archive_cmds_need_lc_CXX=yes
10642         fi
10643         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10644       else
10645         cat conftest.err 1>&5
10646       fi
10647       $rm conftest*
10648       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10649 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10650       ;;
10651     esac
10652   fi
10653   ;;
10654 esac
10655
10656 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10657 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10658 hardcode_action_CXX=
10659 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10660    test -n "$runpath_var CXX" || \
10661    test "X$hardcode_automatic_CXX"="Xyes" ; then
10662
10663   # We can hardcode non-existant directories.
10664   if test "$hardcode_direct_CXX" != no &&
10665      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10666      # have to relink, otherwise we might link with an installed library
10667      # when we should be linking with a yet-to-be-installed one
10668      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10669      test "$hardcode_minus_L_CXX" != no; then
10670     # Linking always hardcodes the temporary library directory.
10671     hardcode_action_CXX=relink
10672   else
10673     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10674     hardcode_action_CXX=immediate
10675   fi
10676 else
10677   # We cannot hardcode anything, or else we can only hardcode existing
10678   # directories.
10679   hardcode_action_CXX=unsupported
10680 fi
10681 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10682 echo "${ECHO_T}$hardcode_action_CXX" >&6
10683
10684 if test "$hardcode_action_CXX" = relink; then
10685   # Fast installation is not supported
10686   enable_fast_install=no
10687 elif test "$shlibpath_overrides_runpath" = yes ||
10688      test "$enable_shared" = no; then
10689   # Fast installation is not necessary
10690   enable_fast_install=needless
10691 fi
10692
10693 striplib=
10694 old_striplib=
10695 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10696 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10697 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10698   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10699   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10700   echo "$as_me:$LINENO: result: yes" >&5
10701 echo "${ECHO_T}yes" >&6
10702 else
10703 # FIXME - insert some real tests, host_os isn't really good enough
10704   case $host_os in
10705    darwin*)
10706        if test -n "$STRIP" ; then
10707          striplib="$STRIP -x"
10708          echo "$as_me:$LINENO: result: yes" >&5
10709 echo "${ECHO_T}yes" >&6
10710        else
10711   echo "$as_me:$LINENO: result: no" >&5
10712 echo "${ECHO_T}no" >&6
10713 fi
10714        ;;
10715    *)
10716   echo "$as_me:$LINENO: result: no" >&5
10717 echo "${ECHO_T}no" >&6
10718     ;;
10719   esac
10720 fi
10721
10722 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10723 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10724 library_names_spec=
10725 libname_spec='lib$name'
10726 soname_spec=
10727 shrext=".so"
10728 postinstall_cmds=
10729 postuninstall_cmds=
10730 finish_cmds=
10731 finish_eval=
10732 shlibpath_var=
10733 shlibpath_overrides_runpath=unknown
10734 version_type=none
10735 dynamic_linker="$host_os ld.so"
10736 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10737 if test "$GCC" = yes; then
10738   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10739   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10740     # if the path contains ";" then we assume it to be the separator
10741     # otherwise default to the standard path separator (i.e. ":") - it is
10742     # assumed that no part of a normal pathname contains ";" but that should
10743     # okay in the real world where ";" in dirpaths is itself problematic.
10744     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10745   else
10746     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10747   fi
10748 else
10749   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10750 fi
10751 need_lib_prefix=unknown
10752 hardcode_into_libs=no
10753
10754 # when you set need_version to no, make sure it does not cause -set_version
10755 # flags to be left without arguments
10756 need_version=unknown
10757
10758 case $host_os in
10759 aix3*)
10760   version_type=linux
10761   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10762   shlibpath_var=LIBPATH
10763
10764   # AIX 3 has no versioning support, so we append a major version to the name.
10765   soname_spec='${libname}${release}${shared_ext}$major'
10766   ;;
10767
10768 aix4* | aix5*)
10769   version_type=linux
10770   need_lib_prefix=no
10771   need_version=no
10772   hardcode_into_libs=yes
10773   if test "$host_cpu" = ia64; then
10774     # AIX 5 supports IA64
10775     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10776     shlibpath_var=LD_LIBRARY_PATH
10777   else
10778     # With GCC up to 2.95.x, collect2 would create an import file
10779     # for dependence libraries.  The import file would start with
10780     # the line `#! .'.  This would cause the generated library to
10781     # depend on `.', always an invalid library.  This was fixed in
10782     # development snapshots of GCC prior to 3.0.
10783     case $host_os in
10784       aix4 | aix4.[01] | aix4.[01].*)
10785       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10786            echo ' yes '
10787            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10788         :
10789       else
10790         can_build_shared=no
10791       fi
10792       ;;
10793     esac
10794     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10795     # soname into executable. Probably we can add versioning support to
10796     # collect2, so additional links can be useful in future.
10797     if test "$aix_use_runtimelinking" = yes; then
10798       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10799       # instead of lib<name>.a to let people know that these are not
10800       # typical AIX shared libraries.
10801       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10802     else
10803       # We preserve .a as extension for shared libraries through AIX4.2
10804       # and later when we are not doing run time linking.
10805       library_names_spec='${libname}${release}.a $libname.a'
10806       soname_spec='${libname}${release}${shared_ext}$major'
10807     fi
10808     shlibpath_var=LIBPATH
10809   fi
10810   ;;
10811
10812 amigaos*)
10813   library_names_spec='$libname.ixlibrary $libname.a'
10814   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10815   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'
10816   ;;
10817
10818 beos*)
10819   library_names_spec='${libname}${shared_ext}'
10820   dynamic_linker="$host_os ld.so"
10821   shlibpath_var=LIBRARY_PATH
10822   ;;
10823
10824 bsdi4*)
10825   version_type=linux
10826   need_version=no
10827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10828   soname_spec='${libname}${release}${shared_ext}$major'
10829   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10830   shlibpath_var=LD_LIBRARY_PATH
10831   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10832   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10833   # the default ld.so.conf also contains /usr/contrib/lib and
10834   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10835   # libtool to hard-code these into programs
10836   ;;
10837
10838 cygwin* | mingw* | pw32*)
10839   version_type=windows
10840   shrext=".dll"
10841   need_version=no
10842   need_lib_prefix=no
10843
10844   case $GCC,$host_os in
10845   yes,cygwin* | yes,mingw* | yes,pw32*)
10846     library_names_spec='$libname.dll.a'
10847     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10848     postinstall_cmds='base_file=`basename \${file}`~
10849       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10850       dldir=$destdir/`dirname \$dlpath`~
10851       test -d \$dldir || mkdir -p \$dldir~
10852       $install_prog $dir/$dlname \$dldir/$dlname'
10853     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10854       dlpath=$dir/\$dldll~
10855        $rm \$dlpath'
10856     shlibpath_overrides_runpath=yes
10857
10858     case $host_os in
10859     cygwin*)
10860       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10861       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10862       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10863       ;;
10864     mingw*)
10865       # MinGW DLLs use traditional 'lib' prefix
10866       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10867       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10868       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10869         # It is most probably a Windows format PATH printed by
10870         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10871         # path with ; separators, and with drive letters. We can handle the
10872         # drive letters (cygwin fileutils understands them), so leave them,
10873         # especially as we might pass files found there to a mingw objdump,
10874         # which wouldn't understand a cygwinified path. Ahh.
10875         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10876       else
10877         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10878       fi
10879       ;;
10880     pw32*)
10881       # pw32 DLLs use 'pw' prefix rather than 'lib'
10882       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10883       ;;
10884     esac
10885     ;;
10886
10887   *)
10888     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10889     ;;
10890   esac
10891   dynamic_linker='Win32 ld.exe'
10892   # FIXME: first we should search . and the directory the executable is in
10893   shlibpath_var=PATH
10894   ;;
10895
10896 darwin* | rhapsody*)
10897   dynamic_linker="$host_os dyld"
10898   version_type=darwin
10899   need_lib_prefix=no
10900   need_version=no
10901   # FIXME: Relying on posixy $() will cause problems for
10902   #        cross-compilation, but unfortunately the echo tests do not
10903   #        yet detect zsh echo's removal of \ escapes.
10904   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10905   soname_spec='${libname}${release}${major}$shared_ext'
10906   shlibpath_overrides_runpath=yes
10907   shlibpath_var=DYLD_LIBRARY_PATH
10908   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10909   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10910   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10911   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"`
10912   fi
10913   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10914   ;;
10915
10916 dgux*)
10917   version_type=linux
10918   need_lib_prefix=no
10919   need_version=no
10920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10921   soname_spec='${libname}${release}${shared_ext}$major'
10922   shlibpath_var=LD_LIBRARY_PATH
10923   ;;
10924
10925 freebsd1*)
10926   dynamic_linker=no
10927   ;;
10928
10929 freebsd*)
10930   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10931   version_type=freebsd-$objformat
10932   case $version_type in
10933     freebsd-elf*)
10934       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10935       need_version=no
10936       need_lib_prefix=no
10937       ;;
10938     freebsd-*)
10939       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10940       need_version=yes
10941       ;;
10942   esac
10943   shlibpath_var=LD_LIBRARY_PATH
10944   case $host_os in
10945   freebsd2*)
10946     shlibpath_overrides_runpath=yes
10947     ;;
10948   freebsd3.01* | freebsdelf3.01*)
10949     shlibpath_overrides_runpath=yes
10950     hardcode_into_libs=yes
10951     ;;
10952   *) # from 3.2 on
10953     shlibpath_overrides_runpath=no
10954     hardcode_into_libs=yes
10955     ;;
10956   esac
10957   ;;
10958
10959 gnu*)
10960   version_type=linux
10961   need_lib_prefix=no
10962   need_version=no
10963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10964   soname_spec='${libname}${release}${shared_ext}$major'
10965   shlibpath_var=LD_LIBRARY_PATH
10966   hardcode_into_libs=yes
10967   ;;
10968
10969 hpux9* | hpux10* | hpux11*)
10970   # Give a soname corresponding to the major version so that dld.sl refuses to
10971   # link against other versions.
10972   version_type=sunos
10973   need_lib_prefix=no
10974   need_version=no
10975   case "$host_cpu" in
10976   ia64*)
10977     shrext='.so'
10978     hardcode_into_libs=yes
10979     dynamic_linker="$host_os dld.so"
10980     shlibpath_var=LD_LIBRARY_PATH
10981     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10982     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983     soname_spec='${libname}${release}${shared_ext}$major'
10984     if test "X$HPUX_IA64_MODE" = X32; then
10985       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10986     else
10987       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10988     fi
10989     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10990     ;;
10991    hppa*64*)
10992      shrext='.sl'
10993      hardcode_into_libs=yes
10994      dynamic_linker="$host_os dld.sl"
10995      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10996      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10997      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10998      soname_spec='${libname}${release}${shared_ext}$major'
10999      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11000      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11001      ;;
11002    *)
11003     shrext='.sl'
11004     dynamic_linker="$host_os dld.sl"
11005     shlibpath_var=SHLIB_PATH
11006     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11007     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008     soname_spec='${libname}${release}${shared_ext}$major'
11009     ;;
11010   esac
11011   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11012   postinstall_cmds='chmod 555 $lib'
11013   ;;
11014
11015 irix5* | irix6* | nonstopux*)
11016   case $host_os in
11017     nonstopux*) version_type=nonstopux ;;
11018     *)
11019         if test "$lt_cv_prog_gnu_ld" = yes; then
11020                 version_type=linux
11021         else
11022                 version_type=irix
11023         fi ;;
11024   esac
11025   need_lib_prefix=no
11026   need_version=no
11027   soname_spec='${libname}${release}${shared_ext}$major'
11028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11029   case $host_os in
11030   irix5* | nonstopux*)
11031     libsuff= shlibsuff=
11032     ;;
11033   *)
11034     case $LD in # libtool.m4 will add one of these switches to LD
11035     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11036       libsuff= shlibsuff= libmagic=32-bit;;
11037     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11038       libsuff=32 shlibsuff=N32 libmagic=N32;;
11039     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11040       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11041     *) libsuff= shlibsuff= libmagic=never-match;;
11042     esac
11043     ;;
11044   esac
11045   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11046   shlibpath_overrides_runpath=no
11047   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11048   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11049   hardcode_into_libs=yes
11050   ;;
11051
11052 # No shared lib support for Linux oldld, aout, or coff.
11053 linux*oldld* | linux*aout* | linux*coff*)
11054   dynamic_linker=no
11055   ;;
11056
11057 # This must be Linux ELF.
11058 linux*)
11059   version_type=linux
11060   need_lib_prefix=no
11061   need_version=no
11062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063   soname_spec='${libname}${release}${shared_ext}$major'
11064   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11065   shlibpath_var=LD_LIBRARY_PATH
11066   shlibpath_overrides_runpath=no
11067   # This implies no fast_install, which is unacceptable.
11068   # Some rework will be needed to allow for fast_install
11069   # before this can be enabled.
11070   hardcode_into_libs=yes
11071
11072   # We used to test for /lib/ld.so.1 and disable shared libraries on
11073   # powerpc, because MkLinux only supported shared libraries with the
11074   # GNU dynamic linker.  Since this was broken with cross compilers,
11075   # most powerpc-linux boxes support dynamic linking these days and
11076   # people can always --disable-shared, the test was removed, and we
11077   # assume the GNU/Linux dynamic linker is in use.
11078   dynamic_linker='GNU/Linux ld.so'
11079   ;;
11080
11081 netbsd*)
11082   version_type=sunos
11083   need_lib_prefix=no
11084   need_version=no
11085   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11086     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11087     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11088     dynamic_linker='NetBSD (a.out) ld.so'
11089   else
11090     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11091     soname_spec='${libname}${release}${shared_ext}$major'
11092     dynamic_linker='NetBSD ld.elf_so'
11093   fi
11094   shlibpath_var=LD_LIBRARY_PATH
11095   shlibpath_overrides_runpath=yes
11096   hardcode_into_libs=yes
11097   ;;
11098
11099 newsos6)
11100   version_type=linux
11101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102   shlibpath_var=LD_LIBRARY_PATH
11103   shlibpath_overrides_runpath=yes
11104   ;;
11105
11106 nto-qnx)
11107   version_type=linux
11108   need_lib_prefix=no
11109   need_version=no
11110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111   soname_spec='${libname}${release}${shared_ext}$major'
11112   shlibpath_var=LD_LIBRARY_PATH
11113   shlibpath_overrides_runpath=yes
11114   ;;
11115
11116 openbsd*)
11117   version_type=sunos
11118   need_lib_prefix=no
11119   need_version=no
11120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11121   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11122   shlibpath_var=LD_LIBRARY_PATH
11123   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11124     case $host_os in
11125       openbsd2.[89] | openbsd2.[89].*)
11126         shlibpath_overrides_runpath=no
11127         ;;
11128       *)
11129         shlibpath_overrides_runpath=yes
11130         ;;
11131       esac
11132   else
11133     shlibpath_overrides_runpath=yes
11134   fi
11135   ;;
11136
11137 os2*)
11138   libname_spec='$name'
11139   shrext=".dll"
11140   need_lib_prefix=no
11141   library_names_spec='$libname${shared_ext} $libname.a'
11142   dynamic_linker='OS/2 ld.exe'
11143   shlibpath_var=LIBPATH
11144   ;;
11145
11146 osf3* | osf4* | osf5*)
11147   version_type=osf
11148   need_lib_prefix=no
11149   need_version=no
11150   soname_spec='${libname}${release}${shared_ext}$major'
11151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11152   shlibpath_var=LD_LIBRARY_PATH
11153   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11154   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11155   ;;
11156
11157 sco3.2v5*)
11158   version_type=osf
11159   soname_spec='${libname}${release}${shared_ext}$major'
11160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161   shlibpath_var=LD_LIBRARY_PATH
11162   ;;
11163
11164 solaris*)
11165   version_type=linux
11166   need_lib_prefix=no
11167   need_version=no
11168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169   soname_spec='${libname}${release}${shared_ext}$major'
11170   shlibpath_var=LD_LIBRARY_PATH
11171   shlibpath_overrides_runpath=yes
11172   hardcode_into_libs=yes
11173   # ldd complains unless libraries are executable
11174   postinstall_cmds='chmod +x $lib'
11175   ;;
11176
11177 sunos4*)
11178   version_type=sunos
11179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11180   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11181   shlibpath_var=LD_LIBRARY_PATH
11182   shlibpath_overrides_runpath=yes
11183   if test "$with_gnu_ld" = yes; then
11184     need_lib_prefix=no
11185   fi
11186   need_version=yes
11187   ;;
11188
11189 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11190   version_type=linux
11191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192   soname_spec='${libname}${release}${shared_ext}$major'
11193   shlibpath_var=LD_LIBRARY_PATH
11194   case $host_vendor in
11195     sni)
11196       shlibpath_overrides_runpath=no
11197       need_lib_prefix=no
11198       export_dynamic_flag_spec='${wl}-Blargedynsym'
11199       runpath_var=LD_RUN_PATH
11200       ;;
11201     siemens)
11202       need_lib_prefix=no
11203       ;;
11204     motorola)
11205       need_lib_prefix=no
11206       need_version=no
11207       shlibpath_overrides_runpath=no
11208       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11209       ;;
11210   esac
11211   ;;
11212
11213 sysv4*MP*)
11214   if test -d /usr/nec ;then
11215     version_type=linux
11216     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11217     soname_spec='$libname${shared_ext}.$major'
11218     shlibpath_var=LD_LIBRARY_PATH
11219   fi
11220   ;;
11221
11222 uts4*)
11223   version_type=linux
11224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11225   soname_spec='${libname}${release}${shared_ext}$major'
11226   shlibpath_var=LD_LIBRARY_PATH
11227   ;;
11228
11229 *)
11230   dynamic_linker=no
11231   ;;
11232 esac
11233 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11234 echo "${ECHO_T}$dynamic_linker" >&6
11235 test "$dynamic_linker" = no && can_build_shared=no
11236
11237 if test "x$enable_dlopen" != xyes; then
11238   enable_dlopen=unknown
11239   enable_dlopen_self=unknown
11240   enable_dlopen_self_static=unknown
11241 else
11242   lt_cv_dlopen=no
11243   lt_cv_dlopen_libs=
11244
11245   case $host_os in
11246   beos*)
11247     lt_cv_dlopen="load_add_on"
11248     lt_cv_dlopen_libs=
11249     lt_cv_dlopen_self=yes
11250     ;;
11251
11252   mingw* | pw32*)
11253     lt_cv_dlopen="LoadLibrary"
11254     lt_cv_dlopen_libs=
11255    ;;
11256
11257   cygwin*)
11258     lt_cv_dlopen="dlopen"
11259     lt_cv_dlopen_libs=
11260    ;;
11261
11262   darwin*)
11263   # if libdl is installed we need to link against it
11264     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11265 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11266 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11267   echo $ECHO_N "(cached) $ECHO_C" >&6
11268 else
11269   ac_check_lib_save_LIBS=$LIBS
11270 LIBS="-ldl  $LIBS"
11271 cat >conftest.$ac_ext <<_ACEOF
11272 #line $LINENO "configure"
11273 /* confdefs.h.  */
11274 _ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h.  */
11278
11279 /* Override any gcc2 internal prototype to avoid an error.  */
11280 #ifdef __cplusplus
11281 extern "C"
11282 #endif
11283 /* We use char because int might match the return type of a gcc2
11284    builtin and then its argument prototype would still apply.  */
11285 char dlopen ();
11286 int
11287 main ()
11288 {
11289 dlopen ();
11290   ;
11291   return 0;
11292 }
11293 _ACEOF
11294 rm -f conftest.$ac_objext conftest$ac_exeext
11295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11296   (eval $ac_link) 2>&5
11297   ac_status=$?
11298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299   (exit $ac_status); } &&
11300          { ac_try='test -s conftest$ac_exeext'
11301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302   (eval $ac_try) 2>&5
11303   ac_status=$?
11304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305   (exit $ac_status); }; }; then
11306   ac_cv_lib_dl_dlopen=yes
11307 else
11308   echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11310
11311 ac_cv_lib_dl_dlopen=no
11312 fi
11313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11314 LIBS=$ac_check_lib_save_LIBS
11315 fi
11316 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11317 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11318 if test $ac_cv_lib_dl_dlopen = yes; then
11319   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11320 else
11321
11322     lt_cv_dlopen="dyld"
11323     lt_cv_dlopen_libs=
11324     lt_cv_dlopen_self=yes
11325
11326 fi
11327
11328    ;;
11329
11330   *)
11331     echo "$as_me:$LINENO: checking for shl_load" >&5
11332 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11333 if test "${ac_cv_func_shl_load+set}" = set; then
11334   echo $ECHO_N "(cached) $ECHO_C" >&6
11335 else
11336   cat >conftest.$ac_ext <<_ACEOF
11337 #line $LINENO "configure"
11338 /* confdefs.h.  */
11339 _ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h.  */
11343 /* System header to define __stub macros and hopefully few prototypes,
11344     which can conflict with char shl_load (); below.
11345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11346     <limits.h> exists even on freestanding compilers.  */
11347 #ifdef __STDC__
11348 # include <limits.h>
11349 #else
11350 # include <assert.h>
11351 #endif
11352 /* Override any gcc2 internal prototype to avoid an error.  */
11353 #ifdef __cplusplus
11354 extern "C"
11355 {
11356 #endif
11357 /* We use char because int might match the return type of a gcc2
11358    builtin and then its argument prototype would still apply.  */
11359 char shl_load ();
11360 /* The GNU C library defines this for functions which it implements
11361     to always fail with ENOSYS.  Some functions are actually named
11362     something starting with __ and the normal name is an alias.  */
11363 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11364 choke me
11365 #else
11366 char (*f) () = shl_load;
11367 #endif
11368 #ifdef __cplusplus
11369 }
11370 #endif
11371
11372 int
11373 main ()
11374 {
11375 return f != shl_load;
11376   ;
11377   return 0;
11378 }
11379 _ACEOF
11380 rm -f conftest.$ac_objext conftest$ac_exeext
11381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11382   (eval $ac_link) 2>&5
11383   ac_status=$?
11384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385   (exit $ac_status); } &&
11386          { ac_try='test -s conftest$ac_exeext'
11387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388   (eval $ac_try) 2>&5
11389   ac_status=$?
11390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391   (exit $ac_status); }; }; then
11392   ac_cv_func_shl_load=yes
11393 else
11394   echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11396
11397 ac_cv_func_shl_load=no
11398 fi
11399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11400 fi
11401 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11402 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11403 if test $ac_cv_func_shl_load = yes; then
11404   lt_cv_dlopen="shl_load"
11405 else
11406   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11407 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11408 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11409   echo $ECHO_N "(cached) $ECHO_C" >&6
11410 else
11411   ac_check_lib_save_LIBS=$LIBS
11412 LIBS="-ldld  $LIBS"
11413 cat >conftest.$ac_ext <<_ACEOF
11414 #line $LINENO "configure"
11415 /* confdefs.h.  */
11416 _ACEOF
11417 cat confdefs.h >>conftest.$ac_ext
11418 cat >>conftest.$ac_ext <<_ACEOF
11419 /* end confdefs.h.  */
11420
11421 /* Override any gcc2 internal prototype to avoid an error.  */
11422 #ifdef __cplusplus
11423 extern "C"
11424 #endif
11425 /* We use char because int might match the return type of a gcc2
11426    builtin and then its argument prototype would still apply.  */
11427 char shl_load ();
11428 int
11429 main ()
11430 {
11431 shl_load ();
11432   ;
11433   return 0;
11434 }
11435 _ACEOF
11436 rm -f conftest.$ac_objext conftest$ac_exeext
11437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11438   (eval $ac_link) 2>&5
11439   ac_status=$?
11440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441   (exit $ac_status); } &&
11442          { ac_try='test -s conftest$ac_exeext'
11443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444   (eval $ac_try) 2>&5
11445   ac_status=$?
11446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); }; }; then
11448   ac_cv_lib_dld_shl_load=yes
11449 else
11450   echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11452
11453 ac_cv_lib_dld_shl_load=no
11454 fi
11455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11456 LIBS=$ac_check_lib_save_LIBS
11457 fi
11458 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11459 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11460 if test $ac_cv_lib_dld_shl_load = yes; then
11461   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11462 else
11463   echo "$as_me:$LINENO: checking for dlopen" >&5
11464 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11465 if test "${ac_cv_func_dlopen+set}" = set; then
11466   echo $ECHO_N "(cached) $ECHO_C" >&6
11467 else
11468   cat >conftest.$ac_ext <<_ACEOF
11469 #line $LINENO "configure"
11470 /* confdefs.h.  */
11471 _ACEOF
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h.  */
11475 /* System header to define __stub macros and hopefully few prototypes,
11476     which can conflict with char dlopen (); below.
11477     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11478     <limits.h> exists even on freestanding compilers.  */
11479 #ifdef __STDC__
11480 # include <limits.h>
11481 #else
11482 # include <assert.h>
11483 #endif
11484 /* Override any gcc2 internal prototype to avoid an error.  */
11485 #ifdef __cplusplus
11486 extern "C"
11487 {
11488 #endif
11489 /* We use char because int might match the return type of a gcc2
11490    builtin and then its argument prototype would still apply.  */
11491 char dlopen ();
11492 /* The GNU C library defines this for functions which it implements
11493     to always fail with ENOSYS.  Some functions are actually named
11494     something starting with __ and the normal name is an alias.  */
11495 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11496 choke me
11497 #else
11498 char (*f) () = dlopen;
11499 #endif
11500 #ifdef __cplusplus
11501 }
11502 #endif
11503
11504 int
11505 main ()
11506 {
11507 return f != dlopen;
11508   ;
11509   return 0;
11510 }
11511 _ACEOF
11512 rm -f conftest.$ac_objext conftest$ac_exeext
11513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11514   (eval $ac_link) 2>&5
11515   ac_status=$?
11516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517   (exit $ac_status); } &&
11518          { ac_try='test -s conftest$ac_exeext'
11519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520   (eval $ac_try) 2>&5
11521   ac_status=$?
11522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523   (exit $ac_status); }; }; then
11524   ac_cv_func_dlopen=yes
11525 else
11526   echo "$as_me: failed program was:" >&5
11527 sed 's/^/| /' conftest.$ac_ext >&5
11528
11529 ac_cv_func_dlopen=no
11530 fi
11531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11532 fi
11533 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11534 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11535 if test $ac_cv_func_dlopen = yes; then
11536   lt_cv_dlopen="dlopen"
11537 else
11538   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11539 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11540 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11541   echo $ECHO_N "(cached) $ECHO_C" >&6
11542 else
11543   ac_check_lib_save_LIBS=$LIBS
11544 LIBS="-ldl  $LIBS"
11545 cat >conftest.$ac_ext <<_ACEOF
11546 #line $LINENO "configure"
11547 /* confdefs.h.  */
11548 _ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h.  */
11552
11553 /* Override any gcc2 internal prototype to avoid an error.  */
11554 #ifdef __cplusplus
11555 extern "C"
11556 #endif
11557 /* We use char because int might match the return type of a gcc2
11558    builtin and then its argument prototype would still apply.  */
11559 char dlopen ();
11560 int
11561 main ()
11562 {
11563 dlopen ();
11564   ;
11565   return 0;
11566 }
11567 _ACEOF
11568 rm -f conftest.$ac_objext conftest$ac_exeext
11569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11570   (eval $ac_link) 2>&5
11571   ac_status=$?
11572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573   (exit $ac_status); } &&
11574          { ac_try='test -s conftest$ac_exeext'
11575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576   (eval $ac_try) 2>&5
11577   ac_status=$?
11578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579   (exit $ac_status); }; }; then
11580   ac_cv_lib_dl_dlopen=yes
11581 else
11582   echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11584
11585 ac_cv_lib_dl_dlopen=no
11586 fi
11587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11588 LIBS=$ac_check_lib_save_LIBS
11589 fi
11590 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11591 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11592 if test $ac_cv_lib_dl_dlopen = yes; then
11593   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11594 else
11595   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11596 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11597 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11598   echo $ECHO_N "(cached) $ECHO_C" >&6
11599 else
11600   ac_check_lib_save_LIBS=$LIBS
11601 LIBS="-lsvld  $LIBS"
11602 cat >conftest.$ac_ext <<_ACEOF
11603 #line $LINENO "configure"
11604 /* confdefs.h.  */
11605 _ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h.  */
11609
11610 /* Override any gcc2 internal prototype to avoid an error.  */
11611 #ifdef __cplusplus
11612 extern "C"
11613 #endif
11614 /* We use char because int might match the return type of a gcc2
11615    builtin and then its argument prototype would still apply.  */
11616 char dlopen ();
11617 int
11618 main ()
11619 {
11620 dlopen ();
11621   ;
11622   return 0;
11623 }
11624 _ACEOF
11625 rm -f conftest.$ac_objext conftest$ac_exeext
11626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11627   (eval $ac_link) 2>&5
11628   ac_status=$?
11629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630   (exit $ac_status); } &&
11631          { ac_try='test -s conftest$ac_exeext'
11632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633   (eval $ac_try) 2>&5
11634   ac_status=$?
11635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636   (exit $ac_status); }; }; then
11637   ac_cv_lib_svld_dlopen=yes
11638 else
11639   echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11641
11642 ac_cv_lib_svld_dlopen=no
11643 fi
11644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11645 LIBS=$ac_check_lib_save_LIBS
11646 fi
11647 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11648 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11649 if test $ac_cv_lib_svld_dlopen = yes; then
11650   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11651 else
11652   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11653 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11654 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11655   echo $ECHO_N "(cached) $ECHO_C" >&6
11656 else
11657   ac_check_lib_save_LIBS=$LIBS
11658 LIBS="-ldld  $LIBS"
11659 cat >conftest.$ac_ext <<_ACEOF
11660 #line $LINENO "configure"
11661 /* confdefs.h.  */
11662 _ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h.  */
11666
11667 /* Override any gcc2 internal prototype to avoid an error.  */
11668 #ifdef __cplusplus
11669 extern "C"
11670 #endif
11671 /* We use char because int might match the return type of a gcc2
11672    builtin and then its argument prototype would still apply.  */
11673 char dld_link ();
11674 int
11675 main ()
11676 {
11677 dld_link ();
11678   ;
11679   return 0;
11680 }
11681 _ACEOF
11682 rm -f conftest.$ac_objext conftest$ac_exeext
11683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11684   (eval $ac_link) 2>&5
11685   ac_status=$?
11686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687   (exit $ac_status); } &&
11688          { ac_try='test -s conftest$ac_exeext'
11689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690   (eval $ac_try) 2>&5
11691   ac_status=$?
11692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693   (exit $ac_status); }; }; then
11694   ac_cv_lib_dld_dld_link=yes
11695 else
11696   echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.$ac_ext >&5
11698
11699 ac_cv_lib_dld_dld_link=no
11700 fi
11701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11702 LIBS=$ac_check_lib_save_LIBS
11703 fi
11704 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11705 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11706 if test $ac_cv_lib_dld_dld_link = yes; then
11707   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11708 fi
11709
11710
11711 fi
11712
11713
11714 fi
11715
11716
11717 fi
11718
11719
11720 fi
11721
11722
11723 fi
11724
11725     ;;
11726   esac
11727
11728   if test "x$lt_cv_dlopen" != xno; then
11729     enable_dlopen=yes
11730   else
11731     enable_dlopen=no
11732   fi
11733
11734   case $lt_cv_dlopen in
11735   dlopen)
11736     save_CPPFLAGS="$CPPFLAGS"
11737     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11738
11739     save_LDFLAGS="$LDFLAGS"
11740     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11741
11742     save_LIBS="$LIBS"
11743     LIBS="$lt_cv_dlopen_libs $LIBS"
11744
11745     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11746 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11747 if test "${lt_cv_dlopen_self+set}" = set; then
11748   echo $ECHO_N "(cached) $ECHO_C" >&6
11749 else
11750           if test "$cross_compiling" = yes; then :
11751   lt_cv_dlopen_self=cross
11752 else
11753   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11754   lt_status=$lt_dlunknown
11755   cat > conftest.$ac_ext <<EOF
11756 #line 11756 "configure"
11757 #include "confdefs.h"
11758
11759 #if HAVE_DLFCN_H
11760 #include <dlfcn.h>
11761 #endif
11762
11763 #include <stdio.h>
11764
11765 #ifdef RTLD_GLOBAL
11766 #  define LT_DLGLOBAL           RTLD_GLOBAL
11767 #else
11768 #  ifdef DL_GLOBAL
11769 #    define LT_DLGLOBAL         DL_GLOBAL
11770 #  else
11771 #    define LT_DLGLOBAL         0
11772 #  endif
11773 #endif
11774
11775 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11776    find out it does not work in some platform. */
11777 #ifndef LT_DLLAZY_OR_NOW
11778 #  ifdef RTLD_LAZY
11779 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11780 #  else
11781 #    ifdef DL_LAZY
11782 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11783 #    else
11784 #      ifdef RTLD_NOW
11785 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11786 #      else
11787 #        ifdef DL_NOW
11788 #          define LT_DLLAZY_OR_NOW      DL_NOW
11789 #        else
11790 #          define LT_DLLAZY_OR_NOW      0
11791 #        endif
11792 #      endif
11793 #    endif
11794 #  endif
11795 #endif
11796
11797 #ifdef __cplusplus
11798 extern "C" void exit (int);
11799 #endif
11800
11801 void fnord() { int i=42;}
11802 int main ()
11803 {
11804   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11805   int status = $lt_dlunknown;
11806
11807   if (self)
11808     {
11809       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11810       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11811       /* dlclose (self); */
11812     }
11813
11814     exit (status);
11815 }
11816 EOF
11817   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11818   (eval $ac_link) 2>&5
11819   ac_status=$?
11820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11822     (./conftest; exit; ) 2>/dev/null
11823     lt_status=$?
11824     case x$lt_status in
11825       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11826       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11827       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11828     esac
11829   else :
11830     # compilation failed
11831     lt_cv_dlopen_self=no
11832   fi
11833 fi
11834 rm -fr conftest*
11835
11836
11837 fi
11838 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11839 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11840
11841     if test "x$lt_cv_dlopen_self" = xyes; then
11842       LDFLAGS="$LDFLAGS $link_static_flag"
11843       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11844 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11845 if test "${lt_cv_dlopen_self_static+set}" = set; then
11846   echo $ECHO_N "(cached) $ECHO_C" >&6
11847 else
11848           if test "$cross_compiling" = yes; then :
11849   lt_cv_dlopen_self_static=cross
11850 else
11851   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11852   lt_status=$lt_dlunknown
11853   cat > conftest.$ac_ext <<EOF
11854 #line 11854 "configure"
11855 #include "confdefs.h"
11856
11857 #if HAVE_DLFCN_H
11858 #include <dlfcn.h>
11859 #endif
11860
11861 #include <stdio.h>
11862
11863 #ifdef RTLD_GLOBAL
11864 #  define LT_DLGLOBAL           RTLD_GLOBAL
11865 #else
11866 #  ifdef DL_GLOBAL
11867 #    define LT_DLGLOBAL         DL_GLOBAL
11868 #  else
11869 #    define LT_DLGLOBAL         0
11870 #  endif
11871 #endif
11872
11873 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11874    find out it does not work in some platform. */
11875 #ifndef LT_DLLAZY_OR_NOW
11876 #  ifdef RTLD_LAZY
11877 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11878 #  else
11879 #    ifdef DL_LAZY
11880 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11881 #    else
11882 #      ifdef RTLD_NOW
11883 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11884 #      else
11885 #        ifdef DL_NOW
11886 #          define LT_DLLAZY_OR_NOW      DL_NOW
11887 #        else
11888 #          define LT_DLLAZY_OR_NOW      0
11889 #        endif
11890 #      endif
11891 #    endif
11892 #  endif
11893 #endif
11894
11895 #ifdef __cplusplus
11896 extern "C" void exit (int);
11897 #endif
11898
11899 void fnord() { int i=42;}
11900 int main ()
11901 {
11902   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11903   int status = $lt_dlunknown;
11904
11905   if (self)
11906     {
11907       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11908       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11909       /* dlclose (self); */
11910     }
11911
11912     exit (status);
11913 }
11914 EOF
11915   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11916   (eval $ac_link) 2>&5
11917   ac_status=$?
11918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11920     (./conftest; exit; ) 2>/dev/null
11921     lt_status=$?
11922     case x$lt_status in
11923       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11924       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11925       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11926     esac
11927   else :
11928     # compilation failed
11929     lt_cv_dlopen_self_static=no
11930   fi
11931 fi
11932 rm -fr conftest*
11933
11934
11935 fi
11936 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11937 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11938     fi
11939
11940     CPPFLAGS="$save_CPPFLAGS"
11941     LDFLAGS="$save_LDFLAGS"
11942     LIBS="$save_LIBS"
11943     ;;
11944   esac
11945
11946   case $lt_cv_dlopen_self in
11947   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11948   *) enable_dlopen_self=unknown ;;
11949   esac
11950
11951   case $lt_cv_dlopen_self_static in
11952   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11953   *) enable_dlopen_self_static=unknown ;;
11954   esac
11955 fi
11956
11957
11958 # The else clause should only fire when bootstrapping the
11959 # libtool distribution, otherwise you forgot to ship ltmain.sh
11960 # with your package, and you will get complaints that there are
11961 # no rules to generate ltmain.sh.
11962 if test -f "$ltmain"; then
11963   # See if we are running on zsh, and set the options which allow our commands through
11964   # without removal of \ escapes.
11965   if test -n "${ZSH_VERSION+set}" ; then
11966     setopt NO_GLOB_SUBST
11967   fi
11968   # Now quote all the things that may contain metacharacters while being
11969   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11970   # variables and quote the copies for generation of the libtool script.
11971   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11972     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11973     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11974     deplibs_check_method reload_flag reload_cmds need_locks \
11975     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11976     lt_cv_sys_global_symbol_to_c_name_address \
11977     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11978     old_postinstall_cmds old_postuninstall_cmds \
11979     compiler_CXX \
11980     CC_CXX \
11981     LD_CXX \
11982     lt_prog_compiler_wl_CXX \
11983     lt_prog_compiler_pic_CXX \
11984     lt_prog_compiler_static_CXX \
11985     lt_prog_compiler_no_builtin_flag_CXX \
11986     export_dynamic_flag_spec_CXX \
11987     thread_safe_flag_spec_CXX \
11988     whole_archive_flag_spec_CXX \
11989     enable_shared_with_static_runtimes_CXX \
11990     old_archive_cmds_CXX \
11991     old_archive_from_new_cmds_CXX \
11992     predep_objects_CXX \
11993     postdep_objects_CXX \
11994     predeps_CXX \
11995     postdeps_CXX \
11996     compiler_lib_search_path_CXX \
11997     archive_cmds_CXX \
11998     archive_expsym_cmds_CXX \
11999     postinstall_cmds_CXX \
12000     postuninstall_cmds_CXX \
12001     old_archive_from_expsyms_cmds_CXX \
12002     allow_undefined_flag_CXX \
12003     no_undefined_flag_CXX \
12004     export_symbols_cmds_CXX \
12005     hardcode_libdir_flag_spec_CXX \
12006     hardcode_libdir_flag_spec_ld_CXX \
12007     hardcode_libdir_separator_CXX \
12008     hardcode_automatic_CXX \
12009     module_cmds_CXX \
12010     module_expsym_cmds_CXX \
12011     lt_cv_prog_compiler_c_o_CXX \
12012     exclude_expsyms_CXX \
12013     include_expsyms_CXX; do
12014
12015     case $var in
12016     old_archive_cmds_CXX | \
12017     old_archive_from_new_cmds_CXX | \
12018     archive_cmds_CXX | \
12019     archive_expsym_cmds_CXX | \
12020     module_cmds_CXX | \
12021     module_expsym_cmds_CXX | \
12022     old_archive_from_expsyms_cmds_CXX | \
12023     export_symbols_cmds_CXX | \
12024     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12025     postinstall_cmds | postuninstall_cmds | \
12026     old_postinstall_cmds | old_postuninstall_cmds | \
12027     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12028       # Double-quote double-evaled strings.
12029       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12030       ;;
12031     *)
12032       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12033       ;;
12034     esac
12035   done
12036
12037   case $lt_echo in
12038   *'\$0 --fallback-echo"')
12039     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12040     ;;
12041   esac
12042
12043 cfgfile="$ofile"
12044
12045   cat <<__EOF__ >> "$cfgfile"
12046 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12047
12048 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12049
12050 # Shell to use when invoking shell scripts.
12051 SHELL=$lt_SHELL
12052
12053 # Whether or not to build shared libraries.
12054 build_libtool_libs=$enable_shared
12055
12056 # Whether or not to build static libraries.
12057 build_old_libs=$enable_static
12058
12059 # Whether or not to add -lc for building shared libraries.
12060 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12061
12062 # Whether or not to disallow shared libs when runtime libs are static
12063 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12064
12065 # Whether or not to optimize for fast installation.
12066 fast_install=$enable_fast_install
12067
12068 # The host system.
12069 host_alias=$host_alias
12070 host=$host
12071
12072 # An echo program that does not interpret backslashes.
12073 echo=$lt_echo
12074
12075 # The archiver.
12076 AR=$lt_AR
12077 AR_FLAGS=$lt_AR_FLAGS
12078
12079 # A C compiler.
12080 LTCC=$lt_LTCC
12081
12082 # A language-specific compiler.
12083 CC=$lt_compiler_CXX
12084
12085 # Is the compiler the GNU C compiler?
12086 with_gcc=$GCC_CXX
12087
12088 # An ERE matcher.
12089 EGREP=$lt_EGREP
12090
12091 # The linker used to build libraries.
12092 LD=$lt_LD_CXX
12093
12094 # Whether we need hard or soft links.
12095 LN_S=$lt_LN_S
12096
12097 # A BSD-compatible nm program.
12098 NM=$lt_NM
12099
12100 # A symbol stripping program
12101 STRIP=$STRIP
12102
12103 # Used to examine libraries when file_magic_cmd begins "file"
12104 MAGIC_CMD=$MAGIC_CMD
12105
12106 # Used on cygwin: DLL creation program.
12107 DLLTOOL="$DLLTOOL"
12108
12109 # Used on cygwin: object dumper.
12110 OBJDUMP="$OBJDUMP"
12111
12112 # Used on cygwin: assembler.
12113 AS="$AS"
12114
12115 # The name of the directory that contains temporary libtool files.
12116 objdir=$objdir
12117
12118 # How to create reloadable object files.
12119 reload_flag=$lt_reload_flag
12120 reload_cmds=$lt_reload_cmds
12121
12122 # How to pass a linker flag through the compiler.
12123 wl=$lt_lt_prog_compiler_wl_CXX
12124
12125 # Object file suffix (normally "o").
12126 objext="$ac_objext"
12127
12128 # Old archive suffix (normally "a").
12129 libext="$libext"
12130
12131 # Shared library suffix (normally ".so").
12132 shrext='$shrext'
12133
12134 # Executable file suffix (normally "").
12135 exeext="$exeext"
12136
12137 # Additional compiler flags for building library objects.
12138 pic_flag=$lt_lt_prog_compiler_pic_CXX
12139 pic_mode=$pic_mode
12140
12141 # What is the maximum length of a command?
12142 max_cmd_len=$lt_cv_sys_max_cmd_len
12143
12144 # Does compiler simultaneously support -c and -o options?
12145 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12146
12147 # Must we lock files when doing compilation ?
12148 need_locks=$lt_need_locks
12149
12150 # Do we need the lib prefix for modules?
12151 need_lib_prefix=$need_lib_prefix
12152
12153 # Do we need a version for libraries?
12154 need_version=$need_version
12155
12156 # Whether dlopen is supported.
12157 dlopen_support=$enable_dlopen
12158
12159 # Whether dlopen of programs is supported.
12160 dlopen_self=$enable_dlopen_self
12161
12162 # Whether dlopen of statically linked programs is supported.
12163 dlopen_self_static=$enable_dlopen_self_static
12164
12165 # Compiler flag to prevent dynamic linking.
12166 link_static_flag=$lt_lt_prog_compiler_static_CXX
12167
12168 # Compiler flag to turn off builtin functions.
12169 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12170
12171 # Compiler flag to allow reflexive dlopens.
12172 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12173
12174 # Compiler flag to generate shared objects directly from archives.
12175 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12176
12177 # Compiler flag to generate thread-safe objects.
12178 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12179
12180 # Library versioning type.
12181 version_type=$version_type
12182
12183 # Format of library name prefix.
12184 libname_spec=$lt_libname_spec
12185
12186 # List of archive names.  First name is the real one, the rest are links.
12187 # The last name is the one that the linker finds with -lNAME.
12188 library_names_spec=$lt_library_names_spec
12189
12190 # The coded name of the library, if different from the real name.
12191 soname_spec=$lt_soname_spec
12192
12193 # Commands used to build and install an old-style archive.
12194 RANLIB=$lt_RANLIB
12195 old_archive_cmds=$lt_old_archive_cmds_CXX
12196 old_postinstall_cmds=$lt_old_postinstall_cmds
12197 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12198
12199 # Create an old-style archive from a shared archive.
12200 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12201
12202 # Create a temporary old-style archive to link instead of a shared archive.
12203 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12204
12205 # Commands used to build and install a shared archive.
12206 archive_cmds=$lt_archive_cmds_CXX
12207 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12208 postinstall_cmds=$lt_postinstall_cmds
12209 postuninstall_cmds=$lt_postuninstall_cmds
12210
12211 # Commands used to build a loadable module (assumed same as above if empty)
12212 module_cmds=$lt_module_cmds_CXX
12213 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12214
12215 # Commands to strip libraries.
12216 old_striplib=$lt_old_striplib
12217 striplib=$lt_striplib
12218
12219 # Dependencies to place before the objects being linked to create a
12220 # shared library.
12221 predep_objects=$lt_predep_objects_CXX
12222
12223 # Dependencies to place after the objects being linked to create a
12224 # shared library.
12225 postdep_objects=$lt_postdep_objects_CXX
12226
12227 # Dependencies to place before the objects being linked to create a
12228 # shared library.
12229 predeps=$lt_predeps_CXX
12230
12231 # Dependencies to place after the objects being linked to create a
12232 # shared library.
12233 postdeps=$lt_postdeps_CXX
12234
12235 # The library search path used internally by the compiler when linking
12236 # a shared library.
12237 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12238
12239 # Method to check whether dependent libraries are shared objects.
12240 deplibs_check_method=$lt_deplibs_check_method
12241
12242 # Command to use when deplibs_check_method == file_magic.
12243 file_magic_cmd=$lt_file_magic_cmd
12244
12245 # Flag that allows shared libraries with undefined symbols to be built.
12246 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12247
12248 # Flag that forces no undefined symbols.
12249 no_undefined_flag=$lt_no_undefined_flag_CXX
12250
12251 # Commands used to finish a libtool library installation in a directory.
12252 finish_cmds=$lt_finish_cmds
12253
12254 # Same as above, but a single script fragment to be evaled but not shown.
12255 finish_eval=$lt_finish_eval
12256
12257 # Take the output of nm and produce a listing of raw symbols and C names.
12258 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12259
12260 # Transform the output of nm in a proper C declaration
12261 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12262
12263 # Transform the output of nm in a C name address pair
12264 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12265
12266 # This is the shared library runtime path variable.
12267 runpath_var=$runpath_var
12268
12269 # This is the shared library path variable.
12270 shlibpath_var=$shlibpath_var
12271
12272 # Is shlibpath searched before the hard-coded library search path?
12273 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12274
12275 # How to hardcode a shared library path into an executable.
12276 hardcode_action=$hardcode_action_CXX
12277
12278 # Whether we should hardcode library paths into libraries.
12279 hardcode_into_libs=$hardcode_into_libs
12280
12281 # Flag to hardcode \$libdir into a binary during linking.
12282 # This must work even if \$libdir does not exist.
12283 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12284
12285 # If ld is used when linking, flag to hardcode \$libdir into
12286 # a binary during linking. This must work even if \$libdir does
12287 # not exist.
12288 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12289
12290 # Whether we need a single -rpath flag with a separated argument.
12291 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12292
12293 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12294 # resulting binary.
12295 hardcode_direct=$hardcode_direct_CXX
12296
12297 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12298 # resulting binary.
12299 hardcode_minus_L=$hardcode_minus_L_CXX
12300
12301 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12302 # the resulting binary.
12303 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12304
12305 # Set to yes if building a shared library automatically hardcodes DIR into the library
12306 # and all subsequent libraries and executables linked against it.
12307 hardcode_automatic=$hardcode_automatic_CXX
12308
12309 # Variables whose values should be saved in libtool wrapper scripts and
12310 # restored at relink time.
12311 variables_saved_for_relink="$variables_saved_for_relink"
12312
12313 # Whether libtool must link a program against all its dependency libraries.
12314 link_all_deplibs=$link_all_deplibs_CXX
12315
12316 # Compile-time system search path for libraries
12317 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12318
12319 # Run-time system search path for libraries
12320 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12321
12322 # Fix the shell variable \$srcfile for the compiler.
12323 fix_srcfile_path="$fix_srcfile_path_CXX"
12324
12325 # Set to yes if exported symbols are required.
12326 always_export_symbols=$always_export_symbols_CXX
12327
12328 # The commands to list exported symbols.
12329 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12330
12331 # The commands to extract the exported symbol list from a shared archive.
12332 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12333
12334 # Symbols that should not be listed in the preloaded symbols.
12335 exclude_expsyms=$lt_exclude_expsyms_CXX
12336
12337 # Symbols that must always be exported.
12338 include_expsyms=$lt_include_expsyms_CXX
12339
12340 # ### END LIBTOOL TAG CONFIG: $tagname
12341
12342 __EOF__
12343
12344
12345 else
12346   # If there is no Makefile yet, we rely on a make rule to execute
12347   # `config.status --recheck' to rerun these tests and create the
12348   # libtool script then.
12349   test -f Makefile && make "$ltmain"
12350 fi
12351
12352
12353 ac_ext=c
12354 ac_cpp='$CPP $CPPFLAGS'
12355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12358
12359 CC=$lt_save_CC
12360 LDCXX=$LD
12361 LD=$lt_save_LD
12362 GCC=$lt_save_GCC
12363 with_gnu_ldcxx=$with_gnu_ld
12364 with_gnu_ld=$lt_save_with_gnu_ld
12365 lt_cv_path_LDCXX=$lt_cv_path_LD
12366 lt_cv_path_LD=$lt_save_path_LD
12367 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12368 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12369
12370         else
12371           tagname=""
12372         fi
12373         ;;
12374
12375       F77)
12376         if test -n "$F77" && test "X$F77" != "Xno"; then
12377
12378 ac_ext=f
12379 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12380 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12381 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12382
12383
12384 archive_cmds_need_lc_F77=no
12385 allow_undefined_flag_F77=
12386 always_export_symbols_F77=no
12387 archive_expsym_cmds_F77=
12388 export_dynamic_flag_spec_F77=
12389 hardcode_direct_F77=no
12390 hardcode_libdir_flag_spec_F77=
12391 hardcode_libdir_flag_spec_ld_F77=
12392 hardcode_libdir_separator_F77=
12393 hardcode_minus_L_F77=no
12394 hardcode_automatic_F77=no
12395 module_cmds_F77=
12396 module_expsym_cmds_F77=
12397 link_all_deplibs_F77=unknown
12398 old_archive_cmds_F77=$old_archive_cmds
12399 no_undefined_flag_F77=
12400 whole_archive_flag_spec_F77=
12401 enable_shared_with_static_runtimes_F77=no
12402
12403 # Source file extension for f77 test sources.
12404 ac_ext=f
12405
12406 # Object file extension for compiled f77 test sources.
12407 objext=o
12408 objext_F77=$objext
12409
12410 # Code to be used in simple compile tests
12411 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12412
12413 # Code to be used in simple link tests
12414 lt_simple_link_test_code="      program t\n      end\n"
12415
12416 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12417
12418 # If no C compiler was specified, use CC.
12419 LTCC=${LTCC-"$CC"}
12420
12421 # Allow CC to be a program name with arguments.
12422 compiler=$CC
12423
12424
12425 # Allow CC to be a program name with arguments.
12426 lt_save_CC="$CC"
12427 CC=${F77-"f77"}
12428 compiler=$CC
12429 compiler_F77=$CC
12430 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12431
12432 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12433 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12434 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12435 echo "${ECHO_T}$can_build_shared" >&6
12436
12437 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12438 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12439 test "$can_build_shared" = "no" && enable_shared=no
12440
12441 # On AIX, shared libraries and static libraries use the same namespace, and
12442 # are all built from PIC.
12443 case "$host_os" in
12444 aix3*)
12445   test "$enable_shared" = yes && enable_static=no
12446   if test -n "$RANLIB"; then
12447     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12448     postinstall_cmds='$RANLIB $lib'
12449   fi
12450   ;;
12451 aix4*)
12452   test "$enable_shared" = yes && enable_static=no
12453   ;;
12454 esac
12455 echo "$as_me:$LINENO: result: $enable_shared" >&5
12456 echo "${ECHO_T}$enable_shared" >&6
12457
12458 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12459 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12460 # Make sure either enable_shared or enable_static is yes.
12461 test "$enable_shared" = yes || enable_static=yes
12462 echo "$as_me:$LINENO: result: $enable_static" >&5
12463 echo "${ECHO_T}$enable_static" >&6
12464
12465 test "$ld_shlibs_F77" = no && can_build_shared=no
12466
12467 GCC_F77="$G77"
12468 LD_F77="$LD"
12469
12470 lt_prog_compiler_wl_F77=
12471 lt_prog_compiler_pic_F77=
12472 lt_prog_compiler_static_F77=
12473
12474 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12475 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12476
12477   if test "$GCC" = yes; then
12478     lt_prog_compiler_wl_F77='-Wl,'
12479     lt_prog_compiler_static_F77='-static'
12480
12481     case $host_os in
12482       aix*)
12483       # All AIX code is PIC.
12484       if test "$host_cpu" = ia64; then
12485         # AIX 5 now supports IA64 processor
12486         lt_prog_compiler_static_F77='-Bstatic'
12487       fi
12488       ;;
12489
12490     amigaos*)
12491       # FIXME: we need at least 68020 code to build shared libraries, but
12492       # adding the `-m68020' flag to GCC prevents building anything better,
12493       # like `-m68040'.
12494       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12495       ;;
12496
12497     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12498       # PIC is the default for these OSes.
12499       ;;
12500
12501     mingw* | pw32* | os2*)
12502       # This hack is so that the source file can tell whether it is being
12503       # built for inclusion in a dll (and should export symbols for example).
12504       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12505       ;;
12506
12507     darwin* | rhapsody*)
12508       # PIC is the default on this platform
12509       # Common symbols not allowed in MH_DYLIB files
12510       lt_prog_compiler_pic_F77='-fno-common'
12511       ;;
12512
12513     msdosdjgpp*)
12514       # Just because we use GCC doesn't mean we suddenly get shared libraries
12515       # on systems that don't support them.
12516       lt_prog_compiler_can_build_shared_F77=no
12517       enable_shared=no
12518       ;;
12519
12520     sysv4*MP*)
12521       if test -d /usr/nec; then
12522         lt_prog_compiler_pic_F77=-Kconform_pic
12523       fi
12524       ;;
12525
12526     hpux*)
12527       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12528       # not for PA HP-UX.
12529       case "$host_cpu" in
12530       hppa*64*|ia64*)
12531         # +Z the default
12532         ;;
12533       *)
12534         lt_prog_compiler_pic_F77='-fPIC'
12535         ;;
12536       esac
12537       ;;
12538
12539     *)
12540       lt_prog_compiler_pic_F77='-fPIC'
12541       ;;
12542     esac
12543   else
12544     # PORTME Check for flag to pass linker flags through the system compiler.
12545     case $host_os in
12546     aix*)
12547       lt_prog_compiler_wl_F77='-Wl,'
12548       if test "$host_cpu" = ia64; then
12549         # AIX 5 now supports IA64 processor
12550         lt_prog_compiler_static_F77='-Bstatic'
12551       else
12552         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12553       fi
12554       ;;
12555
12556     mingw* | pw32* | os2*)
12557       # This hack is so that the source file can tell whether it is being
12558       # built for inclusion in a dll (and should export symbols for example).
12559       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12560       ;;
12561
12562     hpux9* | hpux10* | hpux11*)
12563       lt_prog_compiler_wl_F77='-Wl,'
12564       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12565       # not for PA HP-UX.
12566       case "$host_cpu" in
12567       hppa*64*|ia64*)
12568         # +Z the default
12569         ;;
12570       *)
12571         lt_prog_compiler_pic_F77='+Z'
12572         ;;
12573       esac
12574       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12575       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12576       ;;
12577
12578     irix5* | irix6* | nonstopux*)
12579       lt_prog_compiler_wl_F77='-Wl,'
12580       # PIC (with -KPIC) is the default.
12581       lt_prog_compiler_static_F77='-non_shared'
12582       ;;
12583
12584     newsos6)
12585       lt_prog_compiler_pic_F77='-KPIC'
12586       lt_prog_compiler_static_F77='-Bstatic'
12587       ;;
12588
12589     linux*)
12590       case $CC in
12591       icc|ecc)
12592         lt_prog_compiler_wl_F77='-Wl,'
12593         lt_prog_compiler_pic_F77='-KPIC'
12594         lt_prog_compiler_static_F77='-static'
12595         ;;
12596       ccc)
12597         lt_prog_compiler_wl_F77='-Wl,'
12598         # All Alpha code is PIC.
12599         lt_prog_compiler_static_F77='-non_shared'
12600         ;;
12601       esac
12602       ;;
12603
12604     osf3* | osf4* | osf5*)
12605       lt_prog_compiler_wl_F77='-Wl,'
12606       # All OSF/1 code is PIC.
12607       lt_prog_compiler_static_F77='-non_shared'
12608       ;;
12609
12610     sco3.2v5*)
12611       lt_prog_compiler_pic_F77='-Kpic'
12612       lt_prog_compiler_static_F77='-dn'
12613       ;;
12614
12615     solaris*)
12616       lt_prog_compiler_wl_F77='-Wl,'
12617       lt_prog_compiler_pic_F77='-KPIC'
12618       lt_prog_compiler_static_F77='-Bstatic'
12619       ;;
12620
12621     sunos4*)
12622       lt_prog_compiler_wl_F77='-Qoption ld '
12623       lt_prog_compiler_pic_F77='-PIC'
12624       lt_prog_compiler_static_F77='-Bstatic'
12625       ;;
12626
12627     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12628       lt_prog_compiler_wl_F77='-Wl,'
12629       lt_prog_compiler_pic_F77='-KPIC'
12630       lt_prog_compiler_static_F77='-Bstatic'
12631       ;;
12632
12633     sysv4*MP*)
12634       if test -d /usr/nec ;then
12635         lt_prog_compiler_pic_F77='-Kconform_pic'
12636         lt_prog_compiler_static_F77='-Bstatic'
12637       fi
12638       ;;
12639
12640     uts4*)
12641       lt_prog_compiler_pic_F77='-pic'
12642       lt_prog_compiler_static_F77='-Bstatic'
12643       ;;
12644
12645     *)
12646       lt_prog_compiler_can_build_shared_F77=no
12647       ;;
12648     esac
12649   fi
12650
12651 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12652 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12653
12654 #
12655 # Check to make sure the PIC flag actually works.
12656 #
12657 if test -n "$lt_prog_compiler_pic_F77"; then
12658   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12659 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12660 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12661   echo $ECHO_N "(cached) $ECHO_C" >&6
12662 else
12663   lt_prog_compiler_pic_works_F77=no
12664   ac_outfile=conftest.$ac_objext
12665    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12666    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12667    # Insert the option either (1) after the last *FLAGS variable, or
12668    # (2) before a word containing "conftest.", or (3) at the end.
12669    # Note that $ac_compile itself does not contain backslashes and begins
12670    # with a dollar sign (not a hyphen), so the echo should work correctly.
12671    # The option is referenced via a variable to avoid confusing sed.
12672    lt_compile=`echo "$ac_compile" | $SED \
12673    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12674    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12675    -e 's:$: $lt_compiler_flag:'`
12676    (eval echo "\"\$as_me:12676: $lt_compile\"" >&5)
12677    (eval "$lt_compile" 2>conftest.err)
12678    ac_status=$?
12679    cat conftest.err >&5
12680    echo "$as_me:12680: \$? = $ac_status" >&5
12681    if (exit $ac_status) && test -s "$ac_outfile"; then
12682      # The compiler can only warn and ignore the option if not recognized
12683      # So say no if there are warnings
12684      if test ! -s conftest.err; then
12685        lt_prog_compiler_pic_works_F77=yes
12686      fi
12687    fi
12688    $rm conftest*
12689
12690 fi
12691 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12692 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12693
12694 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12695     case $lt_prog_compiler_pic_F77 in
12696      "" | " "*) ;;
12697      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12698      esac
12699 else
12700     lt_prog_compiler_pic_F77=
12701      lt_prog_compiler_can_build_shared_F77=no
12702 fi
12703
12704 fi
12705 case "$host_os" in
12706   # For platforms which do not support PIC, -DPIC is meaningless:
12707   *djgpp*)
12708     lt_prog_compiler_pic_F77=
12709     ;;
12710   *)
12711     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12712     ;;
12713 esac
12714
12715 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12716 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12717 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12718   echo $ECHO_N "(cached) $ECHO_C" >&6
12719 else
12720   lt_cv_prog_compiler_c_o_F77=no
12721    $rm -r conftest 2>/dev/null
12722    mkdir conftest
12723    cd conftest
12724    mkdir out
12725    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12726
12727    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12728    # that will create temporary files in the current directory regardless of
12729    # the output directory.  Thus, making CWD read-only will cause this test
12730    # to fail, enabling locking or at least warning the user not to do parallel
12731    # builds.
12732    chmod -w .
12733
12734    lt_compiler_flag="-o out/conftest2.$ac_objext"
12735    # Insert the option either (1) after the last *FLAGS variable, or
12736    # (2) before a word containing "conftest.", or (3) at the end.
12737    # Note that $ac_compile itself does not contain backslashes and begins
12738    # with a dollar sign (not a hyphen), so the echo should work correctly.
12739    lt_compile=`echo "$ac_compile" | $SED \
12740    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12741    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12742    -e 's:$: $lt_compiler_flag:'`
12743    (eval echo "\"\$as_me:12743: $lt_compile\"" >&5)
12744    (eval "$lt_compile" 2>out/conftest.err)
12745    ac_status=$?
12746    cat out/conftest.err >&5
12747    echo "$as_me:12747: \$? = $ac_status" >&5
12748    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12749    then
12750      # The compiler can only warn and ignore the option if not recognized
12751      # So say no if there are warnings
12752      if test ! -s out/conftest.err; then
12753        lt_cv_prog_compiler_c_o_F77=yes
12754      fi
12755    fi
12756    chmod u+w .
12757    $rm conftest* out/*
12758    rmdir out
12759    cd ..
12760    rmdir conftest
12761    $rm conftest*
12762
12763 fi
12764 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12765 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12766
12767
12768 hard_links="nottested"
12769 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12770   # do not overwrite the value of need_locks provided by the user
12771   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12772 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12773   hard_links=yes
12774   $rm conftest*
12775   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12776   touch conftest.a
12777   ln conftest.a conftest.b 2>&5 || hard_links=no
12778   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12779   echo "$as_me:$LINENO: result: $hard_links" >&5
12780 echo "${ECHO_T}$hard_links" >&6
12781   if test "$hard_links" = no; then
12782     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12783 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12784     need_locks=warn
12785   fi
12786 else
12787   need_locks=no
12788 fi
12789
12790 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12791 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12792
12793   runpath_var=
12794   allow_undefined_flag_F77=
12795   enable_shared_with_static_runtimes_F77=no
12796   archive_cmds_F77=
12797   archive_expsym_cmds_F77=
12798   old_archive_From_new_cmds_F77=
12799   old_archive_from_expsyms_cmds_F77=
12800   export_dynamic_flag_spec_F77=
12801   whole_archive_flag_spec_F77=
12802   thread_safe_flag_spec_F77=
12803   hardcode_libdir_flag_spec_F77=
12804   hardcode_libdir_flag_spec_ld_F77=
12805   hardcode_libdir_separator_F77=
12806   hardcode_direct_F77=no
12807   hardcode_minus_L_F77=no
12808   hardcode_shlibpath_var_F77=unsupported
12809   link_all_deplibs_F77=unknown
12810   hardcode_automatic_F77=no
12811   module_cmds_F77=
12812   module_expsym_cmds_F77=
12813   always_export_symbols_F77=no
12814   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12815   # include_expsyms should be a list of space-separated symbols to be *always*
12816   # included in the symbol list
12817   include_expsyms_F77=
12818   # exclude_expsyms can be an extended regexp of symbols to exclude
12819   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12820   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12821   # as well as any symbol that contains `d'.
12822   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12823   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12824   # platforms (ab)use it in PIC code, but their linkers get confused if
12825   # the symbol is explicitly referenced.  Since portable code cannot
12826   # rely on this symbol name, it's probably fine to never include it in
12827   # preloaded symbol tables.
12828   extract_expsyms_cmds=
12829
12830   case $host_os in
12831   cygwin* | mingw* | pw32*)
12832     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12833     # When not using gcc, we currently assume that we are using
12834     # Microsoft Visual C++.
12835     if test "$GCC" != yes; then
12836       with_gnu_ld=no
12837     fi
12838     ;;
12839   openbsd*)
12840     with_gnu_ld=no
12841     ;;
12842   esac
12843
12844   ld_shlibs_F77=yes
12845   if test "$with_gnu_ld" = yes; then
12846     # If archive_cmds runs LD, not CC, wlarc should be empty
12847     wlarc='${wl}'
12848
12849     # See if GNU ld supports shared libraries.
12850     case $host_os in
12851     aix3* | aix4* | aix5*)
12852       # On AIX/PPC, the GNU linker is very broken
12853       if test "$host_cpu" != ia64; then
12854         ld_shlibs_F77=no
12855         cat <<EOF 1>&2
12856
12857 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12858 *** to be unable to reliably create shared libraries on AIX.
12859 *** Therefore, libtool is disabling shared libraries support.  If you
12860 *** really care for shared libraries, you may want to modify your PATH
12861 *** so that a non-GNU linker is found, and then restart.
12862
12863 EOF
12864       fi
12865       ;;
12866
12867     amigaos*)
12868       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)'
12869       hardcode_libdir_flag_spec_F77='-L$libdir'
12870       hardcode_minus_L_F77=yes
12871
12872       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12873       # that the semantics of dynamic libraries on AmigaOS, at least up
12874       # to version 4, is to share data among multiple programs linked
12875       # with the same dynamic library.  Since this doesn't match the
12876       # behavior of shared libraries on other platforms, we can't use
12877       # them.
12878       ld_shlibs_F77=no
12879       ;;
12880
12881     beos*)
12882       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12883         allow_undefined_flag_F77=unsupported
12884         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12885         # support --undefined.  This deserves some investigation.  FIXME
12886         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12887       else
12888         ld_shlibs_F77=no
12889       fi
12890       ;;
12891
12892     cygwin* | mingw* | pw32*)
12893       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12894       # as there is no search path for DLLs.
12895       hardcode_libdir_flag_spec_F77='-L$libdir'
12896       allow_undefined_flag_F77=unsupported
12897       always_export_symbols_F77=no
12898       enable_shared_with_static_runtimes_F77=yes
12899       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12900
12901       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12902         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12903         # If the export-symbols file already is a .def file (1st line
12904         # is EXPORTS), use it as is; otherwise, prepend...
12905         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12906           cp $export_symbols $output_objdir/$soname.def;
12907         else
12908           echo EXPORTS > $output_objdir/$soname.def;
12909           cat $export_symbols >> $output_objdir/$soname.def;
12910         fi~
12911         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12912       else
12913         ld_shlibs=no
12914       fi
12915       ;;
12916
12917     netbsd*)
12918       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12919         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12920         wlarc=
12921       else
12922         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12923         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12924       fi
12925       ;;
12926
12927     solaris* | sysv5*)
12928       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12929         ld_shlibs_F77=no
12930         cat <<EOF 1>&2
12931
12932 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12933 *** create shared libraries on Solaris systems.  Therefore, libtool
12934 *** is disabling shared libraries support.  We urge you to upgrade GNU
12935 *** binutils to release 2.9.1 or newer.  Another option is to modify
12936 *** your PATH or compiler configuration so that the native linker is
12937 *** used, and then restart.
12938
12939 EOF
12940       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12941         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12942         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12943       else
12944         ld_shlibs_F77=no
12945       fi
12946       ;;
12947
12948     sunos4*)
12949       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12950       wlarc=
12951       hardcode_direct_F77=yes
12952       hardcode_shlibpath_var_F77=no
12953       ;;
12954
12955     *)
12956       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12957         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12958         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12959       else
12960         ld_shlibs_F77=no
12961       fi
12962       ;;
12963     esac
12964
12965     if test "$ld_shlibs_F77" = yes; then
12966       runpath_var=LD_RUN_PATH
12967       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12968       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12969       # ancient GNU ld didn't support --whole-archive et. al.
12970       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12971         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12972       else
12973         whole_archive_flag_spec_F77=
12974       fi
12975     fi
12976   else
12977     # PORTME fill in a description of your system's linker (not GNU ld)
12978     case $host_os in
12979     aix3*)
12980       allow_undefined_flag_F77=unsupported
12981       always_export_symbols_F77=yes
12982       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'
12983       # Note: this linker hardcodes the directories in LIBPATH if there
12984       # are no directories specified by -L.
12985       hardcode_minus_L_F77=yes
12986       if test "$GCC" = yes && test -z "$link_static_flag"; then
12987         # Neither direct hardcoding nor static linking is supported with a
12988         # broken collect2.
12989         hardcode_direct_F77=unsupported
12990       fi
12991       ;;
12992
12993     aix4* | aix5*)
12994       if test "$host_cpu" = ia64; then
12995         # On IA64, the linker does run time linking by default, so we don't
12996         # have to do anything special.
12997         aix_use_runtimelinking=no
12998         exp_sym_flag='-Bexport'
12999         no_entry_flag=""
13000       else
13001         # If we're using GNU nm, then we don't want the "-C" option.
13002         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13003         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13004           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'
13005         else
13006           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'
13007         fi
13008         aix_use_runtimelinking=no
13009
13010         # Test if we are trying to use run time linking or normal
13011         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13012         # need to do runtime linking.
13013         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13014           for ld_flag in $LDFLAGS; do
13015           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13016             aix_use_runtimelinking=yes
13017             break
13018           fi
13019           done
13020         esac
13021
13022         exp_sym_flag='-bexport'
13023         no_entry_flag='-bnoentry'
13024       fi
13025
13026       # When large executables or shared objects are built, AIX ld can
13027       # have problems creating the table of contents.  If linking a library
13028       # or program results in "error TOC overflow" add -mminimal-toc to
13029       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13030       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13031
13032       archive_cmds_F77=''
13033       hardcode_direct_F77=yes
13034       hardcode_libdir_separator_F77=':'
13035       link_all_deplibs_F77=yes
13036
13037       if test "$GCC" = yes; then
13038         case $host_os in aix4.012|aix4.012.*)
13039         # We only want to do this on AIX 4.2 and lower, the check
13040         # below for broken collect2 doesn't work under 4.3+
13041           collect2name=`${CC} -print-prog-name=collect2`
13042           if test -f "$collect2name" && \
13043            strings "$collect2name" | grep resolve_lib_name >/dev/null
13044           then
13045           # We have reworked collect2
13046           hardcode_direct_F77=yes
13047           else
13048           # We have old collect2
13049           hardcode_direct_F77=unsupported
13050           # It fails to find uninstalled libraries when the uninstalled
13051           # path is not listed in the libpath.  Setting hardcode_minus_L
13052           # to unsupported forces relinking
13053           hardcode_minus_L_F77=yes
13054           hardcode_libdir_flag_spec_F77='-L$libdir'
13055           hardcode_libdir_separator_F77=
13056           fi
13057         esac
13058         shared_flag='-shared'
13059       else
13060         # not using gcc
13061         if test "$host_cpu" = ia64; then
13062         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13063         # chokes on -Wl,-G. The following line is correct:
13064           shared_flag='-G'
13065         else
13066         if test "$aix_use_runtimelinking" = yes; then
13067             shared_flag='${wl}-G'
13068           else
13069             shared_flag='${wl}-bM:SRE'
13070         fi
13071         fi
13072       fi
13073
13074       # It seems that -bexpall does not export symbols beginning with
13075       # underscore (_), so it is better to generate a list of symbols to export.
13076       always_export_symbols_F77=yes
13077       if test "$aix_use_runtimelinking" = yes; then
13078         # Warning - without using the other runtime loading flags (-brtl),
13079         # -berok will link without error, but may produce a broken library.
13080         allow_undefined_flag_F77='-berok'
13081        # Determine the default libpath from the value encoded in an empty executable.
13082        cat >conftest.$ac_ext <<_ACEOF
13083       program main
13084
13085       end
13086 _ACEOF
13087 rm -f conftest.$ac_objext conftest$ac_exeext
13088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13089   (eval $ac_link) 2>&5
13090   ac_status=$?
13091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092   (exit $ac_status); } &&
13093          { ac_try='test -s conftest$ac_exeext'
13094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13095   (eval $ac_try) 2>&5
13096   ac_status=$?
13097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098   (exit $ac_status); }; }; then
13099
13100 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13101 }'`
13102 # Check for a 64-bit object if we didn't find anything.
13103 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; }
13104 }'`; fi
13105 else
13106   echo "$as_me: failed program was:" >&5
13107 sed 's/^/| /' conftest.$ac_ext >&5
13108
13109 fi
13110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13111 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13112
13113        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13114         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"
13115        else
13116         if test "$host_cpu" = ia64; then
13117           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13118           allow_undefined_flag_F77="-z nodefs"
13119           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"
13120         else
13121          # Determine the default libpath from the value encoded in an empty executable.
13122          cat >conftest.$ac_ext <<_ACEOF
13123       program main
13124
13125       end
13126 _ACEOF
13127 rm -f conftest.$ac_objext conftest$ac_exeext
13128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13129   (eval $ac_link) 2>&5
13130   ac_status=$?
13131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132   (exit $ac_status); } &&
13133          { ac_try='test -s conftest$ac_exeext'
13134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135   (eval $ac_try) 2>&5
13136   ac_status=$?
13137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138   (exit $ac_status); }; }; then
13139
13140 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13141 }'`
13142 # Check for a 64-bit object if we didn't find anything.
13143 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; }
13144 }'`; fi
13145 else
13146   echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.$ac_ext >&5
13148
13149 fi
13150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13151 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13152
13153          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13154           # Warning - without using the other run time loading flags,
13155           # -berok will link without error, but may produce a broken library.
13156           no_undefined_flag_F77=' ${wl}-bernotok'
13157           allow_undefined_flag_F77=' ${wl}-berok'
13158           # -bexpall does not export symbols beginning with underscore (_)
13159           always_export_symbols_F77=yes
13160           # Exported symbols can be pulled into shared objects from archives
13161           whole_archive_flag_spec_F77=' '
13162           archive_cmds_need_lc_F77=yes
13163           # This is similar to how AIX traditionally builds it's shared libraries.
13164           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'
13165         fi
13166       fi
13167       ;;
13168
13169     amigaos*)
13170       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)'
13171       hardcode_libdir_flag_spec_F77='-L$libdir'
13172       hardcode_minus_L_F77=yes
13173       # see comment about different semantics on the GNU ld section
13174       ld_shlibs_F77=no
13175       ;;
13176
13177     bsdi4*)
13178       export_dynamic_flag_spec_F77=-rdynamic
13179       ;;
13180
13181     cygwin* | mingw* | pw32*)
13182       # When not using gcc, we currently assume that we are using
13183       # Microsoft Visual C++.
13184       # hardcode_libdir_flag_spec is actually meaningless, as there is
13185       # no search path for DLLs.
13186       hardcode_libdir_flag_spec_F77=' '
13187       allow_undefined_flag_F77=unsupported
13188       # Tell ltmain to make .lib files, not .a files.
13189       libext=lib
13190       # Tell ltmain to make .dll files, not .so files.
13191       shrext=".dll"
13192       # FIXME: Setting linknames here is a bad hack.
13193       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13194       # The linker will automatically build a .lib file if we build a DLL.
13195       old_archive_From_new_cmds_F77='true'
13196       # FIXME: Should let the user specify the lib program.
13197       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13198       fix_srcfile_path='`cygpath -w "$srcfile"`'
13199       enable_shared_with_static_runtimes_F77=yes
13200       ;;
13201
13202     darwin* | rhapsody*)
13203     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13204       archive_cmds_need_lc_F77=no
13205       case "$host_os" in
13206       rhapsody* | darwin1.[012])
13207         allow_undefined_flag_F77='-undefined suppress'
13208         ;;
13209       *) # Darwin 1.3 on
13210         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13211         ;;
13212       esac
13213       # FIXME: Relying on posixy $() will cause problems for
13214       #        cross-compilation, but unfortunately the echo tests do not
13215       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13216       #        `"' quotes if we put them in here... so don't!
13217         lt_int_apple_cc_single_mod=no
13218         output_verbose_link_cmd='echo'
13219         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13220           lt_int_apple_cc_single_mod=yes
13221         fi
13222         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13223           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13224         else
13225         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'
13226       fi
13227       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13228       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13229         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13230           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}'
13231         else
13232           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}'
13233         fi
13234           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}'
13235       hardcode_direct_F77=no
13236       hardcode_automatic_F77=yes
13237       hardcode_shlibpath_var_F77=unsupported
13238       whole_archive_flag_spec_F77='-all_load $convenience'
13239       link_all_deplibs_F77=yes
13240     fi
13241       ;;
13242
13243     dgux*)
13244       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13245       hardcode_libdir_flag_spec_F77='-L$libdir'
13246       hardcode_shlibpath_var_F77=no
13247       ;;
13248
13249     freebsd1*)
13250       ld_shlibs_F77=no
13251       ;;
13252
13253     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13254     # support.  Future versions do this automatically, but an explicit c++rt0.o
13255     # does not break anything, and helps significantly (at the cost of a little
13256     # extra space).
13257     freebsd2.2*)
13258       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13259       hardcode_libdir_flag_spec_F77='-R$libdir'
13260       hardcode_direct_F77=yes
13261       hardcode_shlibpath_var_F77=no
13262       ;;
13263
13264     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13265     freebsd2*)
13266       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13267       hardcode_direct_F77=yes
13268       hardcode_minus_L_F77=yes
13269       hardcode_shlibpath_var_F77=no
13270       ;;
13271
13272     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13273     freebsd*)
13274       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13275       hardcode_libdir_flag_spec_F77='-R$libdir'
13276       hardcode_direct_F77=yes
13277       hardcode_shlibpath_var_F77=no
13278       ;;
13279
13280     hpux9*)
13281       if test "$GCC" = yes; then
13282         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'
13283       else
13284         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'
13285       fi
13286       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13287       hardcode_libdir_separator_F77=:
13288       hardcode_direct_F77=yes
13289
13290       # hardcode_minus_L: Not really in the search PATH,
13291       # but as the default location of the library.
13292       hardcode_minus_L_F77=yes
13293       export_dynamic_flag_spec_F77='${wl}-E'
13294       ;;
13295
13296     hpux10* | hpux11*)
13297       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13298         case "$host_cpu" in
13299         hppa*64*|ia64*)
13300           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13301           ;;
13302         *)
13303           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13304           ;;
13305         esac
13306       else
13307         case "$host_cpu" in
13308         hppa*64*|ia64*)
13309           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13310           ;;
13311         *)
13312           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13313           ;;
13314         esac
13315       fi
13316       if test "$with_gnu_ld" = no; then
13317         case "$host_cpu" in
13318         hppa*64*)
13319           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13320           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13321           hardcode_libdir_separator_F77=:
13322           hardcode_direct_F77=no
13323           hardcode_shlibpath_var_F77=no
13324           ;;
13325         ia64*)
13326           hardcode_libdir_flag_spec_F77='-L$libdir'
13327           hardcode_direct_F77=no
13328           hardcode_shlibpath_var_F77=no
13329
13330           # hardcode_minus_L: Not really in the search PATH,
13331           # but as the default location of the library.
13332           hardcode_minus_L_F77=yes
13333           ;;
13334         *)
13335           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13336           hardcode_libdir_separator_F77=:
13337           hardcode_direct_F77=yes
13338           export_dynamic_flag_spec_F77='${wl}-E'
13339
13340           # hardcode_minus_L: Not really in the search PATH,
13341           # but as the default location of the library.
13342           hardcode_minus_L_F77=yes
13343           ;;
13344         esac
13345       fi
13346       ;;
13347
13348     irix5* | irix6* | nonstopux*)
13349       if test "$GCC" = yes; then
13350         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'
13351       else
13352         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'
13353         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13354       fi
13355       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13356       hardcode_libdir_separator_F77=:
13357       link_all_deplibs_F77=yes
13358       ;;
13359
13360     netbsd*)
13361       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13362         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13363       else
13364         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13365       fi
13366       hardcode_libdir_flag_spec_F77='-R$libdir'
13367       hardcode_direct_F77=yes
13368       hardcode_shlibpath_var_F77=no
13369       ;;
13370
13371     newsos6)
13372       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13373       hardcode_direct_F77=yes
13374       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13375       hardcode_libdir_separator_F77=:
13376       hardcode_shlibpath_var_F77=no
13377       ;;
13378
13379     openbsd*)
13380       hardcode_direct_F77=yes
13381       hardcode_shlibpath_var_F77=no
13382       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13383         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13384         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13385         export_dynamic_flag_spec_F77='${wl}-E'
13386       else
13387        case $host_os in
13388          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13389            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13390            hardcode_libdir_flag_spec_F77='-R$libdir'
13391            ;;
13392          *)
13393            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13394            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13395            ;;
13396        esac
13397       fi
13398       ;;
13399
13400     os2*)
13401       hardcode_libdir_flag_spec_F77='-L$libdir'
13402       hardcode_minus_L_F77=yes
13403       allow_undefined_flag_F77=unsupported
13404       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'
13405       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13406       ;;
13407
13408     osf3*)
13409       if test "$GCC" = yes; then
13410         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13411         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'
13412       else
13413         allow_undefined_flag_F77=' -expect_unresolved \*'
13414         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'
13415       fi
13416       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13417       hardcode_libdir_separator_F77=:
13418       ;;
13419
13420     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13421       if test "$GCC" = yes; then
13422         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13423         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'
13424         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13425       else
13426         allow_undefined_flag_F77=' -expect_unresolved \*'
13427         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'
13428         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~
13429         $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'
13430
13431         # Both c and cxx compiler support -rpath directly
13432         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13433       fi
13434       hardcode_libdir_separator_F77=:
13435       ;;
13436
13437     sco3.2v5*)
13438       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13439       hardcode_shlibpath_var_F77=no
13440       export_dynamic_flag_spec_F77='${wl}-Bexport'
13441       runpath_var=LD_RUN_PATH
13442       hardcode_runpath_var=yes
13443       ;;
13444
13445     solaris*)
13446       no_undefined_flag_F77=' -z text'
13447       if test "$GCC" = yes; then
13448         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13449         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13450           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13451       else
13452         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13453         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13454         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13455       fi
13456       hardcode_libdir_flag_spec_F77='-R$libdir'
13457       hardcode_shlibpath_var_F77=no
13458       case $host_os in
13459       solaris2.[0-5] | solaris2.[0-5].*) ;;
13460       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13461         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13462       esac
13463       link_all_deplibs_F77=yes
13464       ;;
13465
13466     sunos4*)
13467       if test "x$host_vendor" = xsequent; then
13468         # Use $CC to link under sequent, because it throws in some extra .o
13469         # files that make .init and .fini sections work.
13470         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13471       else
13472         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13473       fi
13474       hardcode_libdir_flag_spec_F77='-L$libdir'
13475       hardcode_direct_F77=yes
13476       hardcode_minus_L_F77=yes
13477       hardcode_shlibpath_var_F77=no
13478       ;;
13479
13480     sysv4)
13481       case $host_vendor in
13482         sni)
13483           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13484           hardcode_direct_F77=yes # is this really true???
13485         ;;
13486         siemens)
13487           ## LD is ld it makes a PLAMLIB
13488           ## CC just makes a GrossModule.
13489           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13490           reload_cmds_F77='$CC -r -o $output$reload_objs'
13491           hardcode_direct_F77=no
13492         ;;
13493         motorola)
13494           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13495           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13496         ;;
13497       esac
13498       runpath_var='LD_RUN_PATH'
13499       hardcode_shlibpath_var_F77=no
13500       ;;
13501
13502     sysv4.3*)
13503       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13504       hardcode_shlibpath_var_F77=no
13505       export_dynamic_flag_spec_F77='-Bexport'
13506       ;;
13507
13508     sysv4*MP*)
13509       if test -d /usr/nec; then
13510         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13511         hardcode_shlibpath_var_F77=no
13512         runpath_var=LD_RUN_PATH
13513         hardcode_runpath_var=yes
13514         ld_shlibs_F77=yes
13515       fi
13516       ;;
13517
13518     sysv4.2uw2*)
13519       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13520       hardcode_direct_F77=yes
13521       hardcode_minus_L_F77=no
13522       hardcode_shlibpath_var_F77=no
13523       hardcode_runpath_var=yes
13524       runpath_var=LD_RUN_PATH
13525       ;;
13526
13527    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13528       no_undefined_flag_F77='${wl}-z ${wl}text'
13529       if test "$GCC" = yes; then
13530         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13531       else
13532         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13533       fi
13534       runpath_var='LD_RUN_PATH'
13535       hardcode_shlibpath_var_F77=no
13536       ;;
13537
13538     sysv5*)
13539       no_undefined_flag_F77=' -z text'
13540       # $CC -shared without GNU ld will not create a library from C++
13541       # object files and a static libstdc++, better avoid it by now
13542       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13543       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13544                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13545       hardcode_libdir_flag_spec_F77=
13546       hardcode_shlibpath_var_F77=no
13547       runpath_var='LD_RUN_PATH'
13548       ;;
13549
13550     uts4*)
13551       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13552       hardcode_libdir_flag_spec_F77='-L$libdir'
13553       hardcode_shlibpath_var_F77=no
13554       ;;
13555
13556     *)
13557       ld_shlibs_F77=no
13558       ;;
13559     esac
13560   fi
13561
13562 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13563 echo "${ECHO_T}$ld_shlibs_F77" >&6
13564 test "$ld_shlibs_F77" = no && can_build_shared=no
13565
13566 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13567 if test "$GCC" = yes; then
13568   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13569 fi
13570
13571 #
13572 # Do we need to explicitly link libc?
13573 #
13574 case "x$archive_cmds_need_lc_F77" in
13575 x|xyes)
13576   # Assume -lc should be added
13577   archive_cmds_need_lc_F77=yes
13578
13579   if test "$enable_shared" = yes && test "$GCC" = yes; then
13580     case $archive_cmds_F77 in
13581     *'~'*)
13582       # FIXME: we may have to deal with multi-command sequences.
13583       ;;
13584     '$CC '*)
13585       # Test whether the compiler implicitly links with -lc since on some
13586       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13587       # to ld, don't add -lc before -lgcc.
13588       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13589 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13590       $rm conftest*
13591       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13592
13593       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13594   (eval $ac_compile) 2>&5
13595   ac_status=$?
13596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597   (exit $ac_status); } 2>conftest.err; then
13598         soname=conftest
13599         lib=conftest
13600         libobjs=conftest.$ac_objext
13601         deplibs=
13602         wl=$lt_prog_compiler_wl_F77
13603         compiler_flags=-v
13604         linker_flags=-v
13605         verstring=
13606         output_objdir=.
13607         libname=conftest
13608         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13609         allow_undefined_flag_F77=
13610         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13611   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13612   ac_status=$?
13613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614   (exit $ac_status); }
13615         then
13616           archive_cmds_need_lc_F77=no
13617         else
13618           archive_cmds_need_lc_F77=yes
13619         fi
13620         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13621       else
13622         cat conftest.err 1>&5
13623       fi
13624       $rm conftest*
13625       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13626 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13627       ;;
13628     esac
13629   fi
13630   ;;
13631 esac
13632
13633 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13634 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13635 hardcode_action_F77=
13636 if test -n "$hardcode_libdir_flag_spec_F77" || \
13637    test -n "$runpath_var F77" || \
13638    test "X$hardcode_automatic_F77"="Xyes" ; then
13639
13640   # We can hardcode non-existant directories.
13641   if test "$hardcode_direct_F77" != no &&
13642      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13643      # have to relink, otherwise we might link with an installed library
13644      # when we should be linking with a yet-to-be-installed one
13645      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13646      test "$hardcode_minus_L_F77" != no; then
13647     # Linking always hardcodes the temporary library directory.
13648     hardcode_action_F77=relink
13649   else
13650     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13651     hardcode_action_F77=immediate
13652   fi
13653 else
13654   # We cannot hardcode anything, or else we can only hardcode existing
13655   # directories.
13656   hardcode_action_F77=unsupported
13657 fi
13658 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13659 echo "${ECHO_T}$hardcode_action_F77" >&6
13660
13661 if test "$hardcode_action_F77" = relink; then
13662   # Fast installation is not supported
13663   enable_fast_install=no
13664 elif test "$shlibpath_overrides_runpath" = yes ||
13665      test "$enable_shared" = no; then
13666   # Fast installation is not necessary
13667   enable_fast_install=needless
13668 fi
13669
13670 striplib=
13671 old_striplib=
13672 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13673 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13674 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13675   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13676   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13677   echo "$as_me:$LINENO: result: yes" >&5
13678 echo "${ECHO_T}yes" >&6
13679 else
13680 # FIXME - insert some real tests, host_os isn't really good enough
13681   case $host_os in
13682    darwin*)
13683        if test -n "$STRIP" ; then
13684          striplib="$STRIP -x"
13685          echo "$as_me:$LINENO: result: yes" >&5
13686 echo "${ECHO_T}yes" >&6
13687        else
13688   echo "$as_me:$LINENO: result: no" >&5
13689 echo "${ECHO_T}no" >&6
13690 fi
13691        ;;
13692    *)
13693   echo "$as_me:$LINENO: result: no" >&5
13694 echo "${ECHO_T}no" >&6
13695     ;;
13696   esac
13697 fi
13698
13699 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13700 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13701 library_names_spec=
13702 libname_spec='lib$name'
13703 soname_spec=
13704 shrext=".so"
13705 postinstall_cmds=
13706 postuninstall_cmds=
13707 finish_cmds=
13708 finish_eval=
13709 shlibpath_var=
13710 shlibpath_overrides_runpath=unknown
13711 version_type=none
13712 dynamic_linker="$host_os ld.so"
13713 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13714 if test "$GCC" = yes; then
13715   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13716   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13717     # if the path contains ";" then we assume it to be the separator
13718     # otherwise default to the standard path separator (i.e. ":") - it is
13719     # assumed that no part of a normal pathname contains ";" but that should
13720     # okay in the real world where ";" in dirpaths is itself problematic.
13721     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13722   else
13723     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13724   fi
13725 else
13726   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13727 fi
13728 need_lib_prefix=unknown
13729 hardcode_into_libs=no
13730
13731 # when you set need_version to no, make sure it does not cause -set_version
13732 # flags to be left without arguments
13733 need_version=unknown
13734
13735 case $host_os in
13736 aix3*)
13737   version_type=linux
13738   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13739   shlibpath_var=LIBPATH
13740
13741   # AIX 3 has no versioning support, so we append a major version to the name.
13742   soname_spec='${libname}${release}${shared_ext}$major'
13743   ;;
13744
13745 aix4* | aix5*)
13746   version_type=linux
13747   need_lib_prefix=no
13748   need_version=no
13749   hardcode_into_libs=yes
13750   if test "$host_cpu" = ia64; then
13751     # AIX 5 supports IA64
13752     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13753     shlibpath_var=LD_LIBRARY_PATH
13754   else
13755     # With GCC up to 2.95.x, collect2 would create an import file
13756     # for dependence libraries.  The import file would start with
13757     # the line `#! .'.  This would cause the generated library to
13758     # depend on `.', always an invalid library.  This was fixed in
13759     # development snapshots of GCC prior to 3.0.
13760     case $host_os in
13761       aix4 | aix4.[01] | aix4.[01].*)
13762       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13763            echo ' yes '
13764            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13765         :
13766       else
13767         can_build_shared=no
13768       fi
13769       ;;
13770     esac
13771     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13772     # soname into executable. Probably we can add versioning support to
13773     # collect2, so additional links can be useful in future.
13774     if test "$aix_use_runtimelinking" = yes; then
13775       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13776       # instead of lib<name>.a to let people know that these are not
13777       # typical AIX shared libraries.
13778       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13779     else
13780       # We preserve .a as extension for shared libraries through AIX4.2
13781       # and later when we are not doing run time linking.
13782       library_names_spec='${libname}${release}.a $libname.a'
13783       soname_spec='${libname}${release}${shared_ext}$major'
13784     fi
13785     shlibpath_var=LIBPATH
13786   fi
13787   ;;
13788
13789 amigaos*)
13790   library_names_spec='$libname.ixlibrary $libname.a'
13791   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13792   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'
13793   ;;
13794
13795 beos*)
13796   library_names_spec='${libname}${shared_ext}'
13797   dynamic_linker="$host_os ld.so"
13798   shlibpath_var=LIBRARY_PATH
13799   ;;
13800
13801 bsdi4*)
13802   version_type=linux
13803   need_version=no
13804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13805   soname_spec='${libname}${release}${shared_ext}$major'
13806   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13807   shlibpath_var=LD_LIBRARY_PATH
13808   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13809   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13810   # the default ld.so.conf also contains /usr/contrib/lib and
13811   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13812   # libtool to hard-code these into programs
13813   ;;
13814
13815 cygwin* | mingw* | pw32*)
13816   version_type=windows
13817   shrext=".dll"
13818   need_version=no
13819   need_lib_prefix=no
13820
13821   case $GCC,$host_os in
13822   yes,cygwin* | yes,mingw* | yes,pw32*)
13823     library_names_spec='$libname.dll.a'
13824     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13825     postinstall_cmds='base_file=`basename \${file}`~
13826       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13827       dldir=$destdir/`dirname \$dlpath`~
13828       test -d \$dldir || mkdir -p \$dldir~
13829       $install_prog $dir/$dlname \$dldir/$dlname'
13830     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13831       dlpath=$dir/\$dldll~
13832        $rm \$dlpath'
13833     shlibpath_overrides_runpath=yes
13834
13835     case $host_os in
13836     cygwin*)
13837       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13838       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13839       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13840       ;;
13841     mingw*)
13842       # MinGW DLLs use traditional 'lib' prefix
13843       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13844       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13845       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13846         # It is most probably a Windows format PATH printed by
13847         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13848         # path with ; separators, and with drive letters. We can handle the
13849         # drive letters (cygwin fileutils understands them), so leave them,
13850         # especially as we might pass files found there to a mingw objdump,
13851         # which wouldn't understand a cygwinified path. Ahh.
13852         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13853       else
13854         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13855       fi
13856       ;;
13857     pw32*)
13858       # pw32 DLLs use 'pw' prefix rather than 'lib'
13859       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13860       ;;
13861     esac
13862     ;;
13863
13864   *)
13865     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13866     ;;
13867   esac
13868   dynamic_linker='Win32 ld.exe'
13869   # FIXME: first we should search . and the directory the executable is in
13870   shlibpath_var=PATH
13871   ;;
13872
13873 darwin* | rhapsody*)
13874   dynamic_linker="$host_os dyld"
13875   version_type=darwin
13876   need_lib_prefix=no
13877   need_version=no
13878   # FIXME: Relying on posixy $() will cause problems for
13879   #        cross-compilation, but unfortunately the echo tests do not
13880   #        yet detect zsh echo's removal of \ escapes.
13881   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13882   soname_spec='${libname}${release}${major}$shared_ext'
13883   shlibpath_overrides_runpath=yes
13884   shlibpath_var=DYLD_LIBRARY_PATH
13885   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13886   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13887   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13888   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"`
13889   fi
13890   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13891   ;;
13892
13893 dgux*)
13894   version_type=linux
13895   need_lib_prefix=no
13896   need_version=no
13897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13898   soname_spec='${libname}${release}${shared_ext}$major'
13899   shlibpath_var=LD_LIBRARY_PATH
13900   ;;
13901
13902 freebsd1*)
13903   dynamic_linker=no
13904   ;;
13905
13906 freebsd*)
13907   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13908   version_type=freebsd-$objformat
13909   case $version_type in
13910     freebsd-elf*)
13911       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13912       need_version=no
13913       need_lib_prefix=no
13914       ;;
13915     freebsd-*)
13916       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13917       need_version=yes
13918       ;;
13919   esac
13920   shlibpath_var=LD_LIBRARY_PATH
13921   case $host_os in
13922   freebsd2*)
13923     shlibpath_overrides_runpath=yes
13924     ;;
13925   freebsd3.01* | freebsdelf3.01*)
13926     shlibpath_overrides_runpath=yes
13927     hardcode_into_libs=yes
13928     ;;
13929   *) # from 3.2 on
13930     shlibpath_overrides_runpath=no
13931     hardcode_into_libs=yes
13932     ;;
13933   esac
13934   ;;
13935
13936 gnu*)
13937   version_type=linux
13938   need_lib_prefix=no
13939   need_version=no
13940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13941   soname_spec='${libname}${release}${shared_ext}$major'
13942   shlibpath_var=LD_LIBRARY_PATH
13943   hardcode_into_libs=yes
13944   ;;
13945
13946 hpux9* | hpux10* | hpux11*)
13947   # Give a soname corresponding to the major version so that dld.sl refuses to
13948   # link against other versions.
13949   version_type=sunos
13950   need_lib_prefix=no
13951   need_version=no
13952   case "$host_cpu" in
13953   ia64*)
13954     shrext='.so'
13955     hardcode_into_libs=yes
13956     dynamic_linker="$host_os dld.so"
13957     shlibpath_var=LD_LIBRARY_PATH
13958     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13959     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13960     soname_spec='${libname}${release}${shared_ext}$major'
13961     if test "X$HPUX_IA64_MODE" = X32; then
13962       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13963     else
13964       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13965     fi
13966     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13967     ;;
13968    hppa*64*)
13969      shrext='.sl'
13970      hardcode_into_libs=yes
13971      dynamic_linker="$host_os dld.sl"
13972      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13973      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13974      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13975      soname_spec='${libname}${release}${shared_ext}$major'
13976      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13977      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13978      ;;
13979    *)
13980     shrext='.sl'
13981     dynamic_linker="$host_os dld.sl"
13982     shlibpath_var=SHLIB_PATH
13983     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13984     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13985     soname_spec='${libname}${release}${shared_ext}$major'
13986     ;;
13987   esac
13988   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13989   postinstall_cmds='chmod 555 $lib'
13990   ;;
13991
13992 irix5* | irix6* | nonstopux*)
13993   case $host_os in
13994     nonstopux*) version_type=nonstopux ;;
13995     *)
13996         if test "$lt_cv_prog_gnu_ld" = yes; then
13997                 version_type=linux
13998         else
13999                 version_type=irix
14000         fi ;;
14001   esac
14002   need_lib_prefix=no
14003   need_version=no
14004   soname_spec='${libname}${release}${shared_ext}$major'
14005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14006   case $host_os in
14007   irix5* | nonstopux*)
14008     libsuff= shlibsuff=
14009     ;;
14010   *)
14011     case $LD in # libtool.m4 will add one of these switches to LD
14012     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14013       libsuff= shlibsuff= libmagic=32-bit;;
14014     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14015       libsuff=32 shlibsuff=N32 libmagic=N32;;
14016     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14017       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14018     *) libsuff= shlibsuff= libmagic=never-match;;
14019     esac
14020     ;;
14021   esac
14022   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14023   shlibpath_overrides_runpath=no
14024   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14025   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14026   hardcode_into_libs=yes
14027   ;;
14028
14029 # No shared lib support for Linux oldld, aout, or coff.
14030 linux*oldld* | linux*aout* | linux*coff*)
14031   dynamic_linker=no
14032   ;;
14033
14034 # This must be Linux ELF.
14035 linux*)
14036   version_type=linux
14037   need_lib_prefix=no
14038   need_version=no
14039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14040   soname_spec='${libname}${release}${shared_ext}$major'
14041   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14042   shlibpath_var=LD_LIBRARY_PATH
14043   shlibpath_overrides_runpath=no
14044   # This implies no fast_install, which is unacceptable.
14045   # Some rework will be needed to allow for fast_install
14046   # before this can be enabled.
14047   hardcode_into_libs=yes
14048
14049   # We used to test for /lib/ld.so.1 and disable shared libraries on
14050   # powerpc, because MkLinux only supported shared libraries with the
14051   # GNU dynamic linker.  Since this was broken with cross compilers,
14052   # most powerpc-linux boxes support dynamic linking these days and
14053   # people can always --disable-shared, the test was removed, and we
14054   # assume the GNU/Linux dynamic linker is in use.
14055   dynamic_linker='GNU/Linux ld.so'
14056   ;;
14057
14058 netbsd*)
14059   version_type=sunos
14060   need_lib_prefix=no
14061   need_version=no
14062   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14063     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14064     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14065     dynamic_linker='NetBSD (a.out) ld.so'
14066   else
14067     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14068     soname_spec='${libname}${release}${shared_ext}$major'
14069     dynamic_linker='NetBSD ld.elf_so'
14070   fi
14071   shlibpath_var=LD_LIBRARY_PATH
14072   shlibpath_overrides_runpath=yes
14073   hardcode_into_libs=yes
14074   ;;
14075
14076 newsos6)
14077   version_type=linux
14078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14079   shlibpath_var=LD_LIBRARY_PATH
14080   shlibpath_overrides_runpath=yes
14081   ;;
14082
14083 nto-qnx)
14084   version_type=linux
14085   need_lib_prefix=no
14086   need_version=no
14087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14088   soname_spec='${libname}${release}${shared_ext}$major'
14089   shlibpath_var=LD_LIBRARY_PATH
14090   shlibpath_overrides_runpath=yes
14091   ;;
14092
14093 openbsd*)
14094   version_type=sunos
14095   need_lib_prefix=no
14096   need_version=no
14097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14098   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14099   shlibpath_var=LD_LIBRARY_PATH
14100   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14101     case $host_os in
14102       openbsd2.[89] | openbsd2.[89].*)
14103         shlibpath_overrides_runpath=no
14104         ;;
14105       *)
14106         shlibpath_overrides_runpath=yes
14107         ;;
14108       esac
14109   else
14110     shlibpath_overrides_runpath=yes
14111   fi
14112   ;;
14113
14114 os2*)
14115   libname_spec='$name'
14116   shrext=".dll"
14117   need_lib_prefix=no
14118   library_names_spec='$libname${shared_ext} $libname.a'
14119   dynamic_linker='OS/2 ld.exe'
14120   shlibpath_var=LIBPATH
14121   ;;
14122
14123 osf3* | osf4* | osf5*)
14124   version_type=osf
14125   need_lib_prefix=no
14126   need_version=no
14127   soname_spec='${libname}${release}${shared_ext}$major'
14128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14129   shlibpath_var=LD_LIBRARY_PATH
14130   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14131   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14132   ;;
14133
14134 sco3.2v5*)
14135   version_type=osf
14136   soname_spec='${libname}${release}${shared_ext}$major'
14137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14138   shlibpath_var=LD_LIBRARY_PATH
14139   ;;
14140
14141 solaris*)
14142   version_type=linux
14143   need_lib_prefix=no
14144   need_version=no
14145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14146   soname_spec='${libname}${release}${shared_ext}$major'
14147   shlibpath_var=LD_LIBRARY_PATH
14148   shlibpath_overrides_runpath=yes
14149   hardcode_into_libs=yes
14150   # ldd complains unless libraries are executable
14151   postinstall_cmds='chmod +x $lib'
14152   ;;
14153
14154 sunos4*)
14155   version_type=sunos
14156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14157   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14158   shlibpath_var=LD_LIBRARY_PATH
14159   shlibpath_overrides_runpath=yes
14160   if test "$with_gnu_ld" = yes; then
14161     need_lib_prefix=no
14162   fi
14163   need_version=yes
14164   ;;
14165
14166 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14167   version_type=linux
14168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14169   soname_spec='${libname}${release}${shared_ext}$major'
14170   shlibpath_var=LD_LIBRARY_PATH
14171   case $host_vendor in
14172     sni)
14173       shlibpath_overrides_runpath=no
14174       need_lib_prefix=no
14175       export_dynamic_flag_spec='${wl}-Blargedynsym'
14176       runpath_var=LD_RUN_PATH
14177       ;;
14178     siemens)
14179       need_lib_prefix=no
14180       ;;
14181     motorola)
14182       need_lib_prefix=no
14183       need_version=no
14184       shlibpath_overrides_runpath=no
14185       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14186       ;;
14187   esac
14188   ;;
14189
14190 sysv4*MP*)
14191   if test -d /usr/nec ;then
14192     version_type=linux
14193     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14194     soname_spec='$libname${shared_ext}.$major'
14195     shlibpath_var=LD_LIBRARY_PATH
14196   fi
14197   ;;
14198
14199 uts4*)
14200   version_type=linux
14201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14202   soname_spec='${libname}${release}${shared_ext}$major'
14203   shlibpath_var=LD_LIBRARY_PATH
14204   ;;
14205
14206 *)
14207   dynamic_linker=no
14208   ;;
14209 esac
14210 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14211 echo "${ECHO_T}$dynamic_linker" >&6
14212 test "$dynamic_linker" = no && can_build_shared=no
14213
14214
14215 # The else clause should only fire when bootstrapping the
14216 # libtool distribution, otherwise you forgot to ship ltmain.sh
14217 # with your package, and you will get complaints that there are
14218 # no rules to generate ltmain.sh.
14219 if test -f "$ltmain"; then
14220   # See if we are running on zsh, and set the options which allow our commands through
14221   # without removal of \ escapes.
14222   if test -n "${ZSH_VERSION+set}" ; then
14223     setopt NO_GLOB_SUBST
14224   fi
14225   # Now quote all the things that may contain metacharacters while being
14226   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14227   # variables and quote the copies for generation of the libtool script.
14228   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14229     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14230     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14231     deplibs_check_method reload_flag reload_cmds need_locks \
14232     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14233     lt_cv_sys_global_symbol_to_c_name_address \
14234     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14235     old_postinstall_cmds old_postuninstall_cmds \
14236     compiler_F77 \
14237     CC_F77 \
14238     LD_F77 \
14239     lt_prog_compiler_wl_F77 \
14240     lt_prog_compiler_pic_F77 \
14241     lt_prog_compiler_static_F77 \
14242     lt_prog_compiler_no_builtin_flag_F77 \
14243     export_dynamic_flag_spec_F77 \
14244     thread_safe_flag_spec_F77 \
14245     whole_archive_flag_spec_F77 \
14246     enable_shared_with_static_runtimes_F77 \
14247     old_archive_cmds_F77 \
14248     old_archive_from_new_cmds_F77 \
14249     predep_objects_F77 \
14250     postdep_objects_F77 \
14251     predeps_F77 \
14252     postdeps_F77 \
14253     compiler_lib_search_path_F77 \
14254     archive_cmds_F77 \
14255     archive_expsym_cmds_F77 \
14256     postinstall_cmds_F77 \
14257     postuninstall_cmds_F77 \
14258     old_archive_from_expsyms_cmds_F77 \
14259     allow_undefined_flag_F77 \
14260     no_undefined_flag_F77 \
14261     export_symbols_cmds_F77 \
14262     hardcode_libdir_flag_spec_F77 \
14263     hardcode_libdir_flag_spec_ld_F77 \
14264     hardcode_libdir_separator_F77 \
14265     hardcode_automatic_F77 \
14266     module_cmds_F77 \
14267     module_expsym_cmds_F77 \
14268     lt_cv_prog_compiler_c_o_F77 \
14269     exclude_expsyms_F77 \
14270     include_expsyms_F77; do
14271
14272     case $var in
14273     old_archive_cmds_F77 | \
14274     old_archive_from_new_cmds_F77 | \
14275     archive_cmds_F77 | \
14276     archive_expsym_cmds_F77 | \
14277     module_cmds_F77 | \
14278     module_expsym_cmds_F77 | \
14279     old_archive_from_expsyms_cmds_F77 | \
14280     export_symbols_cmds_F77 | \
14281     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14282     postinstall_cmds | postuninstall_cmds | \
14283     old_postinstall_cmds | old_postuninstall_cmds | \
14284     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14285       # Double-quote double-evaled strings.
14286       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14287       ;;
14288     *)
14289       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14290       ;;
14291     esac
14292   done
14293
14294   case $lt_echo in
14295   *'\$0 --fallback-echo"')
14296     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14297     ;;
14298   esac
14299
14300 cfgfile="$ofile"
14301
14302   cat <<__EOF__ >> "$cfgfile"
14303 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14304
14305 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14306
14307 # Shell to use when invoking shell scripts.
14308 SHELL=$lt_SHELL
14309
14310 # Whether or not to build shared libraries.
14311 build_libtool_libs=$enable_shared
14312
14313 # Whether or not to build static libraries.
14314 build_old_libs=$enable_static
14315
14316 # Whether or not to add -lc for building shared libraries.
14317 build_libtool_need_lc=$archive_cmds_need_lc_F77
14318
14319 # Whether or not to disallow shared libs when runtime libs are static
14320 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14321
14322 # Whether or not to optimize for fast installation.
14323 fast_install=$enable_fast_install
14324
14325 # The host system.
14326 host_alias=$host_alias
14327 host=$host
14328
14329 # An echo program that does not interpret backslashes.
14330 echo=$lt_echo
14331
14332 # The archiver.
14333 AR=$lt_AR
14334 AR_FLAGS=$lt_AR_FLAGS
14335
14336 # A C compiler.
14337 LTCC=$lt_LTCC
14338
14339 # A language-specific compiler.
14340 CC=$lt_compiler_F77
14341
14342 # Is the compiler the GNU C compiler?
14343 with_gcc=$GCC_F77
14344
14345 # An ERE matcher.
14346 EGREP=$lt_EGREP
14347
14348 # The linker used to build libraries.
14349 LD=$lt_LD_F77
14350
14351 # Whether we need hard or soft links.
14352 LN_S=$lt_LN_S
14353
14354 # A BSD-compatible nm program.
14355 NM=$lt_NM
14356
14357 # A symbol stripping program
14358 STRIP=$STRIP
14359
14360 # Used to examine libraries when file_magic_cmd begins "file"
14361 MAGIC_CMD=$MAGIC_CMD
14362
14363 # Used on cygwin: DLL creation program.
14364 DLLTOOL="$DLLTOOL"
14365
14366 # Used on cygwin: object dumper.
14367 OBJDUMP="$OBJDUMP"
14368
14369 # Used on cygwin: assembler.
14370 AS="$AS"
14371
14372 # The name of the directory that contains temporary libtool files.
14373 objdir=$objdir
14374
14375 # How to create reloadable object files.
14376 reload_flag=$lt_reload_flag
14377 reload_cmds=$lt_reload_cmds
14378
14379 # How to pass a linker flag through the compiler.
14380 wl=$lt_lt_prog_compiler_wl_F77
14381
14382 # Object file suffix (normally "o").
14383 objext="$ac_objext"
14384
14385 # Old archive suffix (normally "a").
14386 libext="$libext"
14387
14388 # Shared library suffix (normally ".so").
14389 shrext='$shrext'
14390
14391 # Executable file suffix (normally "").
14392 exeext="$exeext"
14393
14394 # Additional compiler flags for building library objects.
14395 pic_flag=$lt_lt_prog_compiler_pic_F77
14396 pic_mode=$pic_mode
14397
14398 # What is the maximum length of a command?
14399 max_cmd_len=$lt_cv_sys_max_cmd_len
14400
14401 # Does compiler simultaneously support -c and -o options?
14402 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14403
14404 # Must we lock files when doing compilation ?
14405 need_locks=$lt_need_locks
14406
14407 # Do we need the lib prefix for modules?
14408 need_lib_prefix=$need_lib_prefix
14409
14410 # Do we need a version for libraries?
14411 need_version=$need_version
14412
14413 # Whether dlopen is supported.
14414 dlopen_support=$enable_dlopen
14415
14416 # Whether dlopen of programs is supported.
14417 dlopen_self=$enable_dlopen_self
14418
14419 # Whether dlopen of statically linked programs is supported.
14420 dlopen_self_static=$enable_dlopen_self_static
14421
14422 # Compiler flag to prevent dynamic linking.
14423 link_static_flag=$lt_lt_prog_compiler_static_F77
14424
14425 # Compiler flag to turn off builtin functions.
14426 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14427
14428 # Compiler flag to allow reflexive dlopens.
14429 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14430
14431 # Compiler flag to generate shared objects directly from archives.
14432 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14433
14434 # Compiler flag to generate thread-safe objects.
14435 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14436
14437 # Library versioning type.
14438 version_type=$version_type
14439
14440 # Format of library name prefix.
14441 libname_spec=$lt_libname_spec
14442
14443 # List of archive names.  First name is the real one, the rest are links.
14444 # The last name is the one that the linker finds with -lNAME.
14445 library_names_spec=$lt_library_names_spec
14446
14447 # The coded name of the library, if different from the real name.
14448 soname_spec=$lt_soname_spec
14449
14450 # Commands used to build and install an old-style archive.
14451 RANLIB=$lt_RANLIB
14452 old_archive_cmds=$lt_old_archive_cmds_F77
14453 old_postinstall_cmds=$lt_old_postinstall_cmds
14454 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14455
14456 # Create an old-style archive from a shared archive.
14457 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14458
14459 # Create a temporary old-style archive to link instead of a shared archive.
14460 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14461
14462 # Commands used to build and install a shared archive.
14463 archive_cmds=$lt_archive_cmds_F77
14464 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14465 postinstall_cmds=$lt_postinstall_cmds
14466 postuninstall_cmds=$lt_postuninstall_cmds
14467
14468 # Commands used to build a loadable module (assumed same as above if empty)
14469 module_cmds=$lt_module_cmds_F77
14470 module_expsym_cmds=$lt_module_expsym_cmds_F77
14471
14472 # Commands to strip libraries.
14473 old_striplib=$lt_old_striplib
14474 striplib=$lt_striplib
14475
14476 # Dependencies to place before the objects being linked to create a
14477 # shared library.
14478 predep_objects=$lt_predep_objects_F77
14479
14480 # Dependencies to place after the objects being linked to create a
14481 # shared library.
14482 postdep_objects=$lt_postdep_objects_F77
14483
14484 # Dependencies to place before the objects being linked to create a
14485 # shared library.
14486 predeps=$lt_predeps_F77
14487
14488 # Dependencies to place after the objects being linked to create a
14489 # shared library.
14490 postdeps=$lt_postdeps_F77
14491
14492 # The library search path used internally by the compiler when linking
14493 # a shared library.
14494 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14495
14496 # Method to check whether dependent libraries are shared objects.
14497 deplibs_check_method=$lt_deplibs_check_method
14498
14499 # Command to use when deplibs_check_method == file_magic.
14500 file_magic_cmd=$lt_file_magic_cmd
14501
14502 # Flag that allows shared libraries with undefined symbols to be built.
14503 allow_undefined_flag=$lt_allow_undefined_flag_F77
14504
14505 # Flag that forces no undefined symbols.
14506 no_undefined_flag=$lt_no_undefined_flag_F77
14507
14508 # Commands used to finish a libtool library installation in a directory.
14509 finish_cmds=$lt_finish_cmds
14510
14511 # Same as above, but a single script fragment to be evaled but not shown.
14512 finish_eval=$lt_finish_eval
14513
14514 # Take the output of nm and produce a listing of raw symbols and C names.
14515 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14516
14517 # Transform the output of nm in a proper C declaration
14518 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14519
14520 # Transform the output of nm in a C name address pair
14521 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14522
14523 # This is the shared library runtime path variable.
14524 runpath_var=$runpath_var
14525
14526 # This is the shared library path variable.
14527 shlibpath_var=$shlibpath_var
14528
14529 # Is shlibpath searched before the hard-coded library search path?
14530 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14531
14532 # How to hardcode a shared library path into an executable.
14533 hardcode_action=$hardcode_action_F77
14534
14535 # Whether we should hardcode library paths into libraries.
14536 hardcode_into_libs=$hardcode_into_libs
14537
14538 # Flag to hardcode \$libdir into a binary during linking.
14539 # This must work even if \$libdir does not exist.
14540 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14541
14542 # If ld is used when linking, flag to hardcode \$libdir into
14543 # a binary during linking. This must work even if \$libdir does
14544 # not exist.
14545 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14546
14547 # Whether we need a single -rpath flag with a separated argument.
14548 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14549
14550 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14551 # resulting binary.
14552 hardcode_direct=$hardcode_direct_F77
14553
14554 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14555 # resulting binary.
14556 hardcode_minus_L=$hardcode_minus_L_F77
14557
14558 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14559 # the resulting binary.
14560 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14561
14562 # Set to yes if building a shared library automatically hardcodes DIR into the library
14563 # and all subsequent libraries and executables linked against it.
14564 hardcode_automatic=$hardcode_automatic_F77
14565
14566 # Variables whose values should be saved in libtool wrapper scripts and
14567 # restored at relink time.
14568 variables_saved_for_relink="$variables_saved_for_relink"
14569
14570 # Whether libtool must link a program against all its dependency libraries.
14571 link_all_deplibs=$link_all_deplibs_F77
14572
14573 # Compile-time system search path for libraries
14574 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14575
14576 # Run-time system search path for libraries
14577 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14578
14579 # Fix the shell variable \$srcfile for the compiler.
14580 fix_srcfile_path="$fix_srcfile_path_F77"
14581
14582 # Set to yes if exported symbols are required.
14583 always_export_symbols=$always_export_symbols_F77
14584
14585 # The commands to list exported symbols.
14586 export_symbols_cmds=$lt_export_symbols_cmds_F77
14587
14588 # The commands to extract the exported symbol list from a shared archive.
14589 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14590
14591 # Symbols that should not be listed in the preloaded symbols.
14592 exclude_expsyms=$lt_exclude_expsyms_F77
14593
14594 # Symbols that must always be exported.
14595 include_expsyms=$lt_include_expsyms_F77
14596
14597 # ### END LIBTOOL TAG CONFIG: $tagname
14598
14599 __EOF__
14600
14601
14602 else
14603   # If there is no Makefile yet, we rely on a make rule to execute
14604   # `config.status --recheck' to rerun these tests and create the
14605   # libtool script then.
14606   test -f Makefile && make "$ltmain"
14607 fi
14608
14609
14610 ac_ext=c
14611 ac_cpp='$CPP $CPPFLAGS'
14612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14615
14616 CC="$lt_save_CC"
14617
14618         else
14619           tagname=""
14620         fi
14621         ;;
14622
14623       GCJ)
14624         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14625
14626
14627
14628 # Source file extension for Java test sources.
14629 ac_ext=java
14630
14631 # Object file extension for compiled Java test sources.
14632 objext=o
14633 objext_GCJ=$objext
14634
14635 # Code to be used in simple compile tests
14636 lt_simple_compile_test_code="class foo {}\n"
14637
14638 # Code to be used in simple link tests
14639 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14640
14641 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14642
14643 # If no C compiler was specified, use CC.
14644 LTCC=${LTCC-"$CC"}
14645
14646 # Allow CC to be a program name with arguments.
14647 compiler=$CC
14648
14649
14650 # Allow CC to be a program name with arguments.
14651 lt_save_CC="$CC"
14652 CC=${GCJ-"gcj"}
14653 compiler=$CC
14654 compiler_GCJ=$CC
14655
14656 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14657 archive_cmds_need_lc_GCJ=no
14658
14659
14660 lt_prog_compiler_no_builtin_flag_GCJ=
14661
14662 if test "$GCC" = yes; then
14663   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14664
14665   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14666 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14667 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14668   echo $ECHO_N "(cached) $ECHO_C" >&6
14669 else
14670   lt_cv_prog_compiler_rtti_exceptions=no
14671   ac_outfile=conftest.$ac_objext
14672    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14673    lt_compiler_flag="-fno-rtti -fno-exceptions"
14674    # Insert the option either (1) after the last *FLAGS variable, or
14675    # (2) before a word containing "conftest.", or (3) at the end.
14676    # Note that $ac_compile itself does not contain backslashes and begins
14677    # with a dollar sign (not a hyphen), so the echo should work correctly.
14678    # The option is referenced via a variable to avoid confusing sed.
14679    lt_compile=`echo "$ac_compile" | $SED \
14680    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14681    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14682    -e 's:$: $lt_compiler_flag:'`
14683    (eval echo "\"\$as_me:14683: $lt_compile\"" >&5)
14684    (eval "$lt_compile" 2>conftest.err)
14685    ac_status=$?
14686    cat conftest.err >&5
14687    echo "$as_me:14687: \$? = $ac_status" >&5
14688    if (exit $ac_status) && test -s "$ac_outfile"; then
14689      # The compiler can only warn and ignore the option if not recognized
14690      # So say no if there are warnings
14691      if test ! -s conftest.err; then
14692        lt_cv_prog_compiler_rtti_exceptions=yes
14693      fi
14694    fi
14695    $rm conftest*
14696
14697 fi
14698 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14699 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14700
14701 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14702     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14703 else
14704     :
14705 fi
14706
14707 fi
14708
14709 lt_prog_compiler_wl_GCJ=
14710 lt_prog_compiler_pic_GCJ=
14711 lt_prog_compiler_static_GCJ=
14712
14713 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14714 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14715
14716   if test "$GCC" = yes; then
14717     lt_prog_compiler_wl_GCJ='-Wl,'
14718     lt_prog_compiler_static_GCJ='-static'
14719
14720     case $host_os in
14721       aix*)
14722       # All AIX code is PIC.
14723       if test "$host_cpu" = ia64; then
14724         # AIX 5 now supports IA64 processor
14725         lt_prog_compiler_static_GCJ='-Bstatic'
14726       fi
14727       ;;
14728
14729     amigaos*)
14730       # FIXME: we need at least 68020 code to build shared libraries, but
14731       # adding the `-m68020' flag to GCC prevents building anything better,
14732       # like `-m68040'.
14733       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14734       ;;
14735
14736     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14737       # PIC is the default for these OSes.
14738       ;;
14739
14740     mingw* | pw32* | os2*)
14741       # This hack is so that the source file can tell whether it is being
14742       # built for inclusion in a dll (and should export symbols for example).
14743       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14744       ;;
14745
14746     darwin* | rhapsody*)
14747       # PIC is the default on this platform
14748       # Common symbols not allowed in MH_DYLIB files
14749       lt_prog_compiler_pic_GCJ='-fno-common'
14750       ;;
14751
14752     msdosdjgpp*)
14753       # Just because we use GCC doesn't mean we suddenly get shared libraries
14754       # on systems that don't support them.
14755       lt_prog_compiler_can_build_shared_GCJ=no
14756       enable_shared=no
14757       ;;
14758
14759     sysv4*MP*)
14760       if test -d /usr/nec; then
14761         lt_prog_compiler_pic_GCJ=-Kconform_pic
14762       fi
14763       ;;
14764
14765     hpux*)
14766       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14767       # not for PA HP-UX.
14768       case "$host_cpu" in
14769       hppa*64*|ia64*)
14770         # +Z the default
14771         ;;
14772       *)
14773         lt_prog_compiler_pic_GCJ='-fPIC'
14774         ;;
14775       esac
14776       ;;
14777
14778     *)
14779       lt_prog_compiler_pic_GCJ='-fPIC'
14780       ;;
14781     esac
14782   else
14783     # PORTME Check for flag to pass linker flags through the system compiler.
14784     case $host_os in
14785     aix*)
14786       lt_prog_compiler_wl_GCJ='-Wl,'
14787       if test "$host_cpu" = ia64; then
14788         # AIX 5 now supports IA64 processor
14789         lt_prog_compiler_static_GCJ='-Bstatic'
14790       else
14791         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14792       fi
14793       ;;
14794
14795     mingw* | pw32* | os2*)
14796       # This hack is so that the source file can tell whether it is being
14797       # built for inclusion in a dll (and should export symbols for example).
14798       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14799       ;;
14800
14801     hpux9* | hpux10* | hpux11*)
14802       lt_prog_compiler_wl_GCJ='-Wl,'
14803       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14804       # not for PA HP-UX.
14805       case "$host_cpu" in
14806       hppa*64*|ia64*)
14807         # +Z the default
14808         ;;
14809       *)
14810         lt_prog_compiler_pic_GCJ='+Z'
14811         ;;
14812       esac
14813       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14814       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14815       ;;
14816
14817     irix5* | irix6* | nonstopux*)
14818       lt_prog_compiler_wl_GCJ='-Wl,'
14819       # PIC (with -KPIC) is the default.
14820       lt_prog_compiler_static_GCJ='-non_shared'
14821       ;;
14822
14823     newsos6)
14824       lt_prog_compiler_pic_GCJ='-KPIC'
14825       lt_prog_compiler_static_GCJ='-Bstatic'
14826       ;;
14827
14828     linux*)
14829       case $CC in
14830       icc|ecc)
14831         lt_prog_compiler_wl_GCJ='-Wl,'
14832         lt_prog_compiler_pic_GCJ='-KPIC'
14833         lt_prog_compiler_static_GCJ='-static'
14834         ;;
14835       ccc)
14836         lt_prog_compiler_wl_GCJ='-Wl,'
14837         # All Alpha code is PIC.
14838         lt_prog_compiler_static_GCJ='-non_shared'
14839         ;;
14840       esac
14841       ;;
14842
14843     osf3* | osf4* | osf5*)
14844       lt_prog_compiler_wl_GCJ='-Wl,'
14845       # All OSF/1 code is PIC.
14846       lt_prog_compiler_static_GCJ='-non_shared'
14847       ;;
14848
14849     sco3.2v5*)
14850       lt_prog_compiler_pic_GCJ='-Kpic'
14851       lt_prog_compiler_static_GCJ='-dn'
14852       ;;
14853
14854     solaris*)
14855       lt_prog_compiler_wl_GCJ='-Wl,'
14856       lt_prog_compiler_pic_GCJ='-KPIC'
14857       lt_prog_compiler_static_GCJ='-Bstatic'
14858       ;;
14859
14860     sunos4*)
14861       lt_prog_compiler_wl_GCJ='-Qoption ld '
14862       lt_prog_compiler_pic_GCJ='-PIC'
14863       lt_prog_compiler_static_GCJ='-Bstatic'
14864       ;;
14865
14866     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14867       lt_prog_compiler_wl_GCJ='-Wl,'
14868       lt_prog_compiler_pic_GCJ='-KPIC'
14869       lt_prog_compiler_static_GCJ='-Bstatic'
14870       ;;
14871
14872     sysv4*MP*)
14873       if test -d /usr/nec ;then
14874         lt_prog_compiler_pic_GCJ='-Kconform_pic'
14875         lt_prog_compiler_static_GCJ='-Bstatic'
14876       fi
14877       ;;
14878
14879     uts4*)
14880       lt_prog_compiler_pic_GCJ='-pic'
14881       lt_prog_compiler_static_GCJ='-Bstatic'
14882       ;;
14883
14884     *)
14885       lt_prog_compiler_can_build_shared_GCJ=no
14886       ;;
14887     esac
14888   fi
14889
14890 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14891 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14892
14893 #
14894 # Check to make sure the PIC flag actually works.
14895 #
14896 if test -n "$lt_prog_compiler_pic_GCJ"; then
14897   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14898 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14899 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14900   echo $ECHO_N "(cached) $ECHO_C" >&6
14901 else
14902   lt_prog_compiler_pic_works_GCJ=no
14903   ac_outfile=conftest.$ac_objext
14904    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14905    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14906    # Insert the option either (1) after the last *FLAGS variable, or
14907    # (2) before a word containing "conftest.", or (3) at the end.
14908    # Note that $ac_compile itself does not contain backslashes and begins
14909    # with a dollar sign (not a hyphen), so the echo should work correctly.
14910    # The option is referenced via a variable to avoid confusing sed.
14911    lt_compile=`echo "$ac_compile" | $SED \
14912    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14913    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14914    -e 's:$: $lt_compiler_flag:'`
14915    (eval echo "\"\$as_me:14915: $lt_compile\"" >&5)
14916    (eval "$lt_compile" 2>conftest.err)
14917    ac_status=$?
14918    cat conftest.err >&5
14919    echo "$as_me:14919: \$? = $ac_status" >&5
14920    if (exit $ac_status) && test -s "$ac_outfile"; then
14921      # The compiler can only warn and ignore the option if not recognized
14922      # So say no if there are warnings
14923      if test ! -s conftest.err; then
14924        lt_prog_compiler_pic_works_GCJ=yes
14925      fi
14926    fi
14927    $rm conftest*
14928
14929 fi
14930 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14931 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14932
14933 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14934     case $lt_prog_compiler_pic_GCJ in
14935      "" | " "*) ;;
14936      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14937      esac
14938 else
14939     lt_prog_compiler_pic_GCJ=
14940      lt_prog_compiler_can_build_shared_GCJ=no
14941 fi
14942
14943 fi
14944 case "$host_os" in
14945   # For platforms which do not support PIC, -DPIC is meaningless:
14946   *djgpp*)
14947     lt_prog_compiler_pic_GCJ=
14948     ;;
14949   *)
14950     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14951     ;;
14952 esac
14953
14954 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14955 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14956 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14957   echo $ECHO_N "(cached) $ECHO_C" >&6
14958 else
14959   lt_cv_prog_compiler_c_o_GCJ=no
14960    $rm -r conftest 2>/dev/null
14961    mkdir conftest
14962    cd conftest
14963    mkdir out
14964    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14965
14966    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14967    # that will create temporary files in the current directory regardless of
14968    # the output directory.  Thus, making CWD read-only will cause this test
14969    # to fail, enabling locking or at least warning the user not to do parallel
14970    # builds.
14971    chmod -w .
14972
14973    lt_compiler_flag="-o out/conftest2.$ac_objext"
14974    # Insert the option either (1) after the last *FLAGS variable, or
14975    # (2) before a word containing "conftest.", or (3) at the end.
14976    # Note that $ac_compile itself does not contain backslashes and begins
14977    # with a dollar sign (not a hyphen), so the echo should work correctly.
14978    lt_compile=`echo "$ac_compile" | $SED \
14979    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14980    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14981    -e 's:$: $lt_compiler_flag:'`
14982    (eval echo "\"\$as_me:14982: $lt_compile\"" >&5)
14983    (eval "$lt_compile" 2>out/conftest.err)
14984    ac_status=$?
14985    cat out/conftest.err >&5
14986    echo "$as_me:14986: \$? = $ac_status" >&5
14987    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14988    then
14989      # The compiler can only warn and ignore the option if not recognized
14990      # So say no if there are warnings
14991      if test ! -s out/conftest.err; then
14992        lt_cv_prog_compiler_c_o_GCJ=yes
14993      fi
14994    fi
14995    chmod u+w .
14996    $rm conftest* out/*
14997    rmdir out
14998    cd ..
14999    rmdir conftest
15000    $rm conftest*
15001
15002 fi
15003 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15004 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15005
15006
15007 hard_links="nottested"
15008 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15009   # do not overwrite the value of need_locks provided by the user
15010   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15011 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15012   hard_links=yes
15013   $rm conftest*
15014   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15015   touch conftest.a
15016   ln conftest.a conftest.b 2>&5 || hard_links=no
15017   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15018   echo "$as_me:$LINENO: result: $hard_links" >&5
15019 echo "${ECHO_T}$hard_links" >&6
15020   if test "$hard_links" = no; then
15021     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15022 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15023     need_locks=warn
15024   fi
15025 else
15026   need_locks=no
15027 fi
15028
15029 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15030 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15031
15032   runpath_var=
15033   allow_undefined_flag_GCJ=
15034   enable_shared_with_static_runtimes_GCJ=no
15035   archive_cmds_GCJ=
15036   archive_expsym_cmds_GCJ=
15037   old_archive_From_new_cmds_GCJ=
15038   old_archive_from_expsyms_cmds_GCJ=
15039   export_dynamic_flag_spec_GCJ=
15040   whole_archive_flag_spec_GCJ=
15041   thread_safe_flag_spec_GCJ=
15042   hardcode_libdir_flag_spec_GCJ=
15043   hardcode_libdir_flag_spec_ld_GCJ=
15044   hardcode_libdir_separator_GCJ=
15045   hardcode_direct_GCJ=no
15046   hardcode_minus_L_GCJ=no
15047   hardcode_shlibpath_var_GCJ=unsupported
15048   link_all_deplibs_GCJ=unknown
15049   hardcode_automatic_GCJ=no
15050   module_cmds_GCJ=
15051   module_expsym_cmds_GCJ=
15052   always_export_symbols_GCJ=no
15053   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15054   # include_expsyms should be a list of space-separated symbols to be *always*
15055   # included in the symbol list
15056   include_expsyms_GCJ=
15057   # exclude_expsyms can be an extended regexp of symbols to exclude
15058   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15059   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15060   # as well as any symbol that contains `d'.
15061   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15062   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15063   # platforms (ab)use it in PIC code, but their linkers get confused if
15064   # the symbol is explicitly referenced.  Since portable code cannot
15065   # rely on this symbol name, it's probably fine to never include it in
15066   # preloaded symbol tables.
15067   extract_expsyms_cmds=
15068
15069   case $host_os in
15070   cygwin* | mingw* | pw32*)
15071     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15072     # When not using gcc, we currently assume that we are using
15073     # Microsoft Visual C++.
15074     if test "$GCC" != yes; then
15075       with_gnu_ld=no
15076     fi
15077     ;;
15078   openbsd*)
15079     with_gnu_ld=no
15080     ;;
15081   esac
15082
15083   ld_shlibs_GCJ=yes
15084   if test "$with_gnu_ld" = yes; then
15085     # If archive_cmds runs LD, not CC, wlarc should be empty
15086     wlarc='${wl}'
15087
15088     # See if GNU ld supports shared libraries.
15089     case $host_os in
15090     aix3* | aix4* | aix5*)
15091       # On AIX/PPC, the GNU linker is very broken
15092       if test "$host_cpu" != ia64; then
15093         ld_shlibs_GCJ=no
15094         cat <<EOF 1>&2
15095
15096 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15097 *** to be unable to reliably create shared libraries on AIX.
15098 *** Therefore, libtool is disabling shared libraries support.  If you
15099 *** really care for shared libraries, you may want to modify your PATH
15100 *** so that a non-GNU linker is found, and then restart.
15101
15102 EOF
15103       fi
15104       ;;
15105
15106     amigaos*)
15107       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)'
15108       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15109       hardcode_minus_L_GCJ=yes
15110
15111       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15112       # that the semantics of dynamic libraries on AmigaOS, at least up
15113       # to version 4, is to share data among multiple programs linked
15114       # with the same dynamic library.  Since this doesn't match the
15115       # behavior of shared libraries on other platforms, we can't use
15116       # them.
15117       ld_shlibs_GCJ=no
15118       ;;
15119
15120     beos*)
15121       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15122         allow_undefined_flag_GCJ=unsupported
15123         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15124         # support --undefined.  This deserves some investigation.  FIXME
15125         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15126       else
15127         ld_shlibs_GCJ=no
15128       fi
15129       ;;
15130
15131     cygwin* | mingw* | pw32*)
15132       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15133       # as there is no search path for DLLs.
15134       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15135       allow_undefined_flag_GCJ=unsupported
15136       always_export_symbols_GCJ=no
15137       enable_shared_with_static_runtimes_GCJ=yes
15138       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15139
15140       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15141         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15142         # If the export-symbols file already is a .def file (1st line
15143         # is EXPORTS), use it as is; otherwise, prepend...
15144         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15145           cp $export_symbols $output_objdir/$soname.def;
15146         else
15147           echo EXPORTS > $output_objdir/$soname.def;
15148           cat $export_symbols >> $output_objdir/$soname.def;
15149         fi~
15150         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15151       else
15152         ld_shlibs=no
15153       fi
15154       ;;
15155
15156     netbsd*)
15157       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15158         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15159         wlarc=
15160       else
15161         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15162         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15163       fi
15164       ;;
15165
15166     solaris* | sysv5*)
15167       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15168         ld_shlibs_GCJ=no
15169         cat <<EOF 1>&2
15170
15171 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15172 *** create shared libraries on Solaris systems.  Therefore, libtool
15173 *** is disabling shared libraries support.  We urge you to upgrade GNU
15174 *** binutils to release 2.9.1 or newer.  Another option is to modify
15175 *** your PATH or compiler configuration so that the native linker is
15176 *** used, and then restart.
15177
15178 EOF
15179       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15180         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15181         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15182       else
15183         ld_shlibs_GCJ=no
15184       fi
15185       ;;
15186
15187     sunos4*)
15188       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15189       wlarc=
15190       hardcode_direct_GCJ=yes
15191       hardcode_shlibpath_var_GCJ=no
15192       ;;
15193
15194     *)
15195       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15196         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15197         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15198       else
15199         ld_shlibs_GCJ=no
15200       fi
15201       ;;
15202     esac
15203
15204     if test "$ld_shlibs_GCJ" = yes; then
15205       runpath_var=LD_RUN_PATH
15206       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15207       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15208       # ancient GNU ld didn't support --whole-archive et. al.
15209       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15210         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15211       else
15212         whole_archive_flag_spec_GCJ=
15213       fi
15214     fi
15215   else
15216     # PORTME fill in a description of your system's linker (not GNU ld)
15217     case $host_os in
15218     aix3*)
15219       allow_undefined_flag_GCJ=unsupported
15220       always_export_symbols_GCJ=yes
15221       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'
15222       # Note: this linker hardcodes the directories in LIBPATH if there
15223       # are no directories specified by -L.
15224       hardcode_minus_L_GCJ=yes
15225       if test "$GCC" = yes && test -z "$link_static_flag"; then
15226         # Neither direct hardcoding nor static linking is supported with a
15227         # broken collect2.
15228         hardcode_direct_GCJ=unsupported
15229       fi
15230       ;;
15231
15232     aix4* | aix5*)
15233       if test "$host_cpu" = ia64; then
15234         # On IA64, the linker does run time linking by default, so we don't
15235         # have to do anything special.
15236         aix_use_runtimelinking=no
15237         exp_sym_flag='-Bexport'
15238         no_entry_flag=""
15239       else
15240         # If we're using GNU nm, then we don't want the "-C" option.
15241         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15242         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15243           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'
15244         else
15245           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'
15246         fi
15247         aix_use_runtimelinking=no
15248
15249         # Test if we are trying to use run time linking or normal
15250         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15251         # need to do runtime linking.
15252         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15253           for ld_flag in $LDFLAGS; do
15254           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15255             aix_use_runtimelinking=yes
15256             break
15257           fi
15258           done
15259         esac
15260
15261         exp_sym_flag='-bexport'
15262         no_entry_flag='-bnoentry'
15263       fi
15264
15265       # When large executables or shared objects are built, AIX ld can
15266       # have problems creating the table of contents.  If linking a library
15267       # or program results in "error TOC overflow" add -mminimal-toc to
15268       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15269       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15270
15271       archive_cmds_GCJ=''
15272       hardcode_direct_GCJ=yes
15273       hardcode_libdir_separator_GCJ=':'
15274       link_all_deplibs_GCJ=yes
15275
15276       if test "$GCC" = yes; then
15277         case $host_os in aix4.012|aix4.012.*)
15278         # We only want to do this on AIX 4.2 and lower, the check
15279         # below for broken collect2 doesn't work under 4.3+
15280           collect2name=`${CC} -print-prog-name=collect2`
15281           if test -f "$collect2name" && \
15282            strings "$collect2name" | grep resolve_lib_name >/dev/null
15283           then
15284           # We have reworked collect2
15285           hardcode_direct_GCJ=yes
15286           else
15287           # We have old collect2
15288           hardcode_direct_GCJ=unsupported
15289           # It fails to find uninstalled libraries when the uninstalled
15290           # path is not listed in the libpath.  Setting hardcode_minus_L
15291           # to unsupported forces relinking
15292           hardcode_minus_L_GCJ=yes
15293           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15294           hardcode_libdir_separator_GCJ=
15295           fi
15296         esac
15297         shared_flag='-shared'
15298       else
15299         # not using gcc
15300         if test "$host_cpu" = ia64; then
15301         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15302         # chokes on -Wl,-G. The following line is correct:
15303           shared_flag='-G'
15304         else
15305         if test "$aix_use_runtimelinking" = yes; then
15306             shared_flag='${wl}-G'
15307           else
15308             shared_flag='${wl}-bM:SRE'
15309         fi
15310         fi
15311       fi
15312
15313       # It seems that -bexpall does not export symbols beginning with
15314       # underscore (_), so it is better to generate a list of symbols to export.
15315       always_export_symbols_GCJ=yes
15316       if test "$aix_use_runtimelinking" = yes; then
15317         # Warning - without using the other runtime loading flags (-brtl),
15318         # -berok will link without error, but may produce a broken library.
15319         allow_undefined_flag_GCJ='-berok'
15320        # Determine the default libpath from the value encoded in an empty executable.
15321        cat >conftest.$ac_ext <<_ACEOF
15322 #line $LINENO "configure"
15323 /* confdefs.h.  */
15324 _ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h.  */
15328
15329 int
15330 main ()
15331 {
15332
15333   ;
15334   return 0;
15335 }
15336 _ACEOF
15337 rm -f conftest.$ac_objext conftest$ac_exeext
15338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15339   (eval $ac_link) 2>&5
15340   ac_status=$?
15341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342   (exit $ac_status); } &&
15343          { ac_try='test -s conftest$ac_exeext'
15344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345   (eval $ac_try) 2>&5
15346   ac_status=$?
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); }; }; then
15349
15350 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15351 }'`
15352 # Check for a 64-bit object if we didn't find anything.
15353 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; }
15354 }'`; fi
15355 else
15356   echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15358
15359 fi
15360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15361 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15362
15363        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15364         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"
15365        else
15366         if test "$host_cpu" = ia64; then
15367           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15368           allow_undefined_flag_GCJ="-z nodefs"
15369           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"
15370         else
15371          # Determine the default libpath from the value encoded in an empty executable.
15372          cat >conftest.$ac_ext <<_ACEOF
15373 #line $LINENO "configure"
15374 /* confdefs.h.  */
15375 _ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h.  */
15379
15380 int
15381 main ()
15382 {
15383
15384   ;
15385   return 0;
15386 }
15387 _ACEOF
15388 rm -f conftest.$ac_objext conftest$ac_exeext
15389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15390   (eval $ac_link) 2>&5
15391   ac_status=$?
15392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393   (exit $ac_status); } &&
15394          { ac_try='test -s conftest$ac_exeext'
15395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396   (eval $ac_try) 2>&5
15397   ac_status=$?
15398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399   (exit $ac_status); }; }; then
15400
15401 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15402 }'`
15403 # Check for a 64-bit object if we didn't find anything.
15404 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; }
15405 }'`; fi
15406 else
15407   echo "$as_me: failed program was:" >&5
15408 sed 's/^/| /' conftest.$ac_ext >&5
15409
15410 fi
15411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15412 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15413
15414          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15415           # Warning - without using the other run time loading flags,
15416           # -berok will link without error, but may produce a broken library.
15417           no_undefined_flag_GCJ=' ${wl}-bernotok'
15418           allow_undefined_flag_GCJ=' ${wl}-berok'
15419           # -bexpall does not export symbols beginning with underscore (_)
15420           always_export_symbols_GCJ=yes
15421           # Exported symbols can be pulled into shared objects from archives
15422           whole_archive_flag_spec_GCJ=' '
15423           archive_cmds_need_lc_GCJ=yes
15424           # This is similar to how AIX traditionally builds it's shared libraries.
15425           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'
15426         fi
15427       fi
15428       ;;
15429
15430     amigaos*)
15431       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)'
15432       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15433       hardcode_minus_L_GCJ=yes
15434       # see comment about different semantics on the GNU ld section
15435       ld_shlibs_GCJ=no
15436       ;;
15437
15438     bsdi4*)
15439       export_dynamic_flag_spec_GCJ=-rdynamic
15440       ;;
15441
15442     cygwin* | mingw* | pw32*)
15443       # When not using gcc, we currently assume that we are using
15444       # Microsoft Visual C++.
15445       # hardcode_libdir_flag_spec is actually meaningless, as there is
15446       # no search path for DLLs.
15447       hardcode_libdir_flag_spec_GCJ=' '
15448       allow_undefined_flag_GCJ=unsupported
15449       # Tell ltmain to make .lib files, not .a files.
15450       libext=lib
15451       # Tell ltmain to make .dll files, not .so files.
15452       shrext=".dll"
15453       # FIXME: Setting linknames here is a bad hack.
15454       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15455       # The linker will automatically build a .lib file if we build a DLL.
15456       old_archive_From_new_cmds_GCJ='true'
15457       # FIXME: Should let the user specify the lib program.
15458       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15459       fix_srcfile_path='`cygpath -w "$srcfile"`'
15460       enable_shared_with_static_runtimes_GCJ=yes
15461       ;;
15462
15463     darwin* | rhapsody*)
15464     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15465       archive_cmds_need_lc_GCJ=no
15466       case "$host_os" in
15467       rhapsody* | darwin1.[012])
15468         allow_undefined_flag_GCJ='-undefined suppress'
15469         ;;
15470       *) # Darwin 1.3 on
15471         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15472         ;;
15473       esac
15474       # FIXME: Relying on posixy $() will cause problems for
15475       #        cross-compilation, but unfortunately the echo tests do not
15476       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15477       #        `"' quotes if we put them in here... so don't!
15478         lt_int_apple_cc_single_mod=no
15479         output_verbose_link_cmd='echo'
15480         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15481           lt_int_apple_cc_single_mod=yes
15482         fi
15483         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15484           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15485         else
15486         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'
15487       fi
15488       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15489       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15490         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15491           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}'
15492         else
15493           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}'
15494         fi
15495           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}'
15496       hardcode_direct_GCJ=no
15497       hardcode_automatic_GCJ=yes
15498       hardcode_shlibpath_var_GCJ=unsupported
15499       whole_archive_flag_spec_GCJ='-all_load $convenience'
15500       link_all_deplibs_GCJ=yes
15501     fi
15502       ;;
15503
15504     dgux*)
15505       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15506       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15507       hardcode_shlibpath_var_GCJ=no
15508       ;;
15509
15510     freebsd1*)
15511       ld_shlibs_GCJ=no
15512       ;;
15513
15514     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15515     # support.  Future versions do this automatically, but an explicit c++rt0.o
15516     # does not break anything, and helps significantly (at the cost of a little
15517     # extra space).
15518     freebsd2.2*)
15519       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15520       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15521       hardcode_direct_GCJ=yes
15522       hardcode_shlibpath_var_GCJ=no
15523       ;;
15524
15525     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15526     freebsd2*)
15527       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15528       hardcode_direct_GCJ=yes
15529       hardcode_minus_L_GCJ=yes
15530       hardcode_shlibpath_var_GCJ=no
15531       ;;
15532
15533     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15534     freebsd*)
15535       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15536       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15537       hardcode_direct_GCJ=yes
15538       hardcode_shlibpath_var_GCJ=no
15539       ;;
15540
15541     hpux9*)
15542       if test "$GCC" = yes; then
15543         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'
15544       else
15545         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'
15546       fi
15547       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15548       hardcode_libdir_separator_GCJ=:
15549       hardcode_direct_GCJ=yes
15550
15551       # hardcode_minus_L: Not really in the search PATH,
15552       # but as the default location of the library.
15553       hardcode_minus_L_GCJ=yes
15554       export_dynamic_flag_spec_GCJ='${wl}-E'
15555       ;;
15556
15557     hpux10* | hpux11*)
15558       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15559         case "$host_cpu" in
15560         hppa*64*|ia64*)
15561           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15562           ;;
15563         *)
15564           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15565           ;;
15566         esac
15567       else
15568         case "$host_cpu" in
15569         hppa*64*|ia64*)
15570           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15571           ;;
15572         *)
15573           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15574           ;;
15575         esac
15576       fi
15577       if test "$with_gnu_ld" = no; then
15578         case "$host_cpu" in
15579         hppa*64*)
15580           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15581           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15582           hardcode_libdir_separator_GCJ=:
15583           hardcode_direct_GCJ=no
15584           hardcode_shlibpath_var_GCJ=no
15585           ;;
15586         ia64*)
15587           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15588           hardcode_direct_GCJ=no
15589           hardcode_shlibpath_var_GCJ=no
15590
15591           # hardcode_minus_L: Not really in the search PATH,
15592           # but as the default location of the library.
15593           hardcode_minus_L_GCJ=yes
15594           ;;
15595         *)
15596           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15597           hardcode_libdir_separator_GCJ=:
15598           hardcode_direct_GCJ=yes
15599           export_dynamic_flag_spec_GCJ='${wl}-E'
15600
15601           # hardcode_minus_L: Not really in the search PATH,
15602           # but as the default location of the library.
15603           hardcode_minus_L_GCJ=yes
15604           ;;
15605         esac
15606       fi
15607       ;;
15608
15609     irix5* | irix6* | nonstopux*)
15610       if test "$GCC" = yes; then
15611         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'
15612       else
15613         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'
15614         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15615       fi
15616       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15617       hardcode_libdir_separator_GCJ=:
15618       link_all_deplibs_GCJ=yes
15619       ;;
15620
15621     netbsd*)
15622       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15623         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15624       else
15625         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15626       fi
15627       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15628       hardcode_direct_GCJ=yes
15629       hardcode_shlibpath_var_GCJ=no
15630       ;;
15631
15632     newsos6)
15633       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15634       hardcode_direct_GCJ=yes
15635       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15636       hardcode_libdir_separator_GCJ=:
15637       hardcode_shlibpath_var_GCJ=no
15638       ;;
15639
15640     openbsd*)
15641       hardcode_direct_GCJ=yes
15642       hardcode_shlibpath_var_GCJ=no
15643       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15644         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15645         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15646         export_dynamic_flag_spec_GCJ='${wl}-E'
15647       else
15648        case $host_os in
15649          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15650            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15651            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15652            ;;
15653          *)
15654            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15655            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15656            ;;
15657        esac
15658       fi
15659       ;;
15660
15661     os2*)
15662       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15663       hardcode_minus_L_GCJ=yes
15664       allow_undefined_flag_GCJ=unsupported
15665       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'
15666       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15667       ;;
15668
15669     osf3*)
15670       if test "$GCC" = yes; then
15671         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15672         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'
15673       else
15674         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15675         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'
15676       fi
15677       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15678       hardcode_libdir_separator_GCJ=:
15679       ;;
15680
15681     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15682       if test "$GCC" = yes; then
15683         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15684         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'
15685         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15686       else
15687         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15688         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'
15689         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~
15690         $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'
15691
15692         # Both c and cxx compiler support -rpath directly
15693         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15694       fi
15695       hardcode_libdir_separator_GCJ=:
15696       ;;
15697
15698     sco3.2v5*)
15699       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15700       hardcode_shlibpath_var_GCJ=no
15701       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15702       runpath_var=LD_RUN_PATH
15703       hardcode_runpath_var=yes
15704       ;;
15705
15706     solaris*)
15707       no_undefined_flag_GCJ=' -z text'
15708       if test "$GCC" = yes; then
15709         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15710         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15711           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15712       else
15713         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15714         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15715         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15716       fi
15717       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15718       hardcode_shlibpath_var_GCJ=no
15719       case $host_os in
15720       solaris2.[0-5] | solaris2.[0-5].*) ;;
15721       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15722         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15723       esac
15724       link_all_deplibs_GCJ=yes
15725       ;;
15726
15727     sunos4*)
15728       if test "x$host_vendor" = xsequent; then
15729         # Use $CC to link under sequent, because it throws in some extra .o
15730         # files that make .init and .fini sections work.
15731         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15732       else
15733         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15734       fi
15735       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15736       hardcode_direct_GCJ=yes
15737       hardcode_minus_L_GCJ=yes
15738       hardcode_shlibpath_var_GCJ=no
15739       ;;
15740
15741     sysv4)
15742       case $host_vendor in
15743         sni)
15744           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15745           hardcode_direct_GCJ=yes # is this really true???
15746         ;;
15747         siemens)
15748           ## LD is ld it makes a PLAMLIB
15749           ## CC just makes a GrossModule.
15750           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15751           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15752           hardcode_direct_GCJ=no
15753         ;;
15754         motorola)
15755           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15756           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15757         ;;
15758       esac
15759       runpath_var='LD_RUN_PATH'
15760       hardcode_shlibpath_var_GCJ=no
15761       ;;
15762
15763     sysv4.3*)
15764       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15765       hardcode_shlibpath_var_GCJ=no
15766       export_dynamic_flag_spec_GCJ='-Bexport'
15767       ;;
15768
15769     sysv4*MP*)
15770       if test -d /usr/nec; then
15771         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15772         hardcode_shlibpath_var_GCJ=no
15773         runpath_var=LD_RUN_PATH
15774         hardcode_runpath_var=yes
15775         ld_shlibs_GCJ=yes
15776       fi
15777       ;;
15778
15779     sysv4.2uw2*)
15780       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15781       hardcode_direct_GCJ=yes
15782       hardcode_minus_L_GCJ=no
15783       hardcode_shlibpath_var_GCJ=no
15784       hardcode_runpath_var=yes
15785       runpath_var=LD_RUN_PATH
15786       ;;
15787
15788    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15789       no_undefined_flag_GCJ='${wl}-z ${wl}text'
15790       if test "$GCC" = yes; then
15791         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15792       else
15793         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15794       fi
15795       runpath_var='LD_RUN_PATH'
15796       hardcode_shlibpath_var_GCJ=no
15797       ;;
15798
15799     sysv5*)
15800       no_undefined_flag_GCJ=' -z text'
15801       # $CC -shared without GNU ld will not create a library from C++
15802       # object files and a static libstdc++, better avoid it by now
15803       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15804       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15805                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15806       hardcode_libdir_flag_spec_GCJ=
15807       hardcode_shlibpath_var_GCJ=no
15808       runpath_var='LD_RUN_PATH'
15809       ;;
15810
15811     uts4*)
15812       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15813       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15814       hardcode_shlibpath_var_GCJ=no
15815       ;;
15816
15817     *)
15818       ld_shlibs_GCJ=no
15819       ;;
15820     esac
15821   fi
15822
15823 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15824 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15825 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15826
15827 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15828 if test "$GCC" = yes; then
15829   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15830 fi
15831
15832 #
15833 # Do we need to explicitly link libc?
15834 #
15835 case "x$archive_cmds_need_lc_GCJ" in
15836 x|xyes)
15837   # Assume -lc should be added
15838   archive_cmds_need_lc_GCJ=yes
15839
15840   if test "$enable_shared" = yes && test "$GCC" = yes; then
15841     case $archive_cmds_GCJ in
15842     *'~'*)
15843       # FIXME: we may have to deal with multi-command sequences.
15844       ;;
15845     '$CC '*)
15846       # Test whether the compiler implicitly links with -lc since on some
15847       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15848       # to ld, don't add -lc before -lgcc.
15849       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15850 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15851       $rm conftest*
15852       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15853
15854       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15855   (eval $ac_compile) 2>&5
15856   ac_status=$?
15857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858   (exit $ac_status); } 2>conftest.err; then
15859         soname=conftest
15860         lib=conftest
15861         libobjs=conftest.$ac_objext
15862         deplibs=
15863         wl=$lt_prog_compiler_wl_GCJ
15864         compiler_flags=-v
15865         linker_flags=-v
15866         verstring=
15867         output_objdir=.
15868         libname=conftest
15869         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15870         allow_undefined_flag_GCJ=
15871         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15872   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15873   ac_status=$?
15874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875   (exit $ac_status); }
15876         then
15877           archive_cmds_need_lc_GCJ=no
15878         else
15879           archive_cmds_need_lc_GCJ=yes
15880         fi
15881         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15882       else
15883         cat conftest.err 1>&5
15884       fi
15885       $rm conftest*
15886       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15887 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15888       ;;
15889     esac
15890   fi
15891   ;;
15892 esac
15893
15894 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15895 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15896 hardcode_action_GCJ=
15897 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15898    test -n "$runpath_var GCJ" || \
15899    test "X$hardcode_automatic_GCJ"="Xyes" ; then
15900
15901   # We can hardcode non-existant directories.
15902   if test "$hardcode_direct_GCJ" != no &&
15903      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15904      # have to relink, otherwise we might link with an installed library
15905      # when we should be linking with a yet-to-be-installed one
15906      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15907      test "$hardcode_minus_L_GCJ" != no; then
15908     # Linking always hardcodes the temporary library directory.
15909     hardcode_action_GCJ=relink
15910   else
15911     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15912     hardcode_action_GCJ=immediate
15913   fi
15914 else
15915   # We cannot hardcode anything, or else we can only hardcode existing
15916   # directories.
15917   hardcode_action_GCJ=unsupported
15918 fi
15919 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15920 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15921
15922 if test "$hardcode_action_GCJ" = relink; then
15923   # Fast installation is not supported
15924   enable_fast_install=no
15925 elif test "$shlibpath_overrides_runpath" = yes ||
15926      test "$enable_shared" = no; then
15927   # Fast installation is not necessary
15928   enable_fast_install=needless
15929 fi
15930
15931 striplib=
15932 old_striplib=
15933 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15934 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15935 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15936   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15937   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15938   echo "$as_me:$LINENO: result: yes" >&5
15939 echo "${ECHO_T}yes" >&6
15940 else
15941 # FIXME - insert some real tests, host_os isn't really good enough
15942   case $host_os in
15943    darwin*)
15944        if test -n "$STRIP" ; then
15945          striplib="$STRIP -x"
15946          echo "$as_me:$LINENO: result: yes" >&5
15947 echo "${ECHO_T}yes" >&6
15948        else
15949   echo "$as_me:$LINENO: result: no" >&5
15950 echo "${ECHO_T}no" >&6
15951 fi
15952        ;;
15953    *)
15954   echo "$as_me:$LINENO: result: no" >&5
15955 echo "${ECHO_T}no" >&6
15956     ;;
15957   esac
15958 fi
15959
15960 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15961 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15962 library_names_spec=
15963 libname_spec='lib$name'
15964 soname_spec=
15965 shrext=".so"
15966 postinstall_cmds=
15967 postuninstall_cmds=
15968 finish_cmds=
15969 finish_eval=
15970 shlibpath_var=
15971 shlibpath_overrides_runpath=unknown
15972 version_type=none
15973 dynamic_linker="$host_os ld.so"
15974 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15975 if test "$GCC" = yes; then
15976   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15977   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15978     # if the path contains ";" then we assume it to be the separator
15979     # otherwise default to the standard path separator (i.e. ":") - it is
15980     # assumed that no part of a normal pathname contains ";" but that should
15981     # okay in the real world where ";" in dirpaths is itself problematic.
15982     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15983   else
15984     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15985   fi
15986 else
15987   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15988 fi
15989 need_lib_prefix=unknown
15990 hardcode_into_libs=no
15991
15992 # when you set need_version to no, make sure it does not cause -set_version
15993 # flags to be left without arguments
15994 need_version=unknown
15995
15996 case $host_os in
15997 aix3*)
15998   version_type=linux
15999   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16000   shlibpath_var=LIBPATH
16001
16002   # AIX 3 has no versioning support, so we append a major version to the name.
16003   soname_spec='${libname}${release}${shared_ext}$major'
16004   ;;
16005
16006 aix4* | aix5*)
16007   version_type=linux
16008   need_lib_prefix=no
16009   need_version=no
16010   hardcode_into_libs=yes
16011   if test "$host_cpu" = ia64; then
16012     # AIX 5 supports IA64
16013     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16014     shlibpath_var=LD_LIBRARY_PATH
16015   else
16016     # With GCC up to 2.95.x, collect2 would create an import file
16017     # for dependence libraries.  The import file would start with
16018     # the line `#! .'.  This would cause the generated library to
16019     # depend on `.', always an invalid library.  This was fixed in
16020     # development snapshots of GCC prior to 3.0.
16021     case $host_os in
16022       aix4 | aix4.[01] | aix4.[01].*)
16023       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16024            echo ' yes '
16025            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16026         :
16027       else
16028         can_build_shared=no
16029       fi
16030       ;;
16031     esac
16032     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16033     # soname into executable. Probably we can add versioning support to
16034     # collect2, so additional links can be useful in future.
16035     if test "$aix_use_runtimelinking" = yes; then
16036       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16037       # instead of lib<name>.a to let people know that these are not
16038       # typical AIX shared libraries.
16039       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16040     else
16041       # We preserve .a as extension for shared libraries through AIX4.2
16042       # and later when we are not doing run time linking.
16043       library_names_spec='${libname}${release}.a $libname.a'
16044       soname_spec='${libname}${release}${shared_ext}$major'
16045     fi
16046     shlibpath_var=LIBPATH
16047   fi
16048   ;;
16049
16050 amigaos*)
16051   library_names_spec='$libname.ixlibrary $libname.a'
16052   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16053   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'
16054   ;;
16055
16056 beos*)
16057   library_names_spec='${libname}${shared_ext}'
16058   dynamic_linker="$host_os ld.so"
16059   shlibpath_var=LIBRARY_PATH
16060   ;;
16061
16062 bsdi4*)
16063   version_type=linux
16064   need_version=no
16065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16066   soname_spec='${libname}${release}${shared_ext}$major'
16067   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16068   shlibpath_var=LD_LIBRARY_PATH
16069   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16070   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16071   # the default ld.so.conf also contains /usr/contrib/lib and
16072   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16073   # libtool to hard-code these into programs
16074   ;;
16075
16076 cygwin* | mingw* | pw32*)
16077   version_type=windows
16078   shrext=".dll"
16079   need_version=no
16080   need_lib_prefix=no
16081
16082   case $GCC,$host_os in
16083   yes,cygwin* | yes,mingw* | yes,pw32*)
16084     library_names_spec='$libname.dll.a'
16085     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16086     postinstall_cmds='base_file=`basename \${file}`~
16087       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16088       dldir=$destdir/`dirname \$dlpath`~
16089       test -d \$dldir || mkdir -p \$dldir~
16090       $install_prog $dir/$dlname \$dldir/$dlname'
16091     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16092       dlpath=$dir/\$dldll~
16093        $rm \$dlpath'
16094     shlibpath_overrides_runpath=yes
16095
16096     case $host_os in
16097     cygwin*)
16098       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16099       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16100       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16101       ;;
16102     mingw*)
16103       # MinGW DLLs use traditional 'lib' prefix
16104       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16105       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16106       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16107         # It is most probably a Windows format PATH printed by
16108         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16109         # path with ; separators, and with drive letters. We can handle the
16110         # drive letters (cygwin fileutils understands them), so leave them,
16111         # especially as we might pass files found there to a mingw objdump,
16112         # which wouldn't understand a cygwinified path. Ahh.
16113         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16114       else
16115         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16116       fi
16117       ;;
16118     pw32*)
16119       # pw32 DLLs use 'pw' prefix rather than 'lib'
16120       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16121       ;;
16122     esac
16123     ;;
16124
16125   *)
16126     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16127     ;;
16128   esac
16129   dynamic_linker='Win32 ld.exe'
16130   # FIXME: first we should search . and the directory the executable is in
16131   shlibpath_var=PATH
16132   ;;
16133
16134 darwin* | rhapsody*)
16135   dynamic_linker="$host_os dyld"
16136   version_type=darwin
16137   need_lib_prefix=no
16138   need_version=no
16139   # FIXME: Relying on posixy $() will cause problems for
16140   #        cross-compilation, but unfortunately the echo tests do not
16141   #        yet detect zsh echo's removal of \ escapes.
16142   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16143   soname_spec='${libname}${release}${major}$shared_ext'
16144   shlibpath_overrides_runpath=yes
16145   shlibpath_var=DYLD_LIBRARY_PATH
16146   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16147   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16148   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16149   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"`
16150   fi
16151   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16152   ;;
16153
16154 dgux*)
16155   version_type=linux
16156   need_lib_prefix=no
16157   need_version=no
16158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16159   soname_spec='${libname}${release}${shared_ext}$major'
16160   shlibpath_var=LD_LIBRARY_PATH
16161   ;;
16162
16163 freebsd1*)
16164   dynamic_linker=no
16165   ;;
16166
16167 freebsd*)
16168   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16169   version_type=freebsd-$objformat
16170   case $version_type in
16171     freebsd-elf*)
16172       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16173       need_version=no
16174       need_lib_prefix=no
16175       ;;
16176     freebsd-*)
16177       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16178       need_version=yes
16179       ;;
16180   esac
16181   shlibpath_var=LD_LIBRARY_PATH
16182   case $host_os in
16183   freebsd2*)
16184     shlibpath_overrides_runpath=yes
16185     ;;
16186   freebsd3.01* | freebsdelf3.01*)
16187     shlibpath_overrides_runpath=yes
16188     hardcode_into_libs=yes
16189     ;;
16190   *) # from 3.2 on
16191     shlibpath_overrides_runpath=no
16192     hardcode_into_libs=yes
16193     ;;
16194   esac
16195   ;;
16196
16197 gnu*)
16198   version_type=linux
16199   need_lib_prefix=no
16200   need_version=no
16201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16202   soname_spec='${libname}${release}${shared_ext}$major'
16203   shlibpath_var=LD_LIBRARY_PATH
16204   hardcode_into_libs=yes
16205   ;;
16206
16207 hpux9* | hpux10* | hpux11*)
16208   # Give a soname corresponding to the major version so that dld.sl refuses to
16209   # link against other versions.
16210   version_type=sunos
16211   need_lib_prefix=no
16212   need_version=no
16213   case "$host_cpu" in
16214   ia64*)
16215     shrext='.so'
16216     hardcode_into_libs=yes
16217     dynamic_linker="$host_os dld.so"
16218     shlibpath_var=LD_LIBRARY_PATH
16219     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16220     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16221     soname_spec='${libname}${release}${shared_ext}$major'
16222     if test "X$HPUX_IA64_MODE" = X32; then
16223       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16224     else
16225       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16226     fi
16227     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16228     ;;
16229    hppa*64*)
16230      shrext='.sl'
16231      hardcode_into_libs=yes
16232      dynamic_linker="$host_os dld.sl"
16233      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16234      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16235      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16236      soname_spec='${libname}${release}${shared_ext}$major'
16237      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16238      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16239      ;;
16240    *)
16241     shrext='.sl'
16242     dynamic_linker="$host_os dld.sl"
16243     shlibpath_var=SHLIB_PATH
16244     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16245     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16246     soname_spec='${libname}${release}${shared_ext}$major'
16247     ;;
16248   esac
16249   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16250   postinstall_cmds='chmod 555 $lib'
16251   ;;
16252
16253 irix5* | irix6* | nonstopux*)
16254   case $host_os in
16255     nonstopux*) version_type=nonstopux ;;
16256     *)
16257         if test "$lt_cv_prog_gnu_ld" = yes; then
16258                 version_type=linux
16259         else
16260                 version_type=irix
16261         fi ;;
16262   esac
16263   need_lib_prefix=no
16264   need_version=no
16265   soname_spec='${libname}${release}${shared_ext}$major'
16266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16267   case $host_os in
16268   irix5* | nonstopux*)
16269     libsuff= shlibsuff=
16270     ;;
16271   *)
16272     case $LD in # libtool.m4 will add one of these switches to LD
16273     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16274       libsuff= shlibsuff= libmagic=32-bit;;
16275     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16276       libsuff=32 shlibsuff=N32 libmagic=N32;;
16277     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16278       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16279     *) libsuff= shlibsuff= libmagic=never-match;;
16280     esac
16281     ;;
16282   esac
16283   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16284   shlibpath_overrides_runpath=no
16285   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16286   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16287   hardcode_into_libs=yes
16288   ;;
16289
16290 # No shared lib support for Linux oldld, aout, or coff.
16291 linux*oldld* | linux*aout* | linux*coff*)
16292   dynamic_linker=no
16293   ;;
16294
16295 # This must be Linux ELF.
16296 linux*)
16297   version_type=linux
16298   need_lib_prefix=no
16299   need_version=no
16300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16301   soname_spec='${libname}${release}${shared_ext}$major'
16302   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16303   shlibpath_var=LD_LIBRARY_PATH
16304   shlibpath_overrides_runpath=no
16305   # This implies no fast_install, which is unacceptable.
16306   # Some rework will be needed to allow for fast_install
16307   # before this can be enabled.
16308   hardcode_into_libs=yes
16309
16310   # We used to test for /lib/ld.so.1 and disable shared libraries on
16311   # powerpc, because MkLinux only supported shared libraries with the
16312   # GNU dynamic linker.  Since this was broken with cross compilers,
16313   # most powerpc-linux boxes support dynamic linking these days and
16314   # people can always --disable-shared, the test was removed, and we
16315   # assume the GNU/Linux dynamic linker is in use.
16316   dynamic_linker='GNU/Linux ld.so'
16317   ;;
16318
16319 netbsd*)
16320   version_type=sunos
16321   need_lib_prefix=no
16322   need_version=no
16323   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16324     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16325     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16326     dynamic_linker='NetBSD (a.out) ld.so'
16327   else
16328     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16329     soname_spec='${libname}${release}${shared_ext}$major'
16330     dynamic_linker='NetBSD ld.elf_so'
16331   fi
16332   shlibpath_var=LD_LIBRARY_PATH
16333   shlibpath_overrides_runpath=yes
16334   hardcode_into_libs=yes
16335   ;;
16336
16337 newsos6)
16338   version_type=linux
16339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16340   shlibpath_var=LD_LIBRARY_PATH
16341   shlibpath_overrides_runpath=yes
16342   ;;
16343
16344 nto-qnx)
16345   version_type=linux
16346   need_lib_prefix=no
16347   need_version=no
16348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16349   soname_spec='${libname}${release}${shared_ext}$major'
16350   shlibpath_var=LD_LIBRARY_PATH
16351   shlibpath_overrides_runpath=yes
16352   ;;
16353
16354 openbsd*)
16355   version_type=sunos
16356   need_lib_prefix=no
16357   need_version=no
16358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16359   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16360   shlibpath_var=LD_LIBRARY_PATH
16361   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16362     case $host_os in
16363       openbsd2.[89] | openbsd2.[89].*)
16364         shlibpath_overrides_runpath=no
16365         ;;
16366       *)
16367         shlibpath_overrides_runpath=yes
16368         ;;
16369       esac
16370   else
16371     shlibpath_overrides_runpath=yes
16372   fi
16373   ;;
16374
16375 os2*)
16376   libname_spec='$name'
16377   shrext=".dll"
16378   need_lib_prefix=no
16379   library_names_spec='$libname${shared_ext} $libname.a'
16380   dynamic_linker='OS/2 ld.exe'
16381   shlibpath_var=LIBPATH
16382   ;;
16383
16384 osf3* | osf4* | osf5*)
16385   version_type=osf
16386   need_lib_prefix=no
16387   need_version=no
16388   soname_spec='${libname}${release}${shared_ext}$major'
16389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16390   shlibpath_var=LD_LIBRARY_PATH
16391   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16392   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16393   ;;
16394
16395 sco3.2v5*)
16396   version_type=osf
16397   soname_spec='${libname}${release}${shared_ext}$major'
16398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16399   shlibpath_var=LD_LIBRARY_PATH
16400   ;;
16401
16402 solaris*)
16403   version_type=linux
16404   need_lib_prefix=no
16405   need_version=no
16406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16407   soname_spec='${libname}${release}${shared_ext}$major'
16408   shlibpath_var=LD_LIBRARY_PATH
16409   shlibpath_overrides_runpath=yes
16410   hardcode_into_libs=yes
16411   # ldd complains unless libraries are executable
16412   postinstall_cmds='chmod +x $lib'
16413   ;;
16414
16415 sunos4*)
16416   version_type=sunos
16417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16418   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16419   shlibpath_var=LD_LIBRARY_PATH
16420   shlibpath_overrides_runpath=yes
16421   if test "$with_gnu_ld" = yes; then
16422     need_lib_prefix=no
16423   fi
16424   need_version=yes
16425   ;;
16426
16427 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16428   version_type=linux
16429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16430   soname_spec='${libname}${release}${shared_ext}$major'
16431   shlibpath_var=LD_LIBRARY_PATH
16432   case $host_vendor in
16433     sni)
16434       shlibpath_overrides_runpath=no
16435       need_lib_prefix=no
16436       export_dynamic_flag_spec='${wl}-Blargedynsym'
16437       runpath_var=LD_RUN_PATH
16438       ;;
16439     siemens)
16440       need_lib_prefix=no
16441       ;;
16442     motorola)
16443       need_lib_prefix=no
16444       need_version=no
16445       shlibpath_overrides_runpath=no
16446       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16447       ;;
16448   esac
16449   ;;
16450
16451 sysv4*MP*)
16452   if test -d /usr/nec ;then
16453     version_type=linux
16454     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16455     soname_spec='$libname${shared_ext}.$major'
16456     shlibpath_var=LD_LIBRARY_PATH
16457   fi
16458   ;;
16459
16460 uts4*)
16461   version_type=linux
16462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16463   soname_spec='${libname}${release}${shared_ext}$major'
16464   shlibpath_var=LD_LIBRARY_PATH
16465   ;;
16466
16467 *)
16468   dynamic_linker=no
16469   ;;
16470 esac
16471 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16472 echo "${ECHO_T}$dynamic_linker" >&6
16473 test "$dynamic_linker" = no && can_build_shared=no
16474
16475 if test "x$enable_dlopen" != xyes; then
16476   enable_dlopen=unknown
16477   enable_dlopen_self=unknown
16478   enable_dlopen_self_static=unknown
16479 else
16480   lt_cv_dlopen=no
16481   lt_cv_dlopen_libs=
16482
16483   case $host_os in
16484   beos*)
16485     lt_cv_dlopen="load_add_on"
16486     lt_cv_dlopen_libs=
16487     lt_cv_dlopen_self=yes
16488     ;;
16489
16490   mingw* | pw32*)
16491     lt_cv_dlopen="LoadLibrary"
16492     lt_cv_dlopen_libs=
16493    ;;
16494
16495   cygwin*)
16496     lt_cv_dlopen="dlopen"
16497     lt_cv_dlopen_libs=
16498    ;;
16499
16500   darwin*)
16501   # if libdl is installed we need to link against it
16502     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16503 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16504 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16505   echo $ECHO_N "(cached) $ECHO_C" >&6
16506 else
16507   ac_check_lib_save_LIBS=$LIBS
16508 LIBS="-ldl  $LIBS"
16509 cat >conftest.$ac_ext <<_ACEOF
16510 #line $LINENO "configure"
16511 /* confdefs.h.  */
16512 _ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h.  */
16516
16517 /* Override any gcc2 internal prototype to avoid an error.  */
16518 #ifdef __cplusplus
16519 extern "C"
16520 #endif
16521 /* We use char because int might match the return type of a gcc2
16522    builtin and then its argument prototype would still apply.  */
16523 char dlopen ();
16524 int
16525 main ()
16526 {
16527 dlopen ();
16528   ;
16529   return 0;
16530 }
16531 _ACEOF
16532 rm -f conftest.$ac_objext conftest$ac_exeext
16533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16534   (eval $ac_link) 2>&5
16535   ac_status=$?
16536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537   (exit $ac_status); } &&
16538          { ac_try='test -s conftest$ac_exeext'
16539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540   (eval $ac_try) 2>&5
16541   ac_status=$?
16542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543   (exit $ac_status); }; }; then
16544   ac_cv_lib_dl_dlopen=yes
16545 else
16546   echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16548
16549 ac_cv_lib_dl_dlopen=no
16550 fi
16551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16552 LIBS=$ac_check_lib_save_LIBS
16553 fi
16554 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16555 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16556 if test $ac_cv_lib_dl_dlopen = yes; then
16557   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16558 else
16559
16560     lt_cv_dlopen="dyld"
16561     lt_cv_dlopen_libs=
16562     lt_cv_dlopen_self=yes
16563
16564 fi
16565
16566    ;;
16567
16568   *)
16569     echo "$as_me:$LINENO: checking for shl_load" >&5
16570 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16571 if test "${ac_cv_func_shl_load+set}" = set; then
16572   echo $ECHO_N "(cached) $ECHO_C" >&6
16573 else
16574   cat >conftest.$ac_ext <<_ACEOF
16575 #line $LINENO "configure"
16576 /* confdefs.h.  */
16577 _ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h.  */
16581 /* System header to define __stub macros and hopefully few prototypes,
16582     which can conflict with char shl_load (); below.
16583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16584     <limits.h> exists even on freestanding compilers.  */
16585 #ifdef __STDC__
16586 # include <limits.h>
16587 #else
16588 # include <assert.h>
16589 #endif
16590 /* Override any gcc2 internal prototype to avoid an error.  */
16591 #ifdef __cplusplus
16592 extern "C"
16593 {
16594 #endif
16595 /* We use char because int might match the return type of a gcc2
16596    builtin and then its argument prototype would still apply.  */
16597 char shl_load ();
16598 /* The GNU C library defines this for functions which it implements
16599     to always fail with ENOSYS.  Some functions are actually named
16600     something starting with __ and the normal name is an alias.  */
16601 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16602 choke me
16603 #else
16604 char (*f) () = shl_load;
16605 #endif
16606 #ifdef __cplusplus
16607 }
16608 #endif
16609
16610 int
16611 main ()
16612 {
16613 return f != shl_load;
16614   ;
16615   return 0;
16616 }
16617 _ACEOF
16618 rm -f conftest.$ac_objext conftest$ac_exeext
16619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16620   (eval $ac_link) 2>&5
16621   ac_status=$?
16622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623   (exit $ac_status); } &&
16624          { ac_try='test -s conftest$ac_exeext'
16625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626   (eval $ac_try) 2>&5
16627   ac_status=$?
16628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629   (exit $ac_status); }; }; then
16630   ac_cv_func_shl_load=yes
16631 else
16632   echo "$as_me: failed program was:" >&5
16633 sed 's/^/| /' conftest.$ac_ext >&5
16634
16635 ac_cv_func_shl_load=no
16636 fi
16637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16638 fi
16639 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16640 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16641 if test $ac_cv_func_shl_load = yes; then
16642   lt_cv_dlopen="shl_load"
16643 else
16644   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16645 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16646 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16647   echo $ECHO_N "(cached) $ECHO_C" >&6
16648 else
16649   ac_check_lib_save_LIBS=$LIBS
16650 LIBS="-ldld  $LIBS"
16651 cat >conftest.$ac_ext <<_ACEOF
16652 #line $LINENO "configure"
16653 /* confdefs.h.  */
16654 _ACEOF
16655 cat confdefs.h >>conftest.$ac_ext
16656 cat >>conftest.$ac_ext <<_ACEOF
16657 /* end confdefs.h.  */
16658
16659 /* Override any gcc2 internal prototype to avoid an error.  */
16660 #ifdef __cplusplus
16661 extern "C"
16662 #endif
16663 /* We use char because int might match the return type of a gcc2
16664    builtin and then its argument prototype would still apply.  */
16665 char shl_load ();
16666 int
16667 main ()
16668 {
16669 shl_load ();
16670   ;
16671   return 0;
16672 }
16673 _ACEOF
16674 rm -f conftest.$ac_objext conftest$ac_exeext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16676   (eval $ac_link) 2>&5
16677   ac_status=$?
16678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679   (exit $ac_status); } &&
16680          { ac_try='test -s conftest$ac_exeext'
16681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16682   (eval $ac_try) 2>&5
16683   ac_status=$?
16684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685   (exit $ac_status); }; }; then
16686   ac_cv_lib_dld_shl_load=yes
16687 else
16688   echo "$as_me: failed program was:" >&5
16689 sed 's/^/| /' conftest.$ac_ext >&5
16690
16691 ac_cv_lib_dld_shl_load=no
16692 fi
16693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16694 LIBS=$ac_check_lib_save_LIBS
16695 fi
16696 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16697 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16698 if test $ac_cv_lib_dld_shl_load = yes; then
16699   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16700 else
16701   echo "$as_me:$LINENO: checking for dlopen" >&5
16702 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16703 if test "${ac_cv_func_dlopen+set}" = set; then
16704   echo $ECHO_N "(cached) $ECHO_C" >&6
16705 else
16706   cat >conftest.$ac_ext <<_ACEOF
16707 #line $LINENO "configure"
16708 /* confdefs.h.  */
16709 _ACEOF
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h.  */
16713 /* System header to define __stub macros and hopefully few prototypes,
16714     which can conflict with char dlopen (); below.
16715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16716     <limits.h> exists even on freestanding compilers.  */
16717 #ifdef __STDC__
16718 # include <limits.h>
16719 #else
16720 # include <assert.h>
16721 #endif
16722 /* Override any gcc2 internal prototype to avoid an error.  */
16723 #ifdef __cplusplus
16724 extern "C"
16725 {
16726 #endif
16727 /* We use char because int might match the return type of a gcc2
16728    builtin and then its argument prototype would still apply.  */
16729 char dlopen ();
16730 /* The GNU C library defines this for functions which it implements
16731     to always fail with ENOSYS.  Some functions are actually named
16732     something starting with __ and the normal name is an alias.  */
16733 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16734 choke me
16735 #else
16736 char (*f) () = dlopen;
16737 #endif
16738 #ifdef __cplusplus
16739 }
16740 #endif
16741
16742 int
16743 main ()
16744 {
16745 return f != dlopen;
16746   ;
16747   return 0;
16748 }
16749 _ACEOF
16750 rm -f conftest.$ac_objext conftest$ac_exeext
16751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16752   (eval $ac_link) 2>&5
16753   ac_status=$?
16754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755   (exit $ac_status); } &&
16756          { ac_try='test -s conftest$ac_exeext'
16757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16758   (eval $ac_try) 2>&5
16759   ac_status=$?
16760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761   (exit $ac_status); }; }; then
16762   ac_cv_func_dlopen=yes
16763 else
16764   echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16766
16767 ac_cv_func_dlopen=no
16768 fi
16769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16770 fi
16771 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16772 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16773 if test $ac_cv_func_dlopen = yes; then
16774   lt_cv_dlopen="dlopen"
16775 else
16776   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16777 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16778 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16779   echo $ECHO_N "(cached) $ECHO_C" >&6
16780 else
16781   ac_check_lib_save_LIBS=$LIBS
16782 LIBS="-ldl  $LIBS"
16783 cat >conftest.$ac_ext <<_ACEOF
16784 #line $LINENO "configure"
16785 /* confdefs.h.  */
16786 _ACEOF
16787 cat confdefs.h >>conftest.$ac_ext
16788 cat >>conftest.$ac_ext <<_ACEOF
16789 /* end confdefs.h.  */
16790
16791 /* Override any gcc2 internal prototype to avoid an error.  */
16792 #ifdef __cplusplus
16793 extern "C"
16794 #endif
16795 /* We use char because int might match the return type of a gcc2
16796    builtin and then its argument prototype would still apply.  */
16797 char dlopen ();
16798 int
16799 main ()
16800 {
16801 dlopen ();
16802   ;
16803   return 0;
16804 }
16805 _ACEOF
16806 rm -f conftest.$ac_objext conftest$ac_exeext
16807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16808   (eval $ac_link) 2>&5
16809   ac_status=$?
16810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811   (exit $ac_status); } &&
16812          { ac_try='test -s conftest$ac_exeext'
16813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814   (eval $ac_try) 2>&5
16815   ac_status=$?
16816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817   (exit $ac_status); }; }; then
16818   ac_cv_lib_dl_dlopen=yes
16819 else
16820   echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16822
16823 ac_cv_lib_dl_dlopen=no
16824 fi
16825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16826 LIBS=$ac_check_lib_save_LIBS
16827 fi
16828 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16829 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16830 if test $ac_cv_lib_dl_dlopen = yes; then
16831   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16832 else
16833   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16834 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16835 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16836   echo $ECHO_N "(cached) $ECHO_C" >&6
16837 else
16838   ac_check_lib_save_LIBS=$LIBS
16839 LIBS="-lsvld  $LIBS"
16840 cat >conftest.$ac_ext <<_ACEOF
16841 #line $LINENO "configure"
16842 /* confdefs.h.  */
16843 _ACEOF
16844 cat confdefs.h >>conftest.$ac_ext
16845 cat >>conftest.$ac_ext <<_ACEOF
16846 /* end confdefs.h.  */
16847
16848 /* Override any gcc2 internal prototype to avoid an error.  */
16849 #ifdef __cplusplus
16850 extern "C"
16851 #endif
16852 /* We use char because int might match the return type of a gcc2
16853    builtin and then its argument prototype would still apply.  */
16854 char dlopen ();
16855 int
16856 main ()
16857 {
16858 dlopen ();
16859   ;
16860   return 0;
16861 }
16862 _ACEOF
16863 rm -f conftest.$ac_objext conftest$ac_exeext
16864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16865   (eval $ac_link) 2>&5
16866   ac_status=$?
16867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868   (exit $ac_status); } &&
16869          { ac_try='test -s conftest$ac_exeext'
16870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16871   (eval $ac_try) 2>&5
16872   ac_status=$?
16873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874   (exit $ac_status); }; }; then
16875   ac_cv_lib_svld_dlopen=yes
16876 else
16877   echo "$as_me: failed program was:" >&5
16878 sed 's/^/| /' conftest.$ac_ext >&5
16879
16880 ac_cv_lib_svld_dlopen=no
16881 fi
16882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16883 LIBS=$ac_check_lib_save_LIBS
16884 fi
16885 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16886 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16887 if test $ac_cv_lib_svld_dlopen = yes; then
16888   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16889 else
16890   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16891 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16892 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16893   echo $ECHO_N "(cached) $ECHO_C" >&6
16894 else
16895   ac_check_lib_save_LIBS=$LIBS
16896 LIBS="-ldld  $LIBS"
16897 cat >conftest.$ac_ext <<_ACEOF
16898 #line $LINENO "configure"
16899 /* confdefs.h.  */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h.  */
16904
16905 /* Override any gcc2 internal prototype to avoid an error.  */
16906 #ifdef __cplusplus
16907 extern "C"
16908 #endif
16909 /* We use char because int might match the return type of a gcc2
16910    builtin and then its argument prototype would still apply.  */
16911 char dld_link ();
16912 int
16913 main ()
16914 {
16915 dld_link ();
16916   ;
16917   return 0;
16918 }
16919 _ACEOF
16920 rm -f conftest.$ac_objext conftest$ac_exeext
16921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16922   (eval $ac_link) 2>&5
16923   ac_status=$?
16924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925   (exit $ac_status); } &&
16926          { ac_try='test -s conftest$ac_exeext'
16927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928   (eval $ac_try) 2>&5
16929   ac_status=$?
16930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931   (exit $ac_status); }; }; then
16932   ac_cv_lib_dld_dld_link=yes
16933 else
16934   echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16936
16937 ac_cv_lib_dld_dld_link=no
16938 fi
16939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16940 LIBS=$ac_check_lib_save_LIBS
16941 fi
16942 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16943 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16944 if test $ac_cv_lib_dld_dld_link = yes; then
16945   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16946 fi
16947
16948
16949 fi
16950
16951
16952 fi
16953
16954
16955 fi
16956
16957
16958 fi
16959
16960
16961 fi
16962
16963     ;;
16964   esac
16965
16966   if test "x$lt_cv_dlopen" != xno; then
16967     enable_dlopen=yes
16968   else
16969     enable_dlopen=no
16970   fi
16971
16972   case $lt_cv_dlopen in
16973   dlopen)
16974     save_CPPFLAGS="$CPPFLAGS"
16975     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16976
16977     save_LDFLAGS="$LDFLAGS"
16978     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16979
16980     save_LIBS="$LIBS"
16981     LIBS="$lt_cv_dlopen_libs $LIBS"
16982
16983     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16984 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16985 if test "${lt_cv_dlopen_self+set}" = set; then
16986   echo $ECHO_N "(cached) $ECHO_C" >&6
16987 else
16988           if test "$cross_compiling" = yes; then :
16989   lt_cv_dlopen_self=cross
16990 else
16991   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16992   lt_status=$lt_dlunknown
16993   cat > conftest.$ac_ext <<EOF
16994 #line 16994 "configure"
16995 #include "confdefs.h"
16996
16997 #if HAVE_DLFCN_H
16998 #include <dlfcn.h>
16999 #endif
17000
17001 #include <stdio.h>
17002
17003 #ifdef RTLD_GLOBAL
17004 #  define LT_DLGLOBAL           RTLD_GLOBAL
17005 #else
17006 #  ifdef DL_GLOBAL
17007 #    define LT_DLGLOBAL         DL_GLOBAL
17008 #  else
17009 #    define LT_DLGLOBAL         0
17010 #  endif
17011 #endif
17012
17013 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17014    find out it does not work in some platform. */
17015 #ifndef LT_DLLAZY_OR_NOW
17016 #  ifdef RTLD_LAZY
17017 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17018 #  else
17019 #    ifdef DL_LAZY
17020 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17021 #    else
17022 #      ifdef RTLD_NOW
17023 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17024 #      else
17025 #        ifdef DL_NOW
17026 #          define LT_DLLAZY_OR_NOW      DL_NOW
17027 #        else
17028 #          define LT_DLLAZY_OR_NOW      0
17029 #        endif
17030 #      endif
17031 #    endif
17032 #  endif
17033 #endif
17034
17035 #ifdef __cplusplus
17036 extern "C" void exit (int);
17037 #endif
17038
17039 void fnord() { int i=42;}
17040 int main ()
17041 {
17042   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17043   int status = $lt_dlunknown;
17044
17045   if (self)
17046     {
17047       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17048       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17049       /* dlclose (self); */
17050     }
17051
17052     exit (status);
17053 }
17054 EOF
17055   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17056   (eval $ac_link) 2>&5
17057   ac_status=$?
17058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17060     (./conftest; exit; ) 2>/dev/null
17061     lt_status=$?
17062     case x$lt_status in
17063       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17064       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17065       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17066     esac
17067   else :
17068     # compilation failed
17069     lt_cv_dlopen_self=no
17070   fi
17071 fi
17072 rm -fr conftest*
17073
17074
17075 fi
17076 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17077 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17078
17079     if test "x$lt_cv_dlopen_self" = xyes; then
17080       LDFLAGS="$LDFLAGS $link_static_flag"
17081       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17082 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17083 if test "${lt_cv_dlopen_self_static+set}" = set; then
17084   echo $ECHO_N "(cached) $ECHO_C" >&6
17085 else
17086           if test "$cross_compiling" = yes; then :
17087   lt_cv_dlopen_self_static=cross
17088 else
17089   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17090   lt_status=$lt_dlunknown
17091   cat > conftest.$ac_ext <<EOF
17092 #line 17092 "configure"
17093 #include "confdefs.h"
17094
17095 #if HAVE_DLFCN_H
17096 #include <dlfcn.h>
17097 #endif
17098
17099 #include <stdio.h>
17100
17101 #ifdef RTLD_GLOBAL
17102 #  define LT_DLGLOBAL           RTLD_GLOBAL
17103 #else
17104 #  ifdef DL_GLOBAL
17105 #    define LT_DLGLOBAL         DL_GLOBAL
17106 #  else
17107 #    define LT_DLGLOBAL         0
17108 #  endif
17109 #endif
17110
17111 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17112    find out it does not work in some platform. */
17113 #ifndef LT_DLLAZY_OR_NOW
17114 #  ifdef RTLD_LAZY
17115 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17116 #  else
17117 #    ifdef DL_LAZY
17118 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17119 #    else
17120 #      ifdef RTLD_NOW
17121 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17122 #      else
17123 #        ifdef DL_NOW
17124 #          define LT_DLLAZY_OR_NOW      DL_NOW
17125 #        else
17126 #          define LT_DLLAZY_OR_NOW      0
17127 #        endif
17128 #      endif
17129 #    endif
17130 #  endif
17131 #endif
17132
17133 #ifdef __cplusplus
17134 extern "C" void exit (int);
17135 #endif
17136
17137 void fnord() { int i=42;}
17138 int main ()
17139 {
17140   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17141   int status = $lt_dlunknown;
17142
17143   if (self)
17144     {
17145       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17146       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17147       /* dlclose (self); */
17148     }
17149
17150     exit (status);
17151 }
17152 EOF
17153   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17154   (eval $ac_link) 2>&5
17155   ac_status=$?
17156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17158     (./conftest; exit; ) 2>/dev/null
17159     lt_status=$?
17160     case x$lt_status in
17161       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17162       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17163       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17164     esac
17165   else :
17166     # compilation failed
17167     lt_cv_dlopen_self_static=no
17168   fi
17169 fi
17170 rm -fr conftest*
17171
17172
17173 fi
17174 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17175 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17176     fi
17177
17178     CPPFLAGS="$save_CPPFLAGS"
17179     LDFLAGS="$save_LDFLAGS"
17180     LIBS="$save_LIBS"
17181     ;;
17182   esac
17183
17184   case $lt_cv_dlopen_self in
17185   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17186   *) enable_dlopen_self=unknown ;;
17187   esac
17188
17189   case $lt_cv_dlopen_self_static in
17190   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17191   *) enable_dlopen_self_static=unknown ;;
17192   esac
17193 fi
17194
17195
17196 # The else clause should only fire when bootstrapping the
17197 # libtool distribution, otherwise you forgot to ship ltmain.sh
17198 # with your package, and you will get complaints that there are
17199 # no rules to generate ltmain.sh.
17200 if test -f "$ltmain"; then
17201   # See if we are running on zsh, and set the options which allow our commands through
17202   # without removal of \ escapes.
17203   if test -n "${ZSH_VERSION+set}" ; then
17204     setopt NO_GLOB_SUBST
17205   fi
17206   # Now quote all the things that may contain metacharacters while being
17207   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17208   # variables and quote the copies for generation of the libtool script.
17209   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17210     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17211     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17212     deplibs_check_method reload_flag reload_cmds need_locks \
17213     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17214     lt_cv_sys_global_symbol_to_c_name_address \
17215     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17216     old_postinstall_cmds old_postuninstall_cmds \
17217     compiler_GCJ \
17218     CC_GCJ \
17219     LD_GCJ \
17220     lt_prog_compiler_wl_GCJ \
17221     lt_prog_compiler_pic_GCJ \
17222     lt_prog_compiler_static_GCJ \
17223     lt_prog_compiler_no_builtin_flag_GCJ \
17224     export_dynamic_flag_spec_GCJ \
17225     thread_safe_flag_spec_GCJ \
17226     whole_archive_flag_spec_GCJ \
17227     enable_shared_with_static_runtimes_GCJ \
17228     old_archive_cmds_GCJ \
17229     old_archive_from_new_cmds_GCJ \
17230     predep_objects_GCJ \
17231     postdep_objects_GCJ \
17232     predeps_GCJ \
17233     postdeps_GCJ \
17234     compiler_lib_search_path_GCJ \
17235     archive_cmds_GCJ \
17236     archive_expsym_cmds_GCJ \
17237     postinstall_cmds_GCJ \
17238     postuninstall_cmds_GCJ \
17239     old_archive_from_expsyms_cmds_GCJ \
17240     allow_undefined_flag_GCJ \
17241     no_undefined_flag_GCJ \
17242     export_symbols_cmds_GCJ \
17243     hardcode_libdir_flag_spec_GCJ \
17244     hardcode_libdir_flag_spec_ld_GCJ \
17245     hardcode_libdir_separator_GCJ \
17246     hardcode_automatic_GCJ \
17247     module_cmds_GCJ \
17248     module_expsym_cmds_GCJ \
17249     lt_cv_prog_compiler_c_o_GCJ \
17250     exclude_expsyms_GCJ \
17251     include_expsyms_GCJ; do
17252
17253     case $var in
17254     old_archive_cmds_GCJ | \
17255     old_archive_from_new_cmds_GCJ | \
17256     archive_cmds_GCJ | \
17257     archive_expsym_cmds_GCJ | \
17258     module_cmds_GCJ | \
17259     module_expsym_cmds_GCJ | \
17260     old_archive_from_expsyms_cmds_GCJ | \
17261     export_symbols_cmds_GCJ | \
17262     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17263     postinstall_cmds | postuninstall_cmds | \
17264     old_postinstall_cmds | old_postuninstall_cmds | \
17265     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17266       # Double-quote double-evaled strings.
17267       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17268       ;;
17269     *)
17270       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17271       ;;
17272     esac
17273   done
17274
17275   case $lt_echo in
17276   *'\$0 --fallback-echo"')
17277     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17278     ;;
17279   esac
17280
17281 cfgfile="$ofile"
17282
17283   cat <<__EOF__ >> "$cfgfile"
17284 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17285
17286 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17287
17288 # Shell to use when invoking shell scripts.
17289 SHELL=$lt_SHELL
17290
17291 # Whether or not to build shared libraries.
17292 build_libtool_libs=$enable_shared
17293
17294 # Whether or not to build static libraries.
17295 build_old_libs=$enable_static
17296
17297 # Whether or not to add -lc for building shared libraries.
17298 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17299
17300 # Whether or not to disallow shared libs when runtime libs are static
17301 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17302
17303 # Whether or not to optimize for fast installation.
17304 fast_install=$enable_fast_install
17305
17306 # The host system.
17307 host_alias=$host_alias
17308 host=$host
17309
17310 # An echo program that does not interpret backslashes.
17311 echo=$lt_echo
17312
17313 # The archiver.
17314 AR=$lt_AR
17315 AR_FLAGS=$lt_AR_FLAGS
17316
17317 # A C compiler.
17318 LTCC=$lt_LTCC
17319
17320 # A language-specific compiler.
17321 CC=$lt_compiler_GCJ
17322
17323 # Is the compiler the GNU C compiler?
17324 with_gcc=$GCC_GCJ
17325
17326 # An ERE matcher.
17327 EGREP=$lt_EGREP
17328
17329 # The linker used to build libraries.
17330 LD=$lt_LD_GCJ
17331
17332 # Whether we need hard or soft links.
17333 LN_S=$lt_LN_S
17334
17335 # A BSD-compatible nm program.
17336 NM=$lt_NM
17337
17338 # A symbol stripping program
17339 STRIP=$STRIP
17340
17341 # Used to examine libraries when file_magic_cmd begins "file"
17342 MAGIC_CMD=$MAGIC_CMD
17343
17344 # Used on cygwin: DLL creation program.
17345 DLLTOOL="$DLLTOOL"
17346
17347 # Used on cygwin: object dumper.
17348 OBJDUMP="$OBJDUMP"
17349
17350 # Used on cygwin: assembler.
17351 AS="$AS"
17352
17353 # The name of the directory that contains temporary libtool files.
17354 objdir=$objdir
17355
17356 # How to create reloadable object files.
17357 reload_flag=$lt_reload_flag
17358 reload_cmds=$lt_reload_cmds
17359
17360 # How to pass a linker flag through the compiler.
17361 wl=$lt_lt_prog_compiler_wl_GCJ
17362
17363 # Object file suffix (normally "o").
17364 objext="$ac_objext"
17365
17366 # Old archive suffix (normally "a").
17367 libext="$libext"
17368
17369 # Shared library suffix (normally ".so").
17370 shrext='$shrext'
17371
17372 # Executable file suffix (normally "").
17373 exeext="$exeext"
17374
17375 # Additional compiler flags for building library objects.
17376 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17377 pic_mode=$pic_mode
17378
17379 # What is the maximum length of a command?
17380 max_cmd_len=$lt_cv_sys_max_cmd_len
17381
17382 # Does compiler simultaneously support -c and -o options?
17383 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17384
17385 # Must we lock files when doing compilation ?
17386 need_locks=$lt_need_locks
17387
17388 # Do we need the lib prefix for modules?
17389 need_lib_prefix=$need_lib_prefix
17390
17391 # Do we need a version for libraries?
17392 need_version=$need_version
17393
17394 # Whether dlopen is supported.
17395 dlopen_support=$enable_dlopen
17396
17397 # Whether dlopen of programs is supported.
17398 dlopen_self=$enable_dlopen_self
17399
17400 # Whether dlopen of statically linked programs is supported.
17401 dlopen_self_static=$enable_dlopen_self_static
17402
17403 # Compiler flag to prevent dynamic linking.
17404 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17405
17406 # Compiler flag to turn off builtin functions.
17407 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17408
17409 # Compiler flag to allow reflexive dlopens.
17410 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17411
17412 # Compiler flag to generate shared objects directly from archives.
17413 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17414
17415 # Compiler flag to generate thread-safe objects.
17416 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17417
17418 # Library versioning type.
17419 version_type=$version_type
17420
17421 # Format of library name prefix.
17422 libname_spec=$lt_libname_spec
17423
17424 # List of archive names.  First name is the real one, the rest are links.
17425 # The last name is the one that the linker finds with -lNAME.
17426 library_names_spec=$lt_library_names_spec
17427
17428 # The coded name of the library, if different from the real name.
17429 soname_spec=$lt_soname_spec
17430
17431 # Commands used to build and install an old-style archive.
17432 RANLIB=$lt_RANLIB
17433 old_archive_cmds=$lt_old_archive_cmds_GCJ
17434 old_postinstall_cmds=$lt_old_postinstall_cmds
17435 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17436
17437 # Create an old-style archive from a shared archive.
17438 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17439
17440 # Create a temporary old-style archive to link instead of a shared archive.
17441 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17442
17443 # Commands used to build and install a shared archive.
17444 archive_cmds=$lt_archive_cmds_GCJ
17445 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17446 postinstall_cmds=$lt_postinstall_cmds
17447 postuninstall_cmds=$lt_postuninstall_cmds
17448
17449 # Commands used to build a loadable module (assumed same as above if empty)
17450 module_cmds=$lt_module_cmds_GCJ
17451 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17452
17453 # Commands to strip libraries.
17454 old_striplib=$lt_old_striplib
17455 striplib=$lt_striplib
17456
17457 # Dependencies to place before the objects being linked to create a
17458 # shared library.
17459 predep_objects=$lt_predep_objects_GCJ
17460
17461 # Dependencies to place after the objects being linked to create a
17462 # shared library.
17463 postdep_objects=$lt_postdep_objects_GCJ
17464
17465 # Dependencies to place before the objects being linked to create a
17466 # shared library.
17467 predeps=$lt_predeps_GCJ
17468
17469 # Dependencies to place after the objects being linked to create a
17470 # shared library.
17471 postdeps=$lt_postdeps_GCJ
17472
17473 # The library search path used internally by the compiler when linking
17474 # a shared library.
17475 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17476
17477 # Method to check whether dependent libraries are shared objects.
17478 deplibs_check_method=$lt_deplibs_check_method
17479
17480 # Command to use when deplibs_check_method == file_magic.
17481 file_magic_cmd=$lt_file_magic_cmd
17482
17483 # Flag that allows shared libraries with undefined symbols to be built.
17484 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17485
17486 # Flag that forces no undefined symbols.
17487 no_undefined_flag=$lt_no_undefined_flag_GCJ
17488
17489 # Commands used to finish a libtool library installation in a directory.
17490 finish_cmds=$lt_finish_cmds
17491
17492 # Same as above, but a single script fragment to be evaled but not shown.
17493 finish_eval=$lt_finish_eval
17494
17495 # Take the output of nm and produce a listing of raw symbols and C names.
17496 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17497
17498 # Transform the output of nm in a proper C declaration
17499 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17500
17501 # Transform the output of nm in a C name address pair
17502 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17503
17504 # This is the shared library runtime path variable.
17505 runpath_var=$runpath_var
17506
17507 # This is the shared library path variable.
17508 shlibpath_var=$shlibpath_var
17509
17510 # Is shlibpath searched before the hard-coded library search path?
17511 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17512
17513 # How to hardcode a shared library path into an executable.
17514 hardcode_action=$hardcode_action_GCJ
17515
17516 # Whether we should hardcode library paths into libraries.
17517 hardcode_into_libs=$hardcode_into_libs
17518
17519 # Flag to hardcode \$libdir into a binary during linking.
17520 # This must work even if \$libdir does not exist.
17521 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17522
17523 # If ld is used when linking, flag to hardcode \$libdir into
17524 # a binary during linking. This must work even if \$libdir does
17525 # not exist.
17526 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17527
17528 # Whether we need a single -rpath flag with a separated argument.
17529 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17530
17531 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17532 # resulting binary.
17533 hardcode_direct=$hardcode_direct_GCJ
17534
17535 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17536 # resulting binary.
17537 hardcode_minus_L=$hardcode_minus_L_GCJ
17538
17539 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17540 # the resulting binary.
17541 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17542
17543 # Set to yes if building a shared library automatically hardcodes DIR into the library
17544 # and all subsequent libraries and executables linked against it.
17545 hardcode_automatic=$hardcode_automatic_GCJ
17546
17547 # Variables whose values should be saved in libtool wrapper scripts and
17548 # restored at relink time.
17549 variables_saved_for_relink="$variables_saved_for_relink"
17550
17551 # Whether libtool must link a program against all its dependency libraries.
17552 link_all_deplibs=$link_all_deplibs_GCJ
17553
17554 # Compile-time system search path for libraries
17555 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17556
17557 # Run-time system search path for libraries
17558 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17559
17560 # Fix the shell variable \$srcfile for the compiler.
17561 fix_srcfile_path="$fix_srcfile_path_GCJ"
17562
17563 # Set to yes if exported symbols are required.
17564 always_export_symbols=$always_export_symbols_GCJ
17565
17566 # The commands to list exported symbols.
17567 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17568
17569 # The commands to extract the exported symbol list from a shared archive.
17570 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17571
17572 # Symbols that should not be listed in the preloaded symbols.
17573 exclude_expsyms=$lt_exclude_expsyms_GCJ
17574
17575 # Symbols that must always be exported.
17576 include_expsyms=$lt_include_expsyms_GCJ
17577
17578 # ### END LIBTOOL TAG CONFIG: $tagname
17579
17580 __EOF__
17581
17582
17583 else
17584   # If there is no Makefile yet, we rely on a make rule to execute
17585   # `config.status --recheck' to rerun these tests and create the
17586   # libtool script then.
17587   test -f Makefile && make "$ltmain"
17588 fi
17589
17590
17591 ac_ext=c
17592 ac_cpp='$CPP $CPPFLAGS'
17593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17596
17597 CC="$lt_save_CC"
17598
17599         else
17600           tagname=""
17601         fi
17602         ;;
17603
17604       RC)
17605
17606
17607
17608 # Source file extension for RC test sources.
17609 ac_ext=rc
17610
17611 # Object file extension for compiled RC test sources.
17612 objext=o
17613 objext_RC=$objext
17614
17615 # Code to be used in simple compile tests
17616 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17617
17618 # Code to be used in simple link tests
17619 lt_simple_link_test_code="$lt_simple_compile_test_code"
17620
17621 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17622
17623 # If no C compiler was specified, use CC.
17624 LTCC=${LTCC-"$CC"}
17625
17626 # Allow CC to be a program name with arguments.
17627 compiler=$CC
17628
17629
17630 # Allow CC to be a program name with arguments.
17631 lt_save_CC="$CC"
17632 CC=${RC-"windres"}
17633 compiler=$CC
17634 compiler_RC=$CC
17635 lt_cv_prog_compiler_c_o_RC=yes
17636
17637 # The else clause should only fire when bootstrapping the
17638 # libtool distribution, otherwise you forgot to ship ltmain.sh
17639 # with your package, and you will get complaints that there are
17640 # no rules to generate ltmain.sh.
17641 if test -f "$ltmain"; then
17642   # See if we are running on zsh, and set the options which allow our commands through
17643   # without removal of \ escapes.
17644   if test -n "${ZSH_VERSION+set}" ; then
17645     setopt NO_GLOB_SUBST
17646   fi
17647   # Now quote all the things that may contain metacharacters while being
17648   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17649   # variables and quote the copies for generation of the libtool script.
17650   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17651     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17652     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17653     deplibs_check_method reload_flag reload_cmds need_locks \
17654     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17655     lt_cv_sys_global_symbol_to_c_name_address \
17656     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17657     old_postinstall_cmds old_postuninstall_cmds \
17658     compiler_RC \
17659     CC_RC \
17660     LD_RC \
17661     lt_prog_compiler_wl_RC \
17662     lt_prog_compiler_pic_RC \
17663     lt_prog_compiler_static_RC \
17664     lt_prog_compiler_no_builtin_flag_RC \
17665     export_dynamic_flag_spec_RC \
17666     thread_safe_flag_spec_RC \
17667     whole_archive_flag_spec_RC \
17668     enable_shared_with_static_runtimes_RC \
17669     old_archive_cmds_RC \
17670     old_archive_from_new_cmds_RC \
17671     predep_objects_RC \
17672     postdep_objects_RC \
17673     predeps_RC \
17674     postdeps_RC \
17675     compiler_lib_search_path_RC \
17676     archive_cmds_RC \
17677     archive_expsym_cmds_RC \
17678     postinstall_cmds_RC \
17679     postuninstall_cmds_RC \
17680     old_archive_from_expsyms_cmds_RC \
17681     allow_undefined_flag_RC \
17682     no_undefined_flag_RC \
17683     export_symbols_cmds_RC \
17684     hardcode_libdir_flag_spec_RC \
17685     hardcode_libdir_flag_spec_ld_RC \
17686     hardcode_libdir_separator_RC \
17687     hardcode_automatic_RC \
17688     module_cmds_RC \
17689     module_expsym_cmds_RC \
17690     lt_cv_prog_compiler_c_o_RC \
17691     exclude_expsyms_RC \
17692     include_expsyms_RC; do
17693
17694     case $var in
17695     old_archive_cmds_RC | \
17696     old_archive_from_new_cmds_RC | \
17697     archive_cmds_RC | \
17698     archive_expsym_cmds_RC | \
17699     module_cmds_RC | \
17700     module_expsym_cmds_RC | \
17701     old_archive_from_expsyms_cmds_RC | \
17702     export_symbols_cmds_RC | \
17703     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17704     postinstall_cmds | postuninstall_cmds | \
17705     old_postinstall_cmds | old_postuninstall_cmds | \
17706     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17707       # Double-quote double-evaled strings.
17708       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17709       ;;
17710     *)
17711       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17712       ;;
17713     esac
17714   done
17715
17716   case $lt_echo in
17717   *'\$0 --fallback-echo"')
17718     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17719     ;;
17720   esac
17721
17722 cfgfile="$ofile"
17723
17724   cat <<__EOF__ >> "$cfgfile"
17725 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17726
17727 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17728
17729 # Shell to use when invoking shell scripts.
17730 SHELL=$lt_SHELL
17731
17732 # Whether or not to build shared libraries.
17733 build_libtool_libs=$enable_shared
17734
17735 # Whether or not to build static libraries.
17736 build_old_libs=$enable_static
17737
17738 # Whether or not to add -lc for building shared libraries.
17739 build_libtool_need_lc=$archive_cmds_need_lc_RC
17740
17741 # Whether or not to disallow shared libs when runtime libs are static
17742 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17743
17744 # Whether or not to optimize for fast installation.
17745 fast_install=$enable_fast_install
17746
17747 # The host system.
17748 host_alias=$host_alias
17749 host=$host
17750
17751 # An echo program that does not interpret backslashes.
17752 echo=$lt_echo
17753
17754 # The archiver.
17755 AR=$lt_AR
17756 AR_FLAGS=$lt_AR_FLAGS
17757
17758 # A C compiler.
17759 LTCC=$lt_LTCC
17760
17761 # A language-specific compiler.
17762 CC=$lt_compiler_RC
17763
17764 # Is the compiler the GNU C compiler?
17765 with_gcc=$GCC_RC
17766
17767 # An ERE matcher.
17768 EGREP=$lt_EGREP
17769
17770 # The linker used to build libraries.
17771 LD=$lt_LD_RC
17772
17773 # Whether we need hard or soft links.
17774 LN_S=$lt_LN_S
17775
17776 # A BSD-compatible nm program.
17777 NM=$lt_NM
17778
17779 # A symbol stripping program
17780 STRIP=$STRIP
17781
17782 # Used to examine libraries when file_magic_cmd begins "file"
17783 MAGIC_CMD=$MAGIC_CMD
17784
17785 # Used on cygwin: DLL creation program.
17786 DLLTOOL="$DLLTOOL"
17787
17788 # Used on cygwin: object dumper.
17789 OBJDUMP="$OBJDUMP"
17790
17791 # Used on cygwin: assembler.
17792 AS="$AS"
17793
17794 # The name of the directory that contains temporary libtool files.
17795 objdir=$objdir
17796
17797 # How to create reloadable object files.
17798 reload_flag=$lt_reload_flag
17799 reload_cmds=$lt_reload_cmds
17800
17801 # How to pass a linker flag through the compiler.
17802 wl=$lt_lt_prog_compiler_wl_RC
17803
17804 # Object file suffix (normally "o").
17805 objext="$ac_objext"
17806
17807 # Old archive suffix (normally "a").
17808 libext="$libext"
17809
17810 # Shared library suffix (normally ".so").
17811 shrext='$shrext'
17812
17813 # Executable file suffix (normally "").
17814 exeext="$exeext"
17815
17816 # Additional compiler flags for building library objects.
17817 pic_flag=$lt_lt_prog_compiler_pic_RC
17818 pic_mode=$pic_mode
17819
17820 # What is the maximum length of a command?
17821 max_cmd_len=$lt_cv_sys_max_cmd_len
17822
17823 # Does compiler simultaneously support -c and -o options?
17824 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17825
17826 # Must we lock files when doing compilation ?
17827 need_locks=$lt_need_locks
17828
17829 # Do we need the lib prefix for modules?
17830 need_lib_prefix=$need_lib_prefix
17831
17832 # Do we need a version for libraries?
17833 need_version=$need_version
17834
17835 # Whether dlopen is supported.
17836 dlopen_support=$enable_dlopen
17837
17838 # Whether dlopen of programs is supported.
17839 dlopen_self=$enable_dlopen_self
17840
17841 # Whether dlopen of statically linked programs is supported.
17842 dlopen_self_static=$enable_dlopen_self_static
17843
17844 # Compiler flag to prevent dynamic linking.
17845 link_static_flag=$lt_lt_prog_compiler_static_RC
17846
17847 # Compiler flag to turn off builtin functions.
17848 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17849
17850 # Compiler flag to allow reflexive dlopens.
17851 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17852
17853 # Compiler flag to generate shared objects directly from archives.
17854 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17855
17856 # Compiler flag to generate thread-safe objects.
17857 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17858
17859 # Library versioning type.
17860 version_type=$version_type
17861
17862 # Format of library name prefix.
17863 libname_spec=$lt_libname_spec
17864
17865 # List of archive names.  First name is the real one, the rest are links.
17866 # The last name is the one that the linker finds with -lNAME.
17867 library_names_spec=$lt_library_names_spec
17868
17869 # The coded name of the library, if different from the real name.
17870 soname_spec=$lt_soname_spec
17871
17872 # Commands used to build and install an old-style archive.
17873 RANLIB=$lt_RANLIB
17874 old_archive_cmds=$lt_old_archive_cmds_RC
17875 old_postinstall_cmds=$lt_old_postinstall_cmds
17876 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17877
17878 # Create an old-style archive from a shared archive.
17879 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17880
17881 # Create a temporary old-style archive to link instead of a shared archive.
17882 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17883
17884 # Commands used to build and install a shared archive.
17885 archive_cmds=$lt_archive_cmds_RC
17886 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17887 postinstall_cmds=$lt_postinstall_cmds
17888 postuninstall_cmds=$lt_postuninstall_cmds
17889
17890 # Commands used to build a loadable module (assumed same as above if empty)
17891 module_cmds=$lt_module_cmds_RC
17892 module_expsym_cmds=$lt_module_expsym_cmds_RC
17893
17894 # Commands to strip libraries.
17895 old_striplib=$lt_old_striplib
17896 striplib=$lt_striplib
17897
17898 # Dependencies to place before the objects being linked to create a
17899 # shared library.
17900 predep_objects=$lt_predep_objects_RC
17901
17902 # Dependencies to place after the objects being linked to create a
17903 # shared library.
17904 postdep_objects=$lt_postdep_objects_RC
17905
17906 # Dependencies to place before the objects being linked to create a
17907 # shared library.
17908 predeps=$lt_predeps_RC
17909
17910 # Dependencies to place after the objects being linked to create a
17911 # shared library.
17912 postdeps=$lt_postdeps_RC
17913
17914 # The library search path used internally by the compiler when linking
17915 # a shared library.
17916 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17917
17918 # Method to check whether dependent libraries are shared objects.
17919 deplibs_check_method=$lt_deplibs_check_method
17920
17921 # Command to use when deplibs_check_method == file_magic.
17922 file_magic_cmd=$lt_file_magic_cmd
17923
17924 # Flag that allows shared libraries with undefined symbols to be built.
17925 allow_undefined_flag=$lt_allow_undefined_flag_RC
17926
17927 # Flag that forces no undefined symbols.
17928 no_undefined_flag=$lt_no_undefined_flag_RC
17929
17930 # Commands used to finish a libtool library installation in a directory.
17931 finish_cmds=$lt_finish_cmds
17932
17933 # Same as above, but a single script fragment to be evaled but not shown.
17934 finish_eval=$lt_finish_eval
17935
17936 # Take the output of nm and produce a listing of raw symbols and C names.
17937 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17938
17939 # Transform the output of nm in a proper C declaration
17940 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17941
17942 # Transform the output of nm in a C name address pair
17943 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17944
17945 # This is the shared library runtime path variable.
17946 runpath_var=$runpath_var
17947
17948 # This is the shared library path variable.
17949 shlibpath_var=$shlibpath_var
17950
17951 # Is shlibpath searched before the hard-coded library search path?
17952 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17953
17954 # How to hardcode a shared library path into an executable.
17955 hardcode_action=$hardcode_action_RC
17956
17957 # Whether we should hardcode library paths into libraries.
17958 hardcode_into_libs=$hardcode_into_libs
17959
17960 # Flag to hardcode \$libdir into a binary during linking.
17961 # This must work even if \$libdir does not exist.
17962 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17963
17964 # If ld is used when linking, flag to hardcode \$libdir into
17965 # a binary during linking. This must work even if \$libdir does
17966 # not exist.
17967 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17968
17969 # Whether we need a single -rpath flag with a separated argument.
17970 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17971
17972 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17973 # resulting binary.
17974 hardcode_direct=$hardcode_direct_RC
17975
17976 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17977 # resulting binary.
17978 hardcode_minus_L=$hardcode_minus_L_RC
17979
17980 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17981 # the resulting binary.
17982 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17983
17984 # Set to yes if building a shared library automatically hardcodes DIR into the library
17985 # and all subsequent libraries and executables linked against it.
17986 hardcode_automatic=$hardcode_automatic_RC
17987
17988 # Variables whose values should be saved in libtool wrapper scripts and
17989 # restored at relink time.
17990 variables_saved_for_relink="$variables_saved_for_relink"
17991
17992 # Whether libtool must link a program against all its dependency libraries.
17993 link_all_deplibs=$link_all_deplibs_RC
17994
17995 # Compile-time system search path for libraries
17996 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17997
17998 # Run-time system search path for libraries
17999 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18000
18001 # Fix the shell variable \$srcfile for the compiler.
18002 fix_srcfile_path="$fix_srcfile_path_RC"
18003
18004 # Set to yes if exported symbols are required.
18005 always_export_symbols=$always_export_symbols_RC
18006
18007 # The commands to list exported symbols.
18008 export_symbols_cmds=$lt_export_symbols_cmds_RC
18009
18010 # The commands to extract the exported symbol list from a shared archive.
18011 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18012
18013 # Symbols that should not be listed in the preloaded symbols.
18014 exclude_expsyms=$lt_exclude_expsyms_RC
18015
18016 # Symbols that must always be exported.
18017 include_expsyms=$lt_include_expsyms_RC
18018
18019 # ### END LIBTOOL TAG CONFIG: $tagname
18020
18021 __EOF__
18022
18023
18024 else
18025   # If there is no Makefile yet, we rely on a make rule to execute
18026   # `config.status --recheck' to rerun these tests and create the
18027   # libtool script then.
18028   test -f Makefile && make "$ltmain"
18029 fi
18030
18031
18032 ac_ext=c
18033 ac_cpp='$CPP $CPPFLAGS'
18034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18037
18038 CC="$lt_save_CC"
18039
18040         ;;
18041
18042       *)
18043         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18044 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18045    { (exit 1); exit 1; }; }
18046         ;;
18047       esac
18048
18049       # Append the new tag name to the list of available tags.
18050       if test -n "$tagname" ; then
18051       available_tags="$available_tags $tagname"
18052     fi
18053     fi
18054   done
18055   IFS="$lt_save_ifs"
18056
18057   # Now substitute the updated list of available tags.
18058   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18059     mv "${ofile}T" "$ofile"
18060     chmod +x "$ofile"
18061   else
18062     rm -f "${ofile}T"
18063     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18064 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18065    { (exit 1); exit 1; }; }
18066   fi
18067 fi
18068
18069
18070
18071 # This can be used to rebuild libtool when needed
18072 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18073
18074 # Always use our own libtool.
18075 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18076
18077 # Prevent multiple expansion
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099 # Extract the first word of "dot", so it can be a program name with args.
18100 set dummy dot; ac_word=$2
18101 echo "$as_me:$LINENO: checking for $ac_word" >&5
18102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18103 if test "${ac_cv_path_DOT+set}" = set; then
18104   echo $ECHO_N "(cached) $ECHO_C" >&6
18105 else
18106   case $DOT in
18107   [\\/]* | ?:[\\/]*)
18108   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18109   ;;
18110   *)
18111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18112 for as_dir in $PATH
18113 do
18114   IFS=$as_save_IFS
18115   test -z "$as_dir" && as_dir=.
18116   for ac_exec_ext in '' $ac_executable_extensions; do
18117   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18118     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18120     break 2
18121   fi
18122 done
18123 done
18124
18125   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
18126   ;;
18127 esac
18128 fi
18129 DOT=$ac_cv_path_DOT
18130
18131 if test -n "$DOT"; then
18132   echo "$as_me:$LINENO: result: $DOT" >&5
18133 echo "${ECHO_T}$DOT" >&6
18134 else
18135   echo "$as_me:$LINENO: result: no" >&5
18136 echo "${ECHO_T}no" >&6
18137 fi
18138
18139 # Extract the first word of "etags", so it can be a program name with args.
18140 set dummy etags; ac_word=$2
18141 echo "$as_me:$LINENO: checking for $ac_word" >&5
18142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18143 if test "${ac_cv_path_ETAGS+set}" = set; then
18144   echo $ECHO_N "(cached) $ECHO_C" >&6
18145 else
18146   case $ETAGS in
18147   [\\/]* | ?:[\\/]*)
18148   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18149   ;;
18150   *)
18151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18152 for as_dir in $PATH
18153 do
18154   IFS=$as_save_IFS
18155   test -z "$as_dir" && as_dir=.
18156   for ac_exec_ext in '' $ac_executable_extensions; do
18157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18158     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18160     break 2
18161   fi
18162 done
18163 done
18164
18165   test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
18166   ;;
18167 esac
18168 fi
18169 ETAGS=$ac_cv_path_ETAGS
18170
18171 if test -n "$ETAGS"; then
18172   echo "$as_me:$LINENO: result: $ETAGS" >&5
18173 echo "${ECHO_T}$ETAGS" >&6
18174 else
18175   echo "$as_me:$LINENO: result: no" >&5
18176 echo "${ECHO_T}no" >&6
18177 fi
18178
18179 etags_version=`$ETAGS --version 2>&1`
18180 case "$etags_version" in
18181         *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18182         *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18183         *) ETAGSFLAGS="" ;;
18184 esac
18185 ETAGSFLAGS=$ETAGSFLAGS
18186
18187 # Extract the first word of "python", so it can be a program name with args.
18188 set dummy python; ac_word=$2
18189 echo "$as_me:$LINENO: checking for $ac_word" >&5
18190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18191 if test "${ac_cv_path_PYTHON+set}" = set; then
18192   echo $ECHO_N "(cached) $ECHO_C" >&6
18193 else
18194   case $PYTHON in
18195   [\\/]* | ?:[\\/]*)
18196   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18197   ;;
18198   *)
18199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18200 for as_dir in $PATH
18201 do
18202   IFS=$as_save_IFS
18203   test -z "$as_dir" && as_dir=.
18204   for ac_exec_ext in '' $ac_executable_extensions; do
18205   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18206     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18208     break 2
18209   fi
18210 done
18211 done
18212
18213   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
18214   ;;
18215 esac
18216 fi
18217 PYTHON=$ac_cv_path_PYTHON
18218
18219 if test -n "$PYTHON"; then
18220   echo "$as_me:$LINENO: result: $PYTHON" >&5
18221 echo "${ECHO_T}$PYTHON" >&6
18222 else
18223   echo "$as_me:$LINENO: result: no" >&5
18224 echo "${ECHO_T}no" >&6
18225 fi
18226
18227 if test "$PYTHON" = "false"
18228 then
18229         { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18230 echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
18231 fi
18232 # Extract the first word of "qmtest", so it can be a program name with args.
18233 set dummy qmtest; ac_word=$2
18234 echo "$as_me:$LINENO: checking for $ac_word" >&5
18235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18236 if test "${ac_cv_path_QMTEST+set}" = set; then
18237   echo $ECHO_N "(cached) $ECHO_C" >&6
18238 else
18239   case $QMTEST in
18240   [\\/]* | ?:[\\/]*)
18241   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18242   ;;
18243   *)
18244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18245 for as_dir in $PATH
18246 do
18247   IFS=$as_save_IFS
18248   test -z "$as_dir" && as_dir=.
18249   for ac_exec_ext in '' $ac_executable_extensions; do
18250   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18251     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18253     break 2
18254   fi
18255 done
18256 done
18257
18258   test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
18259   ;;
18260 esac
18261 fi
18262 QMTEST=$ac_cv_path_QMTEST
18263
18264 if test -n "$QMTEST"; then
18265   echo "$as_me:$LINENO: result: $QMTEST" >&5
18266 echo "${ECHO_T}$QMTEST" >&6
18267 else
18268   echo "$as_me:$LINENO: result: no" >&5
18269 echo "${ECHO_T}no" >&6
18270 fi
18271
18272 if test "$QMTEST" = "false"
18273 then
18274         { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18275 echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
18276 fi
18277
18278 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18279 pymajor=`echo $pyversion | cut -d. -f1`
18280 pyminor=`echo $pyversion | cut -d. -f2`
18281
18282 if test "$pymajor" -ge "2"
18283 then
18284         if test "$pymajor" -eq "2"
18285         then
18286                 if test "$pyminor" -lt "2"
18287                 then
18288                         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18289 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18290                 fi
18291         fi
18292 else
18293         { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18294 echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
18295 fi
18296
18297
18298
18299
18300 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18301 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18302 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18303   echo $ECHO_N "(cached) $ECHO_C" >&6
18304 else
18305   ac_check_lib_save_LIBS=$LIBS
18306 LIBS="-lelf  $LIBS"
18307 cat >conftest.$ac_ext <<_ACEOF
18308 #line $LINENO "configure"
18309 /* confdefs.h.  */
18310 _ACEOF
18311 cat confdefs.h >>conftest.$ac_ext
18312 cat >>conftest.$ac_ext <<_ACEOF
18313 /* end confdefs.h.  */
18314
18315 /* Override any gcc2 internal prototype to avoid an error.  */
18316 #ifdef __cplusplus
18317 extern "C"
18318 #endif
18319 /* We use char because int might match the return type of a gcc2
18320    builtin and then its argument prototype would still apply.  */
18321 char elf_begin ();
18322 int
18323 main ()
18324 {
18325 elf_begin ();
18326   ;
18327   return 0;
18328 }
18329 _ACEOF
18330 rm -f conftest.$ac_objext conftest$ac_exeext
18331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18332   (eval $ac_link) 2>&5
18333   ac_status=$?
18334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335   (exit $ac_status); } &&
18336          { ac_try='test -s conftest$ac_exeext'
18337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18338   (eval $ac_try) 2>&5
18339   ac_status=$?
18340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341   (exit $ac_status); }; }; then
18342   ac_cv_lib_elf_elf_begin=yes
18343 else
18344   echo "$as_me: failed program was:" >&5
18345 sed 's/^/| /' conftest.$ac_ext >&5
18346
18347 ac_cv_lib_elf_elf_begin=no
18348 fi
18349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18350 LIBS=$ac_check_lib_save_LIBS
18351 fi
18352 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18353 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18354 if test $ac_cv_lib_elf_elf_begin = yes; then
18355   cat >>confdefs.h <<_ACEOF
18356 #define HAVE_LIBELF 1
18357 _ACEOF
18358
18359   LIBS="-lelf $LIBS"
18360
18361 fi
18362
18363
18364 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18365 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18366 if test "${ac_cv_search_dlopen+set}" = set; then
18367   echo $ECHO_N "(cached) $ECHO_C" >&6
18368 else
18369   ac_func_search_save_LIBS=$LIBS
18370 ac_cv_search_dlopen=no
18371 cat >conftest.$ac_ext <<_ACEOF
18372 #line $LINENO "configure"
18373 /* confdefs.h.  */
18374 _ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h.  */
18378
18379 /* Override any gcc2 internal prototype to avoid an error.  */
18380 #ifdef __cplusplus
18381 extern "C"
18382 #endif
18383 /* We use char because int might match the return type of a gcc2
18384    builtin and then its argument prototype would still apply.  */
18385 char dlopen ();
18386 int
18387 main ()
18388 {
18389 dlopen ();
18390   ;
18391   return 0;
18392 }
18393 _ACEOF
18394 rm -f conftest.$ac_objext conftest$ac_exeext
18395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18396   (eval $ac_link) 2>&5
18397   ac_status=$?
18398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399   (exit $ac_status); } &&
18400          { ac_try='test -s conftest$ac_exeext'
18401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18402   (eval $ac_try) 2>&5
18403   ac_status=$?
18404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405   (exit $ac_status); }; }; then
18406   ac_cv_search_dlopen="none required"
18407 else
18408   echo "$as_me: failed program was:" >&5
18409 sed 's/^/| /' conftest.$ac_ext >&5
18410
18411 fi
18412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18413 if test "$ac_cv_search_dlopen" = no; then
18414   for ac_lib in dl; do
18415     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18416     cat >conftest.$ac_ext <<_ACEOF
18417 #line $LINENO "configure"
18418 /* confdefs.h.  */
18419 _ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h.  */
18423
18424 /* Override any gcc2 internal prototype to avoid an error.  */
18425 #ifdef __cplusplus
18426 extern "C"
18427 #endif
18428 /* We use char because int might match the return type of a gcc2
18429    builtin and then its argument prototype would still apply.  */
18430 char dlopen ();
18431 int
18432 main ()
18433 {
18434 dlopen ();
18435   ;
18436   return 0;
18437 }
18438 _ACEOF
18439 rm -f conftest.$ac_objext conftest$ac_exeext
18440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18441   (eval $ac_link) 2>&5
18442   ac_status=$?
18443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444   (exit $ac_status); } &&
18445          { ac_try='test -s conftest$ac_exeext'
18446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18447   (eval $ac_try) 2>&5
18448   ac_status=$?
18449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450   (exit $ac_status); }; }; then
18451   ac_cv_search_dlopen="-l$ac_lib"
18452 break
18453 else
18454   echo "$as_me: failed program was:" >&5
18455 sed 's/^/| /' conftest.$ac_ext >&5
18456
18457 fi
18458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18459   done
18460 fi
18461 LIBS=$ac_func_search_save_LIBS
18462 fi
18463 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18464 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18465 if test "$ac_cv_search_dlopen" != no; then
18466   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18467
18468 cat >>confdefs.h <<\_ACEOF
18469 #define HAVE_DLOPEN 1
18470 _ACEOF
18471
18472 else
18473   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18474 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
18475 fi
18476
18477
18478 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18479 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18480 if test "${ac_cv_search_mallinfo+set}" = set; then
18481   echo $ECHO_N "(cached) $ECHO_C" >&6
18482 else
18483   ac_func_search_save_LIBS=$LIBS
18484 ac_cv_search_mallinfo=no
18485 cat >conftest.$ac_ext <<_ACEOF
18486 #line $LINENO "configure"
18487 /* confdefs.h.  */
18488 _ACEOF
18489 cat confdefs.h >>conftest.$ac_ext
18490 cat >>conftest.$ac_ext <<_ACEOF
18491 /* end confdefs.h.  */
18492
18493 /* Override any gcc2 internal prototype to avoid an error.  */
18494 #ifdef __cplusplus
18495 extern "C"
18496 #endif
18497 /* We use char because int might match the return type of a gcc2
18498    builtin and then its argument prototype would still apply.  */
18499 char mallinfo ();
18500 int
18501 main ()
18502 {
18503 mallinfo ();
18504   ;
18505   return 0;
18506 }
18507 _ACEOF
18508 rm -f conftest.$ac_objext conftest$ac_exeext
18509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18510   (eval $ac_link) 2>&5
18511   ac_status=$?
18512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513   (exit $ac_status); } &&
18514          { ac_try='test -s conftest$ac_exeext'
18515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18516   (eval $ac_try) 2>&5
18517   ac_status=$?
18518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519   (exit $ac_status); }; }; then
18520   ac_cv_search_mallinfo="none required"
18521 else
18522   echo "$as_me: failed program was:" >&5
18523 sed 's/^/| /' conftest.$ac_ext >&5
18524
18525 fi
18526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18527 if test "$ac_cv_search_mallinfo" = no; then
18528   for ac_lib in malloc; do
18529     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18530     cat >conftest.$ac_ext <<_ACEOF
18531 #line $LINENO "configure"
18532 /* confdefs.h.  */
18533 _ACEOF
18534 cat confdefs.h >>conftest.$ac_ext
18535 cat >>conftest.$ac_ext <<_ACEOF
18536 /* end confdefs.h.  */
18537
18538 /* Override any gcc2 internal prototype to avoid an error.  */
18539 #ifdef __cplusplus
18540 extern "C"
18541 #endif
18542 /* We use char because int might match the return type of a gcc2
18543    builtin and then its argument prototype would still apply.  */
18544 char mallinfo ();
18545 int
18546 main ()
18547 {
18548 mallinfo ();
18549   ;
18550   return 0;
18551 }
18552 _ACEOF
18553 rm -f conftest.$ac_objext conftest$ac_exeext
18554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18555   (eval $ac_link) 2>&5
18556   ac_status=$?
18557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558   (exit $ac_status); } &&
18559          { ac_try='test -s conftest$ac_exeext'
18560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18561   (eval $ac_try) 2>&5
18562   ac_status=$?
18563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564   (exit $ac_status); }; }; then
18565   ac_cv_search_mallinfo="-l$ac_lib"
18566 break
18567 else
18568   echo "$as_me: failed program was:" >&5
18569 sed 's/^/| /' conftest.$ac_ext >&5
18570
18571 fi
18572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18573   done
18574 fi
18575 LIBS=$ac_func_search_save_LIBS
18576 fi
18577 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18578 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18579 if test "$ac_cv_search_mallinfo" != no; then
18580   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18581
18582 cat >>confdefs.h <<\_ACEOF
18583 #define HAVE_MALLINFO 1
18584 _ACEOF
18585
18586 fi
18587
18588
18589 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18590 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18591 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18592   echo $ECHO_N "(cached) $ECHO_C" >&6
18593 else
18594   ac_func_search_save_LIBS=$LIBS
18595 ac_cv_search_pthread_mutex_lock=no
18596 cat >conftest.$ac_ext <<_ACEOF
18597 #line $LINENO "configure"
18598 /* confdefs.h.  */
18599 _ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h.  */
18603
18604 /* Override any gcc2 internal prototype to avoid an error.  */
18605 #ifdef __cplusplus
18606 extern "C"
18607 #endif
18608 /* We use char because int might match the return type of a gcc2
18609    builtin and then its argument prototype would still apply.  */
18610 char pthread_mutex_lock ();
18611 int
18612 main ()
18613 {
18614 pthread_mutex_lock ();
18615   ;
18616   return 0;
18617 }
18618 _ACEOF
18619 rm -f conftest.$ac_objext conftest$ac_exeext
18620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18621   (eval $ac_link) 2>&5
18622   ac_status=$?
18623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624   (exit $ac_status); } &&
18625          { ac_try='test -s conftest$ac_exeext'
18626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627   (eval $ac_try) 2>&5
18628   ac_status=$?
18629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630   (exit $ac_status); }; }; then
18631   ac_cv_search_pthread_mutex_lock="none required"
18632 else
18633   echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18635
18636 fi
18637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18638 if test "$ac_cv_search_pthread_mutex_lock" = no; then
18639   for ac_lib in pthread; do
18640     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18641     cat >conftest.$ac_ext <<_ACEOF
18642 #line $LINENO "configure"
18643 /* confdefs.h.  */
18644 _ACEOF
18645 cat confdefs.h >>conftest.$ac_ext
18646 cat >>conftest.$ac_ext <<_ACEOF
18647 /* end confdefs.h.  */
18648
18649 /* Override any gcc2 internal prototype to avoid an error.  */
18650 #ifdef __cplusplus
18651 extern "C"
18652 #endif
18653 /* We use char because int might match the return type of a gcc2
18654    builtin and then its argument prototype would still apply.  */
18655 char pthread_mutex_lock ();
18656 int
18657 main ()
18658 {
18659 pthread_mutex_lock ();
18660   ;
18661   return 0;
18662 }
18663 _ACEOF
18664 rm -f conftest.$ac_objext conftest$ac_exeext
18665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18666   (eval $ac_link) 2>&5
18667   ac_status=$?
18668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669   (exit $ac_status); } &&
18670          { ac_try='test -s conftest$ac_exeext'
18671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672   (eval $ac_try) 2>&5
18673   ac_status=$?
18674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675   (exit $ac_status); }; }; then
18676   ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18677 break
18678 else
18679   echo "$as_me: failed program was:" >&5
18680 sed 's/^/| /' conftest.$ac_ext >&5
18681
18682 fi
18683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18684   done
18685 fi
18686 LIBS=$ac_func_search_save_LIBS
18687 fi
18688 echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18689 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18690 if test "$ac_cv_search_pthread_mutex_lock" != no; then
18691   test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
18692   HAVE_PTHREAD_MUTEX_LOCK=1
18693 else
18694   HAVE_PTHREAD_MUTEX_LOCK=0
18695 fi
18696
18697
18698
18699 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18700 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18701 if test "${ac_cv_header_stdc+set}" = set; then
18702   echo $ECHO_N "(cached) $ECHO_C" >&6
18703 else
18704   cat >conftest.$ac_ext <<_ACEOF
18705 #line $LINENO "configure"
18706 /* confdefs.h.  */
18707 _ACEOF
18708 cat confdefs.h >>conftest.$ac_ext
18709 cat >>conftest.$ac_ext <<_ACEOF
18710 /* end confdefs.h.  */
18711 #include <stdlib.h>
18712 #include <stdarg.h>
18713 #include <string.h>
18714 #include <float.h>
18715
18716 int
18717 main ()
18718 {
18719
18720   ;
18721   return 0;
18722 }
18723 _ACEOF
18724 rm -f conftest.$ac_objext
18725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18726   (eval $ac_compile) 2>&5
18727   ac_status=$?
18728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729   (exit $ac_status); } &&
18730          { ac_try='test -s conftest.$ac_objext'
18731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18732   (eval $ac_try) 2>&5
18733   ac_status=$?
18734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735   (exit $ac_status); }; }; then
18736   ac_cv_header_stdc=yes
18737 else
18738   echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.$ac_ext >&5
18740
18741 ac_cv_header_stdc=no
18742 fi
18743 rm -f conftest.$ac_objext conftest.$ac_ext
18744
18745 if test $ac_cv_header_stdc = yes; then
18746   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18747   cat >conftest.$ac_ext <<_ACEOF
18748 #line $LINENO "configure"
18749 /* confdefs.h.  */
18750 _ACEOF
18751 cat confdefs.h >>conftest.$ac_ext
18752 cat >>conftest.$ac_ext <<_ACEOF
18753 /* end confdefs.h.  */
18754 #include <string.h>
18755
18756 _ACEOF
18757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18758   $EGREP "memchr" >/dev/null 2>&1; then
18759   :
18760 else
18761   ac_cv_header_stdc=no
18762 fi
18763 rm -f conftest*
18764
18765 fi
18766
18767 if test $ac_cv_header_stdc = yes; then
18768   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18769   cat >conftest.$ac_ext <<_ACEOF
18770 #line $LINENO "configure"
18771 /* confdefs.h.  */
18772 _ACEOF
18773 cat confdefs.h >>conftest.$ac_ext
18774 cat >>conftest.$ac_ext <<_ACEOF
18775 /* end confdefs.h.  */
18776 #include <stdlib.h>
18777
18778 _ACEOF
18779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18780   $EGREP "free" >/dev/null 2>&1; then
18781   :
18782 else
18783   ac_cv_header_stdc=no
18784 fi
18785 rm -f conftest*
18786
18787 fi
18788
18789 if test $ac_cv_header_stdc = yes; then
18790   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18791   if test "$cross_compiling" = yes; then
18792   :
18793 else
18794   cat >conftest.$ac_ext <<_ACEOF
18795 #line $LINENO "configure"
18796 /* confdefs.h.  */
18797 _ACEOF
18798 cat confdefs.h >>conftest.$ac_ext
18799 cat >>conftest.$ac_ext <<_ACEOF
18800 /* end confdefs.h.  */
18801 #include <ctype.h>
18802 #if ((' ' & 0x0FF) == 0x020)
18803 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18804 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18805 #else
18806 # define ISLOWER(c) \
18807                    (('a' <= (c) && (c) <= 'i') \
18808                      || ('j' <= (c) && (c) <= 'r') \
18809                      || ('s' <= (c) && (c) <= 'z'))
18810 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18811 #endif
18812
18813 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18814 int
18815 main ()
18816 {
18817   int i;
18818   for (i = 0; i < 256; i++)
18819     if (XOR (islower (i), ISLOWER (i))
18820         || toupper (i) != TOUPPER (i))
18821       exit(2);
18822   exit (0);
18823 }
18824 _ACEOF
18825 rm -f conftest$ac_exeext
18826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18827   (eval $ac_link) 2>&5
18828   ac_status=$?
18829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832   (eval $ac_try) 2>&5
18833   ac_status=$?
18834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835   (exit $ac_status); }; }; then
18836   :
18837 else
18838   echo "$as_me: program exited with status $ac_status" >&5
18839 echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18841
18842 ( exit $ac_status )
18843 ac_cv_header_stdc=no
18844 fi
18845 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18846 fi
18847 fi
18848 fi
18849 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18850 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18851 if test $ac_cv_header_stdc = yes; then
18852
18853 cat >>confdefs.h <<\_ACEOF
18854 #define STDC_HEADERS 1
18855 _ACEOF
18856
18857 fi
18858
18859 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18860 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18861 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18862   echo $ECHO_N "(cached) $ECHO_C" >&6
18863 else
18864   cat >conftest.$ac_ext <<_ACEOF
18865 #line $LINENO "configure"
18866 /* confdefs.h.  */
18867 _ACEOF
18868 cat confdefs.h >>conftest.$ac_ext
18869 cat >>conftest.$ac_ext <<_ACEOF
18870 /* end confdefs.h.  */
18871 #include <sys/types.h>
18872 #include <sys/wait.h>
18873 #ifndef WEXITSTATUS
18874 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18875 #endif
18876 #ifndef WIFEXITED
18877 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18878 #endif
18879
18880 int
18881 main ()
18882 {
18883   int s;
18884   wait (&s);
18885   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18886   ;
18887   return 0;
18888 }
18889 _ACEOF
18890 rm -f conftest.$ac_objext
18891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18892   (eval $ac_compile) 2>&5
18893   ac_status=$?
18894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895   (exit $ac_status); } &&
18896          { ac_try='test -s conftest.$ac_objext'
18897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18898   (eval $ac_try) 2>&5
18899   ac_status=$?
18900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901   (exit $ac_status); }; }; then
18902   ac_cv_header_sys_wait_h=yes
18903 else
18904   echo "$as_me: failed program was:" >&5
18905 sed 's/^/| /' conftest.$ac_ext >&5
18906
18907 ac_cv_header_sys_wait_h=no
18908 fi
18909 rm -f conftest.$ac_objext conftest.$ac_ext
18910 fi
18911 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18912 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18913 if test $ac_cv_header_sys_wait_h = yes; then
18914
18915 cat >>confdefs.h <<\_ACEOF
18916 #define HAVE_SYS_WAIT_H 1
18917 _ACEOF
18918
18919 fi
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933 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
18934 do
18935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18937   echo "$as_me:$LINENO: checking for $ac_header" >&5
18938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18940   echo $ECHO_N "(cached) $ECHO_C" >&6
18941 fi
18942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18943 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18944 else
18945   # Is the header compilable?
18946 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18948 cat >conftest.$ac_ext <<_ACEOF
18949 #line $LINENO "configure"
18950 /* confdefs.h.  */
18951 _ACEOF
18952 cat confdefs.h >>conftest.$ac_ext
18953 cat >>conftest.$ac_ext <<_ACEOF
18954 /* end confdefs.h.  */
18955 $ac_includes_default
18956 #include <$ac_header>
18957 _ACEOF
18958 rm -f conftest.$ac_objext
18959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18960   (eval $ac_compile) 2>&5
18961   ac_status=$?
18962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963   (exit $ac_status); } &&
18964          { ac_try='test -s conftest.$ac_objext'
18965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18966   (eval $ac_try) 2>&5
18967   ac_status=$?
18968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969   (exit $ac_status); }; }; then
18970   ac_header_compiler=yes
18971 else
18972   echo "$as_me: failed program was:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18974
18975 ac_header_compiler=no
18976 fi
18977 rm -f conftest.$ac_objext conftest.$ac_ext
18978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18979 echo "${ECHO_T}$ac_header_compiler" >&6
18980
18981 # Is the header present?
18982 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18984 cat >conftest.$ac_ext <<_ACEOF
18985 #line $LINENO "configure"
18986 /* confdefs.h.  */
18987 _ACEOF
18988 cat confdefs.h >>conftest.$ac_ext
18989 cat >>conftest.$ac_ext <<_ACEOF
18990 /* end confdefs.h.  */
18991 #include <$ac_header>
18992 _ACEOF
18993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18994   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18995   ac_status=$?
18996   grep -v '^ *+' conftest.er1 >conftest.err
18997   rm -f conftest.er1
18998   cat conftest.err >&5
18999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000   (exit $ac_status); } >/dev/null; then
19001   if test -s conftest.err; then
19002     ac_cpp_err=$ac_c_preproc_warn_flag
19003   else
19004     ac_cpp_err=
19005   fi
19006 else
19007   ac_cpp_err=yes
19008 fi
19009 if test -z "$ac_cpp_err"; then
19010   ac_header_preproc=yes
19011 else
19012   echo "$as_me: failed program was:" >&5
19013 sed 's/^/| /' conftest.$ac_ext >&5
19014
19015   ac_header_preproc=no
19016 fi
19017 rm -f conftest.err conftest.$ac_ext
19018 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19019 echo "${ECHO_T}$ac_header_preproc" >&6
19020
19021 # So?  What about this header?
19022 case $ac_header_compiler:$ac_header_preproc in
19023   yes:no )
19024     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19028     (
19029       cat <<\_ASBOX
19030 ## ------------------------------------ ##
19031 ## Report this to bug-autoconf@gnu.org. ##
19032 ## ------------------------------------ ##
19033 _ASBOX
19034     ) |
19035       sed "s/^/$as_me: WARNING:     /" >&2
19036     ;;
19037   no:yes )
19038     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19040     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19044     (
19045       cat <<\_ASBOX
19046 ## ------------------------------------ ##
19047 ## Report this to bug-autoconf@gnu.org. ##
19048 ## ------------------------------------ ##
19049 _ASBOX
19050     ) |
19051       sed "s/^/$as_me: WARNING:     /" >&2
19052     ;;
19053 esac
19054 echo "$as_me:$LINENO: checking for $ac_header" >&5
19055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19057   echo $ECHO_N "(cached) $ECHO_C" >&6
19058 else
19059   eval "$as_ac_Header=$ac_header_preproc"
19060 fi
19061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19063
19064 fi
19065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19066   cat >>confdefs.h <<_ACEOF
19067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19068 _ACEOF
19069
19070 fi
19071
19072 done
19073
19074
19075 if test "${ac_cv_header_sys_types_h+set}" = set; then
19076   echo "$as_me:$LINENO: checking for sys/types.h" >&5
19077 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19078 if test "${ac_cv_header_sys_types_h+set}" = set; then
19079   echo $ECHO_N "(cached) $ECHO_C" >&6
19080 fi
19081 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19082 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19083 else
19084   # Is the header compilable?
19085 echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19086 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19087 cat >conftest.$ac_ext <<_ACEOF
19088 #line $LINENO "configure"
19089 /* confdefs.h.  */
19090 _ACEOF
19091 cat confdefs.h >>conftest.$ac_ext
19092 cat >>conftest.$ac_ext <<_ACEOF
19093 /* end confdefs.h.  */
19094 $ac_includes_default
19095 #include <sys/types.h>
19096 _ACEOF
19097 rm -f conftest.$ac_objext
19098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19099   (eval $ac_compile) 2>&5
19100   ac_status=$?
19101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102   (exit $ac_status); } &&
19103          { ac_try='test -s conftest.$ac_objext'
19104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19105   (eval $ac_try) 2>&5
19106   ac_status=$?
19107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108   (exit $ac_status); }; }; then
19109   ac_header_compiler=yes
19110 else
19111   echo "$as_me: failed program was:" >&5
19112 sed 's/^/| /' conftest.$ac_ext >&5
19113
19114 ac_header_compiler=no
19115 fi
19116 rm -f conftest.$ac_objext conftest.$ac_ext
19117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19118 echo "${ECHO_T}$ac_header_compiler" >&6
19119
19120 # Is the header present?
19121 echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19122 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19123 cat >conftest.$ac_ext <<_ACEOF
19124 #line $LINENO "configure"
19125 /* confdefs.h.  */
19126 _ACEOF
19127 cat confdefs.h >>conftest.$ac_ext
19128 cat >>conftest.$ac_ext <<_ACEOF
19129 /* end confdefs.h.  */
19130 #include <sys/types.h>
19131 _ACEOF
19132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19133   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19134   ac_status=$?
19135   grep -v '^ *+' conftest.er1 >conftest.err
19136   rm -f conftest.er1
19137   cat conftest.err >&5
19138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139   (exit $ac_status); } >/dev/null; then
19140   if test -s conftest.err; then
19141     ac_cpp_err=$ac_c_preproc_warn_flag
19142   else
19143     ac_cpp_err=
19144   fi
19145 else
19146   ac_cpp_err=yes
19147 fi
19148 if test -z "$ac_cpp_err"; then
19149   ac_header_preproc=yes
19150 else
19151   echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19153
19154   ac_header_preproc=no
19155 fi
19156 rm -f conftest.err conftest.$ac_ext
19157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19158 echo "${ECHO_T}$ac_header_preproc" >&6
19159
19160 # So?  What about this header?
19161 case $ac_header_compiler:$ac_header_preproc in
19162   yes:no )
19163     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19164 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19165     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19166 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19167     (
19168       cat <<\_ASBOX
19169 ## ------------------------------------ ##
19170 ## Report this to bug-autoconf@gnu.org. ##
19171 ## ------------------------------------ ##
19172 _ASBOX
19173     ) |
19174       sed "s/^/$as_me: WARNING:     /" >&2
19175     ;;
19176   no:yes )
19177     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19178 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19179     { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19180 echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19181     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19182 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19183     (
19184       cat <<\_ASBOX
19185 ## ------------------------------------ ##
19186 ## Report this to bug-autoconf@gnu.org. ##
19187 ## ------------------------------------ ##
19188 _ASBOX
19189     ) |
19190       sed "s/^/$as_me: WARNING:     /" >&2
19191     ;;
19192 esac
19193 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19194 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19195 if test "${ac_cv_header_sys_types_h+set}" = set; then
19196   echo $ECHO_N "(cached) $ECHO_C" >&6
19197 else
19198   ac_cv_header_sys_types_h=$ac_header_preproc
19199 fi
19200 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19201 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19202
19203 fi
19204 if test $ac_cv_header_sys_types_h = yes; then
19205   INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19206 else
19207   INCLUDE_SYS_TYPES_H=''
19208 fi
19209
19210
19211
19212 if test "${ac_cv_header_inttypes_h+set}" = set; then
19213   echo "$as_me:$LINENO: checking for inttypes.h" >&5
19214 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19215 if test "${ac_cv_header_inttypes_h+set}" = set; then
19216   echo $ECHO_N "(cached) $ECHO_C" >&6
19217 fi
19218 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19219 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19220 else
19221   # Is the header compilable?
19222 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19223 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19224 cat >conftest.$ac_ext <<_ACEOF
19225 #line $LINENO "configure"
19226 /* confdefs.h.  */
19227 _ACEOF
19228 cat confdefs.h >>conftest.$ac_ext
19229 cat >>conftest.$ac_ext <<_ACEOF
19230 /* end confdefs.h.  */
19231 $ac_includes_default
19232 #include <inttypes.h>
19233 _ACEOF
19234 rm -f conftest.$ac_objext
19235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19236   (eval $ac_compile) 2>&5
19237   ac_status=$?
19238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239   (exit $ac_status); } &&
19240          { ac_try='test -s conftest.$ac_objext'
19241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242   (eval $ac_try) 2>&5
19243   ac_status=$?
19244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245   (exit $ac_status); }; }; then
19246   ac_header_compiler=yes
19247 else
19248   echo "$as_me: failed program was:" >&5
19249 sed 's/^/| /' conftest.$ac_ext >&5
19250
19251 ac_header_compiler=no
19252 fi
19253 rm -f conftest.$ac_objext conftest.$ac_ext
19254 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19255 echo "${ECHO_T}$ac_header_compiler" >&6
19256
19257 # Is the header present?
19258 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19259 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19260 cat >conftest.$ac_ext <<_ACEOF
19261 #line $LINENO "configure"
19262 /* confdefs.h.  */
19263 _ACEOF
19264 cat confdefs.h >>conftest.$ac_ext
19265 cat >>conftest.$ac_ext <<_ACEOF
19266 /* end confdefs.h.  */
19267 #include <inttypes.h>
19268 _ACEOF
19269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19270   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19271   ac_status=$?
19272   grep -v '^ *+' conftest.er1 >conftest.err
19273   rm -f conftest.er1
19274   cat conftest.err >&5
19275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276   (exit $ac_status); } >/dev/null; then
19277   if test -s conftest.err; then
19278     ac_cpp_err=$ac_c_preproc_warn_flag
19279   else
19280     ac_cpp_err=
19281   fi
19282 else
19283   ac_cpp_err=yes
19284 fi
19285 if test -z "$ac_cpp_err"; then
19286   ac_header_preproc=yes
19287 else
19288   echo "$as_me: failed program was:" >&5
19289 sed 's/^/| /' conftest.$ac_ext >&5
19290
19291   ac_header_preproc=no
19292 fi
19293 rm -f conftest.err conftest.$ac_ext
19294 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19295 echo "${ECHO_T}$ac_header_preproc" >&6
19296
19297 # So?  What about this header?
19298 case $ac_header_compiler:$ac_header_preproc in
19299   yes:no )
19300     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19301 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19302     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19303 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19304     (
19305       cat <<\_ASBOX
19306 ## ------------------------------------ ##
19307 ## Report this to bug-autoconf@gnu.org. ##
19308 ## ------------------------------------ ##
19309 _ASBOX
19310     ) |
19311       sed "s/^/$as_me: WARNING:     /" >&2
19312     ;;
19313   no:yes )
19314     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19315 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19316     { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19317 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19318     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19319 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19320     (
19321       cat <<\_ASBOX
19322 ## ------------------------------------ ##
19323 ## Report this to bug-autoconf@gnu.org. ##
19324 ## ------------------------------------ ##
19325 _ASBOX
19326     ) |
19327       sed "s/^/$as_me: WARNING:     /" >&2
19328     ;;
19329 esac
19330 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19331 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19332 if test "${ac_cv_header_inttypes_h+set}" = set; then
19333   echo $ECHO_N "(cached) $ECHO_C" >&6
19334 else
19335   ac_cv_header_inttypes_h=$ac_header_preproc
19336 fi
19337 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19338 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19339
19340 fi
19341 if test $ac_cv_header_inttypes_h = yes; then
19342   INCLUDE_INTTYPES_H='#include <inttypes.h>'
19343 else
19344   INCLUDE_INTTYPES_H=''
19345 fi
19346
19347
19348
19349 if test "${ac_cv_header_stdint_h+set}" = set; then
19350   echo "$as_me:$LINENO: checking for stdint.h" >&5
19351 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19352 if test "${ac_cv_header_stdint_h+set}" = set; then
19353   echo $ECHO_N "(cached) $ECHO_C" >&6
19354 fi
19355 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19356 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
19357 else
19358   # Is the header compilable?
19359 echo "$as_me:$LINENO: checking stdint.h usability" >&5
19360 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
19361 cat >conftest.$ac_ext <<_ACEOF
19362 #line $LINENO "configure"
19363 /* confdefs.h.  */
19364 _ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h.  */
19368 $ac_includes_default
19369 #include <stdint.h>
19370 _ACEOF
19371 rm -f conftest.$ac_objext
19372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19373   (eval $ac_compile) 2>&5
19374   ac_status=$?
19375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376   (exit $ac_status); } &&
19377          { ac_try='test -s conftest.$ac_objext'
19378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379   (eval $ac_try) 2>&5
19380   ac_status=$?
19381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382   (exit $ac_status); }; }; then
19383   ac_header_compiler=yes
19384 else
19385   echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19387
19388 ac_header_compiler=no
19389 fi
19390 rm -f conftest.$ac_objext conftest.$ac_ext
19391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19392 echo "${ECHO_T}$ac_header_compiler" >&6
19393
19394 # Is the header present?
19395 echo "$as_me:$LINENO: checking stdint.h presence" >&5
19396 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
19397 cat >conftest.$ac_ext <<_ACEOF
19398 #line $LINENO "configure"
19399 /* confdefs.h.  */
19400 _ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h.  */
19404 #include <stdint.h>
19405 _ACEOF
19406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19407   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19408   ac_status=$?
19409   grep -v '^ *+' conftest.er1 >conftest.err
19410   rm -f conftest.er1
19411   cat conftest.err >&5
19412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413   (exit $ac_status); } >/dev/null; then
19414   if test -s conftest.err; then
19415     ac_cpp_err=$ac_c_preproc_warn_flag
19416   else
19417     ac_cpp_err=
19418   fi
19419 else
19420   ac_cpp_err=yes
19421 fi
19422 if test -z "$ac_cpp_err"; then
19423   ac_header_preproc=yes
19424 else
19425   echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19427
19428   ac_header_preproc=no
19429 fi
19430 rm -f conftest.err conftest.$ac_ext
19431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19432 echo "${ECHO_T}$ac_header_preproc" >&6
19433
19434 # So?  What about this header?
19435 case $ac_header_compiler:$ac_header_preproc in
19436   yes:no )
19437     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
19438 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19439     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
19440 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
19441     (
19442       cat <<\_ASBOX
19443 ## ------------------------------------ ##
19444 ## Report this to bug-autoconf@gnu.org. ##
19445 ## ------------------------------------ ##
19446 _ASBOX
19447     ) |
19448       sed "s/^/$as_me: WARNING:     /" >&2
19449     ;;
19450   no:yes )
19451     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
19452 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
19453     { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
19454 echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
19455     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
19456 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
19457     (
19458       cat <<\_ASBOX
19459 ## ------------------------------------ ##
19460 ## Report this to bug-autoconf@gnu.org. ##
19461 ## ------------------------------------ ##
19462 _ASBOX
19463     ) |
19464       sed "s/^/$as_me: WARNING:     /" >&2
19465     ;;
19466 esac
19467 echo "$as_me:$LINENO: checking for stdint.h" >&5
19468 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19469 if test "${ac_cv_header_stdint_h+set}" = set; then
19470   echo $ECHO_N "(cached) $ECHO_C" >&6
19471 else
19472   ac_cv_header_stdint_h=$ac_header_preproc
19473 fi
19474 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19475 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
19476
19477 fi
19478 if test $ac_cv_header_stdint_h = yes; then
19479   INCLUDE_STDINT_H='#include <stdint.h>'
19480 else
19481   INCLUDE_STDINT_H=''
19482 fi
19483
19484
19485
19486
19487
19488 echo "$as_me:$LINENO: checking for pid_t" >&5
19489 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19490 if test "${ac_cv_type_pid_t+set}" = set; then
19491   echo $ECHO_N "(cached) $ECHO_C" >&6
19492 else
19493   cat >conftest.$ac_ext <<_ACEOF
19494 #line $LINENO "configure"
19495 /* confdefs.h.  */
19496 _ACEOF
19497 cat confdefs.h >>conftest.$ac_ext
19498 cat >>conftest.$ac_ext <<_ACEOF
19499 /* end confdefs.h.  */
19500 $ac_includes_default
19501 int
19502 main ()
19503 {
19504 if ((pid_t *) 0)
19505   return 0;
19506 if (sizeof (pid_t))
19507   return 0;
19508   ;
19509   return 0;
19510 }
19511 _ACEOF
19512 rm -f conftest.$ac_objext
19513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19514   (eval $ac_compile) 2>&5
19515   ac_status=$?
19516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517   (exit $ac_status); } &&
19518          { ac_try='test -s conftest.$ac_objext'
19519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520   (eval $ac_try) 2>&5
19521   ac_status=$?
19522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523   (exit $ac_status); }; }; then
19524   ac_cv_type_pid_t=yes
19525 else
19526   echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19528
19529 ac_cv_type_pid_t=no
19530 fi
19531 rm -f conftest.$ac_objext conftest.$ac_ext
19532 fi
19533 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19534 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19535 if test $ac_cv_type_pid_t = yes; then
19536   :
19537 else
19538
19539 cat >>confdefs.h <<_ACEOF
19540 #define pid_t int
19541 _ACEOF
19542
19543 fi
19544
19545 echo "$as_me:$LINENO: checking for size_t" >&5
19546 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19547 if test "${ac_cv_type_size_t+set}" = set; then
19548   echo $ECHO_N "(cached) $ECHO_C" >&6
19549 else
19550   cat >conftest.$ac_ext <<_ACEOF
19551 #line $LINENO "configure"
19552 /* confdefs.h.  */
19553 _ACEOF
19554 cat confdefs.h >>conftest.$ac_ext
19555 cat >>conftest.$ac_ext <<_ACEOF
19556 /* end confdefs.h.  */
19557 $ac_includes_default
19558 int
19559 main ()
19560 {
19561 if ((size_t *) 0)
19562   return 0;
19563 if (sizeof (size_t))
19564   return 0;
19565   ;
19566   return 0;
19567 }
19568 _ACEOF
19569 rm -f conftest.$ac_objext
19570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19571   (eval $ac_compile) 2>&5
19572   ac_status=$?
19573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574   (exit $ac_status); } &&
19575          { ac_try='test -s conftest.$ac_objext'
19576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577   (eval $ac_try) 2>&5
19578   ac_status=$?
19579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580   (exit $ac_status); }; }; then
19581   ac_cv_type_size_t=yes
19582 else
19583   echo "$as_me: failed program was:" >&5
19584 sed 's/^/| /' conftest.$ac_ext >&5
19585
19586 ac_cv_type_size_t=no
19587 fi
19588 rm -f conftest.$ac_objext conftest.$ac_ext
19589 fi
19590 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19591 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19592 if test $ac_cv_type_size_t = yes; then
19593   :
19594 else
19595
19596 cat >>confdefs.h <<_ACEOF
19597 #define size_t unsigned
19598 _ACEOF
19599
19600 fi
19601
19602 echo "$as_me:$LINENO: checking for int64_t" >&5
19603 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19604 if test "${ac_cv_type_int64_t+set}" = set; then
19605   echo $ECHO_N "(cached) $ECHO_C" >&6
19606 else
19607   cat >conftest.$ac_ext <<_ACEOF
19608 #line $LINENO "configure"
19609 /* confdefs.h.  */
19610 _ACEOF
19611 cat confdefs.h >>conftest.$ac_ext
19612 cat >>conftest.$ac_ext <<_ACEOF
19613 /* end confdefs.h.  */
19614 $ac_includes_default
19615 int
19616 main ()
19617 {
19618 if ((int64_t *) 0)
19619   return 0;
19620 if (sizeof (int64_t))
19621   return 0;
19622   ;
19623   return 0;
19624 }
19625 _ACEOF
19626 rm -f conftest.$ac_objext
19627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19628   (eval $ac_compile) 2>&5
19629   ac_status=$?
19630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631   (exit $ac_status); } &&
19632          { ac_try='test -s conftest.$ac_objext'
19633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634   (eval $ac_try) 2>&5
19635   ac_status=$?
19636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637   (exit $ac_status); }; }; then
19638   ac_cv_type_int64_t=yes
19639 else
19640   echo "$as_me: failed program was:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19642
19643 ac_cv_type_int64_t=no
19644 fi
19645 rm -f conftest.$ac_objext conftest.$ac_ext
19646 fi
19647 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19648 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19649 if test $ac_cv_type_int64_t = yes; then
19650
19651 cat >>confdefs.h <<_ACEOF
19652 #define HAVE_INT64_T 1
19653 _ACEOF
19654
19655
19656 else
19657   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19658 echo "$as_me: error: Type int64_t required but not found" >&2;}
19659    { (exit 1); exit 1; }; }
19660 fi
19661
19662 echo "$as_me:$LINENO: checking for uint64_t" >&5
19663 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19664 if test "${ac_cv_type_uint64_t+set}" = set; then
19665   echo $ECHO_N "(cached) $ECHO_C" >&6
19666 else
19667   cat >conftest.$ac_ext <<_ACEOF
19668 #line $LINENO "configure"
19669 /* confdefs.h.  */
19670 _ACEOF
19671 cat confdefs.h >>conftest.$ac_ext
19672 cat >>conftest.$ac_ext <<_ACEOF
19673 /* end confdefs.h.  */
19674 $ac_includes_default
19675 int
19676 main ()
19677 {
19678 if ((uint64_t *) 0)
19679   return 0;
19680 if (sizeof (uint64_t))
19681   return 0;
19682   ;
19683   return 0;
19684 }
19685 _ACEOF
19686 rm -f conftest.$ac_objext
19687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19688   (eval $ac_compile) 2>&5
19689   ac_status=$?
19690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691   (exit $ac_status); } &&
19692          { ac_try='test -s conftest.$ac_objext'
19693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694   (eval $ac_try) 2>&5
19695   ac_status=$?
19696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697   (exit $ac_status); }; }; then
19698   ac_cv_type_uint64_t=yes
19699 else
19700   echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.$ac_ext >&5
19702
19703 ac_cv_type_uint64_t=no
19704 fi
19705 rm -f conftest.$ac_objext conftest.$ac_ext
19706 fi
19707 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19708 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19709 if test $ac_cv_type_uint64_t = yes; then
19710
19711 cat >>confdefs.h <<_ACEOF
19712 #define HAVE_UINT64_T 1
19713 _ACEOF
19714
19715
19716 else
19717   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19718 echo "$as_me: error: Type uint64_t required but not found" >&2;}
19719    { (exit 1); exit 1; }; }
19720 fi
19721
19722 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19723 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19724 if test "${ac_cv_header_time+set}" = set; then
19725   echo $ECHO_N "(cached) $ECHO_C" >&6
19726 else
19727   cat >conftest.$ac_ext <<_ACEOF
19728 #line $LINENO "configure"
19729 /* confdefs.h.  */
19730 _ACEOF
19731 cat confdefs.h >>conftest.$ac_ext
19732 cat >>conftest.$ac_ext <<_ACEOF
19733 /* end confdefs.h.  */
19734 #include <sys/types.h>
19735 #include <sys/time.h>
19736 #include <time.h>
19737
19738 int
19739 main ()
19740 {
19741 if ((struct tm *) 0)
19742 return 0;
19743   ;
19744   return 0;
19745 }
19746 _ACEOF
19747 rm -f conftest.$ac_objext
19748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19749   (eval $ac_compile) 2>&5
19750   ac_status=$?
19751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752   (exit $ac_status); } &&
19753          { ac_try='test -s conftest.$ac_objext'
19754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755   (eval $ac_try) 2>&5
19756   ac_status=$?
19757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758   (exit $ac_status); }; }; then
19759   ac_cv_header_time=yes
19760 else
19761   echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19763
19764 ac_cv_header_time=no
19765 fi
19766 rm -f conftest.$ac_objext conftest.$ac_ext
19767 fi
19768 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19769 echo "${ECHO_T}$ac_cv_header_time" >&6
19770 if test $ac_cv_header_time = yes; then
19771
19772 cat >>confdefs.h <<\_ACEOF
19773 #define TIME_WITH_SYS_TIME 1
19774 _ACEOF
19775
19776 fi
19777
19778 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19779 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19780 if test "${ac_cv_struct_tm+set}" = set; then
19781   echo $ECHO_N "(cached) $ECHO_C" >&6
19782 else
19783   cat >conftest.$ac_ext <<_ACEOF
19784 #line $LINENO "configure"
19785 /* confdefs.h.  */
19786 _ACEOF
19787 cat confdefs.h >>conftest.$ac_ext
19788 cat >>conftest.$ac_ext <<_ACEOF
19789 /* end confdefs.h.  */
19790 #include <sys/types.h>
19791 #include <time.h>
19792
19793 int
19794 main ()
19795 {
19796 struct tm *tp; tp->tm_sec;
19797   ;
19798   return 0;
19799 }
19800 _ACEOF
19801 rm -f conftest.$ac_objext
19802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19803   (eval $ac_compile) 2>&5
19804   ac_status=$?
19805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806   (exit $ac_status); } &&
19807          { ac_try='test -s conftest.$ac_objext'
19808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809   (eval $ac_try) 2>&5
19810   ac_status=$?
19811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812   (exit $ac_status); }; }; then
19813   ac_cv_struct_tm=time.h
19814 else
19815   echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19817
19818 ac_cv_struct_tm=sys/time.h
19819 fi
19820 rm -f conftest.$ac_objext conftest.$ac_ext
19821 fi
19822 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19823 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19824 if test $ac_cv_struct_tm = sys/time.h; then
19825
19826 cat >>confdefs.h <<\_ACEOF
19827 #define TM_IN_SYS_TIME 1
19828 _ACEOF
19829
19830 fi
19831
19832
19833
19834         echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
19835 echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
19836
19837
19838         ac_ext=c
19839 ac_cpp='$CPP $CPPFLAGS'
19840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19843
19844         if test "$cross_compiling" = yes; then
19845   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19846 See \`config.log' for more details." >&5
19847 echo "$as_me: error: cannot run test program while cross compiling
19848 See \`config.log' for more details." >&2;}
19849    { (exit 1); exit 1; }; }
19850 else
19851   cat >conftest.$ac_ext <<_ACEOF
19852 #line $LINENO "configure"
19853 /* confdefs.h.  */
19854 _ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h.  */
19858 #include <stdio.h>
19859                                  #include <stdlib.h>
19860 int
19861 main ()
19862 {
19863
19864                                  volatile double A, B;
19865                                  char Buffer[100];
19866                                  A = 1;
19867                                  A /= 10.0;
19868                                  sprintf(Buffer, "%a", A);
19869                                  B = atof(Buffer);
19870                                  if (A != B)
19871                                                          return (1);
19872                                  if (A != 0x1.999999999999ap-4)
19873                                                          return (1);
19874                                  return (0);
19875   ;
19876   return 0;
19877 }
19878 _ACEOF
19879 rm -f conftest$ac_exeext
19880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19881   (eval $ac_link) 2>&5
19882   ac_status=$?
19883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19886   (eval $ac_try) 2>&5
19887   ac_status=$?
19888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889   (exit $ac_status); }; }; then
19890   ac_c_printf_a=yes
19891 else
19892   echo "$as_me: program exited with status $ac_status" >&5
19893 echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19895
19896 ( exit $ac_status )
19897 ac_c_printf_a=no
19898 fi
19899 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19900 fi
19901         ac_ext=c
19902 ac_cpp='$CPP $CPPFLAGS'
19903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19906
19907         echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
19908 echo "${ECHO_T}$ac_c_printf_a" >&6
19909         if test "$ac_c_printf_a" = "yes"; then
19910
19911 cat >>confdefs.h <<\_ACEOF
19912 #define HAVE_PRINTF_A 1
19913 _ACEOF
19914
19915         fi
19916
19917
19918 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19919 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19920 if test "${ac_cv_c_bigendian+set}" = set; then
19921   echo $ECHO_N "(cached) $ECHO_C" >&6
19922 else
19923   # See if sys/param.h defines the BYTE_ORDER macro.
19924 cat >conftest.$ac_ext <<_ACEOF
19925 #line $LINENO "configure"
19926 /* confdefs.h.  */
19927 _ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h.  */
19931 #include <sys/types.h>
19932 #include <sys/param.h>
19933
19934 int
19935 main ()
19936 {
19937 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19938  bogus endian macros
19939 #endif
19940
19941   ;
19942   return 0;
19943 }
19944 _ACEOF
19945 rm -f conftest.$ac_objext
19946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19947   (eval $ac_compile) 2>&5
19948   ac_status=$?
19949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950   (exit $ac_status); } &&
19951          { ac_try='test -s conftest.$ac_objext'
19952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19953   (eval $ac_try) 2>&5
19954   ac_status=$?
19955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956   (exit $ac_status); }; }; then
19957   # It does; now see whether it defined to BIG_ENDIAN or not.
19958 cat >conftest.$ac_ext <<_ACEOF
19959 #line $LINENO "configure"
19960 /* confdefs.h.  */
19961 _ACEOF
19962 cat confdefs.h >>conftest.$ac_ext
19963 cat >>conftest.$ac_ext <<_ACEOF
19964 /* end confdefs.h.  */
19965 #include <sys/types.h>
19966 #include <sys/param.h>
19967
19968 int
19969 main ()
19970 {
19971 #if BYTE_ORDER != BIG_ENDIAN
19972  not big endian
19973 #endif
19974
19975   ;
19976   return 0;
19977 }
19978 _ACEOF
19979 rm -f conftest.$ac_objext
19980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19981   (eval $ac_compile) 2>&5
19982   ac_status=$?
19983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984   (exit $ac_status); } &&
19985          { ac_try='test -s conftest.$ac_objext'
19986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987   (eval $ac_try) 2>&5
19988   ac_status=$?
19989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990   (exit $ac_status); }; }; then
19991   ac_cv_c_bigendian=yes
19992 else
19993   echo "$as_me: failed program was:" >&5
19994 sed 's/^/| /' conftest.$ac_ext >&5
19995
19996 ac_cv_c_bigendian=no
19997 fi
19998 rm -f conftest.$ac_objext conftest.$ac_ext
19999 else
20000   echo "$as_me: failed program was:" >&5
20001 sed 's/^/| /' conftest.$ac_ext >&5
20002
20003 # It does not; compile a test program.
20004 if test "$cross_compiling" = yes; then
20005   # try to guess the endianness by grepping values into an object file
20006   ac_cv_c_bigendian=unknown
20007   cat >conftest.$ac_ext <<_ACEOF
20008 #line $LINENO "configure"
20009 /* confdefs.h.  */
20010 _ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h.  */
20014 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20015 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20016 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20017 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20018 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20019 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20020 int
20021 main ()
20022 {
20023  _ascii (); _ebcdic ();
20024   ;
20025   return 0;
20026 }
20027 _ACEOF
20028 rm -f conftest.$ac_objext
20029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20030   (eval $ac_compile) 2>&5
20031   ac_status=$?
20032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033   (exit $ac_status); } &&
20034          { ac_try='test -s conftest.$ac_objext'
20035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036   (eval $ac_try) 2>&5
20037   ac_status=$?
20038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039   (exit $ac_status); }; }; then
20040   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20041   ac_cv_c_bigendian=yes
20042 fi
20043 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20044   if test "$ac_cv_c_bigendian" = unknown; then
20045     ac_cv_c_bigendian=no
20046   else
20047     # finding both strings is unlikely to happen, but who knows?
20048     ac_cv_c_bigendian=unknown
20049   fi
20050 fi
20051 else
20052   echo "$as_me: failed program was:" >&5
20053 sed 's/^/| /' conftest.$ac_ext >&5
20054
20055 fi
20056 rm -f conftest.$ac_objext conftest.$ac_ext
20057 else
20058   cat >conftest.$ac_ext <<_ACEOF
20059 #line $LINENO "configure"
20060 /* confdefs.h.  */
20061 _ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h.  */
20065 int
20066 main ()
20067 {
20068   /* Are we little or big endian?  From Harbison&Steele.  */
20069   union
20070   {
20071     long l;
20072     char c[sizeof (long)];
20073   } u;
20074   u.l = 1;
20075   exit (u.c[sizeof (long) - 1] == 1);
20076 }
20077 _ACEOF
20078 rm -f conftest$ac_exeext
20079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20080   (eval $ac_link) 2>&5
20081   ac_status=$?
20082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085   (eval $ac_try) 2>&5
20086   ac_status=$?
20087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088   (exit $ac_status); }; }; then
20089   ac_cv_c_bigendian=no
20090 else
20091   echo "$as_me: program exited with status $ac_status" >&5
20092 echo "$as_me: failed program was:" >&5
20093 sed 's/^/| /' conftest.$ac_ext >&5
20094
20095 ( exit $ac_status )
20096 ac_cv_c_bigendian=yes
20097 fi
20098 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20099 fi
20100 fi
20101 rm -f conftest.$ac_objext conftest.$ac_ext
20102 fi
20103 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20104 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20105 case $ac_cv_c_bigendian in
20106   yes)
20107     ENDIAN=big
20108  ;;
20109   no)
20110     ENDIAN=little
20111  ;;
20112   *)
20113     { { echo "$as_me:$LINENO: error: unknown endianness
20114 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20115 echo "$as_me: error: unknown endianness
20116 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20117    { (exit 1); exit 1; }; } ;;
20118 esac
20119
20120
20121 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20122 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20123 if test "${ac_cv_cxx_namespaces+set}" = set; then
20124   echo $ECHO_N "(cached) $ECHO_C" >&6
20125 else
20126
20127
20128  ac_ext=cc
20129 ac_cpp='$CXXCPP $CPPFLAGS'
20130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20133
20134  cat >conftest.$ac_ext <<_ACEOF
20135 #line $LINENO "configure"
20136 /* confdefs.h.  */
20137 _ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h.  */
20141 namespace Outer { namespace Inner { int i = 0; }}
20142 int
20143 main ()
20144 {
20145 using namespace Outer::Inner; return i;
20146   ;
20147   return 0;
20148 }
20149 _ACEOF
20150 rm -f conftest.$ac_objext
20151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20152   (eval $ac_compile) 2>&5
20153   ac_status=$?
20154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155   (exit $ac_status); } &&
20156          { ac_try='test -s conftest.$ac_objext'
20157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158   (eval $ac_try) 2>&5
20159   ac_status=$?
20160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161   (exit $ac_status); }; }; then
20162   ac_cv_cxx_namespaces=yes
20163 else
20164   echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20166
20167 ac_cv_cxx_namespaces=no
20168 fi
20169 rm -f conftest.$ac_objext conftest.$ac_ext
20170  ac_ext=c
20171 ac_cpp='$CPP $CPPFLAGS'
20172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20175
20176
20177 fi
20178 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20179 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20180 if test "$ac_cv_cxx_namespaces" = yes; then
20181
20182 cat >>confdefs.h <<\_ACEOF
20183 #define HAVE_NAMESPACES
20184 _ACEOF
20185
20186 fi
20187
20188 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20189 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20190 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
20191   echo $ECHO_N "(cached) $ECHO_C" >&6
20192 else
20193
20194
20195
20196   ac_ext=cc
20197 ac_cpp='$CXXCPP $CPPFLAGS'
20198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20201
20202   cat >conftest.$ac_ext <<_ACEOF
20203 #line $LINENO "configure"
20204 /* confdefs.h.  */
20205 _ACEOF
20206 cat confdefs.h >>conftest.$ac_ext
20207 cat >>conftest.$ac_ext <<_ACEOF
20208 /* end confdefs.h.  */
20209 #include <ext/hash_map>
20210 #ifdef HAVE_NAMESPACES
20211 using namespace std;
20212 #endif
20213 int
20214 main ()
20215 {
20216 hash_map<int, int> t;
20217   ;
20218   return 0;
20219 }
20220 _ACEOF
20221 rm -f conftest.$ac_objext
20222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20223   (eval $ac_compile) 2>&5
20224   ac_status=$?
20225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226   (exit $ac_status); } &&
20227          { ac_try='test -s conftest.$ac_objext'
20228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20229   (eval $ac_try) 2>&5
20230   ac_status=$?
20231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232   (exit $ac_status); }; }; then
20233   ac_cv_cxx_have_std_ext_hash_map=yes
20234 else
20235   echo "$as_me: failed program was:" >&5
20236 sed 's/^/| /' conftest.$ac_ext >&5
20237
20238 ac_cv_cxx_have_std_ext_hash_map=no
20239 fi
20240 rm -f conftest.$ac_objext conftest.$ac_ext
20241   ac_ext=c
20242 ac_cpp='$CPP $CPPFLAGS'
20243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20246
20247 fi
20248 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20249 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
20250  HAVE_STD_EXT_HASH_MAP=0
20251  if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
20252  then
20253    HAVE_STD_EXT_HASH_MAP=1
20254  fi
20255
20256  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20257 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20258 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20259   echo $ECHO_N "(cached) $ECHO_C" >&6
20260 else
20261
20262
20263
20264   ac_ext=cc
20265 ac_cpp='$CXXCPP $CPPFLAGS'
20266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20269
20270   cat >conftest.$ac_ext <<_ACEOF
20271 #line $LINENO "configure"
20272 /* confdefs.h.  */
20273 _ACEOF
20274 cat confdefs.h >>conftest.$ac_ext
20275 cat >>conftest.$ac_ext <<_ACEOF
20276 /* end confdefs.h.  */
20277 #include <ext/hash_map>
20278 #ifdef HAVE_NAMESPACES
20279 using namespace __gnu_cxx;
20280 #endif
20281 int
20282 main ()
20283 {
20284 hash_map<int,int> t;
20285   ;
20286   return 0;
20287 }
20288 _ACEOF
20289 rm -f conftest.$ac_objext
20290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20291   (eval $ac_compile) 2>&5
20292   ac_status=$?
20293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294   (exit $ac_status); } &&
20295          { ac_try='test -s conftest.$ac_objext'
20296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20297   (eval $ac_try) 2>&5
20298   ac_status=$?
20299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300   (exit $ac_status); }; }; then
20301   ac_cv_cxx_have_gnu_ext_hash_map=yes
20302 else
20303   echo "$as_me: failed program was:" >&5
20304 sed 's/^/| /' conftest.$ac_ext >&5
20305
20306 ac_cv_cxx_have_gnu_ext_hash_map=no
20307 fi
20308 rm -f conftest.$ac_objext conftest.$ac_ext
20309   ac_ext=c
20310 ac_cpp='$CPP $CPPFLAGS'
20311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20314
20315 fi
20316 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20317 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
20318  HAVE_GNU_EXT_HASH_MAP=0
20319  if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
20320  then
20321    HAVE_GNU_EXT_HASH_MAP=1
20322  fi
20323
20324  echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20325 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20326 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20327   echo $ECHO_N "(cached) $ECHO_C" >&6
20328 else
20329
20330
20331
20332   ac_ext=cc
20333 ac_cpp='$CXXCPP $CPPFLAGS'
20334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20337
20338   cat >conftest.$ac_ext <<_ACEOF
20339 #line $LINENO "configure"
20340 /* confdefs.h.  */
20341 _ACEOF
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h.  */
20345 #include <hash_map>
20346 int
20347 main ()
20348 {
20349 hash_map<int,int> t;
20350   ;
20351   return 0;
20352 }
20353 _ACEOF
20354 rm -f conftest.$ac_objext
20355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20356   (eval $ac_compile) 2>&5
20357   ac_status=$?
20358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359   (exit $ac_status); } &&
20360          { ac_try='test -s conftest.$ac_objext'
20361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20362   (eval $ac_try) 2>&5
20363   ac_status=$?
20364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365   (exit $ac_status); }; }; then
20366   ac_cv_cxx_have_global_hash_map=yes
20367 else
20368   echo "$as_me: failed program was:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20370
20371 ac_cv_cxx_have_global_hash_map=no
20372 fi
20373 rm -f conftest.$ac_objext conftest.$ac_ext
20374   ac_ext=c
20375 ac_cpp='$CPP $CPPFLAGS'
20376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20379
20380 fi
20381 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20382 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
20383  HAVE_GLOBAL_HASH_MAP=0
20384  if test "$ac_cv_cxx_have_global_hash_map" = yes
20385  then
20386    HAVE_GLOBAL_HASH_MAP=1
20387  fi
20388
20389 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20390 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20391 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
20392   echo $ECHO_N "(cached) $ECHO_C" >&6
20393 else
20394
20395
20396
20397   ac_ext=cc
20398 ac_cpp='$CXXCPP $CPPFLAGS'
20399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20402
20403   cat >conftest.$ac_ext <<_ACEOF
20404 #line $LINENO "configure"
20405 /* confdefs.h.  */
20406 _ACEOF
20407 cat confdefs.h >>conftest.$ac_ext
20408 cat >>conftest.$ac_ext <<_ACEOF
20409 /* end confdefs.h.  */
20410 #include <ext/hash_set>
20411 #ifdef HAVE_NAMESPACES
20412 using namespace std;
20413 #endif
20414 int
20415 main ()
20416 {
20417 hash_set<int> t;
20418   ;
20419   return 0;
20420 }
20421 _ACEOF
20422 rm -f conftest.$ac_objext
20423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20424   (eval $ac_compile) 2>&5
20425   ac_status=$?
20426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427   (exit $ac_status); } &&
20428          { ac_try='test -s conftest.$ac_objext'
20429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430   (eval $ac_try) 2>&5
20431   ac_status=$?
20432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433   (exit $ac_status); }; }; then
20434   ac_cv_cxx_have_std_ext_hash_set=yes
20435 else
20436   echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20438
20439 ac_cv_cxx_have_std_ext_hash_set=no
20440 fi
20441 rm -f conftest.$ac_objext conftest.$ac_ext
20442   ac_ext=c
20443 ac_cpp='$CPP $CPPFLAGS'
20444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20447
20448 fi
20449 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20450 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
20451  HAVE_STD_EXT_HASH_SET=0
20452  if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
20453  then
20454    HAVE_STD_EXT_HASH_SET=1
20455  fi
20456
20457  echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20458 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20459 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20460   echo $ECHO_N "(cached) $ECHO_C" >&6
20461 else
20462
20463
20464
20465   ac_ext=cc
20466 ac_cpp='$CXXCPP $CPPFLAGS'
20467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20470
20471   cat >conftest.$ac_ext <<_ACEOF
20472 #line $LINENO "configure"
20473 /* confdefs.h.  */
20474 _ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h.  */
20478 #include <ext/hash_set>
20479 #ifdef HAVE_NAMESPACES
20480 using namespace __gnu_cxx;
20481 #endif
20482 int
20483 main ()
20484 {
20485 hash_set<int> t;
20486   ;
20487   return 0;
20488 }
20489 _ACEOF
20490 rm -f conftest.$ac_objext
20491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20492   (eval $ac_compile) 2>&5
20493   ac_status=$?
20494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495   (exit $ac_status); } &&
20496          { ac_try='test -s conftest.$ac_objext'
20497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498   (eval $ac_try) 2>&5
20499   ac_status=$?
20500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501   (exit $ac_status); }; }; then
20502   ac_cv_cxx_have_gnu_ext_hash_set=yes
20503 else
20504   echo "$as_me: failed program was:" >&5
20505 sed 's/^/| /' conftest.$ac_ext >&5
20506
20507 ac_cv_cxx_have_gnu_ext_hash_set=no
20508 fi
20509 rm -f conftest.$ac_objext conftest.$ac_ext
20510   ac_ext=c
20511 ac_cpp='$CPP $CPPFLAGS'
20512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20515
20516 fi
20517 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20518 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
20519  HAVE_GNU_EXT_HASH_SET=0
20520  if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
20521  then
20522    HAVE_GNU_EXT_HASH_SET=1
20523  fi
20524
20525  echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20526 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20527 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20528   echo $ECHO_N "(cached) $ECHO_C" >&6
20529 else
20530
20531
20532
20533   ac_ext=cc
20534 ac_cpp='$CXXCPP $CPPFLAGS'
20535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20538
20539   cat >conftest.$ac_ext <<_ACEOF
20540 #line $LINENO "configure"
20541 /* confdefs.h.  */
20542 _ACEOF
20543 cat confdefs.h >>conftest.$ac_ext
20544 cat >>conftest.$ac_ext <<_ACEOF
20545 /* end confdefs.h.  */
20546 #include <hash_set>
20547 int
20548 main ()
20549 {
20550 hash_set<int> t; return 0;
20551   ;
20552   return 0;
20553 }
20554 _ACEOF
20555 rm -f conftest.$ac_objext
20556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20557   (eval $ac_compile) 2>&5
20558   ac_status=$?
20559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560   (exit $ac_status); } &&
20561          { ac_try='test -s conftest.$ac_objext'
20562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563   (eval $ac_try) 2>&5
20564   ac_status=$?
20565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566   (exit $ac_status); }; }; then
20567   ac_cv_cxx_have_global_hash_set=yes
20568 else
20569   echo "$as_me: failed program was:" >&5
20570 sed 's/^/| /' conftest.$ac_ext >&5
20571
20572 ac_cv_cxx_have_global_hash_set=no
20573 fi
20574 rm -f conftest.$ac_objext conftest.$ac_ext
20575   ac_ext=c
20576 ac_cpp='$CPP $CPPFLAGS'
20577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20580
20581 fi
20582 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20583 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
20584  HAVE_GLOBAL_HASH_SET=0
20585  if test "$ac_cv_cxx_have_global_hash_set" = yes
20586  then
20587    HAVE_GLOBAL_HASH_SET=1
20588  fi
20589
20590 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20591 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20592 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20593   echo $ECHO_N "(cached) $ECHO_C" >&6
20594 else
20595
20596
20597
20598   ac_ext=cc
20599 ac_cpp='$CXXCPP $CPPFLAGS'
20600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20603
20604   cat >conftest.$ac_ext <<_ACEOF
20605 #line $LINENO "configure"
20606 /* confdefs.h.  */
20607 _ACEOF
20608 cat confdefs.h >>conftest.$ac_ext
20609 cat >>conftest.$ac_ext <<_ACEOF
20610 /* end confdefs.h.  */
20611 #include <iterator>
20612 #ifdef HAVE_NAMESPACES
20613 using namespace std;
20614 #endif
20615 int
20616 main ()
20617 {
20618 iterator<int,int,int> t; return 0;
20619   ;
20620   return 0;
20621 }
20622 _ACEOF
20623 rm -f conftest.$ac_objext
20624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20625   (eval $ac_compile) 2>&5
20626   ac_status=$?
20627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628   (exit $ac_status); } &&
20629          { ac_try='test -s conftest.$ac_objext'
20630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631   (eval $ac_try) 2>&5
20632   ac_status=$?
20633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634   (exit $ac_status); }; }; then
20635   ac_cv_cxx_have_std_iterator=yes
20636 else
20637   echo "$as_me: failed program was:" >&5
20638 sed 's/^/| /' conftest.$ac_ext >&5
20639
20640 ac_cv_cxx_have_std_iterator=no
20641 fi
20642 rm -f conftest.$ac_objext conftest.$ac_ext
20643   ac_ext=c
20644 ac_cpp='$CPP $CPPFLAGS'
20645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20648
20649
20650 fi
20651 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20652 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20653 HAVE_STD_ITERATOR=0
20654 if test "$ac_cv_cxx_have_std_iterator" = yes
20655 then
20656    HAVE_STD_ITERATOR=1
20657 fi
20658
20659 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20660 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20661 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20662   echo $ECHO_N "(cached) $ECHO_C" >&6
20663 else
20664
20665
20666
20667   ac_ext=cc
20668 ac_cpp='$CXXCPP $CPPFLAGS'
20669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20672
20673   cat >conftest.$ac_ext <<_ACEOF
20674 #line $LINENO "configure"
20675 /* confdefs.h.  */
20676 _ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h.  */
20680 #include <iterator>
20681 #ifdef HAVE_NAMESPACES
20682 using namespace std;
20683 #endif
20684 int
20685 main ()
20686 {
20687 bidirectional_iterator<int,int> t; return 0;
20688   ;
20689   return 0;
20690 }
20691 _ACEOF
20692 rm -f conftest.$ac_objext
20693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20694   (eval $ac_compile) 2>&5
20695   ac_status=$?
20696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697   (exit $ac_status); } &&
20698          { ac_try='test -s conftest.$ac_objext'
20699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20700   (eval $ac_try) 2>&5
20701   ac_status=$?
20702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703   (exit $ac_status); }; }; then
20704   ac_cv_cxx_have_bi_iterator=yes
20705 else
20706   echo "$as_me: failed program was:" >&5
20707 sed 's/^/| /' conftest.$ac_ext >&5
20708
20709 ac_cv_cxx_have_bi_iterator=no
20710 fi
20711 rm -f conftest.$ac_objext conftest.$ac_ext
20712   ac_ext=c
20713 ac_cpp='$CPP $CPPFLAGS'
20714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20717
20718
20719 fi
20720 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20721 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20722 HAVE_BI_ITERATOR=0
20723 if test "$ac_cv_cxx_have_bi_iterator" = yes
20724 then
20725    HAVE_BI_ITERATOR=1
20726 fi
20727
20728 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20729 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20730 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20731   echo $ECHO_N "(cached) $ECHO_C" >&6
20732 else
20733
20734
20735
20736   ac_ext=cc
20737 ac_cpp='$CXXCPP $CPPFLAGS'
20738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20741
20742   cat >conftest.$ac_ext <<_ACEOF
20743 #line $LINENO "configure"
20744 /* confdefs.h.  */
20745 _ACEOF
20746 cat confdefs.h >>conftest.$ac_ext
20747 cat >>conftest.$ac_ext <<_ACEOF
20748 /* end confdefs.h.  */
20749 #include <iterator>
20750 #ifdef HAVE_NAMESPACES
20751 using namespace std;
20752 #endif
20753 int
20754 main ()
20755 {
20756 forward_iterator<int,int> t; return 0;
20757   ;
20758   return 0;
20759 }
20760 _ACEOF
20761 rm -f conftest.$ac_objext
20762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20763   (eval $ac_compile) 2>&5
20764   ac_status=$?
20765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766   (exit $ac_status); } &&
20767          { ac_try='test -s conftest.$ac_objext'
20768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769   (eval $ac_try) 2>&5
20770   ac_status=$?
20771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772   (exit $ac_status); }; }; then
20773   ac_cv_cxx_have_fwd_iterator=yes
20774 else
20775   echo "$as_me: failed program was:" >&5
20776 sed 's/^/| /' conftest.$ac_ext >&5
20777
20778 ac_cv_cxx_have_fwd_iterator=no
20779 fi
20780 rm -f conftest.$ac_objext conftest.$ac_ext
20781   ac_ext=c
20782 ac_cpp='$CPP $CPPFLAGS'
20783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20786
20787
20788 fi
20789 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20790 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20791 HAVE_FWD_ITERATOR=0
20792 if test "$ac_cv_cxx_have_fwd_iterator" = yes
20793 then
20794    HAVE_FWD_ITERATOR=1
20795 fi
20796
20797
20798
20799 echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20800 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
20801 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20802   echo $ECHO_N "(cached) $ECHO_C" >&6
20803 else
20804   ac_ext=cc
20805 ac_cpp='$CXXCPP $CPPFLAGS'
20806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20809
20810   cat >conftest.$ac_ext <<_ACEOF
20811 #line $LINENO "configure"
20812 /* confdefs.h.  */
20813 _ACEOF
20814 cat confdefs.h >>conftest.$ac_ext
20815 cat >>conftest.$ac_ext <<_ACEOF
20816 /* end confdefs.h.  */
20817 #include <math.h>
20818                      int foo(float f) {return isnan(f);}
20819 _ACEOF
20820 rm -f conftest.$ac_objext
20821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20822   (eval $ac_compile) 2>&5
20823   ac_status=$?
20824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825   (exit $ac_status); } &&
20826          { ac_try='test -s conftest.$ac_objext'
20827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828   (eval $ac_try) 2>&5
20829   ac_status=$?
20830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831   (exit $ac_status); }; }; then
20832   ac_cv_func_isnan_in_math_h=yes
20833 else
20834   echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20836
20837 ac_cv_func_isnan_in_math_h=no
20838 fi
20839 rm -f conftest.$ac_objext conftest.$ac_ext
20840  ac_ext=c
20841 ac_cpp='$CPP $CPPFLAGS'
20842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20845
20846 fi
20847 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20848 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
20849  if test "$ac_cv_func_isnan_in_math_h" = "yes"
20850  then
20851
20852 cat >>confdefs.h <<\_ACEOF
20853 #define HAVE_ISNAN_IN_MATH_H 1
20854 _ACEOF
20855
20856  fi
20857 echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20858 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
20859 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20860   echo $ECHO_N "(cached) $ECHO_C" >&6
20861 else
20862   ac_ext=cc
20863 ac_cpp='$CXXCPP $CPPFLAGS'
20864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20867
20868   cat >conftest.$ac_ext <<_ACEOF
20869 #line $LINENO "configure"
20870 /* confdefs.h.  */
20871 _ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h.  */
20875 #include <cmath>
20876                      int foo(float f) {return isnan(f);}
20877 _ACEOF
20878 rm -f conftest.$ac_objext
20879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20880   (eval $ac_compile) 2>&5
20881   ac_status=$?
20882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883   (exit $ac_status); } &&
20884          { ac_try='test -s conftest.$ac_objext'
20885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886   (eval $ac_try) 2>&5
20887   ac_status=$?
20888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889   (exit $ac_status); }; }; then
20890   ac_cv_func_isnan_in_cmath=yes
20891 else
20892   echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20894
20895 ac_cv_func_isnan_in_cmath=no
20896 fi
20897 rm -f conftest.$ac_objext conftest.$ac_ext
20898  ac_ext=c
20899 ac_cpp='$CPP $CPPFLAGS'
20900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20903
20904 fi
20905 echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20906 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
20907  if test "$ac_cv_func_isnan_in_cmath" = "yes"
20908  then
20909
20910 cat >>confdefs.h <<\_ACEOF
20911 #define HAVE_ISNAN_IN_CMATH 1
20912 _ACEOF
20913
20914  fi
20915 echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20916 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
20917 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20918   echo $ECHO_N "(cached) $ECHO_C" >&6
20919 else
20920   ac_ext=cc
20921 ac_cpp='$CXXCPP $CPPFLAGS'
20922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20925
20926   cat >conftest.$ac_ext <<_ACEOF
20927 #line $LINENO "configure"
20928 /* confdefs.h.  */
20929 _ACEOF
20930 cat confdefs.h >>conftest.$ac_ext
20931 cat >>conftest.$ac_ext <<_ACEOF
20932 /* end confdefs.h.  */
20933 #include <cmath>
20934                      using std::isnan; int foo(float f) {return isnan(f);}
20935 _ACEOF
20936 rm -f conftest.$ac_objext
20937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20938   (eval $ac_compile) 2>&5
20939   ac_status=$?
20940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941   (exit $ac_status); } &&
20942          { ac_try='test -s conftest.$ac_objext'
20943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20944   (eval $ac_try) 2>&5
20945   ac_status=$?
20946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947   (exit $ac_status); }; }; then
20948   ac_cv_func_std_isnan_in_cmath=yes
20949 else
20950   echo "$as_me: failed program was:" >&5
20951 sed 's/^/| /' conftest.$ac_ext >&5
20952
20953 ac_cv_func_std_isnan_in_cmath=no
20954 fi
20955 rm -f conftest.$ac_objext conftest.$ac_ext
20956  ac_ext=c
20957 ac_cpp='$CPP $CPPFLAGS'
20958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20961
20962 fi
20963 echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20964 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
20965  if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
20966  then
20967
20968 cat >>confdefs.h <<\_ACEOF
20969 #define HAVE_STD_ISNAN_IN_CMATH 1
20970 _ACEOF
20971
20972  fi
20973
20974
20975 echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20976 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
20977 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20978   echo $ECHO_N "(cached) $ECHO_C" >&6
20979 else
20980   ac_ext=cc
20981 ac_cpp='$CXXCPP $CPPFLAGS'
20982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20985
20986   cat >conftest.$ac_ext <<_ACEOF
20987 #line $LINENO "configure"
20988 /* confdefs.h.  */
20989 _ACEOF
20990 cat confdefs.h >>conftest.$ac_ext
20991 cat >>conftest.$ac_ext <<_ACEOF
20992 /* end confdefs.h.  */
20993 #include <math.h>
20994                      int foo(float f) {return isinf(f);}
20995 _ACEOF
20996 rm -f conftest.$ac_objext
20997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20998   (eval $ac_compile) 2>&5
20999   ac_status=$?
21000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001   (exit $ac_status); } &&
21002          { ac_try='test -s conftest.$ac_objext'
21003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004   (eval $ac_try) 2>&5
21005   ac_status=$?
21006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007   (exit $ac_status); }; }; then
21008   ac_cv_func_isinf_in_math_h=yes
21009 else
21010   echo "$as_me: failed program was:" >&5
21011 sed 's/^/| /' conftest.$ac_ext >&5
21012
21013 ac_cv_func_isinf_in_math_h=no
21014 fi
21015 rm -f conftest.$ac_objext conftest.$ac_ext
21016  ac_ext=c
21017 ac_cpp='$CPP $CPPFLAGS'
21018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21021
21022 fi
21023 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21024 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21025  if test "$ac_cv_func_isinf_in_math_h" = "yes"
21026  then
21027
21028 cat >>confdefs.h <<\_ACEOF
21029 #define HAVE_ISINF_IN_MATH_H 1
21030 _ACEOF
21031
21032  fi
21033 echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21034 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21035 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21036   echo $ECHO_N "(cached) $ECHO_C" >&6
21037 else
21038   ac_ext=cc
21039 ac_cpp='$CXXCPP $CPPFLAGS'
21040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21043
21044   cat >conftest.$ac_ext <<_ACEOF
21045 #line $LINENO "configure"
21046 /* confdefs.h.  */
21047 _ACEOF
21048 cat confdefs.h >>conftest.$ac_ext
21049 cat >>conftest.$ac_ext <<_ACEOF
21050 /* end confdefs.h.  */
21051 #include <cmath>
21052                      int foo(float f) {return isinf(f);}
21053 _ACEOF
21054 rm -f conftest.$ac_objext
21055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21056   (eval $ac_compile) 2>&5
21057   ac_status=$?
21058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059   (exit $ac_status); } &&
21060          { ac_try='test -s conftest.$ac_objext'
21061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062   (eval $ac_try) 2>&5
21063   ac_status=$?
21064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065   (exit $ac_status); }; }; then
21066   ac_cv_func_isinf_in_cmath=yes
21067 else
21068   echo "$as_me: failed program was:" >&5
21069 sed 's/^/| /' conftest.$ac_ext >&5
21070
21071 ac_cv_func_isinf_in_cmath=no
21072 fi
21073 rm -f conftest.$ac_objext conftest.$ac_ext
21074  ac_ext=c
21075 ac_cpp='$CPP $CPPFLAGS'
21076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21079
21080 fi
21081 echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21082 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
21083  if test "$ac_cv_func_isinf_in_cmath" = "yes"
21084  then
21085
21086 cat >>confdefs.h <<\_ACEOF
21087 #define HAVE_ISINF_IN_CMATH 1
21088 _ACEOF
21089
21090  fi
21091 echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21092 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
21093 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21094   echo $ECHO_N "(cached) $ECHO_C" >&6
21095 else
21096   ac_ext=cc
21097 ac_cpp='$CXXCPP $CPPFLAGS'
21098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21101
21102   cat >conftest.$ac_ext <<_ACEOF
21103 #line $LINENO "configure"
21104 /* confdefs.h.  */
21105 _ACEOF
21106 cat confdefs.h >>conftest.$ac_ext
21107 cat >>conftest.$ac_ext <<_ACEOF
21108 /* end confdefs.h.  */
21109 #include <cmath>
21110                      using std::isinf; int foo(float f) {return isinf(f);}
21111 _ACEOF
21112 rm -f conftest.$ac_objext
21113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21114   (eval $ac_compile) 2>&5
21115   ac_status=$?
21116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117   (exit $ac_status); } &&
21118          { ac_try='test -s conftest.$ac_objext'
21119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120   (eval $ac_try) 2>&5
21121   ac_status=$?
21122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123   (exit $ac_status); }; }; then
21124   ac_cv_func_std_isinf_in_cmath=yes
21125 else
21126   echo "$as_me: failed program was:" >&5
21127 sed 's/^/| /' conftest.$ac_ext >&5
21128
21129 ac_cv_func_std_isinf_in_cmath=no
21130 fi
21131 rm -f conftest.$ac_objext conftest.$ac_ext
21132  ac_ext=c
21133 ac_cpp='$CPP $CPPFLAGS'
21134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21137
21138 fi
21139 echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21140 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
21141  if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
21142  then
21143
21144 cat >>confdefs.h <<\_ACEOF
21145 #define HAVE_STD_ISINF_IN_CMATH 1
21146 _ACEOF
21147
21148  fi
21149 echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21150 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
21151 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21152   echo $ECHO_N "(cached) $ECHO_C" >&6
21153 else
21154   ac_ext=cc
21155 ac_cpp='$CXXCPP $CPPFLAGS'
21156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21159
21160   cat >conftest.$ac_ext <<_ACEOF
21161 #line $LINENO "configure"
21162 /* confdefs.h.  */
21163 _ACEOF
21164 cat confdefs.h >>conftest.$ac_ext
21165 cat >>conftest.$ac_ext <<_ACEOF
21166 /* end confdefs.h.  */
21167 #include <ieeefp.h>
21168                      int foo(float f) {return finite(f);}
21169 _ACEOF
21170 rm -f conftest.$ac_objext
21171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21172   (eval $ac_compile) 2>&5
21173   ac_status=$?
21174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175   (exit $ac_status); } &&
21176          { ac_try='test -s conftest.$ac_objext'
21177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21178   (eval $ac_try) 2>&5
21179   ac_status=$?
21180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181   (exit $ac_status); }; }; then
21182   ac_cv_func_finite_in_ieeefp_h=yes
21183 else
21184   echo "$as_me: failed program was:" >&5
21185 sed 's/^/| /' conftest.$ac_ext >&5
21186
21187 ac_cv_func_finite_in_ieeefp_h=no
21188 fi
21189 rm -f conftest.$ac_objext conftest.$ac_ext
21190  ac_ext=c
21191 ac_cpp='$CPP $CPPFLAGS'
21192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21195
21196 fi
21197 echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21198 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
21199  if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
21200  then
21201
21202 cat >>confdefs.h <<\_ACEOF
21203 #define HAVE_FINITE_IN_IEEEFP_H 1
21204 _ACEOF
21205
21206  fi
21207
21208
21209 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21210 # for constant arguments.  Useless!
21211 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21212 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21213 if test "${ac_cv_working_alloca_h+set}" = set; then
21214   echo $ECHO_N "(cached) $ECHO_C" >&6
21215 else
21216   cat >conftest.$ac_ext <<_ACEOF
21217 #line $LINENO "configure"
21218 /* confdefs.h.  */
21219 _ACEOF
21220 cat confdefs.h >>conftest.$ac_ext
21221 cat >>conftest.$ac_ext <<_ACEOF
21222 /* end confdefs.h.  */
21223 #include <alloca.h>
21224 int
21225 main ()
21226 {
21227 char *p = (char *) alloca (2 * sizeof (int));
21228   ;
21229   return 0;
21230 }
21231 _ACEOF
21232 rm -f conftest.$ac_objext conftest$ac_exeext
21233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21234   (eval $ac_link) 2>&5
21235   ac_status=$?
21236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237   (exit $ac_status); } &&
21238          { ac_try='test -s conftest$ac_exeext'
21239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21240   (eval $ac_try) 2>&5
21241   ac_status=$?
21242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243   (exit $ac_status); }; }; then
21244   ac_cv_working_alloca_h=yes
21245 else
21246   echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21248
21249 ac_cv_working_alloca_h=no
21250 fi
21251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21252 fi
21253 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21254 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21255 if test $ac_cv_working_alloca_h = yes; then
21256
21257 cat >>confdefs.h <<\_ACEOF
21258 #define HAVE_ALLOCA_H 1
21259 _ACEOF
21260
21261 fi
21262
21263 echo "$as_me:$LINENO: checking for alloca" >&5
21264 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21265 if test "${ac_cv_func_alloca_works+set}" = set; then
21266   echo $ECHO_N "(cached) $ECHO_C" >&6
21267 else
21268   cat >conftest.$ac_ext <<_ACEOF
21269 #line $LINENO "configure"
21270 /* confdefs.h.  */
21271 _ACEOF
21272 cat confdefs.h >>conftest.$ac_ext
21273 cat >>conftest.$ac_ext <<_ACEOF
21274 /* end confdefs.h.  */
21275 #ifdef __GNUC__
21276 # define alloca __builtin_alloca
21277 #else
21278 # ifdef _MSC_VER
21279 #  include <malloc.h>
21280 #  define alloca _alloca
21281 # else
21282 #  if HAVE_ALLOCA_H
21283 #   include <alloca.h>
21284 #  else
21285 #   ifdef _AIX
21286  #pragma alloca
21287 #   else
21288 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21289 char *alloca ();
21290 #    endif
21291 #   endif
21292 #  endif
21293 # endif
21294 #endif
21295
21296 int
21297 main ()
21298 {
21299 char *p = (char *) alloca (1);
21300   ;
21301   return 0;
21302 }
21303 _ACEOF
21304 rm -f conftest.$ac_objext conftest$ac_exeext
21305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21306   (eval $ac_link) 2>&5
21307   ac_status=$?
21308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309   (exit $ac_status); } &&
21310          { ac_try='test -s conftest$ac_exeext'
21311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21312   (eval $ac_try) 2>&5
21313   ac_status=$?
21314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315   (exit $ac_status); }; }; then
21316   ac_cv_func_alloca_works=yes
21317 else
21318   echo "$as_me: failed program was:" >&5
21319 sed 's/^/| /' conftest.$ac_ext >&5
21320
21321 ac_cv_func_alloca_works=no
21322 fi
21323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21324 fi
21325 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21326 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21327
21328 if test $ac_cv_func_alloca_works = yes; then
21329
21330 cat >>confdefs.h <<\_ACEOF
21331 #define HAVE_ALLOCA 1
21332 _ACEOF
21333
21334 else
21335   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21336 # that cause trouble.  Some versions do not even contain alloca or
21337 # contain a buggy version.  If you still want to use their alloca,
21338 # use ar to extract alloca.o from them instead of compiling alloca.c.
21339
21340 ALLOCA=alloca.$ac_objext
21341
21342 cat >>confdefs.h <<\_ACEOF
21343 #define C_ALLOCA 1
21344 _ACEOF
21345
21346
21347 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21348 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21349 if test "${ac_cv_os_cray+set}" = set; then
21350   echo $ECHO_N "(cached) $ECHO_C" >&6
21351 else
21352   cat >conftest.$ac_ext <<_ACEOF
21353 #line $LINENO "configure"
21354 /* confdefs.h.  */
21355 _ACEOF
21356 cat confdefs.h >>conftest.$ac_ext
21357 cat >>conftest.$ac_ext <<_ACEOF
21358 /* end confdefs.h.  */
21359 #if defined(CRAY) && ! defined(CRAY2)
21360 webecray
21361 #else
21362 wenotbecray
21363 #endif
21364
21365 _ACEOF
21366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21367   $EGREP "webecray" >/dev/null 2>&1; then
21368   ac_cv_os_cray=yes
21369 else
21370   ac_cv_os_cray=no
21371 fi
21372 rm -f conftest*
21373
21374 fi
21375 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21376 echo "${ECHO_T}$ac_cv_os_cray" >&6
21377 if test $ac_cv_os_cray = yes; then
21378   for ac_func in _getb67 GETB67 getb67; do
21379     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21380 echo "$as_me:$LINENO: checking for $ac_func" >&5
21381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21382 if eval "test \"\${$as_ac_var+set}\" = set"; then
21383   echo $ECHO_N "(cached) $ECHO_C" >&6
21384 else
21385   cat >conftest.$ac_ext <<_ACEOF
21386 #line $LINENO "configure"
21387 /* confdefs.h.  */
21388 _ACEOF
21389 cat confdefs.h >>conftest.$ac_ext
21390 cat >>conftest.$ac_ext <<_ACEOF
21391 /* end confdefs.h.  */
21392 /* System header to define __stub macros and hopefully few prototypes,
21393     which can conflict with char $ac_func (); below.
21394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21395     <limits.h> exists even on freestanding compilers.  */
21396 #ifdef __STDC__
21397 # include <limits.h>
21398 #else
21399 # include <assert.h>
21400 #endif
21401 /* Override any gcc2 internal prototype to avoid an error.  */
21402 #ifdef __cplusplus
21403 extern "C"
21404 {
21405 #endif
21406 /* We use char because int might match the return type of a gcc2
21407    builtin and then its argument prototype would still apply.  */
21408 char $ac_func ();
21409 /* The GNU C library defines this for functions which it implements
21410     to always fail with ENOSYS.  Some functions are actually named
21411     something starting with __ and the normal name is an alias.  */
21412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21413 choke me
21414 #else
21415 char (*f) () = $ac_func;
21416 #endif
21417 #ifdef __cplusplus
21418 }
21419 #endif
21420
21421 int
21422 main ()
21423 {
21424 return f != $ac_func;
21425   ;
21426   return 0;
21427 }
21428 _ACEOF
21429 rm -f conftest.$ac_objext conftest$ac_exeext
21430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21431   (eval $ac_link) 2>&5
21432   ac_status=$?
21433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434   (exit $ac_status); } &&
21435          { ac_try='test -s conftest$ac_exeext'
21436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21437   (eval $ac_try) 2>&5
21438   ac_status=$?
21439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440   (exit $ac_status); }; }; then
21441   eval "$as_ac_var=yes"
21442 else
21443   echo "$as_me: failed program was:" >&5
21444 sed 's/^/| /' conftest.$ac_ext >&5
21445
21446 eval "$as_ac_var=no"
21447 fi
21448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21449 fi
21450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21452 if test `eval echo '${'$as_ac_var'}'` = yes; then
21453
21454 cat >>confdefs.h <<_ACEOF
21455 #define CRAY_STACKSEG_END $ac_func
21456 _ACEOF
21457
21458     break
21459 fi
21460
21461   done
21462 fi
21463
21464 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21465 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21466 if test "${ac_cv_c_stack_direction+set}" = set; then
21467   echo $ECHO_N "(cached) $ECHO_C" >&6
21468 else
21469   if test "$cross_compiling" = yes; then
21470   ac_cv_c_stack_direction=0
21471 else
21472   cat >conftest.$ac_ext <<_ACEOF
21473 #line $LINENO "configure"
21474 /* confdefs.h.  */
21475 _ACEOF
21476 cat confdefs.h >>conftest.$ac_ext
21477 cat >>conftest.$ac_ext <<_ACEOF
21478 /* end confdefs.h.  */
21479 int
21480 find_stack_direction ()
21481 {
21482   static char *addr = 0;
21483   auto char dummy;
21484   if (addr == 0)
21485     {
21486       addr = &dummy;
21487       return find_stack_direction ();
21488     }
21489   else
21490     return (&dummy > addr) ? 1 : -1;
21491 }
21492
21493 int
21494 main ()
21495 {
21496   exit (find_stack_direction () < 0);
21497 }
21498 _ACEOF
21499 rm -f conftest$ac_exeext
21500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21501   (eval $ac_link) 2>&5
21502   ac_status=$?
21503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506   (eval $ac_try) 2>&5
21507   ac_status=$?
21508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509   (exit $ac_status); }; }; then
21510   ac_cv_c_stack_direction=1
21511 else
21512   echo "$as_me: program exited with status $ac_status" >&5
21513 echo "$as_me: failed program was:" >&5
21514 sed 's/^/| /' conftest.$ac_ext >&5
21515
21516 ( exit $ac_status )
21517 ac_cv_c_stack_direction=-1
21518 fi
21519 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21520 fi
21521 fi
21522 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21523 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21524
21525 cat >>confdefs.h <<_ACEOF
21526 #define STACK_DIRECTION $ac_cv_c_stack_direction
21527 _ACEOF
21528
21529
21530 fi
21531
21532
21533
21534 for ac_header in stdlib.h unistd.h
21535 do
21536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21538   echo "$as_me:$LINENO: checking for $ac_header" >&5
21539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21541   echo $ECHO_N "(cached) $ECHO_C" >&6
21542 fi
21543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21545 else
21546   # Is the header compilable?
21547 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21549 cat >conftest.$ac_ext <<_ACEOF
21550 #line $LINENO "configure"
21551 /* confdefs.h.  */
21552 _ACEOF
21553 cat confdefs.h >>conftest.$ac_ext
21554 cat >>conftest.$ac_ext <<_ACEOF
21555 /* end confdefs.h.  */
21556 $ac_includes_default
21557 #include <$ac_header>
21558 _ACEOF
21559 rm -f conftest.$ac_objext
21560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21561   (eval $ac_compile) 2>&5
21562   ac_status=$?
21563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564   (exit $ac_status); } &&
21565          { ac_try='test -s conftest.$ac_objext'
21566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567   (eval $ac_try) 2>&5
21568   ac_status=$?
21569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570   (exit $ac_status); }; }; then
21571   ac_header_compiler=yes
21572 else
21573   echo "$as_me: failed program was:" >&5
21574 sed 's/^/| /' conftest.$ac_ext >&5
21575
21576 ac_header_compiler=no
21577 fi
21578 rm -f conftest.$ac_objext conftest.$ac_ext
21579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21580 echo "${ECHO_T}$ac_header_compiler" >&6
21581
21582 # Is the header present?
21583 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21585 cat >conftest.$ac_ext <<_ACEOF
21586 #line $LINENO "configure"
21587 /* confdefs.h.  */
21588 _ACEOF
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h.  */
21592 #include <$ac_header>
21593 _ACEOF
21594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21595   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21596   ac_status=$?
21597   grep -v '^ *+' conftest.er1 >conftest.err
21598   rm -f conftest.er1
21599   cat conftest.err >&5
21600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601   (exit $ac_status); } >/dev/null; then
21602   if test -s conftest.err; then
21603     ac_cpp_err=$ac_c_preproc_warn_flag
21604   else
21605     ac_cpp_err=
21606   fi
21607 else
21608   ac_cpp_err=yes
21609 fi
21610 if test -z "$ac_cpp_err"; then
21611   ac_header_preproc=yes
21612 else
21613   echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21615
21616   ac_header_preproc=no
21617 fi
21618 rm -f conftest.err conftest.$ac_ext
21619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21620 echo "${ECHO_T}$ac_header_preproc" >&6
21621
21622 # So?  What about this header?
21623 case $ac_header_compiler:$ac_header_preproc in
21624   yes:no )
21625     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21629     (
21630       cat <<\_ASBOX
21631 ## ------------------------------------ ##
21632 ## Report this to bug-autoconf@gnu.org. ##
21633 ## ------------------------------------ ##
21634 _ASBOX
21635     ) |
21636       sed "s/^/$as_me: WARNING:     /" >&2
21637     ;;
21638   no:yes )
21639     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21641     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21645     (
21646       cat <<\_ASBOX
21647 ## ------------------------------------ ##
21648 ## Report this to bug-autoconf@gnu.org. ##
21649 ## ------------------------------------ ##
21650 _ASBOX
21651     ) |
21652       sed "s/^/$as_me: WARNING:     /" >&2
21653     ;;
21654 esac
21655 echo "$as_me:$LINENO: checking for $ac_header" >&5
21656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21658   echo $ECHO_N "(cached) $ECHO_C" >&6
21659 else
21660   eval "$as_ac_Header=$ac_header_preproc"
21661 fi
21662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21664
21665 fi
21666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21667   cat >>confdefs.h <<_ACEOF
21668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21669 _ACEOF
21670
21671 fi
21672
21673 done
21674
21675
21676 for ac_func in getpagesize
21677 do
21678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21679 echo "$as_me:$LINENO: checking for $ac_func" >&5
21680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21681 if eval "test \"\${$as_ac_var+set}\" = set"; then
21682   echo $ECHO_N "(cached) $ECHO_C" >&6
21683 else
21684   cat >conftest.$ac_ext <<_ACEOF
21685 #line $LINENO "configure"
21686 /* confdefs.h.  */
21687 _ACEOF
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h.  */
21691 /* System header to define __stub macros and hopefully few prototypes,
21692     which can conflict with char $ac_func (); below.
21693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21694     <limits.h> exists even on freestanding compilers.  */
21695 #ifdef __STDC__
21696 # include <limits.h>
21697 #else
21698 # include <assert.h>
21699 #endif
21700 /* Override any gcc2 internal prototype to avoid an error.  */
21701 #ifdef __cplusplus
21702 extern "C"
21703 {
21704 #endif
21705 /* We use char because int might match the return type of a gcc2
21706    builtin and then its argument prototype would still apply.  */
21707 char $ac_func ();
21708 /* The GNU C library defines this for functions which it implements
21709     to always fail with ENOSYS.  Some functions are actually named
21710     something starting with __ and the normal name is an alias.  */
21711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21712 choke me
21713 #else
21714 char (*f) () = $ac_func;
21715 #endif
21716 #ifdef __cplusplus
21717 }
21718 #endif
21719
21720 int
21721 main ()
21722 {
21723 return f != $ac_func;
21724   ;
21725   return 0;
21726 }
21727 _ACEOF
21728 rm -f conftest.$ac_objext conftest$ac_exeext
21729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21730   (eval $ac_link) 2>&5
21731   ac_status=$?
21732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733   (exit $ac_status); } &&
21734          { ac_try='test -s conftest$ac_exeext'
21735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21736   (eval $ac_try) 2>&5
21737   ac_status=$?
21738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739   (exit $ac_status); }; }; then
21740   eval "$as_ac_var=yes"
21741 else
21742   echo "$as_me: failed program was:" >&5
21743 sed 's/^/| /' conftest.$ac_ext >&5
21744
21745 eval "$as_ac_var=no"
21746 fi
21747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21748 fi
21749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21751 if test `eval echo '${'$as_ac_var'}'` = yes; then
21752   cat >>confdefs.h <<_ACEOF
21753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21754 _ACEOF
21755
21756 fi
21757 done
21758
21759 echo "$as_me:$LINENO: checking for working mmap" >&5
21760 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21761 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21762   echo $ECHO_N "(cached) $ECHO_C" >&6
21763 else
21764   if test "$cross_compiling" = yes; then
21765   ac_cv_func_mmap_fixed_mapped=no
21766 else
21767   cat >conftest.$ac_ext <<_ACEOF
21768 #line $LINENO "configure"
21769 /* confdefs.h.  */
21770 _ACEOF
21771 cat confdefs.h >>conftest.$ac_ext
21772 cat >>conftest.$ac_ext <<_ACEOF
21773 /* end confdefs.h.  */
21774 $ac_includes_default
21775 /* malloc might have been renamed as rpl_malloc. */
21776 #undef malloc
21777
21778 /* Thanks to Mike Haertel and Jim Avera for this test.
21779    Here is a matrix of mmap possibilities:
21780         mmap private not fixed
21781         mmap private fixed at somewhere currently unmapped
21782         mmap private fixed at somewhere already mapped
21783         mmap shared not fixed
21784         mmap shared fixed at somewhere currently unmapped
21785         mmap shared fixed at somewhere already mapped
21786    For private mappings, we should verify that changes cannot be read()
21787    back from the file, nor mmap's back from the file at a different
21788    address.  (There have been systems where private was not correctly
21789    implemented like the infamous i386 svr4.0, and systems where the
21790    VM page cache was not coherent with the file system buffer cache
21791    like early versions of FreeBSD and possibly contemporary NetBSD.)
21792    For shared mappings, we should conversely verify that changes get
21793    propagated back to all the places they're supposed to be.
21794
21795    Grep wants private fixed already mapped.
21796    The main things grep needs to know about mmap are:
21797    * does it exist and is it safe to write into the mmap'd area
21798    * how to use it (BSD variants)  */
21799
21800 #include <fcntl.h>
21801 #include <sys/mman.h>
21802
21803 #if !STDC_HEADERS && !HAVE_STDLIB_H
21804 char *malloc ();
21805 #endif
21806
21807 /* This mess was copied from the GNU getpagesize.h.  */
21808 #if !HAVE_GETPAGESIZE
21809 /* Assume that all systems that can run configure have sys/param.h.  */
21810 # if !HAVE_SYS_PARAM_H
21811 #  define HAVE_SYS_PARAM_H 1
21812 # endif
21813
21814 # ifdef _SC_PAGESIZE
21815 #  define getpagesize() sysconf(_SC_PAGESIZE)
21816 # else /* no _SC_PAGESIZE */
21817 #  if HAVE_SYS_PARAM_H
21818 #   include <sys/param.h>
21819 #   ifdef EXEC_PAGESIZE
21820 #    define getpagesize() EXEC_PAGESIZE
21821 #   else /* no EXEC_PAGESIZE */
21822 #    ifdef NBPG
21823 #     define getpagesize() NBPG * CLSIZE
21824 #     ifndef CLSIZE
21825 #      define CLSIZE 1
21826 #     endif /* no CLSIZE */
21827 #    else /* no NBPG */
21828 #     ifdef NBPC
21829 #      define getpagesize() NBPC
21830 #     else /* no NBPC */
21831 #      ifdef PAGESIZE
21832 #       define getpagesize() PAGESIZE
21833 #      endif /* PAGESIZE */
21834 #     endif /* no NBPC */
21835 #    endif /* no NBPG */
21836 #   endif /* no EXEC_PAGESIZE */
21837 #  else /* no HAVE_SYS_PARAM_H */
21838 #   define getpagesize() 8192   /* punt totally */
21839 #  endif /* no HAVE_SYS_PARAM_H */
21840 # endif /* no _SC_PAGESIZE */
21841
21842 #endif /* no HAVE_GETPAGESIZE */
21843
21844 int
21845 main ()
21846 {
21847   char *data, *data2, *data3;
21848   int i, pagesize;
21849   int fd;
21850
21851   pagesize = getpagesize ();
21852
21853   /* First, make a file with some known garbage in it. */
21854   data = (char *) malloc (pagesize);
21855   if (!data)
21856     exit (1);
21857   for (i = 0; i < pagesize; ++i)
21858     *(data + i) = rand ();
21859   umask (0);
21860   fd = creat ("conftest.mmap", 0600);
21861   if (fd < 0)
21862     exit (1);
21863   if (write (fd, data, pagesize) != pagesize)
21864     exit (1);
21865   close (fd);
21866
21867   /* Next, try to mmap the file at a fixed address which already has
21868      something else allocated at it.  If we can, also make sure that
21869      we see the same garbage.  */
21870   fd = open ("conftest.mmap", O_RDWR);
21871   if (fd < 0)
21872     exit (1);
21873   data2 = (char *) malloc (2 * pagesize);
21874   if (!data2)
21875     exit (1);
21876   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21877   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21878                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21879     exit (1);
21880   for (i = 0; i < pagesize; ++i)
21881     if (*(data + i) != *(data2 + i))
21882       exit (1);
21883
21884   /* Finally, make sure that changes to the mapped area do not
21885      percolate back to the file as seen by read().  (This is a bug on
21886      some variants of i386 svr4.0.)  */
21887   for (i = 0; i < pagesize; ++i)
21888     *(data2 + i) = *(data2 + i) + 1;
21889   data3 = (char *) malloc (pagesize);
21890   if (!data3)
21891     exit (1);
21892   if (read (fd, data3, pagesize) != pagesize)
21893     exit (1);
21894   for (i = 0; i < pagesize; ++i)
21895     if (*(data + i) != *(data3 + i))
21896       exit (1);
21897   close (fd);
21898   exit (0);
21899 }
21900 _ACEOF
21901 rm -f conftest$ac_exeext
21902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21903   (eval $ac_link) 2>&5
21904   ac_status=$?
21905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908   (eval $ac_try) 2>&5
21909   ac_status=$?
21910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911   (exit $ac_status); }; }; then
21912   ac_cv_func_mmap_fixed_mapped=yes
21913 else
21914   echo "$as_me: program exited with status $ac_status" >&5
21915 echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21917
21918 ( exit $ac_status )
21919 ac_cv_func_mmap_fixed_mapped=no
21920 fi
21921 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21922 fi
21923 fi
21924 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21925 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21926 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21927
21928 cat >>confdefs.h <<\_ACEOF
21929 #define HAVE_MMAP 1
21930 _ACEOF
21931
21932 fi
21933 rm -f conftest.mmap
21934
21935 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21936 then
21937         { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
21938 echo "$as_me: WARNING: mmap() required but not found" >&2;}
21939 fi
21940 echo "$as_me:$LINENO: checking for mmap of files" >&5
21941 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21942 if test "${ac_cv_func_mmap_file+set}" = set; then
21943   echo $ECHO_N "(cached) $ECHO_C" >&6
21944 else
21945
21946
21947   ac_ext=c
21948 ac_cpp='$CPP $CPPFLAGS'
21949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21952
21953   if test "$cross_compiling" = yes; then
21954   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21955 See \`config.log' for more details." >&5
21956 echo "$as_me: error: cannot run test program while cross compiling
21957 See \`config.log' for more details." >&2;}
21958    { (exit 1); exit 1; }; }
21959 else
21960   cat >conftest.$ac_ext <<_ACEOF
21961 #line $LINENO "configure"
21962 /* confdefs.h.  */
21963 _ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h.  */
21967
21968 #ifdef HAVE_SYS_TYPES_H
21969 #include <sys/types.h>
21970 #endif
21971
21972 #ifdef HAVE_SYS_MMAN_H
21973 #include <sys/mman.h>
21974 #endif
21975
21976 #ifdef HAVE_FCNTL_H
21977 #include <fcntl.h>
21978 #endif
21979
21980   int fd;
21981   int main () {
21982   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
21983 _ACEOF
21984 rm -f conftest$ac_exeext
21985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21986   (eval $ac_link) 2>&5
21987   ac_status=$?
21988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991   (eval $ac_try) 2>&5
21992   ac_status=$?
21993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994   (exit $ac_status); }; }; then
21995   ac_cv_func_mmap_file=yes
21996 else
21997   echo "$as_me: program exited with status $ac_status" >&5
21998 echo "$as_me: failed program was:" >&5
21999 sed 's/^/| /' conftest.$ac_ext >&5
22000
22001 ( exit $ac_status )
22002 ac_cv_func_mmap_file=no
22003 fi
22004 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22005 fi
22006   ac_ext=c
22007 ac_cpp='$CPP $CPPFLAGS'
22008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22011
22012
22013 fi
22014 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22015 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22016 if test "$ac_cv_func_mmap_file" = yes; then
22017
22018 cat >>confdefs.h <<\_ACEOF
22019 #define HAVE_MMAP_FILE
22020 _ACEOF
22021
22022    MMAP_FILE=yes
22023
22024 fi
22025
22026 if test "$ac_cv_func_mmap_file" = "no"
22027 then
22028         { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
22029 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22030 fi
22031 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22032 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22033 if test "${ac_cv_header_mmap_anon+set}" = set; then
22034   echo $ECHO_N "(cached) $ECHO_C" >&6
22035 else
22036
22037
22038   ac_ext=c
22039 ac_cpp='$CPP $CPPFLAGS'
22040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22043
22044   cat >conftest.$ac_ext <<_ACEOF
22045 #line $LINENO "configure"
22046 /* confdefs.h.  */
22047 _ACEOF
22048 cat confdefs.h >>conftest.$ac_ext
22049 cat >>conftest.$ac_ext <<_ACEOF
22050 /* end confdefs.h.  */
22051 #include <sys/mman.h>
22052   #include <unistd.h>
22053   #include <fcntl.h>
22054 int
22055 main ()
22056 {
22057 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22058   ;
22059   return 0;
22060 }
22061 _ACEOF
22062 rm -f conftest.$ac_objext
22063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22064   (eval $ac_compile) 2>&5
22065   ac_status=$?
22066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067   (exit $ac_status); } &&
22068          { ac_try='test -s conftest.$ac_objext'
22069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22070   (eval $ac_try) 2>&5
22071   ac_status=$?
22072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073   (exit $ac_status); }; }; then
22074   ac_cv_header_mmap_anon=yes
22075 else
22076   echo "$as_me: failed program was:" >&5
22077 sed 's/^/| /' conftest.$ac_ext >&5
22078
22079 ac_cv_header_mmap_anon=no
22080 fi
22081 rm -f conftest.$ac_objext conftest.$ac_ext
22082   ac_ext=c
22083 ac_cpp='$CPP $CPPFLAGS'
22084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22087
22088
22089 fi
22090 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22091 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22092 if test "$ac_cv_header_mmap_anon" = yes; then
22093
22094 cat >>confdefs.h <<\_ACEOF
22095 #define HAVE_MMAP_ANONYMOUS
22096 _ACEOF
22097
22098 fi
22099
22100 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22101 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22102 if test "${ac_cv_type_signal+set}" = set; then
22103   echo $ECHO_N "(cached) $ECHO_C" >&6
22104 else
22105   cat >conftest.$ac_ext <<_ACEOF
22106 #line $LINENO "configure"
22107 /* confdefs.h.  */
22108 _ACEOF
22109 cat confdefs.h >>conftest.$ac_ext
22110 cat >>conftest.$ac_ext <<_ACEOF
22111 /* end confdefs.h.  */
22112 #include <sys/types.h>
22113 #include <signal.h>
22114 #ifdef signal
22115 # undef signal
22116 #endif
22117 #ifdef __cplusplus
22118 extern "C" void (*signal (int, void (*)(int)))(int);
22119 #else
22120 void (*signal ()) ();
22121 #endif
22122
22123 int
22124 main ()
22125 {
22126 int i;
22127   ;
22128   return 0;
22129 }
22130 _ACEOF
22131 rm -f conftest.$ac_objext
22132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22133   (eval $ac_compile) 2>&5
22134   ac_status=$?
22135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136   (exit $ac_status); } &&
22137          { ac_try='test -s conftest.$ac_objext'
22138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22139   (eval $ac_try) 2>&5
22140   ac_status=$?
22141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142   (exit $ac_status); }; }; then
22143   ac_cv_type_signal=void
22144 else
22145   echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22147
22148 ac_cv_type_signal=int
22149 fi
22150 rm -f conftest.$ac_objext conftest.$ac_ext
22151 fi
22152 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22153 echo "${ECHO_T}$ac_cv_type_signal" >&6
22154
22155 cat >>confdefs.h <<_ACEOF
22156 #define RETSIGTYPE $ac_cv_type_signal
22157 _ACEOF
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169 for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
22170 do
22171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22172 echo "$as_me:$LINENO: checking for $ac_func" >&5
22173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22174 if eval "test \"\${$as_ac_var+set}\" = set"; then
22175   echo $ECHO_N "(cached) $ECHO_C" >&6
22176 else
22177   cat >conftest.$ac_ext <<_ACEOF
22178 #line $LINENO "configure"
22179 /* confdefs.h.  */
22180 _ACEOF
22181 cat confdefs.h >>conftest.$ac_ext
22182 cat >>conftest.$ac_ext <<_ACEOF
22183 /* end confdefs.h.  */
22184 /* System header to define __stub macros and hopefully few prototypes,
22185     which can conflict with char $ac_func (); below.
22186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22187     <limits.h> exists even on freestanding compilers.  */
22188 #ifdef __STDC__
22189 # include <limits.h>
22190 #else
22191 # include <assert.h>
22192 #endif
22193 /* Override any gcc2 internal prototype to avoid an error.  */
22194 #ifdef __cplusplus
22195 extern "C"
22196 {
22197 #endif
22198 /* We use char because int might match the return type of a gcc2
22199    builtin and then its argument prototype would still apply.  */
22200 char $ac_func ();
22201 /* The GNU C library defines this for functions which it implements
22202     to always fail with ENOSYS.  Some functions are actually named
22203     something starting with __ and the normal name is an alias.  */
22204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22205 choke me
22206 #else
22207 char (*f) () = $ac_func;
22208 #endif
22209 #ifdef __cplusplus
22210 }
22211 #endif
22212
22213 int
22214 main ()
22215 {
22216 return f != $ac_func;
22217   ;
22218   return 0;
22219 }
22220 _ACEOF
22221 rm -f conftest.$ac_objext conftest$ac_exeext
22222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22223   (eval $ac_link) 2>&5
22224   ac_status=$?
22225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226   (exit $ac_status); } &&
22227          { ac_try='test -s conftest$ac_exeext'
22228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22229   (eval $ac_try) 2>&5
22230   ac_status=$?
22231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232   (exit $ac_status); }; }; then
22233   eval "$as_ac_var=yes"
22234 else
22235   echo "$as_me: failed program was:" >&5
22236 sed 's/^/| /' conftest.$ac_ext >&5
22237
22238 eval "$as_ac_var=no"
22239 fi
22240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22241 fi
22242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22244 if test `eval echo '${'$as_ac_var'}'` = yes; then
22245   cat >>confdefs.h <<_ACEOF
22246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22247 _ACEOF
22248
22249 fi
22250 done
22251
22252 echo "$as_me:$LINENO: checking for mprotect" >&5
22253 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22254 if test "${ac_cv_func_mprotect+set}" = set; then
22255   echo $ECHO_N "(cached) $ECHO_C" >&6
22256 else
22257   cat >conftest.$ac_ext <<_ACEOF
22258 #line $LINENO "configure"
22259 /* confdefs.h.  */
22260 _ACEOF
22261 cat confdefs.h >>conftest.$ac_ext
22262 cat >>conftest.$ac_ext <<_ACEOF
22263 /* end confdefs.h.  */
22264 /* System header to define __stub macros and hopefully few prototypes,
22265     which can conflict with char mprotect (); below.
22266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22267     <limits.h> exists even on freestanding compilers.  */
22268 #ifdef __STDC__
22269 # include <limits.h>
22270 #else
22271 # include <assert.h>
22272 #endif
22273 /* Override any gcc2 internal prototype to avoid an error.  */
22274 #ifdef __cplusplus
22275 extern "C"
22276 {
22277 #endif
22278 /* We use char because int might match the return type of a gcc2
22279    builtin and then its argument prototype would still apply.  */
22280 char mprotect ();
22281 /* The GNU C library defines this for functions which it implements
22282     to always fail with ENOSYS.  Some functions are actually named
22283     something starting with __ and the normal name is an alias.  */
22284 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22285 choke me
22286 #else
22287 char (*f) () = mprotect;
22288 #endif
22289 #ifdef __cplusplus
22290 }
22291 #endif
22292
22293 int
22294 main ()
22295 {
22296 return f != mprotect;
22297   ;
22298   return 0;
22299 }
22300 _ACEOF
22301 rm -f conftest.$ac_objext conftest$ac_exeext
22302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22303   (eval $ac_link) 2>&5
22304   ac_status=$?
22305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306   (exit $ac_status); } &&
22307          { ac_try='test -s conftest$ac_exeext'
22308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22309   (eval $ac_try) 2>&5
22310   ac_status=$?
22311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312   (exit $ac_status); }; }; then
22313   ac_cv_func_mprotect=yes
22314 else
22315   echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22317
22318 ac_cv_func_mprotect=no
22319 fi
22320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22321 fi
22322 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22323 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22324 if test $ac_cv_func_mprotect = yes; then
22325   :
22326 else
22327   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22328 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22329    { (exit 1); exit 1; }; }
22330 fi
22331
22332
22333
22334   echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
22335 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
22336
22337
22338   ac_ext=c
22339 ac_cpp='$CPP $CPPFLAGS'
22340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22343
22344   oldcflags="$CFLAGS"
22345   CFLAGS="$CFLAGS -Wl,-R."
22346   cat >conftest.$ac_ext <<_ACEOF
22347 int main() { return 0; }
22348 _ACEOF
22349 rm -f conftest.$ac_objext conftest$ac_exeext
22350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22351   (eval $ac_link) 2>&5
22352   ac_status=$?
22353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354   (exit $ac_status); } &&
22355          { ac_try='test -s conftest$ac_exeext'
22356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22357   (eval $ac_try) 2>&5
22358   ac_status=$?
22359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360   (exit $ac_status); }; }; then
22361   ac_cv_link_use_r=yes
22362 else
22363   echo "$as_me: failed program was:" >&5
22364 sed 's/^/| /' conftest.$ac_ext >&5
22365
22366 ac_cv_link_use_r=no
22367 fi
22368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22369   CFLAGS="$oldcflags"
22370   ac_ext=c
22371 ac_cpp='$CPP $CPPFLAGS'
22372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22375
22376   echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
22377 echo "${ECHO_T}$ac_cv_link_use_r" >&6
22378   if test "$ac_cv_link_use_r" = yes
22379   then
22380
22381 cat >>confdefs.h <<\_ACEOF
22382 #define HAVE_LINK_R 1
22383 _ACEOF
22384
22385   fi
22386
22387
22388 # Check whether --enable-optimized or --disable-optimized was given.
22389 if test "${enable_optimized+set}" = set; then
22390   enableval="$enable_optimized"
22391
22392 else
22393   enableval=no
22394 fi;
22395 if test ${enableval} = "no"
22396 then
22397         ENABLE_OPTIMIZED=
22398
22399 else
22400         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22401
22402 fi
22403
22404
22405
22406
22407  # Check whether --enable-spec95 or --disable-spec95 was given.
22408 if test "${enable_spec95+set}" = set; then
22409   enableval="$enable_spec95"
22410   checkresult=$enableval
22411 else
22412   checkresult=auto
22413 fi;
22414 echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
22415 echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
22416 case "$checkresult" in
22417 auto|yes)
22418     defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
22419         if test -d "$defaultdir"
22420         then
22421                 SPEC95_ROOT=$defaultdir
22422
22423                 USE_SPEC95=USE_SPEC95=1
22424
22425         checkresult="yes, found in $defaultdir"
22426     else
22427         checkresult=no
22428     fi
22429     ;;
22430 no)
22431
22432
22433     checkresult=no
22434     ;;
22435 *)  if test -d "$checkresult"
22436     then
22437         SPEC95_ROOT="$checkresult"
22438
22439         USE_SPEC95=USE_SPEC95=1
22440
22441         checkresult="yes, in $checkresult"
22442     else
22443
22444
22445         checkresult="no, not found in $checkresult"
22446     fi
22447     ;;
22448 esac
22449 echo "$as_me:$LINENO: result: $checkresult" >&5
22450 echo "${ECHO_T}$checkresult" >&6
22451
22452
22453
22454  # Check whether --enable-spec2000 or --disable-spec2000 was given.
22455 if test "${enable_spec2000+set}" = set; then
22456   enableval="$enable_spec2000"
22457   checkresult=$enableval
22458 else
22459   checkresult=auto
22460 fi;
22461 echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
22462 echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
22463 case "$checkresult" in
22464 auto|yes)
22465     defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22466         if test -d "$defaultdir"
22467         then
22468                 SPEC2000_ROOT=$defaultdir
22469
22470                 USE_SPEC2000=USE_SPEC2000=1
22471
22472         checkresult="yes, found in $defaultdir"
22473     else
22474         checkresult=no
22475     fi
22476     ;;
22477 no)
22478
22479
22480     checkresult=no
22481     ;;
22482 *)  if test -d "$checkresult"
22483     then
22484         SPEC2000_ROOT="$checkresult"
22485
22486         USE_SPEC2000=USE_SPEC2000=1
22487
22488         checkresult="yes, in $checkresult"
22489     else
22490
22491
22492         checkresult="no, not found in $checkresult"
22493     fi
22494     ;;
22495 esac
22496 echo "$as_me:$LINENO: result: $checkresult" >&5
22497 echo "${ECHO_T}$checkresult" >&6
22498
22499
22500
22501  # Check whether --enable-povray or --disable-povray was given.
22502 if test "${enable_povray+set}" = set; then
22503   enableval="$enable_povray"
22504   checkresult=$enableval
22505 else
22506   checkresult=auto
22507 fi;
22508 echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
22509 echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
22510 case "$checkresult" in
22511 auto|yes)
22512     defaultdir=/home/vadve/shared/benchmarks/povray31
22513         if test -d "$defaultdir"
22514         then
22515                 POVRAY_ROOT=$defaultdir
22516
22517                 USE_POVRAY=USE_POVRAY=1
22518
22519         checkresult="yes, found in $defaultdir"
22520     else
22521         checkresult=no
22522     fi
22523     ;;
22524 no)
22525
22526
22527     checkresult=no
22528     ;;
22529 *)  if test -d "$checkresult"
22530     then
22531         POVRAY_ROOT="$checkresult"
22532
22533         USE_POVRAY=USE_POVRAY=1
22534
22535         checkresult="yes, in $checkresult"
22536     else
22537
22538
22539         checkresult="no, not found in $checkresult"
22540     fi
22541     ;;
22542 esac
22543 echo "$as_me:$LINENO: result: $checkresult" >&5
22544 echo "${ECHO_T}$checkresult" >&6
22545
22546
22547
22548 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22549 if test "${enable_precompiled_bytecode+set}" = set; then
22550   enableval="$enable_precompiled_bytecode"
22551
22552 else
22553   enableval=no
22554 fi;
22555 if test ${enableval} = "no"
22556 then
22557         UPB=
22558
22559 else
22560         UPB=USE_PRECOMPILED_BYTECODE=1
22561
22562 fi
22563
22564 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22565 if test "${enable_llc_diffs+set}" = set; then
22566   enableval="$enable_llc_diffs"
22567
22568 else
22569   enableval=yes
22570 fi;
22571 if test ${enableval} = "no"
22572 then
22573         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22574
22575 else
22576         DISABLE_LLC_DIFFS=
22577
22578 fi
22579
22580 # Check whether --enable-jit or --disable-jit was given.
22581 if test "${enable_jit+set}" = set; then
22582   enableval="$enable_jit"
22583
22584 else
22585   enableval=default
22586 fi;
22587 if test ${enableval} = "no"
22588 then
22589         JIT=
22590
22591 else
22592         case $target in
22593                 *i*86*)
22594                         JIT=TARGET_HAS_JIT=1
22595
22596                         ;;
22597                 *sparc*)
22598                         JIT=TARGET_HAS_JIT=1
22599
22600                         ;;
22601                 *)
22602                         JIT=
22603
22604                         ;;
22605         esac
22606 fi
22607
22608
22609 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22610 if test "${with_llvmgccdir+set}" = set; then
22611   withval="$with_llvmgccdir"
22612   LLVMGCCDIR=$withval
22613
22614 fi;
22615 echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22616 echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22617 LLVM_GCC_CHECK=no
22618 if test -d "$LLVMGCCDIR"
22619 then
22620         if test -x "$LLVMGCCDIR/bin/gcc"
22621         then
22622                 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22623         fi
22624 fi
22625 llvmgccwarn=no
22626 echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22627 echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22628 if test "$LLVM_GCC_CHECK" = "no"
22629 then
22630     llvmgccwarn=yes
22631 fi
22632 echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22633 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22634 LLVM_GCC_SANE=no
22635 if test -x "$LLVM_GCC_CHECK"
22636 then
22637         cp /dev/null conftest.c
22638     "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22639         if test $? -eq 0
22640         then
22641                 LLVM_GCC_SANE=yes
22642         fi
22643         rm conftest.c
22644         llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
22645         LLVMCC1=$llvmcc1path
22646
22647         llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
22648         LLVMCC1PLUS=$llvmcc1pluspath
22649
22650 fi
22651 echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22652 echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22653 if test "$LLVM_GCC_SANE" = "no"
22654 then
22655         llvmgccwarn=yes
22656 fi
22657
22658
22659 # Check whether --with-bcrepos or --without-bcrepos was given.
22660 if test "${with_bcrepos+set}" = set; then
22661   withval="$with_bcrepos"
22662   BCR=$withval
22663
22664 else
22665   BCR=/home/vadve/lattner/LLVMPrograms
22666
22667 fi;
22668
22669
22670 # Check whether --with-papi or --without-papi was given.
22671 if test "${with_papi+set}" = set; then
22672   withval="$with_papi"
22673   PAPIDIR=$withval
22674
22675 else
22676   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22677
22678 fi;
22679
22680 echo "$as_me:$LINENO: checking for shared library suffix" >&5
22681 echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
22682 eval "SHLIBEXT=$shrext"
22683 echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
22684 echo "${ECHO_T}$SHLIBEXT" >&6
22685 SHLIBEXT=$SHLIBEXT
22686
22687
22688 cat >>confdefs.h <<_ACEOF
22689 #define SHLIBEXT "$SHLIBEXT"
22690 _ACEOF
22691
22692
22693 cat >confcache <<\_ACEOF
22694 # This file is a shell script that caches the results of configure
22695 # tests run on this system so they can be shared between configure
22696 # scripts and configure runs, see configure's option --config-cache.
22697 # It is not useful on other systems.  If it contains results you don't
22698 # want to keep, you may remove or edit it.
22699 #
22700 # config.status only pays attention to the cache file if you give it
22701 # the --recheck option to rerun configure.
22702 #
22703 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22704 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22705 # following values.
22706
22707 _ACEOF
22708
22709 # The following way of writing the cache mishandles newlines in values,
22710 # but we know of no workaround that is simple, portable, and efficient.
22711 # So, don't put newlines in cache variables' values.
22712 # Ultrix sh set writes to stderr and can't be redirected directly,
22713 # and sets the high bit in the cache file unless we assign to the vars.
22714 {
22715   (set) 2>&1 |
22716     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22717     *ac_space=\ *)
22718       # `set' does not quote correctly, so add quotes (double-quote
22719       # substitution turns \\\\ into \\, and sed turns \\ into \).
22720       sed -n \
22721         "s/'/'\\\\''/g;
22722           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22723       ;;
22724     *)
22725       # `set' quotes correctly as required by POSIX, so do not add quotes.
22726       sed -n \
22727         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22728       ;;
22729     esac;
22730 } |
22731   sed '
22732      t clear
22733      : clear
22734      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22735      t end
22736      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22737      : end' >>confcache
22738 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22739   if test -w $cache_file; then
22740     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22741     cat confcache >$cache_file
22742   else
22743     echo "not updating unwritable cache $cache_file"
22744   fi
22745 fi
22746 rm -f confcache
22747
22748 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22749 # Let make expand exec_prefix.
22750 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22751
22752 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22753 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22754 # trailing colons and then remove the whole line if VPATH becomes empty
22755 # (actually we leave an empty line to preserve line numbers).
22756 if test "x$srcdir" = x.; then
22757   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22758 s/:*\$(srcdir):*/:/;
22759 s/:*\${srcdir}:*/:/;
22760 s/:*@srcdir@:*/:/;
22761 s/^\([^=]*=[    ]*\):*/\1/;
22762 s/:*$//;
22763 s/^[^=]*=[      ]*$//;
22764 }'
22765 fi
22766
22767 DEFS=-DHAVE_CONFIG_H
22768
22769 ac_libobjs=
22770 ac_ltlibobjs=
22771 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22772   # 1. Remove the extension, and $U if already installed.
22773   ac_i=`echo "$ac_i" |
22774          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22775   # 2. Add them.
22776   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22777   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22778 done
22779 LIBOBJS=$ac_libobjs
22780
22781 LTLIBOBJS=$ac_ltlibobjs
22782
22783
22784
22785 : ${CONFIG_STATUS=./config.status}
22786 ac_clean_files_save=$ac_clean_files
22787 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22788 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22789 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22790 cat >$CONFIG_STATUS <<_ACEOF
22791 #! $SHELL
22792 # Generated by $as_me.
22793 # Run this file to recreate the current configuration.
22794 # Compiler output produced by configure, useful for debugging
22795 # configure, is in config.log if it exists.
22796
22797 debug=false
22798 ac_cs_recheck=false
22799 ac_cs_silent=false
22800 SHELL=\${CONFIG_SHELL-$SHELL}
22801 _ACEOF
22802
22803 cat >>$CONFIG_STATUS <<\_ACEOF
22804 ## --------------------- ##
22805 ## M4sh Initialization.  ##
22806 ## --------------------- ##
22807
22808 # Be Bourne compatible
22809 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22810   emulate sh
22811   NULLCMD=:
22812   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22813   # is contrary to our usage.  Disable this feature.
22814   alias -g '${1+"$@"}'='"$@"'
22815 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22816   set -o posix
22817 fi
22818
22819 # Support unset when possible.
22820 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22821   as_unset=unset
22822 else
22823   as_unset=false
22824 fi
22825
22826
22827 # Work around bugs in pre-3.0 UWIN ksh.
22828 $as_unset ENV MAIL MAILPATH
22829 PS1='$ '
22830 PS2='> '
22831 PS4='+ '
22832
22833 # NLS nuisances.
22834 for as_var in \
22835   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22836   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22837   LC_TELEPHONE LC_TIME
22838 do
22839   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
22840     eval $as_var=C; export $as_var
22841   else
22842     $as_unset $as_var
22843   fi
22844 done
22845
22846 # Required to use basename.
22847 if expr a : '\(a\)' >/dev/null 2>&1; then
22848   as_expr=expr
22849 else
22850   as_expr=false
22851 fi
22852
22853 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22854   as_basename=basename
22855 else
22856   as_basename=false
22857 fi
22858
22859
22860 # Name of the executable.
22861 as_me=`$as_basename "$0" ||
22862 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22863          X"$0" : 'X\(//\)$' \| \
22864          X"$0" : 'X\(/\)$' \| \
22865          .     : '\(.\)' 2>/dev/null ||
22866 echo X/"$0" |
22867     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22868           /^X\/\(\/\/\)$/{ s//\1/; q; }
22869           /^X\/\(\/\).*/{ s//\1/; q; }
22870           s/.*/./; q'`
22871
22872
22873 # PATH needs CR, and LINENO needs CR and PATH.
22874 # Avoid depending upon Character Ranges.
22875 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22876 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22877 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22878 as_cr_digits='0123456789'
22879 as_cr_alnum=$as_cr_Letters$as_cr_digits
22880
22881 # The user is always right.
22882 if test "${PATH_SEPARATOR+set}" != set; then
22883   echo "#! /bin/sh" >conf$$.sh
22884   echo  "exit 0"   >>conf$$.sh
22885   chmod +x conf$$.sh
22886   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22887     PATH_SEPARATOR=';'
22888   else
22889     PATH_SEPARATOR=:
22890   fi
22891   rm -f conf$$.sh
22892 fi
22893
22894
22895   as_lineno_1=$LINENO
22896   as_lineno_2=$LINENO
22897   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22898   test "x$as_lineno_1" != "x$as_lineno_2" &&
22899   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22900   # Find who we are.  Look in the path if we contain no path at all
22901   # relative or not.
22902   case $0 in
22903     *[\\/]* ) as_myself=$0 ;;
22904     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22905 for as_dir in $PATH
22906 do
22907   IFS=$as_save_IFS
22908   test -z "$as_dir" && as_dir=.
22909   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22910 done
22911
22912        ;;
22913   esac
22914   # We did not find ourselves, most probably we were run as `sh COMMAND'
22915   # in which case we are not to be found in the path.
22916   if test "x$as_myself" = x; then
22917     as_myself=$0
22918   fi
22919   if test ! -f "$as_myself"; then
22920     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22921 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22922    { (exit 1); exit 1; }; }
22923   fi
22924   case $CONFIG_SHELL in
22925   '')
22926     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22927 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22928 do
22929   IFS=$as_save_IFS
22930   test -z "$as_dir" && as_dir=.
22931   for as_base in sh bash ksh sh5; do
22932          case $as_dir in
22933          /*)
22934            if ("$as_dir/$as_base" -c '
22935   as_lineno_1=$LINENO
22936   as_lineno_2=$LINENO
22937   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22938   test "x$as_lineno_1" != "x$as_lineno_2" &&
22939   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22940              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22941              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22942              CONFIG_SHELL=$as_dir/$as_base
22943              export CONFIG_SHELL
22944              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22945            fi;;
22946          esac
22947        done
22948 done
22949 ;;
22950   esac
22951
22952   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22953   # uniformly replaced by the line number.  The first 'sed' inserts a
22954   # line-number line before each line; the second 'sed' does the real
22955   # work.  The second script uses 'N' to pair each line-number line
22956   # with the numbered line, and appends trailing '-' during
22957   # substitution so that $LINENO is not a special case at line end.
22958   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22959   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22960   sed '=' <$as_myself |
22961     sed '
22962       N
22963       s,$,-,
22964       : loop
22965       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22966       t loop
22967       s,-$,,
22968       s,^['$as_cr_digits']*\n,,
22969     ' >$as_me.lineno &&
22970   chmod +x $as_me.lineno ||
22971     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22972 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22973    { (exit 1); exit 1; }; }
22974
22975   # Don't try to exec as it changes $[0], causing all sort of problems
22976   # (the dirname of $[0] is not the place where we might find the
22977   # original and so on.  Autoconf is especially sensible to this).
22978   . ./$as_me.lineno
22979   # Exit status is that of the last command.
22980   exit
22981 }
22982
22983
22984 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22985   *c*,-n*) ECHO_N= ECHO_C='
22986 ' ECHO_T='      ' ;;
22987   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22988   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22989 esac
22990
22991 if expr a : '\(a\)' >/dev/null 2>&1; then
22992   as_expr=expr
22993 else
22994   as_expr=false
22995 fi
22996
22997 rm -f conf$$ conf$$.exe conf$$.file
22998 echo >conf$$.file
22999 if ln -s conf$$.file conf$$ 2>/dev/null; then
23000   # We could just check for DJGPP; but this test a) works b) is more generic
23001   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23002   if test -f conf$$.exe; then
23003     # Don't use ln at all; we don't have any links
23004     as_ln_s='cp -p'
23005   else
23006     as_ln_s='ln -s'
23007   fi
23008 elif ln conf$$.file conf$$ 2>/dev/null; then
23009   as_ln_s=ln
23010 else
23011   as_ln_s='cp -p'
23012 fi
23013 rm -f conf$$ conf$$.exe conf$$.file
23014
23015 if mkdir -p . 2>/dev/null; then
23016   as_mkdir_p=:
23017 else
23018   as_mkdir_p=false
23019 fi
23020
23021 as_executable_p="test -f"
23022
23023 # Sed expression to map a string onto a valid CPP name.
23024 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23025
23026 # Sed expression to map a string onto a valid variable name.
23027 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23028
23029
23030 # IFS
23031 # We need space, tab and new line, in precisely that order.
23032 as_nl='
23033 '
23034 IFS="   $as_nl"
23035
23036 # CDPATH.
23037 $as_unset CDPATH
23038
23039 exec 6>&1
23040
23041 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23042 # report actual input values of CONFIG_FILES etc. instead of their
23043 # values after options handling.  Logging --version etc. is OK.
23044 exec 5>>config.log
23045 {
23046   echo
23047   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23048 ## Running $as_me. ##
23049 _ASBOX
23050 } >&5
23051 cat >&5 <<_CSEOF
23052
23053 This file was extended by [LLVM] $as_me [1.3], which was
23054 generated by GNU Autoconf 2.57.  Invocation command line was
23055
23056   CONFIG_FILES    = $CONFIG_FILES
23057   CONFIG_HEADERS  = $CONFIG_HEADERS
23058   CONFIG_LINKS    = $CONFIG_LINKS
23059   CONFIG_COMMANDS = $CONFIG_COMMANDS
23060   $ $0 $@
23061
23062 _CSEOF
23063 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23064 echo >&5
23065 _ACEOF
23066
23067 # Files that config.status was made for.
23068 if test -n "$ac_config_files"; then
23069   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23070 fi
23071
23072 if test -n "$ac_config_headers"; then
23073   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23074 fi
23075
23076 if test -n "$ac_config_links"; then
23077   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23078 fi
23079
23080 if test -n "$ac_config_commands"; then
23081   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23082 fi
23083
23084 cat >>$CONFIG_STATUS <<\_ACEOF
23085
23086 ac_cs_usage="\
23087 \`$as_me' instantiates files from templates according to the
23088 current configuration.
23089
23090 Usage: $0 [OPTIONS] [FILE]...
23091
23092   -h, --help       print this help, then exit
23093   -V, --version    print version number, then exit
23094   -q, --quiet      do not print progress messages
23095   -d, --debug      don't remove temporary files
23096       --recheck    update $as_me by reconfiguring in the same conditions
23097   --file=FILE[:TEMPLATE]
23098                    instantiate the configuration file FILE
23099   --header=FILE[:TEMPLATE]
23100                    instantiate the configuration header FILE
23101
23102 Configuration files:
23103 $config_files
23104
23105 Configuration headers:
23106 $config_headers
23107
23108 Configuration commands:
23109 $config_commands
23110
23111 Report bugs to <bug-autoconf@gnu.org>."
23112 _ACEOF
23113
23114 cat >>$CONFIG_STATUS <<_ACEOF
23115 ac_cs_version="\\
23116 [LLVM] config.status [1.3]
23117 configured by $0, generated by GNU Autoconf 2.57,
23118   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23119
23120 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23121 Free Software Foundation, Inc.
23122 This config.status script is free software; the Free Software Foundation
23123 gives unlimited permission to copy, distribute and modify it."
23124 srcdir=$srcdir
23125 INSTALL="$INSTALL"
23126 _ACEOF
23127
23128 cat >>$CONFIG_STATUS <<\_ACEOF
23129 # If no file are specified by the user, then we need to provide default
23130 # value.  By we need to know if files were specified by the user.
23131 ac_need_defaults=:
23132 while test $# != 0
23133 do
23134   case $1 in
23135   --*=*)
23136     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23137     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23138     ac_shift=:
23139     ;;
23140   -*)
23141     ac_option=$1
23142     ac_optarg=$2
23143     ac_shift=shift
23144     ;;
23145   *) # This is not an option, so the user has probably given explicit
23146      # arguments.
23147      ac_option=$1
23148      ac_need_defaults=false;;
23149   esac
23150
23151   case $ac_option in
23152   # Handling of the options.
23153 _ACEOF
23154 cat >>$CONFIG_STATUS <<\_ACEOF
23155   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23156     ac_cs_recheck=: ;;
23157   --version | --vers* | -V )
23158     echo "$ac_cs_version"; exit 0 ;;
23159   --he | --h)
23160     # Conflict between --help and --header
23161     { { echo "$as_me:$LINENO: error: ambiguous option: $1
23162 Try \`$0 --help' for more information." >&5
23163 echo "$as_me: error: ambiguous option: $1
23164 Try \`$0 --help' for more information." >&2;}
23165    { (exit 1); exit 1; }; };;
23166   --help | --hel | -h )
23167     echo "$ac_cs_usage"; exit 0 ;;
23168   --debug | --d* | -d )
23169     debug=: ;;
23170   --file | --fil | --fi | --f )
23171     $ac_shift
23172     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23173     ac_need_defaults=false;;
23174   --header | --heade | --head | --hea )
23175     $ac_shift
23176     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23177     ac_need_defaults=false;;
23178   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23179   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23180     ac_cs_silent=: ;;
23181
23182   # This is an error.
23183   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23184 Try \`$0 --help' for more information." >&5
23185 echo "$as_me: error: unrecognized option: $1
23186 Try \`$0 --help' for more information." >&2;}
23187    { (exit 1); exit 1; }; } ;;
23188
23189   *) ac_config_targets="$ac_config_targets $1" ;;
23190
23191   esac
23192   shift
23193 done
23194
23195 ac_configure_extra_args=
23196
23197 if $ac_cs_silent; then
23198   exec 6>/dev/null
23199   ac_configure_extra_args="$ac_configure_extra_args --silent"
23200 fi
23201
23202 _ACEOF
23203 cat >>$CONFIG_STATUS <<_ACEOF
23204 if \$ac_cs_recheck; then
23205   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23206   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23207 fi
23208
23209 _ACEOF
23210
23211 cat >>$CONFIG_STATUS <<_ACEOF
23212 #
23213 # INIT-COMMANDS section.
23214 #
23215
23216 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23217 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
23218 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
23219 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23220 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23221 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23222 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23223 ${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
23224 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
23225 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
23226 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests`
23227 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
23228 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
23229 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
23230 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
23231 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
23232 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
23233 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
23234 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
23235 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
23236 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
23237 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
23238 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
23239 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
23240 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
23241 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
23242 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
23243 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
23244 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
23245 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
23246 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
23247 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
23248 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
23249 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
23250 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
23251 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
23252 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
23253 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
23254 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
23255 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
23256 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
23257 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
23258 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
23259 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
23260 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
23261 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
23262 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
23263 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
23264 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
23265 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
23266
23267 _ACEOF
23268
23269
23270
23271 cat >>$CONFIG_STATUS <<\_ACEOF
23272 for ac_config_target in $ac_config_targets
23273 do
23274   case "$ac_config_target" in
23275   # Handling of arguments.
23276   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23277   "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
23278   "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
23279   "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
23280   "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
23281   "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
23282   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23283   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23284   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23285   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
23286   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23287   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23288   "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23289   "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
23290   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
23291   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
23292   "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;;
23293   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
23294   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
23295   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
23296   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
23297   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
23298   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
23299   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
23300   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
23301   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
23302   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
23303   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
23304   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23305   "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
23306   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23307   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23308   "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
23309   "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
23310   "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
23311   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23312   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23313   "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
23314   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
23315   "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
23316   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
23317   "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
23318   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
23319   "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
23320   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
23321   "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
23322   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
23323   "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
23324   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
23325   "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
23326   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23327   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23328   "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
23329   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23330   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23331   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23332   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23333   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23334 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23335    { (exit 1); exit 1; }; };;
23336   esac
23337 done
23338
23339 # If the user did not use the arguments to specify the items to instantiate,
23340 # then the envvar interface is used.  Set only those that are not.
23341 # We use the long form for the default assignment because of an extremely
23342 # bizarre bug on SunOS 4.1.3.
23343 if $ac_need_defaults; then
23344   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23345   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23346   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23347 fi
23348
23349 # Have a temporary directory for convenience.  Make it in the build tree
23350 # simply because there is no reason to put it here, and in addition,
23351 # creating and moving files from /tmp can sometimes cause problems.
23352 # Create a temporary directory, and hook for its removal unless debugging.
23353 $debug ||
23354 {
23355   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23356   trap '{ (exit 1); exit 1; }' 1 2 13 15
23357 }
23358
23359 # Create a (secure) tmp directory for tmp files.
23360
23361 {
23362   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23363   test -n "$tmp" && test -d "$tmp"
23364 }  ||
23365 {
23366   tmp=./confstat$$-$RANDOM
23367   (umask 077 && mkdir $tmp)
23368 } ||
23369 {
23370    echo "$me: cannot create a temporary directory in ." >&2
23371    { (exit 1); exit 1; }
23372 }
23373
23374 _ACEOF
23375
23376 cat >>$CONFIG_STATUS <<_ACEOF
23377
23378 #
23379 # CONFIG_FILES section.
23380 #
23381
23382 # No need to generate the scripts if there are no CONFIG_FILES.
23383 # This happens for instance when ./config.status config.h
23384 if test -n "\$CONFIG_FILES"; then
23385   # Protect against being on the right side of a sed subst in config.status.
23386   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23387    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23388 s,@SHELL@,$SHELL,;t t
23389 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23390 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23391 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23392 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23393 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23394 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23395 s,@exec_prefix@,$exec_prefix,;t t
23396 s,@prefix@,$prefix,;t t
23397 s,@program_transform_name@,$program_transform_name,;t t
23398 s,@bindir@,$bindir,;t t
23399 s,@sbindir@,$sbindir,;t t
23400 s,@libexecdir@,$libexecdir,;t t
23401 s,@datadir@,$datadir,;t t
23402 s,@sysconfdir@,$sysconfdir,;t t
23403 s,@sharedstatedir@,$sharedstatedir,;t t
23404 s,@localstatedir@,$localstatedir,;t t
23405 s,@libdir@,$libdir,;t t
23406 s,@includedir@,$includedir,;t t
23407 s,@oldincludedir@,$oldincludedir,;t t
23408 s,@infodir@,$infodir,;t t
23409 s,@mandir@,$mandir,;t t
23410 s,@build_alias@,$build_alias,;t t
23411 s,@host_alias@,$host_alias,;t t
23412 s,@target_alias@,$target_alias,;t t
23413 s,@DEFS@,$DEFS,;t t
23414 s,@ECHO_C@,$ECHO_C,;t t
23415 s,@ECHO_N@,$ECHO_N,;t t
23416 s,@ECHO_T@,$ECHO_T,;t t
23417 s,@LIBS@,$LIBS,;t t
23418 s,@subdirs@,$subdirs,;t t
23419 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23420 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23421 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23422 s,@build@,$build,;t t
23423 s,@build_cpu@,$build_cpu,;t t
23424 s,@build_vendor@,$build_vendor,;t t
23425 s,@build_os@,$build_os,;t t
23426 s,@host@,$host,;t t
23427 s,@host_cpu@,$host_cpu,;t t
23428 s,@host_vendor@,$host_vendor,;t t
23429 s,@host_os@,$host_os,;t t
23430 s,@target@,$target,;t t
23431 s,@target_cpu@,$target_cpu,;t t
23432 s,@target_vendor@,$target_vendor,;t t
23433 s,@target_os@,$target_os,;t t
23434 s,@OS@,$OS,;t t
23435 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23436 s,@ARCH@,$ARCH,;t t
23437 s,@CXX@,$CXX,;t t
23438 s,@CXXFLAGS@,$CXXFLAGS,;t t
23439 s,@LDFLAGS@,$LDFLAGS,;t t
23440 s,@CPPFLAGS@,$CPPFLAGS,;t t
23441 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23442 s,@EXEEXT@,$EXEEXT,;t t
23443 s,@OBJEXT@,$OBJEXT,;t t
23444 s,@CC@,$CC,;t t
23445 s,@CFLAGS@,$CFLAGS,;t t
23446 s,@ac_ct_CC@,$ac_ct_CC,;t t
23447 s,@CPP@,$CPP,;t t
23448 s,@ifGNUmake@,$ifGNUmake,;t t
23449 s,@LEX@,$LEX,;t t
23450 s,@LEXLIB@,$LEXLIB,;t t
23451 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23452 s,@YACC@,$YACC,;t t
23453 s,@BISON@,$BISON,;t t
23454 s,@EGREP@,$EGREP,;t t
23455 s,@LN_S@,$LN_S,;t t
23456 s,@ECHO@,$ECHO,;t t
23457 s,@AR@,$AR,;t t
23458 s,@ac_ct_AR@,$ac_ct_AR,;t t
23459 s,@RANLIB@,$RANLIB,;t t
23460 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23461 s,@STRIP@,$STRIP,;t t
23462 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23463 s,@CXXCPP@,$CXXCPP,;t t
23464 s,@F77@,$F77,;t t
23465 s,@FFLAGS@,$FFLAGS,;t t
23466 s,@ac_ct_F77@,$ac_ct_F77,;t t
23467 s,@LIBTOOL@,$LIBTOOL,;t t
23468 s,@DOT@,$DOT,;t t
23469 s,@ETAGS@,$ETAGS,;t t
23470 s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
23471 s,@PYTHON@,$PYTHON,;t t
23472 s,@QMTEST@,$QMTEST,;t t
23473 s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
23474 s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
23475 s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
23476 s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
23477 s,@ENDIAN@,$ENDIAN,;t t
23478 s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
23479 s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
23480 s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
23481 s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
23482 s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
23483 s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
23484 s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
23485 s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
23486 s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
23487 s,@ALLOCA@,$ALLOCA,;t t
23488 s,@MMAP_FILE@,$MMAP_FILE,;t t
23489 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23490 s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
23491 s,@USE_SPEC95@,$USE_SPEC95,;t t
23492 s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
23493 s,@USE_SPEC2000@,$USE_SPEC2000,;t t
23494 s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
23495 s,@USE_POVRAY@,$USE_POVRAY,;t t
23496 s,@UPB@,$UPB,;t t
23497 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23498 s,@JIT@,$JIT,;t t
23499 s,@LLVMCC1@,$LLVMCC1,;t t
23500 s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
23501 s,@BCR@,$BCR,;t t
23502 s,@PAPIDIR@,$PAPIDIR,;t t
23503 s,@SHLIBEXT@,$SHLIBEXT,;t t
23504 s,@LIBOBJS@,$LIBOBJS,;t t
23505 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23506 CEOF
23507
23508 _ACEOF
23509
23510   cat >>$CONFIG_STATUS <<\_ACEOF
23511   # Split the substitutions into bite-sized pieces for seds with
23512   # small command number limits, like on Digital OSF/1 and HP-UX.
23513   ac_max_sed_lines=48
23514   ac_sed_frag=1 # Number of current file.
23515   ac_beg=1 # First line for current file.
23516   ac_end=$ac_max_sed_lines # Line after last line for current file.
23517   ac_more_lines=:
23518   ac_sed_cmds=
23519   while $ac_more_lines; do
23520     if test $ac_beg -gt 1; then
23521       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23522     else
23523       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23524     fi
23525     if test ! -s $tmp/subs.frag; then
23526       ac_more_lines=false
23527     else
23528       # The purpose of the label and of the branching condition is to
23529       # speed up the sed processing (if there are no `@' at all, there
23530       # is no need to browse any of the substitutions).
23531       # These are the two extra sed commands mentioned above.
23532       (echo ':t
23533   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23534       if test -z "$ac_sed_cmds"; then
23535         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23536       else
23537         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23538       fi
23539       ac_sed_frag=`expr $ac_sed_frag + 1`
23540       ac_beg=$ac_end
23541       ac_end=`expr $ac_end + $ac_max_sed_lines`
23542     fi
23543   done
23544   if test -z "$ac_sed_cmds"; then
23545     ac_sed_cmds=cat
23546   fi
23547 fi # test -n "$CONFIG_FILES"
23548
23549 _ACEOF
23550 cat >>$CONFIG_STATUS <<\_ACEOF
23551 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23552   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23553   case $ac_file in
23554   - | *:- | *:-:* ) # input from stdin
23555         cat >$tmp/stdin
23556         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23557         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23558   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23559         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23560   * )   ac_file_in=$ac_file.in ;;
23561   esac
23562
23563   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23564   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23565 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23566          X"$ac_file" : 'X\(//\)[^/]' \| \
23567          X"$ac_file" : 'X\(//\)$' \| \
23568          X"$ac_file" : 'X\(/\)' \| \
23569          .     : '\(.\)' 2>/dev/null ||
23570 echo X"$ac_file" |
23571     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23572           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23573           /^X\(\/\/\)$/{ s//\1/; q; }
23574           /^X\(\/\).*/{ s//\1/; q; }
23575           s/.*/./; q'`
23576   { if $as_mkdir_p; then
23577     mkdir -p "$ac_dir"
23578   else
23579     as_dir="$ac_dir"
23580     as_dirs=
23581     while test ! -d "$as_dir"; do
23582       as_dirs="$as_dir $as_dirs"
23583       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23584 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23585          X"$as_dir" : 'X\(//\)[^/]' \| \
23586          X"$as_dir" : 'X\(//\)$' \| \
23587          X"$as_dir" : 'X\(/\)' \| \
23588          .     : '\(.\)' 2>/dev/null ||
23589 echo X"$as_dir" |
23590     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23591           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23592           /^X\(\/\/\)$/{ s//\1/; q; }
23593           /^X\(\/\).*/{ s//\1/; q; }
23594           s/.*/./; q'`
23595     done
23596     test ! -n "$as_dirs" || mkdir $as_dirs
23597   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23598 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23599    { (exit 1); exit 1; }; }; }
23600
23601   ac_builddir=.
23602
23603 if test "$ac_dir" != .; then
23604   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23605   # A "../" for each directory in $ac_dir_suffix.
23606   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23607 else
23608   ac_dir_suffix= ac_top_builddir=
23609 fi
23610
23611 case $srcdir in
23612   .)  # No --srcdir option.  We are building in place.
23613     ac_srcdir=.
23614     if test -z "$ac_top_builddir"; then
23615        ac_top_srcdir=.
23616     else
23617        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23618     fi ;;
23619   [\\/]* | ?:[\\/]* )  # Absolute path.
23620     ac_srcdir=$srcdir$ac_dir_suffix;
23621     ac_top_srcdir=$srcdir ;;
23622   *) # Relative path.
23623     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23624     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23625 esac
23626 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23627 # absolute.
23628 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23629 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23630 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23631 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23632
23633
23634   case $INSTALL in
23635   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23636   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23637   esac
23638
23639   if test x"$ac_file" != x-; then
23640     { echo "$as_me:$LINENO: creating $ac_file" >&5
23641 echo "$as_me: creating $ac_file" >&6;}
23642     rm -f "$ac_file"
23643   fi
23644   # Let's still pretend it is `configure' which instantiates (i.e., don't
23645   # use $as_me), people would be surprised to read:
23646   #    /* config.h.  Generated by config.status.  */
23647   if test x"$ac_file" = x-; then
23648     configure_input=
23649   else
23650     configure_input="$ac_file.  "
23651   fi
23652   configure_input=$configure_input"Generated from `echo $ac_file_in |
23653                                      sed 's,.*/,,'` by configure."
23654
23655   # First look for the input files in the build tree, otherwise in the
23656   # src tree.
23657   ac_file_inputs=`IFS=:
23658     for f in $ac_file_in; do
23659       case $f in
23660       -) echo $tmp/stdin ;;
23661       [\\/$]*)
23662          # Absolute (can't be DOS-style, as IFS=:)
23663          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23664 echo "$as_me: error: cannot find input file: $f" >&2;}
23665    { (exit 1); exit 1; }; }
23666          echo $f;;
23667       *) # Relative
23668          if test -f "$f"; then
23669            # Build tree
23670            echo $f
23671          elif test -f "$srcdir/$f"; then
23672            # Source tree
23673            echo $srcdir/$f
23674          else
23675            # /dev/null tree
23676            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23677 echo "$as_me: error: cannot find input file: $f" >&2;}
23678    { (exit 1); exit 1; }; }
23679          fi;;
23680       esac
23681     done` || { (exit 1); exit 1; }
23682 _ACEOF
23683 cat >>$CONFIG_STATUS <<_ACEOF
23684   sed "$ac_vpsub
23685 $extrasub
23686 _ACEOF
23687 cat >>$CONFIG_STATUS <<\_ACEOF
23688 :t
23689 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23690 s,@configure_input@,$configure_input,;t t
23691 s,@srcdir@,$ac_srcdir,;t t
23692 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23693 s,@top_srcdir@,$ac_top_srcdir,;t t
23694 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23695 s,@builddir@,$ac_builddir,;t t
23696 s,@abs_builddir@,$ac_abs_builddir,;t t
23697 s,@top_builddir@,$ac_top_builddir,;t t
23698 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23699 s,@INSTALL@,$ac_INSTALL,;t t
23700 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23701   rm -f $tmp/stdin
23702   if test x"$ac_file" != x-; then
23703     mv $tmp/out $ac_file
23704   else
23705     cat $tmp/out
23706     rm -f $tmp/out
23707   fi
23708
23709 done
23710 _ACEOF
23711 cat >>$CONFIG_STATUS <<\_ACEOF
23712
23713 #
23714 # CONFIG_HEADER section.
23715 #
23716
23717 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23718 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23719 #
23720 # ac_d sets the value in "#define NAME VALUE" lines.
23721 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
23722 ac_dB='[        ].*$,\1#\2'
23723 ac_dC=' '
23724 ac_dD=',;t'
23725 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23726 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23727 ac_uB='$,\1#\2define\3'
23728 ac_uC=' '
23729 ac_uD=',;t'
23730
23731 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23732   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23733   case $ac_file in
23734   - | *:- | *:-:* ) # input from stdin
23735         cat >$tmp/stdin
23736         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23737         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23738   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23739         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23740   * )   ac_file_in=$ac_file.in ;;
23741   esac
23742
23743   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23744 echo "$as_me: creating $ac_file" >&6;}
23745
23746   # First look for the input files in the build tree, otherwise in the
23747   # src tree.
23748   ac_file_inputs=`IFS=:
23749     for f in $ac_file_in; do
23750       case $f in
23751       -) echo $tmp/stdin ;;
23752       [\\/$]*)
23753          # Absolute (can't be DOS-style, as IFS=:)
23754          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23755 echo "$as_me: error: cannot find input file: $f" >&2;}
23756    { (exit 1); exit 1; }; }
23757          echo $f;;
23758       *) # Relative
23759          if test -f "$f"; then
23760            # Build tree
23761            echo $f
23762          elif test -f "$srcdir/$f"; then
23763            # Source tree
23764            echo $srcdir/$f
23765          else
23766            # /dev/null tree
23767            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23768 echo "$as_me: error: cannot find input file: $f" >&2;}
23769    { (exit 1); exit 1; }; }
23770          fi;;
23771       esac
23772     done` || { (exit 1); exit 1; }
23773   # Remove the trailing spaces.
23774   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
23775
23776 _ACEOF
23777
23778 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23779 # `conftest.undefs', that substitutes the proper values into
23780 # config.h.in to produce config.h.  The first handles `#define'
23781 # templates, and the second `#undef' templates.
23782 # And first: Protect against being on the right side of a sed subst in
23783 # config.status.  Protect against being in an unquoted here document
23784 # in config.status.
23785 rm -f conftest.defines conftest.undefs
23786 # Using a here document instead of a string reduces the quoting nightmare.
23787 # Putting comments in sed scripts is not portable.
23788 #
23789 # `end' is used to avoid that the second main sed command (meant for
23790 # 0-ary CPP macros) applies to n-ary macro definitions.
23791 # See the Autoconf documentation for `clear'.
23792 cat >confdef2sed.sed <<\_ACEOF
23793 s/[\\&,]/\\&/g
23794 s,[\\$`],\\&,g
23795 t clear
23796 : clear
23797 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23798 t end
23799 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23800 : end
23801 _ACEOF
23802 # If some macros were called several times there might be several times
23803 # the same #defines, which is useless.  Nevertheless, we may not want to
23804 # sort them, since we want the *last* AC-DEFINE to be honored.
23805 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23806 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23807 rm -f confdef2sed.sed
23808
23809 # This sed command replaces #undef with comments.  This is necessary, for
23810 # example, in the case of _POSIX_SOURCE, which is predefined and required
23811 # on some systems where configure will not decide to define it.
23812 cat >>conftest.undefs <<\_ACEOF
23813 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23814 _ACEOF
23815
23816 # Break up conftest.defines because some shells have a limit on the size
23817 # of here documents, and old seds have small limits too (100 cmds).
23818 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23819 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23820 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23821 echo '  :' >>$CONFIG_STATUS
23822 rm -f conftest.tail
23823 while grep . conftest.defines >/dev/null
23824 do
23825   # Write a limited-size here document to $tmp/defines.sed.
23826   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23827   # Speed up: don't consider the non `#define' lines.
23828   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
23829   # Work around the forget-to-reset-the-flag bug.
23830   echo 't clr' >>$CONFIG_STATUS
23831   echo ': clr' >>$CONFIG_STATUS
23832   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23833   echo 'CEOF
23834   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23835   rm -f $tmp/in
23836   mv $tmp/out $tmp/in
23837 ' >>$CONFIG_STATUS
23838   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23839   rm -f conftest.defines
23840   mv conftest.tail conftest.defines
23841 done
23842 rm -f conftest.defines
23843 echo '  fi # grep' >>$CONFIG_STATUS
23844 echo >>$CONFIG_STATUS
23845
23846 # Break up conftest.undefs because some shells have a limit on the size
23847 # of here documents, and old seds have small limits too (100 cmds).
23848 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23849 rm -f conftest.tail
23850 while grep . conftest.undefs >/dev/null
23851 do
23852   # Write a limited-size here document to $tmp/undefs.sed.
23853   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23854   # Speed up: don't consider the non `#undef'
23855   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23856   # Work around the forget-to-reset-the-flag bug.
23857   echo 't clr' >>$CONFIG_STATUS
23858   echo ': clr' >>$CONFIG_STATUS
23859   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23860   echo 'CEOF
23861   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23862   rm -f $tmp/in
23863   mv $tmp/out $tmp/in
23864 ' >>$CONFIG_STATUS
23865   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23866   rm -f conftest.undefs
23867   mv conftest.tail conftest.undefs
23868 done
23869 rm -f conftest.undefs
23870
23871 cat >>$CONFIG_STATUS <<\_ACEOF
23872   # Let's still pretend it is `configure' which instantiates (i.e., don't
23873   # use $as_me), people would be surprised to read:
23874   #    /* config.h.  Generated by config.status.  */
23875   if test x"$ac_file" = x-; then
23876     echo "/* Generated by configure.  */" >$tmp/config.h
23877   else
23878     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23879   fi
23880   cat $tmp/in >>$tmp/config.h
23881   rm -f $tmp/in
23882   if test x"$ac_file" != x-; then
23883     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23884       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23885 echo "$as_me: $ac_file is unchanged" >&6;}
23886     else
23887       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23888 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23889          X"$ac_file" : 'X\(//\)[^/]' \| \
23890          X"$ac_file" : 'X\(//\)$' \| \
23891          X"$ac_file" : 'X\(/\)' \| \
23892          .     : '\(.\)' 2>/dev/null ||
23893 echo X"$ac_file" |
23894     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23895           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23896           /^X\(\/\/\)$/{ s//\1/; q; }
23897           /^X\(\/\).*/{ s//\1/; q; }
23898           s/.*/./; q'`
23899       { if $as_mkdir_p; then
23900     mkdir -p "$ac_dir"
23901   else
23902     as_dir="$ac_dir"
23903     as_dirs=
23904     while test ! -d "$as_dir"; do
23905       as_dirs="$as_dir $as_dirs"
23906       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23907 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23908          X"$as_dir" : 'X\(//\)[^/]' \| \
23909          X"$as_dir" : 'X\(//\)$' \| \
23910          X"$as_dir" : 'X\(/\)' \| \
23911          .     : '\(.\)' 2>/dev/null ||
23912 echo X"$as_dir" |
23913     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23914           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23915           /^X\(\/\/\)$/{ s//\1/; q; }
23916           /^X\(\/\).*/{ s//\1/; q; }
23917           s/.*/./; q'`
23918     done
23919     test ! -n "$as_dirs" || mkdir $as_dirs
23920   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23921 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23922    { (exit 1); exit 1; }; }; }
23923
23924       rm -f $ac_file
23925       mv $tmp/config.h $ac_file
23926     fi
23927   else
23928     cat $tmp/config.h
23929     rm -f $tmp/config.h
23930   fi
23931 done
23932 _ACEOF
23933 cat >>$CONFIG_STATUS <<\_ACEOF
23934
23935 #
23936 # CONFIG_COMMANDS section.
23937 #
23938 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23939   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23940   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23941   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23942 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23943          X"$ac_dest" : 'X\(//\)[^/]' \| \
23944          X"$ac_dest" : 'X\(//\)$' \| \
23945          X"$ac_dest" : 'X\(/\)' \| \
23946          .     : '\(.\)' 2>/dev/null ||
23947 echo X"$ac_dest" |
23948     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23949           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23950           /^X\(\/\/\)$/{ s//\1/; q; }
23951           /^X\(\/\).*/{ s//\1/; q; }
23952           s/.*/./; q'`
23953   ac_builddir=.
23954
23955 if test "$ac_dir" != .; then
23956   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23957   # A "../" for each directory in $ac_dir_suffix.
23958   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23959 else
23960   ac_dir_suffix= ac_top_builddir=
23961 fi
23962
23963 case $srcdir in
23964   .)  # No --srcdir option.  We are building in place.
23965     ac_srcdir=.
23966     if test -z "$ac_top_builddir"; then
23967        ac_top_srcdir=.
23968     else
23969        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23970     fi ;;
23971   [\\/]* | ?:[\\/]* )  # Absolute path.
23972     ac_srcdir=$srcdir$ac_dir_suffix;
23973     ac_top_srcdir=$srcdir ;;
23974   *) # Relative path.
23975     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23976     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23977 esac
23978 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23979 # absolute.
23980 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23981 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23982 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23983 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23984
23985
23986   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23987 echo "$as_me: executing $ac_dest commands" >&6;}
23988   case $ac_dest in
23989     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23990     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
23991     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
23992     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23993     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23994     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23995     test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
23996     test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
23997     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23998     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
23999     test/Programs/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.tests test/Programs/Makefile.tests ;;
24000     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
24001     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
24002     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
24003     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
24004     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
24005     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
24006     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
24007     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
24008     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
24009     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
24010     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
24011     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
24012     test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
24013     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
24014     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
24015     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 ;;
24016     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 ;;
24017     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 ;;
24018     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
24019     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
24020     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 ;;
24021     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 ;;
24022     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 ;;
24023     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 ;;
24024     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 ;;
24025     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 ;;
24026     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 ;;
24027     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 ;;
24028     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 ;;
24029     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 ;;
24030     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 ;;
24031     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 ;;
24032     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 ;;
24033     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
24034     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
24035     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 ;;
24036     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
24037     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
24038     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
24039   esac
24040 done
24041 _ACEOF
24042
24043 cat >>$CONFIG_STATUS <<\_ACEOF
24044
24045 { (exit 0); exit 0; }
24046 _ACEOF
24047 chmod +x $CONFIG_STATUS
24048 ac_clean_files=$ac_clean_files_save
24049
24050
24051 # configure is writing to config.log, and then calls config.status.
24052 # config.status does its own redirection, appending to config.log.
24053 # Unfortunately, on DOS this fails, as config.log is still kept open
24054 # by configure, so config.status won't be able to write to it; its
24055 # output is simply discarded.  So we exec the FD to /dev/null,
24056 # effectively closing config.log, so it can be properly (re)opened and
24057 # appended to by config.status.  When coming back to configure, we
24058 # need to make the FD available again.
24059 if test "$no_create" != yes; then
24060   ac_cs_success=:
24061   ac_config_status_args=
24062   test "$silent" = yes &&
24063     ac_config_status_args="$ac_config_status_args --quiet"
24064   exec 5>/dev/null
24065   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24066   exec 5>>config.log
24067   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24068   # would make configure fail if this is the last instruction.
24069   $ac_cs_success || { (exit 1); exit 1; }
24070 fi
24071
24072 #
24073 # CONFIG_SUBDIRS section.
24074 #
24075 if test "$no_recursion" != yes; then
24076
24077   # Remove --cache-file and --srcdir arguments so they do not pile up.
24078   ac_sub_configure_args=
24079   ac_prev=
24080   for ac_arg in $ac_configure_args; do
24081     if test -n "$ac_prev"; then
24082       ac_prev=
24083       continue
24084     fi
24085     case $ac_arg in
24086     -cache-file | --cache-file | --cache-fil | --cache-fi \
24087     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24088       ac_prev=cache_file ;;
24089     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24090     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24091     | --c=*)
24092       ;;
24093     --config-cache | -C)
24094       ;;
24095     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24096       ac_prev=srcdir ;;
24097     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24098       ;;
24099     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24100       ac_prev=prefix ;;
24101     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24102       ;;
24103     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24104     esac
24105   done
24106
24107   # Always prepend --prefix to ensure using the same prefix
24108   # in subdir configurations.
24109   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24110
24111   ac_popdir=`pwd`
24112   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24113
24114     # Do not complain, so a configure script can configure whichever
24115     # parts of a large source tree are present.
24116     test -d $srcdir/$ac_dir || continue
24117
24118     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24119 echo "$as_me: configuring in $ac_dir" >&6;}
24120     { if $as_mkdir_p; then
24121     mkdir -p "$ac_dir"
24122   else
24123     as_dir="$ac_dir"
24124     as_dirs=
24125     while test ! -d "$as_dir"; do
24126       as_dirs="$as_dir $as_dirs"
24127       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24129          X"$as_dir" : 'X\(//\)[^/]' \| \
24130          X"$as_dir" : 'X\(//\)$' \| \
24131          X"$as_dir" : 'X\(/\)' \| \
24132          .     : '\(.\)' 2>/dev/null ||
24133 echo X"$as_dir" |
24134     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24135           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24136           /^X\(\/\/\)$/{ s//\1/; q; }
24137           /^X\(\/\).*/{ s//\1/; q; }
24138           s/.*/./; q'`
24139     done
24140     test ! -n "$as_dirs" || mkdir $as_dirs
24141   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24142 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24143    { (exit 1); exit 1; }; }; }
24144
24145     ac_builddir=.
24146
24147 if test "$ac_dir" != .; then
24148   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24149   # A "../" for each directory in $ac_dir_suffix.
24150   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24151 else
24152   ac_dir_suffix= ac_top_builddir=
24153 fi
24154
24155 case $srcdir in
24156   .)  # No --srcdir option.  We are building in place.
24157     ac_srcdir=.
24158     if test -z "$ac_top_builddir"; then
24159        ac_top_srcdir=.
24160     else
24161        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24162     fi ;;
24163   [\\/]* | ?:[\\/]* )  # Absolute path.
24164     ac_srcdir=$srcdir$ac_dir_suffix;
24165     ac_top_srcdir=$srcdir ;;
24166   *) # Relative path.
24167     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24168     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24169 esac
24170 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24171 # absolute.
24172 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24173 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24174 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24175 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24176
24177
24178     cd $ac_dir
24179
24180     # Check for guested configure; otherwise get Cygnus style configure.
24181     if test -f $ac_srcdir/configure.gnu; then
24182       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24183     elif test -f $ac_srcdir/configure; then
24184       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24185     elif test -f $ac_srcdir/configure.in; then
24186       ac_sub_configure=$ac_configure
24187     else
24188       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24189 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24190       ac_sub_configure=
24191     fi
24192
24193     # The recursion is here.
24194     if test -n "$ac_sub_configure"; then
24195       # Make the cache file name correct relative to the subdirectory.
24196       case $cache_file in
24197       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24198       *) # Relative path.
24199         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24200       esac
24201
24202       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24203 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24204       # The eval makes quoting arguments work.
24205       eval $ac_sub_configure $ac_sub_configure_args \
24206            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24207         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24208 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24209    { (exit 1); exit 1; }; }
24210     fi
24211
24212     cd $ac_popdir
24213   done
24214 fi
24215
24216
24217 if test $llvmgccwarn = yes
24218 then
24219         { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
24220 echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
24221         { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
24222 echo "$as_me: WARNING: ***** appear to be working." >&2;}
24223         { echo "$as_me:$LINENO: WARNING: ***** " >&5
24224 echo "$as_me: WARNING: ***** " >&2;}
24225         { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
24226 echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
24227         { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
24228 echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
24229         { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
24230 echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
24231 fi
24232